:root {
    --font-main: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --orange: #F97316;
    --orange-dark: #EA580C;
    --orange-light: #FDBA74;
    --orange-soft: #FFF7ED;
    --orange-line: #FED7AA;
    --blue: #168CF9;
    --blue-dark: #0B63B6;
    --blue-soft: #EFF6FF;
    --yellow: #F9B116;
    --yellow-soft: #FFFBEB;
    --red-orange: #F93D16;
    --red-soft: #FEF2F2;
    --ink: #0F172A;
    --text: #334155;
    --muted: #64748B;
    --line: #E5E7EB;
    --bg: #F8FAFC;
    --card: #FFFFFF;
    --sidebar: #111827;
    --sidebar-soft: #1F2937;
    --shadow: 0 24px 70px rgba(15, 23, 42, .10);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

button,
input,
select,
textarea {
    font-family: var(--font-main);
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    letter-spacing: -0.025em;
}

/* APP LAYOUT */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 290px;
    background: linear-gradient(180deg, var(--sidebar), var(--sidebar-soft));
    color: #FFFFFF;
    padding: 24px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 13px;
}

    .brand-wrap.large {
        margin-bottom: 30px;
    }

.brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(249, 115, 22, .35);
}

.login-brand-logo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #FFFFFF;
    padding: 5px;
    object-fit: contain;
    box-shadow: 0 16px 34px rgba(249, 115, 22, .32);
}

.brand-wrap.large .login-brand-logo {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    padding: 7px;
}

.brand-title {
    font-weight: 800;
    letter-spacing: .07em;
}

.brand-subtitle {
    font-size: 12px;
    color: #CBD5E1;
}

.nav-menu {
    display: grid;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #CBD5E1;
    padding: 13px 14px;
    border-radius: 16px;
    font-weight: 700;
}

    .nav-item:hover,
    .nav-item.active {
        background: rgba(249, 115, 22, .14);
        color: #FFFFFF;
    }

    .nav-item.active {
        box-shadow: inset 3px 0 0 var(--orange);
    }

.sidebar-note {
    margin-top: auto;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 20px;
    padding: 16px;
    display: grid;
    gap: 6px;
    color: #CBD5E1;
    font-size: 13px;
}

    .sidebar-note strong {
        color: #FFFFFF;
    }

.content-area {
    margin-left: 290px;
    width: calc(100% - 290px);
    padding: 24px;
}

.topbar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .06);
    position: sticky;
    top: 18px;
    z-index: 10;
}

.page-eyebrow {
    color: var(--orange-dark);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .11em;
}

    .page-eyebrow.light {
        color: var(--orange-line);
    }

.topbar h1 {
    margin: 2px 0 0;
    font-size: 24px;
    font-weight: 800;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px 12px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    font-weight: 800;
}

.student-chip-text {
    display: grid;
    font-size: 13px;
}

    .student-chip-text span {
        color: var(--muted);
    }

.mobile-menu {
    display: none;
    border: 0;
    background: var(--orange);
    color: #FFFFFF;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 20px;
}

.page-body {
    padding: 22px 0;
}

/* BUTTONS */

.btn {
    border: 0;
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .25);
}

.btn-ghost {
    background: var(--card);
    border: 1px solid var(--line);
    color: var(--ink);
}

.btn.full {
    width: 100%;
}

/* DASHBOARD */

.hero-card {
    background: linear-gradient(135deg, var(--sidebar), var(--sidebar-soft) 58%, var(--orange-dark));
    color: #FFFFFF;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

    .hero-card h2 {
        font-size: 32px;
        font-weight: 800;
        margin: 6px 0;
        color: #FFFFFF;
    }

    .hero-card p {
        margin: 0;
        color: #E2E8F0;
    }

.hero-badge {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.kpi-card,
.panel-card,
.action-card,
.empty-card,
.profile-card,
.balance-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.kpi-card {
    padding: 20px;
    display: grid;
    gap: 8px;
}

    .kpi-card span,
    .kpi-card small {
        color: var(--muted);
    }

    .kpi-card strong {
        font-size: 26px;
        color: var(--ink);
    }

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.action-card {
    padding: 18px;
    display: grid;
    gap: 7px;
    transition: .18s ease;
}

    .action-card:hover {
        transform: translateY(-3px);
        border-color: var(--orange-line);
    }

    .action-card span {
        width: 42px;
        height: 42px;
        border-radius: 15px;
        background: var(--orange-soft);
        color: var(--orange-dark);
        display: grid;
        place-items: center;
        font-weight: 800;
    }

    .action-card strong {
        font-size: 16px;
        color: var(--ink);
    }

    .action-card small {
        color: var(--muted);
    }

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.panel-card {
    padding: 20px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

    .panel-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 800;
    }

    .panel-header p {
        margin: 4px 0 0;
        color: var(--muted);
    }

    .panel-header a {
        color: var(--orange-dark);
        font-weight: 800;
    }

/* TABLES */

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table.wide {
        min-width: 850px;
    }

    .data-table th {
        text-align: left;
        color: var(--muted);
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .08em;
        padding: 12px;
        border-bottom: 1px solid var(--line);
        font-weight: 800;
    }

    .data-table td {
        padding: 14px 12px;
        border-bottom: 1px solid #F1F5F9;
        vertical-align: middle;
    }

        .data-table td span {
            display: block;
            color: var(--muted);
            font-size: 12px;
            margin-top: 3px;
        }

.status-pill {
    display: inline-flex !important;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

    .status-pill.success {
        background: #ECFDF5;
        color: #047857;
    }

/* FORMS */

.filter-form {
    display: flex;
    gap: 10px;
}

    .filter-form input,
    .filter-form select,
    .form-stack input {
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 12px 13px;
        outline: none;
        background: var(--card);
        color: var(--ink);
    }

        .filter-form input:focus,
        .filter-form select:focus,
        .form-stack input:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, .10);
        }

/* SOA */

.soa-layout {
    display: grid;
    grid-template-columns: 1.6fr .8fr;
    gap: 18px;
}

.student-summary,
.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

    .student-summary div,
    .profile-grid div {
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 14px;
    }

    .student-summary span,
    .profile-grid span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 4px;
    }

.soa-lines {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

    .soa-lines div {
        display: flex;
        justify-content: space-between;
        padding: 14px 0;
        border-bottom: 1px dashed var(--line);
    }

.balance-card {
    padding: 22px;
    background: linear-gradient(180deg, var(--card), var(--orange-soft));
    height: max-content;
    display: grid;
    gap: 8px;
}

    .balance-card > strong {
        font-size: 24px;
        color: var(--ink);
    }

.balance-total {
    border-top: 1px solid var(--orange-line);
    margin-top: 8px;
    padding-top: 16px;
}

    .balance-total strong {
        font-size: 34px;
        color: var(--orange-dark);
        display: block;
    }

.balance-card p {
    color: var(--muted);
    line-height: 1.5;
}

/* PROFILE */

.profile-card {
    padding: 28px;
    display: flex;
    gap: 22px;
    align-items: flex-start;
}

.profile-avatar {
    width: 86px;
    height: 86px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    color: #FFFFFF;
    display: grid;
    place-items: center;
    font-size: 36px;
    font-weight: 800;
}

.profile-details {
    flex: 1;
}

    .profile-details h2 {
        margin: 0;
        font-weight: 800;
    }

    .profile-details p {
        color: var(--muted);
        margin: 4px 0 18px;
    }

.empty-card {
    padding: 24px;
    color: var(--muted);
}

/* OLD LOGIN DESIGN SUPPORT */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: radial-gradient(circle at top left, var(--orange-soft), transparent 35%), var(--bg);
}

.login-card {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.login-hero {
    background: linear-gradient(135deg, var(--sidebar), var(--sidebar-soft) 55%, var(--orange-dark));
    color: #FFFFFF;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .login-hero h1 {
        font-size: 44px;
        line-height: 1.05;
        margin: 0 0 12px;
        color: #FFFFFF;
        font-weight: 800;
    }

    .login-hero p {
        color: #E2E8F0;
        font-size: 17px;
    }

.security-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

    .security-strip span {
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 999px;
        padding: 8px 12px;
        font-weight: 700;
        font-size: 12px;
    }

.login-panel {
    padding: 44px;
}

    .login-panel h2 {
        font-size: 30px;
        margin: 0;
        font-weight: 800;
    }

.muted {
    color: var(--muted);
}

.form-stack {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

    .form-stack label {
        font-weight: 700;
    }

.check-row {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-weight: 600 !important;
}

.demo-note {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* SIMPLE PROFESSIONAL LOGIN DESIGN */

.login-page-simple {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, .18), transparent 34%), radial-gradient(circle at bottom right, rgba(22, 140, 249, .10), transparent 32%), linear-gradient(135deg, #FFF7ED 0%, #F8FAFC 48%, #FFFFFF 100%);
}

.login-card-simple {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 430px;
    padding: 36px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .12), 0 8px 20px rgba(249, 115, 22, .08);
}

    .login-card-simple::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        background: linear-gradient(90deg, var(--orange), var(--orange-dark), var(--blue));
    }

.login-brand-simple {
    text-align: center;
    margin-bottom: 28px;
}

    .login-brand-simple img {
        width: 78px;
        height: 78px;
        object-fit: contain;
        margin-bottom: 14px;
    }

    .login-brand-simple h1 {
        margin: 0;
        font-size: 25px;
        font-weight: 800;
        letter-spacing: .06em;
        color: var(--ink);
    }

    .login-brand-simple p {
        margin: 6px 0 0;
        color: var(--orange-dark);
        font-size: 14px;
        font-weight: 700;
    }

.login-heading-simple {
    text-align: center;
    margin-bottom: 26px;
}

    .login-heading-simple h2 {
        margin: 0;
        color: var(--ink);
        font-size: 24px;
        font-weight: 800;
        letter-spacing: -.025em;
    }

    .login-heading-simple p {
        margin: 9px 0 0;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.6;
    }

.login-form-simple {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group-simple {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .form-group-simple label {
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
    }

    .form-group-simple input {
        height: 50px;
        padding: 0 15px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #FFFFFF;
        color: var(--ink);
        font-size: 14px;
        outline: none;
        transition: .18s ease;
    }

        .form-group-simple input::placeholder {
            color: #94A3B8;
        }

        .form-group-simple input:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
        }

.login-row-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

    .remember-simple input {
        accent-color: var(--orange);
    }

.btn-login-simple {
    position: relative;
    overflow: hidden;
    height: 52px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(249, 115, 22, .25);
    transition: .18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-login-simple:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 36px rgba(249, 115, 22, .32);
    }

    .btn-login-simple:active {
        transform: translateY(0);
    }

    .btn-login-simple .btn-loader {
        display: none;
        width: 18px;
        height: 18px;
        border: 2px solid rgba(255, 255, 255, .45);
        border-top-color: #FFFFFF;
        border-radius: 50%;
        animation: btnSpin .75s linear infinite;
    }

    .btn-login-simple.is-loading {
        pointer-events: none;
        opacity: .92;
    }

        .btn-login-simple.is-loading .btn-text {
            display: none;
        }

        .btn-login-simple.is-loading .btn-loader {
            display: inline-block;
        }

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.login-note-simple {
    margin-top: 4px;
    padding: 11px 12px;
    border-radius: 13px;
    background: var(--bg);
    border: 1px dashed #CBD5E1;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

    .login-note-simple strong {
        color: var(--ink);
    }

.validation-box {
    padding: 11px 13px;
    border-radius: 13px;
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    font-size: 13px;
}

    .validation-box:empty {
        display: none;
    }

.field-error {
    color: #DC2626;
    font-size: 12px;
    font-weight: 600;
}

/* LOGIN LOADING PANEL */

.login-loading-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
}

    .login-loading-panel.show {
        display: flex;
    }

.loading-card {
    width: 100%;
    max-width: 310px;
    padding: 30px 24px;
    text-align: center;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16), 0 8px 22px rgba(249, 115, 22, .10);
    animation: loadingPop .22s ease-out;
}

.loading-logo-wrap {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--orange-soft);
    border: 1px solid var(--orange-line);
}

    .loading-logo-wrap img {
        width: 56px;
        height: 56px;
        object-fit: contain;
    }

.loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 4px solid #FFEDD5;
    border-top-color: var(--orange);
    animation: panelSpin .85s linear infinite;
}

.loading-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.loading-card p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.6;
}

@keyframes panelSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingPop {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .sidebar {
        transform: translateX(-100%);
        transition: .2s ease;
    }

        .sidebar.open {
            transform: translateX(0);
        }

    .content-area {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu {
        display: block;
    }

    .kpi-grid,
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .two-column,
    .soa-layout {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        gap: 8px;
    }

    .student-chip-text {
        display: none;
    }
}

@media (max-width: 680px) {
    .content-area {
        padding: 12px;
    }

    .topbar {
        border-radius: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

        .topbar h1 {
            font-size: 20px;
        }

    .hero-card {
        display: grid;
        gap: 16px;
        padding: 22px;
    }

        .hero-card h2 {
            font-size: 25px;
        }

    .kpi-grid,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .panel-header.responsive {
        flex-direction: column;
    }

    .filter-form {
        width: 100%;
        display: grid;
    }

    .student-summary,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-hero {
        padding: 30px;
    }

        .login-hero h1 {
            font-size: 34px;
        }

    .login-panel {
        padding: 28px;
    }

    .profile-card {
        display: grid;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 520px) {
    .login-page-simple {
        padding: 18px;
        align-items: flex-start;
        background: linear-gradient(180deg, #FFF7ED 0%, #F8FAFC 45%, #FFFFFF 100%);
    }

    .login-card-simple {
        padding: 28px 22px;
        border-radius: 22px;
        margin-top: 28px;
    }

    .login-brand-simple {
        margin-bottom: 24px;
    }

        .login-brand-simple img {
            width: 68px;
            height: 68px;
        }

        .login-brand-simple h1 {
            font-size: 23px;
        }

    .login-heading-simple {
        margin-bottom: 22px;
    }

        .login-heading-simple h2 {
            font-size: 22px;
        }

        .login-heading-simple p {
            font-size: 13.5px;
        }

    .form-group-simple input {
        height: 49px;
        border-radius: 13px;
    }

    .btn-login-simple {
        height: 50px;
        border-radius: 14px;
    }

    .login-note-simple {
        font-size: 12px;
    }

    .loading-card {
        padding: 26px 20px;
    }
}

/* PRINT */

.print-only {
    display: none;
}

@media print {
    .sidebar,
    .topbar,
    .btn {
        display: none !important;
    }

    .content-area {
        margin: 0;
        width: 100%;
        padding: 0;
    }

    .panel-card,
    .balance-card {
        box-shadow: none;
    }

    .soa-layout {
        grid-template-columns: 1fr;
    }
}























.password-wrap-simple {
    position: relative;
    width: 100%;
}

    .password-wrap-simple input {
        width: 100%;
        padding-right: 52px;
    }

.password-toggle-simple {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.18s ease;
}

    .password-toggle-simple:hover {
        background: var(--orange-soft);
        color: var(--orange-dark);
    }

    .password-toggle-simple:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

    .password-toggle-simple svg {
        display: block;
    }

    .password-toggle-simple .eye-closed {
        display: none;
    }

    .password-toggle-simple.showing .eye-open {
        display: none;
    }

    .password-toggle-simple.showing .eye-closed {
        display: block;
    }



.login-brand-simple {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

    .login-brand-simple img {
        width: 82px;
        height: 82px;
        object-fit: contain;
        border-radius: 24px;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    }






.status-pill.warning {
    background: #FFFBEB;
    color: #B45309;
}

.status-pill.danger {
    background: #FEF2F2;
    color: #B91C1C;
}

.status-pill.neutral {
    background: #F1F5F9;
    color: #475569;
}


.pager-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pager-pages {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pager-btn,
.pager-number {
    min-width: 38px;
    height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: 0.18s ease;
}

    .pager-btn:hover,
    .pager-number:hover {
        border-color: var(--orange-line);
        background: var(--orange-soft);
        color: var(--orange-dark);
    }

    .pager-number.active {
        background: linear-gradient(135deg, var(--orange), var(--orange-dark));
        color: #FFFFFF;
        border-color: var(--orange);
        box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
    }

    .pager-btn.disabled {
        pointer-events: none;
        opacity: 0.45;
    }

.pager-ellipsis {
    color: var(--muted);
    padding: 0 4px;
    font-weight: 700;
}

@media (max-width: 680px) {
    .pager-wrap {
        justify-content: center;
    }

    .pager-btn {
        flex: 1;
    }

    .pager-pages {
        order: -1;
        width: 100%;
        justify-content: center;
    }
}





.period-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

    .period-pill.morning {
        background: #EFF6FF;
        color: #0B63B6;
    }

    .period-pill.noon {
        background: #FFF7ED;
        color: #EA580C;
    }

    .period-pill.afternoon {
        background: #FFFBEB;
        color: #B45309;
    }

    .period-pill.evening {
        background: #F1F5F9;
        color: #475569;
    }


/* =========================================================
   PREMIUM TABLE ROW HOVER
   ========================================================= */

.data-table tbody tr {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

    .data-table tbody tr:hover {
        background: linear-gradient(90deg, #FFF7ED 0%, #FFFFFF 70%);
    }

        .data-table tbody tr:hover td:first-child {
            box-shadow: inset 4px 0 0 var(--orange);
        }

        .data-table tbody tr:hover strong {
            color: var(--orange-dark);
        }






/* =========================================================
   POWERED BY LOGO
   ========================================================= */

.powered-by-wrap {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

    .powered-by-wrap span {
        white-space: nowrap;
    }

    .powered-by-wrap img {
        max-width: 130px;
        max-height: 34px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
    }

.success-box {
    padding: 11px 13px;
    border-radius: 13px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 13px;
    margin-bottom: 16px;
}


/* =========================================================
   OTP 6-DIGIT INPUT BOXES
   ========================================================= */

.otp-box-wrap {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.otp-box {
    width: 100%;
    height: 54px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
    outline: none;
    transition: 0.18s ease;
}

    .otp-box:focus {
        border-color: var(--orange);
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

@media (max-width: 520px) {
    .otp-box-wrap {
        gap: 7px;
    }

    .otp-box {
        height: 48px;
        border-radius: 12px;
        font-size: 19px;
    }
}

.success-box {
    padding: 12px 14px;
    border-radius: 14px;
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
}


.profile-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}



.verified-badge,
.unverified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.verified-badge {
    background: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
}

.unverified-badge {
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

.verified-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #10B981;
    color: #FFFFFF;
    line-height: 1;
}

    .verified-icon svg {
        display: block;
    }


.verify-email-preview {
    margin-bottom: 18px;
    padding: 14px 15px;
    border-radius: 16px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    display: grid;
    gap: 5px;
    text-align: center;
}

    .verify-email-preview span {
        color: #64748B;
        font-size: 13px;
        font-weight: 600;
    }

    .verify-email-preview strong {
        color: #0F172A;
        font-size: 15px;
        word-break: break-word;
    }



















.settings-action-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
}

    .settings-action-card strong {
        display: block;
        color: var(--ink);
        font-size: 15px;
        margin-bottom: 4px;
    }

    .settings-action-card span {
        display: block;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
    }

.settings-info-grid {
    display: grid;
    gap: 12px;
}

    .settings-info-grid div {
        padding: 14px;
        border-radius: 18px;
        background: var(--bg);
        border: 1px solid var(--line);
    }

    .settings-info-grid span {
        display: block;
        color: var(--muted);
        font-size: 12px;
        margin-bottom: 5px;
    }

    .settings-info-grid strong {
        color: var(--ink);
        word-break: break-word;
    }

.settings-status.success {
    color: #047857;
}

.settings-status.danger {
    color: #B91C1C;
}

.settings-actions {
    margin-top: 16px;
}

@media (max-width: 680px) {
    .settings-action-card {
        align-items: stretch;
        flex-direction: column;
    }

        .settings-action-card .btn {
            width: 100%;
            text-align: center;
        }
}


.settings-form-card {
    max-width: 520px;
    display: grid;
    gap: 16px;
}

.password-rules-box {
    padding: 14px 15px;
    border-radius: 16px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    display: grid;
    gap: 5px;
}

    .password-rules-box strong {
        color: #EA580C;
        font-size: 13px;
    }

    .password-rules-box span {
        color: #64748B;
        font-size: 13px;
        line-height: 1.5;
    }

.settings-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

@media (max-width: 680px) {
    .settings-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .settings-form-actions .btn {
            width: 100%;
            text-align: center;
        }
}

.status-pill.warning {
    background: #FFFBEB;
    color: #B45309;
}

.status-pill.danger {
    background: #FEF2F2;
    color: #B91C1C;
}

.status-pill.neutral {
    background: #F1F5F9;
    color: #475569;
}


.login-extra-link {
    text-align: right;
    margin-top: -6px;
}

    .login-extra-link a {
        color: var(--orange-dark);
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

        .login-extra-link a:hover {
            text-decoration: underline;
        }




.nav-section-title {
    margin: 18px 12px 8px;
    color: #9CA3AF;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


.admin-shortcut-list {
    display: grid;
    gap: 12px;
}

    .admin-shortcut-list a {
        display: block;
        padding: 16px;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: var(--bg);
        text-decoration: none;
        transition: 0.18s ease;
    }

        .admin-shortcut-list a:hover {
            background: #FFF7ED;
            border-color: #FED7AA;
            transform: translateY(-1px);
        }

    .admin-shortcut-list strong {
        display: block;
        color: var(--ink);
        font-size: 14px;
        margin-bottom: 4px;
    }

    .admin-shortcut-list span {
        display: block;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
    }



/* =========================================================
   ADMIN STUDENT MANAGEMENT
   ========================================================= */

.admin-filter-bar {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 180px auto auto;
    gap: 10px;
    align-items: center;
}

    .admin-filter-bar input,
    .admin-filter-bar select {
        height: 44px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #FFFFFF;
        padding: 0 13px;
        color: var(--ink);
        font-size: 14px;
        outline: none;
    }

        .admin-filter-bar input:focus,
        .admin-filter-bar select:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

.admin-search-box {
    min-width: 0;
}

.action-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .action-menu a {
        min-height: 32px;
        padding: 7px 10px;
        border-radius: 11px;
        border: 1px solid var(--line);
        background: #FFFFFF;
        color: var(--text);
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        transition: 0.18s ease;
    }

        .action-menu a:hover {
            background: #FFF7ED;
            border-color: #FED7AA;
            color: var(--orange-dark);
        }

.admin-form-grid {
    display: grid;
    gap: 18px;
}

.admin-form-section {
    padding: 18px;
    border-radius: 22px;
    background: var(--bg);
    border: 1px solid var(--line);
}

.admin-form-section-title {
    margin-bottom: 16px;
    display: grid;
    gap: 4px;
}

    .admin-form-section-title strong {
        color: var(--ink);
        font-size: 15px;
    }

    .admin-form-section-title span {
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
    }

.form-grid-2,
.form-grid-3 {
    display: grid;
    gap: 14px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-save-bar {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #FED7AA;
    background: linear-gradient(135deg, #FFF7ED, #FFFFFF);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

    .admin-save-bar strong {
        display: block;
        color: var(--ink);
        font-size: 15px;
        margin-bottom: 4px;
    }

    .admin-save-bar span {
        display: block;
        color: var(--muted);
        font-size: 13px;
    }

.admin-save-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 900px) {
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .admin-save-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-save-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .admin-save-actions .btn {
            width: 100%;
            text-align: center;
        }
}


.admin-student-form {
    display: grid;
    gap: 18px;
}

.admin-fieldset {
    position: relative;
    padding: 22px 18px 18px;
    border: 1px solid #FDBA74;
    border-radius: 18px;
    background: #FFFFFF;
}

.fieldset-title {
    position: absolute;
    top: -11px;
    left: 18px;
    background: #FFFFFF;
    padding: 0 10px;
    color: #EA580C;
    font-size: 13px;
    font-weight: 800;
}

.student-basic-layout {
    display: grid;
    grid-template-columns: 1fr 150px;
    gap: 24px;
    align-items: start;
}

.student-basic-fields {
    display: grid;
    gap: 10px;
}

.form-line {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    align-items: center;
}

    .form-line label {
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
    }

    .form-line input,
    .form-line select {
        height: 36px;
        border-radius: 8px;
        border: 1px solid var(--line);
        background: #FFFFFF;
        padding: 0 10px;
        color: var(--ink);
        font-size: 13px;
        outline: none;
    }

        .form-line input:focus,
        .form-line select:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
        }

    .form-line.small-date {
        max-width: 360px;
    }

.student-photo-box {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.photo-placeholder {
    width: 118px;
    height: 138px;
    border: 4px solid #FB923C;
    background: #FF7A3D;
    display: grid;
    place-items: center;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 800;
}

.student-photo-box input {
    max-width: 140px;
    font-size: 11px;
}

@media (max-width: 900px) {
    .student-basic-layout {
        grid-template-columns: 1fr;
    }

    .form-line {
        grid-template-columns: 1fr;
        gap: 6px;
    }

        .form-line.small-date {
            max-width: none;
        }
}


.family-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

    .family-section-header strong {
        display: block;
        color: var(--ink);
        font-size: 15px;
        margin-bottom: 4px;
    }

    .family-section-header p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        line-height: 1.5;
    }

.family-entry-card {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #FED7AA;
    background: linear-gradient(135deg, #FFF7ED, #FFFFFF);
}

.full-row {
    margin-top: 14px;
}

.family-options-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.family-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.family-table-wrap {
    margin-top: 10px;
}

.empty-mini {
    padding: 18px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 900px) {
    .family-section-header,
    .family-options-row {
        flex-direction: column;
        align-items: stretch;
    }

    .family-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .family-form-actions .btn,
        .family-section-header .btn {
            width: 100%;
            text-align: center;
        }
}


/* =========================================================
   ADMIN SUB-FORM INPUTS / DROPDOWNS
   Family Information + Educational Background
   ========================================================= */

.family-entry-card .form-group-simple {
    display: grid;
    gap: 7px;
}

    .family-entry-card .form-group-simple label {
        color: var(--text);
        font-size: 13px;
        font-weight: 800;
    }

    .family-entry-card .form-group-simple input,
    .family-entry-card .form-group-simple select {
        width: 100%;
        height: 42px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #FFFFFF;
        color: var(--ink);
        padding: 0 13px;
        font-size: 14px;
        font-weight: 600;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    }

        .family-entry-card .form-group-simple input::placeholder {
            color: #94A3B8;
            font-weight: 500;
        }

    .family-entry-card .form-group-simple select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        padding-right: 38px;
        background-image: linear-gradient(45deg, transparent 50%, #64748B 50%), linear-gradient(135deg, #64748B 50%, transparent 50%);
        background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px;
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
    }

        .family-entry-card .form-group-simple input:focus,
        .family-entry-card .form-group-simple select:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background-color: #FFFFFF;
        }

        .family-entry-card .form-group-simple select:hover,
        .family-entry-card .form-group-simple input:hover {
            border-color: #FDBA74;
        }

.family-entry-card .full-row {
    display: grid;
    grid-template-columns: 1fr;
}



/* =========================================================
   SAVING LOADING OVERLAY
   ========================================================= */

.saving-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .saving-overlay.show {
        display: flex;
    }

.saving-card {
    width: min(420px, 100%);
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.saving-spinner {
    width: 54px;
    height: 54px;
    margin: 0 auto 18px;
    border-radius: 999px;
    border: 5px solid #ffedd5;
    border-top-color: #f97316;
    animation: savingSpin 0.85s linear infinite;
}

.saving-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.saving-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes savingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================================
   SUCCESS MODAL
   ========================================================= */

.success-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-modal-card {
    width: min(420px, 100%);
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.success-modal-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    display: grid;
    place-items: center;
    font-size: 30px;
    font-weight: 900;
}

.success-modal-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
}

.success-modal-card p {
    margin: 0 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.admin-filter-bar {
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
}

@media (max-width: 900px) {
    .admin-filter-bar {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   TABLE ACTION DROPDOWN
   ========================================================= */

.action-col {
    width: 130px;
    text-align: right;
}

.table-action-dropdown {
    position: relative;
    display: inline-block;
    text-align: left;
}

.action-dropdown-btn {
    height: 34px;
    min-width: 104px;
    padding: 0 11px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: 0.18s ease;
}

    .action-dropdown-btn:hover {
        background: #FFF7ED;
        border-color: #FDBA74;
        color: var(--orange-dark);
    }

    .action-dropdown-btn span {
        font-size: 11px;
        line-height: 1;
    }

.action-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
    z-index: 30;
    display: none;
}

.table-action-dropdown.open .action-dropdown-menu {
    display: grid;
    gap: 4px;
}

.action-dropdown-menu a,
.action-dropdown-menu button {
    width: 100%;
    min-height: 36px;
    padding: 9px 10px;
    border-radius: 11px;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 750;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    display: block;
}

    .action-dropdown-menu a:hover,
    .action-dropdown-menu button:hover {
        background: #F8FAFC;
        color: var(--ink);
    }

    .action-dropdown-menu button.danger {
        color: #B91C1C;
    }

        .action-dropdown-menu button.danger:hover {
            background: #FEF2F2;
            color: #991B1B;
        }

.action-dropdown-menu form {
    margin: 0;
}

@media (max-width: 720px) {
    .action-col {
        width: auto;
        text-align: left;
    }

    .action-dropdown-menu {
        right: auto;
        left: 0;
    }
}


.pager-wrap {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.pager-info {
    color: var(--muted);
    font-size: 13px;
}

    .pager-info strong {
        color: var(--ink);
    }

    .pager-info span {
        margin: 0 8px;
        color: #CBD5E1;
    }

.pager-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.pager-number {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 11px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

    .pager-number:hover {
        background: #FFF7ED;
        border-color: #FDBA74;
        color: var(--orange-dark);
    }

    .pager-number.active {
        background: var(--orange);
        border-color: var(--orange);
        color: #FFFFFF;
    }

button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 720px) {
    .pager-wrap {
        align-items: stretch;
        flex-direction: column;
    }

    .pager-actions {
        justify-content: center;
    }
}

.page-size-select {
    height: 44px;
    min-width: 135px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    padding: 0 13px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
}

    .page-size-select:focus {
        border-color: var(--orange);
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }


/* =========================================================
   STUDENT MANAGEMENT TOOLBAR
   ========================================================= */

.student-list-toolbar {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.student-list-title h3 {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.student-list-title p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.student-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.student-filter-toolbar {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #F8FAFC;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px auto auto;
    gap: 10px;
    align-items: center;
}

.student-search-input {
    min-width: 0;
}

    .student-search-input input,
    .student-filter-toolbar select {
        width: 100%;
        height: 44px;
        border-radius: 14px;
        border: 1px solid var(--line);
        background: #FFFFFF;
        color: var(--ink);
        padding: 0 14px;
        font-size: 14px;
        font-weight: 600;
        outline: none;
        transition: 0.18s ease;
    }

        .student-search-input input::placeholder {
            color: #94A3B8;
            font-weight: 500;
        }

        .student-search-input input:focus,
        .student-filter-toolbar select:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

.student-filter-toolbar .btn {
    height: 44px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .student-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .student-list-actions {
        justify-content: stretch;
    }

        .student-list-actions .btn {
            width: 100%;
            text-align: center;
        }

    .student-filter-toolbar {
        grid-template-columns: 1fr;
    }

        .student-filter-toolbar .btn {
            width: 100%;
            text-align: center;
        }
}

.readonly-field {
    background: #F8FAFC !important;
    color: #64748B !important;
    cursor: not-allowed;
}


/* =========================================================
   ADMIN STUDENT BASIC INFORMATION - PROFESSIONAL LAYOUT
   ========================================================= */

.student-basic-pro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: start;
}

.student-basic-main {
    min-width: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

    .form-grid-2 .form-line {
        min-width: 0;
    }

.student-photo-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.student-photo-preview {
    display: grid;
    gap: 14px;
    justify-items: center;
    text-align: center;
}

.student-photo-avatar {
    width: 132px;
    height: 132px;
    border-radius: 28px;
    border: 1px dashed #FDBA74;
    background: #FFF7ED;
    color: var(--orange-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.student-photo-text strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    font-weight: 850;
}

.student-photo-text p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.student-upload-box {
    margin-top: 16px;
    min-height: 76px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    display: grid;
    place-items: center;
    gap: 3px;
    cursor: pointer;
    transition: 0.18s ease;
}

    .student-upload-box:hover {
        border-color: #FDBA74;
        background: #FFF7ED;
    }

    .student-upload-box input {
        display: none;
    }

    .student-upload-box span {
        color: var(--orange-dark);
        font-size: 13px;
        font-weight: 850;
    }

    .student-upload-box small {
        color: var(--muted);
        font-size: 11px;
        font-weight: 600;
    }

.readonly-field {
    background: #F8FAFC !important;
    color: #64748B !important;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .student-basic-pro-layout {
        grid-template-columns: 1fr;
    }

    .student-photo-panel {
        max-width: 360px;
    }
}

@media (max-width: 720px) {
    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .student-photo-panel {
        max-width: none;
    }
}

.student-photo-avatar {
    overflow: hidden;
}

    .student-photo-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 28px;
    }

.photo-current-note {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

/* =========================================================
   ENROLLMENT & CONTACT INFORMATION
   ========================================================= */

.enrollment-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 18px;
    align-items: start;
}

.info-sub-card {
    border: 1px solid var(--line);
    background: #FFFFFF;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.sub-card-header {
    margin-bottom: 15px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}

    .sub-card-header strong {
        display: block;
        color: var(--ink);
        font-size: 15px;
        font-weight: 850;
        letter-spacing: -0.01em;
    }

    .sub-card-header p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.5;
    }

.form-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.contact-note-card {
    margin-top: 2px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    display: grid;
    gap: 4px;
}

    .contact-note-card strong {
        color: var(--orange-dark);
        font-size: 12px;
        font-weight: 850;
    }

    .contact-note-card span {
        color: #9A3412;
        font-size: 12px;
        line-height: 1.45;
    }

@media (max-width: 1100px) {
    .enrollment-contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .info-sub-card {
        padding: 15px;
        border-radius: 18px;
    }
}

.student-list-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 230px;
}

.student-list-photo,
.student-list-initial {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 42px;
}

.student-list-photo {
    object-fit: cover;
    display: block;
    border: 1px solid var(--line);
    background: #F8FAFC;
}

.student-list-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.student-list-name {
    min-width: 0;
    display: grid;
    gap: 3px;
}

    .student-list-name strong {
        color: var(--ink);
        font-size: 13px;
        font-weight: 850;
        line-height: 1.25;
    }

    .student-list-name span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
    }


/* =========================================================
   STUDENT ASSESSMENT SETUP
   ========================================================= */

.assessment-student-card {
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .assessment-student-card div {
        display: grid;
        gap: 5px;
    }

    .assessment-student-card span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }

    .assessment-student-card strong {
        color: var(--ink);
        font-size: 16px;
        font-weight: 850;
    }

.assessment-setup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 820px) {
    .assessment-student-card,
    .assessment-setup-grid {
        grid-template-columns: 1fr;
    }
}}


/* =========================================================
   ASSESSMENT STUDENT SEARCH
   ========================================================= */

.assessment-search-card {
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #F8FAFC;
}

.assessment-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.assessment-search-btn {
    height: 44px;
    white-space: nowrap;
}

.assessment-search-results {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    overflow: hidden;
}

.assessment-result-item {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}

    .assessment-result-item:last-child {
        border-bottom: none;
    }

.assessment-result-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

    .assessment-result-profile img,
    .assessment-result-initial {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        flex: 0 0 42px;
    }

    .assessment-result-profile img {
        object-fit: cover;
        border: 1px solid var(--line);
    }

.assessment-result-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 900;
}

.assessment-result-profile strong {
    display: block;
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.assessment-result-profile span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.assessment-result-empty {
    padding: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

@media (max-width: 720px) {
    .assessment-search-row {
        grid-template-columns: 1fr;
    }

    .assessment-search-btn {
        width: 100%;
    }

    .assessment-result-item {
        align-items: stretch;
        flex-direction: column;
    }
}


.assessment-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-box {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    display: grid;
    gap: 6px;
}

    .summary-box span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }

    .summary-box strong {
        color: var(--ink);
        font-size: 20px;
        font-weight: 900;
    }

    .summary-box.highlight {
        background: #FFF7ED;
        border-color: #FED7AA;
    }

        .summary-box.highlight strong {
            color: var(--orange-dark);
        }

@media (max-width: 820px) {
    .assessment-summary-grid {
        grid-template-columns: 1fr;
    }
}


.assessment-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.summary-box {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    display: grid;
    gap: 6px;
}

    .summary-box span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }

    .summary-box strong {
        color: var(--ink);
        font-size: 20px;
        font-weight: 900;
    }

    .summary-box.highlight {
        background: #FFF7ED;
        border-color: #FED7AA;
    }

        .summary-box.highlight strong {
            color: var(--orange-dark);
        }

@media (max-width: 820px) {
    .assessment-summary-grid {
        grid-template-columns: 1fr;
    }
}

.btn.btn-primary,
a.btn.btn-primary {
    background: var(--orange);
    color: #ffffff !important;
    border-color: var(--orange);
}

    .btn.btn-primary:hover,
    a.btn.btn-primary:hover {
        background: var(--orange-dark);
        color: #ffffff !important;
        border-color: var(--orange-dark);
    }



/* =========================================================
   VIEW ASSESSMENT DETAILS
   ========================================================= */

.assessment-details-hero {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: stretch;
}

.assessment-student-main {
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    border-radius: 20px;
    padding: 20px;
    display: grid;
    align-content: center;
    gap: 6px;
}

    .assessment-student-main span {
        color: #9A3412;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .assessment-student-main strong {
        color: var(--orange-dark);
        font-size: 22px;
        font-weight: 900;
        line-height: 1.2;
    }

    .assessment-student-main small {
        color: #9A3412;
        font-size: 13px;
        font-weight: 750;
    }

.assessment-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .assessment-info-grid div {
        border: 1px solid var(--line);
        background: #FFFFFF;
        border-radius: 16px;
        padding: 14px;
        display: grid;
        gap: 5px;
    }

    .assessment-info-grid span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
    }

    .assessment-info-grid strong {
        color: var(--ink);
        font-size: 14px;
        font-weight: 850;
    }

.data-table tfoot td {
    background: #F8FAFC;
    border-top: 1px solid var(--line);
    font-weight: 850;
}

@media (max-width: 980px) {
    .assessment-details-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .assessment-info-grid {
        grid-template-columns: 1fr;
    }

    .assessment-student-main strong {
        font-size: 18px;
    }
}
.dropdown-note {
    display: block;
    padding: 9px 12px;
    color: #64748B;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    border-top: 1px solid var(--line);
    background: #F8FAFC;
}

.assessment-edit-note {
    margin-bottom: 16px;
    padding: 13px 15px;
    border-radius: 16px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    color: #9A3412;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}


.payment-total-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .payment-total-card span {
        color: #9A3412;
        font-size: 13px;
        font-weight: 800;
    }

    .payment-total-card strong {
        color: #EA580C;
        font-size: 22px;
        font-weight: 950;
    }

.payment-entry-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.payment-entry-table input[type="number"] {
    min-width: 120px;
}

.fieldset-title.with-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.payment-total-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .payment-total-card span {
        color: #9A3412;
        font-size: 13px;
        font-weight: 800;
    }

    .payment-total-card strong {
        color: #EA580C;
        font-size: 22px;
        font-weight: 950;
    }

.payment-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.payment-modal-card {
    width: min(1100px, 96vw);
    max-height: 88vh;
    overflow: auto;
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    padding: 20px;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

    .payment-modal-header h3 {
        margin: 0;
        color: var(--ink);
        font-size: 20px;
        font-weight: 900;
    }

    .payment-modal-header p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
    }

.modal-close-btn {
    border: none;
    background: #F8FAFC;
    color: #0F172A;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
}

.payment-modal-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin-bottom: 14px;
}

    .payment-modal-search input,
    .selected-payment-amount {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 10px 12px;
        font-size: 13px;
        outline: none;
    }

.selected-payment-amount {
    min-width: 130px;
}

.btn.danger,
.btn.btn-ghost.danger {
    color: #B91C1C;
}

@media (max-width: 760px) {
    .fieldset-title.with-action,
    .payment-total-card,
    .payment-modal-header {
        align-items: stretch;
        flex-direction: column;
    }

    .payment-modal-search {
        grid-template-columns: 1fr;
    }
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.compact-date-filter {
    min-width: 150px;
}

    .compact-date-filter input[type="date"] {
        width: 100%;
    }

.filter-summary-card {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .filter-summary-card span {
        color: #9A3412;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .filter-summary-card strong {
        color: #0F172A;
        font-size: 12px;
        font-weight: 800;
    }

.payment-history-filter {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 160px 160px 145px auto;
    gap: 12px;
    align-items: end;
}

    .payment-history-filter label {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

.payment-history-search input,
.payment-history-date input,
.payment-history-page-size select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

    .payment-history-search input:focus,
    .payment-history-date input:focus,
    .payment-history-page-size select:focus {
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    }

.payment-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

    .payment-history-actions .filter-btn {
        width: 92px;
        height: 42px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.filter-summary-card {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .filter-summary-card span {
        color: #9A3412;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .filter-summary-card strong {
        color: #0F172A;
        font-size: 12px;
        font-weight: 800;
    }

@media (max-width: 1200px) {
    .payment-history-filter {
        grid-template-columns: minmax(260px, 1fr) 150px 150px;
    }

    .payment-history-page-size,
    .payment-history-actions {
        grid-column: span 1;
    }
}

@media (max-width: 760px) {
    .payment-history-filter {
        grid-template-columns: 1fr;
    }

    .payment-history-actions {
        justify-content: stretch;
    }

        .payment-history-actions .filter-btn {
            width: 100%;
        }
}


.soa-payment-detail-box {
    display: grid;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid var(--line);
}

    .soa-payment-detail-box div {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr) 120px;
        gap: 10px;
        align-items: center;
    }

    .soa-payment-detail-box span {
        color: #9A3412;
        font-size: 11px;
        font-weight: 850;
        text-transform: uppercase;
    }

    .soa-payment-detail-box strong {
        color: var(--ink);
        font-size: 12px;
        font-weight: 800;
    }

    .soa-payment-detail-box em {
        text-align: right;
        color: var(--ink);
        font-size: 12px;
        font-style: normal;
        font-weight: 900;
    }

@media (max-width: 720px) {
    .soa-payment-detail-box div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .soa-payment-detail-box em {
        text-align: left;
    }
}


.collection-report-filter {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 150px 160px 160px auto;
    gap: 12px;
    align-items: end;
}

    .collection-report-filter label {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

.collection-search input,
.collection-date input,
.collection-field input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

    .collection-search input:focus,
    .collection-date input:focus,
    .collection-field input:focus {
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    }

.collection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

    .collection-actions .report-btn {
        width: 94px;
        height: 42px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

@media (max-width: 1280px) {
    .collection-report-filter {
        grid-template-columns: minmax(260px, 1fr) 150px 150px;
    }
}

@media (max-width: 760px) {
    .collection-report-filter {
        grid-template-columns: 1fr;
    }

    .collection-actions {
        justify-content: stretch;
    }

        .collection-actions .report-btn {
            width: 100%;
        }
}

.report-filter-card {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.report-filter-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    .report-filter-header h4 {
        margin: 0;
        color: var(--ink);
        font-size: 16px;
        font-weight: 900;
    }

    .report-filter-header p {
        margin: 4px 0 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
    }

.report-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) 150px 150px 170px 170px;
    gap: 12px;
    align-items: end;
}

.report-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.report-field input,
.report-field select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 650;
    outline: none;
    background: #FFFFFF;
    color: var(--ink);
}

    .report-field input:focus,
    .report-field select:focus {
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    }

    .report-field input::placeholder {
        color: #94A3B8;
    }

.report-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.report-action-btn {
    width: 96px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-actions {
    display: none;
}

.collection-summary-grid {
    margin-top: 18px;
}

.filter-summary-card {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .filter-summary-card span {
        color: #9A3412;
        font-size: 12px;
        font-weight: 850;
        text-transform: uppercase;
    }

    .filter-summary-card strong {
        color: #0F172A;
        font-size: 12px;
        font-weight: 800;
    }

@media (max-width: 1280px) {
    .report-filter-grid {
        grid-template-columns: minmax(260px, 1fr) 150px 150px;
    }

    .search-field {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .report-filter-header {
        flex-direction: column;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-actions {
        display: flex;
        margin-top: 14px;
        justify-content: stretch;
    }

        .mobile-actions .report-action-btn {
            width: 100%;
        }

    .report-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .search-field {
        grid-column: span 2;
    }
}

@media (max-width: 620px) {
    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .search-field {
        grid-column: span 1;
    }

    .report-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .report-action-btn {
        width: 100%;
    }
}

/* Shared report-style filter for Payment History and Collection Report */
.payment-history-filter {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 150px 145px auto;
    gap: 12px;
    align-items: end;
}

    .payment-history-filter.report-style-filter {
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
    }

    .payment-history-filter label {
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
    }

.payment-history-search input,
.payment-history-date input,
.payment-history-date select,
.payment-history-page-size select {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 12px;
    font-size: 13px;
    outline: none;
    background: #ffffff;
}

    .payment-history-search input:focus,
    .payment-history-date input:focus,
    .payment-history-date select:focus,
    .payment-history-page-size select:focus {
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    }

.payment-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

    .payment-history-actions .filter-btn {
        width: 96px;
        height: 42px;
        padding: 0 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.collection-filter {
    grid-template-columns: minmax(260px, 1fr) 150px 150px 160px 160px auto;
}

.collection-summary-grid {
    margin-top: 18px;
}

.filter-summary-card {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #FED7AA;
    background: #FFF7ED;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .filter-summary-card span {
        color: #9A3412;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .filter-summary-card strong {
        color: #0F172A;
        font-size: 12px;
        font-weight: 800;
    }

@media (max-width: 1280px) {
    .payment-history-filter,
    .collection-filter {
        grid-template-columns: minmax(260px, 1fr) 150px 150px;
    }

    .payment-history-search {
        grid-column: span 3;
    }
}

@media (max-width: 760px) {
    .payment-history-filter,
    .collection-filter {
        grid-template-columns: 1fr;
    }

    .payment-history-search {
        grid-column: span 1;
    }

    .payment-history-actions {
        justify-content: stretch;
    }

        .payment-history-actions .filter-btn {
            width: 100%;
        }
}

@@page {
    size: A4 portrait;
    margin: 10mm 9mm 13mm 9mm;

    @@bottom-center {
        content: "Page " counter(page) " of " counter(pages);
        font-family: Arial, "Segoe UI", sans-serif;
        font-size: 10px;
        color: #64748b;
    }
}




/* =========================================================
   CLEAN PREMIUM DASHBOARD
========================================================= */

.premium-dashboard-page {
    padding: 18px;
    border-radius: 28px;
    background: #F8FAFC;
    display: grid;
    gap: 14px;
}

.premium-dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 6px 2px 8px;
}

    .premium-dashboard-header h2 {
        margin: 0;
        color: #020617;
        font-size: clamp(28px, 4vw, 40px);
        font-weight: 950;
        letter-spacing: -0.06em;
    }

    .premium-dashboard-header p {
        margin: 7px 0 0;
        color: #94A3B8;
        font-size: 14px;
        font-weight: 650;
    }

.premium-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.premium-btn {
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 850;
    transition: 0.18s ease;
    white-space: nowrap;
}

    .premium-btn.primary {
        background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
        color: #FFFFFF;
        border-color: #EA580C;
        box-shadow: 0 14px 24px rgba(234, 88, 12, 0.22);
    }

    .premium-btn.outline {
        background: #FFFFFF;
        color: #0F172A;
        border-color: #CBD5E1;
    }

    .premium-btn.small {
        height: 38px;
        padding: 0 15px;
        font-size: 13px;
    }

    .premium-btn:hover {
        transform: translateY(-1px);
    }

.premium-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.premium-main-stat {
    min-height: 142px;
    padding: 18px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

    .premium-main-stat.orange {
        background: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
        color: #FFFFFF;
        border-color: #EA580C;
    }

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .stat-top span {
        color: inherit;
        opacity: 0.88;
        font-size: 14px;
        font-weight: 850;
    }

    .stat-top em {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        background: #FFFFFF;
        color: #0F172A;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-style: normal;
        font-weight: 900;
    }

.premium-main-stat:not(.orange) .stat-top em {
    border: 1px solid #E2E8F0;
}

.premium-main-stat strong {
    display: block;
    margin-top: 16px;
    color: inherit;
    font-size: 42px;
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
}

.premium-main-stat small {
    display: block;
    margin-top: 10px;
    color: inherit;
    opacity: 0.72;
    font-size: 12px;
    font-weight: 700;
}

.premium-main-stat:not(.orange) strong {
    color: #020617;
}

.premium-main-stat:not(.orange) small,
.premium-main-stat:not(.orange) .stat-top span {
    color: #64748B;
}

.premium-dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr;
    gap: 12px;
    align-items: stretch;
}

.premium-card {
    padding: 18px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.wide-card {
    grid-column: span 1;
}

.premium-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

    .premium-card-header.with-button {
        align-items: center;
    }

    .premium-card-header h3 {
        margin: 0;
        color: #0F172A;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .premium-card-header p {
        margin: 5px 0 0;
        color: #94A3B8;
        font-size: 13px;
        font-weight: 650;
    }

.mini-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .mini-metrics-grid div {
        padding: 14px;
        border-radius: 18px;
        background: #F8FAFC;
        border: 1px solid #EEF2F7;
    }

    .mini-metrics-grid span {
        display: block;
        color: #64748B;
        font-size: 12px;
        font-weight: 800;
    }

    .mini-metrics-grid strong {
        display: block;
        margin-top: 8px;
        color: #0F172A;
        font-size: 26px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.progress-ring-box {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 110px;
}

.premium-ring {
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: radial-gradient(circle at center, #FFFFFF 48%, transparent 49%), conic-gradient(#F97316 0 72%, #E2E8F0 72% 100%);
    display: grid;
    place-items: center;
}

    .premium-ring span {
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        display: grid;
        place-items: center;
        color: #EA580C;
        font-size: 24px;
        font-weight: 950;
    }

.progress-ring-box strong {
    display: block;
    color: #0F172A;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.progress-ring-box small {
    display: block;
    margin-top: 5px;
    color: #64748B;
    font-size: 13px;
    font-weight: 650;
}

.ring-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 8px;
}

    .ring-legend span {
        color: #64748B;
        font-size: 12px;
        font-weight: 750;
    }

    .ring-legend i {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        display: inline-block;
        margin-right: 5px;
        background: #F97316;
    }

    .ring-legend span:last-child i {
        background: #E2E8F0;
    }

.premium-list {
    display: grid;
    gap: 10px;
}

    .premium-list a {
        text-decoration: none;
        padding: 11px;
        border-radius: 16px;
        background: #FFFFFF;
        border: 1px solid #EEF2F7;
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 11px;
        align-items: center;
        transition: 0.18s ease;
    }

        .premium-list a:hover {
            background: #FFF7ED;
            border-color: #FED7AA;
            transform: translateY(-1px);
        }

.list-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #EA580C;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 950;
}

.premium-list strong {
    display: block;
    color: #0F172A;
    font-size: 13px;
    font-weight: 900;
}

.premium-list small {
    display: block;
    margin-top: 2px;
    color: #94A3B8;
    font-size: 11px;
    font-weight: 650;
}

.table-card {
    margin-top: 0;
}

    .table-card .table-wrap {
        border-radius: 18px;
    }

@media (max-width: 1280px) {
    .premium-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .premium-dashboard-page {
        padding: 12px;
    }

    .premium-dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .premium-dashboard-actions {
        width: 100%;
    }

        .premium-dashboard-actions .premium-btn {
            flex: 1;
        }

    .premium-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .premium-stat-row {
        grid-template-columns: 1fr;
    }

    .premium-card-header.with-button {
        flex-direction: column;
        align-items: stretch;
    }
}


/* =========================================================
   DASHBOARD CHARTS
========================================================= */

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 12px;
}

.chart-card {
    min-height: 315px;
}

.line-chart-box {
    height: 210px;
    padding: 12px;
    border-radius: 20px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    overflow: hidden;
}

    .line-chart-box svg {
        width: 100%;
        height: 100%;
    }

.chart-label-row {
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 4px;
    margin-top: 10px;
}

    .chart-label-row div {
        padding: 6px 4px;
        border-radius: 10px;
        background: #FFFFFF;
        border: 1px solid #EEF2F7;
        text-align: center;
        min-width: 0;
    }

    .chart-label-row strong {
        display: block;
        color: #0F172A;
        font-size: 10px;
        font-weight: 900;
    }

    .chart-label-row span {
        display: block;
        margin-top: 3px;
        color: #64748B;
        font-size: 9px;
        font-weight: 700;
        white-space: nowrap;
    }

.bar-chart-box {
    height: 245px;
    padding: 14px 10px 10px;
    border-radius: 20px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 5px;
    align-items: end;
}

.bar-item {
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    gap: 5px;
    text-align: center;
}

.bar-track {
    height: 100%;
    border-radius: 999px;
    background: #E2E8F0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.bar-fill {
    width: 100%;
    border-radius: 999px;
    background: linear-gradient(180deg, #F97316 0%, #EA580C 100%);
}

.bar-item strong {
    color: #0F172A;
    font-size: 10px;
    font-weight: 900;
}

.bar-item span {
    color: #64748B;
    font-size: 9px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .dashboard-chart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .chart-label-row {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .bar-chart-box {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 6px;
    }
}

@media (max-width: 520px) {
    .chart-label-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .bar-chart-box {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}}

/* Dashboard chart hover tooltips */
.chart-point-group {
    cursor: pointer;
}

    .chart-point-group circle {
        transition: 0.18s ease;
    }

    .chart-point-group:hover circle {
        r: 9;
        filter: drop-shadow(0 8px 12px rgba(234, 88, 12, 0.25));
    }

.chart-tooltip-wrap {
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
}

.chart-point-group:hover .chart-tooltip-wrap {
    opacity: 1;
}

.chart-tooltip {
    width: 124px;
    padding: 7px 9px;
    border-radius: 12px;
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    text-align: center;
}

    .chart-tooltip strong {
        display: block;
        color: #FFFFFF;
        font-size: 11px;
        font-weight: 900;
    }

    .chart-tooltip span {
        display: block;
        margin-top: 2px;
        color: #FED7AA;
        font-size: 10px;
        font-weight: 800;
    }

/* Bar tooltip */
.tooltip-parent {
    position: relative;
}

.bar-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: 112px;
    padding: 7px 9px;
    border-radius: 12px;
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
    z-index: 5;
}

.tooltip-parent:hover .bar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bar-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0F172A;
}

.bar-tooltip strong {
    display: block;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 900;
}

.bar-tooltip span {
    display: block;
    margin-top: 2px;
    color: #FED7AA;
    font-size: 10px;
    font-weight: 800;
}

.premium-main-stat.student-gradient {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, #F97316 0%, #EA580C 45%, #C2410C 100%);
    border-color: #EA580C;
    color: #FFFFFF;
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.22);
}

    .premium-main-stat.student-gradient::after {
        content: "";
        position: absolute;
        right: -38px;
        bottom: -48px;
        width: 130px;
        height: 130px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.13);
    }

    .premium-main-stat.student-gradient .stat-top,
    .premium-main-stat.student-gradient strong,
    .premium-main-stat.student-gradient small {
        position: relative;
        z-index: 1;
    }

        .premium-main-stat.student-gradient .stat-top span,
        .premium-main-stat.student-gradient small {
            color: rgba(255, 255, 255, 0.82);
        }

    .premium-main-stat.student-gradient strong {
        color: #FFFFFF;
    }

    .premium-main-stat.student-gradient .stat-top em {
        position: relative;
        z-index: 1;
        background: rgba(255, 255, 255, 0.18);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.28);
    }

.premium-main-stat.collection-gradient {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%), linear-gradient(135deg, #F97316 0%, #EA580C 45%, #C2410C 100%);
    border-color: #EA580C;
    color: #FFFFFF;
    box-shadow: 0 18px 34px rgba(234, 88, 12, 0.22);
}

    .premium-main-stat.collection-gradient::after {
        content: "";
        position: absolute;
        right: -38px;
        bottom: -48px;
        width: 130px;
        height: 130px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.13);
    }

    .premium-main-stat.collection-gradient .stat-top,
    .premium-main-stat.collection-gradient strong,
    .premium-main-stat.collection-gradient small {
        position: relative;
        z-index: 1;
    }

        .premium-main-stat.collection-gradient .stat-top span,
        .premium-main-stat.collection-gradient small {
            color: rgba(255, 255, 255, 0.82);
        }

    .premium-main-stat.collection-gradient strong {
        color: #FFFFFF;
    }

    .premium-main-stat.collection-gradient .stat-top em {
        position: relative;
        z-index: 1;
        background: rgba(255, 255, 255, 0.18);
        color: #FFFFFF;
        border: 1px solid rgba(255, 255, 255, 0.28);
    }


.brand-mark.logo-mark {
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .brand-mark.logo-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 6px;
        display: block;
    }

.field-help {
    display: block;
    margin-top: 6px;
    color: #64748B;
    font-size: 12px;
    font-weight: 650;
}

select.readonly-field:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #F8FAFC;
    color: #475569;
    border-color: #E2E8F0;
}


/* =========================================================
   PREMIUM REPORT FILTER
========================================================= */

.premium-filter-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.premium-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

    .premium-filter-header strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .premium-filter-header span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

.premium-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) auto;
    gap: 12px;
    align-items: end;
}

    .premium-filter-grid .form-line {
        min-width: 0;
    }

        .premium-filter-grid .form-line label {
            display: block;
            margin-bottom: 7px;
            color: #334155;
            font-size: 12px;
            font-weight: 850;
        }

    .premium-filter-grid input,
    .premium-filter-grid select {
        width: 100%;
        min-height: 44px;
    }

.premium-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

    .premium-filter-actions .btn {
        min-height: 44px;
        padding-left: 16px;
        padding-right: 16px;
    }

@media (max-width: 1180px) {
    .premium-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .premium-filter-card {
        padding: 14px;
        border-radius: 20px;
    }

    .premium-filter-grid {
        grid-template-columns: 1fr;
    }

    .premium-filter-actions {
        grid-column: span 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .premium-filter-actions .btn {
            width: 100%;
        }
}

/* =========================================================
   PREMIUM REPORT FILTER - FIX LABEL OVERLAP
========================================================= */

.premium-filter-card {
    margin-top: 16px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.premium-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

    .premium-filter-header strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .premium-filter-header span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

.premium-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

    /* IMPORTANT FIX */
    .premium-filter-grid .form-line {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
        margin: 0;
        position: relative;
    }

        .premium-filter-grid .form-line label {
            position: static !important;
            transform: none !important;
            display: block;
            margin: 0;
            padding: 0;
            color: #334155;
            font-size: 12px;
            font-weight: 850;
            line-height: 1.2;
        }

    .premium-filter-grid input,
    .premium-filter-grid select {
        width: 100%;
        height: 44px;
        min-height: 44px;
        margin: 0;
        padding: 0 13px;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        background: #ffffff;
        color: #0f172a;
        font-size: 13px;
        font-weight: 650;
        line-height: 44px;
        box-sizing: border-box;
    }

    .premium-filter-grid select {
        padding-right: 34px;
    }

.premium-filter-actions {
    display: flex;
    gap: 8px;
    align-items: end;
    justify-content: flex-end;
    white-space: nowrap;
}

    .premium-filter-actions .btn {
        height: 44px;
        min-height: 44px;
        padding-left: 16px;
        padding-right: 16px;
    }

@media (max-width: 1180px) {
    .premium-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 680px) {
    .premium-filter-card {
        padding: 14px;
        border-radius: 20px;
    }

    .premium-filter-grid {
        grid-template-columns: 1fr;
    }

    .premium-filter-actions {
        grid-column: span 1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .premium-filter-actions .btn {
            width: 100%;
        }
}

.report-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

    .report-loading-overlay.show {
        display: flex;
    }

.report-loading-card {
    width: min(360px, 100%);
    padding: 26px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    text-align: center;
}

.report-loading-spinner {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    border-radius: 999px;
    border: 4px solid #fed7aa;
    border-top-color: #f97316;
    animation: reportSpin 0.75s linear infinite;
}

.report-loading-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.report-loading-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

@keyframes reportSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   GLASS ENTERPRISE GAUGE
========================================================= */

.glass-gauge-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.1fr;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 32px;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, .20), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
}

    .glass-gauge-panel::after {
        content: "";
        position: absolute;
        inset: 1px;
        border-radius: 31px;
        background: linear-gradient(135deg, rgba(255,255,255,.09), transparent);
        pointer-events: none;
    }

.glass-gauge-info,
.glass-gauge-card {
    position: relative;
    z-index: 1;
    min-height: 170px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}

    .glass-gauge-info span,
    .glass-gauge-card span {
        display: block;
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .glass-gauge-info strong,
    .glass-gauge-card > div:last-child strong {
        display: block;
        margin-top: 10px;
        color: #ffffff;
        font-size: 34px;
        font-weight: 950;
        letter-spacing: -.05em;
    }

    .glass-gauge-info small,
    .glass-gauge-card small {
        display: block;
        margin-top: 8px;
        color: #94a3b8;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.5;
    }

.glass-gauge-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.glass-ring {
    --value: 0;
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient(#fb923c calc(var(--value) * 1%), rgba(255,255,255,.12) 0);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 14px 34px rgba(0,0,0,.18);
}

.glass-gauge-card.enrolled .glass-ring {
    background: conic-gradient(#22c55e calc(var(--value) * 1%), rgba(255,255,255,.12) 0);
}

.glass-ring > div {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-align: center;
    background: rgba(15, 23, 42, .82);
    border: 1px solid rgba(255,255,255,.10);
}

.glass-ring strong {
    color: #ffffff;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.glass-ring span {
    margin-top: 4px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 850;
}

@media (max-width: 1200px) {
    .glass-gauge-panel {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   ORANGE THEME - GLASS ENTERPRISE GAUGE
========================================================= */

.glass-gauge-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.1fr;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 32px;
    background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.34), transparent 34%), radial-gradient(circle at bottom right, rgba(234, 88, 12, 0.20), transparent 32%), linear-gradient(135deg, #fff7ed 0%, #ffffff 44%, #ffedd5 100%);
    border: 1px solid rgba(251, 146, 60, 0.32);
    box-shadow: 0 24px 70px rgba(154, 52, 18, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.90);
    overflow: hidden;
}

    .glass-gauge-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.16)), radial-gradient(circle at top right, rgba(255, 255, 255, 0.78), transparent 28%);
        pointer-events: none;
    }

    .glass-gauge-panel::after {
        content: "";
        position: absolute;
        left: 18px;
        right: 18px;
        top: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.45), transparent);
        pointer-events: none;
    }

.glass-gauge-info,
.glass-gauge-card {
    position: relative;
    z-index: 1;
    min-height: 170px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 247, 237, 0.72));
    border: 1px solid rgba(251, 146, 60, 0.24);
    box-shadow: 0 16px 34px rgba(154, 52, 18, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
}

.glass-gauge-info {
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.84));
}

    .glass-gauge-info span,
    .glass-gauge-card span {
        display: block;
        color: #9a3412;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.055em;
    }

    .glass-gauge-info strong,
    .glass-gauge-card > div:last-child strong {
        display: block;
        margin-top: 10px;
        color: #0f172a;
        font-size: 34px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .glass-gauge-info small,
    .glass-gauge-card small {
        display: block;
        margin-top: 8px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.5;
    }

.glass-gauge-card {
    display: flex;
    align-items: center;
    gap: 20px;
}

.glass-ring {
    --value: 0;
    width: 118px;
    height: 118px;
    flex: 0 0 auto;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: conic-gradient( #f97316 calc(var(--value) * 1%), #fed7aa 0 );
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.22), inset 0 0 0 1px rgba(249, 115, 22, 0.16);
}

.glass-gauge-card.enrolled .glass-ring {
    background: conic-gradient( #ea580c calc(var(--value) * 1%), #ffedd5 0 );
    box-shadow: 0 16px 34px rgba(234, 88, 12, 0.20), inset 0 0 0 1px rgba(234, 88, 12, 0.14);
}

.glass-ring > div {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 10px 24px rgba(154, 52, 18, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.glass-ring strong {
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.glass-ring span {
    margin-top: 4px;
    color: #9a3412;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.glass-gauge-card.enrolled {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 237, 213, 0.70));
}

@media (max-width: 1200px) {
    .glass-gauge-panel {
        grid-template-columns: 1fr;
    }

    .glass-gauge-card {
        justify-content: flex-start;
    }
}

@media (max-width: 680px) {
    .glass-gauge-panel {
        padding: 14px;
        border-radius: 26px;
    }

    .glass-gauge-info,
    .glass-gauge-card {
        min-height: unset;
        padding: 18px;
        border-radius: 22px;
    }

    .glass-gauge-card {
        flex-direction: column;
        align-items: flex-start;
    }
}




















.sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
}

.nav-item {
    min-height: 42px;
    padding: 9px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.10);
    color: #F97316;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.nav-section-title {
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 0.72rem;
}

.sidebar {
    height: 100vh;
    overflow-y: auto;
}
.sidebar-note {
    margin-top: 12px;
    margin-bottom: 16px;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.45);
    border-radius: 20px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.nav-collapse-header {
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

    .nav-collapse-header span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-collapse-header:hover {
        background: rgba(249, 115, 22, 0.10);
        color: #EA580C;
    }

.nav-chevron {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.nav-collapse-header.collapsed .nav-chevron {
    transform: rotate(-90deg);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    overflow: hidden;
}

    .nav-group.hide {
        display: none;
    }



.nav-collapse-header {
    width: 100%;
    margin-top: 12px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.04);
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

    .nav-collapse-header span {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .nav-collapse-header:hover {
        background: rgba(249, 115, 22, 0.10);
        color: #EA580C;
    }

.nav-chevron {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.nav-collapse-header.collapsed .nav-chevron {
    transform: rotate(-90deg);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
    overflow: hidden;
}

    .nav-group.hide {
        display: none;
    }


.field-help {
    display: block;
    margin-top: 6px;
    color: #64748B;
    font-size: 12px;
    font-weight: 650;
}

select.readonly-field:disabled {
    opacity: 1;
    cursor: not-allowed;
    background: #F8FAFC;
    color: #475569;
    border-color: #E2E8F0;
}


.scholarship-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(6px);
}

    .scholarship-modal-backdrop.show {
        display: flex;
    }

.scholarship-modal-card {
    width: min(920px, 100%);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.scholarship-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border-bottom: 1px solid #fed7aa;
}

    .scholarship-modal-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .scholarship-modal-header p {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

.scholarship-modal-close {
    width: 38px;
    height: 38px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #ffffff;
    color: #9a3412;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.scholarship-modal-body {
    padding: 20px 24px;
    overflow: auto;
}

.scholarship-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

@media (max-width: 680px) {
    .scholarship-modal-card {
        max-height: 94vh;
        border-radius: 22px;
    }

    .scholarship-modal-header,
    .scholarship-modal-body,
    .scholarship-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .scholarship-modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   STUDENT MODAL FORM CONTROLS
========================================================= */

.student-modal-body .form-group-simple {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .student-modal-body .form-group-simple label {
        color: #334155;
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.02em;
    }

    .student-modal-body .form-group-simple input,
    .student-modal-body .form-group-simple select {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        border-radius: 14px;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 600;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .student-modal-body .form-group-simple select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        padding-right: 42px;
        background-image: linear-gradient(45deg, transparent 50%, #f97316 50%), linear-gradient(135deg, #f97316 50%, transparent 50%), linear-gradient(to right, #fed7aa, #fed7aa);
        background-position: calc(100% - 21px) 18px, calc(100% - 15px) 18px, calc(100% - 44px) 10px;
        background-size: 6px 6px, 6px 6px, 1px 24px;
        background-repeat: no-repeat;
    }

        .student-modal-body .form-group-simple input:focus,
        .student-modal-body .form-group-simple select:focus {
            border-color: #f97316;
            background: #fffaf5;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
        }

    .student-modal-body .form-group-simple input::placeholder {
        color: #94a3b8;
        font-weight: 500;
    }

    .student-modal-body .form-group-simple select:disabled,
    .student-modal-body .form-group-simple input:disabled {
        background: #f8fafc;
        color: #64748b;
        cursor: not-allowed;
    }

    .student-modal-body .form-group-simple.full-row {
        width: 100%;
    }


.student-modal-body .form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 980px) {
    .student-modal-body .form-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .student-modal-body .form-grid-3 {
        grid-template-columns: 1fr;
    }
}

.report-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
}

    .report-loading-overlay.show {
        display: flex;
    }

.report-loading-card {
    width: min(420px, 100%);
    padding: 26px 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    text-align: center;
}

.report-loading-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    border: 4px solid #fed7aa;
    border-top-color: #f97316;
    animation: reportSpin 0.85s linear infinite;
}

.report-loading-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.report-loading-card p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

@keyframes reportSpin {
    to {
        transform: rotate(360deg);
    }
}

.void-row {
    background: #fff1f2;
}

.void-amount {
    color: #991b1b;
    text-decoration: line-through;
}

.form-line textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

    .form-line textarea:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
    }



/* =========================================================
   FLOATING ACTION DROPDOWN FIX
   Use this when action menu is hidden when only 1 row exists
========================================================= */

.table-action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-menu {
    display: none;
    min-width: 210px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    z-index: 99999;
}

.table-action-dropdown.open .action-dropdown-menu {
    display: block;
}

.action-dropdown-menu.floating {
    position: fixed !important;
}

.action-dropdown-menu a,
.action-dropdown-menu span {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

    .action-dropdown-menu a:hover {
        background: #fff7ed;
        color: #ea580c;
    }

.action-dropdown-menu .dropdown-note {
    color: #64748b;
    font-size: 12px;
    white-space: normal;
}