/* Cleaned CSS: duplicate selector blocks and repeated properties consolidated. */

: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-shell {
    display: flex;
    min-height: 100vh;
}

.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-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 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;
}

.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%;
}

.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;
    }

.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;
    }

.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-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-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);
}

.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;
}

.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 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 {
    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);
    }
}

@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-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 {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

    .login-brand-simple img {
        margin-bottom: 14px;
        width: 82px;
        height: 82px;
        object-fit: contain;
        border-radius: 24px;
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    }

.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-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;
    }

.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-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;
    }

.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;
        }

.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-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-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;
        }
}

.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-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-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;
    }
}

.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 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 {
        box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
        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-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;
        }
}

.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-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 {
    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;
    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-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;
    }

.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;
    }
}

@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);
    }

.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-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-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%;
    }

.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);
    }

@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;
}

@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%;
    }
}

.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;
}

.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-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;
    }

.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;
    }

@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-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;
}

    .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 {
            margin-bottom: 7px;
            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%;
        }
}

@keyframes reportSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .glass-gauge-panel {
        grid-template-columns: 1fr;
    }
}

.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 {
        inset: 1px;
        border-radius: 31px;
        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;
    }
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
}

.nav-item {
    color: #CBD5E1;
    border-radius: 16px;
    font-weight: 700;
    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: 18px 12px 8px;
    color: #9CA3AF;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 0.72rem;
}

.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;
    overflow-x: hidden;
    height: 100vh;
    overflow-y: auto;
}

.sidebar-note {
    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;
    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;
    }

.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-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 {
    line-height: 1.45;
    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);
    }

.table-action-dropdown {
    text-align: left;
    position: relative;
    display: inline-block;
}

.action-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 190px;
    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 {
    gap: 4px;
    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;
}

.quick-payment-card {
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 70%);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.08);
}

.quick-payment-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    .quick-payment-header h4, .section-divider h4 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 800;
    }

    .quick-payment-header p, .section-divider p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 14px;
    }

.section-divider {
    margin: 24px 0 14px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.payment-form {
    margin-top: 18px;
}

.student-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

    .student-summary-card > div {
        padding: 16px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
    }

    .student-summary-card span {
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .student-summary-card strong {
        color: #0f172a;
        font-size: 15px;
    }

.form-grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    color: #0f172a;
    font-size: 14px;
    outline: none;
    background: #ffffff;
}

    .form-control:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.payment-total-card {
    border: 1px solid #FED7AA;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: 16px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .payment-total-card span {
        font-weight: 800;
        font-size: 14px;
        color: #cbd5e1;
    }

    .payment-total-card strong {
        color: #EA580C;
        font-size: 24px;
        font-weight: 900;
    }

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.empty-card span {
    display: block;
    margin-top: 6px;
    color: #64748b;
}

@media (max-width: 900px) {
    .student-summary-card, .form-grid.two {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

        .form-actions .btn {
            width: 100%;
        }
}

.clickable-stat {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

    .clickable-stat::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 36%);
        opacity: 0;
        transition: opacity 0.18s ease;
        pointer-events: none;
    }

    .clickable-stat:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 58px rgba(15, 23, 42, 0.18);
        border-color: rgba(249, 115, 22, 0.45);
        filter: saturate(1.04);
    }

        .clickable-stat:hover::after {
            opacity: 1;
        }

        .clickable-stat:hover .stat-top em {
            transform: translateX(4px) translateY(-4px);
            background: rgba(249, 115, 22, 0.12);
        }

    .clickable-stat .stat-top em {
        width: 32px;
        height: 32px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.18s ease, background 0.18s ease;
    }

.registrar-overview-clickable {
    width: 100%;
    text-align: left;
    border: 1px solid #e5e7eb;
    font-family: inherit;
}

    .registrar-overview-clickable:hover {
        cursor: pointer;
    }

.registrar-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(7px);
}

    .registrar-modal-backdrop.show {
        display: flex;
    }

.registrar-modal-card {
    width: min(880px, 100%);
    max-height: 88vh;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.30);
    overflow: hidden;
}

.registrar-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.18), transparent 36%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border-bottom: 1px solid #fed7aa;
}

    .registrar-modal-header span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .registrar-modal-header h3 {
        margin: 4px 0 5px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .registrar-modal-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

.registrar-modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #ffffff;
    color: #9a3412;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .registrar-modal-close:hover {
        transform: rotate(90deg);
        background: #fff7ed;
        color: #ea580c;
    }

.registrar-modal-body {
    padding: 18px 22px 22px;
    max-height: calc(88vh - 110px);
    overflow: auto;
}

.registrar-modal-empty {
    padding: 26px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.dashboard-recent-payment-card {
    overflow: visible;
}

.dashboard-payment-table-wrap {
    border-radius: 20px;
    overflow: auto;
}

.dashboard-payment-table thead th {
    white-space: nowrap;
}

.dashboard-payment-row {
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .dashboard-payment-row:hover {
        background: #fff7ed;
        transform: translateY(-1px);
        box-shadow: inset 4px 0 0 #f97316;
    }

.payment-or-block strong, .payment-student-block strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.payment-or-block span, .payment-student-block span, .payment-date-block span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.payment-mode-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0b63b6;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.payment-amount-text {
    color: #ea580c;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.payment-date-block strong {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.payment-cashier-text {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.receipt-btn {
    min-width: 82px;
}

.dashboard-payment-empty {
    padding: 28px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

    .dashboard-payment-empty .empty-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 12px;
        border-radius: 18px;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 950;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
    }

    .dashboard-payment-empty strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .dashboard-payment-empty span {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

@media (max-width: 768px) {
    .dashboard-payment-table {
        min-width: 850px;
    }
}

.dashboard-recent-assessment-card {
    overflow: visible;
}

.dashboard-assessment-table-wrap {
    border-radius: 20px;
    overflow: auto;
}

.dashboard-assessment-table thead th {
    white-space: nowrap;
}

.dashboard-assessment-row {
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .dashboard-assessment-row:hover {
        background: #fff7ed;
        transform: translateY(-1px);
        box-shadow: inset 4px 0 0 #f97316;
    }

.assessment-id-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.assessment-student-block strong, .assessment-level-block strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.assessment-student-block span, .assessment-level-block span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.assessment-amount-text {
    color: #ea580c;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.assessment-date-block strong {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.assessment-user-text {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-assessment-empty {
    padding: 28px;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

    .dashboard-assessment-empty .empty-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto 12px;
        border-radius: 18px;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 950;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.25);
    }

    .dashboard-assessment-empty strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .dashboard-assessment-empty span {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

@media (max-width: 768px) {
    .dashboard-assessment-table {
        min-width: 850px;
    }
}

.premium-activity-card {
    overflow: visible;
}

.premium-activity-list {
    display: grid;
    gap: 12px;
}

.premium-activity-item {
    display: grid;
    grid-template-columns: minmax(230px, 1.1fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .premium-activity-item:hover {
        transform: translateY(-3px);
        border-color: rgba(249, 115, 22, 0.35);
        background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 34%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
        box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
    }

.activity-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.activity-badge {
    min-width: 82px;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

    .activity-badge.assessment {
        background: #fff7ed;
        color: #ea580c;
        border: 1px solid #fed7aa;
    }

    .activity-badge.payment {
        background: linear-gradient(135deg, #fff7ed, #ffffff);
        color: #c2410c;
        border: 1px solid #fed7aa;
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.08);
    }

.activity-person {
    min-width: 0;
}

    .activity-person strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .activity-person span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 750;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.activity-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 12px;
    min-width: 0;
}

    .activity-meta div {
        min-width: 0;
    }

    .activity-meta span {
        display: block;
        color: #94a3b8;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 4px;
    }

    .activity-meta strong {
        display: block;
        color: #334155;
        font-size: 12px;
        font-weight: 850;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.mode-pill {
    display: inline-flex !important;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #0b63b6 !important;
    border: 1px solid #bfdbfe;
    font-size: 11px !important;
    font-weight: 950 !important;
}

.activity-action {
    display: flex;
    justify-content: flex-end;
}

.premium-action-link {
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .premium-action-link:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

.premium-empty-state {
    padding: 30px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.premium-empty-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.premium-empty-state strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.premium-empty-state span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

@media (max-width: 1100px) {
    .premium-activity-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .activity-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-action {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .activity-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-meta {
        grid-template-columns: 1fr;
    }

    .premium-action-link {
        width: 100%;
    }

    .payment-action-group {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex-wrap: wrap;
    }

    .premium-action-link.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .premium-action-link.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .payment-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: none;
        justify-content: flex-end;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(5px);
    }

        .payment-drawer-backdrop.show {
            display: flex;
        }

    .payment-details-drawer {
        width: min(520px, 100%);
        height: 100vh;
        background: #ffffff;
        border-left: 1px solid #fed7aa;
        box-shadow: -28px 0 70px rgba(15, 23, 42, 0.25);
        transform: translateX(100%);
        transition: transform 0.24s ease;
        display: flex;
        flex-direction: column;
    }

        .payment-details-drawer.show {
            transform: translateX(0);
        }

    .payment-drawer-header {
        padding: 22px 24px;
        border-bottom: 1px solid #fed7aa;
        background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 38%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
        display: flex;
        justify-content: space-between;
        gap: 14px;
    }

        .payment-drawer-header span {
            color: #ea580c;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .payment-drawer-header h3 {
            margin: 5px 0 4px;
            color: #0f172a;
            font-size: 22px;
            font-weight: 950;
            letter-spacing: -0.04em;
        }

        .payment-drawer-header p {
            margin: 0;
            color: #64748b;
            font-size: 13px;
            font-weight: 700;
        }

    .payment-drawer-close {
        width: 40px;
        height: 40px;
        border: 1px solid #fed7aa;
        border-radius: 14px;
        background: #ffffff;
        color: #9a3412;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
        transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
    }

        .payment-drawer-close:hover {
            transform: rotate(90deg);
            background: #fff7ed;
            color: #ea580c;
        }

    .payment-drawer-loading {
        margin: 22px;
        padding: 24px;
        border-radius: 20px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 14px;
        font-weight: 800;
        text-align: center;
    }

    .payment-drawer-content {
        padding: 20px 22px 24px;
        overflow: auto;
        flex: 1;
    }

    .payment-void-banner {
        margin-bottom: 14px;
        padding: 14px 16px;
        border-radius: 18px;
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

        .payment-void-banner strong {
            display: block;
            font-size: 12px;
            font-weight: 950;
            letter-spacing: 0.04em;
        }

        .payment-void-banner span {
            display: block;
            margin-top: 4px;
            font-size: 12px;
            font-weight: 700;
        }

    .payment-drawer-profile {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        border-radius: 22px;
        background: linear-gradient(135deg, #fff7ed, #ffffff);
        border: 1px solid #fed7aa;
        box-shadow: 0 14px 34px rgba(249, 115, 22, 0.08);
    }

        .payment-drawer-profile span, .payment-drawer-grid span {
            display: block;
            color: #64748b;
            font-size: 11px;
            font-weight: 900;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }

        .payment-drawer-profile strong {
            display: block;
            margin-top: 3px;
            color: #0f172a;
            font-size: 16px;
            font-weight: 950;
        }

        .payment-drawer-profile small {
            display: block;
            margin-top: 3px;
            color: #64748b;
            font-size: 12px;
            font-weight: 750;
        }

    .payment-drawer-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 14px;
    }

        .payment-drawer-grid div {
            padding: 14px;
            border-radius: 18px;
            background: #f8fafc;
            border: 1px solid #e5e7eb;
        }

        .payment-drawer-grid strong {
            display: block;
            margin-top: 5px;
            color: #0f172a;
            font-size: 13px;
            font-weight: 900;
            word-break: break-word;
        }

    .drawer-money {
        color: #ea580c !important;
        font-size: 15px !important;
        font-weight: 950 !important;
    }

    .payment-drawer-section-title {
        margin: 20px 0 10px;
    }

        .payment-drawer-section-title h4 {
            margin: 0;
            color: #0f172a;
            font-size: 15px;
            font-weight: 950;
        }

        .payment-drawer-section-title p {
            margin: 4px 0 0;
            color: #64748b;
            font-size: 12px;
            font-weight: 650;
        }

    .payment-line-list {
        display: grid;
        gap: 10px;
    }

    .payment-line-item {
        display: flex;
        justify-content: space-between;
        gap: 14px;
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

        .payment-line-item strong {
            color: #0f172a;
            font-size: 13px;
            font-weight: 950;
        }

        .payment-line-item span {
            display: block;
            margin-top: 3px;
            color: #64748b;
            font-size: 11px;
            font-weight: 800;
        }

        .payment-line-item > strong:last-child {
            color: #ea580c;
            white-space: nowrap;
        }

    .payment-line-empty {
        padding: 18px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px dashed #cbd5e1;
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    .payment-drawer-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 20px;
    }

        .payment-drawer-actions .premium-action-link {
            min-width: 110px;
        }

    @media (max-width: 640px) {
        .payment-details-drawer {
            width: 100%;
        }

        .payment-drawer-grid {
            grid-template-columns: 1fr;
        }

        .payment-drawer-actions {
            flex-direction: column;
        }

            .payment-drawer-actions .premium-action-link {
                width: 100%;
            }
    }

    .payment-avatar {
        width: 50px;
        height: 50px;
        min-width: 50px;
        border-radius: 18px;
        background: linear-gradient(135deg, #fff7ed, #ffffff);
        color: #ea580c;
        border: 1px solid #fed7aa;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 15px;
        font-weight: 950;
        letter-spacing: 0.02em;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.10);
    }
}

.cashier-settings-page {
    display: grid;
    gap: 18px;
}

.cashier-settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .cashier-settings-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .cashier-settings-hero > div {
        position: relative;
        z-index: 1;
    }

.cashier-back-link {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .cashier-back-link:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.cashier-settings-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cashier-settings-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.cashier-settings-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.cashier-summary-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-content: center;
}

    .cashier-summary-card div {
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #fed7aa;
    }

    .cashier-summary-card span {
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .cashier-summary-card strong {
        display: block;
        margin-top: 5px;
        color: #ea580c;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.cashier-alert {
    padding: 15px 18px;
    border-radius: 20px;
    display: grid;
    gap: 3px;
}

    .cashier-alert.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .cashier-alert.error {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

    .cashier-alert strong {
        font-size: 13px;
        font-weight: 950;
    }

    .cashier-alert span {
        font-size: 13px;
        font-weight: 700;
    }

.cashier-tabs {
    padding: 8px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cashier-tab {
    min-height: 40px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .cashier-tab:hover {
        transform: translateY(-1px);
        background: #fff7ed;
        color: #ea580c;
    }

    .cashier-tab.active {
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

.cashier-tab-panel {
    display: none;
}

    .cashier-tab-panel.active {
        display: block;
    }

.cashier-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.cashier-list-card, .cashier-form-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.cashier-card-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.07), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

    .cashier-card-header.compact {
        padding: 18px 20px;
    }

    .cashier-card-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .cashier-card-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .cashier-card-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.cashier-table-wrap {
    overflow-x: auto;
}

.cashier-table {
    width: 100%;
    border-collapse: collapse;
}

    .cashier-table th {
        padding: 13px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 950;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .cashier-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        vertical-align: middle;
    }

    .cashier-table tbody tr {
        transition: background 0.18s ease;
    }

        .cashier-table tbody tr:hover {
            background: #fff7ed;
        }

    .cashier-table td strong {
        color: #0f172a;
        font-weight: 950;
    }

.money-text {
    font-size: 14px !important;
    font-weight: 950 !important;
    color: #ea580c !important;
}

.muted-text {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.cashier-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

    .cashier-status.active {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .cashier-status.inactive {
        background: #f8fafc;
        color: #64748b;
        border: 1px solid #e5e7eb;
    }

.action-col {
    width: 130px;
    text-align: right !important;
    white-space: nowrap;
}

.cashier-row-actions {
    display: inline-flex;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
}

    .cashier-row-actions form {
        margin: 0;
    }

.cashier-action-btn {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .cashier-action-btn:hover {
        transform: translateY(-1px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

    .cashier-action-btn.danger {
        color: #991b1b;
        border-color: #fecaca;
    }

        .cashier-action-btn.danger:hover {
            background: #fef2f2;
            border-color: #fca5a5;
            color: #b91c1c;
            box-shadow: 0 12px 24px rgba(239, 68, 68, 0.12);
        }

.cashier-entry-form {
    padding: 20px;
    display: grid;
    gap: 14px;
}

.cashier-field {
    display: grid;
    gap: 7px;
}

    .cashier-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .cashier-field input {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .cashier-field input:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

        .cashier-field input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

        .cashier-field input.locked-code, .cashier-field input[readonly] {
            background: #f8fafc;
            border-color: #cbd5e1;
            color: #64748b;
            cursor: not-allowed;
            box-shadow: none;
        }

            .cashier-field input.locked-code:focus, .cashier-field input[readonly]:focus {
                border-color: #cbd5e1;
                box-shadow: none;
                background: #f8fafc;
            }

.code-lock-note {
    display: block;
    margin-top: -2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.cashier-switch-row {
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

    .cashier-switch-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #f97316;
    }

    .cashier-switch-row strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .cashier-switch-row small {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.35;
    }

.cashier-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.cashier-btn {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .cashier-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .cashier-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .cashier-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .cashier-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

.cashier-empty {
    padding: 28px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

@media (max-width: 1180px) {
    .cashier-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .cashier-settings-hero {
        grid-template-columns: 1fr;
    }

    .cashier-summary-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cashier-settings-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .cashier-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .cashier-tab {
        width: 100%;
    }

    .cashier-form-actions {
        flex-direction: column;
    }

    .cashier-btn {
        width: 100%;
    }

    .cashier-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cashier-action-btn {
        width: 100%;
    }
}

.settings-page {
    display: grid;
    gap: 18px;
}

.settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .settings-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

.settings-hero-content {
    position: relative;
    z-index: 1;
}

    .settings-hero-content span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .settings-hero-content h2 {
        margin: 8px 0 8px;
        color: #0f172a;
        font-size: clamp(26px, 4vw, 38px);
        font-weight: 950;
        letter-spacing: -0.055em;
        line-height: 1;
    }

    .settings-hero-content p {
        max-width: 720px;
        margin: 0;
        color: #64748b;
        font-size: 14px;
        font-weight: 650;
        line-height: 1.6;
    }

.settings-search-panel {
    position: relative;
    z-index: 1;
    align-self: center;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

    .settings-search-panel label {
        display: block;
        margin-bottom: 8px;
        color: #9a3412;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.settings-search-box {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    padding: 0 14px;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

    .settings-search-box:focus-within {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

    .settings-search-box span {
        color: #f97316;
        font-size: 20px;
        font-weight: 950;
    }

    .settings-search-box input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: #0f172a;
        font-size: 14px;
        font-weight: 750;
    }

        .settings-search-box input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

.settings-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.settings-summary-card {
    padding: 18px 20px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

    .settings-summary-card span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .settings-summary-card strong {
        display: block;
        margin-top: 6px;
        color: #0f172a;
        font-size: 17px;
        font-weight: 950;
    }

    .settings-summary-card small {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

.settings-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-top: 4px;
}

    .settings-section-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 19px;
        font-weight: 950;
        letter-spacing: -0.025em;
    }

    .settings-section-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

    .settings-section-header > span {
        min-height: 32px;
        padding: 8px 12px;
        border-radius: 999px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        color: #c2410c;
        font-size: 12px;
        font-weight: 950;
        white-space: nowrap;
    }

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.settings-card {
    min-height: 210px;
    padding: 18px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.055), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease, background 0.20s ease;
}

    .settings-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 42%), linear-gradient(135deg, rgba(255, 247, 237, 0.80), rgba(255, 255, 255, 0));
        opacity: 0;
        transition: opacity 0.20s ease;
        pointer-events: none;
    }

    .settings-card:hover {
        transform: translateY(-5px);
        border-color: rgba(249, 115, 22, 0.45);
        background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
        box-shadow: 0 26px 64px rgba(15, 23, 42, 0.12);
    }

        .settings-card:hover::before {
            opacity: 1;
        }

    .settings-card.important {
        border-color: #fed7aa;
        background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 34%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    }

.settings-card-top, .settings-card-body, .settings-card-footer {
    position: relative;
    z-index: 1;
}

.settings-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.settings-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: -0.02em;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.10);
}

.settings-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 950;
    transition: transform 0.20s ease, color 0.20s ease, background 0.20s ease, border-color 0.20s ease;
}

.settings-card:hover .settings-arrow {
    transform: translateX(4px);
    color: #ea580c;
    background: #fff7ed;
    border-color: #fed7aa;
}

.settings-card-body h3 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.settings-card-body p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.settings-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

    .settings-card-footer span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
    }

    .settings-card-footer strong {
        color: #ea580c;
        font-size: 12px;
        font-weight: 950;
    }

.settings-empty {
    padding: 32px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    text-align: center;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

    .settings-empty div {
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .settings-empty span {
        display: block;
        margin-top: 6px;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

@media (max-width: 1100px) {
    .settings-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .settings-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .settings-summary-grid {
        grid-template-columns: 1fr;
    }

    .settings-section-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .settings-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-card {
        min-height: auto;
    }
}

.company-settings-page {
    display: grid;
    gap: 18px;
}

.company-settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .company-settings-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .company-settings-hero > div {
        position: relative;
        z-index: 1;
    }

.company-back-link {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .company-back-link:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.company-settings-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.company-settings-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.company-settings-hero p {
    max-width: 820px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

    .company-settings-hero p strong {
        color: #9a3412;
        font-weight: 950;
    }

.company-logo-preview-card {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-logo-preview {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.12);
}

    .company-logo-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }

.company-logo-initial {
    width: 100%;
    height: 100%;
    color: #ea580c;
    font-size: 14px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.company-logo-preview-card strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
}

.company-logo-preview-card span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.company-alert {
    padding: 15px 18px;
    border-radius: 20px;
    display: grid;
    gap: 3px;
}

    .company-alert.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .company-alert.error {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

    .company-alert strong {
        font-size: 13px;
        font-weight: 950;
    }

    .company-alert span {
        font-size: 13px;
        font-weight: 700;
    }

.company-settings-form {
    display: grid;
    gap: 18px;
}

.company-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.company-settings-main {
    display: grid;
    gap: 16px;
}

.company-settings-side {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 18px;
}

.company-section-card, .company-side-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.company-section-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.07), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

    .company-section-header span, .company-side-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .company-section-header h3, .company-side-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .company-section-header p, .company-side-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.company-form-grid {
    padding: 20px 22px 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.company-field {
    display: grid;
    gap: 7px;
}

    .company-field.wide {
        grid-column: span 2;
    }

    .company-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .company-field input, .company-field textarea {
        width: 100%;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .company-field input {
        min-height: 44px;
        padding: 0 14px;
    }

    .company-field textarea {
        padding: 13px 14px;
        resize: vertical;
    }

        .company-field input:focus, .company-field textarea:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

        .company-field input::placeholder, .company-field textarea::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

.field-validation {
    display: block;
    margin-top: 5px;
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
}

.company-side-card {
    padding: 18px;
}

.company-side-header {
    margin-bottom: 14px;
}

.company-logo-upload-preview {
    width: 150px;
    height: 150px;
    margin: 10px auto 16px;
    border-radius: 34px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 36%), #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.12);
}

    .company-logo-upload-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 14px;
    }

.company-logo-large-initial {
    width: 100%;
    height: 100%;
    color: #ea580c;
    font-size: 18px;
    font-weight: 950;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.company-upload-box {
    min-height: 78px;
    padding: 16px;
    border-radius: 20px;
    border: 1px dashed #fb923c;
    background: #fff7ed;
    color: #9a3412;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .company-upload-box:hover {
        transform: translateY(-2px);
        background: #ffedd5;
        border-color: #f97316;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.14);
    }

    .company-upload-box strong {
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .company-upload-box span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

    .company-upload-box input {
        display: none;
    }

.company-current-logo {
    margin-top: 12px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: grid;
    gap: 4px;
}

    .company-current-logo span {
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .company-current-logo strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 800;
        word-break: break-all;
    }

.company-usage-list {
    display: grid;
    gap: 10px;
}

    .company-usage-list div {
        padding: 13px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .company-usage-list strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .company-usage-list span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

.company-reminder {
    border-color: #fed7aa;
    background: #fff7ed;
}

    .company-reminder strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .company-reminder span {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.company-save-bar {
    position: sticky;
    bottom: 14px;
    z-index: 10;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #fed7aa;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

    .company-save-bar strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

    .company-save-bar span {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.company-save-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-btn {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .company-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .company-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .company-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .company-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

@media (max-width: 1100px) {
    .company-settings-hero, .company-settings-grid {
        grid-template-columns: 1fr;
    }

    .company-settings-side {
        position: static;
    }
}

@media (max-width: 768px) {
    .company-form-grid {
        grid-template-columns: 1fr;
    }

    .company-field.wide {
        grid-column: span 1;
    }

    .company-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .company-save-actions {
        width: 100%;
    }

    .company-btn {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .company-settings-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .company-logo-preview-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .company-save-actions {
        flex-direction: column;
    }

    .company-btn {
        width: 100%;
    }
}

.account-password-page {
    display: grid;
    gap: 18px;
}

.account-password-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .account-password-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .account-password-hero > div {
        position: relative;
        z-index: 1;
    }

.account-password-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .account-password-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.account-password-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.account-password-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.account-password-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.account-password-summary {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.security-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.12);
}

.account-password-summary strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.account-password-summary span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
}

.account-password-alert {
    padding: 15px 18px;
    border-radius: 20px;
    display: grid;
    gap: 3px;
}

    .account-password-alert.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .account-password-alert strong {
        font-size: 13px;
        font-weight: 950;
    }

    .account-password-alert span {
        font-size: 13px;
        font-weight: 700;
    }

.account-password-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.account-password-card, .account-security-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.account-password-card-header, .account-security-card-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.07), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

    .account-password-card-header span, .account-security-card-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .account-password-card-header h3, .account-security-card-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .account-password-card-header p, .account-security-card-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.account-password-form {
    padding: 20px 22px 22px;
    display: grid;
    gap: 15px;
}

.account-validation-box {
    color: #991b1b;
    font-size: 13px;
    font-weight: 750;
}

    .account-validation-box ul {
        margin: 0;
        padding-left: 18px;
    }

.account-password-field {
    display: grid;
    gap: 7px;
}

    .account-password-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

.account-password-input-wrap {
    min-height: 46px;
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .account-password-input-wrap:focus-within {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        background: #fffaf5;
    }

    .account-password-input-wrap input {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 0;
        outline: 0;
        background: transparent;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
    }

        .account-password-input-wrap input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

.password-toggle-btn {
    min-width: 62px;
    min-height: 34px;
    margin-right: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-family: inherit;
    font-size: 11px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .password-toggle-btn:hover {
        transform: translateY(-1px);
        background: #ffedd5;
        color: #ea580c;
        box-shadow: 0 10px 20px rgba(249, 115, 22, 0.13);
    }

.account-field-error {
    color: #dc2626;
    font-size: 11px;
    font-weight: 800;
}

.password-strength {
    display: grid;
    gap: 5px;
}

.password-strength-track {
    height: 7px;
    border-radius: 999px;
    background: #f1f5f9;
    overflow: hidden;
}

.password-strength-bar {
    width: 0%;
    height: 100%;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 0.18s ease, background 0.18s ease;
}

    .password-strength-bar.weak {
        background: #ef4444;
    }

    .password-strength-bar.medium {
        background: #f97316;
    }

    .password-strength-bar.strong {
        background: #22c55e;
    }

.password-strength span, #passwordStrengthText {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.account-password-reminder {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: grid;
    gap: 4px;
}

    .account-password-reminder strong {
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .account-password-reminder span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.account-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

.account-password-btn {
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .account-password-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .account-password-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .account-password-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .account-password-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

.account-security-card {
    position: sticky;
    top: 18px;
}

.security-tip-list {
    padding: 18px;
    display: grid;
    gap: 10px;
}

    .security-tip-list div {
        padding: 13px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .security-tip-list strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .security-tip-list span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

@media (max-width: 1100px) {
    .account-password-hero, .account-password-grid {
        grid-template-columns: 1fr;
    }

    .account-security-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .account-password-actions {
        flex-direction: column-reverse;
    }

    .account-password-btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .account-password-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .account-password-summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

.account-menu-wrap {
    position: relative;
}

.account-menu-trigger {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

    .account-menu-trigger:hover {
        transform: translateY(-1px);
    }

.account-menu-chevron {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.18s ease, color 0.18s ease;
}

.account-menu-wrap:has(.account-menu.show) .account-menu-chevron {
    transform: rotate(180deg);
    color: #ea580c;
}

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    z-index: 999;
    display: none;
    padding: 8px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

    .account-menu.show {
        display: block;
        animation: accountMenuIn 0.16s ease-out;
    }

@keyframes accountMenuIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.account-menu-header {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-menu-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.account-menu-header strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.25;
}

.account-menu-header span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.account-menu a, .account-menu button {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .account-menu a:hover, .account-menu button:hover {
        background: #fff7ed;
        color: #ea580c;
        transform: translateX(2px);
    }

    .account-menu a i, .account-menu button i {
        color: #f97316;
        font-size: 15px;
    }

.account-menu form {
    margin: 0;
}

@media (max-width: 640px) {
    .account-menu {
        right: 0;
        width: 240px;
    }
}

.secure-logout-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 35%), rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(10px);
}

    .secure-logout-overlay.show {
        display: flex;
        animation: secureLogoutFadeIn 0.22s ease-out;
    }

.secure-logout-card {
    width: min(430px, 100%);
    padding: 28px;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 38%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.32);
    text-align: center;
    animation: secureLogoutCardIn 0.28s ease-out;
}

.secure-logout-icon-wrap {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    position: relative;
    display: grid;
    place-items: center;
}

.secure-logout-spinner {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 4px solid #fed7aa;
    border-top-color: #f97316;
    animation: secureLogoutSpin 0.9s linear infinite;
}

.secure-logout-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 26px;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.secure-logout-card span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.secure-logout-card h3 {
    margin: 8px 0 7px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.secure-logout-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.secure-logout-progress {
    height: 8px;
    margin: 20px 0 12px;
    border-radius: 999px;
    background: #ffedd5;
    overflow: hidden;
}

    .secure-logout-progress div {
        width: 0%;
        height: 100%;
        border-radius: 999px;
        background: linear-gradient(135deg, #f97316, #ea580c);
        transition: width 0.55s ease;
    }

.secure-logout-status {
    min-height: 20px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

@keyframes secureLogoutFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes secureLogoutCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes secureLogoutSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 640px) {
    .secure-logout-card {
        padding: 24px 20px;
        border-radius: 26px;
    }

        .secure-logout-card h3 {
            font-size: 20px;
        }
}

.session-timeout-overlay {
    position: fixed;
    inset: 0;
    z-index: 21000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 35%), rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(10px);
}

    .session-timeout-overlay.show {
        display: flex;
        animation: sessionTimeoutFadeIn 0.22s ease-out;
    }

.session-timeout-card {
    width: min(460px, 100%);
    padding: 28px;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.13), transparent 38%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.34);
    text-align: center;
    animation: sessionTimeoutCardIn 0.28s ease-out;
}

.session-timeout-icon-wrap {
    width: 82px;
    height: 82px;
    margin: 0 auto 16px;
    position: relative;
    display: grid;
    place-items: center;
}

.session-timeout-pulse {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    animation: sessionTimeoutPulse 1.35s ease-in-out infinite;
}

.session-timeout-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.28);
}

.session-timeout-card > span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.session-timeout-card h3 {
    margin: 8px 0 7px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.session-timeout-card p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.session-timeout-countdown {
    margin: 20px auto 18px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.10);
    display: grid;
    gap: 2px;
}

    .session-timeout-countdown strong {
        color: #ea580c;
        font-size: 34px;
        font-weight: 950;
        letter-spacing: -0.05em;
        line-height: 1;
    }

    .session-timeout-countdown span {
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.session-timeout-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.session-timeout-btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .session-timeout-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .session-timeout-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .session-timeout-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .session-timeout-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

@keyframes sessionTimeoutFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes sessionTimeoutCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes sessionTimeoutPulse {
    0% {
        transform: scale(0.90);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.15);
        opacity: 0;
    }

    100% {
        transform: scale(0.90);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .session-timeout-card {
        padding: 24px 20px;
        border-radius: 26px;
    }

        .session-timeout-card h3 {
            font-size: 20px;
        }

    .session-timeout-actions {
        flex-direction: column-reverse;
    }

    .session-timeout-btn {
        width: 100%;
    }
}

.login-activity-page {
    display: grid;
    gap: 18px;
}

.login-activity-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .login-activity-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .login-activity-hero > div {
        position: relative;
        z-index: 1;
    }

.login-activity-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .login-activity-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.login-activity-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.login-activity-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.login-activity-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.login-activity-summary {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .login-activity-summary div {
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #fed7aa;
    }

    .login-activity-summary span {
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .login-activity-summary strong {
        display: block;
        margin-top: 5px;
        color: #ea580c;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.login-filter-card, .login-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.login-filter-form {
    padding: 18px;
    display: grid;
    grid-template-columns: 180px 180px 220px minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.login-field {
    display: grid;
    gap: 7px;
}

    .login-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .login-field input, .login-field select {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .login-field input:focus, .login-field select:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

        .login-field input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

.login-filter-actions {
    display: flex;
    gap: 8px;
}

.login-btn {
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .login-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .login-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .login-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .login-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

.login-table-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.07), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .login-table-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .login-table-header h3 {
        margin: 6px 0 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .login-table-header > strong {
        min-height: 32px;
        padding: 8px 12px;
        border-radius: 999px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        color: #c2410c;
        font-size: 12px;
        font-weight: 950;
        white-space: nowrap;
    }

.login-table-wrap {
    overflow-x: auto;
}

.login-table {
    width: 100%;
    border-collapse: collapse;
}

    .login-table th {
        padding: 13px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 950;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .login-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        vertical-align: middle;
    }

    .login-table tbody tr {
        transition: background 0.18s ease;
    }

        .login-table tbody tr:hover {
            background: #fff7ed;
        }

.login-user-cell {
    display: grid;
    gap: 3px;
}

    .login-user-cell strong {
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .login-user-cell span {
        color: #64748b;
        font-size: 12px;
        font-weight: 750;
    }

.login-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

    .login-status.success {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .login-status.failed {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .login-status.warning {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fde68a;
    }

    .login-status.info {
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
    }

    .login-status.neutral {
        background: #f8fafc;
        color: #475569;
        border: 1px solid #e5e7eb;
    }

.login-ip, .login-device, .login-remarks {
    color: #475569;
    font-size: 12px;
    font-weight: 750;
}

.login-empty {
    padding: 34px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .login-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .login-field.wide {
        grid-column: span 2;
    }

    .login-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .login-activity-hero {
        grid-template-columns: 1fr;
    }

    .login-activity-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .login-activity-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .login-filter-form {
        grid-template-columns: 1fr;
    }

    .login-field.wide, .login-filter-actions {
        grid-column: span 1;
    }

    .login-filter-actions {
        flex-direction: column;
    }

    .login-btn {
        width: 100%;
    }

    .login-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.users-security-page {
    display: grid;
    gap: 18px;
}

.users-security-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .users-security-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .users-security-hero > div {
        position: relative;
        z-index: 1;
    }

.users-security-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .users-security-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.users-security-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.users-security-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.users-security-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.users-security-summary {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.security-summary-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.users-security-summary strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.users-security-summary span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
}

.users-security-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.users-security-card {
    min-height: 230px;
    padding: 18px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.055), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease, background 0.20s ease, opacity 0.20s ease;
}

    .users-security-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 42%), linear-gradient(135deg, rgba(255, 247, 237, 0.80), rgba(255, 255, 255, 0));
        opacity: 0;
        transition: opacity 0.20s ease;
        pointer-events: none;
    }

    .users-security-card:hover {
        transform: translateY(-5px);
        border-color: rgba(249, 115, 22, 0.45);
        background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
        box-shadow: 0 26px 64px rgba(15, 23, 42, 0.12);
    }

        .users-security-card:hover::before {
            opacity: 1;
        }

    .users-security-card.important {
        border-color: #fed7aa;
        background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 34%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    }

    .users-security-card.disabled {
        opacity: 0.78;
    }

        .users-security-card.disabled:hover {
            transform: translateY(-2px);
        }

.users-security-card-top, .users-security-card-body, .users-security-card-footer {
    position: relative;
    z-index: 1;
}

.users-security-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.users-security-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.10);
}

.users-security-arrow {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 950;
    transition: transform 0.20s ease, color 0.20s ease, background 0.20s ease, border-color 0.20s ease;
}

.users-security-card:hover .users-security-arrow {
    transform: translateX(4px);
    color: #ea580c;
    background: #fff7ed;
    border-color: #fed7aa;
}

.users-security-card-body span {
    display: block;
    margin-bottom: 6px;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.users-security-card-body h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.users-security-card-body p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.users-security-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

    .users-security-card-footer span {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
    }

.users-security-card.important .users-security-card-footer span {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.users-security-card-footer strong {
    color: #ea580c;
    font-size: 12px;
    font-weight: 950;
}

@media (max-width: 1100px) {
    .users-security-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-security-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .users-security-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .users-security-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .users-security-grid {
        grid-template-columns: 1fr;
    }

    .users-security-card {
        min-height: auto;
    }
}

.user-accounts-page {
    display: grid;
    gap: 18px;
}

.user-accounts-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .user-accounts-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .user-accounts-hero > div {
        position: relative;
        z-index: 1;
    }

.user-accounts-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .user-accounts-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.user-accounts-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.user-accounts-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.user-accounts-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.user-accounts-summary {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .user-accounts-summary div {
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #fed7aa;
    }

    .user-accounts-summary span {
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .user-accounts-summary strong {
        display: block;
        margin-top: 5px;
        color: #ea580c;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.user-filter-card, .user-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.user-filter-form {
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px auto;
    gap: 12px;
    align-items: end;
}

.user-field {
    display: grid;
    gap: 7px;
}

    .user-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .user-field input, .user-field select {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .user-field input:focus, .user-field select:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

        .user-field input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

.user-filter-actions {
    display: flex;
    gap: 8px;
}

.user-btn {
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .user-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .user-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .user-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .user-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

.user-table-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.07), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .user-table-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .user-table-header h3 {
        margin: 6px 0 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .user-table-header > strong {
        min-height: 32px;
        padding: 8px 12px;
        border-radius: 999px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        color: #c2410c;
        font-size: 12px;
        font-weight: 950;
        white-space: nowrap;
    }

.user-table-wrap {
    overflow-x: auto;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

    .user-table th {
        padding: 13px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 950;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .user-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        vertical-align: middle;
    }

    .user-table tbody tr {
        transition: background 0.18s ease;
    }

        .user-table tbody tr:hover {
            background: #fff7ed;
        }

.user-account-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.user-account-cell strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.user-account-cell span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.user-role, .user-status {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

    .user-role.admin {
        background: #fff7ed;
        color: #c2410c;
        border: 1px solid #fed7aa;
    }

    .user-role.registrar {
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
    }

    .user-role.cashier {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .user-role.user {
        background: #f8fafc;
        color: #475569;
        border: 1px solid #e5e7eb;
    }

    .user-status.active {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .user-status.inactive {
        background: #f8fafc;
        color: #64748b;
        border: 1px solid #e5e7eb;
    }

.user-muted {
    color: #475569;
    font-size: 12px;
    font-weight: 750;
}

.user-empty {
    padding: 34px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .user-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-field.wide {
        grid-column: span 2;
    }

    .user-filter-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }

    .user-accounts-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .user-accounts-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .user-accounts-summary {
        grid-template-columns: 1fr;
    }

    .user-filter-form {
        grid-template-columns: 1fr;
    }

    .user-field.wide, .user-filter-actions {
        grid-column: span 1;
    }

    .user-filter-actions {
        flex-direction: column;
    }

    .user-btn {
        width: 100%;
    }

    .user-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.user-action-col {
    text-align: right !important;
    white-space: nowrap;
}

.user-details-btn {
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .user-details-btn:hover {
        transform: translateY(-2px);
        background: #ffedd5;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

.user-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20010;
    display: none;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(6px);
}

    .user-drawer-backdrop.show {
        display: block;
        animation: userDrawerBackdropIn 0.18s ease-out;
    }

.user-account-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(460px, 100%);
    height: 100vh;
    z-index: 20020;
    background: #ffffff;
    border-left: 1px solid #fed7aa;
    box-shadow: -26px 0 70px rgba(15, 23, 42, 0.20);
    transform: translateX(100%);
    transition: transform 0.26s ease;
    display: flex;
    flex-direction: column;
}

    .user-account-drawer.show {
        transform: translateX(0);
    }

body.drawer-open {
    overflow: hidden;
}

.user-drawer-header {
    padding: 22px;
    border-bottom: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 38%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.user-drawer-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.user-drawer-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.24);
}

.user-drawer-profile span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.user-drawer-profile h3 {
    margin: 5px 0 3px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.user-drawer-profile p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.user-drawer-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .user-drawer-close:hover {
        transform: rotate(4deg) scale(1.04);
        background: #fff7ed;
        color: #ea580c;
    }

.user-drawer-body {
    padding: 18px;
    overflow-y: auto;
    display: grid;
    gap: 14px;
}

.user-drawer-status-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-drawer-section {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

    .user-drawer-section > span {
        display: block;
        margin-bottom: 12px;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

.user-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

    .user-detail-grid div {
        padding: 12px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .user-detail-grid label {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .user-detail-grid strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        word-break: break-word;
    }

.user-drawer-actions {
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.user-drawer-btn {
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .user-drawer-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.14);
    }

    .user-drawer-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .user-drawer-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
        }

    .user-drawer-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

    .user-drawer-btn.danger {
        color: #991b1b;
        border-color: #fecaca;
        background: #ffffff;
    }

        .user-drawer-btn.danger:hover {
            color: #b91c1c;
            border-color: #fca5a5;
            background: #fef2f2;
            box-shadow: 0 14px 28px rgba(239, 68, 68, 0.12);
        }

@keyframes userDrawerBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .user-account-drawer {
        width: 100%;
    }

    .user-drawer-header {
        padding: 18px;
    }

    .user-drawer-body {
        padding: 14px;
    }
}

.user-alert {
    padding: 15px 18px;
    border-radius: 20px;
    display: grid;
    gap: 3px;
}

    .user-alert.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .user-alert.error {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

    .user-alert strong {
        font-size: 13px;
        font-weight: 950;
    }

    .user-alert span {
        font-size: 13px;
        font-weight: 700;
    }

.user-reset-password-form {
    margin: 0;
}

    .user-reset-password-form .user-drawer-btn {
        width: 100%;
    }

.edit-access-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(8px);
}

    .edit-access-backdrop.show {
        display: flex;
        animation: editAccessFadeIn 0.18s ease-out;
    }

.edit-access-card {
    width: min(520px, 100%);
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    animation: editAccessCardIn 0.22s ease-out;
}

.edit-access-header {
    padding: 22px 24px;
    border-bottom: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 38%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

    .edit-access-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .edit-access-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .edit-access-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 750;
    }

.edit-access-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

    .edit-access-close:hover {
        background: #fff7ed;
        color: #ea580c;
    }

.edit-access-body {
    padding: 18px 24px;
}

.edit-access-loading, .edit-access-empty {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.edit-access-role-list {
    display: grid;
    gap: 10px;
}

.edit-access-role-item {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .edit-access-role-item:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        box-shadow: 0 12px 26px rgba(249, 115, 22, 0.12);
    }

    .edit-access-role-item input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: #f97316;
    }

    .edit-access-role-item strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

    .edit-access-role-item span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.edit-access-actions {
    padding: 16px 24px 22px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.edit-access-btn {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .edit-access-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .edit-access-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .edit-access-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
        }

    .edit-access-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

@keyframes editAccessFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes editAccessCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 640px) {
    .edit-access-card {
        border-radius: 24px;
    }

    .edit-access-header, .edit-access-body, .edit-access-actions {
        padding-left: 18px;
        padding-right: 18px;
    }

    .edit-access-actions {
        flex-direction: column-reverse;
    }

    .edit-access-btn {
        width: 100%;
    }
}

.audit-page {
    display: grid;
    gap: 18px;
}

.audit-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .audit-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .audit-hero > div {
        position: relative;
        z-index: 1;
    }

.audit-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .audit-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.audit-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.audit-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.audit-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.audit-summary {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .audit-summary div {
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #fed7aa;
    }

    .audit-summary span {
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .audit-summary strong {
        display: block;
        margin-top: 5px;
        color: #ea580c;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.audit-filter-card, .audit-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.audit-filter-form {
    padding: 18px;
    display: grid;
    grid-template-columns: 170px 170px 210px 220px minmax(260px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.audit-field {
    display: grid;
    gap: 7px;
}

    .audit-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .audit-field input, .audit-field select {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .audit-field input:focus, .audit-field select:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

        .audit-field input::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

.audit-filter-actions {
    display: flex;
    gap: 8px;
}

.audit-btn {
    min-height: 44px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .audit-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .audit-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .audit-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .audit-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

.audit-table-header {
    padding: 20px 22px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.07), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .audit-table-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .audit-table-header h3 {
        margin: 6px 0 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .audit-table-header > strong {
        min-height: 32px;
        padding: 8px 12px;
        border-radius: 999px;
        background: #fff7ed;
        border: 1px solid #fed7aa;
        color: #c2410c;
        font-size: 12px;
        font-weight: 950;
        white-space: nowrap;
    }

.audit-table-wrap {
    overflow-x: auto;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
}

    .audit-table th {
        padding: 13px 16px;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 950;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

    .audit-table td {
        padding: 14px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        vertical-align: middle;
    }

    .audit-table tbody tr {
        transition: background 0.18s ease;
    }

        .audit-table tbody tr:hover {
            background: #fff7ed;
        }

.audit-module {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.audit-action {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

    .audit-action.success {
        background: #f0fdf4;
        color: #166534;
        border: 1px solid #bbf7d0;
    }

    .audit-action.danger {
        background: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }

    .audit-action.warning {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fde68a;
    }

    .audit-action.info {
        background: #eff6ff;
        color: #1d4ed8;
        border: 1px solid #bfdbfe;
    }

    .audit-action.neutral {
        background: #f8fafc;
        color: #475569;
        border: 1px solid #e5e7eb;
    }

.audit-user {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.audit-muted, .audit-remarks {
    color: #475569;
    font-size: 12px;
    font-weight: 750;
}

.audit-remarks {
    max-width: 360px;
    display: inline-block;
    line-height: 1.45;
}

.audit-empty {
    padding: 34px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 1300px) {
    .audit-filter-form {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .audit-field.wide {
        grid-column: span 2;
    }

    .audit-filter-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 900px) {
    .audit-hero {
        grid-template-columns: 1fr;
    }

    .audit-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-field.wide, .audit-filter-actions {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .audit-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .audit-summary {
        grid-template-columns: 1fr;
    }

    .audit-filter-form {
        grid-template-columns: 1fr;
    }

    .audit-field.wide, .audit-filter-actions {
        grid-column: span 1;
    }

    .audit-filter-actions {
        flex-direction: column;
    }

    .audit-btn {
        width: 100%;
    }

    .audit-table-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

.password-policy-page {
    display: grid;
    gap: 18px;
}

.password-policy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .password-policy-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .password-policy-hero > div {
        position: relative;
        z-index: 1;
    }

.password-policy-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .password-policy-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.password-policy-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.password-policy-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.password-policy-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.password-policy-summary {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 14px;
}

.password-policy-summary-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 14px 28px rgba(249, 115, 22, 0.22);
}

.password-policy-summary strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.password-policy-summary span {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.45;
}

.password-policy-alert {
    padding: 15px 18px;
    border-radius: 20px;
    display: grid;
    gap: 3px;
}

    .password-policy-alert.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .password-policy-alert strong {
        font-size: 13px;
        font-weight: 950;
    }

    .password-policy-alert span {
        font-size: 13px;
        font-weight: 700;
    }

.password-policy-form {
    display: grid;
    gap: 18px;
}

.password-policy-validation {
    border-radius: 18px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 750;
}

    .password-policy-validation:empty {
        display: none;
    }

.password-policy-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
    align-items: start;
}

.password-policy-card {
    padding: 18px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.055), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    display: grid;
    gap: 16px;
}

    .password-policy-card.main {
        grid-row: span 3;
    }

.password-policy-card-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

    .password-policy-card-header span {
        display: block;
        margin-bottom: 6px;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .password-policy-card-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.025em;
    }

.password-policy-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 17px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

    .password-policy-card-icon.soft {
        background: #fff7ed;
        color: #ea580c;
        border: 1px solid #fed7aa;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.08);
    }

.password-policy-fields {
    display: grid;
    gap: 12px;
}

.password-policy-field {
    display: grid;
    gap: 7px;
}

    .password-policy-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .password-policy-field input {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .password-policy-field input:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

    .password-policy-field p {
        margin: 2px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.password-policy-error {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 750;
}

.password-policy-toggle {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .password-policy-toggle:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        box-shadow: 0 12px 26px rgba(249, 115, 22, 0.12);
    }

    .password-policy-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .password-policy-toggle > span {
        width: 42px;
        height: 24px;
        min-width: 42px;
        border-radius: 999px;
        background: #e5e7eb;
        position: relative;
        transition: background 0.18s ease;
        margin-top: 1px;
    }

        .password-policy-toggle > span::after {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            left: 3px;
            top: 3px;
            border-radius: 999px;
            background: #ffffff;
            box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
            transition: transform 0.18s ease;
        }

    .password-policy-toggle input:checked + span {
        background: linear-gradient(135deg, #f97316, #ea580c);
    }

        .password-policy-toggle input:checked + span::after {
            transform: translateX(18px);
        }

    .password-policy-toggle strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .password-policy-toggle small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.password-policy-footer {
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

    .password-policy-footer strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

    .password-policy-footer span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.password-policy-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.password-policy-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .password-policy-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .password-policy-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .password-policy-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .password-policy-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

@media (max-width: 1000px) {
    .password-policy-hero {
        grid-template-columns: 1fr;
    }

    .password-policy-grid {
        grid-template-columns: 1fr;
    }

    .password-policy-card.main {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .password-policy-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .password-policy-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .password-policy-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .password-policy-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .password-policy-btn {
        width: 100%;
    }
}

.session-settings-page {
    display: grid;
    gap: 18px;
}

.session-settings-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 18px;
    align-items: stretch;
    padding: 24px;
    border-radius: 28px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 36%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    position: relative;
}

    .session-settings-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        right: -80px;
        top: -90px;
        background: rgba(249, 115, 22, 0.10);
        pointer-events: none;
    }

    .session-settings-hero > div {
        position: relative;
        z-index: 1;
    }

.session-settings-back {
    min-height: 34px;
    padding: 8px 12px;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .session-settings-back:hover {
        transform: translateY(-2px);
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.13);
    }

.session-settings-hero span {
    display: block;
    color: #ea580c;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.session-settings-hero h2 {
    margin: 8px 0 8px;
    color: #0f172a;
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 950;
    letter-spacing: -0.055em;
    line-height: 1;
}

.session-settings-hero p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.session-settings-summary {
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(254, 215, 170, 0.9);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

    .session-settings-summary div {
        padding: 14px;
        border-radius: 18px;
        background: #ffffff;
        border: 1px solid #fed7aa;
    }

    .session-settings-summary span {
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .session-settings-summary strong {
        display: block;
        margin-top: 5px;
        color: #ea580c;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.session-settings-alert {
    padding: 15px 18px;
    border-radius: 20px;
    display: grid;
    gap: 3px;
}

    .session-settings-alert.success {
        border: 1px solid #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .session-settings-alert strong {
        font-size: 13px;
        font-weight: 950;
    }

    .session-settings-alert span {
        font-size: 13px;
        font-weight: 700;
    }

.session-settings-form {
    display: grid;
    gap: 18px;
}

.session-settings-validation {
    border-radius: 18px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 750;
}

    .session-settings-validation:empty {
        display: none;
    }

.session-settings-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 16px;
    align-items: start;
}

.session-settings-card {
    padding: 18px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.055), transparent 34%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    display: grid;
    gap: 16px;
}

    .session-settings-card.main {
        grid-row: span 2;
    }

.session-settings-card-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

    .session-settings-card-header span {
        display: block;
        margin-bottom: 6px;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .session-settings-card-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.025em;
    }

.session-settings-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 17px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.18);
}

    .session-settings-card-icon.soft {
        background: #fff7ed;
        color: #ea580c;
        border: 1px solid #fed7aa;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.08);
    }

.session-settings-fields {
    display: grid;
    gap: 12px;
}

.session-settings-field {
    display: grid;
    gap: 7px;
}

    .session-settings-field label {
        color: #334155;
        font-size: 12px;
        font-weight: 950;
    }

    .session-settings-field input {
        width: 100%;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid #e5e7eb;
        border-radius: 16px;
        background: #ffffff;
        color: #0f172a;
        font-size: 14px;
        font-weight: 800;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

        .session-settings-field input:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
            background: #fffaf5;
        }

    .session-settings-field p {
        margin: 2px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.session-settings-error {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 750;
}

.session-settings-toggle {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .session-settings-toggle:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        box-shadow: 0 12px 26px rgba(249, 115, 22, 0.12);
    }

    .session-settings-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .session-settings-toggle > span {
        width: 42px;
        height: 24px;
        min-width: 42px;
        border-radius: 999px;
        background: #e5e7eb;
        position: relative;
        transition: background 0.18s ease;
        margin-top: 1px;
    }

        .session-settings-toggle > span::after {
            content: "";
            position: absolute;
            width: 18px;
            height: 18px;
            left: 3px;
            top: 3px;
            border-radius: 999px;
            background: #ffffff;
            box-shadow: 0 2px 5px rgba(15, 23, 42, 0.18);
            transition: transform 0.18s ease;
        }

    .session-settings-toggle input:checked + span {
        background: linear-gradient(135deg, #f97316, #ea580c);
    }

        .session-settings-toggle input:checked + span::after {
            transform: translateX(18px);
        }

    .session-settings-toggle strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .session-settings-toggle small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.session-settings-note {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: grid;
    gap: 4px;
}

    .session-settings-note strong {
        color: #9a3412;
        font-size: 12px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .session-settings-note span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.session-settings-footer {
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.055);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

    .session-settings-footer strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

    .session-settings-footer span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.session-settings-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.session-settings-btn {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .session-settings-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .session-settings-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
    }

        .session-settings-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 16px 30px rgba(249, 115, 22, 0.30);
        }

    .session-settings-btn.ghost {
        background: #ffffff;
        color: #64748b;
    }

@media (max-width: 1000px) {
    .session-settings-hero {
        grid-template-columns: 1fr;
    }

    .session-settings-grid {
        grid-template-columns: 1fr;
    }

    .session-settings-card.main {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .session-settings-hero {
        padding: 20px;
        border-radius: 24px;
    }

    .session-settings-summary {
        grid-template-columns: 1fr;
    }

    .session-settings-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-settings-actions {
        width: 100%;
        flex-direction: column-reverse;
    }

    .session-settings-btn {
        width: 100%;
    }
}

.audit-action-col {
    text-align: right !important;
    white-space: nowrap;
}

.audit-view-btn {
    min-height: 34px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .audit-view-btn:hover {
        transform: translateY(-2px);
        background: #ffedd5;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

.audit-changes-backdrop {
    position: fixed;
    inset: 0;
    z-index: 21010;
    display: none;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(6px);
}

    .audit-changes-backdrop.show {
        display: block;
        animation: auditChangesBackdropIn 0.18s ease-out;
    }

.audit-changes-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(560px, 100%);
    height: 100vh;
    z-index: 21020;
    background: #ffffff;
    border-left: 1px solid #fed7aa;
    box-shadow: -26px 0 70px rgba(15, 23, 42, 0.20);
    transform: translateX(100%);
    transition: transform 0.26s ease;
    display: flex;
    flex-direction: column;
}

    .audit-changes-drawer.show {
        transform: translateX(0);
    }

.audit-changes-header {
    padding: 22px;
    border-bottom: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 38%), linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

    .audit-changes-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .audit-changes-header h3 {
        margin: 5px 0 3px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.035em;
        line-height: 1.2;
    }

    .audit-changes-header p {
        margin: 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
    }

.audit-changes-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    background: #ffffff;
    color: #9a3412;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .audit-changes-close:hover {
        transform: rotate(4deg) scale(1.04);
        background: #fff7ed;
        color: #ea580c;
    }

.audit-changes-body {
    padding: 18px;
    overflow-y: auto;
    display: grid;
    gap: 14px;
}

.audit-changes-loading, .audit-changes-empty {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.audit-changes-list {
    display: grid;
    gap: 14px;
}

.audit-change-item {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
    display: grid;
    gap: 14px;
}

.audit-change-field span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.audit-change-field strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.audit-change-values {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

    .audit-change-values div {
        padding: 12px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .audit-change-values label {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .audit-change-values p {
        margin: 5px 0 0;
        color: #0f172a;
        font-size: 13px;
        font-weight: 800;
        line-height: 1.45;
        word-break: break-word;
    }

@keyframes auditChangesBackdropIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .audit-changes-drawer {
        width: 100%;
    }

    .audit-changes-header {
        padding: 18px;
    }

    .audit-changes-body {
        padding: 14px;
    }
}

.audit-btn.export {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}

    .audit-btn.export:hover {
        border-color: #86efac !important;
        background: #dcfce7 !important;
        color: #15803d !important;
        box-shadow: 0 14px 28px rgba(34, 197, 94, 0.16) !important;
    }

@media (max-width: 1100px) {
    .audit-filter-form-fixed {
        grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
    }

    .audit-filter-actions-fixed {
        justify-content: flex-start !important;
    }
}

@media (max-width: 640px) {
    .audit-filter-form-fixed {
        grid-template-columns: 1fr !important;
    }

    .audit-filter-actions-fixed {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

        .audit-filter-actions-fixed .audit-btn {
            width: 100% !important;
        }
}

.audit-compact-filter-form {
    display: grid;
    gap: 12px;
}

.audit-compact-main-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 150px auto;
    gap: 12px;
    align-items: end;
}

.audit-compact-search {
    min-width: 0;
}

.audit-compact-date {
    min-width: 130px;
}

.audit-compact-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

    .audit-compact-actions .audit-btn {
        min-height: 42px;
        padding: 10px 16px;
    }

.audit-advanced-filter {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
}

    .audit-advanced-filter summary {
        padding: 12px 14px;
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: center;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

        .audit-advanced-filter summary::-webkit-details-marker {
            display: none;
        }

        .audit-advanced-filter summary::after {
            content: "?";
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: #fff7ed;
            border: 1px solid #fed7aa;
            color: #ea580c;
            display: grid;
            place-items: center;
            font-size: 16px;
            transition: transform 0.18s ease;
        }

    .audit-advanced-filter[open] summary::after {
        transform: rotate(180deg);
    }

    .audit-advanced-filter summary span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

.audit-advanced-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    padding: 14px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    align-items: end;
}

.audit-advanced-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .audit-compact-main-row {
        grid-template-columns: 1fr 1fr;
    }

    .audit-compact-search {
        grid-column: 1 / -1;
    }

    .audit-compact-actions {
        justify-content: flex-start;
    }

    .audit-advanced-grid {
        grid-template-columns: 1fr;
    }

    .audit-advanced-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .audit-compact-main-row {
        grid-template-columns: 1fr;
    }

    .audit-compact-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

        .audit-compact-actions .audit-btn, .audit-advanced-actions .audit-btn {
            width: 100%;
        }
}

.audit-filter-card {
    overflow: visible !important;
}

    .audit-filter-card .audit-compact-filter-form {
        display: block !important;
        width: 100% !important;
    }

    .audit-filter-card .audit-compact-main-row {
        display: grid !important;
        grid-template-columns: minmax(360px, 1fr) 170px 170px 210px !important;
        gap: 14px !important;
        align-items: end !important;
        width: 100% !important;
    }

    .audit-filter-card .audit-field, .audit-filter-card .audit-compact-search, .audit-filter-card .audit-compact-date {
        position: static !important;
        display: grid !important;
        grid-template-rows: auto 44px !important;
        gap: 7px !important;
        min-width: 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

        .audit-filter-card .audit-field > label {
            position: static !important;
            inset: auto !important;
            top: auto !important;
            left: auto !important;
            right: auto !important;
            bottom: auto !important;
            transform: none !important;
            display: block !important;
            width: auto !important;
            height: auto !important;
            min-height: 0 !important;
            max-height: none !important;
            margin: 0 !important;
            padding: 0 !important;
            background: transparent !important;
            color: #334155 !important;
            font-size: 12px !important;
            font-weight: 900 !important;
            line-height: 1.25 !important;
            letter-spacing: 0.01em !important;
            text-transform: none !important;
            opacity: 1 !important;
            visibility: visible !important;
            pointer-events: auto !important;
            z-index: 1 !important;
        }

        .audit-filter-card .audit-field > input, .audit-filter-card .audit-field > select {
            position: static !important;
            display: block !important;
            width: 100% !important;
            height: 44px !important;
            min-height: 44px !important;
            max-height: 44px !important;
            margin: 0 !important;
            padding: 0 14px !important;
            border: 1px solid #e5e7eb !important;
            border-radius: 14px !important;
            background-color: #ffffff !important;
            color: #0f172a !important;
            font-size: 13px !important;
            font-weight: 750 !important;
            line-height: normal !important;
            box-sizing: border-box !important;
            box-shadow: none !important;
            outline: none !important;
            transform: none !important;
        }

            .audit-filter-card .audit-field > input::placeholder {
                color: #94a3b8 !important;
                font-size: 13px !important;
                font-weight: 650 !important;
            }

            .audit-filter-card .audit-field > input:focus, .audit-filter-card .audit-field > select:focus {
                border-color: #f97316 !important;
                box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12) !important;
            }

    .audit-filter-card .audit-compact-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        align-items: end !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .audit-filter-card .audit-btn {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 14px !important;
        border-radius: 999px !important;
        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 950 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

        .audit-filter-card .audit-btn.primary {
            border-color: transparent !important;
            background: linear-gradient(135deg, #f97316, #ea580c) !important;
            color: #ffffff !important;
            box-shadow: 0 12px 24px rgba(249, 115, 22, 0.20) !important;
        }

        .audit-filter-card .audit-btn.export {
            border: 1px solid #bbf7d0 !important;
            background: #f0fdf4 !important;
            color: #166534 !important;
        }

        .audit-filter-card .audit-btn.ghost {
            border: 1px solid #e5e7eb !important;
            background: #ffffff !important;
            color: #64748b !important;
        }

    .audit-filter-card .audit-advanced-filter {
        display: block !important;
        width: 100% !important;
        margin-top: 14px !important;
        padding: 0 !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

        .audit-filter-card .audit-advanced-filter > summary {
            position: static !important;
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            width: 100% !important;
            min-height: 48px !important;
            margin: 0 !important;
            padding: 12px 15px !important;
            list-style: none !important;
            cursor: pointer !important;
            box-sizing: border-box !important;
        }

            .audit-filter-card .audit-advanced-filter > summary::-webkit-details-marker {
                display: none !important;
            }

            .audit-filter-card .audit-advanced-filter > summary div {
                display: grid !important;
                gap: 3px !important;
            }

            .audit-filter-card .audit-advanced-filter > summary strong {
                color: #0f172a !important;
                font-size: 13px !important;
                font-weight: 950 !important;
                line-height: 1.2 !important;
            }

            .audit-filter-card .audit-advanced-filter > summary span {
                color: #64748b !important;
                font-size: 12px !important;
                font-weight: 700 !important;
                line-height: 1.25 !important;
            }

            .audit-filter-card .audit-advanced-filter > summary::after {
                content: "?" !important;
                width: 28px !important;
                height: 28px !important;
                min-width: 28px !important;
                display: grid !important;
                place-items: center !important;
                border: 1px solid #fed7aa !important;
                border-radius: 999px !important;
                background: #fff7ed !important;
                color: #ea580c !important;
                font-size: 16px !important;
                font-weight: 950 !important;
                line-height: 1 !important;
                transition: transform 0.18s ease !important;
            }

        .audit-filter-card .audit-advanced-filter[open] > summary::after {
            transform: rotate(180deg) !important;
        }

    .audit-filter-card .audit-advanced-grid {
        display: grid !important;
        grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.5fr) 150px !important;
        gap: 14px !important;
        align-items: end !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 14px !important;
        border-top: 1px solid #e5e7eb !important;
        background: #f8fafc !important;
        box-sizing: border-box !important;
    }

    .audit-filter-card .audit-advanced-actions {
        display: flex !important;
        align-items: end !important;
        justify-content: flex-end !important;
        width: 100% !important;
    }

@media (max-width: 1250px) {
    .audit-filter-card .audit-compact-main-row {
        grid-template-columns: 1fr 170px 170px !important;
    }

    .audit-filter-card .audit-compact-search {
        grid-column: 1 / -1 !important;
    }

    .audit-filter-card .audit-compact-actions {
        grid-column: 1 / -1 !important;
        grid-template-columns: 160px 160px !important;
        justify-content: start !important;
        width: auto !important;
    }

    .audit-filter-card .audit-advanced-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .audit-filter-card .audit-advanced-actions {
        grid-column: 1 / -1 !important;
        justify-content: flex-start !important;
    }

        .audit-filter-card .audit-advanced-actions .audit-btn {
            width: 160px !important;
        }
}

@media (max-width: 720px) {
    .audit-filter-card .audit-compact-main-row {
        grid-template-columns: 1fr !important;
    }

    .audit-filter-card .audit-compact-actions {
        grid-column: auto !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
    }

    .audit-filter-card .audit-advanced-grid {
        grid-template-columns: 1fr !important;
    }

    .audit-filter-card .audit-advanced-actions .audit-btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .audit-filter-card .audit-compact-actions {
        grid-template-columns: 1fr !important;
    }
}


.cashier-search-hero {
    margin: 16px 0 18px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 34%), linear-gradient(135deg, #fff7ed, #ffffff);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.cashier-search-copy {
    margin-bottom: 14px;
}

    .cashier-search-copy span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .cashier-search-copy h4 {
        margin: 4px 0 5px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }

    .cashier-search-copy p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.45;
    }

.cashier-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
}

.cashier-search-input {
    position: relative;
}

    .cashier-search-input i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #ea580c;
        font-size: 18px;
    }

    .cashier-search-input input {
        width: 100%;
        min-height: 52px;
        padding: 13px 16px 13px 46px;
        border-radius: 18px;
        border: 1px solid #fdba74;
        background: #ffffff;
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
        outline: none;
        box-shadow: 0 12px 28px rgba(249, 115, 22, 0.10);
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

        .cashier-search-input input:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
        }

.cashier-section-header {
    margin: 10px 0 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

    .cashier-section-header h4 {
        margin: 0;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

    .cashier-section-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 600;
    }

.table-action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-menu {
    display: none;
    min-width: 230px;
    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;
    }

@@media (max-width: 980px) {
    .cashier-search-form {
        grid-template-columns: 1fr;
    }

        .cashier-search-form .btn,
        .cashier-search-form select {
            width: 100%;
        }
}








/* ============================================================
   Student Sectioning - Standard Admin Design
   ============================================================ */

.sectioning-standard-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.sectioning-standard-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.sectioning-standard-title {
    margin-bottom: 14px;
}

    .sectioning-standard-title strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .sectioning-standard-title span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }

.sectioning-section-list {
    display: grid;
    gap: 12px;
}

.sectioning-section-card {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

    .sectioning-section-card.open {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .sectioning-section-card.full {
        background: #fef2f2;
        border-color: #fecaca;
    }

.sectioning-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

    .sectioning-section-head strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .sectioning-section-head span {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

.sectioning-section-meta {
    display: grid;
    gap: 8px;
}

    .sectioning-section-meta div {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px dashed rgba(148, 163, 184, 0.45);
    }

    .sectioning-section-meta span {
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
    }

    .sectioning-section-meta strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 950;
        text-align: right;
    }

.sectioning-assign-form {
    min-width: 220px;
}

    .sectioning-assign-form select {
        width: 100%;
        min-height: 38px;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #0f172a;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        padding: 8px 10px;
        outline: none;
    }

        .sectioning-assign-form select:focus {
            border-color: #fb923c;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

@media (max-width: 1180px) {
    .sectioning-standard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sectioning-standard-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .sectioning-assign-form {
        min-width: 180px;
    }
}


/* ============================================================
   Section Offering Setup
   ============================================================ */

.section-offering-grid {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    align-items: start;
}

.section-offering-form-card,
.section-offering-list-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.section-offering-title {
    margin-bottom: 14px;
}

    .section-offering-title strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .section-offering-title span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
    }

.section-offering-form-card .form-line {
    margin-bottom: 12px;
}

    .section-offering-form-card .form-line label {
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .section-offering-form-card .form-line select,
    .section-offering-form-card .form-line input {
        width: 100%;
        min-height: 40px;
        border-radius: 14px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #0f172a;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        padding: 9px 11px;
        outline: none;
    }

        .section-offering-form-card .form-line select:focus,
        .section-offering-form-card .form-line input:focus {
            border-color: #fb923c;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

.section-offering-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

    .section-offering-actions .btn {
        flex: 1;
    }

.section-offering-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .section-offering-row-actions .inline-delete-form {
        margin: 0;
    }

.btn.danger,
.btn.btn-ghost.danger {
    color: #991b1b;
    border-color: #fecaca;
}

    .btn.danger:hover,
    .btn.btn-ghost.danger:hover {
        background: #fef2f2;
        color: #b91c1c;
        border-color: #fca5a5;
    }

.btn[disabled],
button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .section-offering-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .section-offering-form-card,
    .section-offering-list-card {
        padding: 14px;
        border-radius: 18px;
    }

    .section-offering-actions,
    .section-offering-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .section-offering-actions .btn,
        .section-offering-row-actions .btn,
        .section-offering-row-actions form {
            width: 100%;
        }
}



/* ============================================================
   Section Offering Modal
   ============================================================ */

.section-offering-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
}

    .section-offering-modal-backdrop.show {
        display: flex;
    }

.section-offering-modal-card {
    width: min(720px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.30);
    display: flex;
    flex-direction: column;
}

.section-offering-modal-header {
    padding: 22px 24px;
    border-bottom: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 38%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

    .section-offering-modal-header span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .section-offering-modal-header h3 {
        margin: 5px 0 4px;
        color: #0f172a;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .section-offering-modal-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

.section-offering-modal-close {
    width: 40px;
    height: 40px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #ffffff;
    color: #9a3412;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.section-offering-modal-body {
    padding: 20px 24px;
    overflow: auto;
}

.section-offering-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .section-offering-modal-grid .form-line label {
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .section-offering-modal-grid .form-line select,
    .section-offering-modal-grid .form-line input {
        width: 100%;
        min-height: 42px;
        border-radius: 14px;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        color: #0f172a;
        font-family: inherit;
        font-size: 13px;
        font-weight: 700;
        padding: 9px 11px;
        outline: none;
    }

        .section-offering-modal-grid .form-line select:focus,
        .section-offering-modal-grid .form-line input:focus {
            border-color: #fb923c;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

.section-offering-modal-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .section-offering-modal-note strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .section-offering-modal-note span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.section-offering-modal-actions {
    padding: 16px 24px 20px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.section-offering-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

    .section-offering-row-actions .inline-delete-form {
        margin: 0;
    }

.btn.danger,
.btn.btn-ghost.danger {
    color: #991b1b;
    border-color: #fecaca;
}

    .btn.danger:hover,
    .btn.btn-ghost.danger:hover {
        background: #fef2f2;
        color: #b91c1c;
        border-color: #fca5a5;
    }

.btn[disabled],
button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 720px) {
    .section-offering-modal-card {
        border-radius: 22px;
    }

    .section-offering-modal-header,
    .section-offering-modal-body,
    .section-offering-modal-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-offering-modal-grid {
        grid-template-columns: 1fr;
    }

    .section-offering-modal-actions,
    .section-offering-row-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .section-offering-modal-actions .btn,
        .section-offering-row-actions .btn,
        .section-offering-row-actions form {
            width: 100%;
        }
}
/* ============================================================
   Student Sectioning Metric Cards - Premium Orange Theme
   ============================================================ */

.sectioning-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.sectioning-metric-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

    .sectioning-metric-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 16px;
        bottom: 16px;
        width: 4px;
        border-radius: 999px;
        background: linear-gradient(180deg, #f97316, #ea580c);
    }

    .sectioning-metric-card.highlight,
    .sectioning-metric-card.warning {
        background: #ffffff;
        border-color: #e5e7eb;
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    }

.sectioning-metric-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    font-size: 20px;
}

.sectioning-metric-card.warning .sectioning-metric-icon,
.sectioning-metric-card.highlight .sectioning-metric-icon {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

.sectioning-metric-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sectioning-metric-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sectioning-metric-card.highlight strong,
.sectioning-metric-card.warning strong {
    color: #0f172a;
}

.sectioning-metric-card:hover {
    transform: translateY(-2px);
    border-color: #fed7aa;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.10);
    transition: 0.18s ease;
}

@media (max-width: 1180px) {
    .sectioning-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .sectioning-metric-grid {
        grid-template-columns: 1fr;
    }

    .sectioning-metric-card {
        padding: 16px;
    }
}




/* ============================================================
   Academic Setup - Premium Select Controls
   ============================================================ */

.academic-select-wrap {
    position: relative;
    width: 100%;
}

    .academic-select-wrap select {
        width: 100%;
        min-height: 44px;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
        color: #0f172a;
        font-family: inherit;
        font-size: 13px;
        font-weight: 750;
        padding: 10px 42px 10px 13px;
        outline: none;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
        transition: 0.18s ease;
    }

        .academic-select-wrap select:hover {
            border-color: #fed7aa;
            box-shadow: 0 12px 26px rgba(249, 115, 22, 0.08);
        }

        .academic-select-wrap select:focus {
            border-color: #fb923c;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
            background: #ffffff;
        }

    .academic-select-wrap::after {
        content: "?";
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-52%);
        color: #ea580c;
        font-size: 18px;
        font-weight: 900;
        pointer-events: none;
    }

.academic-form-note {
    margin-top: 8px;
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}


.assessment-adjustment-note {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.assessment-reason-field {
    grid-column: 1 / -1;
}

    .assessment-reason-field textarea {
        width: 100%;
        resize: vertical;
        min-height: 105px;
    }

.adjustment-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.adjustment-comparison-card {
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

    .adjustment-comparison-card span {
        display: block;
        margin-bottom: 6px;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .adjustment-comparison-card strong {
        display: block;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
    }

    .adjustment-comparison-card.highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .adjustment-comparison-card.highlight strong {
            color: #ea580c;
        }

@media (max-width: 900px) {
    .adjustment-comparison-grid {
        grid-template-columns: 1fr;
    }
}

.assessment-status-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

    .assessment-status-panel.active {
        border-color: #bbf7d0;
        background: #f0fdf4;
    }

    .assessment-status-panel.superseded {
        border-color: #fed7aa;
        background: #fff7ed;
    }

    .assessment-status-panel > div {
        padding: 12px;
        border-radius: 14px;
        background: rgba(255,255,255,.72);
        border: 1px solid rgba(226,232,240,.9);
    }

    .assessment-status-panel span {
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .assessment-status-panel strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
    }

    .assessment-status-panel small {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.4;
    }

.assessment-status-text.success {
    color: #15803d;
}

.assessment-status-text.danger {
    color: #ea580c;
}

.assessment-status-text.neutral {
    color: #475569;
}

.assessment-history-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

    .assessment-history-link:hover {
        background: #ffedd5;
        color: #c2410c;
    }

.assessment-status-reason {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .assessment-status-panel {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   Class List
   ============================================================ */

.classlist-page {
    position: relative;
}

.classlist-empty-state {
    margin-top: 18px;
    padding: 34px 24px;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    text-align: center;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.classlist-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    font-size: 28px;
}

.classlist-empty-state h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.classlist-empty-state p {
    max-width: 560px;
    margin: 8px auto 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.classlist-print-area {
    margin-top: 18px;
}

.classlist-document-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 38%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.10);
}

    .classlist-document-header span {
        display: block;
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .classlist-document-header h2 {
        margin: 5px 0 4px;
        color: #0f172a;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .classlist-document-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 750;
    }

.classlist-document-badge {
    min-width: 140px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    text-align: center;
}

    .classlist-document-badge strong {
        display: block;
        color: #ea580c;
        font-size: 34px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .classlist-document-badge span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

.classlist-info-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.classlist-info-card {
    padding: 15px 16px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

    .classlist-info-card span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .classlist-info-card strong {
        display: block;
        margin-top: 5px;
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
    }

.classlist-table-card {
    margin-top: 14px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.classlist-table-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

    .classlist-table-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .classlist-table-header span,
    .classlist-print-date {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

.classlist-table td,
.classlist-table th {
    white-space: nowrap;
}

.classlist-signature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 34px;
}

.classlist-signature-box {
    text-align: center;
}

    .classlist-signature-box div {
        height: 42px;
        border-bottom: 1px solid #0f172a;
    }

    .classlist-signature-box strong {
        display: block;
        margin-top: 8px;
        color: #0f172a;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

@media (max-width: 1180px) {
    .classlist-info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .classlist-document-header {
        flex-direction: column;
        align-items: stretch;
    }

    .classlist-info-grid {
        grid-template-columns: 1fr;
    }

    .classlist-signature-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background: #ffffff !important;
    }

    .sidebar,
    .topbar,
    .no-print,
    .admin-save-actions,
    .premium-filter-card,
    #classListLoadingOverlay {
        display: none !important;
    }

    .app-shell {
        display: block !important;
    }

    .content-area {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .page-body {
        padding: 0 !important;
    }

    .panel-card {
        box-shadow: none !important;
        border: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .classlist-print-area {
        margin: 0 !important;
    }

    .classlist-document-header,
    .classlist-info-card,
    .classlist-table-card {
        box-shadow: none !important;
    }

    .classlist-document-header {
        border-radius: 0 !important;
    }

    .classlist-info-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .classlist-table-card {
        border-radius: 0 !important;
    }

    .table-wrap {
        overflow: visible !important;
    }

    .data-table {
        width: 100% !important;
        font-size: 11px !important;
    }

        .data-table th,
        .data-table td {
            padding: 7px 8px !important;
        }

    @page {
        size: A4 portrait;
        margin: 12mm;
    }
}


.access-demo-grid {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-top: 22px;
}

.access-demo-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
    overflow: hidden;
}

.access-demo-panel-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
}

    .access-demo-panel-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

    .access-demo-panel-header p {
        margin: 5px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

.access-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 18px 20px 0;
}

.access-search-box {
    position: relative;
}

    .access-search-box i {
        position: absolute;
        left: 13px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

    .access-search-box input {
        width: 100%;
        height: 44px;
        border-radius: 15px;
        border: 1px solid #e2e8f0;
        padding: 0 14px 0 40px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 650;
        outline: none;
    }

        .access-search-box input:focus {
            border-color: #fb923c;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

.access-search-btn {
    height: 44px;
    border: 0;
    border-radius: 15px;
    padding: 0 14px;
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .18);
}

.access-user-list {
    display: grid;
    gap: 10px;
    padding: 16px 20px 20px;
    max-height: 680px;
    overflow-y: auto;
}

.access-user-item {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 18px;
    padding: 13px;
    display: flex;
    gap: 12px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
    width: 100%;
    text-decoration: none;
}

    .access-user-item:hover,
    .access-user-item.active {
        border-color: #fb923c;
        background: #fff7ed;
        box-shadow: 0 12px 28px rgba(249, 115, 22, 0.10);
    }

.access-avatar {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, #F97316, #EA580C);
    font-weight: 900;
    text-transform: uppercase;
}

    .access-avatar.large {
        width: 56px;
        height: 56px;
        border-radius: 19px;
        font-size: 18px;
    }

.access-user-item strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.access-user-item span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

.access-status {
    display: inline-flex;
    margin-top: 7px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

    .access-status.inactive {
        background: #fee2e2;
        color: #991b1b;
    }

.access-selected-user {
    margin: 18px 20px 0;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    border-radius: 22px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .access-selected-user h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
    }

    .access-selected-user p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

.access-role-pills {
    display: flex;
    gap: 8px;
    margin-top: 9px;
    flex-wrap: wrap;
}

    .access-role-pills span {
        padding: 6px 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #fed7aa;
        color: #c2410c;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

.access-reminder {
    margin: 14px 20px 0;
    padding: 13px 15px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    display: flex;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    align-items: flex-start;
}

.access-module-group {
    margin: 16px 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
}

.access-module-header {
    padding: 15px 17px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

    .access-module-header strong {
        display: flex;
        gap: 9px;
        align-items: center;
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
    }

    .access-module-header span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.access-table-wrap {
    overflow-x: auto;
}

.access-permission-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

    .access-permission-table th {
        padding: 12px 14px;
        border-bottom: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
        text-align: center;
        background: #ffffff;
        white-space: nowrap;
    }

        .access-permission-table th:first-child {
            text-align: left;
        }

    .access-permission-table td {
        padding: 13px 14px;
        border-bottom: 1px solid #f1f5f9;
        text-align: center;
        vertical-align: middle;
    }

    .access-permission-table tr:last-child td {
        border-bottom: 0;
    }

.module-cell {
    text-align: left !important;
    min-width: 280px;
}

    .module-cell strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
    }

    .module-cell span {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        font-weight: 600;
    }

.access-permission-table input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #F97316;
    cursor: pointer;
}

    .access-permission-table input[type="checkbox"]:disabled {
        cursor: not-allowed;
        opacity: .30;
    }

.access-save-bar {
    margin: 18px 20px 20px;
    padding: 14px;
    border: 1px solid #fed7aa;
    background: rgba(255, 247, 237, .95);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    bottom: 12px;
    z-index: 10;
    backdrop-filter: blur(8px);
}

    .access-save-bar span {
        display: flex;
        gap: 8px;
        align-items: center;
        color: #9a3412;
        font-size: 12px;
        font-weight: 800;
    }

    .access-save-bar > div {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

.access-btn {
    border-radius: 14px;
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
    transition: .18s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .access-btn.secondary {
        background: #ffffff;
        color: #9a3412;
        border: 1px solid #fed7aa;
    }

    .access-btn.primary {
        border: 0;
        background: linear-gradient(135deg, #F97316, #EA580C);
        color: #ffffff;
        box-shadow: 0 12px 24px rgba(249, 115, 22, .24);
    }

    .access-btn:hover {
        transform: translateY(-1px);
    }

.access-alert {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    font-weight: 800;
}

    .access-alert.success {
        background: #ecfdf5;
        border: 1px solid #bbf7d0;
        color: #166534;
    }

    .access-alert.error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
    }

.access-empty-user {
    border: 1px dashed #fed7aa;
    border-radius: 18px;
    padding: 24px 16px;
    text-align: center;
    color: #9a3412;
    background: #fff7ed;
}

    .access-empty-user i {
        font-size: 24px;
        display: block;
        margin-bottom: 8px;
    }

    .access-empty-user strong,
    .access-empty-user span {
        display: block;
    }

    .access-empty-user strong {
        font-size: 14px;
        font-weight: 900;
    }

    .access-empty-user span {
        margin-top: 3px;
        font-size: 12px;
        font-weight: 650;
    }

.access-empty-main {
    margin: 20px;
    padding: 50px 20px;
    border: 1px dashed #fed7aa;
    border-radius: 24px;
    background: #fff7ed;
    text-align: center;
    color: #9a3412;
}

    .access-empty-main i {
        font-size: 42px;
        display: block;
        margin-bottom: 12px;
    }

    .access-empty-main h3 {
        margin: 0;
        color: #7c2d12;
        font-size: 18px;
        font-weight: 900;
    }

    .access-empty-main p {
        margin: 7px 0 0;
        color: #9a3412;
        font-size: 13px;
        font-weight: 650;
    }

@media (max-width: 980px) {
    .access-demo-grid {
        grid-template-columns: 1fr;
    }

    .access-search-form {
        grid-template-columns: 1fr;
    }

    .access-search-btn {
        width: 100%;
    }
}

/* ============================================================
   Student Requirement Setup
   ============================================================ */

.req-page {
    --req-primary: #F97316;
    --req-primary-dark: #EA580C;
    --req-soft: #FFF7ED;
    --req-border: #E5E7EB;
    --req-text: #0F172A;
    --req-muted: #64748B;
    --req-bg: #F8FAFC;
    --req-card: #FFFFFF;
    padding: 24px;
    background: var(--req-bg);
    min-height: calc(100vh - 80px);
}

.req-header {
    background: linear-gradient(135deg, var(--req-primary), var(--req-primary-dark));
    color: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 18px 40px rgba(249, 115, 22, .18);
}

    .req-header h1 {
        margin: 0;
        font-size: 26px;
        font-weight: 800;
    }

    .req-header p {
        margin: 6px 0 0;
        opacity: .92;
    }

.req-card {
    background: var(--req-card);
    border: 1px solid var(--req-border);
    border-radius: 22px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, .06);
    padding: 20px;
    margin-bottom: 18px;
}

.req-card-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--req-text);
    margin-bottom: 14px;
}

.req-form-grid {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr 1fr .8fr .8fr;
    gap: 12px;
    align-items: end;
}

.req-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--req-muted);
    margin-bottom: 6px;
}

.req-input,
.req-select {
    width: 100%;
    border: 1px solid var(--req-border);
    border-radius: 14px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    background: white;
}

    .req-input:focus,
    .req-select:focus {
        border-color: var(--req-primary);
        box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
    }

.req-check-row {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.req-check-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--req-text);
}

.req-btn {
    border: none;
    border-radius: 14px;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.req-btn-primary {
    background: var(--req-primary);
    color: white;
}

    .req-btn-primary:hover {
        background: var(--req-primary-dark);
        color: white;
        transform: translateY(-1px);
    }

.req-btn-light {
    background: var(--req-soft);
    color: var(--req-primary-dark);
    border: 1px solid #FED7AA;
}

    .req-btn-light:hover {
        color: var(--req-primary-dark);
        background: #FFEDD5;
    }

.req-btn-full {
    width: 100%;
}

.req-table-wrap {
    width: 100%;
}

.req-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

    .req-table thead th {
        font-size: 12px;
        text-transform: uppercase;
        color: var(--req-muted);
        padding: 8px 12px;
    }

    .req-table tbody tr {
        background: white;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
    }

    .req-table tbody td {
        padding: 14px 12px;
        border-top: 1px solid var(--req-border);
        border-bottom: 1px solid var(--req-border);
        vertical-align: middle;
        font-size: 14px;
    }

        .req-table tbody td:first-child {
            border-left: 1px solid var(--req-border);
            border-radius: 16px 0 0 16px;
        }

        .req-table tbody td:last-child {
            border-right: 1px solid var(--req-border);
            border-radius: 0 16px 16px 0;
        }

.req-name {
    font-weight: 800;
    color: var(--req-text);
}

.req-desc {
    color: var(--req-muted);
    font-size: 12px;
    margin-top: 3px;
}

.req-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.req-badge-active {
    background: #DCFCE7;
    color: #166534;
}

.req-badge-inactive {
    background: #F1F5F9;
    color: #475569;
}

.req-badge-required {
    background: #FEF3C7;
    color: #92400E;
}

.req-badge-optional {
    background: #EFF6FF;
    color: #1D4ED8;
}

.req-alert-success {
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #86EFAC;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 700;
}

.req-alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 14px;
    font-weight: 700;
}

.req-card-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.req-edit-form {
    margin-top: 12px;
}

.req-edit-grid {
    display: grid;
    gap: 8px;
}

.req-edit-summary {
    cursor: pointer;
}

.req-empty-row {
    color: var(--req-muted);
    font-weight: 700;
}

@media (max-width: 1100px) {
    .req-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .req-page {
        padding: 14px;
    }

    .req-form-grid {
        grid-template-columns: 1fr;
    }

    .req-table-wrap {
        overflow-x: auto;
    }

    .req-table {
        min-width: 900px;
    }
}


/* ============================================================
   Student Requirements Page
   ============================================================ */

.student-requirement-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.student-requirement-card {
    padding: 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .student-requirement-card span {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .04em;
        margin-bottom: 6px;
    }

    .student-requirement-card strong {
        display: block;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
        line-height: 1.2;
    }

    .student-requirement-card small {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-weight: 650;
    }

.student-requirement-table td span {
    display: block;
}

.student-requirement-note {
    width: fit-content;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
}

.student-requirement-reject-note {
    margin-top: 7px;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
}

.student-requirement-form-row td {
    background: #fff7ed !important;
}

.student-requirement-update-form {
    padding: 12px;
}

.student-requirement-form-grid {
    display: grid;
    grid-template-columns: 170px minmax(220px, 1fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
}

    .student-requirement-form-grid label {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        margin-bottom: 6px;
    }

.student-requirement-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
    color: #0f172a;
    font-size: 13px;
    outline: none;
}

    .student-requirement-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, .12);
    }

.student-requirement-rejection-wrap {
    display: none;
}

    .student-requirement-rejection-wrap.show {
        display: block;
    }

.student-requirement-form-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.req-badge {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.req-badge-success {
    background: #dcfce7;
    color: #166534;
}

.req-badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.req-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.req-badge-muted {
    background: #f1f5f9;
    color: #475569;
}

.req-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

@media (max-width: 1200px) {
    .student-requirement-summary-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }

    .student-requirement-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .student-requirement-form-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .student-requirement-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-requirement-form-grid {
        grid-template-columns: 1fr;
    }
}

.student-requirement-view-file {
    width: fit-content;
    margin-top: 8px;
    padding: 7px 10px;
    font-size: 12px;
}

.student-requirement-file-link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 260px;
    padding: 8px 10px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    text-decoration: none;
    font-weight: 900;
    transition: 0.18s ease;
}

    .student-requirement-file-link i {
        font-size: 16px;
        color: #f97316;
    }

    .student-requirement-file-link:hover {
        background: #ffedd5;
        border-color: #fb923c;
        color: #c2410c;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14);
    }

.student-requirement-file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-requirement-file-link small {
    padding: 3px 7px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}


/* PREMIUM LINE CHART GRID */
.premium-chart-grid line {
    stroke: url(#collectionGridFade);
    stroke-width: 1;
    stroke-dasharray: 4 7;
    shape-rendering: geometricPrecision;
}

.line-chart-box {
    position: relative;
}

    .line-chart-box svg {
        overflow: visible;
    }

.collection-area {
    opacity: 1;
    transition: opacity 0.18s ease;
}

.line-chart-box:hover .collection-area {
    opacity: 0.85;
}

.line-chart-box:hover .premium-chart-grid line {
    stroke-dasharray: 2 6;
    opacity: 0.9;
}


/* =========================================================
   CREATE / EDIT STUDENT - MODALS
   ========================================================= */

.student-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);
}

    .student-modal-backdrop.show {
        display: flex;
    }

.student-modal-card {
    width: min(980px, 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;
}

.student-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;
}

    .student-modal-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

    .student-modal-header p {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
    }

.student-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;
}

.student-modal-body {
    padding: 20px 24px;
    overflow: auto;
}

.student-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* =========================================================
   CREATE / EDIT STUDENT - PROFILE COMPLETION SCORE
   ========================================================= */

.student-profile-score-card {
    margin: 18px 0 22px;
    padding: 18px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 38%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.profile-score-main {
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-score-ring {
    width: 112px;
    height: 112px;
    min-width: 112px;
    border-radius: 999px;
    background: conic-gradient(#f97316 calc(var(--score) * 1%), #e5e7eb 0);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

    .profile-score-ring::before {
        content: "";
        position: absolute;
        inset: 10px;
        border-radius: 999px;
        background: #ffffff;
        box-shadow: inset 0 0 0 1px #e5e7eb;
    }

    .profile-score-ring div {
        position: relative;
        z-index: 1;
        text-align: center;
    }

    .profile-score-ring strong {
        display: block;
        color: #0f172a;
        font-size: 27px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .profile-score-ring span {
        display: block;
        margin-top: 2px;
        color: #ea580c;
        font-size: 9px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.profile-score-copy span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.profile-score-copy h3 {
    margin: 5px 0 5px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.profile-score-copy p {
    margin: 0;
    max-width: 720px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

.profile-score-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.profile-score-progress {
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .profile-score-progress div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #ea580c);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
    }

.profile-score-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 10px;
}

    .profile-score-meta strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 950;
    }

    .profile-score-meta span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        text-align: right;
    }

/* =========================================================
   CREATE / EDIT STUDENT - FIELD HELP
   ========================================================= */

.field-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

/* =========================================================
   CREATE / EDIT STUDENT - ACTIVITY TIMELINE
   ========================================================= */

.student-timeline-card {
    margin-top: 24px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}

.student-timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

    .student-timeline-header span {
        display: block;
        color: #ea580c;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.11em;
        margin-bottom: 5px;
    }

    .student-timeline-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 19px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .student-timeline-header p {
        margin: 5px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

.student-timeline-count {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 950;
}

.student-timeline-list {
    position: relative;
    display: grid;
    gap: 14px;
}

    .student-timeline-list::before {
        content: "";
        position: absolute;
        left: 20px;
        top: 12px;
        bottom: 12px;
        width: 2px;
        background: linear-gradient(180deg, #fed7aa, #e5e7eb);
    }

.student-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
}

.student-timeline-marker {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #64748b;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

    .student-timeline-marker.payment {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #2563eb;
    }

    .student-timeline-marker.assessment {
        background: #fff7ed;
        border-color: #fed7aa;
        color: #ea580c;
    }

    .student-timeline-marker.requirement {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #16a34a;
    }

.student-timeline-content {
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .student-timeline-content:hover {
        transform: translateX(2px);
        background: #ffffff;
        border-color: #fed7aa;
        box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
    }

.student-timeline-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .student-timeline-title strong {
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .student-timeline-title em {
        color: #ea580c;
        font-size: 12px;
        font-weight: 950;
        font-style: normal;
        white-space: nowrap;
    }

.student-timeline-content p {
    margin: 5px 0 0;
    color: #475569;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

.student-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

    .student-timeline-meta span {
        padding: 5px 8px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        color: #64748b;
        font-size: 10px;
        font-weight: 850;
    }

.student-timeline-empty {
    padding: 22px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

    .student-timeline-empty strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

    .student-timeline-empty span {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

/* =========================================================
   CREATE / EDIT STUDENT - STICKY SAVE BAR
   ========================================================= */

.student-sticky-actions {
    position: sticky;
    bottom: 18px;
    z-index: 80;
    margin-top: 26px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5e7eb;
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.student-sticky-left {
    min-width: 0;
}

    .student-sticky-left span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .student-sticky-left strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.student-sticky-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

    .student-sticky-buttons .btn {
        min-height: 42px;
        white-space: nowrap;
    }

/* =========================================================
   CREATE / EDIT STUDENT - RESPONSIVE
   ========================================================= */

@media (max-width: 720px) {
    .profile-score-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-score-meta {
        flex-direction: column;
    }

        .profile-score-meta span {
            text-align: left;
        }

    .student-sticky-actions {
        bottom: 12px;
        flex-direction: column;
        align-items: stretch;
    }

    .student-sticky-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

        .student-sticky-buttons .btn {
            width: 100%;
        }
}

@media (max-width: 680px) {
    .student-timeline-card {
        padding: 18px;
        border-radius: 22px;
    }

    .student-timeline-header {
        display: grid;
    }

    .student-timeline-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .student-modal-card {
        max-height: 94vh;
        border-radius: 22px;
    }

    .student-modal-header,
    .student-modal-body,
    .student-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .student-modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   PAYMENT PREVIEW DRAWER
   ========================================================= */

.payment-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    transition: background 0.26s ease, backdrop-filter 0.26s ease;
}

    .payment-preview-backdrop.show {
        display: flex;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(5px);
    }

.payment-preview-drawer {
    width: min(560px, 100%);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -28px 0 70px rgba(15, 23, 42, 0.24);
    transform: translateX(100%) scale(0.985);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    display: flex;
    flex-direction: column;
}

    .payment-preview-drawer.show {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

.payment-preview-header {
    padding: 24px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 38%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

    .payment-preview-header span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .payment-preview-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.045em;
    }

    .payment-preview-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.payment-preview-close {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .payment-preview-close:hover {
        transform: rotate(90deg);
        background: #fff7ed;
        color: #ea580c;
    }

.payment-preview-body {
    padding: 22px;
    overflow: auto;
    flex: 1;
}

.payment-preview-alert {
    padding: 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 16px;
}

    .payment-preview-alert strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .payment-preview-alert span {
        display: block;
        margin-top: 4px;
        color: #c2410c;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.payment-preview-section {
    margin-top: 16px;
}

    .payment-preview-section h4 {
        margin: 0 0 10px;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

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

    .payment-preview-grid div {
        padding: 13px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .payment-preview-grid span,
    .payment-preview-item span,
    .payment-preview-total span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .payment-preview-grid strong {
        display: block;
        margin-top: 6px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

.payment-preview-items {
    display: grid;
    gap: 8px;
}

.payment-preview-item {
    padding: 13px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .payment-preview-item strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .payment-preview-item small {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
    }

    .payment-preview-item em {
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
        font-style: normal;
        white-space: nowrap;
    }

.payment-preview-total {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .payment-preview-total span {
        color: #cbd5e1;
    }

    .payment-preview-total strong {
        color: #ffffff;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.payment-preview-footer {
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 640px) {
    .payment-preview-drawer {
        width: 100%;
    }

    .payment-preview-grid {
        grid-template-columns: 1fr;
    }

    .payment-preview-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

        .payment-preview-footer .btn {
            width: 100%;
        }
}


/* =========================================================
   PAYMENT RECEIPT PREVIEW PAGE
   ========================================================= */

.receipt-preview-page {
    display: grid;
    gap: 18px;
}

.receipt-success-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.receipt-success-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 18px 32px rgba(22, 163, 74, 0.26);
}

.receipt-success-copy span,
.receipt-action-header span,
.receipt-preview-header span,
.receipt-preview-summary span,
.receipt-details-title span,
.receipt-detail-row span,
.receipt-total-row span,
.receipt-success-amount span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.receipt-success-copy h2 {
    margin: 5px 0 5px;
    color: #0f172a;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.receipt-success-copy p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.receipt-success-amount {
    padding: 14px 18px;
    border-radius: 20px;
    background: #0f172a;
    color: #ffffff;
    min-width: 180px;
    text-align: right;
}

    .receipt-success-amount span {
        color: #cbd5e1;
    }

    .receipt-success-amount strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.receipt-preview-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
}

.receipt-preview-card,
.receipt-action-card {
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.receipt-preview-header {
    padding: 22px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 36%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .receipt-preview-header h3 {
        margin: 5px 0 4px;
        color: #0f172a;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .receipt-preview-header p {
        margin: 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

.receipt-status {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

    .receipt-status.posted {
        background: #dcfce7;
        color: #15803d;
    }

    .receipt-status.void {
        background: #fee2e2;
        color: #b91c1c;
    }

.receipt-preview-summary {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .receipt-preview-summary div {
        padding: 14px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .receipt-preview-summary strong {
        display: block;
        margin-top: 6px;
        color: #0f172a;
        font-size: 14px;
        font-weight: 950;
    }

    .receipt-preview-summary small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
    }

.receipt-details-section {
    padding: 0 22px 22px;
}

.receipt-details-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

    .receipt-details-title h4 {
        margin: 0;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

.receipt-detail-list {
    display: grid;
    gap: 8px;
}

.receipt-detail-row {
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .receipt-detail-row strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

    .receipt-detail-row small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
    }

    .receipt-detail-row em {
        color: #ea580c;
        font-size: 14px;
        font-weight: 950;
        font-style: normal;
        white-space: nowrap;
    }

.receipt-total-row {
    padding: 18px 22px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .receipt-total-row span {
        color: #cbd5e1;
    }

    .receipt-total-row strong {
        color: #ffffff;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.045em;
    }

.receipt-action-card {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.receipt-action-header h3 {
    margin: 5px 0;
    color: #0f172a;
    font-size: 19px;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.receipt-action-header p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}

.receipt-action-buttons {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

    .receipt-action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

.receipt-note-box {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .receipt-note-box strong {
        display: block;
        color: #9a3412;
        font-size: 12px;
        font-weight: 950;
    }

    .receipt-note-box span {
        display: block;
        margin-top: 4px;
        color: #c2410c;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.45;
    }

@media (max-width: 980px) {
    .receipt-success-hero {
        grid-template-columns: 1fr;
    }

    .receipt-success-amount {
        text-align: left;
    }

    .receipt-preview-layout {
        grid-template-columns: 1fr;
    }

    .receipt-action-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .receipt-preview-summary {
        grid-template-columns: 1fr;
    }

    .receipt-detail-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   CREATE / EDIT ASSESSMENT - PREMIUM PREVIEW
   ========================================================= */

.assessment-preview-hero {
    margin-bottom: 18px;
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.assessment-preview-hero-copy span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.assessment-preview-hero-copy h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.assessment-preview-hero-copy p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.assessment-preview-net-card {
    padding: 16px 20px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    min-width: 220px;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .assessment-preview-net-card span {
        display: block;
        color: #cbd5e1;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .assessment-preview-net-card strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 25px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.assessment-premium-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.assessment-premium-metric {
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

    .assessment-premium-metric.highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .assessment-premium-metric.dark {
        background: #0f172a;
        border-color: #0f172a;
    }

    .assessment-premium-metric span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .assessment-premium-metric strong {
        display: block;
        margin-top: 7px;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .assessment-premium-metric small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
    }

    .assessment-premium-metric.highlight span,
    .assessment-premium-metric.highlight small {
        color: #c2410c;
    }

    .assessment-premium-metric.highlight strong {
        color: #ea580c;
    }

    .assessment-premium-metric.dark span,
    .assessment-premium-metric.dark small {
        color: #cbd5e1;
    }

    .assessment-premium-metric.dark strong {
        color: #ffffff;
    }

.assessment-preview-warning {
    margin-bottom: 18px;
    padding: 15px 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.assessment-preview-warning-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 14px;
    background: #f97316;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 950;
}

.assessment-preview-warning strong {
    display: block;
    color: #9a3412;
    font-size: 13px;
    font-weight: 950;
}

.assessment-preview-warning span {
    display: block;
    margin-top: 4px;
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.assessment-section-tools {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 12px;
}

    .assessment-section-tools h4 {
        margin: 0;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .assessment-section-tools span {
        color: #64748b;
        font-size: 12px;
        font-weight: 750;
    }

.assessment-premium-table tbody tr:hover {
    background: #fff7ed;
}

.assessment-amount-strong {
    color: #0f172a;
    font-weight: 950;
}

.assessment-discount-text {
    color: #16a34a;
    font-weight: 950;
}

.assessment-net-text {
    color: #ea580c;
    font-weight: 950;
}

/* =========================================================
   CREATE / EDIT ASSESSMENT - CONFIRMATION DRAWER
   ========================================================= */

.assessment-confirm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    transition: background 0.26s ease, backdrop-filter 0.26s ease;
}

    .assessment-confirm-backdrop.show {
        display: flex;
        background: rgba(15, 23, 42, 0.42);
        backdrop-filter: blur(5px);
    }

.assessment-confirm-drawer {
    width: min(560px, 100%);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #e5e7eb;
    box-shadow: -28px 0 70px rgba(15, 23, 42, 0.24);
    transform: translateX(100%) scale(0.985);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    display: flex;
    flex-direction: column;
}

    .assessment-confirm-drawer.show {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

.assessment-confirm-header {
    padding: 24px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 38%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

    .assessment-confirm-header span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .assessment-confirm-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.045em;
    }

    .assessment-confirm-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.assessment-confirm-close {
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .assessment-confirm-close:hover {
        transform: rotate(90deg);
        background: #fff7ed;
        color: #ea580c;
    }

.assessment-confirm-body {
    padding: 22px;
    overflow: auto;
    flex: 1;
}

.assessment-confirm-alert {
    padding: 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 16px;
}

    .assessment-confirm-alert strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .assessment-confirm-alert span {
        display: block;
        margin-top: 4px;
        color: #c2410c;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

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

    .assessment-confirm-grid div {
        padding: 13px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .assessment-confirm-grid span,
    .assessment-confirm-total span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .assessment-confirm-grid strong {
        display: block;
        margin-top: 6px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

.assessment-confirm-total {
    margin-top: 16px;
    padding: 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .assessment-confirm-total span {
        color: #cbd5e1;
    }

    .assessment-confirm-total strong {
        color: #ffffff;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.assessment-confirm-footer {
    padding: 16px 22px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================================================
   CREATE / EDIT ASSESSMENT - RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
    .assessment-preview-hero {
        grid-template-columns: 1fr;
    }

    .assessment-preview-net-card {
        text-align: left;
    }

    .assessment-premium-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .assessment-premium-grid {
        grid-template-columns: 1fr;
    }

    .assessment-confirm-grid {
        grid-template-columns: 1fr;
    }

    .assessment-confirm-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

        .assessment-confirm-footer .btn {
            width: 100%;
        }
}

/* =========================================================
   ENROLLMENT MONITORING - PIPELINE DASHBOARD
   ========================================================= */

.enrollment-monitoring-page {
    display: grid;
    gap: 18px;
}

.enrollment-active-filter-card {
    padding: 15px 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .enrollment-active-filter-card span {
        display: block;
        color: #ea580c;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .enrollment-active-filter-card strong {
        display: block;
        margin-top: 3px;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

.enrollment-filter-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

    .enrollment-filter-tags em {
        padding: 7px 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid #fed7aa;
        color: #c2410c;
        font-size: 11px;
        font-style: normal;
        font-weight: 850;
    }

.enrollment-pipeline-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.enrollment-pipeline-copy span,
.enrollment-pipeline-rate span,
.enrollment-pipeline-card span,
.enrollment-progress-header span,
.enrollment-table-header span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.enrollment-pipeline-copy h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.enrollment-pipeline-copy p {
    margin: 0;
    max-width: 780px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.enrollment-pipeline-rate {
    min-width: 190px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .enrollment-pipeline-rate span {
        color: #cbd5e1;
    }

    .enrollment-pipeline-rate strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .enrollment-pipeline-rate small {
        display: block;
        margin-top: 4px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 750;
    }

.enrollment-pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.enrollment-pipeline-card {
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 12px;
    align-items: center;
}

    .enrollment-pipeline-card .enrollment-pipeline-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 16px;
        display: grid;
        place-items: center;
        font-size: 15px;
        font-weight: 950;
    }

    .enrollment-pipeline-card.total .enrollment-pipeline-icon {
        background: #f1f5f9;
        color: #0f172a;
    }

    .enrollment-pipeline-card.applicant .enrollment-pipeline-icon {
        background: #f8fafc;
        color: #64748b;
    }

    .enrollment-pipeline-card.assessed .enrollment-pipeline-icon {
        background: #fff7ed;
        color: #ea580c;
    }

    .enrollment-pipeline-card.enrolled .enrollment-pipeline-icon {
        background: #dcfce7;
        color: #16a34a;
    }

    .enrollment-pipeline-card strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 23px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .enrollment-pipeline-card small {
        display: block;
        margin-top: 2px;
        color: #64748b;
        font-size: 11px;
        font-weight: 750;
    }

.enrollment-progress-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.enrollment-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

    .enrollment-progress-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .enrollment-progress-header em {
        font-style: normal;
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
    }

.enrollment-progress-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.enrollment-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: inherit;
}

    .enrollment-progress-fill.applicant {
        background: #94a3b8;
        z-index: 1;
    }

    .enrollment-progress-fill.assessed {
        background: #fb923c;
        z-index: 2;
    }

    .enrollment-progress-fill.enrolled {
        background: #22c55e;
        z-index: 3;
    }

.enrollment-progress-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

    .enrollment-progress-legend span {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        color: #64748b;
        font-size: 11px;
        font-weight: 850;
    }

    .enrollment-progress-legend i {
        width: 9px;
        height: 9px;
        border-radius: 999px;
    }

        .enrollment-progress-legend i.applicant {
            background: #94a3b8;
        }

        .enrollment-progress-legend i.assessed {
            background: #fb923c;
        }

        .enrollment-progress-legend i.enrolled {
            background: #22c55e;
        }

.enrollment-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.enrollment-table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .enrollment-table-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .enrollment-table-header em {
        font-style: normal;
        color: #64748b;
        font-size: 12px;
        font-weight: 850;
    }

.enrollment-monitoring-table tbody tr:hover {
    background: #fff7ed;
}

.enrollment-student-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.enrollment-student-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.enrollment-empty-state {
    padding: 30px 20px;
    text-align: center;
}

    .enrollment-empty-state strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .enrollment-empty-state span {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

@media (max-width: 1100px) {
    .enrollment-pipeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .enrollment-pipeline-hero {
        grid-template-columns: 1fr;
    }

    .enrollment-pipeline-rate {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .enrollment-active-filter-card,
    .enrollment-table-header,
    .enrollment-progress-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .enrollment-filter-tags {
        justify-content: flex-start;
    }

    .enrollment-pipeline-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   CREATE ASSESSMENT - EXISTING ACTIVE ASSESSMENT WARNING
   ========================================================= */

.assessment-existing-warning {
    margin-top: 16px;
    padding: 16px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.12), transparent 36%), linear-gradient(135deg, #fff1f2 0%, #ffffff 100%);
    border: 1px solid #fecaca;
    box-shadow: 0 16px 36px rgba(127, 29, 29, 0.08);
    gap: 14px;
    align-items: flex-start;
}

.assessment-existing-warning-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 16px;
    background: #dc2626;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 950;
    box-shadow: 0 14px 28px rgba(220, 38, 38, 0.24);
}

.assessment-existing-warning-content {
    min-width: 0;
    flex: 1;
}

    .assessment-existing-warning-content > span {
        display: block;
        color: #dc2626;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .assessment-existing-warning-content > strong {
        display: block;
        margin-top: 4px;
        color: #7f1d1d;
        font-size: 15px;
        font-weight: 950;
    }

    .assessment-existing-warning-content > p {
        margin: 12px 0 0;
        color: #991b1b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.assessment-existing-warning-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

    .assessment-existing-warning-grid div {
        padding: 12px;
        border-radius: 16px;
        background: #ffffff;
        border: 1px solid #fecaca;
    }

    .assessment-existing-warning-grid small {
        display: block;
        color: #991b1b;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .assessment-existing-warning-grid b {
        display: block;
        margin-top: 5px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

.assessment-existing-warning-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 820px) {
    .assessment-existing-warning-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .assessment-existing-warning {
        flex-direction: column;
    }

    .assessment-existing-warning-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   VIEW ASSESSMENT - REVIEW / CONTROL PAGE
   ========================================================= */

.view-assessment-page {
    display: grid;
    gap: 18px;
}

.view-assessment-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.view-assessment-title span,
.view-assessment-status span,
.view-assessment-actions-card span,
.view-assessment-amount-card span,
.view-assessment-progress-header span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.view-assessment-title h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.view-assessment-title p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.view-assessment-status-stack {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.view-assessment-status {
    min-width: 150px;
    padding: 13px 15px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    text-align: right;
}

    .view-assessment-status strong {
        display: block;
        margin-top: 5px;
        font-size: 16px;
        font-weight: 950;
    }

    .view-assessment-status.success {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

        .view-assessment-status.success strong {
            color: #15803d;
        }

    .view-assessment-status.warning {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .view-assessment-status.warning strong {
            color: #ea580c;
        }

    .view-assessment-status.danger {
        background: #fff1f2;
        border-color: #fecaca;
    }

        .view-assessment-status.danger strong {
            color: #b91c1c;
        }

    .view-assessment-status.neutral strong {
        color: #334155;
    }

.view-assessment-actions-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

    .view-assessment-actions-card strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .view-assessment-actions-card p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.view-assessment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.view-assessment-note {
    padding: 15px 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .view-assessment-note strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .view-assessment-note span {
        display: block;
        margin-top: 4px;
        color: #c2410c;
        font-size: 12px;
        font-weight: 700;
    }

.view-assessment-amount-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.view-assessment-amount-card {
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .view-assessment-amount-card strong {
        display: block;
        margin-top: 7px;
        color: #0f172a;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .view-assessment-amount-card small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
        font-weight: 750;
    }

    .view-assessment-amount-card.dark {
        background: #0f172a;
        border-color: #0f172a;
    }

        .view-assessment-amount-card.dark span,
        .view-assessment-amount-card.dark small {
            color: #cbd5e1;
        }

        .view-assessment-amount-card.dark strong {
            color: #ffffff;
        }

    .view-assessment-amount-card.paid {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

        .view-assessment-amount-card.paid strong {
            color: #15803d;
        }

    .view-assessment-amount-card.balance {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .view-assessment-amount-card.balance strong {
            color: #ea580c;
        }

.view-assessment-progress-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.view-assessment-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 13px;
}

    .view-assessment-progress-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .view-assessment-progress-header em {
        font-style: normal;
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
    }

.view-assessment-progress-track {
    height: 11px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .view-assessment-progress-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
    }

@media (max-width: 1100px) {
    .view-assessment-amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .view-assessment-hero,
    .view-assessment-actions-card {
        grid-template-columns: 1fr;
    }

    .view-assessment-actions {
        justify-content: flex-start;
    }

    .view-assessment-status-stack {
        flex-wrap: wrap;
    }

    .view-assessment-status {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .view-assessment-amount-grid {
        grid-template-columns: 1fr;
    }

    .view-assessment-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .view-assessment-actions .btn {
            width: 100%;
        }

    .view-assessment-progress-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/
/* =========================================================
   STUDENT SECTIONING - DASHBOARD UPGRADE
   ========================================================= */
.sectioning-dashboard-page {
    display: grid;
    gap: 18px;
}

.sectioning-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.sectioning-hero-copy span,
.sectioning-hero-rate span,
.sectioning-capacity-header span,
.sectioning-metric-card span,
.sectioning-section-progress-top span,
.sectioning-section-meta span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.sectioning-hero-copy h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.sectioning-hero-copy p {
    margin: 0;
    max-width: 820px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.sectioning-hero-rate {
    min-width: 200px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .sectioning-hero-rate span {
        color: #cbd5e1;
    }

    .sectioning-hero-rate strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .sectioning-hero-rate small {
        display: block;
        margin-top: 4px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 750;
    }

.sectioning-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sectioning-metric-card {
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 12px;
    align-items: center;
}

    .sectioning-metric-card.warning {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .sectioning-metric-card.highlight {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

.sectioning-metric-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    background: #f1f5f9;
    color: #ea580c;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 950;
}

.sectioning-metric-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.sectioning-metric-card small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.sectioning-capacity-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.sectioning-capacity-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

    .sectioning-capacity-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .sectioning-capacity-header em {
        font-style: normal;
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
    }

.sectioning-capacity-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .sectioning-capacity-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
    }

.sectioning-capacity-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.sectioning-standard-grid {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.sectioning-standard-panel {
    min-width: 0;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.sectioning-standard-title {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

    .sectioning-standard-title strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .sectioning-standard-title span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.4;
    }

    .sectioning-standard-title em {
        color: #ea580c;
        font-size: 12px;
        font-style: normal;
        font-weight: 950;
        white-space: nowrap;
    }

/* AVAILABLE SECTIONS */

.sectioning-section-list {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.sectioning-section-card {
    min-width: 0;
    padding: 15px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

    .sectioning-section-card.open {
        border-color: #bbf7d0;
        background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    }

    .sectioning-section-card.near-full {
        border-color: #fed7aa;
        background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    }

    .sectioning-section-card.full {
        border-color: #fecaca;
        background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
    }

.sectioning-section-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

    .sectioning-section-head > div {
        min-width: 0;
    }

    .sectioning-section-head strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sectioning-section-head span:not(.status-pill) {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .sectioning-section-head .status-pill {
        flex: 0 0 auto;
    }

.sectioning-section-progress {
    margin-top: 14px;
}

.sectioning-section-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

    .sectioning-section-progress-top strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 950;
    }

.sectioning-section-track {
    height: 9px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .sectioning-section-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
    }

.sectioning-section-card.near-full .sectioning-section-track div {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.sectioning-section-card.full .sectioning-section-track div {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

/* FIXED: no more overlap on Adviser / Available / Utilization */
.sectioning-section-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

    .sectioning-section-meta div:first-child {
        grid-column: 1 / -1;
    }

    .sectioning-section-meta div {
        min-width: 0;
        padding: 10px 11px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .sectioning-section-meta strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 12px;
        font-weight: 950;
        line-height: 1.25;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* STUDENT ASSIGNMENT TABLE */

.sectioning-student-table tbody tr:hover {
    background: #fff7ed;
}

.sectioning-student-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sectioning-student-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.sectioning-empty-state {
    padding: 30px 20px;
    text-align: center;
}

    .sectioning-empty-state.compact {
        padding: 24px 16px;
    }

    .sectioning-empty-state strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .sectioning-empty-state span {
        display: block;
        margin: 5px auto 14px;
        max-width: 520px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

/* RESPONSIVE */

@media (max-width: 1200px) {
    .sectioning-standard-grid {
        grid-template-columns: 1fr;
    }

    .sectioning-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sectioning-hero {
        grid-template-columns: 1fr;
    }

    .sectioning-hero-rate {
        text-align: left;
    }
}

@media (max-width: 680px) {
    .sectioning-metric-grid {
        grid-template-columns: 1fr;
    }

    .sectioning-capacity-header,
    .sectioning-standard-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .sectioning-capacity-legend {
        flex-direction: column;
    }

    .sectioning-section-meta {
        grid-template-columns: 1fr;
    }

        .sectioning-section-meta div:first-child {
            grid-column: auto;
        }
}


/* =========================================================
   CLASS LIST - DASHBOARD UPGRADE
   ========================================================= */

.classlist-dashboard-page {
    display: grid;
    gap: 18px;
}

.classlist-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.classlist-hero-copy span,
.classlist-hero-count span,
.classlist-metric-card span,
.classlist-capacity-header span,
.classlist-gender-card span,
.classlist-table-header span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.classlist-hero-copy h2 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 27px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.classlist-hero-copy p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.classlist-hero-count {
    min-width: 190px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .classlist-hero-count span {
        color: #cbd5e1;
    }

    .classlist-hero-count strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .classlist-hero-count small {
        display: block;
        margin-top: 4px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 750;
    }

.classlist-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.classlist-metric-card {
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .classlist-metric-card strong {
        display: block;
        margin-top: 7px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .classlist-metric-card small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
        font-weight: 750;
    }

.classlist-capacity-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .classlist-capacity-card.open {
        border-color: #bbf7d0;
    }

    .classlist-capacity-card.near-full {
        border-color: #fed7aa;
    }

    .classlist-capacity-card.full {
        border-color: #fecaca;
    }

.classlist-capacity-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

    .classlist-capacity-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .classlist-capacity-header em {
        font-style: normal;
        font-size: 13px;
        font-weight: 950;
    }

        .classlist-capacity-header em.success {
            color: #15803d;
        }

        .classlist-capacity-header em.warning {
            color: #ea580c;
        }

        .classlist-capacity-header em.danger {
            color: #b91c1c;
        }

.classlist-capacity-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .classlist-capacity-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
    }

.classlist-capacity-card.near-full .classlist-capacity-track div {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.classlist-capacity-card.full .classlist-capacity-track div {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.classlist-capacity-legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.classlist-gender-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.classlist-gender-card {
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 12px;
    align-items: center;
}

.classlist-gender-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 950;
    background: #f1f5f9;
    color: #ea580c;
}

.classlist-gender-card.male .classlist-gender-icon {
    background: #eff6ff;
    color: #2563eb;
}

.classlist-gender-card.female .classlist-gender-icon {
    background: #fff7ed;
    color: #ea580c;
}

.classlist-gender-card.total .classlist-gender-icon {
    background: #0f172a;
    color: #ffffff;
}

.classlist-gender-card.neutral .classlist-gender-icon {
    background: #f1f5f9;
    color: #475569;
}

.classlist-gender-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 23px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.classlist-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.classlist-table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

    .classlist-table-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .classlist-table-header small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.classlist-print-date {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.classlist-table tbody tr:hover {
    background: #fff7ed;
}

.classlist-signature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 22px;
}

.classlist-signature-box {
    padding-top: 30px;
    text-align: center;
}

    .classlist-signature-box div {
        border-top: 1px solid #0f172a;
        margin-bottom: 8px;
    }

    .classlist-signature-box strong {
        color: #334155;
        font-size: 12px;
        font-weight: 850;
    }

.classlist-empty-state {
    margin-top: 18px;
    padding: 36px 24px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.classlist-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: #fff7ed;
    color: #ea580c;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.classlist-empty-state h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.classlist-empty-state p {
    margin: 8px auto 16px;
    max-width: 520px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .classlist-hero {
        grid-template-columns: 1fr;
    }

    .classlist-hero-count {
        text-align: left;
    }

    .classlist-metric-grid,
    .classlist-gender-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .classlist-table-header {
        flex-direction: column;
    }

    .classlist-print-date {
        white-space: normal;
    }
}

@media (max-width: 680px) {
    .classlist-metric-grid,
    .classlist-gender-grid,
    .classlist-signature-grid {
        grid-template-columns: 1fr;
    }

    .classlist-capacity-header,
    .classlist-capacity-legend {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* =========================================================
   SECTION OFFERING SETUP - DASHBOARD UPGRADE
   ========================================================= */

.section-offering-dashboard-page {
    display: grid;
    gap: 18px;
}

.section-offering-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.section-offering-hero-copy span,
.section-offering-hero-rate span,
.section-offering-metric-card span,
.section-offering-capacity-header span,
.section-offering-table-header span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.section-offering-hero-copy h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.section-offering-hero-copy p {
    margin: 0;
    max-width: 820px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.section-offering-hero-rate {
    min-width: 200px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .section-offering-hero-rate span {
        color: #cbd5e1;
    }

    .section-offering-hero-rate strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .section-offering-hero-rate small {
        display: block;
        margin-top: 4px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 750;
    }

.section-offering-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.section-offering-metric-card {
    min-width: 0;
    padding: 15px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 10px;
    align-items: center;
}

    .section-offering-metric-card.highlight {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .section-offering-metric-card.warning {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .section-offering-metric-card.danger {
        background: #fff1f2;
        border-color: #fecaca;
    }

.section-offering-metric-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: #f1f5f9;
    color: #ea580c;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
}

.section-offering-metric-card.highlight .section-offering-metric-icon {
    background: #dcfce7;
    color: #15803d;
}

.section-offering-metric-card.warning .section-offering-metric-icon {
    background: #ffedd5;
    color: #ea580c;
}

.section-offering-metric-card.danger .section-offering-metric-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.section-offering-metric-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-offering-metric-card small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.section-offering-capacity-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.section-offering-capacity-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

    .section-offering-capacity-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .section-offering-capacity-header em {
        font-style: normal;
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
    }

.section-offering-capacity-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .section-offering-capacity-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
    }

.section-offering-capacity-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.section-offering-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.section-offering-table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

    .section-offering-table-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .section-offering-table-header small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

    .section-offering-table-header em {
        color: #ea580c;
        font-size: 12px;
        font-style: normal;
        font-weight: 950;
        white-space: nowrap;
    }

.section-offering-table tbody tr:hover {
    background: #fff7ed;
}

.section-offering-capacity-cell {
    display: grid;
    gap: 7px;
    min-width: 170px;
}

    .section-offering-capacity-cell > div:first-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .section-offering-capacity-cell strong {
        color: #0f172a;
        font-weight: 950;
    }

.section-offering-row-track {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .section-offering-row-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
    }

.section-offering-capacity-cell small {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
}

.section-offering-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.section-offering-empty-state {
    padding: 30px 20px;
    text-align: center;
}

    .section-offering-empty-state.compact {
        padding: 24px 16px;
    }

    .section-offering-empty-state strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .section-offering-empty-state span {
        display: block;
        margin: 5px auto 0;
        max-width: 520px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

@media (max-width: 1280px) {
    .section-offering-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .section-offering-hero {
        grid-template-columns: 1fr;
    }

    .section-offering-hero-rate {
        text-align: left;
    }

    .section-offering-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-offering-table-header,
    .section-offering-capacity-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .section-offering-metric-grid {
        grid-template-columns: 1fr;
    }

    .section-offering-capacity-legend {
        flex-direction: column;
    }
}

/* =========================================================
   STUDENT REQUIREMENTS - PROGRESS UPGRADE
   ========================================================= */

.student-requirements-page {
    display: grid;
    gap: 18px;
}

.student-requirement-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.student-requirement-hero-copy span,
.student-requirement-hero-rate span,
.student-requirement-progress-header span,
.student-requirement-card span,
.student-requirement-table-header span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.student-requirement-hero-copy h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.student-requirement-hero-copy p {
    margin: 0;
    max-width: 820px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.student-requirement-hero-rate {
    min-width: 190px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .student-requirement-hero-rate span {
        color: #cbd5e1;
    }

    .student-requirement-hero-rate strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 30px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .student-requirement-hero-rate small {
        display: block;
        margin-top: 4px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 750;
    }

    .student-requirement-hero-rate.complete {
        background: #14532d;
    }

    .student-requirement-hero-rate.progress {
        background: #0f172a;
    }

    .student-requirement-hero-rate.low {
        background: #7f1d1d;
    }

.student-requirement-progress-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .student-requirement-progress-card.complete {
        border-color: #bbf7d0;
    }

    .student-requirement-progress-card.progress {
        border-color: #fed7aa;
    }

    .student-requirement-progress-card.low {
        border-color: #fecaca;
    }

.student-requirement-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

    .student-requirement-progress-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .student-requirement-progress-header em {
        font-style: normal;
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
    }

.student-requirement-progress-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .student-requirement-progress-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
    }

.student-requirement-progress-card.low .student-requirement-progress-track div {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.student-requirement-progress-card.complete .student-requirement-progress-track div {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.student-requirement-progress-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.student-requirement-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.student-requirement-card {
    min-width: 0;
    padding: 15px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    display: flex;
    gap: 10px;
    align-items: center;
}

    .student-requirement-card.accepted {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .student-requirement-card.pending {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .student-requirement-card.rejected,
    .student-requirement-card.missing {
        background: #fff1f2;
        border-color: #fecaca;
    }

    .student-requirement-card.neutral {
        background: #f8fafc;
    }

.student-requirement-card-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: #f1f5f9;
    color: #ea580c;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 950;
}

.student-requirement-card.accepted .student-requirement-card-icon {
    background: #dcfce7;
    color: #15803d;
}

.student-requirement-card.pending .student-requirement-card-icon {
    background: #ffedd5;
    color: #ea580c;
}

.student-requirement-card.rejected .student-requirement-card-icon,
.student-requirement-card.missing .student-requirement-card-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.student-requirement-card strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.student-requirement-card small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.25;
}

.student-requirement-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.student-requirement-table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

    .student-requirement-table-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .student-requirement-table-header small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

    .student-requirement-table-header em {
        color: #ea580c;
        font-size: 12px;
        font-style: normal;
        font-weight: 950;
        white-space: nowrap;
    }

.student-requirement-row.accepted {
    background: #fbfffd;
}

.student-requirement-row.rejected,
.student-requirement-row.missing {
    background: #fffafa;
}

.student-requirement-row.pending {
    background: #fffdf8;
}

.student-requirement-row:hover {
    background: #fff7ed;
}

.student-requirement-missing-note {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 11px;
    font-weight: 850;
}

.student-requirement-empty-state {
    padding: 36px 24px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.10), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.student-requirement-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 20px;
    background: #fff7ed;
    color: #ea580c;
    display: grid;
    place-items: center;
    font-size: 24px;
}

.student-requirement-empty-state h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.student-requirement-empty-state p {
    margin: 8px auto 16px;
    max-width: 520px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

@media (max-width: 1280px) {
    .student-requirement-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .student-requirement-hero {
        grid-template-columns: 1fr;
    }

    .student-requirement-hero-rate {
        text-align: left;
    }

    .student-requirement-progress-header,
    .student-requirement-table-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .student-requirement-table-header em {
            white-space: normal;
        }
}

@media (max-width: 620px) {
    .student-requirement-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-requirement-progress-legend {
        flex-direction: column;
    }
}







/* =========================================================
   STUDENT DETAILS CABINET
   ========================================================= */

.student-details-btn {
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .student-details-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

.student-cabinet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    transition: background 0.28s ease, backdrop-filter 0.28s ease;
}

    .student-cabinet-backdrop.show {
        display: flex;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(5px);
    }

.student-details-cabinet {
    width: min(560px, 100%);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #fed7aa;
    box-shadow: -28px 0 70px rgba(15, 23, 42, 0.25);
    transform: translateX(100%) scale(0.985);
    opacity: 0;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
    display: flex;
    flex-direction: column;
    will-change: transform, opacity;
}

    .student-details-cabinet.show {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

.student-cabinet-header {
    padding: 22px 24px;
    border-bottom: 1px solid #fed7aa;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 38%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

    .student-cabinet-header span {
        color: #ea580c;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .student-cabinet-header h3 {
        margin: 5px 0 4px;
        color: #0f172a;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .student-cabinet-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

.student-cabinet-close {
    width: 40px;
    height: 40px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #ffffff;
    color: #9a3412;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .student-cabinet-close:hover {
        transform: rotate(90deg);
        background: #fff7ed;
        color: #ea580c;
    }

.student-cabinet-body {
    padding: 20px 22px 24px;
    overflow: auto;
    flex: 1;
}

.student-cabinet-profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid #fed7aa;
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.08);
}

.student-cabinet-photo-wrap {
    width: 58px;
    height: 58px;
    min-width: 58px;
}

.student-cabinet-photo {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid #fed7aa;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.student-cabinet-initial {
    width: 58px;
    height: 58px;
    min-width: 58px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    color: #ea580c;
    border: 1px solid #fed7aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 950;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.10);
}

.student-cabinet-profile-info span,
.student-cabinet-info-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.student-cabinet-profile-info strong {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-size: 17px;
    font-weight: 950;
    line-height: 1.2;
}

.student-cabinet-profile-info small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.student-cabinet-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

    .student-cabinet-info-grid div {
        padding: 14px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .student-cabinet-info-grid .wide {
        grid-column: span 2;
    }

    .student-cabinet-info-grid strong {
        display: block;
        margin-top: 5px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        word-break: break-word;
    }

.student-cabinet-note {
    margin-top: 16px;
    padding: 15px 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .student-cabinet-note strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .student-cabinet-note span {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

.student-cabinet-actions {
    padding: 14px 22px 18px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .student-cabinet-actions form {
        margin: 0;
    }

.student-cabinet-btn {
    min-width: 92px;
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 950;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .student-cabinet-btn:hover {
        transform: translateY(-2px);
        border-color: #fed7aa;
        background: #fff7ed;
        color: #ea580c;
        box-shadow: 0 14px 28px rgba(249, 115, 22, 0.16);
    }

    .student-cabinet-btn.primary {
        border-color: transparent;
        background: linear-gradient(135deg, #f97316, #ea580c);
        color: #ffffff;
        box-shadow: 0 10px 20px rgba(249, 115, 22, 0.18);
    }

        .student-cabinet-btn.primary:hover {
            color: #ffffff;
            background: linear-gradient(135deg, #ea580c, #c2410c);
            box-shadow: 0 14px 26px rgba(249, 115, 22, 0.26);
        }

    .student-cabinet-btn.danger {
        border-color: #fecaca;
        background: #ffffff;
        color: #991b1b;
    }

        .student-cabinet-btn.danger:hover {
            background: #fef2f2;
            border-color: #fca5a5;
            color: #b91c1c;
            box-shadow: 0 14px 28px rgba(239, 68, 68, 0.12);
        }

@media (max-width: 1100px) {
    .student-management-hero {
        grid-template-columns: 1fr;
    }

    .student-management-hero-count {
        text-align: left;
    }

    .student-management-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-management-table-header,
    .student-management-filter-alert {
        flex-direction: column;
        align-items: flex-start;
    }

        .student-management-table-header em {
            white-space: normal;
        }
}

@media (max-width: 640px) {
    .student-management-metric-grid {
        grid-template-columns: 1fr;
    }

    .student-details-cabinet {
        width: 100%;
    }

    .student-cabinet-info-grid {
        grid-template-columns: 1fr;
    }

        .student-cabinet-info-grid .wide {
            grid-column: span 1;
        }

    .student-cabinet-actions {
        justify-content: stretch;
    }

        .student-cabinet-btn,
        .student-cabinet-actions form {
            flex: 1;
        }

    .student-cabinet-btn {
        width: 100%;
    }
}


/* =========================================================
   STUDENT SOA - PREMIUM UPGRADE
   ========================================================= */

.student-soa-page {
    display: grid;
    gap: 18px;
}

.student-soa-hero {
    padding: 22px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 36%), linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.student-soa-hero-copy span,
.student-soa-status-card span,
.student-soa-summary-card span,
.student-soa-progress-header span,
.student-soa-table-header span {
    display: block;
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.student-soa-hero-copy h3 {
    margin: 5px 0 6px;
    color: #0f172a;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.student-soa-hero-copy p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
}

.student-soa-status-card {
    min-width: 180px;
    padding: 16px 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #ffffff;
    text-align: right;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

    .student-soa-status-card span {
        color: #cbd5e1;
    }

    .student-soa-status-card strong {
        display: block;
        margin-top: 5px;
        color: #ffffff;
        font-size: 26px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .student-soa-status-card small {
        display: block;
        margin-top: 4px;
        color: #cbd5e1;
        font-size: 11px;
        font-weight: 750;
    }

    .student-soa-status-card.success {
        background: #14532d;
    }

    .student-soa-status-card.warning {
        background: #9a3412;
    }

    .student-soa-status-card.neutral {
        background: #0f172a;
    }

.student-soa-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.student-soa-summary-card {
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .student-soa-summary-card.paid {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }

    .student-soa-summary-card.balance {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .student-soa-summary-card strong {
        display: block;
        margin-top: 7px;
        color: #0f172a;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .student-soa-summary-card.paid strong {
        color: #15803d;
    }

    .student-soa-summary-card.balance strong {
        color: #ea580c;
    }

    .student-soa-summary-card small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 11px;
        font-weight: 750;
    }

.student-soa-progress-card {
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

    .student-soa-progress-card.success {
        border-color: #bbf7d0;
    }

    .student-soa-progress-card.warning {
        border-color: #fed7aa;
    }

    .student-soa-progress-card.neutral {
        border-color: #e5e7eb;
    }

.student-soa-progress-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

    .student-soa-progress-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .student-soa-progress-header em {
        font-style: normal;
        color: #ea580c;
        font-size: 13px;
        font-weight: 950;
    }

.student-soa-progress-track {
    height: 12px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

    .student-soa-progress-track div {
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #f97316, #22c55e);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.26);
    }

.student-soa-progress-card.success .student-soa-progress-track div {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.student-soa-progress-card.neutral .student-soa-progress-track div {
    background: linear-gradient(90deg, #94a3b8, #f97316);
}

.student-soa-progress-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
}

.student-soa-void-alert,
.student-soa-info-alert {
    padding: 15px 16px;
    border-radius: 20px;
}

.student-soa-void-alert {
    background: #fff1f2;
    border: 1px solid #fecaca;
}

.student-soa-info-alert {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .student-soa-void-alert strong,
    .student-soa-info-alert strong {
        display: block;
        font-size: 13px;
        font-weight: 950;
    }

.student-soa-void-alert strong {
    color: #991b1b;
}

.student-soa-info-alert strong {
    color: #9a3412;
}

.student-soa-void-alert span,
.student-soa-info-alert span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.student-soa-table-card {
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.student-soa-table-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

    .student-soa-table-header strong {
        display: block;
        margin-top: 3px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

    .student-soa-table-header small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

    .student-soa-table-header em {
        color: #ea580c;
        font-size: 12px;
        font-style: normal;
        font-weight: 950;
        white-space: nowrap;
    }

.student-soa-table tbody tr:hover {
    background: #fff7ed;
}

.student-soa-empty-state {
    padding: 28px 20px;
    text-align: center;
}

    .student-soa-empty-state strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .student-soa-empty-state span {
        display: block;
        margin-top: 5px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.void-row {
    background: #fff1f2;
}

.void-amount {
    color: #991b1b;
    text-decoration: line-through;
}

.void-note {
    display: block;
    margin-top: 4px;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.void-detail {
    background: #fff1f2;
    border-color: #fecdd3;
}

@media (max-width: 1100px) {
    .student-soa-hero {
        grid-template-columns: 1fr;
    }

    .student-soa-status-card {
        text-align: left;
    }

    .student-soa-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-soa-table-header,
    .student-soa-progress-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .student-soa-table-header em {
            white-space: normal;
        }
}

@media (max-width: 640px) {
    .student-soa-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-soa-progress-legend {
        flex-direction: column;
    }
}


/* =========================================================
   FEES SETUP PAGE
   Uniform with Cashier Setup design
========================================================= */

.fees-setup-page {
    padding: 22px;
    background: #f8fafc;
    min-height: calc(100vh - 70px);
    color: #0f172a;
}

.fees-setup-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

    .fees-setup-hero > div:first-child {
        background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #eff6ff 100%);
        border: 1px solid #fed7aa;
        border-radius: 22px;
        padding: 24px;
        box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    }

.fees-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

    .fees-back-link:hover {
        color: #c2410c;
        text-decoration: none;
    }

.fees-setup-hero span {
    display: inline-block;
    color: #f97316;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 7px;
}

.fees-setup-hero h2 {
    margin: 0;
    color: #0f172a;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.fees-setup-hero p {
    margin: 10px 0 0;
    max-width: 720px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

.fees-summary-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 12px;
}

    .fees-summary-card > div {
        padding: 14px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .fees-summary-card span {
        display: block;
        color: #64748b;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .05em;
        margin-bottom: 6px;
    }

    .fees-summary-card strong {
        color: #0f172a;
        font-size: 24px;
        font-weight: 900;
    }

/* Alerts */

.fees-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 16px;
    font-size: 14px;
    border: 1px solid transparent;
}

    .fees-alert strong {
        font-weight: 900;
    }

    .fees-alert.success {
        background: #ecfdf5;
        border-color: #bbf7d0;
        color: #166534;
    }

    .fees-alert.error {
        background: #fef2f2;
        border-color: #fecaca;
        color: #991b1b;
    }

/* Tabs */

.fees-tabs {
    display: flex;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow-x: auto;
}

.fees-tab {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 13px;
    font-weight: 900;
    padding: 11px 16px;
    border-radius: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
}

    .fees-tab:hover {
        background: #fff7ed;
        color: #ea580c;
    }

    .fees-tab.active {
        background: #f97316;
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(249, 115, 22, 0.25);
    }

.fees-tab-panel {
    display: none;
}

    .fees-tab-panel.active {
        display: block;
    }

/* Filter Card */

.fees-filter-card,
.fees-list-card,
.fees-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.fees-filter-card {
    padding: 18px;
    margin-bottom: 16px;
}

.fees-filter-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-top: 14px;
}

.fees-filter-action {
    display: flex;
    align-items: end;
}

/* Cards and Layout */

.fees-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.fees-list-card {
    overflow: hidden;
}

.fees-form-card {
    padding: 18px;
    position: sticky;
    top: 88px;
}

.fees-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
}

    .fees-card-header.compact {
        padding: 0 0 16px;
        border-bottom: 1px solid #e2e8f0;
        margin-bottom: 16px;
    }

    .fees-card-header span {
        display: block;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 5px;
    }

    .fees-card-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
    }

    .fees-card-header p {
        margin: 7px 0 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.55;
    }

.fees-plan-pill {
    min-width: 130px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    text-align: right;
}

    .fees-plan-pill span {
        color: #9a3412;
        margin-bottom: 4px;
    }

    .fees-plan-pill strong {
        display: block;
        color: #ea580c;
        font-size: 15px;
        font-weight: 900;
    }

/* Forms */

.fees-entry-form {
    display: grid;
    gap: 14px;
}

.fees-field {
    display: grid;
    gap: 7px;
}

    .fees-field label {
        color: #334155;
        font-size: 13px;
        font-weight: 900;
    }

    .fees-field input,
    .fees-field select {
        width: 100%;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #0f172a;
        border-radius: 14px;
        padding: 11px 12px;
        font-size: 14px;
        outline: none;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

        .fees-field input:focus,
        .fees-field select:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

    .fees-field small {
        color: #64748b;
        font-size: 12px;
        line-height: 1.45;
    }

.locked-code {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
}

/* Table */

.fees-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.fees-table {
    width: 100%;
    border-collapse: collapse;
}

    .fees-table thead th {
        background: #f8fafc;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .05em;
        padding: 13px 14px;
        border-bottom: 1px solid #e2e8f0;
        text-align: left;
        white-space: nowrap;
    }

    .fees-table tbody td {
        color: #334155;
        font-size: 14px;
        padding: 13px 14px;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: middle;
    }

    .fees-table tbody tr:hover {
        background: #fff7ed;
    }

    .fees-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .fees-table strong {
        color: #0f172a;
        font-weight: 900;
    }

.check-col {
    width: 90px;
    text-align: center !important;
}

.fees-line-check {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
    cursor: pointer;
}

.fees-amount-input {
    width: 160px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    text-align: right;
    font-weight: 800;
    color: #0f172a;
    outline: none;
}

    .fees-amount-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.money-text {
    color: #0f172a;
    font-weight: 900;
}

.muted-text {
    color: #94a3b8;
    font-size: 13px;
}

/* Status */

.fees-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

    .fees-status.active {
        background: #dcfce7;
        color: #166534;
    }

    .fees-status.inactive {
        background: #f1f5f9;
        color: #64748b;
    }

.fees-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

    .fees-status-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

/* Summary Box */

.fees-total-box {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

    .fees-total-box > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .fees-total-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
    }

    .fees-total-box strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .fees-total-box .highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .fees-total-box .highlight span {
            color: #9a3412;
        }

        .fees-total-box .highlight strong {
            color: #ea580c;
            font-size: 18px;
        }

/* Buttons and Actions */

.fees-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.fees-btn,
.fees-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: all .18s ease;
}

.fees-btn {
    min-height: 42px;
    padding: 10px 16px;
}

.fees-action-btn {
    min-height: 34px;
    padding: 7px 12px;
    background: #fff7ed;
    border-color: #fed7aa;
    color: #ea580c;
}

    .fees-action-btn:hover {
        background: #ffedd5;
        color: #c2410c;
        text-decoration: none;
    }

.fees-btn.primary {
    background: #f97316;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(249, 115, 22, 0.22);
}

    .fees-btn.primary:hover {
        background: #ea580c;
        color: #ffffff;
    }

.fees-btn.ghost {
    background: #ffffff;
    color: #475569;
    border-color: #cbd5e1;
}

    .fees-btn.ghost:hover {
        background: #f8fafc;
        color: #0f172a;
        text-decoration: none;
    }

.action-col {
    width: 120px;
    text-align: right !important;
}

/* Switch */

.fees-switch-row {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
}

    .fees-switch-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: #f97316;
    }

    .fees-switch-row span {
        display: grid;
        gap: 3px;
    }

    .fees-switch-row strong {
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
    }

    .fees-switch-row small {
        color: #64748b;
        font-size: 12px;
        line-height: 1.45;
    }

/* Empty */

.fees-empty {
    margin: 18px;
    padding: 26px;
    text-align: center;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 1100px) {
    .fees-setup-hero,
    .fees-panel-grid {
        grid-template-columns: 1fr;
    }

    .fees-form-card {
        position: static;
    }

    .fees-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .fees-setup-page {
        padding: 14px;
    }

    .fees-setup-hero > div:first-child,
    .fees-summary-card,
    .fees-filter-card,
    .fees-form-card {
        border-radius: 18px;
    }

    .fees-filter-form {
        grid-template-columns: 1fr;
    }

    .fees-card-header {
        flex-direction: column;
    }

    .fees-plan-pill {
        width: 100%;
        text-align: left;
    }

    .fees-form-actions {
        flex-direction: column;
    }

    .fees-btn {
        width: 100%;
    }

    .fees-amount-input {
        width: 130px;
    }
}

.schedule-particulars-input,
.schedule-date-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

    .schedule-particulars-input:focus,
    .schedule-date-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }


.schedule-particulars-input,
.schedule-date-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

    .schedule-particulars-input:focus,
    .schedule-date-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.schedule-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

@media (max-width: 1100px) {
    .schedule-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .schedule-filter-form {
        grid-template-columns: 1fr;
    }
}


.auto-load-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.schedule-filter-form.auto-load-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.schedule-particulars-input,
.schedule-date-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

    .schedule-particulars-input:focus,
    .schedule-date-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

@media (max-width: 1100px) {
    .auto-load-filter-form,
    .schedule-filter-form.auto-load-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .auto-load-filter-form,
    .schedule-filter-form.auto-load-filter-form {
        grid-template-columns: 1fr;
    }
}

.setup-filter-card {
    margin-bottom: 16px;
    padding-bottom: 18px;
}

.setup-auto-filter-form {
    display: grid;
    gap: 14px;
    padding: 0 18px 0;
    align-items: end;
}

.setup-auto-filter-form-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-auto-filter-form-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-plan-pill {
    min-width: 135px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    text-align: right;
}

    .setup-plan-pill span {
        display: block;
        color: #9a3412;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 4px;
    }

    .setup-plan-pill strong {
        display: block;
        color: #ea580c;
        font-size: 15px;
        font-weight: 900;
    }

.setup-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

    .setup-status-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

.setup-total-box {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

    .setup-total-box > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .setup-total-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
    }

    .setup-total-box strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .setup-total-box .highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .setup-total-box .highlight span {
            color: #9a3412;
        }

        .setup-total-box .highlight strong {
            color: #ea580c;
            font-size: 18px;
        }

.setup-money-input,
.setup-text-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

.setup-money-input {
    max-width: 160px;
    text-align: right;
    font-weight: 800;
}

    .setup-text-input:focus,
    .setup-money-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.fees-line-check {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
    cursor: pointer;
}

.check-col {
    width: 90px;
    text-align: center !important;
}

.setup-table-actions {
    padding: 18px;
    justify-content: space-between;
}

@media (max-width: 1100px) {
    .setup-auto-filter-form-three,
    .setup-auto-filter-form-two {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .setup-auto-filter-form-three,
    .setup-auto-filter-form-two {
        grid-template-columns: 1fr;
    }

    .setup-table-actions {
        flex-direction: column;
    }

        .setup-table-actions .cashier-btn {
            width: 100%;
        }

    .setup-plan-pill {
        width: 100%;
        text-align: left;
    }
}


.academic-select-wrap {
    position: relative;
    width: 100%;
}

    .academic-select-wrap select {
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #0f172a;
        border-radius: 14px;
        padding: 11px 38px 11px 12px;
        font-size: 14px;
        outline: none;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

        .academic-select-wrap select:focus {
            border-color: #f97316;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

    .academic-select-wrap::after {
        content: "?";
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-54%);
        color: #64748b;
        font-size: 15px;
        font-weight: 900;
        pointer-events: none;
    }


.setup-filter-card {
    margin-bottom: 16px;
    padding-bottom: 18px;
}

.setup-auto-filter-form {
    display: grid;
    gap: 14px;
    padding: 0 18px 0;
    align-items: end;
}

.setup-auto-filter-form-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-auto-filter-form-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-plan-pill {
    min-width: 135px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    text-align: right;
}

    .setup-plan-pill span {
        display: block;
        color: #9a3412;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 4px;
    }

    .setup-plan-pill strong {
        display: block;
        color: #ea580c;
        font-size: 15px;
        font-weight: 900;
    }

.setup-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

    .setup-status-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

.setup-total-box {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

    .setup-total-box > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .setup-total-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
    }

    .setup-total-box strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .setup-total-box .highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .setup-total-box .highlight span {
            color: #9a3412;
        }

        .setup-total-box .highlight strong {
            color: #ea580c;
            font-size: 18px;
        }

.setup-money-input,
.setup-text-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

.setup-money-input {
    max-width: 160px;
    text-align: right;
    font-weight: 800;
}

    .setup-text-input:focus,
    .setup-money-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.fees-line-check {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
    cursor: pointer;
}

.check-col {
    width: 90px;
    text-align: center !important;
}

.setup-table-actions {
    padding: 18px;
    justify-content: space-between;
}

@media (max-width: 1100px) {
    .setup-auto-filter-form-three,
    .setup-auto-filter-form-two {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .setup-auto-filter-form-three,
    .setup-auto-filter-form-two {
        grid-template-columns: 1fr;
    }

    .setup-table-actions {
        flex-direction: column;
    }

        .setup-table-actions .cashier-btn {
            width: 100%;
        }

    .setup-plan-pill {
        width: 100%;
        text-align: left;
    }
}


.setup-filter-card {
    margin-bottom: 16px;
    padding-bottom: 18px;
}

.setup-auto-filter-form {
    display: grid;
    gap: 14px;
    padding: 0 18px 0;
    align-items: end;
}

.setup-auto-filter-form-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.setup-auto-filter-form-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-plan-pill {
    min-width: 135px;
    padding: 12px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    text-align: right;
}

    .setup-plan-pill span {
        display: block;
        color: #9a3412;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 4px;
    }

    .setup-plan-pill strong {
        display: block;
        color: #ea580c;
        font-size: 15px;
        font-weight: 900;
    }

.setup-status-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

    .setup-status-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 900;
    }

.setup-total-box {
    display: grid;
    gap: 10px;
    padding: 13px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
}

    .setup-total-box > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
    }

    .setup-total-box span {
        color: #64748b;
        font-size: 13px;
        font-weight: 800;
    }

    .setup-total-box strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .setup-total-box .highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

        .setup-total-box .highlight span {
            color: #9a3412;
        }

        .setup-total-box .highlight strong {
            color: #ea580c;
            font-size: 18px;
        }

.setup-money-input,
.setup-text-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 9px 10px;
    color: #0f172a;
    outline: none;
    font-size: 14px;
}

.setup-money-input {
    max-width: 160px;
    text-align: right;
    font-weight: 800;
}

    .setup-text-input:focus,
    .setup-money-input:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
    }

.fees-line-check {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
    cursor: pointer;
}

.check-col {
    width: 90px;
    text-align: center !important;
}

.setup-table-actions {
    padding: 18px;
    justify-content: space-between;
}

@media (max-width: 1100px) {
    .setup-auto-filter-form-three,
    .setup-auto-filter-form-two {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .setup-auto-filter-form-three,
    .setup-auto-filter-form-two {
        grid-template-columns: 1fr;
    }

    .setup-table-actions {
        flex-direction: column;
    }

        .setup-table-actions .cashier-btn {
            width: 100%;
        }

    .setup-plan-pill {
        width: 100%;
        text-align: left;
    }
}

.setup-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.setup-copy-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px;
    background: #f8fafc;
    display: grid;
    gap: 12px;
}

    .setup-copy-card > span {
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .setup-copy-card h3 {
        margin: -6px 0 0;
        font-size: 16px;
        font-weight: 900;
        color: #0f172a;
    }

@media (max-width: 900px) {
    .setup-copy-grid {
        grid-template-columns: 1fr;
    }
}

.settings-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #f97316;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 12px;
}

    .settings-back-link:hover {
        color: #ea580c;
        text-decoration: underline;
    }


.schoolyear-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(340px, .8fr);
    gap: 18px;
    align-items: start;
}

.schoolyear-form-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.schoolyear-form-header {
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
}

    .schoolyear-form-header span {
        display: block;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 5px;
    }

    .schoolyear-form-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 18px;
        font-weight: 900;
    }

    .schoolyear-form-header p {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        line-height: 1.5;
    }

.schoolyear-entry-form {
    padding: 18px;
    display: grid;
    gap: 14px;
}

.schoolyear-switch-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

    .schoolyear-switch-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #f97316;
        margin-top: 3px;
    }

    .schoolyear-switch-row span {
        display: grid;
        gap: 3px;
    }

    .schoolyear-switch-row strong {
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
    }

    .schoolyear-switch-row small {
        color: #64748b;
        font-size: 12px;
        line-height: 1.4;
    }

.schoolyear-warning-box {
    display: grid;
    gap: 4px;
    padding: 13px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .schoolyear-warning-box strong {
        color: #9a3412;
        font-size: 13px;
        font-weight: 900;
    }

    .schoolyear-warning-box span {
        color: #7c2d12;
        font-size: 12px;
        line-height: 1.45;
    }

.schoolyear-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.locked-code {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .schoolyear-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .schoolyear-form-actions {
        flex-direction: column;
    }

        .schoolyear-form-actions .user-btn {
            width: 100%;
        }
}


/* =========================================================
   STUDENT PHOTO SEARCH / CAPTURE LIST
   Page: StudentPhotoSearch.cshtml
   ========================================================= */

.student-photo-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.student-photo-summary-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}

    .student-photo-summary-card.success {
        background: #F0FDF4;
        border-color: #BBF7D0;
    }

    .student-photo-summary-card.warning {
        background: #FFF7ED;
        border-color: #FDBA74;
    }

.student-photo-summary-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFF7ED;
    color: #EA580C;
    border: 1px solid #FDBA74;
    font-size: 19px;
}

.student-photo-summary-card.success .student-photo-summary-icon {
    background: #DCFCE7;
    color: #166534;
    border-color: #BBF7D0;
}

.student-photo-summary-card.warning .student-photo-summary-icon {
    background: #FFEDD5;
    color: #C2410C;
    border-color: #FDBA74;
}

.student-photo-summary-card span {
    display: block;
    color: #64748B;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.student-photo-summary-card strong {
    display: block;
    margin-top: 5px;
    color: #0F172A;
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.student-photo-summary-card small {
    display: block;
    margin-top: 3px;
    color: #64748B;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.assessment-search-clear {
    min-height: 42px;
    align-self: end;
}

.student-photo-table-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
    overflow: hidden;
}

.student-photo-table-header {
    padding: 18px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

    .student-photo-table-header span {
        display: block;
        color: #EA580C;
        font-size: 11px;
        font-weight: 950;
        letter-spacing: .08em;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .student-photo-table-header strong {
        display: block;
        color: #0F172A;
        font-size: 17px;
        font-weight: 950;
    }

    .student-photo-table-header small {
        display: block;
        color: #64748B;
        font-size: 13px;
        font-weight: 650;
        margin-top: 3px;
    }

    .student-photo-table-header em {
        font-style: normal;
        white-space: nowrap;
        background: #FFF7ED;
        color: #EA580C;
        border: 1px solid #FDBA74;
        border-radius: 999px;
        padding: 7px 11px;
        font-size: 12px;
        font-weight: 900;
    }

.student-photo-table td {
    vertical-align: middle;
}

.student-photo-avatar {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .student-photo-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.student-photo-avatar-initial {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 950;
}

.student-photo-name {
    display: grid;
    gap: 3px;
}

    .student-photo-name strong {
        color: #0F172A;
        font-size: 13px;
        font-weight: 950;
    }

    .student-photo-name span {
        color: #64748B;
        font-size: 12px;
        font-weight: 650;
    }

.student-photo-status-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.student-photo-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

    .student-photo-pill.success {
        background: #DCFCE7;
        color: #166534;
    }

    .student-photo-pill.warning {
        background: #FEF3C7;
        color: #92400E;
    }

.student-photo-empty-state {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 34px;
    border: 1px dashed #CBD5E1;
    border-radius: 22px;
    background: #F8FAFC;
    margin-top: 18px;
}

.student-photo-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFF7ED;
    border: 1px solid #FDBA74;
    color: #EA580C;
    font-size: 28px;
    margin-bottom: 14px;
}

.student-photo-empty-state h3 {
    margin: 0;
    color: #0F172A;
    font-size: 18px;
    font-weight: 800;
}

.student-photo-empty-state p {
    margin: 6px 0 0;
    color: #64748B;
    font-size: 14px;
}

@media (max-width: 1200px) {
    .student-photo-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .student-photo-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-photo-table-header {
        flex-direction: column;
    }

    .assessment-search-clear {
        width: 100%;
    }
}


/* =========================================================
   Payment History - Void State
   ========================================================= */

.void-row {
    background: #fff1f2;
}

.void-amount {
    color: #991b1b;
    text-decoration: line-through;
}

.void-note {
    display: block;
    margin-top: 4px;
    color: #991b1b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   Shared Table Action Dropdown
   ========================================================= */

.table-action-dropdown {
    position: relative;
    display: inline-block;
}

.action-dropdown-menu {
    display: none;
    min-width: 220px;
    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;
}


/* =========================================================
   Payment History - Void Payment Drawer
   ========================================================= */

.void-payment-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0);
    transition: background 0.26s ease, backdrop-filter 0.26s ease;
}

    .void-payment-backdrop.show {
        display: flex;
        background: rgba(15, 23, 42, 0.46);
        backdrop-filter: blur(5px);
    }

.void-payment-drawer {
    width: min(560px, 100%);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid #fecaca;
    box-shadow: -28px 0 70px rgba(15, 23, 42, 0.24);
    transform: translateX(100%) scale(0.985);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
    display: flex;
    flex-direction: column;
}

    .void-payment-drawer.show {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

.void-payment-header {
    padding: 24px;
    background: radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 38%), linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
    border-bottom: 1px solid #fecaca;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

    .void-payment-header span {
        color: #dc2626;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .void-payment-header h3 {
        margin: 6px 0 5px;
        color: #0f172a;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.045em;
    }

    .void-payment-header p {
        margin: 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.void-payment-close {
    width: 40px;
    height: 40px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #ffffff;
    color: #991b1b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .void-payment-close:hover {
        transform: rotate(90deg);
        background: #fee2e2;
        color: #b91c1c;
    }

.void-payment-body {
    padding: 22px;
    overflow: auto;
    flex: 1;
}

.void-warning-card {
    padding: 16px;
    border-radius: 20px;
    background: #fff1f2;
    border: 1px solid #fecaca;
    margin-bottom: 16px;
}

    .void-warning-card strong {
        display: block;
        color: #991b1b;
        font-size: 13px;
        font-weight: 950;
    }

    .void-warning-card span {
        display: block;
        margin-top: 4px;
        color: #b91c1c;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.45;
    }

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

    .void-payment-summary div {
        padding: 13px;
        border-radius: 16px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .void-payment-summary span,
    .void-amount-card span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .void-payment-summary strong {
        display: block;
        margin-top: 6px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 950;
    }

.void-amount-card {
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #7f1d1d;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .void-amount-card span {
        color: #fecaca;
    }

    .void-amount-card strong {
        color: #ffffff;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

.void-reason-field {
    margin-top: 16px;
}

    .void-reason-field label strong {
        color: #dc2626;
    }

.form-line textarea {
    width: 100%;
    min-height: 120px;
    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: #ef4444;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
    }

#voidReasonCounter {
    display: block;
    margin-top: 7px;
    color: #991b1b;
    font-size: 11px;
    font-weight: 800;
}

    #voidReasonCounter.ok {
        color: #15803d;
    }

.void-payment-footer {
    padding: 16px 22px;
    border-top: 1px solid #fecaca;
    background: #fff1f2;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn.danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

    .btn.danger:hover {
        background: #b91c1c;
        border-color: #b91c1c;
    }


/* =========================================================
   Payment History - Responsive
   ========================================================= */

@media (max-width: 640px) {
    .void-payment-drawer {
        width: 100%;
    }

    .void-payment-summary {
        grid-template-columns: 1fr;
    }

    .void-payment-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

        .void-payment-footer .btn {
            width: 100%;
        }
}


/* =========================================================
   STUDENT / ADMIN SHARED ENTERPRISE LAYOUT ALIGNMENT
   Put this in site.css
   ========================================================= */

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 18px;
}

.nav-item {
    min-height: 39px;
    padding: 8px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 0.88rem;
    line-height: 1.2;
}

.nav-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(249, 115, 22, 0.10);
    color: #F97316;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.28);
}

.nav-item:hover .nav-icon {
    background: rgba(249, 115, 22, 0.16);
    transform: translateY(-1px);
}

.sidebar-note {
    margin-top: 14px;
    margin-bottom: 18px;
}

.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;
}

.topbar {
    gap: 16px;
}

    .topbar > div:first-of-type {
        min-width: 0;
        flex: 1 1 auto;
    }

.topbar-actions {
    flex: 0 0 auto;
}

/* =========================================================
   ACCOUNT DROPDOWN MENU
   Used by Student Portal topbar
   ========================================================= */

.account-menu-wrap {
    position: relative;
}

.account-menu-trigger {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    background: transparent;
}

.account-menu-chevron {
    margin-left: 6px;
    color: #64748b;
    font-size: 0.82rem;
    transition: transform 0.18s ease;
}

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 9999;
    width: 250px;
    display: none;
    padding: 8px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

    .account-menu.show {
        display: block;
    }

.account-menu-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 6px;
}

.account-menu-avatar {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-weight: 900;
}

.account-menu-header strong {
    display: block;
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
}

.account-menu-header span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    margin-top: 2px;
}

.account-menu a,
.account-menu button {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #334155;
    text-decoration: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .account-menu a:hover,
    .account-menu button:hover {
        background: #fff7ed;
        color: #ea580c;
        transform: translateX(2px);
    }

.account-menu form {
    margin: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar-actions {
        margin-left: auto;
    }
}


/* =========================================================
   STUDENT PROFILE READ-ONLY VIEW
   ========================================================= */

.student-profile-view-page {
    display: grid;
    gap: 18px;
}

.student-profile-view-hero {
    border-radius: 28px;
    padding: 24px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 38%), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.20);
}

.student-profile-view-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.student-profile-view-photo {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 30px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.24);
    position: relative;
}

    .student-profile-view-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.student-profile-view-initials {
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 30px;
    font-weight: 950;
}

.student-profile-view-main {
    min-width: 0;
}

    .student-profile-view-main > span {
        display: block;
        color: #fed7aa;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.10em;
    }

    .student-profile-view-main h3 {
        margin: 6px 0 3px;
        color: #ffffff;
        font-size: 28px;
        font-weight: 950;
        letter-spacing: -0.045em;
        line-height: 1.08;
    }

    .student-profile-view-main p {
        margin: 0;
        color: #cbd5e1;
        font-size: 13px;
        font-weight: 750;
    }

.student-profile-view-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.student-profile-view-badge {
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 900;
}

    .student-profile-view-badge.success {
        background: rgba(34, 197, 94, 0.14);
        color: #bbf7d0;
        border: 1px solid rgba(34, 197, 94, 0.28);
    }

    .student-profile-view-badge.neutral {
        background: rgba(255, 255, 255, 0.10);
        color: #e2e8f0;
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

.student-profile-view-status {
    width: min(250px, 100%);
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

    .student-profile-view-status span {
        display: block;
        color: #fed7aa;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .student-profile-view-status strong {
        display: block;
        margin-top: 7px;
        color: #ffffff;
        font-size: 34px;
        font-weight: 950;
        letter-spacing: -0.05em;
    }

    .student-profile-view-status small {
        display: block;
        margin-top: 2px;
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 750;
    }

.student-profile-score-card.readonly {
    margin-top: 0;
}

.student-profile-readonly-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .student-profile-readonly-grid.one-column {
        grid-template-columns: 1fr;
    }

.student-profile-readonly-item {
    padding: 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

    .student-profile-readonly-item span {
        display: block;
        color: #64748b;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .student-profile-readonly-item strong {
        display: block;
        margin-top: 7px;
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
        word-break: break-word;
    }

.student-profile-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-profile-contact-note {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .student-profile-contact-note strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
    }

    .student-profile-contact-note span {
        display: block;
        margin-top: 4px;
        color: #9a3412;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

.student-profile-section-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .student-profile-section-header strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
    }

    .student-profile-section-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.student-profile-note {
    padding: 18px;
    border-radius: 22px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .student-profile-note strong {
        display: block;
        color: #9a3412;
        font-size: 14px;
        font-weight: 950;
    }

    .student-profile-note span {
        display: block;
        margin-top: 4px;
        color: #9a3412;
        font-size: 12px;
        font-weight: 650;
        line-height: 1.45;
    }

.student-profile-empty {
    padding: 22px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-profile-empty-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #ea580c;
    font-size: 20px;
    font-weight: 950;
    border: 1px solid #fed7aa;
}

.student-profile-empty strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.student-profile-empty span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
}

/* Responsive */
@media (max-width: 980px) {
    .student-profile-view-hero,
    .student-profile-note {
        flex-direction: column;
        align-items: stretch;
    }

    .student-profile-view-status {
        width: 100%;
    }

    .student-profile-two-column,
    .student-profile-readonly-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .student-profile-view-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-profile-view-main h3 {
        font-size: 24px;
    }

    .student-profile-view-photo {
        width: 84px;
        height: 84px;
        min-width: 84px;
        border-radius: 26px;
    }
}
/* =========================================================
   STUDENT DASHBOARD - PORTAL STYLE
   ========================================================= */

.student-dashboard-page {
    display: grid;
    gap: 18px;
}

.student-dashboard-icon-sprite {
    display: none;
}

.student-dashboard-hero {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 28px;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(249, 115, 22, 0.22), transparent 36%), radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.13), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e293b 54%, #111827 100%);
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}

    .student-dashboard-hero::after {
        content: "";
        position: absolute;
        right: 28px;
        bottom: -44px;
        width: 180px;
        height: 180px;
        border-radius: 40px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        transform: rotate(16deg);
        pointer-events: none;
    }

.student-dashboard-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

    .student-dashboard-hero-copy h2 {
        margin: 8px 0 6px;
        color: #ffffff;
        font-size: 32px;
        font-weight: 950;
        letter-spacing: -0.05em;
        line-height: 1.08;
    }

    .student-dashboard-hero-copy p {
        margin: 0;
        color: #fed7aa;
        font-size: 14px;
        font-weight: 850;
    }

    .student-dashboard-hero-copy small {
        display: block;
        margin-top: 12px;
        max-width: 560px;
        color: #cbd5e1;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.55;
    }

.student-dashboard-status-card {
    position: relative;
    z-index: 1;
    width: min(270px, 100%);
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .student-dashboard-status-card span {
        color: #fed7aa;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .student-dashboard-status-card strong {
        display: block;
        margin-top: 8px;
        color: #ffffff;
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .student-dashboard-status-card small {
        display: block;
        margin-top: 6px;
        color: #cbd5e1;
        font-size: 12px;
        font-weight: 700;
    }

.student-dashboard-snapshot {
    padding: 16px 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

    .student-dashboard-snapshot span,
    .student-dashboard-section-title span {
        display: block;
        color: #ea580c;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .student-dashboard-snapshot strong,
    .student-dashboard-section-title strong {
        display: block;
        margin-top: 4px;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .student-dashboard-snapshot em {
        font-style: normal;
        color: #64748b;
        font-size: 12px;
        font-weight: 850;
        padding: 8px 12px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

.student-dashboard-kpi-grid {
    align-items: stretch;
}

.student-dashboard-kpi-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    padding-top: 20px;
}

    .student-dashboard-kpi-card::after {
        content: "";
        position: absolute;
        top: -42px;
        right: -42px;
        width: 110px;
        height: 110px;
        border-radius: 999px;
        background: rgba(249, 115, 22, 0.07);
        pointer-events: none;
    }

    .student-dashboard-kpi-card.warning {
        border-color: #fed7aa;
    }

    .student-dashboard-kpi-card.success {
        border-color: #bbf7d0;
    }

.student-dashboard-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

    .student-dashboard-kpi-icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.student-dashboard-module-section {
    display: grid;
    gap: 12px;
}

.student-dashboard-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.student-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.student-dashboard-action-card {
    position: relative;
    min-height: 150px;
    padding: 18px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    overflow: hidden;
}

    .student-dashboard-action-card::after {
        content: "";
        position: absolute;
        right: -40px;
        bottom: -40px;
        width: 105px;
        height: 105px;
        border-radius: 32px;
        background: rgba(249, 115, 22, 0.07);
        transform: rotate(14deg);
        pointer-events: none;
    }

.student-dashboard-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .student-dashboard-action-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.student-dashboard-action-card strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.025em;
}

.student-dashboard-action-card small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
}

.student-dashboard-action-card em {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #f8fafc;
    color: #94a3b8;
    border: 1px solid #e5e7eb;
    font-style: normal;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

    .student-dashboard-action-card em svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.student-dashboard-action-card:hover .student-dashboard-action-icon {
    transform: translateY(-2px);
    background: #f97316;
    color: #ffffff;
    border-color: #f97316;
}

.student-dashboard-action-card:hover em {
    transform: translateX(2px);
    color: #ea580c;
    border-color: #fed7aa;
}

.student-dashboard-record-card .panel-header {
    align-items: flex-start;
}

    .student-dashboard-record-card .panel-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

/* Responsive */
@media (max-width: 1100px) {
    .student-dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .student-dashboard-hero {
        flex-direction: column;
    }

    .student-dashboard-status-card {
        width: 100%;
    }

    .student-dashboard-snapshot {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .student-dashboard-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .student-dashboard-hero-copy h2 {
        font-size: 26px;
    }

    .student-dashboard-actions {
        grid-template-columns: 1fr;
    }
}


.student-dashboard-hero-profile {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.student-dashboard-photo {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 30px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.24);
    position: relative;
}

    .student-dashboard-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.student-dashboard-photo-initials {
    width: 100%;
    height: 100%;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 30px;
    font-weight: 950;
}

@media (max-width: 560px) {
    .student-dashboard-hero-profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .student-dashboard-photo {
        width: 84px;
        height: 84px;
        min-width: 84px;
        border-radius: 26px;
    }
}

/ /* =========================================================
   Student Management - Simple Photo Zoom
   Actual image lang ang may hover zoom.
   Initials/fallback walang hover.
   ========================================================= */
.student-photo-preview-table {
    overflow: visible;
}

.student-photo-preview-table .data-table,
.student-photo-preview-table .data-table tbody,
.student-photo-preview-table .data-table tr,
.student-photo-preview-table .data-table td {
    overflow: visible;
}

.student-photo-preview-table .student-list-profile {
    position: relative;
}

.student-photo-preview-table .student-list-photo.has-photo-preview {
    position: relative;
    z-index: 2;
    cursor: zoom-in;
    width: 42px;
    height: 42px;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-radius 0.18s ease;
}

    .student-photo-preview-table .student-list-photo.has-photo-preview:hover {
        z-index: 9999;
        transform: scale(3.2);
        transform-origin: left center;
        border-radius: 12px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.30);
    }

.student-photo-preview-table .student-list-initial {
    cursor: default;
}


.manual-old-balance-filter-grid {
    grid-template-columns: minmax(260px, 1.4fr) minmax(160px, 0.45fr) minmax(130px, 0.35fr) auto;
}

.manual-old-balance-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.manual-old-balance-summary-card {
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

    .manual-old-balance-summary-card.highlight {
        background: #fff7ed;
        border-color: #fed7aa;
    }

    .manual-old-balance-summary-card.danger {
        background: #fef2f2;
        border-color: #fecaca;
    }

    .manual-old-balance-summary-card span {
        display: block;
        color: #ea580c;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .manual-old-balance-summary-card strong {
        display: block;
        margin-top: 7px;
        color: #0f172a;
        font-size: 22px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .manual-old-balance-summary-card small {
        display: block;
        margin-top: 4px;
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.manual-old-balance-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: grid;
    gap: 4px;
}

    .manual-old-balance-note strong {
        color: #0f172a;
        font-size: 12px;
        font-weight: 950;
    }

    .manual-old-balance-note span {
        color: #64748b;
        font-size: 12px;
        font-weight: 650;
    }

.manual-old-balance-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.manual-old-balance-pager {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.manual-old-balance-pager-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manual-old-balance-pager .disabled {
    opacity: 0.45;
    pointer-events: none;
}

.status-pill.info {
    background: #eff6ff;
    color: #2563eb;
}

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

/* MANUAL OLD BALANCE MODAL */
.manual-old-balance-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.50);
    backdrop-filter: blur(6px);
}

    .manual-old-balance-modal-backdrop.show {
        display: flex;
    }

.manual-old-balance-modal-card {
    width: min(680px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #fed7aa;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

    .manual-old-balance-modal-card.small {
        width: min(520px, 100%);
    }

.manual-old-balance-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.16), transparent 36%), linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
    border-bottom: 1px solid #fed7aa;
}

    .manual-old-balance-modal-header.danger {
        background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%);
        border-bottom-color: #fecaca;
    }

    .manual-old-balance-modal-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 20px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .manual-old-balance-modal-header p {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 650;
        line-height: 1.45;
    }

.manual-old-balance-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;
}

.manual-old-balance-modal-body {
    padding: 22px 24px;
}

.manual-old-balance-modal-footer {
    padding: 18px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

.manual-old-balance-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .manual-old-balance-detail-grid div {
        padding: 14px;
        border-radius: 18px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .manual-old-balance-detail-grid .full {
        grid-column: 1 / -1;
    }

    .manual-old-balance-detail-grid span {
        display: block;
        color: #ea580c;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .manual-old-balance-detail-grid strong {
        display: block;
        margin-top: 6px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        word-break: break-word;
    }

.manual-old-balance-warning {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    display: grid;
    gap: 4px;
}

    .manual-old-balance-warning strong {
        color: #991b1b;
        font-size: 12px;
        font-weight: 950;
    }

    .manual-old-balance-warning span {
        color: #7f1d1d;
        font-size: 12px;
        font-weight: 650;
    }

@media (max-width: 980px) {
    .manual-old-balance-filter-grid {
        grid-template-columns: 1fr 1fr;
    }

    .manual-old-balance-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .manual-old-balance-pager {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .manual-old-balance-filter-grid,
    .manual-old-balance-summary-grid,
    .manual-old-balance-detail-grid {
        grid-template-columns: 1fr;
    }

    .manual-old-balance-pager-actions {
        flex-wrap: wrap;
    }
}