/* site.css - cleaned revised version
   Duplicate selector blocks and repeated properties were consolidated.
   Unmatched extra closing braces were removed.
*/

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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-trigger:hover {
    transform: translateY(-1px);
}

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

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

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

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

@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 var(--theme-primary-soft, #fed7aa);
    border-top-color: var(--theme-primary, #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, var(--theme-primary, #f97316), var(--theme-primary-dark, #ea580c) );
    color: var(--theme-primary-text, #ffffff);
    font-size: 26px;
    box-shadow: var(--theme-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;
    }

.sectioning-section-head span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sectioning-section-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

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

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

.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-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.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-select-wrap select:hover {
    border-color: #fed7aa;
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.08);
}

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

.classlist-page {
    position: relative;
}

.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-header span, .classlist-print-date {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.classlist-table td, .classlist-table th {
    white-space: nowrap;
}

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

.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-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-requirement-card span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.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-chart-grid line {
    stroke: url(#collectionGridFade);
    stroke-width: 1;
    stroke-dasharray: 4 7;
    shape-rendering: geometricPrecision;
}

.line-chart-box {
    height: 210px;
    padding: 12px;
    border-radius: 20px;
    background: #F8FAFC;
    border: 1px solid #EEF2F7;
    overflow: hidden;
    position: relative;
}

    .line-chart-box svg {
        width: 100%;
        height: 100%;
        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;
}

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

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

.field-help {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.35;
}

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

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

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

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

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

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

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

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

/ .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 {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sectioning-metric-card {
    position: relative;
    overflow: hidden;
    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 {
    align-items: center;
    justify-content: center;
    border: 1px solid #fed7aa;
    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 {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.sectioning-standard-panel {
    padding: 18px;
    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 {
    margin-bottom: 14px;
    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;
    }

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

.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 {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding-top: 8px;
        border-top: 1px dashed rgba(148, 163, 184, 0.45);
        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 {
        text-align: right;
        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;
    }

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

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

.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 {
    margin-top: 14px;
    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 {
        height: 42px;
        border-bottom: 1px solid #0f172a;
        border-top: 1px solid #0f172a;
        margin-bottom: 8px;
    }

    .classlist-signature-box strong {
        display: block;
        margin-top: 8px;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        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 {
    border: 1px solid #fed7aa;
    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-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 {
    align-items: center;
    justify-content: flex-end;
    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-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 {
    margin: 18px 0;
    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 {
    line-height: 1.2;
    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-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-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-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 {
    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;
    }

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

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

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

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

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

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

.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 {
    font-size: 14px !important;
    color: #0f172a;
    font-weight: 900;
}

.muted-text {
    font-weight: 750;
    color: #94a3b8;
    font-size: 13px;
}

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

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

.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 {
    white-space: nowrap;
    width: 120px;
    text-align: right !important;
}

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

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

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

@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 {
        min-height: 44px;
        font-family: inherit;
        font-weight: 750;
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
        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 {
            background: #ffffff;
            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;
    }

@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-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 {
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: 154px;
    height: 154px;
    border-radius: 17px;
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .student-photo-avatar img {
        display: block;
        border-radius: 28px;
        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%;
    }
}

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

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

body {
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.nav-item {
    color: #CBD5E1;
    border-radius: 16px;
    font-weight: 700;
    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 {
    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: 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 {
    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;
    box-shadow: 0 16px 44px rgba(15, 23, 42, .06);
    position: sticky;
    top: 18px;
    z-index: 10;
    gap: 16px;
}

    .topbar > div:first-of-type {
        min-width: 0;
        flex: 1 1 auto;
    }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.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 {
        animation: accountMenuIn 0.16s ease-out;
        display: block;
    }

.account-menu-header {
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    margin-bottom: 6px;
}

.account-menu-avatar {
    min-width: 38px;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
    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 {
    line-height: 1.25;
    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;
}

@media (max-width: 900px) {
    .topbar {
        flex-wrap: wrap;
    }

    .topbar-actions {
        margin-left: auto;
    }
}

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

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

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

.classlist-student-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.classlist-student-photo, .classlist-student-initial {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    flex: 0 0 42px;
}

.classlist-student-photo {
    object-fit: cover;
    border: 1px solid rgba(15, 23, 42, 0.10);
    background: #f8fafc;
}

.classlist-student-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #9a3412;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border: 1px solid rgba(249, 115, 22, 0.25);
}

.classlist-student-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .classlist-student-name strong {
        color: #0f172a;
        font-weight: 800;
        line-height: 1.2;
    }

    .classlist-student-name span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

@media print {
    .classlist-student-photo, .classlist-student-initial {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        flex: 0 0 30px;
    }

    .classlist-student-profile {
        gap: 8px;
        min-width: 0;
    }

    .classlist-student-name span {
        font-size: 10px;
    }
}

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

.action-dropdown-menu .convert-plan-link {
    color: #ea580c;
    background: #fff7ed;
    margin-top: 4px;
}

    .action-dropdown-menu .convert-plan-link:hover {
        background: #ffedd5;
        color: #c2410c;
    }

.assessment-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.assessment-status-badge-paid {
    background: #ecfdf5;
    color: #047857;
}

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

.assessment-summary-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

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

    .assessment-summary-card strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 800;
    }

.assessment-total-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .assessment-total-card span {
        display: block;
        color: #9a3412;
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 5px;
    }

    .assessment-total-card strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

.amount-col {
    text-align: right;
}

.book-assessment-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.book-assessment-total {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .book-assessment-total span {
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }

    .book-assessment-total strong {
        color: #ea580c;
        font-size: 24px;
        font-weight: 900;
    }

.book-include-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.text-success {
    color: #047857 !important;
}

.text-muted {
    color: #64748b !important;
}

@media (max-width: 900px) {
    .assessment-summary-grid, .assessment-total-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-assessment-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .assessment-summary-grid, .assessment-total-card {
        grid-template-columns: 1fr;
    }
}

.section-spacer {
    height: 22px;
}

.panel-header.small {
    margin-top: 8px;
    margin-bottom: 14px;
}

.medical-svg-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    flex-shrink: 0;
}

    .medical-svg-icon svg path {
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.medical-information-dashboard-page .medical-list-metric-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
}

.medical-information-dashboard-page .section-offering-metric-card {
    min-height: 120px;
}

.medical-information-details-page .medical-details-metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
}

.medical-information-details-page .section-offering-metric-card {
    min-height: 120px;
}

@media (max-width: 1400px) {
    .medical-information-dashboard-page .medical-list-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .medical-information-details-page .medical-details-metric-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .medical-information-dashboard-page .medical-list-metric-grid, .medical-information-details-page .medical-details-metric-grid {
        grid-template-columns: 1fr;
    }
}

.student-profile-confidential-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin: 18px 0;
    border: 1px solid rgba(220, 38, 38, 0.16);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.95), rgba(255, 255, 255, 0.95));
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.student-profile-confidential-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.student-profile-confidential-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.student-profile-confidential-card span {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #dc2626;
    margin-bottom: 3px;
}

.student-profile-confidential-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.student-profile-confidential-card p {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: #6b7280;
}

.student-profile-confidential-card .btn {
    white-space: nowrap;
    border-radius: 12px;
    font-weight: 700;
}

    .student-profile-confidential-card .btn i {
        margin-right: 6px;
    }

@media (max-width: 768px) {
    .student-profile-confidential-card {
        flex-direction: column;
        align-items: stretch;
    }

        .student-profile-confidential-card .btn {
            width: 100%;
        }
}

.spif-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.spif-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.spif-view-hero .student-profile-view-main p {
    margin-top: 6px;
    max-width: 760px;
}

.spif-view-icon {
    display: grid;
    place-items: center;
    background: rgba(220, 38, 38, 0.10);
    color: #dc2626;
    font-size: 1.6rem;
}

.spif-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 16px;
}

    .spif-field label {
        font-size: 0.88rem;
        font-weight: 800;
        color: #374151;
    }

    .spif-field input, .spif-field select, .spif-field textarea {
        width: 100%;
        border: 1px solid #d1d5db;
        border-radius: 14px;
        background: #ffffff;
        color: #111827;
        font-size: 0.92rem;
        padding: 12px 14px;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .spif-field textarea {
        resize: vertical;
        min-height: 96px;
        line-height: 1.5;
    }

        .spif-field input:focus, .spif-field select:focus, .spif-field textarea:focus {
            border-color: #dc2626;
            box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
        }

    .spif-field span, .spif-validation-text, .spif-validation-summary {
        color: #dc2626;
        font-size: 0.8rem;
        font-weight: 700;
    }

.spif-question-card {
    margin-bottom: 14px;
}

.spif-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 14px;
}

    .spif-check input {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: #dc2626;
        flex-shrink: 0;
    }

    .spif-check.privacy {
        margin-top: 14px;
        margin-bottom: 6px;
    }

.spif-radio-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid rgba(220, 38, 38, 0.12);
    margin-bottom: 14px;
}

    .spif-radio-box strong {
        font-size: 0.86rem;
        font-weight: 800;
        color: #374151;
        margin-right: 4px;
    }

    .spif-radio-box label {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        font-size: 0.9rem;
        font-weight: 700;
        color: #111827;
    }

    .spif-radio-box input {
        accent-color: #dc2626;
    }

.spif-signature-grid {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 14px;
    margin-top: 14px;
}

.spif-actions {
    align-items: center;
}

.spif-action-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

button.btn {
    cursor: pointer;
    font-family: inherit;
}

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

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

    .spif-action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .spif-action-buttons .btn, .spif-action-buttons button {
            width: 100%;
        }
}

.spif-field.is-hidden, .spif-radio-box.is-hidden {
    display: none;
}

.spif-form.is-locked input, .spif-form.is-locked select, .spif-form.is-locked textarea {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.spif-form.is-locked .spif-yesno-box, .spif-form.is-locked .spif-radio-box {
    opacity: 0.75;
}

.spif-submitted-note {
    border-color: rgba(22, 163, 74, 0.18);
    background: rgba(22, 163, 74, 0.06);
}

    .spif-submitted-note strong {
        color: #15803d;
    }

.spif-admin-dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.spif-admin-hero {
    background: linear-gradient(135deg, #fff7ed, #ffffff);
    border: 1px solid rgba(220, 38, 38, 0.14);
}

    .spif-admin-hero .medical-dashboard-hero-icon {
        background: rgba(220, 38, 38, 0.10);
        color: #dc2626;
    }

.spif-admin-filter-card, .spif-admin-table-card {
    margin-top: 0;
}

.spif-student-info-with-photo {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.spif-student-photo-card {
    border-radius: 22px;
    background: #fff7ed;
    border: 1px solid rgba(220, 38, 38, 0.14);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 150px;
}

    .spif-student-photo-card span {
        color: #9a3412;
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

.spif-student-photo, .spif-student-photo-initial {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    border: 3px solid #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
}

.spif-student-photo {
    object-fit: cover;
    display: block;
}

.spif-student-photo-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 950;
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .spif-student-info-with-photo {
        grid-template-columns: 1fr;
    }

    .spif-student-photo-card {
        min-height: auto;
    }
}

.student-list-profile, .enrollment-student-cell, .student-photo-list-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.student-list-photo, .student-list-initial, .enrollment-student-avatar, .student-photo-avatar, .student-photo-list-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .student-list-photo, .enrollment-student-photo, .student-photo-avatar img, .student-photo-list-photo {
        width: 44px;
        height: 44px;
        min-width: 44px;
        max-width: 44px;
        min-height: 44px;
        max-height: 44px;
        object-fit: cover;
        display: block;
    }

.student-list-initial, .enrollment-student-initial, .student-photo-avatar-initial, .student-photo-list-initial {
    width: 44px;
    height: 44px;
    min-width: 44px;
    max-width: 44px;
    min-height: 44px;
    max-height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 950;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.student-list-name, .student-photo-list-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .student-list-name strong, .student-photo-list-name strong {
        color: #0f172a;
        font-size: 0.9rem;
        font-weight: 900;
        line-height: 1.2;
    }

    .student-list-name span, .student-photo-list-name span {
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 700;
    }

.student-list-profile.compact-photo-only {
    min-width: 44px;
    width: 44px;
    gap: 0;
}





/* =========================================================
   ADMIN STUDENT FORM - LARGE PHOTO PREVIEW
   CreateStudent.cshtml Add/Edit Student page only
   ========================================================= */

.student-basic-pro-layout-photo-large {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: stretch;
    gap: 24px;
}

.student-photo-panel-large {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .student-photo-panel-large .student-photo-preview {
        align-items: center;
        text-align: center;
        gap: 14px;
    }

.student-photo-avatar-large {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
}

    .student-photo-avatar-large img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .student-photo-avatar-large span {
        width: 100%;
        height: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

.student-photo-panel-large .student-photo-text strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    color: #0f172a;
}

.student-photo-panel-large .student-photo-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
}

.student-upload-box-large {
    margin-top: 16px;
    min-height: 82px;
}


/* =========================================================
   ADMIN STUDENT FORM - CONTACT + LMS COMPACT LAYOUT
   ========================================================= */

.enrollment-contact-layout-compact {
    grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
    align-items: stretch;
}

.contact-lms-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-lms-section {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.contact-lms-title {
    margin-bottom: 10px;
}

    .contact-lms-title span {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #334155;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

.contact-lms-grid {
    gap: 12px;
}

.contact-lms-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}

.contact-note-card.compact {
    margin-top: 0;
    padding: 12px 14px;
}

    .contact-note-card.compact span {
        line-height: 1.5;
    }


/* =========================================================
   RESPONSIVE FIXES
   ========================================================= */

@media (max-width: 1100px) {
    .student-basic-pro-layout-photo-large {
        grid-template-columns: 1fr;
    }

    .student-photo-avatar-large {
        width: 180px;
        height: 180px;
    }

    .enrollment-contact-layout-compact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .student-photo-avatar-large {
        width: 150px;
        height: 150px;
    }

    .contact-lms-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   FIX: CREATE / EDIT STUDENT PAGE ONLY
   Bigger student photo + labels above controls
   Do not affect Student Cabinet
   ========================================================= */


/* MAIN BASIC INFO LAYOUT WITH BIGGER PHOTO */
.admin-student-form .student-basic-pro-layout-photo-large {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 24px !important;
    align-items: stretch;
}

/* RIGHT PHOTO PANEL */
.admin-student-form .student-photo-panel-large {
    padding: 20px !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /* BIG PHOTO PREVIEW */
    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 260px !important;
        height: 260px !important;
        max-width: 100%;
        margin: 0 auto !important;
        border-radius: 30px !important;
        overflow: hidden;
    }

        /* PHOTO IMAGE FIT */
        .admin-student-form .student-photo-panel-large .student-photo-avatar img,
        .admin-student-form .student-photo-panel-large .student-photo-avatar-large img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center top;
            display: block;
        }

    /* PHOTO TEXT */
    .admin-student-form .student-photo-panel-large .student-photo-text {
        text-align: center;
        margin-top: 12px;
    }

        .admin-student-form .student-photo-panel-large .student-photo-text strong {
            display: block;
            font-size: 15px;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .admin-student-form .student-photo-panel-large .student-photo-text p {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            color: #64748b;
        }

/* UPLOAD BOX */
.admin-student-form .student-upload-box-large {
    margin-top: 16px !important;
    min-height: 76px;
}


/* =========================================================
   CONTACT + LMS: LABEL ABOVE INPUT
   Para kasya sa 100% browser zoom
   ========================================================= */

.admin-student-form .contact-lms-card .form-line {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
}

    .admin-student-form .contact-lms-card .form-line label {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        line-height: 1.2;
    }

    .admin-student-form .contact-lms-card .form-line input,
    .admin-student-form .contact-lms-card .form-line select {
        width: 100% !important;
        min-width: 0 !important;
    }

/* Contact + LMS grid stays 2 columns pero mas kasya */
.admin-student-form .contact-lms-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
}

/* Compact card spacing */
.admin-student-form .contact-lms-section {
    padding: 12px !important;
}

.admin-student-form .contact-note-card.compact {
    padding: 11px 13px !important;
    margin-top: 0 !important;
}


/* =========================================================
   Enrollment + Contact layout width adjustment
   ========================================================= */

.admin-student-form .enrollment-contact-layout-compact {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr) !important;
    gap: 18px !important;
    align-items: stretch;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .admin-student-form .student-basic-pro-layout-photo-large {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }

    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 230px !important;
        height: 230px !important;
    }

    .admin-student-form .enrollment-contact-layout-compact {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .admin-student-form .student-basic-pro-layout-photo-large {
        grid-template-columns: 1fr !important;
    }

    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 220px !important;
        height: 220px !important;
    }
}

@media (max-width: 720px) {
    .admin-student-form .contact-lms-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 180px !important;
        height: 180px !important;
    }
}


/* =========================================================
   FIX: CREATE / EDIT STUDENT PAGE ONLY
   Bigger student photo + labels above controls
   Do not affect Student Cabinet
   ========================================================= */


/* MAIN BASIC INFO LAYOUT WITH BIGGER PHOTO */
.admin-student-form .student-basic-pro-layout-photo-large {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px !important;
    gap: 24px !important;
    align-items: stretch;
}

/* RIGHT PHOTO PANEL */
.admin-student-form .student-photo-panel-large {
    padding: 20px !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    /* BIG PHOTO PREVIEW */
    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 260px !important;
        height: 260px !important;
        max-width: 100%;
        margin: 0 auto !important;
        border-radius: 30px !important;
        overflow: hidden;
    }

        /* PHOTO IMAGE FIT */
        .admin-student-form .student-photo-panel-large .student-photo-avatar img,
        .admin-student-form .student-photo-panel-large .student-photo-avatar-large img {
            width: 100% !important;
            height: 100% !important;
            object-fit: cover !important;
            object-position: center top;
            display: block;
        }

    /* PHOTO TEXT */
    .admin-student-form .student-photo-panel-large .student-photo-text {
        text-align: center;
        margin-top: 12px;
    }

        .admin-student-form .student-photo-panel-large .student-photo-text strong {
            display: block;
            font-size: 15px;
            color: #0f172a;
            margin-bottom: 4px;
        }

        .admin-student-form .student-photo-panel-large .student-photo-text p {
            margin: 0;
            font-size: 12px;
            line-height: 1.45;
            color: #64748b;
        }

/* UPLOAD BOX */
.admin-student-form .student-upload-box-large {
    margin-top: 16px !important;
    min-height: 76px;
}


/* =========================================================
   CONTACT + LMS: LABEL ABOVE INPUT
   Para kasya sa 100% browser zoom
   ========================================================= */

.admin-student-form .contact-lms-card .form-line {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
}

    .admin-student-form .contact-lms-card .form-line label {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        line-height: 1.2;
    }

    .admin-student-form .contact-lms-card .form-line input,
    .admin-student-form .contact-lms-card .form-line select {
        width: 100% !important;
        min-width: 0 !important;
    }

/* Contact + LMS grid stays 2 columns pero mas kasya */
.admin-student-form .contact-lms-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
}

/* Compact card spacing */
.admin-student-form .contact-lms-section {
    padding: 12px !important;
}

.admin-student-form .contact-note-card.compact {
    padding: 11px 13px !important;
    margin-top: 0 !important;
}


/* =========================================================
   Enrollment + Contact layout width adjustment
   ========================================================= */

.admin-student-form .enrollment-contact-layout-compact {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr) !important;
    gap: 18px !important;
    align-items: stretch;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .admin-student-form .student-basic-pro-layout-photo-large {
        grid-template-columns: minmax(0, 1fr) 300px !important;
    }

    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 230px !important;
        height: 230px !important;
    }

    .admin-student-form .enrollment-contact-layout-compact {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .admin-student-form .student-basic-pro-layout-photo-large {
        grid-template-columns: 1fr !important;
    }

    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 220px !important;
        height: 220px !important;
    }
}

@media (max-width: 720px) {
    .admin-student-form .contact-lms-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-student-form .student-photo-panel-large .student-photo-avatar,
    .admin-student-form .student-photo-panel-large .student-photo-avatar-large {
        width: 180px !important;
        height: 180px !important;
    }
}


/* =========================================================
   FIX: ADD / EDIT STUDENT PHOTO PREVIEW ONLY
   Do not affect Student Cabinet
   ========================================================= */

.admin-student-form .student-photo-panel-large {
    padding: 22px !important;
}

.admin-student-form .student-photo-preview {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
}

.admin-student-form .student-edit-photo-avatar {
    width: 260px !important;
    height: 260px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .admin-student-form .student-edit-photo-avatar #studentPhotoPreview {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: 0 !important;
        display: block !important;
    }

    .admin-student-form .student-edit-photo-avatar #studentPhotoPlaceholder {
        width: 100% !important;
        height: 100% !important;
        display: none;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 14px;
        font-weight: 700;
    }

.admin-student-form .student-photo-panel-large .student-photo-text {
    text-align: center !important;
}

    .admin-student-form .student-photo-panel-large .student-photo-text strong {
        display: block;
        margin-top: 4px;
        margin-bottom: 4px;
        font-size: 16px;
        color: #0f172a;
    }

    .admin-student-form .student-photo-panel-large .student-photo-text p {
        margin: 0 auto;
        max-width: 260px;
        font-size: 13px;
        line-height: 1.45;
        color: #64748b;
    }

.admin-student-form .student-upload-box-large {
    margin-top: 18px !important;
    min-height: 82px !important;
}

@media (max-width: 1200px) {
    .admin-student-form .student-edit-photo-avatar {
        width: 130px !important;
        height: 130px !important;
    }
}

@media (max-width: 720px) {
    .admin-student-form .student-edit-photo-avatar {
        width: 90px !important;
        height: 90px !important;
    }
}


/* =========================================================
   ADMIN STUDENT FORM FIXES
   CreateStudent.cshtml Add/Edit Student page only
   - Moderate student photo size
   - Labels above input controls
   - Compact Contact + LMS layout
   - Does NOT affect Student Cabinet
   ========================================================= */


/* =========================================================
   BASIC INFO LAYOUT WITH MODERATE PHOTO
   ========================================================= */

.admin-student-form .student-basic-pro-layout-photo-large {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 22px !important;
    align-items: stretch;
}

.admin-student-form .student-photo-panel-large {
    padding: 20px !important;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .admin-student-form .student-photo-panel-large .student-photo-preview {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
    }


/* =========================================================
   MODERATE STUDENT PHOTO PREVIEW
   ========================================================= */

.admin-student-form .student-edit-photo-avatar {
    width: 190px !important;
    height: 190px !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .admin-student-form .student-edit-photo-avatar #studentPhotoPreview {
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        min-width: 100% !important;
        min-height: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
        border-radius: 0 !important;
        display: block !important;
    }

    .admin-student-form .student-edit-photo-avatar #studentPhotoPlaceholder {
        width: 100% !important;
        height: 100% !important;
        display: none;
        align-items: center;
        justify-content: center;
        color: #64748b;
        font-size: 14px;
        font-weight: 700;
    }


/* =========================================================
   STUDENT PHOTO TEXT + UPLOAD BOX
   ========================================================= */

.admin-student-form .student-photo-panel-large .student-photo-text {
    text-align: center !important;
}

    .admin-student-form .student-photo-panel-large .student-photo-text strong {
        display: block;
        margin-top: 2px;
        margin-bottom: 4px;
        font-size: 15px;
        color: #0f172a;
    }

    .admin-student-form .student-photo-panel-large .student-photo-text p {
        margin: 0 auto;
        max-width: 250px;
        font-size: 12px;
        line-height: 1.45;
        color: #64748b;
    }

.admin-student-form .student-upload-box-large {
    margin-top: 16px !important;
    min-height: 76px !important;
}


/* =========================================================
   ENROLLMENT + CONTACT LAYOUT
   ========================================================= */

.admin-student-form .enrollment-contact-layout-compact {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.18fr) !important;
    gap: 18px !important;
    align-items: stretch;
}


/* =========================================================
   CONTACT + LMS CARD
   ========================================================= */

.admin-student-form .contact-lms-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-student-form .contact-lms-section {
    padding: 12px !important;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.admin-student-form .contact-lms-title {
    margin-bottom: 10px;
}

    .admin-student-form .contact-lms-title span {
        display: inline-flex;
        align-items: center;
        padding: 5px 10px;
        border-radius: 999px;
        background: #f1f5f9;
        color: #334155;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

.admin-student-form .contact-lms-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}


/* =========================================================
   CONTACT + LMS GRID
   Labels above controls para mas kasya sa 100% zoom
   ========================================================= */

.admin-student-form .contact-lms-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 12px !important;
}

.admin-student-form .contact-lms-card .form-line {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
}

    .admin-student-form .contact-lms-card .form-line label {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        color: #334155 !important;
        line-height: 1.2;
    }

    .admin-student-form .contact-lms-card .form-line input,
    .admin-student-form .contact-lms-card .form-line select {
        width: 100% !important;
        min-width: 0 !important;
    }


/* =========================================================
   COMPACT ACCOUNT NOTE
   ========================================================= */

.admin-student-form .contact-note-card.compact {
    padding: 11px 13px !important;
    margin-top: 0 !important;
}

    .admin-student-form .contact-note-card.compact span {
        line-height: 1.5;
    }


/* =========================================================
   RESPONSIVE FIXES
   ========================================================= */

@media (max-width: 1200px) {
    .admin-student-form .student-basic-pro-layout-photo-large {
        grid-template-columns: minmax(0, 1fr) 280px !important;
    }

    .admin-student-form .student-edit-photo-avatar {
        width: 175px !important;
        height: 175px !important;
    }

    .admin-student-form .enrollment-contact-layout-compact {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 900px) {
    .admin-student-form .student-basic-pro-layout-photo-large {
        grid-template-columns: 1fr !important;
    }

    .admin-student-form .student-edit-photo-avatar {
        width: 170px !important;
        height: 170px !important;
    }
}

@media (max-width: 720px) {
    .admin-student-form .contact-lms-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-student-form .student-edit-photo-avatar {
        width: 150px !important;
        height: 150px !important;
    }
}

/* ============================================================
   SECTION OFFERING - ACTION DROPDOWN
   ============================================================ */

.section-action-dropdown {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
    width: 100%;
}

.section-action-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 96px;
    white-space: nowrap;
}

    .section-action-toggle span {
        font-size: 11px;
        line-height: 1;
        opacity: .75;
    }

.section-action-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none;
    min-width: 190px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .10);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
}

.section-action-dropdown.show .section-action-menu {
    display: block;
}

.section-action-item {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

    .section-action-item:hover {
        background: rgba(249, 115, 22, .10);
        color: #c2410c;
    }

    .section-action-item.danger {
        color: #dc2626;
    }

        .section-action-item.danger:hover {
            background: rgba(220, 38, 38, .10);
            color: #b91c1c;
        }

    .section-action-item.disabled,
    .section-action-item:disabled {
        opacity: .45;
        cursor: not-allowed;
        background: transparent;
        color: #94a3b8;
    }

.section-action-form {
    margin: 0;
    padding: 0;
}

    .section-action-form .section-action-item {
        font-family: inherit;
    }


/* ============================================================
   SUBJECT SCHEDULE MODAL
   ============================================================ */

.subject-schedule-modal-card {
    width: min(980px, calc(100vw - 32px));
    max-height: 90vh;
    overflow: hidden;
}

    .subject-schedule-modal-card .section-offering-modal-body {
        max-height: calc(90vh - 132px);
        overflow-y: auto;
        padding-right: 4px;
    }

.subject-schedule-header-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

    .subject-schedule-header-card > div {
        padding: 14px 16px;
        background: linear-gradient(135deg, rgba(249, 115, 22, .08), rgba(22, 140, 249, .06)), #ffffff;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 18px;
    }

    .subject-schedule-header-card span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 5px;
    }

    .subject-schedule-header-card strong {
        display: block;
        color: #0f172a;
        font-size: 14px;
        font-weight: 900;
        line-height: 1.25;
    }

.subject-schedule-message {
    display: none;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
}

    .subject-schedule-message.success,
    .subject-schedule-message.error {
        display: block;
    }

    .subject-schedule-message.success {
        color: #166534;
        background: #dcfce7;
        border: 1px solid rgba(22, 101, 52, .18);
    }

    .subject-schedule-message.error {
        color: #991b1b;
        background: #fee2e2;
        border: 1px solid rgba(153, 27, 27, .18);
    }

.subject-schedule-form-grid {
    align-items: end;
    margin-bottom: 18px;
}

.subject-schedule-form-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .subject-schedule-form-actions .btn {
        width: 100%;
        min-height: 42px;
    }

.subject-schedule-list-card {
    margin-top: 14px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    overflow: hidden;
}

.subject-schedule-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(135deg, rgba(15, 23, 42, .03), rgba(249, 115, 22, .04));
}

    .subject-schedule-list-header span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 3px;
    }

    .subject-schedule-list-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

.subject-schedule-table tbody td strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
    margin-bottom: 4px;
}

.subject-schedule-table tbody td span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.subject-schedule-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

    .subject-schedule-row-actions .btn {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 12px;
    }


/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */

@media (max-width: 900px) {
    .subject-schedule-header-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .subject-schedule-form-grid {
        grid-template-columns: 1fr;
    }

    .section-action-dropdown {
        justify-content: flex-start;
    }

    .section-action-menu {
        right: auto;
        left: 0;
    }
}

@media (max-width: 640px) {
    .subject-schedule-modal-card {
        width: calc(100vw - 20px);
        max-height: 92vh;
    }

        .subject-schedule-modal-card .section-offering-modal-body {
            max-height: calc(92vh - 128px);
        }

    .subject-schedule-header-card {
        grid-template-columns: 1fr;
    }

    .subject-schedule-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .subject-schedule-list-header .btn {
            width: 100%;
        }

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

        .subject-schedule-row-actions .btn {
            width: 100%;
        }
}

/* ============================================================
   SUBJECT SCHEDULE - PROFESSIONAL FORM ALIGNMENT
   ============================================================ */

.subject-schedule-editor-card {
    margin: 0 0 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .045), rgba(22, 140, 249, .04)), #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
}

.subject-schedule-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .subject-schedule-editor-header span {
        display: block;
        margin-bottom: 3px;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .subject-schedule-editor-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

.subject-schedule-control-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(160px, .8fr) minmax(190px, .9fr);
    gap: 14px;
    align-items: end;
}

    .subject-schedule-control-grid .form-line {
        min-width: 0;
    }

        .subject-schedule-control-grid .form-line label {
            min-height: 18px;
        }

.subject-schedule-command-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, .12);
}

.subject-schedule-save-btn,
.subject-schedule-small-btn {
    width: auto !important;
    min-width: 120px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 12px;
    white-space: nowrap;
}

.subject-schedule-save-btn {
    min-width: 140px;
}

.subject-schedule-form-actions .btn {
    width: auto;
}

.subject-schedule-list-card {
    margin-top: 18px;
}

/* ============================================================
   SUBJECT SCHEDULE - RESPONSIVE ALIGNMENT
   ============================================================ */

@media (max-width: 980px) {
    .subject-schedule-control-grid {
        grid-template-columns: 1fr 1fr;
    }

        .subject-schedule-control-grid .form-line:first-child {
            grid-column: 1 / -1;
        }
}

@media (max-width: 640px) {
    .subject-schedule-editor-card {
        padding: 14px;
        border-radius: 16px;
    }

    .subject-schedule-control-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .subject-schedule-command-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .subject-schedule-save-btn,
    .subject-schedule-small-btn {
        width: 100% !important;
        min-width: 0;
    }
}


/* ============================================================
   SUBJECT SCHEDULE - PROFESSIONAL FORM ALIGNMENT FIXED
   ============================================================ */

.subject-schedule-editor-card {
    margin: 0 0 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .045), rgba(22, 140, 249, .04)), #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    overflow: hidden;
}

.subject-schedule-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .subject-schedule-editor-header span {
        display: block;
        margin-bottom: 3px;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .subject-schedule-editor-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

/* Main fix: flexible grid, no overlap */
.subject-schedule-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 14px;
    align-items: end;
    width: 100%;
}

    .subject-schedule-control-grid .form-line {
        min-width: 0;
        width: 100%;
    }

        .subject-schedule-control-grid .form-line label {
            min-height: 18px;
        }

    .subject-schedule-control-grid select,
    .subject-schedule-control-grid input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

.subject-schedule-command-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, .12);
}

.subject-schedule-save-btn,
.subject-schedule-small-btn {
    width: auto !important;
    min-width: 120px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 12px;
    white-space: nowrap;
}

.subject-schedule-save-btn {
    min-width: 140px;
}

.subject-schedule-form-actions .btn {
    width: auto;
}

.subject-schedule-list-card {
    margin-top: 18px;
}

/* Modal width safety */
.subject-schedule-modal-card {
    width: min(1040px, calc(100vw - 32px));
}

    .subject-schedule-modal-card .section-offering-modal-body {
        overflow-x: hidden;
    }

/* ============================================================
   SUBJECT SCHEDULE - RESPONSIVE ALIGNMENT
   ============================================================ */

@media (max-width: 980px) {
    .subject-schedule-control-grid {
        grid-template-columns: 1fr 1fr;
    }

        .subject-schedule-control-grid .form-line:first-child {
            grid-column: 1 / -1;
        }
}

@media (max-width: 720px) {
    .subject-schedule-control-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .subject-schedule-editor-card {
        padding: 14px;
        border-radius: 16px;
    }

    .subject-schedule-command-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .subject-schedule-save-btn,
    .subject-schedule-small-btn {
        width: 100% !important;
        min-width: 0;
    }
}

/* ============================================================
   SUBJECT SCHEDULE - PROFESSIONAL FORM ALIGNMENT FIXED
   Labels on top, controls aligned, no overlap
   ============================================================ */

.subject-schedule-modal-card {
    width: min(1040px, calc(100vw - 32px));
    max-height: 90vh;
    overflow: hidden;
}

    .subject-schedule-modal-card .section-offering-modal-body {
        max-height: calc(90vh - 132px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
    }

.subject-schedule-editor-card {
    margin: 0 0 18px;
    padding: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .045), rgba(22, 140, 249, .04)), #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
    overflow: hidden;
}

.subject-schedule-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .subject-schedule-editor-header span {
        display: block;
        margin-bottom: 3px;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .subject-schedule-editor-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

.subject-schedule-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 14px;
    align-items: start;
    width: 100%;
}

    .subject-schedule-control-grid .form-line {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
        width: 100%;
    }

        .subject-schedule-control-grid .form-line label {
            display: block;
            min-height: auto;
            margin: 0;
            color: #475569;
            font-size: 12px;
            font-weight: 800;
            line-height: 1.2;
            white-space: normal;
        }

    .subject-schedule-control-grid select,
    .subject-schedule-control-grid input {
        display: block;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 42px;
        box-sizing: border-box;
    }

.subject-schedule-command-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, .12);
}

.subject-schedule-save-btn,
.subject-schedule-small-btn {
    width: auto !important;
    min-width: 120px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 12px;
    white-space: nowrap;
}

.subject-schedule-save-btn {
    min-width: 140px;
}

.subject-schedule-list-card {
    margin-top: 18px;
}

.subject-schedule-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(135deg, rgba(15, 23, 42, .03), rgba(249, 115, 22, .04));
}

    .subject-schedule-list-header span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 3px;
    }

    .subject-schedule-list-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

.subject-schedule-table tbody td strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
    margin-bottom: 4px;
}

.subject-schedule-table tbody td span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.subject-schedule-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

    .subject-schedule-row-actions .btn {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 12px;
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
    .subject-schedule-control-grid {
        grid-template-columns: 1fr 1fr;
    }

        .subject-schedule-control-grid .form-line:first-child {
            grid-column: 1 / -1;
        }
}

@media (max-width: 720px) {
    .subject-schedule-control-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .subject-schedule-modal-card {
        width: calc(100vw - 20px);
        max-height: 92vh;
    }

        .subject-schedule-modal-card .section-offering-modal-body {
            max-height: calc(92vh - 128px);
        }

    .subject-schedule-editor-card {
        padding: 14px;
        border-radius: 16px;
    }

    .subject-schedule-command-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .subject-schedule-save-btn,
    .subject-schedule-small-btn {
        width: 100% !important;
        min-width: 0;
    }

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

        .subject-schedule-row-actions .btn {
            width: 100%;
        }
}

/* ============================================================
   TEACHER SCHEDULE MANAGEMENT PAGE
   ============================================================ */

.teacher-schedule-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.teacher-schedule-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .12), rgba(22, 140, 249, .10)), #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

.teacher-schedule-hero-copy span,
.teacher-schedule-hero-rate span {
    display: block;
    margin-bottom: 6px;
    color: #f97316;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.teacher-schedule-hero-copy h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.teacher-schedule-hero-copy p {
    margin: 0;
    max-width: 720px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.teacher-schedule-hero-rate {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    text-align: center;
}

    .teacher-schedule-hero-rate strong {
        display: block;
        color: #0f172a;
        font-size: 36px;
        font-weight: 950;
        line-height: 1;
    }

    .teacher-schedule-hero-rate small {
        display: block;
        margin-top: 8px;
        color: #64748b;
        font-size: 12px;
        font-weight: 700;
    }


/* ============================================================
   TEACHER SCHEDULE METRICS
   ============================================================ */

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

.teacher-schedule-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.teacher-schedule-metric-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #f97316;
    background: rgba(249, 115, 22, .12);
    font-size: 17px;
    font-weight: 950;
}

.teacher-schedule-metric-card.success .teacher-schedule-metric-icon {
    color: #15803d;
    background: rgba(34, 197, 94, .13);
}

.teacher-schedule-metric-card.warning .teacher-schedule-metric-icon {
    color: #b45309;
    background: rgba(245, 158, 11, .15);
}

.teacher-schedule-metric-card span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

.teacher-schedule-metric-card strong {
    display: block;
    color: #0f172a;
    font-size: 24px;
    font-weight: 950;
    line-height: 1.1;
}

.teacher-schedule-metric-card small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   TEACHER SCHEDULE PROGRESS CARD
   ============================================================ */

.teacher-schedule-capacity-card {
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.teacher-schedule-capacity-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

    .teacher-schedule-capacity-header span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 4px;
    }

    .teacher-schedule-capacity-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 900;
    }

    .teacher-schedule-capacity-header em {
        font-style: normal;
        color: #b45309;
        background: rgba(245, 158, 11, .12);
        border: 1px solid rgba(245, 158, 11, .18);
        padding: 8px 11px;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 900;
        white-space: nowrap;
    }

.teacher-schedule-capacity-track {
    width: 100%;
    height: 12px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

    .teacher-schedule-capacity-track > div {
        height: 100%;
        background: linear-gradient(90deg, #f97316, #168cf9);
        border-radius: inherit;
    }

.teacher-schedule-capacity-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

    .teacher-schedule-capacity-legend span {
        color: #64748b;
        background: #f8fafc;
        border: 1px solid rgba(15, 23, 42, .06);
        border-radius: 999px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 800;
    }


/* ============================================================
   TEACHER SCHEDULE TABLE
   ============================================================ */

.teacher-schedule-table-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06);
}

.teacher-schedule-table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(135deg, rgba(15, 23, 42, .025), rgba(249, 115, 22, .04));
}

    .teacher-schedule-table-header span {
        display: block;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
        margin-bottom: 4px;
    }

    .teacher-schedule-table-header strong {
        display: block;
        color: #0f172a;
        font-size: 18px;
        font-weight: 950;
    }

    .teacher-schedule-table-header small {
        display: block;
        margin-top: 3px;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

    .teacher-schedule-table-header em {
        font-style: normal;
        color: #0f172a;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 999px;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 900;
        white-space: nowrap;
    }

.teacher-schedule-table td strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
    margin-bottom: 4px;
}

.teacher-schedule-table td span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.teacher-schedule-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

    .teacher-schedule-actions .btn {
        min-height: 34px;
        padding: 7px 11px;
        font-size: 12px;
        white-space: nowrap;
    }

.teacher-schedule-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 28px 18px;
    color: #64748b;
    text-align: center;
}

    .teacher-schedule-empty-state strong {
        color: #0f172a;
        font-size: 15px;
        font-weight: 900;
    }

    .teacher-schedule-empty-state span {
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

    .teacher-schedule-empty-state.compact {
        padding: 22px 14px;
    }


/* ============================================================
   TEACHER SCHEDULE MODAL
   ============================================================ */

.teacher-schedule-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(6px);
}

    .teacher-schedule-modal-backdrop.show {
        display: flex;
    }

.teacher-schedule-modal-card {
    width: min(780px, calc(100vw - 32px));
    max-height: 90vh;
    overflow: hidden;
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 28px 70px rgba(15, 23, 42, .32);
}

.teacher-schedule-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(135deg, rgba(249, 115, 22, .10), rgba(22, 140, 249, .08)), #ffffff;
}

    .teacher-schedule-modal-header span {
        display: block;
        margin-bottom: 5px;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .teacher-schedule-modal-header h3 {
        margin: 0;
        color: #0f172a;
        font-size: 21px;
        font-weight: 950;
    }

    .teacher-schedule-modal-header p {
        margin: 6px 0 0;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
    }

.teacher-schedule-modal-close {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    color: #334155;
    box-shadow: 0 10px 25px rgba(15, 23, 42, .10);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

    .teacher-schedule-modal-close:hover {
        background: #fff7ed;
        color: #c2410c;
    }

.teacher-schedule-modal-body {
    max-height: calc(90vh - 104px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px 24px;
}

.teacher-assignment-summary-card {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

    .teacher-assignment-summary-card > div {
        padding: 14px 15px;
        background: linear-gradient(135deg, rgba(249, 115, 22, .06), rgba(22, 140, 249, .05)), #ffffff;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 18px;
    }

    .teacher-assignment-summary-card span {
        display: block;
        color: #64748b;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin-bottom: 5px;
    }

    .teacher-assignment-summary-card strong {
        display: block;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
        line-height: 1.25;
    }

.teacher-schedule-message {
    display: none;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 800;
}

    .teacher-schedule-message.success,
    .teacher-schedule-message.error {
        display: block;
    }

    .teacher-schedule-message.success {
        color: #166534;
        background: #dcfce7;
        border: 1px solid rgba(22, 101, 52, .18);
    }

    .teacher-schedule-message.error {
        color: #991b1b;
        background: #fee2e2;
        border: 1px solid rgba(153, 27, 27, .18);
    }

.teacher-assignment-editor-card {
    padding: 18px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .045), rgba(22, 140, 249, .04)), #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 20px;
}

.teacher-assignment-editor-header {
    margin-bottom: 14px;
}

    .teacher-assignment-editor-header span {
        display: block;
        margin-bottom: 3px;
        color: #f97316;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .teacher-assignment-editor-header strong {
        display: block;
        color: #0f172a;
        font-size: 16px;
        font-weight: 950;
    }

.teacher-assignment-control-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

    .teacher-assignment-control-grid .form-line {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
    }

        .teacher-assignment-control-grid .form-line label {
            display: block;
            margin: 0;
            color: #475569;
            font-size: 12px;
            font-weight: 850;
            line-height: 1.2;
        }

    .teacher-assignment-control-grid select {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 42px;
        box-sizing: border-box;
    }

.teacher-assignment-command-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(15, 23, 42, .12);
}

.teacher-assignment-save-btn {
    width: auto !important;
    min-width: 150px;
    min-height: 38px;
    padding: 9px 16px;
    font-size: 13px;
    border-radius: 12px;
    white-space: nowrap;
}

.teacher-schedule-modal-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .07);
}

    .teacher-schedule-modal-note strong {
        display: block;
        margin-bottom: 4px;
        color: #0f172a;
        font-size: 13px;
        font-weight: 900;
    }

    .teacher-schedule-modal-note span {
        display: block;
        color: #64748b;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.45;
    }


/* ============================================================
   TEACHER SCHEDULE RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
    .teacher-schedule-hero {
        grid-template-columns: 1fr;
    }

    .teacher-schedule-hero-rate {
        text-align: left;
    }

    .teacher-schedule-metric-grid {
        grid-template-columns: 1fr;
    }

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

    .teacher-schedule-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .teacher-schedule-capacity-header,
    .teacher-schedule-table-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .teacher-schedule-capacity-header em,
        .teacher-schedule-table-header em {
            white-space: normal;
        }

    .teacher-schedule-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .teacher-schedule-actions .btn {
            width: 100%;
        }
}

@media (max-width: 640px) {
    .teacher-schedule-hero {
        padding: 18px;
        border-radius: 20px;
    }

    .teacher-schedule-hero-copy h3 {
        font-size: 19px;
    }

    .teacher-schedule-modal-card {
        width: calc(100vw - 20px);
        max-height: 92vh;
        border-radius: 22px;
    }

    .teacher-schedule-modal-header {
        padding: 18px;
    }

    .teacher-schedule-modal-body {
        max-height: calc(92vh - 100px);
        padding: 16px;
    }

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

    .teacher-assignment-editor-card {
        padding: 14px;
        border-radius: 16px;
    }

    .teacher-assignment-command-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .teacher-assignment-command-row .btn,
        .teacher-assignment-save-btn {
            width: 100% !important;
            min-width: 0;
        }
}

/* ============================================================
   TEACHER SCHEDULE BULK ASSIGNMENT WORKSPACE
   ============================================================ */

.teacher-workspace-grid {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.25fr);
    gap: 18px;
    align-items: start;
}

.teacher-schedule-empty-workspace {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(249, 115, 22, .10), rgba(22, 140, 249, .08)), #ffffff;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

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

.teacher-schedule-empty-workspace strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
    margin-bottom: 5px;
}

.teacher-schedule-empty-workspace span {
    display: block;
    max-width: 780px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.teacher-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    background: #ffffff;
}

.teacher-check-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

    .teacher-check-all input,
    .teacher-schedule-checkbox {
        width: 17px;
        height: 17px;
        accent-color: #f97316;
        cursor: pointer;
    }

.teacher-schedule-table td:first-child,
.teacher-schedule-table th:first-child {
    text-align: center;
}

.teacher-schedule-table-card form {
    margin: 0;
}

.teacher-schedule-table .teacher-schedule-checkbox {
    vertical-align: middle;
}

.teacher-schedule-table tbody tr:has(.teacher-schedule-checkbox:checked) {
    background: #fff7ed;
}

    .teacher-schedule-table tbody tr:has(.teacher-schedule-checkbox:checked) td {
        border-color: rgba(249, 115, 22, .18);
    }

.teacher-schedule-table-card .table-wrap {
    max-height: 620px;
    overflow: auto;
}

.teacher-schedule-table-card .data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
}

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

@media (max-width: 680px) {
    .teacher-schedule-empty-workspace {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .teacher-bulk-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

        .teacher-bulk-toolbar .btn {
            width: 100%;
        }
}


/* =========================================================
   STUDENT PORTAL MEDICAL INFORMATION
   ========================================================= */

.student-medical-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.student-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #eff6ff 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

    .student-page-header span {
        display: block;
        color: #f97316;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 7px;
    }

    .student-page-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 26px;
        font-weight: 950;
    }

    .student-page-header p {
        margin: 8px 0 0;
        color: #64748b;
        max-width: 760px;
        line-height: 1.6;
    }

.student-medical-status {
    min-width: 190px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-align: right;
}

    .student-medical-status strong {
        display: block;
        font-size: 24px;
        font-weight: 950;
        color: #f97316;
    }

        .student-medical-status strong.success {
            color: #16a34a;
        }

        .student-medical-status strong.warning {
            color: #f97316;
        }

    .student-medical-status small {
        display: block;
        color: #64748b;
        margin-top: 4px;
    }

.student-medical-profile-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.student-medical-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.student-medical-photo-wrap {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 3px solid #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    display: grid;
    place-items: center;
}

.student-medical-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-medical-initial {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.student-medical-profile span {
    display: block;
    color: #f97316;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.student-medical-profile h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.student-medical-profile p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.55;
}

.student-medical-reminder {
    max-width: 360px;
    padding: 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .student-medical-reminder strong,
    .student-medical-submitted-note strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
        margin-bottom: 5px;
    }

    .student-medical-reminder span,
    .student-medical-submitted-note span {
        color: #7c2d12;
        font-size: 13px;
        line-height: 1.5;
    }

.student-medical-submitted-note {
    padding: 16px 18px;
    border-radius: 20px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

    .student-medical-submitted-note strong {
        color: #166534;
    }

    .student-medical-submitted-note span {
        color: #166534;
    }

.student-medical-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.student-medical-question-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.student-medical-question-header {
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
}

    .student-medical-question-header span {
        display: block;
        color: #f97316;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 5px;
    }

    .student-medical-question-header strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.5;
    }

.student-medical-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.student-medical-check,
.student-medical-yesno label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

    .student-medical-check input,
    .student-medical-yesno input {
        width: 18px;
        height: 18px;
        accent-color: #f97316;
    }

.student-medical-yesno {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 18px 0;
}

.student-medical-field {
    padding: 0 18px 18px;
}

    .student-medical-field label {
        display: block;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 8px;
    }

    .student-medical-field textarea {
        width: 100%;
        min-height: 96px;
        resize: vertical;
        padding: 14px 15px;
        border-radius: 18px;
        border: 1px solid #dbe3ef;
        background: #ffffff;
        color: #0f172a;
        outline: none;
        font-size: 14px;
        line-height: 1.5;
    }

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

        .student-medical-field textarea[readonly],
        .student-medical-check input:disabled,
        .student-medical-yesno input:disabled {
            cursor: not-allowed;
            opacity: 0.75;
        }

.student-medical-actions {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

@media (max-width: 991px) {
    .student-page-header,
    .student-medical-profile-card {
        flex-direction: column;
    }

    .student-medical-status {
        text-align: left;
    }

    .student-medical-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-medical-yesno {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .student-medical-profile {
        align-items: flex-start;
    }

    .student-medical-photo-wrap {
        width: 86px;
        height: 86px;
        min-width: 86px;
        border-radius: 24px;
    }

    .student-medical-check-grid {
        grid-template-columns: 1fr;
    }

    .student-medical-actions {
        flex-direction: column;
    }

        .student-medical-actions .btn {
            width: 100%;
        }
}


/* =========================================================
   STUDENT PORTAL MEDICAL INFORMATION
   ========================================================= */

.student-medical-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.student-page-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-radius: 26px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #eff6ff 100%);
    border: 1px solid #fed7aa;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

    .student-page-header span {
        display: block;
        color: #f97316;
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 7px;
    }

    .student-page-header h2 {
        margin: 0;
        color: #0f172a;
        font-size: 26px;
        font-weight: 950;
    }

    .student-page-header p {
        margin: 8px 0 0;
        color: #64748b;
        max-width: 760px;
        line-height: 1.6;
    }

.student-medical-status {
    min-width: 190px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    text-align: right;
}

    .student-medical-status span {
        margin-bottom: 4px;
    }

    .student-medical-status strong {
        display: block;
        font-size: 24px;
        font-weight: 950;
        color: #f97316;
    }

        .student-medical-status strong.success {
            color: #16a34a;
        }

        .student-medical-status strong.warning {
            color: #f97316;
        }

    .student-medical-status small {
        display: block;
        color: #64748b;
        margin-top: 4px;
    }

.student-medical-profile-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.student-medical-profile {
    display: flex;
    align-items: center;
    gap: 18px;
}

.student-medical-photo-wrap {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border: 3px solid #ffffff;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16);
    display: grid;
    place-items: center;
}

.student-medical-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-medical-initial {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: 0.04em;
}

.student-medical-profile span {
    display: block;
    color: #f97316;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
}

.student-medical-profile h3 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
}

.student-medical-profile p {
    margin: 8px 0 0;
    color: #64748b;
    line-height: 1.55;
}

.student-medical-reminder {
    max-width: 360px;
    padding: 16px;
    border-radius: 20px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

    .student-medical-reminder strong,
    .student-medical-submitted-note strong {
        display: block;
        color: #9a3412;
        font-size: 13px;
        font-weight: 950;
        margin-bottom: 5px;
    }

    .student-medical-reminder span,
    .student-medical-submitted-note span {
        color: #7c2d12;
        font-size: 13px;
        line-height: 1.5;
    }

.student-medical-submitted-note {
    padding: 16px 18px;
    border-radius: 20px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

    .student-medical-submitted-note strong {
        color: #166534;
    }

    .student-medical-submitted-note span {
        color: #166534;
    }

.student-medical-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.student-medical-question-card {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.student-medical-question-header {
    padding: 18px 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid #e5e7eb;
}

    .student-medical-question-header span {
        display: block;
        color: #f97316;
        font-size: 10px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 5px;
    }

    .student-medical-question-header strong {
        display: block;
        color: #0f172a;
        font-size: 15px;
        font-weight: 950;
        line-height: 1.5;
    }

.student-medical-check-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.student-medical-check,
.student-medical-yesno label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

    .student-medical-check input,
    .student-medical-yesno input {
        width: 18px;
        height: 18px;
        accent-color: #f97316;
    }

    .student-medical-check:has(input:checked),
    .student-medical-yesno label:has(input:checked) {
        background: #fff7ed;
        border-color: #fb923c;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08);
    }

.student-medical-yesno {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 18px 0;
}

.student-medical-field {
    padding: 0 18px 18px;
}

    .student-medical-field label {
        display: block;
        color: #475569;
        font-size: 12px;
        font-weight: 900;
        margin-bottom: 8px;
    }

    .student-medical-field textarea {
        width: 100%;
        min-height: 96px;
        resize: vertical;
        padding: 14px 15px;
        border-radius: 18px;
        border: 1px solid #dbe3ef;
        background: #ffffff;
        color: #0f172a;
        outline: none;
        font-size: 14px;
        line-height: 1.5;
    }

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

        .student-medical-field textarea[readonly],
        .student-medical-check input:disabled,
        .student-medical-yesno input:disabled {
            cursor: not-allowed;
            opacity: 0.75;
        }

.student-medical-actions {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

@media (max-width: 991px) {
    .student-page-header,
    .student-medical-profile-card {
        flex-direction: column;
    }

    .student-medical-status {
        text-align: left;
    }

    .student-medical-check-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-medical-yesno {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .student-medical-profile {
        align-items: flex-start;
    }

    .student-medical-photo-wrap {
        width: 86px;
        height: 86px;
        min-width: 86px;
        border-radius: 24px;
    }

    .student-medical-check-grid {
        grid-template-columns: 1fr;
    }

    .student-medical-actions {
        flex-direction: column;
    }

        .student-medical-actions .btn {
            width: 100%;
        }
}

.selected-payment-notes {
    width: 100%;
    min-width: 180px;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    background: #FFFFFF;
    color: #111827;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .selected-payment-notes::placeholder {
        color: #9CA3AF;
        font-weight: 400;
    }

    .selected-payment-notes:focus {
        border-color: #F97316;
        box-shadow: 0 0 0 3px rgba(249, 115, 22, .15);
        background: #FFFBF7;
    }

.data-table td .selected-payment-notes {
    margin: 0;
}

@media (max-width: 768px) {
    .selected-payment-notes {
        min-width: 150px;
    }
}


/* SPIF / Student Medical style dropdown */
.spif-page .student-medical-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 14px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

    .spif-page .student-medical-field select:hover {
        border-color: #f97316;
        background-color: #fffaf5;
    }

    .spif-page .student-medical-field select:focus {
        border-color: #f97316;
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
        background-color: #ffffff;
    }

    .spif-page .student-medical-field select:disabled {
        background-color: #f1f5f9;
        color: #94a3b8;
        border-color: #e2e8f0;
        cursor: not-allowed;
        opacity: 1;
    }

    .spif-page .student-medical-field select option {
        color: #0f172a;
        font-weight: 600;
    }

.spif-page input[type="text"],
.spif-page input:not([type]),
.spif-page textarea,
.spif-page select {
    width: 100%;
}



.readonly-box {
    width: 100%;
    min-height: 88px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--theme-border, #e5e7eb);
    background: #f8fafc;
    color: var(--theme-text, #1f2937);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.55;
    white-space: pre-wrap;
}


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

.sms-announcement-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary-soft, #fff7ed);
    color: var(--theme-primary, #f97316);
    border: 1px solid var(--theme-border, #e5e7eb);
}

.sms-announcement-text {
    min-width: 0;
}

    .sms-announcement-text strong {
        display: block;
        color: var(--theme-text, #1f2937);
        font-size: 0.92rem;
        font-weight: 900;
        line-height: 1.3;
    }

    .sms-announcement-text span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted, #6b7280);
        font-size: 0.82rem;
        font-weight: 650;
        line-height: 1.4;
    }

    .sms-announcement-text small {
        display: block;
        margin-top: 4px;
        color: #94a3b8;
        font-size: 0.74rem;
        font-weight: 700;
    }


.sms-create-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--theme-border, #e5e7eb);
}

    .sms-create-section:first-of-type {
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

.sms-create-section-title {
    margin-bottom: 14px;
}

    .sms-create-section-title h4 {
        margin: 0;
        color: var(--theme-text, #1f2937);
        font-size: 1rem;
        font-weight: 950;
        letter-spacing: -0.02em;
    }

    .sms-create-section-title p {
        margin: 5px 0 0;
        color: var(--theme-muted, #6b7280);
        font-size: 0.84rem;
        font-weight: 650;
        line-height: 1.45;
    }

        .sms-create-section-title p span {
            color: #cbd5e1;
            margin: 0 7px;
        }

.sms-create-form-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

    .sms-create-form-grid.two {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

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

.sms-recipient-choice {
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--theme-border, #e5e7eb);
    background: #f8fafc;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: 0.18s ease;
}

    .sms-recipient-choice:hover {
        background: var(--theme-primary-soft, #fff7ed);
        border-color: var(--theme-primary, #f97316);
    }

    .sms-recipient-choice input {
        margin-top: 3px;
        accent-color: var(--theme-primary, #f97316);
    }

    .sms-recipient-choice strong {
        display: block;
        color: var(--theme-text, #1f2937);
        font-size: 0.88rem;
        font-weight: 950;
    }

    .sms-recipient-choice small {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted, #6b7280);
        font-size: 0.75rem;
        font-weight: 650;
        line-height: 1.35;
    }

.sms-message-box {
    resize: vertical;
    min-height: 120px;
}

.sms-message-counter {
    margin-top: 7px;
    color: var(--theme-muted, #6b7280);
    font-size: 0.78rem;
    font-weight: 750;
}

    .sms-message-counter strong {
        color: var(--theme-primary-dark, #ea580c);
    }

.sms-target-toolbar {
    align-items: center;
}

.sms-wide-select {
    min-width: 170px;
}

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

.student-details-btn.danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

    .student-details-btn.danger:hover {
        color: #991b1b;
        background: #fee2e2;
    }

@media (max-width: 900px) {
    .sms-create-form-grid.two,
    .sms-recipient-choice-grid {
        grid-template-columns: 1fr;
    }

    .sms-target-toolbar {
        align-items: stretch;
    }

    .sms-wide-select {
        width: 100%;
        min-width: 0;
    }
}


.sms-details-hero {
    margin-top: 14px;
    padding: 18px;
    border-radius: 24px;
    background: radial-gradient(circle at top right, color-mix(in srgb, var(--theme-primary, #f97316) 13%, transparent), transparent 38%), linear-gradient(180deg, var(--theme-surface, #ffffff), #f8fafc);
    border: 1px solid var(--theme-border, #e5e7eb);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.sms-details-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary-soft, #fff7ed);
    color: var(--theme-primary, #f97316);
    border: 1px solid var(--theme-border, #e5e7eb);
}

.sms-details-hero-content {
    min-width: 0;
}

    .sms-details-hero-content span {
        display: block;
        color: var(--theme-primary-dark, #ea580c);
        font-size: 0.72rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .sms-details-hero-content h3 {
        margin: 5px 0 4px;
        color: var(--theme-text, #1f2937);
        font-size: 1.25rem;
        font-weight: 950;
        letter-spacing: -0.035em;
    }

    .sms-details-hero-content p {
        margin: 0;
        color: var(--theme-muted, #6b7280);
        font-size: 0.84rem;
        font-weight: 650;
    }

        .sms-details-hero-content p strong {
            color: var(--theme-text, #1f2937);
        }

.sms-details-hero-status {
    display: flex;
    justify-content: flex-end;
}

.sms-details-summary-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sms-details-summary-card {
    padding: 15px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid var(--theme-border, #e5e7eb);
}

    .sms-details-summary-card span {
        display: block;
        color: var(--theme-muted, #6b7280);
        font-size: 0.72rem;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .sms-details-summary-card strong {
        display: block;
        margin-top: 7px;
        color: var(--theme-text, #1f2937);
        font-size: 1rem;
        font-weight: 950;
    }

.sms-details-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--theme-border, #e5e7eb);
}

.sms-details-section-title {
    margin-bottom: 14px;
}

    .sms-details-section-title h4 {
        margin: 0;
        color: var(--theme-text, #1f2937);
        font-size: 1rem;
        font-weight: 950;
        letter-spacing: -0.02em;
    }

    .sms-details-section-title p {
        margin: 5px 0 0;
        color: var(--theme-muted, #6b7280);
        font-size: 0.84rem;
        font-weight: 650;
        line-height: 1.45;
    }

.sms-details-message-box {
    width: 100%;
    min-height: 92px;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--theme-border, #e5e7eb);
    background: #f8fafc;
    color: var(--theme-text, #1f2937);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.55;
    white-space: pre-wrap;
}

.sms-recipient-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sms-recipient-initial {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 15px;
    background: var(--theme-primary-soft, #fff7ed);
    color: var(--theme-primary-dark, #ea580c);
    border: 1px solid var(--theme-border, #e5e7eb);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 950;
}

.sms-recipient-info {
    min-width: 0;
}

    .sms-recipient-info strong {
        display: block;
        color: var(--theme-text, #1f2937);
        font-size: 0.88rem;
        font-weight: 950;
        line-height: 1.25;
    }

    .sms-recipient-info span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted, #6b7280);
        font-size: 0.78rem;
        font-weight: 750;
    }

    .sms-recipient-info small {
        display: block;
        margin-top: 3px;
        color: #94a3b8;
        font-size: 0.72rem;
        font-weight: 750;
    }

@media (max-width: 960px) {
    .sms-details-hero {
        grid-template-columns: 1fr;
    }

    .sms-details-hero-status {
        justify-content: flex-start;
    }

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

@media (max-width: 640px) {
    .sms-details-summary-grid {
        grid-template-columns: 1fr;
    }
}

.sms-history-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

    .sms-history-filter-toolbar .student-search-input {
        flex: 1 1 auto;
        min-width: 260px;
    }

.sms-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .sms-history-filter-toolbar {
        flex-wrap: wrap;
    }

    .sms-filter-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .sms-filter-actions {
        width: 100%;
        justify-content: stretch;
    }

        .sms-filter-actions .btn,
        .sms-filter-actions a {
            flex: 1 1 0;
            text-align: center;
        }
}

.sms-history-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

    .sms-history-filter-toolbar .student-search-input {
        flex: 1 1 auto;
        min-width: 420px;
    }

    .sms-history-filter-toolbar select.page-size-select {
        flex: 0 0 auto;
        width: auto;
        min-width: 130px;
        max-width: 150px;
        padding-left: 14px;
        padding-right: 34px;
    }

    .sms-history-filter-toolbar select[name="pageSize"] {
        min-width: 125px;
        max-width: 140px;
    }

.sms-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

    .sms-filter-actions .btn {
        min-width: 84px;
    }

@media (max-width: 1100px) {
    .sms-history-filter-toolbar {
        flex-wrap: wrap;
    }

        .sms-history-filter-toolbar .student-search-input {
            flex: 1 1 100%;
            min-width: 100%;
        }

        .sms-history-filter-toolbar select.page-size-select {
            flex: 0 0 auto;
            width: auto;
        }

    .sms-filter-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .sms-history-filter-toolbar select.page-size-select {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .sms-filter-actions {
        width: 100%;
        justify-content: stretch;
        margin-left: 0;
    }

        .sms-filter-actions .btn,
        .sms-filter-actions a {
            flex: 1 1 0;
            text-align: center;
        }
}


.sms-target-toolbar {
    display: grid !important;
    grid-template-columns: minmax(150px, 0.85fr) minmax(160px, 1fr) minmax(150px, 0.85fr) minmax(170px, 1fr) minmax(180px, auto);
    gap: 10px;
    align-items: center;
    width: 100%;
}

.sms-employee-target-toolbar {
    grid-template-columns: minmax(150px, 0.85fr) minmax(180px, 1fr) minmax(180px, auto);
}

.sms-target-select {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}

.sms-target-mode {
    min-width: 0 !important;
}

.sms-target-schoolyear,
.sms-target-level,
.sms-target-section,
.sms-target-department {
    min-width: 0 !important;
}

.sms-target-add-btn {
    width: 100%;
    min-width: 170px;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .sms-target-toolbar {
        grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(150px, 1fr) minmax(170px, 1fr);
    }

    .sms-target-add-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .sms-employee-target-toolbar {
        grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr);
    }

        .sms-employee-target-toolbar .sms-target-add-btn {
            grid-column: 1 / -1;
        }
}

@media (max-width: 760px) {
    .sms-target-toolbar,
    .sms-employee-target-toolbar {
        grid-template-columns: 1fr;
    }

    .sms-target-add-btn {
        grid-column: auto;
        min-width: 0;
    }
}



.sms-history-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

    .sms-history-filter-toolbar .student-search-input {
        flex: 1 1 auto;
        min-width: 420px;
    }

    .sms-history-filter-toolbar select.page-size-select {
        flex: 0 0 auto;
        width: auto;
        min-width: 130px;
        max-width: 150px;
        padding-left: 14px;
        padding-right: 34px;
    }

    .sms-history-filter-toolbar select[name="pageSize"] {
        min-width: 125px;
        max-width: 140px;
    }

.sms-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

    .sms-filter-actions .btn {
        min-width: 84px;
    }

@media (max-width: 1100px) {
    .sms-history-filter-toolbar {
        flex-wrap: wrap;
    }

        .sms-history-filter-toolbar .student-search-input {
            flex: 1 1 100%;
            min-width: 100%;
        }

        .sms-history-filter-toolbar select.page-size-select {
            flex: 0 0 auto;
            width: auto;
        }

    .sms-filter-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .sms-history-filter-toolbar select.page-size-select {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .sms-filter-actions {
        width: 100%;
        justify-content: stretch;
        margin-left: 0;
    }

        .sms-filter-actions .btn,
        .sms-filter-actions a {
            flex: 1 1 0;
            text-align: center;
        }
}














.rfid-sms-filter-toolbar {
    display: grid !important;
    grid-template-columns: minmax(300px, 1.8fr) minmax(145px, .75fr) minmax(145px, .75fr) minmax(150px, .8fr) minmax(125px, .65fr) auto auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
    margin-bottom: 28px;
    width: 100%;
}

.rfid-sms-search-input,
.rfid-sms-date-input {
    min-width: 0;
}

.rfid-sms-filter-toolbar input,
.rfid-sms-filter-toolbar select {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

    .rfid-sms-filter-toolbar input::placeholder {
        color: #64748b;
        font-weight: 500;
    }

    .rfid-sms-filter-toolbar input:focus,
    .rfid-sms-filter-toolbar select:focus {
        border-color: var(--theme-primary, #f97316);
        box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary, #f97316) 16%, transparent), 0 10px 24px rgba(15, 23, 42, 0.08);
    }

.rfid-sms-filter-toolbar select {
    cursor: pointer;
}

.rfid-sms-filter-btn,
.rfid-sms-clear-btn {
    min-height: 44px;
    white-space: nowrap;
    border-radius: 14px;
}

.rfid-sms-table-section {
    margin-top: 8px;
}

.rfid-sms-filter-toolbar + .empty-card {
    margin-top: 8px;
}

@media (max-width: 1280px) {
    .rfid-sms-filter-toolbar {
        grid-template-columns: minmax(260px, 1fr) minmax(145px, .55fr) minmax(145px, .55fr) minmax(150px, .55fr) minmax(125px, .45fr) auto auto;
    }
}

@media (max-width: 1100px) {
    .rfid-sms-filter-toolbar {
        grid-template-columns: 1fr 1fr;
    }

    .rfid-sms-search-input {
        grid-column: 1 / -1;
    }

    .rfid-sms-filter-btn,
    .rfid-sms-clear-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .rfid-sms-filter-toolbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rfid-sms-filter-btn,
    .rfid-sms-clear-btn {
        width: 100%;
    }
}

.rfid-sms-filter-toolbar {
    display: grid !important;
    grid-template-columns: minmax(300px, 1.8fr) minmax(145px, .75fr) minmax(145px, .75fr) minmax(150px, .8fr) minmax(125px, .65fr) auto auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    margin-top: 18px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    background: linear-gradient( 135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92) );
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.sms-history-date-filter-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

    .sms-history-date-filter-toolbar .student-search-input {
        flex: 1 1 auto;
        min-width: 320px;
    }

    .sms-history-date-filter-toolbar .sms-date-filter {
        flex: 0 0 145px;
        width: 145px;
        min-width: 145px;
        max-width: 145px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .sms-history-date-filter-toolbar .sms-status-filter {
        flex: 0 0 130px;
        width: 130px;
        min-width: 130px;
        max-width: 130px;
        padding-left: 12px;
        padding-right: 32px;
    }

    .sms-history-date-filter-toolbar .sms-page-size-filter {
        flex: 0 0 125px;
        width: 125px;
        min-width: 125px;
        max-width: 125px;
        padding-left: 12px;
        padding-right: 32px;
    }

@media (max-width: 1280px) {
    .sms-history-date-filter-toolbar {
        flex-wrap: wrap;
    }

        .sms-history-date-filter-toolbar .student-search-input {
            flex: 1 1 100%;
            min-width: 100%;
        }

    .sms-filter-actions {
        margin-left: auto;
    }
}

@media (max-width: 640px) {
    .sms-history-date-filter-toolbar .sms-date-filter,
    .sms-history-date-filter-toolbar .sms-status-filter,
    .sms-history-date-filter-toolbar .sms-page-size-filter {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .sms-filter-actions {
        width: 100%;
        justify-content: stretch;
        margin-left: 0;
    }

        .sms-filter-actions .btn,
        .sms-filter-actions a {
            flex: 1 1 0;
            text-align: center;
        }
}


.report-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

    .report-loading-overlay.show {
        display: flex;
    }

.report-loading-card {
    width: min(360px, calc(100% - 32px));
    padding: 26px 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    text-align: center;
}

.report-loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border-radius: 999px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--theme-primary, #f97316);
    animation: reportLoadingSpin 0.8s linear infinite;
}

.report-loading-card h3 {
    margin: 0;
    color: var(--theme-text, #1f2937);
    font-size: 1rem;
    font-weight: 950;
}

.report-loading-card p {
    margin: 7px 0 0;
    color: var(--theme-muted, #6b7280);
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.45;
}

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


.cashier-textarea {
    width: 100%;
    min-height: 90px;
    padding: 12px 14px;
    border: 1px solid var(--theme-border-color, #e5e7eb);
    border-radius: 10px;
    background: var(--theme-surface-color, #ffffff);
    color: var(--theme-text-color, #1f2937);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .cashier-textarea:focus {
        border-color: var(--primary-color, #f97316);
        box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
    }

    .cashier-textarea::placeholder {
        color: var(--theme-muted-text-color, #9ca3af);
    }












































/* ==========================================================
   STUDENT AFFAIRS
   CREATE INCIDENT REPORT
   Uses dynamic admin theme variables
   ========================================================== */

.incident-create-page,
.incident-create-page *,
.incident-create-modal-backdrop,
.incident-create-modal-backdrop * {
    box-sizing: border-box;
}

.incident-create-page {
    width: 100%;
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
    color: var(--theme-text);
}

/* ==========================================================
   HERO
   ========================================================== */

.incident-create-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 160px;
    padding: 26px 28px;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: radial-gradient( circle at top right, var(--theme-primary-soft) 0, transparent 42% ), linear-gradient( 135deg, var(--theme-surface) 0%, var(--theme-primary-soft) 100% );
    box-shadow: var(--theme-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

    .incident-create-hero::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -110px;
        right: -85px;
        width: 280px;
        height: 280px;
        border-radius: 999px;
        border: 45px solid var(--theme-primary-soft);
        opacity: 0.8;
    }

    .incident-create-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: 160px;
        bottom: -95px;
        width: 185px;
        height: 185px;
        border-radius: 999px;
        background: var(--theme-primary-soft);
        opacity: 0.65;
    }

.incident-create-hero-copy {
    min-width: 0;
    max-width: 800px;
}

.incident-create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .incident-create-eyebrow i {
        font-size: 14px;
    }

.incident-create-hero h2 {
    margin: 7px 0 7px;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.incident-create-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}

.incident-create-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.incident-create-btn {
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .incident-create-btn:hover {
        transform: translateY(-1px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
    }

    .incident-create-btn:focus-visible {
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .incident-create-btn.primary {
        border-color: var(--theme-primary);
        background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
        color: var(--theme-primary-text);
        box-shadow: var(--theme-shadow);
    }

        .incident-create-btn.primary:hover {
            border-color: var(--theme-primary-dark);
            background: linear-gradient( 135deg, var(--theme-primary-dark), var(--theme-primary) );
            color: var(--theme-primary-text);
        }

    .incident-create-btn.full {
        width: 100%;
    }

    .incident-create-btn:disabled,
    .incident-create-btn[disabled] {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
        transform: none;
        box-shadow: none;
    }

/* ==========================================================
   ALERTS AND VALIDATION
   ========================================================== */

.incident-create-alert {
    position: relative;
    padding: 14px 48px 14px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

    .incident-create-alert.success {
        border: 1px solid #a7f3d0;
        background: #ecfdf5;
        color: #047857;
    }

    .incident-create-alert.error {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

.incident-create-alert-close {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
}

    .incident-create-alert-close:hover {
        background: rgba(255, 255, 255, 0.55);
    }

.incident-create-validation {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

    .incident-create-validation:empty {
        display: none;
    }

    .incident-create-validation ul {
        margin: 0;
        padding-left: 20px;
    }

.incident-create-field-error {
    display: block;
    color: #dc2626;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
}

    .incident-create-field-error:empty {
        display: none;
    }

.incident-create-student-validation {
    padding: 12px 19px 0;
}

/* ==========================================================
   PAGE LAYOUT
   ========================================================== */

.incident-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.incident-create-main,
.incident-create-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

/* ==========================================================
   CARDS
   ========================================================== */

.incident-create-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 23px;
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}

.incident-create-card-header {
    min-height: 74px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, var(--theme-primary-soft), transparent 45% ), linear-gradient( 180deg, var(--theme-surface), var(--theme-primary-soft) );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.incident-create-card-heading {
    min-width: 0;
}

    .incident-create-card-heading strong {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
        line-height: 1.3;
    }

        .incident-create-card-heading strong i {
            color: var(--theme-primary-dark);
            font-size: 16px;
        }

    .incident-create-card-heading > span {
        display: block;
        margin-top: 5px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.incident-create-card-body {
    padding: 19px;
}

/* ==========================================================
   FORM
   ========================================================== */

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

    .incident-create-form-grid.three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

.incident-create-section-gap {
    margin-top: 15px;
}

.incident-create-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
}

    .incident-create-field.full {
        grid-column: 1 / -1;
    }

    .incident-create-field label {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 850;
        line-height: 1.35;
    }

.incident-create-required {
    color: #dc2626;
}

.incident-create-input,
.incident-create-select,
.incident-create-textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.incident-create-input,
.incident-create-select {
    height: 44px;
    min-height: 44px;
    padding: 0 13px;
}

.incident-create-select {
    cursor: pointer;
}

.incident-create-textarea {
    min-height: 112px;
    padding: 12px 13px;
    line-height: 1.6;
    resize: vertical;
}

    .incident-create-textarea.large {
        min-height: 155px;
    }

    .incident-create-input::placeholder,
    .incident-create-textarea::placeholder {
        color: var(--theme-muted);
        opacity: 0.75;
        font-weight: 550;
    }

    .incident-create-input:hover,
    .incident-create-select:hover,
    .incident-create-textarea:hover {
        border-color: var(--theme-primary);
    }

    .incident-create-input:focus,
    .incident-create-select:focus,
    .incident-create-textarea:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

.incident-create-field-hint {
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
}

/* ==========================================================
   EMPTY STUDENT STATE
   ========================================================== */

.incident-create-student-empty {
    padding: 44px 24px;
    text-align: center;
}

.incident-create-empty-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 26px;
    display: grid;
    place-items: center;
}

.incident-create-student-empty > strong {
    display: block;
    margin-top: 15px;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
}

.incident-create-student-empty > p {
    max-width: 470px;
    margin: 7px auto 0;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
}

/* ==========================================================
   INVOLVED STUDENT TABLE
   ========================================================== */

.incident-create-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.incident-create-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    border-spacing: 0;
}

    .incident-create-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--theme-border);
        background: var(--theme-primary-soft);
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .incident-create-table td {
        padding: 13px;
        border-bottom: 1px solid var(--theme-border);
        background: var(--theme-surface);
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 650;
        vertical-align: middle;
        transition: background 0.18s ease;
    }

    .incident-create-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .incident-create-table tbody tr:hover td {
        background: var(--theme-primary-soft);
    }

        .incident-create-table tbody tr:hover td:first-child {
            box-shadow: inset 4px 0 0 var(--theme-primary);
        }

.incident-create-center {
    text-align: center !important;
}

.incident-create-student {
    min-width: 245px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.incident-create-photo,
.incident-create-initials {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
}

.incident-create-photo {
    display: block;
    object-fit: cover;
    background: var(--theme-primary-soft);
}

.incident-create-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.03em;
    display: grid;
    place-items: center;
}

.incident-create-student-copy {
    min-width: 0;
}

    .incident-create-student-copy strong {
        display: block;
        max-width: 235px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .incident-create-student-copy span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

.incident-create-table-select,
.incident-create-table-input {
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.incident-create-table-select {
    min-width: 175px;
    cursor: pointer;
}

.incident-create-table-input {
    min-width: 180px;
}

    .incident-create-table-select:focus,
    .incident-create-table-input:focus {
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

.incident-create-primary-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.incident-create-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--theme-primary);
}

.incident-create-remove {
    width: 35px;
    height: 35px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .incident-create-remove:hover {
        transform: translateY(-1px);
        border-color: #ef4444;
        background: #fee2e2;
        color: #991b1b;
    }

/* ==========================================================
   GUIDELINES
   ========================================================== */

.incident-create-guidelines {
    display: grid;
    gap: 11px;
}

.incident-create-guideline {
    padding: 11px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-primary-soft);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.incident-create-guideline-icon {
    width: 31px;
    height: 31px;
    border: 1px solid var(--theme-border);
    border-radius: 10px;
    background: var(--theme-surface);
    color: var(--theme-primary-dark);
    font-size: 13px;
    display: grid;
    place-items: center;
}

.incident-create-guideline strong {
    display: block;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.35;
}

.incident-create-guideline span {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
}

/* ==========================================================
   SAVE CARD
   ========================================================== */

.incident-create-submit-card {
    position: sticky;
    top: 18px;
}

.incident-create-submit-actions {
    display: grid;
    gap: 9px;
}

/* ==========================================================
   STUDENT SEARCH MODAL
   Custom modal - no Bootstrap modal
   ========================================================== */

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

    .incident-create-modal-backdrop.open {
        display: flex;
    }

.incident-create-modal {
    width: min(1050px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: var(--theme-surface);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.34);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    animation: incidentCreateModalIn 0.2s ease-out;
}

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

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

.incident-create-modal-header {
    padding: 19px 21px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, var(--theme-primary-soft), transparent 42% ), linear-gradient( 180deg, var(--theme-surface), var(--theme-primary-soft) );
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

    .incident-create-modal-header strong {
        display: block;
        color: var(--theme-text);
        font-size: 17px;
        font-weight: 950;
        line-height: 1.3;
    }

    .incident-create-modal-header span {
        display: block;
        margin-top: 5px;
        color: var(--theme-muted);
        font-size: 11px;
        font-weight: 650;
    }

.incident-create-modal-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .incident-create-modal-close:hover {
        transform: rotate(90deg);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

.incident-create-modal-search {
    padding: 16px 20px;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-surface);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.incident-create-search-input-wrap {
    position: relative;
    min-width: 0;
}

    .incident-create-search-input-wrap > i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: var(--theme-muted);
        font-size: 14px;
        pointer-events: none;
        transform: translateY(-50%);
    }

.incident-create-search-input {
    width: 100%;
    height: 43px;
    padding: 0 14px 0 41px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    .incident-create-search-input::placeholder {
        color: var(--theme-muted);
        opacity: 0.75;
    }

    .incident-create-search-input:focus {
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

.incident-create-modal-body {
    min-height: 280px;
    overflow-y: auto;
    padding: 18px 20px;
    background: var(--theme-surface);
}

.incident-create-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-primary-soft);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ==========================================================
   SEARCH STATES
   ========================================================== */

.incident-create-search-message {
    padding: 14px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-primary-soft);
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

    .incident-create-search-message.warning {
        border-color: #fde68a;
        background: #fffbeb;
        color: #92400e;
    }

    .incident-create-search-message.error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

.incident-create-search-loading {
    min-height: 220px;
    padding: 40px 20px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
    display: grid;
    place-content: center;
    gap: 12px;
}

.incident-create-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    border: 4px solid var(--theme-primary-soft);
    border-top-color: var(--theme-primary);
    border-radius: 999px;
    animation: incidentCreateSpin 0.8s linear infinite;
}

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

/* ==========================================================
   SEARCH RESULTS
   ========================================================== */

.incident-create-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.incident-create-search-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .incident-create-search-card:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        box-shadow: var(--theme-shadow);
    }

.incident-create-search-card-body {
    min-height: 96px;
    padding: 14px;
    background: var(--theme-primary-soft);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.incident-create-search-photo,
.incident-create-search-initials {
    width: 62px;
    height: 62px;
    min-width: 62px;
    border: 1px solid var(--theme-border);
    border-radius: 19px;
}

.incident-create-search-photo {
    display: block;
    object-fit: cover;
    background: var(--theme-surface);
}

.incident-create-search-initials {
    background: var(--theme-surface);
    color: var(--theme-primary-dark);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0.03em;
    display: grid;
    place-items: center;
}

.incident-create-search-copy {
    min-width: 0;
}

    .incident-create-search-copy strong {
        display: block;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .incident-create-search-copy span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

.incident-create-search-card-footer {
    padding: 11px 14px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

/* ==========================================================
   HELPERS
   ========================================================== */

.incident-create-hidden {
    display: none !important;
}

body.incident-create-modal-open {
    overflow: hidden;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1180px) {
    .incident-create-layout {
        grid-template-columns: 1fr;
    }

    .incident-create-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .incident-create-submit-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .incident-create-form-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .incident-create-form-grid.three .incident-create-field:last-child {
            grid-column: 1 / -1;
        }
}

@media (max-width: 780px) {
    .incident-create-hero {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .incident-create-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .incident-create-sidebar,
    .incident-create-search-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .incident-create-page {
        gap: 14px;
    }

    .incident-create-hero {
        padding: 21px;
        border-radius: 23px;
    }

        .incident-create-hero h2 {
            font-size: 25px;
        }

    .incident-create-hero-actions,
    .incident-create-hero-actions .incident-create-btn {
        width: 100%;
    }

    .incident-create-card {
        border-radius: 20px;
    }

    .incident-create-card-header {
        align-items: stretch;
        flex-direction: column;
    }

        .incident-create-card-header > .incident-create-btn {
            width: 100%;
        }

    .incident-create-card-body {
        padding: 16px;
    }

    .incident-create-form-grid,
    .incident-create-form-grid.three {
        grid-template-columns: 1fr;
    }

        .incident-create-form-grid.three .incident-create-field:last-child,
        .incident-create-field.full {
            grid-column: auto;
        }

    .incident-create-modal-backdrop {
        padding: 10px;
    }

    .incident-create-modal {
        max-height: calc(100vh - 20px);
        border-radius: 21px;
    }

    .incident-create-modal-header,
    .incident-create-modal-search,
    .incident-create-modal-body,
    .incident-create-modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .incident-create-modal-search {
        grid-template-columns: 1fr;
    }

        .incident-create-modal-search .incident-create-btn {
            width: 100%;
        }

    .incident-create-modal-footer .incident-create-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .incident-create-hero {
        padding: 18px;
    }

        .incident-create-hero h2 {
            font-size: 22px;
        }

    .incident-create-card-header {
        padding: 15px;
    }

    .incident-create-student-empty {
        padding: 36px 17px;
    }
}













/* ==========================================================
   STUDENT AFFAIRS
   INCIDENT REPORT LIST
   Dynamic admin theme
   ========================================================== */

.incident-list-page {
    --incident-list-primary: var(--theme-primary, var(--orange));
    --incident-list-primary-dark: var(--theme-primary-dark, var(--orange-dark));
    --incident-list-primary-soft: var(--theme-primary-soft, var(--orange-soft));
    --incident-list-primary-text: var(--theme-primary-text, #ffffff);
    --incident-list-surface: var(--theme-surface, var(--card));
    --incident-list-border: var(--theme-border, var(--line));
    --incident-list-text: var(--theme-text, var(--ink));
    --incident-list-muted: var(--theme-muted, var(--muted));
    --incident-list-shadow: var(--theme-shadow, var(--shadow));
    width: 100%;
    display: grid;
    gap: 20px;
    padding-bottom: 32px;
    color: var(--incident-list-text);
}

    .incident-list-page,
    .incident-list-page * {
        box-sizing: border-box;
    }

/* ==========================================================
   HERO
   ========================================================== */

.incident-list-hero {
    position: relative;
    isolation: isolate;
    min-height: 160px;
    overflow: hidden;
    padding: 27px 29px;
    border: 1px solid var(--incident-list-border);
    border-radius: 28px;
    background: radial-gradient( circle at top right, var(--incident-list-primary-soft) 0, transparent 42% ), linear-gradient( 135deg, var(--incident-list-surface) 0%, var(--incident-list-primary-soft) 100% );
    box-shadow: var(--incident-list-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

    .incident-list-hero::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -115px;
        right: -78px;
        width: 285px;
        height: 285px;
        border: 46px solid var(--incident-list-primary-soft);
        border-radius: 999px;
        opacity: 0.8;
    }

    .incident-list-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: 165px;
        bottom: -102px;
        width: 190px;
        height: 190px;
        border-radius: 999px;
        background: var(--incident-list-primary-soft);
        opacity: 0.62;
    }

.incident-list-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 800px;
}

.incident-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--incident-list-primary-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .incident-list-eyebrow i {
        font-size: 14px;
    }

.incident-list-hero h2 {
    margin: 7px 0;
    color: var(--incident-list-text);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.incident-list-hero p {
    max-width: 740px;
    margin: 0;
    color: var(--incident-list-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}

.incident-list-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.incident-list-button,
.incident-list-view-button {
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid var(--incident-list-border);
    border-radius: 14px;
    outline: none;
    background: var(--incident-list-surface);
    color: var(--incident-list-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .incident-list-button:hover,
    .incident-list-view-button:hover {
        transform: translateY(-1px);
        border-color: var(--incident-list-primary);
        background: var(--incident-list-primary-soft);
        color: var(--incident-list-primary-dark);
    }

    .incident-list-button:focus-visible,
    .incident-list-view-button:focus-visible {
        border-color: var(--incident-list-primary);
        box-shadow: 0 0 0 4px var(--incident-list-primary-soft);
    }

    .incident-list-button.primary {
        border-color: var(--incident-list-primary);
        background: linear-gradient( 135deg, var(--incident-list-primary), var(--incident-list-primary-dark) );
        color: var(--incident-list-primary-text);
        box-shadow: var(--incident-list-shadow);
    }

        .incident-list-button.primary:hover {
            border-color: var(--incident-list-primary-dark);
            background: linear-gradient( 135deg, var(--incident-list-primary-dark), var(--incident-list-primary) );
            color: var(--incident-list-primary-text);
        }

    .incident-list-button:disabled,
    .incident-list-button[disabled] {
        opacity: 0.55;
        cursor: not-allowed;
        pointer-events: none;
        transform: none;
        box-shadow: none;
    }

.incident-list-view-button {
    min-height: 37px;
    padding: 8px 12px;
    border-color: var(--incident-list-primary);
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-primary-dark);
    font-size: 11px;
}

    .incident-list-view-button:hover {
        background: var(--incident-list-primary);
        color: var(--incident-list-primary-text);
    }

    .incident-list-view-button.full {
        width: 100%;
    }

/* ==========================================================
   ALERTS
   ========================================================== */

.incident-list-alert {
    position: relative;
    padding: 14px 48px 14px 15px;
    border: 1px solid;
    border-radius: 17px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

    .incident-list-alert.success {
        border-color: #a7f3d0;
        background: #ecfdf5;
        color: #047857;
    }

    .incident-list-alert.error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

.incident-list-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    display: grid;
    place-items: center;
}

.incident-list-alert-copy {
    min-width: 0;
}

    .incident-list-alert-copy strong {
        display: block;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.35;
    }

    .incident-list-alert-copy span {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.5;
    }

.incident-list-alert-close {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    transition: background 0.18s ease, transform 0.18s ease;
}

    .incident-list-alert-close:hover {
        background: rgba(255, 255, 255, 0.65);
        transform: translateY(-50%) rotate(90deg);
    }

/* ==========================================================
   SUMMARY CARDS
   ========================================================== */

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

.incident-list-summary-card {
    position: relative;
    min-width: 0;
    min-height: 132px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--incident-list-border);
    border-radius: 22px;
    background: var(--incident-list-surface);
    box-shadow: var(--incident-list-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .incident-list-summary-card:hover {
        transform: translateY(-3px);
        border-color: var(--incident-list-primary);
    }

    .incident-list-summary-card.primary {
        border-color: var(--incident-list-primary);
        background: radial-gradient( circle at top right, rgba(255, 255, 255, 0.25), transparent 38% ), linear-gradient( 135deg, var(--incident-list-primary), var(--incident-list-primary-dark) );
        color: var(--incident-list-primary-text);
    }

        .incident-list-summary-card.primary::after {
            content: "";
            position: absolute;
            right: -36px;
            bottom: -52px;
            width: 125px;
            height: 125px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.13);
        }

.incident-list-summary-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--incident-list-border);
    border-radius: 16px;
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-primary-dark);
    font-size: 18px;
    display: grid;
    place-items: center;
}

.incident-list-summary-card.primary .incident-list-summary-icon {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.18);
    color: var(--incident-list-primary-text);
}

.incident-list-summary-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

    .incident-list-summary-copy > span {
        display: block;
        color: var(--incident-list-muted);
        font-size: 11px;
        font-weight: 850;
        line-height: 1.3;
    }

    .incident-list-summary-copy > strong {
        display: block;
        margin-top: 6px;
        color: var(--incident-list-text);
        font-size: 28px;
        font-weight: 950;
        letter-spacing: -0.04em;
        line-height: 1;
    }

    .incident-list-summary-copy > small {
        display: block;
        margin-top: 7px;
        color: var(--incident-list-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
    }

.incident-list-summary-card.primary .incident-list-summary-copy > span,
.incident-list-summary-card.primary .incident-list-summary-copy > strong,
.incident-list-summary-card.primary .incident-list-summary-copy > small {
    color: var(--incident-list-primary-text);
}

.incident-list-summary-card.primary .incident-list-summary-copy > span,
.incident-list-summary-card.primary .incident-list-summary-copy > small {
    opacity: 0.82;
}

/* ==========================================================
   GENERAL CARDS
   ========================================================== */

.incident-list-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--incident-list-border);
    border-radius: 23px;
    background: var(--incident-list-surface);
    box-shadow: var(--incident-list-shadow);
}

.incident-list-card-header {
    min-height: 74px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--incident-list-border);
    background: radial-gradient( circle at top right, var(--incident-list-primary-soft), transparent 45% ), linear-gradient( 180deg, var(--incident-list-surface), var(--incident-list-primary-soft) );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.incident-list-card-heading {
    min-width: 0;
}

    .incident-list-card-heading strong {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--incident-list-text);
        font-size: 15px;
        font-weight: 950;
        line-height: 1.3;
    }

        .incident-list-card-heading strong i {
            color: var(--incident-list-primary-dark);
            font-size: 16px;
        }

    .incident-list-card-heading > span {
        display: block;
        margin-top: 5px;
        color: var(--incident-list-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.incident-list-card-body {
    padding: 19px;
}

/* ==========================================================
   FILTER HEADER
   ========================================================== */

.incident-list-filter-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-shrink: 0;
}

.incident-list-active-filter-badge {
    min-height: 32px;
    padding: 7px 11px;
    border: 1px solid var(--incident-list-primary);
    border-radius: 999px;
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-primary-dark);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.incident-list-filter-toggle {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 0;
    border: 1px solid var(--incident-list-border);
    border-radius: 13px;
    outline: none;
    background: var(--incident-list-surface);
    color: var(--incident-list-text);
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .incident-list-filter-toggle:hover {
        border-color: var(--incident-list-primary);
        background: var(--incident-list-primary-soft);
        color: var(--incident-list-primary-dark);
    }

    .incident-list-filter-toggle.is-collapsed {
        background: var(--incident-list-primary-soft);
        color: var(--incident-list-primary-dark);
    }

.incident-list-filter-body {
    display: block;
}

    .incident-list-filter-body.incident-list-filter-collapsed {
        display: none;
    }

/* ==========================================================
   FILTER FORM
   ========================================================== */

.incident-list-filter-form {
    display: grid;
    gap: 16px;
}

.incident-list-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(145px, 0.75fr) minmax(160px, 0.85fr) minmax(145px, 0.7fr) minmax(145px, 0.7fr);
    gap: 13px;
    align-items: end;
}

.incident-list-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 7px;
}

    .incident-list-field label {
        color: var(--incident-list-text);
        font-size: 10px;
        font-weight: 850;
        line-height: 1.35;
    }

    .incident-list-field input,
    .incident-list-field select {
        width: 100%;
        height: 44px;
        min-height: 44px;
        padding: 0 13px;
        border: 1px solid var(--incident-list-border);
        border-radius: 14px;
        outline: none;
        background: var(--incident-list-surface);
        color: var(--incident-list-text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 650;
        transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

    .incident-list-field select {
        cursor: pointer;
    }

    .incident-list-field input::placeholder {
        color: var(--incident-list-muted);
        opacity: 0.72;
        font-weight: 550;
    }

    .incident-list-field input:hover,
    .incident-list-field select:hover {
        border-color: var(--incident-list-primary);
    }

    .incident-list-field input:focus,
    .incident-list-field select:focus {
        border-color: var(--incident-list-primary);
        background: var(--incident-list-surface);
        box-shadow: 0 0 0 4px var(--incident-list-primary-soft);
    }

.incident-list-input-icon {
    position: relative;
    min-width: 0;
}

    .incident-list-input-icon > i {
        position: absolute;
        top: 50%;
        left: 14px;
        z-index: 1;
        color: var(--incident-list-muted);
        font-size: 13px;
        pointer-events: none;
        transform: translateY(-50%);
    }

    .incident-list-input-icon input {
        padding-left: 40px;
    }

.incident-list-filter-actions {
    padding-top: 15px;
    border-top: 1px solid var(--incident-list-border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* ==========================================================
   RECORD COUNT
   ========================================================== */

.incident-list-record-count {
    min-width: 66px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--incident-list-border);
    border-radius: 14px;
    background: var(--incident-list-surface);
    color: var(--incident-list-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .incident-list-record-count i {
        font-size: 14px;
    }

    .incident-list-record-count strong {
        color: var(--incident-list-text);
        font-size: 13px;
        font-weight: 950;
    }

/* ==========================================================
   DESKTOP TABLE
   ========================================================== */

.incident-list-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.incident-list-table {
    width: 100%;
    min-width: 1160px;
    border-collapse: collapse;
    border-spacing: 0;
}

    .incident-list-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--incident-list-border);
        background: var(--incident-list-primary-soft);
        color: var(--incident-list-muted);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .incident-list-table td {
        padding: 13px;
        border-bottom: 1px solid var(--incident-list-border);
        background: var(--incident-list-surface);
        color: var(--incident-list-text);
        font-size: 11px;
        font-weight: 650;
        vertical-align: middle;
        transition: background 0.18s ease, box-shadow 0.18s ease;
    }

    .incident-list-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .incident-list-table tbody tr:hover td {
        background: var(--incident-list-primary-soft);
    }

        .incident-list-table tbody tr:hover td:first-child {
            box-shadow: inset 4px 0 0 var(--incident-list-primary);
        }

.incident-list-center {
    text-align: center !important;
}

.incident-list-action-column {
    text-align: right !important;
}

/* ==========================================================
   INCIDENT REFERENCE
   ========================================================== */

.incident-list-reference {
    min-width: 0;
}

    .incident-list-reference strong {
        display: block;
        color: var(--incident-list-primary-dark);
        font-size: 11px;
        font-weight: 950;
        line-height: 1.3;
    }

    .incident-list-reference span {
        display: block;
        max-width: 220px;
        margin-top: 4px;
        overflow: hidden;
        color: var(--incident-list-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ==========================================================
   STUDENT INFORMATION
   ========================================================== */

.incident-list-student {
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.incident-list-student-photo-wrap {
    min-width: 46px;
    flex: 0 0 46px;
}

.incident-list-student-photo,
.incident-list-student-initials {
    width: 46px;
    height: 46px;
    border: 1px solid var(--incident-list-border);
    border-radius: 15px;
}

.incident-list-student-photo {
    display: block;
    object-fit: cover;
    background: var(--incident-list-primary-soft);
}

.incident-list-student-initials {
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-primary-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.03em;
    display: grid;
    place-items: center;
}

.incident-list-student-info {
    min-width: 0;
}

    .incident-list-student-info strong {
        display: block;
        max-width: 190px;
        overflow: hidden;
        color: var(--incident-list-text);
        font-size: 11px;
        font-weight: 950;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .incident-list-student-info span {
        display: block;
        margin-top: 3px;
        color: var(--incident-list-muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

/* ==========================================================
   CATEGORY, DATE, USER AND COUNT
   ========================================================== */

.incident-list-category {
    max-width: 170px;
    color: var(--incident-list-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .incident-list-category i {
        color: var(--incident-list-primary-dark);
        flex-shrink: 0;
    }

    .incident-list-category > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.incident-list-date strong,
.incident-list-created-by strong {
    display: block;
    color: var(--incident-list-text);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.35;
    white-space: nowrap;
}

.incident-list-date span,
.incident-list-created-by span {
    display: block;
    margin-top: 4px;
    color: var(--incident-list-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
}

.incident-list-count {
    min-width: 54px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--incident-list-border);
    border-radius: 12px;
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .incident-list-count i {
        font-size: 12px;
    }

    .incident-list-count strong {
        color: var(--incident-list-text);
        font-size: 11px;
        font-weight: 950;
    }

.incident-list-muted {
    color: var(--incident-list-muted);
    font-size: 10px;
    font-weight: 650;
}

/* ==========================================================
   STATUS PILLS
   ========================================================== */

.incident-list-status {
    min-height: 29px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.incident-list-status-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 999px;
    background: currentColor;
}

.incident-list-status-draft {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.incident-list-status-submitted {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.incident-list-status-review {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.incident-list-status-investigation {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.incident-list-status-resolved,
.incident-list-status-closed {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.incident-list-status-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.incident-list-status-default {
    border-color: var(--incident-list-border);
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-muted);
}

/* ==========================================================
   MOBILE CARDS
   ========================================================== */

.incident-list-mobile-grid {
    display: none;
}

.incident-list-mobile-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--incident-list-border);
    border-radius: 20px;
    background: var(--incident-list-surface);
    box-shadow: var(--incident-list-shadow);
    display: grid;
    gap: 14px;
}

.incident-list-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.incident-list-mobile-title {
    color: var(--incident-list-text);
    font-size: 13px;
    font-weight: 950;
    line-height: 1.45;
}

.incident-list-mobile-details {
    padding: 12px;
    border: 1px solid var(--incident-list-border);
    border-radius: 16px;
    background: var(--incident-list-primary-soft);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

    .incident-list-mobile-details > div {
        min-width: 0;
    }

    .incident-list-mobile-details span {
        display: block;
        color: var(--incident-list-muted);
        font-size: 8px;
        font-weight: 800;
        line-height: 1.35;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .incident-list-mobile-details strong {
        display: block;
        margin-top: 5px;
        overflow: hidden;
        color: var(--incident-list-text);
        font-size: 10px;
        font-weight: 900;
        line-height: 1.4;
        text-overflow: ellipsis;
    }

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.incident-list-empty-state {
    min-height: 360px;
    padding: 54px 24px;
    text-align: center;
    display: grid;
    place-content: center;
    justify-items: center;
}

.incident-list-empty-icon {
    width: 72px;
    height: 72px;
    border: 1px solid var(--incident-list-border);
    border-radius: 23px;
    background: var(--incident-list-primary-soft);
    color: var(--incident-list-primary-dark);
    font-size: 28px;
    display: grid;
    place-items: center;
}

.incident-list-empty-state > strong {
    display: block;
    margin-top: 17px;
    color: var(--incident-list-text);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.35;
}

.incident-list-empty-state > p {
    max-width: 470px;
    margin: 8px auto 0;
    color: var(--incident-list-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.6;
}

.incident-list-empty-actions {
    margin-top: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

/* ==========================================================
   HELPERS
   ========================================================== */

.incident-list-hidden {
    display: none !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

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

    .incident-list-field-search {
        grid-column: 1 / -1;
    }
}

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

@media (max-width: 980px) {
    .incident-list-table-wrapper {
        display: none;
    }

    .incident-list-mobile-grid {
        padding: 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 780px) {
    .incident-list-hero {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .incident-list-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

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

    .incident-list-field-search {
        grid-column: 1 / -1;
    }

    .incident-list-mobile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .incident-list-page {
        gap: 14px;
    }

    .incident-list-hero {
        padding: 21px;
        border-radius: 23px;
    }

        .incident-list-hero h2 {
            font-size: 25px;
        }

    .incident-list-hero-actions,
    .incident-list-hero-actions .incident-list-button {
        width: 100%;
    }

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

    .incident-list-summary-card {
        min-height: 112px;
    }

    .incident-list-card {
        border-radius: 20px;
    }

    .incident-list-card-header {
        align-items: flex-start;
    }

    .incident-list-filter-header-actions {
        align-items: flex-end;
        flex-direction: column-reverse;
    }

    .incident-list-active-filter-badge {
        white-space: normal;
    }

    .incident-list-card-body {
        padding: 16px;
    }

    .incident-list-filter-grid {
        grid-template-columns: 1fr;
    }

    .incident-list-field-search {
        grid-column: auto;
    }

    .incident-list-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .incident-list-filter-actions .incident-list-button {
            width: 100%;
        }

    .incident-list-mobile-grid {
        padding: 13px;
        gap: 12px;
    }

    .incident-list-mobile-details {
        grid-template-columns: 1fr;
    }

    .incident-list-empty-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

        .incident-list-empty-actions .incident-list-button {
            width: 100%;
        }
}

@media (max-width: 460px) {
    .incident-list-hero {
        padding: 18px;
    }

        .incident-list-hero h2 {
            font-size: 22px;
        }

    .incident-list-card-header {
        padding: 15px;
    }

    .incident-list-card-heading strong {
        font-size: 14px;
    }

    .incident-list-alert {
        grid-template-columns: 1fr;
        padding: 14px 45px 14px 14px;
    }

    .incident-list-alert-icon {
        display: none;
    }

    .incident-list-mobile-card-header {
        flex-direction: column;
    }

    .incident-list-empty-state {
        min-height: 320px;
        padding: 42px 17px;
    }
}





























/* ==========================================================
   STUDENT AFFAIRS
   INCIDENT REPORT DETAILS
   Dynamic admin theme
   ========================================================== */

.incident-details-page {
    --incident-details-primary: var(--theme-primary, var(--orange));
    --incident-details-primary-dark: var(--theme-primary-dark, var(--orange-dark));
    --incident-details-primary-soft: var(--theme-primary-soft, var(--orange-soft));
    --incident-details-primary-text: var(--theme-primary-text, #ffffff);
    --incident-details-surface: var(--theme-surface, var(--card));
    --incident-details-border: var(--theme-border, var(--line));
    --incident-details-text: var(--theme-text, var(--ink));
    --incident-details-muted: var(--theme-muted, var(--muted));
    --incident-details-shadow: var(--theme-shadow, var(--shadow));
    width: 100%;
    display: grid;
    gap: 20px;
    padding-bottom: 32px;
    color: var(--incident-details-text);
}

    .incident-details-page,
    .incident-details-page * {
        box-sizing: border-box;
    }

/* ==========================================================
   HERO
   ========================================================== */

.incident-details-hero {
    position: relative;
    isolation: isolate;
    min-height: 180px;
    overflow: hidden;
    padding: 28px 30px;
    border: 1px solid var(--incident-details-border);
    border-radius: 28px;
    background: radial-gradient( circle at top right, var(--incident-details-primary-soft) 0, transparent 42% ), linear-gradient( 135deg, var(--incident-details-surface) 0%, var(--incident-details-primary-soft) 100% );
    box-shadow: var(--incident-details-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

    .incident-details-hero::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: -120px;
        right: -85px;
        width: 300px;
        height: 300px;
        border: 48px solid var(--incident-details-primary-soft);
        border-radius: 999px;
        opacity: 0.82;
    }

    .incident-details-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        right: 175px;
        bottom: -110px;
        width: 205px;
        height: 205px;
        border-radius: 999px;
        background: var(--incident-details-primary-soft);
        opacity: 0.65;
    }

.incident-details-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 850px;
}

.incident-details-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--incident-details-primary-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .incident-details-eyebrow i {
        font-size: 14px;
    }

.incident-details-title-row {
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

    .incident-details-title-row > div {
        min-width: 0;
        flex: 1;
    }

.incident-details-reference {
    display: block;
    margin-bottom: 4px;
    color: var(--incident-details-primary-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.incident-details-hero h2 {
    margin: 0;
    color: var(--incident-details-text);
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 1.15;
}

.incident-details-hero p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--incident-details-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}

.incident-details-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

.incident-details-button {
    min-height: 43px;
    padding: 10px 16px;
    border: 1px solid var(--incident-details-border);
    border-radius: 14px;
    outline: none;
    background: var(--incident-details-surface);
    color: var(--incident-details-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .incident-details-button:hover {
        transform: translateY(-1px);
        border-color: var(--incident-details-primary);
        background: var(--incident-details-primary-soft);
        color: var(--incident-details-primary-dark);
    }

    .incident-details-button:focus-visible {
        border-color: var(--incident-details-primary);
        box-shadow: 0 0 0 4px var(--incident-details-primary-soft);
    }

    .incident-details-button.primary {
        border-color: var(--incident-details-primary);
        background: linear-gradient( 135deg, var(--incident-details-primary), var(--incident-details-primary-dark) );
        color: var(--incident-details-primary-text);
        box-shadow: var(--incident-details-shadow);
    }

        .incident-details-button.primary:hover {
            border-color: var(--incident-details-primary-dark);
            background: linear-gradient( 135deg, var(--incident-details-primary-dark), var(--incident-details-primary) );
            color: var(--incident-details-primary-text);
        }

/* ==========================================================
   ALERTS
   ========================================================== */

.incident-details-alert {
    position: relative;
    padding: 14px 48px 14px 15px;
    border: 1px solid;
    border-radius: 17px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

    .incident-details-alert.success {
        border-color: #a7f3d0;
        background: #ecfdf5;
        color: #047857;
    }

    .incident-details-alert.error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #b91c1c;
    }

.incident-details-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    font-size: 16px;
    display: grid;
    place-items: center;
}

.incident-details-alert-copy {
    min-width: 0;
}

    .incident-details-alert-copy strong {
        display: block;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.35;
    }

    .incident-details-alert-copy span {
        display: block;
        margin-top: 3px;
        font-size: 11px;
        font-weight: 650;
        line-height: 1.5;
    }

.incident-details-alert-close {
    position: absolute;
    top: 50%;
    right: 11px;
    width: 31px;
    height: 31px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 14px;
    cursor: pointer;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    transition: background 0.18s ease, transform 0.18s ease;
}

    .incident-details-alert-close:hover {
        background: rgba(255, 255, 255, 0.68);
        transform: translateY(-50%) rotate(90deg);
    }

/* ==========================================================
   SUMMARY CARDS
   ========================================================== */

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

.incident-details-summary-card {
    position: relative;
    min-width: 0;
    min-height: 132px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--incident-details-border);
    border-radius: 22px;
    background: var(--incident-details-surface);
    box-shadow: var(--incident-details-shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

    .incident-details-summary-card:hover {
        transform: translateY(-3px);
        border-color: var(--incident-details-primary);
    }

    .incident-details-summary-card.primary {
        border-color: var(--incident-details-primary);
        background: radial-gradient( circle at top right, rgba(255, 255, 255, 0.25), transparent 38% ), linear-gradient( 135deg, var(--incident-details-primary), var(--incident-details-primary-dark) );
        color: var(--incident-details-primary-text);
    }

        .incident-details-summary-card.primary::after {
            content: "";
            position: absolute;
            right: -38px;
            bottom: -52px;
            width: 130px;
            height: 130px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.13);
        }

.incident-details-summary-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--incident-details-border);
    border-radius: 16px;
    background: var(--incident-details-primary-soft);
    color: var(--incident-details-primary-dark);
    font-size: 18px;
    display: grid;
    place-items: center;
}

.incident-details-summary-card.primary .incident-details-summary-icon {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.18);
    color: var(--incident-details-primary-text);
}

.incident-details-summary-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

    .incident-details-summary-copy > span {
        display: block;
        color: var(--incident-details-muted);
        font-size: 10px;
        font-weight: 850;
        line-height: 1.35;
    }

    .incident-details-summary-copy > strong {
        display: block;
        margin-top: 6px;
        overflow: hidden;
        color: var(--incident-details-text);
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.025em;
        line-height: 1.25;
        text-overflow: ellipsis;
    }

    .incident-details-summary-copy > small {
        display: block;
        margin-top: 6px;
        overflow: hidden;
        color: var(--incident-details-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
        text-overflow: ellipsis;
    }

.incident-details-summary-card.primary
.incident-details-summary-copy > span,
.incident-details-summary-card.primary
.incident-details-summary-copy > strong,
.incident-details-summary-card.primary
.incident-details-summary-copy > small {
    color: var(--incident-details-primary-text);
}

.incident-details-summary-card.primary
.incident-details-summary-copy > span,
.incident-details-summary-card.primary
.incident-details-summary-copy > small {
    opacity: 0.82;
}

/* ==========================================================
   MAIN LAYOUT
   ========================================================== */

.incident-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.68fr);
    gap: 20px;
    align-items: start;
}

.incident-details-main,
.incident-details-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

/* ==========================================================
   GENERAL CARDS
   ========================================================== */

.incident-details-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--incident-details-border);
    border-radius: 23px;
    background: var(--incident-details-surface);
    box-shadow: var(--incident-details-shadow);
}

.incident-details-card-header {
    min-height: 74px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--incident-details-border);
    background: radial-gradient( circle at top right, var(--incident-details-primary-soft), transparent 45% ), linear-gradient( 180deg, var(--incident-details-surface), var(--incident-details-primary-soft) );
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.incident-details-card-heading {
    min-width: 0;
}

    .incident-details-card-heading strong {
        display: flex;
        align-items: center;
        gap: 9px;
        color: var(--incident-details-text);
        font-size: 15px;
        font-weight: 950;
        line-height: 1.3;
    }

        .incident-details-card-heading strong i {
            color: var(--incident-details-primary-dark);
            font-size: 16px;
        }

    .incident-details-card-heading > span {
        display: block;
        margin-top: 5px;
        color: var(--incident-details-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.incident-details-card-body {
    padding: 19px;
}

/* ==========================================================
   INFORMATION GRID
   ========================================================== */

.incident-details-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.incident-details-information-item {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--incident-details-border);
    border-radius: 17px;
    background: var(--incident-details-primary-soft);
    display: grid;
    align-content: start;
    gap: 6px;
}

    .incident-details-information-item.full {
        grid-column: 1 / -1;
    }

    .incident-details-information-item > span {
        color: var(--incident-details-muted);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 0.04em;
        line-height: 1.35;
        text-transform: uppercase;
    }

    .incident-details-information-item > strong {
        overflow-wrap: anywhere;
        color: var(--incident-details-text);
        font-size: 12px;
        font-weight: 900;
        line-height: 1.5;
    }

/* ==========================================================
   NARRATIVE
   ========================================================== */

.incident-details-narrative-grid {
    display: grid;
    gap: 14px;
}

.incident-details-narrative-block {
    overflow: hidden;
    border: 1px solid var(--incident-details-border);
    border-radius: 19px;
    background: var(--incident-details-surface);
}

.incident-details-narrative-title {
    padding: 14px 16px;
    border-bottom: 1px solid var(--incident-details-border);
    background: var(--incident-details-primary-soft);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

    .incident-details-narrative-title > i {
        width: 38px;
        height: 38px;
        border: 1px solid var(--incident-details-border);
        border-radius: 13px;
        background: var(--incident-details-surface);
        color: var(--incident-details-primary-dark);
        font-size: 15px;
        display: grid;
        place-items: center;
    }

    .incident-details-narrative-title strong {
        display: block;
        color: var(--incident-details-text);
        font-size: 12px;
        font-weight: 950;
        line-height: 1.35;
    }

    .incident-details-narrative-title span {
        display: block;
        margin-top: 3px;
        color: var(--incident-details-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.45;
    }

.incident-details-narrative-content {
    min-height: 105px;
    padding: 17px;
    color: var(--incident-details-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.75;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.incident-details-empty-text {
    color: var(--incident-details-muted);
    font-style: italic;
    font-weight: 650;
}

/* ==========================================================
   RECORD COUNT
   ========================================================== */

.incident-details-record-count {
    min-width: 66px;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid var(--incident-details-border);
    border-radius: 14px;
    background: var(--incident-details-surface);
    color: var(--incident-details-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .incident-details-record-count i {
        font-size: 14px;
    }

    .incident-details-record-count strong {
        color: var(--incident-details-text);
        font-size: 13px;
        font-weight: 950;
    }

/* ==========================================================
   STUDENT TABLE
   ========================================================== */

.incident-details-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.incident-details-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
    border-spacing: 0;
}

    .incident-details-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--incident-details-border);
        background: var(--incident-details-primary-soft);
        color: var(--incident-details-muted);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.06em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .incident-details-table td {
        padding: 13px;
        border-bottom: 1px solid var(--incident-details-border);
        background: var(--incident-details-surface);
        color: var(--incident-details-text);
        font-size: 11px;
        font-weight: 650;
        vertical-align: middle;
        transition: background 0.18s ease, box-shadow 0.18s ease;
    }

    .incident-details-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .incident-details-table tbody tr:hover td {
        background: var(--incident-details-primary-soft);
    }

        .incident-details-table tbody tr:hover td:first-child {
            box-shadow: inset 4px 0 0 var(--incident-details-primary);
        }

.incident-details-center {
    text-align: center !important;
}

/* ==========================================================
   STUDENT INFORMATION
   ========================================================== */

.incident-details-student {
    min-width: 225px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.incident-details-student-photo-wrap {
    min-width: 48px;
    flex: 0 0 48px;
}

.incident-details-student-photo,
.incident-details-student-initials {
    width: 48px;
    height: 48px;
    border: 1px solid var(--incident-details-border);
    border-radius: 16px;
}

.incident-details-student-photo {
    display: block;
    object-fit: cover;
    background: var(--incident-details-primary-soft);
}

.incident-details-student-initials {
    background: var(--incident-details-primary-soft);
    color: var(--incident-details-primary-dark);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.03em;
    display: grid;
    place-items: center;
}

.incident-details-student-copy {
    min-width: 0;
}

    .incident-details-student-copy strong {
        display: block;
        max-width: 195px;
        overflow: hidden;
        color: var(--incident-details-text);
        font-size: 11px;
        font-weight: 950;
        line-height: 1.35;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .incident-details-student-copy span {
        display: block;
        margin-top: 3px;
        color: var(--incident-details-muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

.incident-details-table-value {
    color: var(--incident-details-text);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.45;
}

.incident-details-involvement {
    max-width: 190px;
    color: var(--incident-details-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .incident-details-involvement i {
        color: var(--incident-details-primary-dark);
        flex-shrink: 0;
    }

.incident-details-primary-badge {
    min-height: 29px;
    padding: 6px 10px;
    border: 1px solid var(--incident-details-primary);
    border-radius: 999px;
    background: var(--incident-details-primary-soft);
    color: var(--incident-details-primary-dark);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.incident-details-remarks {
    display: block;
    min-width: 150px;
    max-width: 260px;
    color: var(--incident-details-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.incident-details-muted {
    color: var(--incident-details-muted);
    font-size: 10px;
    font-weight: 650;
}

/* ==========================================================
   MOBILE STUDENT CARDS
   ========================================================== */

.incident-details-mobile-grid {
    display: none;
}

.incident-details-mobile-student-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--incident-details-border);
    border-radius: 20px;
    background: var(--incident-details-surface);
    box-shadow: var(--incident-details-shadow);
    display: grid;
    gap: 14px;
}

.incident-details-mobile-student-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.incident-details-mobile-student-grid {
    padding: 12px;
    border: 1px solid var(--incident-details-border);
    border-radius: 16px;
    background: var(--incident-details-primary-soft);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

    .incident-details-mobile-student-grid > div {
        min-width: 0;
    }

    .incident-details-mobile-student-grid span {
        display: block;
        color: var(--incident-details-muted);
        font-size: 8px;
        font-weight: 850;
        line-height: 1.35;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .incident-details-mobile-student-grid strong {
        display: block;
        margin-top: 5px;
        color: var(--incident-details-text);
        font-size: 10px;
        font-weight: 900;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

/* ==========================================================
   PRIMARY PERSON
   ========================================================== */

.incident-details-primary-person {
    padding: 16px;
    border: 1px solid var(--incident-details-border);
    border-radius: 19px;
    background: var(--incident-details-primary-soft);
    text-align: center;
}

.incident-details-primary-photo-wrap {
    width: 92px;
    height: 92px;
    margin: 0 auto;
}

.incident-details-primary-photo,
.incident-details-primary-initials {
    width: 92px;
    height: 92px;
    border: 2px solid var(--incident-details-border);
    border-radius: 28px;
}

.incident-details-primary-photo {
    display: block;
    object-fit: cover;
    background: var(--incident-details-surface);
}

.incident-details-primary-initials {
    background: var(--incident-details-surface);
    color: var(--incident-details-primary-dark);
    font-size: 24px;
    font-weight: 950;
    letter-spacing: 0.03em;
    display: grid;
    place-items: center;
}

.incident-details-primary-copy {
    margin-top: 13px;
}

    .incident-details-primary-copy strong {
        display: block;
        color: var(--incident-details-text);
        font-size: 14px;
        font-weight: 950;
        line-height: 1.4;
    }

    .incident-details-primary-copy span {
        display: block;
        margin-top: 4px;
        color: var(--incident-details-primary-dark);
        font-size: 10px;
        font-weight: 850;
    }

    .incident-details-primary-copy small {
        display: block;
        margin-top: 4px;
        color: var(--incident-details-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
    }

/* ==========================================================
   SIDEBAR INFORMATION
   ========================================================== */

.incident-details-sidebar-information {
    display: grid;
    gap: 10px;
}

    .incident-details-sidebar-information > div {
        min-width: 0;
        padding: 13px;
        border: 1px solid var(--incident-details-border);
        border-radius: 16px;
        background: var(--incident-details-primary-soft);
    }

        .incident-details-sidebar-information > div > span {
            display: block;
            color: var(--incident-details-muted);
            font-size: 8px;
            font-weight: 850;
            letter-spacing: 0.045em;
            line-height: 1.35;
            text-transform: uppercase;
        }

        .incident-details-sidebar-information > div > strong {
            display: block;
            margin-top: 5px;
            color: var(--incident-details-text);
            font-size: 11px;
            font-weight: 900;
            line-height: 1.5;
            overflow-wrap: anywhere;
        }

.incident-details-primary-person + .incident-details-sidebar-information {
    margin-top: 12px;
}

.incident-details-success-text {
    color: #047857 !important;
}

.incident-details-danger-text {
    color: #b91c1c !important;
}

    .incident-details-success-text i,
    .incident-details-danger-text i {
        margin-right: 4px;
    }

/* ==========================================================
   DISCIPLINE CASE LINK
   ========================================================== */

.incident-details-case-link {
    width: 100%;
    min-height: 38px;
    margin-top: 7px;
    padding: 8px 11px;
    border: 1px solid var(--incident-details-primary);
    border-radius: 12px;
    background: var(--incident-details-surface);
    color: var(--incident-details-primary-dark);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.3;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: transform 0.18s ease, color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

    .incident-details-case-link:hover {
        transform: translateY(-1px);
        border-color: var(--incident-details-primary-dark);
        background: var(--incident-details-primary);
        color: var(--incident-details-primary-text);
    }

/* ==========================================================
   AUDIT HISTORY
   ========================================================== */

.incident-details-audit-list {
    display: grid;
    gap: 11px;
}

.incident-details-audit-item {
    padding: 13px;
    border: 1px solid var(--incident-details-border);
    border-radius: 16px;
    background: var(--incident-details-primary-soft);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
}

.incident-details-audit-icon {
    width: 34px;
    height: 34px;
    border: 1px solid var(--incident-details-border);
    border-radius: 11px;
    background: var(--incident-details-surface);
    color: var(--incident-details-primary-dark);
    font-size: 13px;
    display: grid;
    place-items: center;
}

.incident-details-audit-item span {
    display: block;
    color: var(--incident-details-muted);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-transform: uppercase;
}

.incident-details-audit-item strong {
    display: block;
    margin-top: 4px;
    color: var(--incident-details-text);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.incident-details-audit-item small {
    display: block;
    margin-top: 3px;
    color: var(--incident-details-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.4;
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */

.incident-details-empty-state {
    min-height: 280px;
    padding: 48px 24px;
    text-align: center;
    display: grid;
    place-content: center;
    justify-items: center;
}

.incident-details-empty-icon {
    width: 68px;
    height: 68px;
    border: 1px solid var(--incident-details-border);
    border-radius: 22px;
    background: var(--incident-details-primary-soft);
    color: var(--incident-details-primary-dark);
    font-size: 26px;
    display: grid;
    place-items: center;
}

.incident-details-empty-state > strong {
    display: block;
    margin-top: 15px;
    color: var(--incident-details-text);
    font-size: 14px;
    font-weight: 950;
}

.incident-details-empty-state > p {
    max-width: 440px;
    margin: 7px auto 0;
    color: var(--incident-details-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

/* ==========================================================
   STATUS PILLS
   ========================================================== */

.incident-details-status {
    min-height: 29px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.incident-details-status-dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 999px;
    background: currentColor;
}

.incident-details-status-draft {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #c2410c;
}

.incident-details-status-submitted {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.incident-details-status-review {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.incident-details-status-investigation {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.incident-details-status-resolved,
.incident-details-status-closed {
    border-color: #a7f3d0;
    background: #ecfdf5;
    color: #047857;
}

.incident-details-status-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.incident-details-status-default {
    border-color: var(--incident-details-border);
    background: var(--incident-details-primary-soft);
    color: var(--incident-details-muted);
}

/* ==========================================================
   HELPERS
   ========================================================== */

.incident-details-hidden {
    display: none !important;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1180px) {
    .incident-details-layout {
        grid-template-columns: 1fr;
    }

    .incident-details-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .incident-details-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .incident-details-table-wrapper {
        display: none;
    }

    .incident-details-mobile-grid {
        padding: 16px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 780px) {
    .incident-details-hero {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .incident-details-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .incident-details-sidebar,
    .incident-details-mobile-grid {
        grid-template-columns: 1fr;
    }

    .incident-details-title-row {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .incident-details-page {
        gap: 14px;
    }

    .incident-details-hero {
        padding: 21px;
        border-radius: 23px;
    }

        .incident-details-hero h2 {
            font-size: 25px;
        }

    .incident-details-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

        .incident-details-hero-actions,
        .incident-details-hero-actions .incident-details-button {
            width: 100%;
        }

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

    .incident-details-summary-card {
        min-height: 112px;
    }

    .incident-details-card {
        border-radius: 20px;
    }

    .incident-details-card-header {
        align-items: flex-start;
    }

    .incident-details-card-body {
        padding: 16px;
    }

    .incident-details-information-grid {
        grid-template-columns: 1fr;
    }

    .incident-details-information-item.full {
        grid-column: auto;
    }

    .incident-details-mobile-grid {
        padding: 13px;
        gap: 12px;
    }

    .incident-details-mobile-student-header {
        flex-direction: column;
    }

    .incident-details-mobile-student-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .incident-details-hero {
        padding: 18px;
    }

        .incident-details-hero h2 {
            font-size: 22px;
        }

    .incident-details-card-header {
        padding: 15px;
    }

    .incident-details-card-heading strong {
        font-size: 14px;
    }

    .incident-details-alert {
        grid-template-columns: 1fr;
        padding: 14px 45px 14px 14px;
    }

    .incident-details-alert-icon {
        display: none;
    }

    .incident-details-primary-photo,
    .incident-details-primary-initials,
    .incident-details-primary-photo-wrap {
        width: 82px;
        height: 82px;
    }
}

/* ==========================================================
   PRINT
   ========================================================== */

@page {
    size: A4 portrait;
    margin: 10mm;
}

@media print {
    .incident-details-page {
        display: block;
        padding: 0;
        color: #000000;
    }

    .incident-details-hero,
    .incident-details-summary-card,
    .incident-details-card {
        box-shadow: none !important;
        break-inside: avoid;
    }

    .incident-details-hero {
        min-height: auto;
        margin-bottom: 12px;
        padding: 16px;
        border-radius: 12px;
    }

        .incident-details-hero::before,
        .incident-details-hero::after,
        .incident-details-hero-actions,
        .incident-details-alert {
            display: none !important;
        }

    .incident-details-summary-grid {
        margin-bottom: 12px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .incident-details-summary-card {
        min-height: 90px;
        padding: 10px;
        border-radius: 10px;
    }

    .incident-details-summary-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        border-radius: 10px;
        font-size: 13px;
    }

    .incident-details-summary-copy > strong {
        font-size: 12px;
    }

    .incident-details-layout {
        display: block;
    }

    .incident-details-main,
    .incident-details-sidebar {
        display: block;
    }

    .incident-details-card {
        margin-bottom: 12px;
        border-radius: 10px;
    }

    .incident-details-card-header {
        min-height: auto;
        padding: 10px 12px;
    }

    .incident-details-card-body {
        padding: 12px;
    }

    .incident-details-sidebar .incident-details-card {
        page-break-inside: avoid;
    }

    .incident-details-table-wrapper {
        display: block !important;
        overflow: visible;
    }

    .incident-details-table {
        min-width: 0;
        font-size: 8px;
    }

        .incident-details-table th,
        .incident-details-table td {
            padding: 6px;
        }

    .incident-details-mobile-grid {
        display: none !important;
    }

    .incident-details-student {
        min-width: 0;
    }

    .incident-details-student-photo,
    .incident-details-student-initials {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .incident-details-student-photo-wrap {
        min-width: 32px;
        flex-basis: 32px;
    }

    .incident-details-primary-person {
        text-align: left;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .incident-details-primary-photo-wrap,
    .incident-details-primary-photo,
    .incident-details-primary-initials {
        width: 55px;
        height: 55px;
        margin: 0;
        border-radius: 14px;
    }

    .incident-details-primary-copy {
        margin: 0;
    }

    .incident-details-case-link {
        color: #000000;
        border-color: #999999;
    }


    .incident-details-title-row {
        margin-top: 8px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
        gap: 10px;
    }

    .incident-details-table {
        width: 100%;
        min-width: 900px;
        border-collapse: collapse;
        border-spacing: 0;
    }

    .incident-details-remarks {
        display: block;
        min-width: 120px;
        max-width: 210px;
        color: var(--incident-details-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* ============================================================
   INCIDENT REPORT DETAILS - CANCEL WORKFLOW
   ============================================================ */

.incident-details-hidden {
    display: none !important;
}

/* ============================================================
   DANGER / CANCEL BUTTON
   ============================================================ */

.incident-details-button.danger {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

    .incident-details-button.danger:hover {
        transform: translateY(-2px);
        border-color: #ef4444;
        background: #fee2e2;
        color: #991b1b;
    }

    .incident-details-button.danger:focus-visible {
        outline: 3px solid rgba(239, 68, 68, 0.18);
        outline-offset: 2px;
    }

    .incident-details-button.danger:disabled {
        transform: none;
        border-color: #fecaca;
        background: #fff1f2;
        color: #ef4444;
        cursor: wait;
        opacity: 0.75;
    }

/* ============================================================
   CANCELLED STATUS BADGE
   ============================================================ */

.incident-details-status-cancelled {
    border-color: #fecaca;
    background: #fff1f2;
    color: #b91c1c;
}

    .incident-details-status-cancelled
    .incident-details-status-dot {
        background: #ef4444;
        box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
    }

/* ============================================================
   DETAILS ALERTS
   ============================================================ */

.incident-details-alert {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

    .incident-details-alert.success {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .incident-details-alert.error {
        border-color: #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.incident-details-alert-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 17px;
}

.incident-details-alert.success
.incident-details-alert-icon {
    background: #dcfce7;
    color: #15803d;
}

.incident-details-alert.error
.incident-details-alert-icon {
    background: #fee2e2;
    color: #dc2626;
}

.incident-details-alert-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

    .incident-details-alert-copy strong {
        color: inherit;
        font-size: 12px;
        font-weight: 950;
    }

    .incident-details-alert-copy span {
        color: inherit;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.5;
    }

.incident-details-alert-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

    .incident-details-alert-close:hover {
        transform: scale(1.05);
        background: rgba(15, 23, 42, 0.07);
    }

/* ============================================================
   CANCELLED REPORT BANNER
   ============================================================ */

.incident-details-cancelled-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    border: 1px solid #fecaca;
    border-radius: 18px;
    background: linear-gradient( 135deg, #fff1f2, #fff7ed );
    box-shadow: 0 10px 24px rgba(127, 29, 29, 0.06);
}

.incident-details-cancelled-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 19px;
    display: grid;
    place-items: center;
}

.incident-details-cancelled-banner > div:last-child {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.incident-details-cancelled-banner strong {
    color: #991b1b;
    font-size: 13px;
    font-weight: 950;
}

.incident-details-cancelled-banner span {
    max-width: 880px;
    color: #9f1239;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.55;
}

/* ============================================================
   CANCEL MODAL BODY LOCK
   ============================================================ */

body.incident-details-cancel-open {
    overflow: hidden;
}

/* ============================================================
   CANCEL MODAL OVERLAY
   ============================================================ */

.incident-details-cancel-overlay {
    position: fixed;
    inset: 0;
    z-index: 100100;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
}

    .incident-details-cancel-overlay.open {
        display: flex;
    }

/* ============================================================
   CANCEL MODAL DIALOG
   ============================================================ */

.incident-details-cancel-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface);
    box-shadow: 0 34px 100px rgba(15, 23, 42, 0.34);
    display: flex;
    flex-direction: column;
    animation: incidentDetailsCancelDialogIn 0.2s ease-out;
}

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

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

/* ============================================================
   CANCEL MODAL HEADER
   ============================================================ */

.incident-details-cancel-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--theme-border);
    background: linear-gradient( 180deg, var(--theme-surface), #fff7f7 );
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.incident-details-cancel-header-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.incident-details-cancel-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 14px;
    background: #fee2e2;
    color: #dc2626;
    font-size: 19px;
    display: grid;
    place-items: center;
}

.incident-details-cancel-header-copy > div:last-child {
    min-width: 0;
}

.incident-details-cancel-header-copy strong {
    display: block;
    color: var(--theme-text);
    font-size: 16px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.incident-details-cancel-header-copy span {
    display: block;
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 700;
}

.incident-details-cancel-close {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: #64748b;
    font-family: inherit;
    font-size: 15px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .incident-details-cancel-close:hover {
        transform: rotate(4deg);
        border-color: #ef4444;
        background: #fff1f2;
        color: #b91c1c;
    }

/* ============================================================
   CANCEL MODAL FORM
   ============================================================ */

#cancelIncidentReportForm {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.incident-details-cancel-body {
    min-height: 0;
    padding: 20px;
    overflow-y: auto;
    display: grid;
    gap: 18px;
}

/* ============================================================
   CANCEL WARNING
   ============================================================ */

.incident-details-cancel-warning {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 12px;
    padding: 14px 15px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    background: #fff7ed;
    color: #9a3412;
}

    .incident-details-cancel-warning > i {
        margin-top: 1px;
        color: #ea580c;
        font-size: 18px;
    }

    .incident-details-cancel-warning > div {
        min-width: 0;
        display: grid;
        gap: 4px;
    }

    .incident-details-cancel-warning strong {
        color: #9a3412;
        font-size: 12px;
        font-weight: 950;
    }

    .incident-details-cancel-warning span {
        color: #9a3412;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.55;
    }

/* ============================================================
   CANCELLATION REASON FIELD
   ============================================================ */

.incident-details-cancel-field {
    display: grid;
    gap: 8px;
}

    .incident-details-cancel-field label {
        color: #334155;
        font-size: 11px;
        font-weight: 900;
    }

        .incident-details-cancel-field label span {
            color: #dc2626;
        }

    .incident-details-cancel-field textarea {
        width: 100%;
        min-height: 130px;
        padding: 13px 14px;
        border: 1px solid var(--theme-border);
        border-radius: 15px;
        outline: none;
        background: #f8fafc;
        color: var(--theme-text);
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.55;
        resize: vertical;
        transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    }

        .incident-details-cancel-field textarea::placeholder {
            color: #94a3b8;
            font-weight: 650;
        }

        .incident-details-cancel-field textarea:focus {
            border-color: #ef4444;
            background: var(--theme-surface);
            box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.11);
        }

        .incident-details-cancel-field
        textarea[aria-invalid="true"] {
            border-color: #dc2626;
            background: #fff1f2;
            box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
        }

.incident-details-cancel-field-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .incident-details-cancel-field-meta > span {
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

    .incident-details-cancel-field-meta strong {
        flex-shrink: 0;
        color: #64748b;
        font-size: 10px;
        font-weight: 900;
    }

.incident-details-cancel-error {
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
}

    .incident-details-cancel-error[hidden] {
        display: none;
    }

/* ============================================================
   CANCEL MODAL ACTIONS
   ============================================================ */

.incident-details-cancel-actions {
    padding: 15px 20px;
    border-top: 1px solid var(--theme-border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

    .incident-details-cancel-actions
    .incident-details-button {
        min-width: 130px;
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 760px) {
    .incident-details-alert {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .incident-details-alert-close {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .incident-details-cancelled-banner {
        grid-template-columns: 1fr;
    }

    .incident-details-cancel-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .incident-details-cancel-dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        border-radius: 22px 22px 14px 14px;
    }

    .incident-details-cancel-header {
        padding: 16px;
    }

    .incident-details-cancel-body {
        padding: 16px;
    }

    .incident-details-cancel-actions {
        padding: 14px 16px;
        flex-direction: column-reverse;
    }

        .incident-details-cancel-actions
        .incident-details-button {
            width: 100%;
            min-width: 0;
        }
}

@media (max-width: 520px) {
    .incident-details-cancel-header-copy {
        align-items: flex-start;
    }

    .incident-details-cancel-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 13px;
        font-size: 17px;
    }

    .incident-details-cancel-header-copy strong {
        font-size: 14px;
    }

    .incident-details-cancel-warning {
        grid-template-columns: 1fr;
    }

    .incident-details-cancel-field-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .incident-details-hero-actions,
    .incident-details-alert,
    .incident-details-cancel-overlay,
    .incident-details-cancel-actions,
    #openIncidentCancelModalButton {
        display: none !important;
    }

    body.incident-details-cancel-open {
        overflow: visible;
    }

    .incident-details-cancelled-banner {
        box-shadow: none;
        break-inside: avoid;
    }
}


/* ============================================================
   INCIDENT REPORT STATUS WORKFLOW
   ============================================================ */

.incident-workflow-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}

.incident-workflow-header {
    padding: 17px 18px;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.incident-workflow-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.incident-workflow-heading-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 13px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary);
    display: grid;
    place-items: center;
    font-size: 17px;
}

.incident-workflow-heading strong {
    display: block;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 950;
}

.incident-workflow-heading span {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
}

.incident-workflow-progress {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.incident-workflow-step,
.incident-workflow-terminal {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.incident-workflow-step-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 11px;
    background: #e2e8f0;
    color: #64748b;
    display: grid;
    place-items: center;
}

.incident-workflow-step span,
.incident-workflow-terminal span {
    display: block;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.incident-workflow-step strong,
.incident-workflow-terminal strong {
    display: block;
    margin-top: 2px;
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 900;
}

.incident-workflow-step.current {
    border-color: var(--theme-primary);
    background: var(--theme-primary-soft);
}

    .incident-workflow-step.current
    .incident-workflow-step-icon {
        background: var(--theme-primary);
        color: #ffffff;
    }

.incident-workflow-step.completed {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

    .incident-workflow-step.completed
    .incident-workflow-step-icon {
        background: #dcfce7;
        color: #15803d;
    }

.incident-workflow-terminal {
    grid-column: 1 / -1;
}

    .incident-workflow-terminal > i {
        font-size: 19px;
    }

    .incident-workflow-terminal.converted {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .incident-workflow-terminal.closed {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #15803d;
    }

    .incident-workflow-terminal.cancelled {
        border-color: #fecaca;
        background: #fff1f2;
        color: #dc2626;
    }

.incident-workflow-next-action {
    margin: 0 18px 18px;
    padding: 13px 15px;
    border: 1px dashed var(--theme-primary);
    border-radius: 15px;
    background: var(--theme-primary-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .incident-workflow-next-action span {
        display: block;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .incident-workflow-next-action strong {
        display: block;
        color: var(--theme-primary-text);
        font-size: 12px;
        font-weight: 950;
    }

    .incident-workflow-next-action small {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 700;
    }

.incident-workflow-history-count {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 11px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary);
    font-size: 11px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.incident-workflow-history {
    padding: 18px;
    display: grid;
}

.incident-workflow-history-item {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 11px;
    padding-bottom: 18px;
}

    .incident-workflow-history-item:not(:last-child)::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 18px;
        bottom: 0;
        width: 2px;
        background: var(--theme-border);
    }

.incident-workflow-history-marker {
    position: relative;
    z-index: 1;
    color: var(--theme-primary);
    font-size: 13px;
}

.incident-workflow-history-content {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: #f8fafc;
}

.incident-workflow-history-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--theme-text);
    font-size: 11px;
}

    .incident-workflow-history-title strong {
        font-weight: 900;
    }

    .incident-workflow-history-title i {
        color: var(--theme-muted);
    }

.incident-workflow-history-content p {
    margin: 7px 0 0;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.55;
    white-space: pre-wrap;
}

.incident-workflow-history-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 750;
}

    .incident-workflow-history-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

.incident-workflow-empty {
    padding: 34px 18px;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 5px;
}

    .incident-workflow-empty > i {
        color: #94a3b8;
        font-size: 26px;
    }

    .incident-workflow-empty strong {
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 900;
    }

    .incident-workflow-empty span {
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 700;
    }

/* Modal */

body.incident-workflow-open {
    overflow: hidden;
}

.incident-workflow-overlay {
    position: fixed;
    inset: 0;
    z-index: 100110;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
}

    .incident-workflow-overlay.open {
        display: flex;
    }

.incident-workflow-dialog {
    width: min(600px, 100%);
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 34px 100px rgba(15, 23, 42, 0.34);
}

.incident-workflow-dialog-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--theme-border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

    .incident-workflow-dialog-header > div {
        display: flex;
        align-items: center;
        gap: 11px;
    }

        .incident-workflow-dialog-header > div > i {
            width: 42px;
            height: 42px;
            border-radius: 13px;
            background: var(--theme-primary-soft);
            color: var(--theme-primary);
            font-size: 17px;
            display: grid;
            place-items: center;
        }

    .incident-workflow-dialog-header strong {
        display: block;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

    .incident-workflow-dialog-header span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 750;
    }

.incident-workflow-close {
    width: 37px;
    height: 37px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: #64748b;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.incident-workflow-dialog-body {
    padding: 20px;
    display: grid;
    gap: 17px;
}

.incident-workflow-confirmation {
    padding: 13px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 14px;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

    .incident-workflow-confirmation > i {
        font-size: 17px;
    }

    .incident-workflow-confirmation strong {
        display: block;
        font-size: 11px;
        font-weight: 900;
    }

    .incident-workflow-confirmation span {
        display: block;
        margin-top: 3px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.5;
    }

.incident-workflow-field {
    display: grid;
    gap: 8px;
}

    .incident-workflow-field label {
        color: #334155;
        font-size: 11px;
        font-weight: 900;
    }

        .incident-workflow-field label span {
            color: #dc2626;
        }

    .incident-workflow-field textarea {
        width: 100%;
        min-height: 115px;
        padding: 13px 14px;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
        outline: none;
        background: #f8fafc;
        color: var(--theme-text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.55;
        resize: vertical;
    }

        .incident-workflow-field textarea:focus {
            border-color: var(--theme-primary);
            background: var(--theme-surface);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

        .incident-workflow-field
        textarea[aria-invalid="true"] {
            border-color: #dc2626;
            background: #fff1f2;
        }

.incident-workflow-field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 700;
}

.incident-workflow-error {
    padding: 9px 11px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fff1f2;
    color: #b91c1c;
    font-size: 10px;
    font-weight: 800;
}

    .incident-workflow-error[hidden] {
        display: none;
    }

.incident-workflow-dialog-actions {
    padding: 14px 20px;
    border-top: 1px solid var(--theme-border);
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

@media (max-width: 800px) {
    .incident-workflow-progress {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .incident-workflow-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .incident-workflow-header
        .incident-details-button {
            width: 100%;
        }
}

@media (max-width: 520px) {
    .incident-workflow-progress {
        grid-template-columns: 1fr;
    }

    .incident-workflow-overlay {
        padding: 12px;
        align-items: flex-end;
    }

    .incident-workflow-dialog {
        max-height: calc(100vh - 24px);
        border-radius: 20px 20px 12px 12px;
    }

    .incident-workflow-dialog-actions {
        flex-direction: column-reverse;
    }

        .incident-workflow-dialog-actions
        .incident-details-button {
            width: 100%;
        }

    .incident-workflow-field-meta {
        flex-direction: column;
        gap: 4px;
    }
}

@media print {
    .incident-workflow-header
    .incident-details-button,
    .incident-workflow-overlay,
    .incident-workflow-next-action {
        display: none !important;
    }

    .incident-workflow-card {
        box-shadow: none;
        break-inside: avoid;
    }
}

/* ============================================================
   DISCIPLINE CASES LIST
   ============================================================ */

.discipline-list-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 32px;
}

    .discipline-list-page,
    .discipline-list-page * {
        box-sizing: border-box;
    }

/* ============================================================
   HERO
   ============================================================ */

.discipline-list-hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 15%, transparent ), transparent 36% ), linear-gradient( 180deg, var(--theme-surface) 0%, color-mix( in srgb, var(--theme-bg) 88%, var(--theme-surface) ) 100% );
    box-shadow: var(--theme-shadow);
}

    .discipline-list-hero::after {
        position: absolute;
        top: -64px;
        right: -46px;
        width: 180px;
        height: 180px;
        border: 26px solid color-mix( in srgb, var(--theme-primary) 8%, transparent );
        border-radius: 50%;
        content: "";
        pointer-events: none;
    }

.discipline-list-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.discipline-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discipline-list-hero h2 {
    margin: 0;
    color: var(--theme-text);
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.discipline-list-hero p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--theme-muted);
    font-size: 14px;
    line-height: 1.65;
}

.discipline-list-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.discipline-list-button,
.discipline-list-view-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

    .discipline-list-button:hover,
    .discipline-list-view-button:hover {
        border-color: color-mix( in srgb, var(--theme-primary) 45%, var(--theme-border) );
        color: var(--theme-primary-dark);
        transform: translateY(-1px);
    }

    .discipline-list-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: var(--theme-primary-text);
        box-shadow: 0 10px 22px color-mix( in srgb, var(--theme-primary) 22%, transparent );
    }

        .discipline-list-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: var(--theme-primary-text);
        }

.discipline-list-view-button {
    min-height: 36px;
    padding: 8px 12px;
    border-color: color-mix( in srgb, var(--theme-primary) 28%, var(--theme-border) );
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 12px;
}

    .discipline-list-view-button:hover {
        border-color: var(--theme-primary);
        background: color-mix( in srgb, var(--theme-primary) 16%, var(--theme-surface) );
    }

    .discipline-list-view-button.full {
        width: 100%;
    }

/* ============================================================
   ALERTS
   ============================================================ */

.discipline-list-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface);
}

    .discipline-list-alert.success {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .discipline-list-alert.error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

.discipline-list-alert-icon {
    font-size: 20px;
}

.discipline-list-alert-copy {
    display: grid;
    gap: 3px;
}

    .discipline-list-alert-copy strong {
        font-size: 13px;
        font-weight: 850;
    }

    .discipline-list-alert-copy span,
    .discipline-list-alert-copy li {
        font-size: 12px;
        line-height: 1.5;
    }

    .discipline-list-alert-copy ul {
        margin: 4px 0 0;
        padding-left: 18px;
    }

.discipline-list-alert-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* ============================================================
   SUMMARY
   ============================================================ */

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

.discipline-list-summary-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 112px;
    padding: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    background: var(--theme-surface);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
}

    .discipline-list-summary-card.primary {
        border-color: color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
        background: linear-gradient( 135deg, var(--theme-surface), var(--theme-primary-soft) );
    }

.discipline-list-summary-icon {
    display: grid;
    place-items: center;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    border-radius: 15px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 20px;
}

.discipline-list-summary-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

    .discipline-list-summary-copy span {
        color: var(--theme-muted);
        font-size: 11px;
        font-weight: 750;
    }

    .discipline-list-summary-copy strong {
        color: var(--theme-text);
        font-size: 24px;
        font-weight: 900;
        line-height: 1.1;
    }

    .discipline-list-summary-copy small {
        overflow: hidden;
        color: var(--theme-muted);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ============================================================
   CARDS
   ============================================================ */

.discipline-list-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.discipline-list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
}

.discipline-list-card-heading {
    display: grid;
    gap: 4px;
    min-width: 0;
}

    .discipline-list-card-heading strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 14px;
        font-weight: 850;
    }

        .discipline-list-card-heading strong i {
            color: var(--theme-primary);
        }

    .discipline-list-card-heading span {
        color: var(--theme-muted);
        font-size: 12px;
        line-height: 1.45;
    }

.discipline-list-card-body {
    padding: 19px;
}

/* ============================================================
   FILTERS
   ============================================================ */

.discipline-list-filter-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.discipline-list-active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.discipline-list-filter-toggle,
.discipline-list-record-count {
    display: grid;
    place-items: center;
    min-width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-bg);
    color: var(--theme-muted);
}

.discipline-list-filter-toggle {
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

    .discipline-list-filter-toggle:hover,
    .discipline-list-filter-toggle.is-collapsed {
        border-color: color-mix( in srgb, var(--theme-primary) 40%, var(--theme-border) );
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

.discipline-list-record-count {
    display: flex;
    min-width: auto;
    padding: 0 12px;
    gap: 7px;
    color: var(--theme-primary-dark);
}

.discipline-list-filter-collapsed {
    display: none;
}

.discipline-list-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.8fr) minmax(170px, 1fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
    gap: 13px;
}

.discipline-list-field {
    min-width: 0;
}

    .discipline-list-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 800;
    }

    .discipline-list-field input,
    .discipline-list-field select {
        width: 100%;
        min-height: 43px;
        padding: 10px 12px;
        border: 1px solid var(--theme-border);
        border-radius: 12px;
        outline: 0;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 12px;
        transition: border-color 0.16s ease, box-shadow 0.16s ease;
    }

        .discipline-list-field input:focus,
        .discipline-list-field select:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 15%, transparent );
        }

.discipline-list-input-icon {
    position: relative;
}

    .discipline-list-input-icon > i {
        position: absolute;
        top: 50%;
        left: 13px;
        color: var(--theme-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

    .discipline-list-input-icon input {
        padding-left: 38px;
    }

.discipline-list-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
}

/* ============================================================
   TABLE
   ============================================================ */

.discipline-list-table-wrapper {
    overflow-x: auto;
}

.discipline-list-table {
    width: 100%;
    min-width: 1380px;
    border-collapse: collapse;
}

    .discipline-list-table th {
        padding: 12px 14px;
        border-bottom: 1px solid var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 78%, var(--theme-surface) );
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 850;
        letter-spacing: 0.045em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .discipline-list-table td {
        padding: 14px;
        border-bottom: 1px solid color-mix( in srgb, var(--theme-border) 72%, transparent );
        color: var(--theme-text);
        font-size: 12px;
        vertical-align: middle;
    }

    .discipline-list-table tbody tr {
        transition: background-color 0.14s ease;
    }

        .discipline-list-table tbody tr:hover {
            background: color-mix( in srgb, var(--theme-primary-soft) 46%, transparent );
        }

        .discipline-list-table tbody tr:last-child td {
            border-bottom: 0;
        }

.discipline-list-center {
    text-align: center !important;
}

.discipline-list-action-column {
    text-align: right !important;
}

/* ============================================================
   RECORD CONTENT
   ============================================================ */

.discipline-list-reference {
    display: grid;
    gap: 4px;
    min-width: 205px;
}

    .discipline-list-reference strong {
        color: var(--theme-primary-dark);
        font-size: 12px;
        font-weight: 850;
    }

    .discipline-list-reference span {
        max-width: 250px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.discipline-list-student {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.discipline-list-student-photo-wrap {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--theme-primary-soft);
}

.discipline-list-student-photo,
.discipline-list-student-initials {
    width: 100%;
    height: 100%;
}

.discipline-list-student-photo {
    display: block;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 20%, var(--theme-border) );
    border-radius: 50%;
    object-fit: cover;
}

.discipline-list-student-initials {
    display: grid;
    place-items: center;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 20%, var(--theme-border) );
    border-radius: 50%;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 850;
}

.discipline-list-student-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

    .discipline-list-student-info strong {
        max-width: 190px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 800;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .discipline-list-student-info span,
    .discipline-list-student-info small {
        color: var(--theme-muted);
        font-size: 10px;
    }

.discipline-list-date,
.discipline-list-created-by {
    display: grid;
    gap: 3px;
    white-space: nowrap;
}

    .discipline-list-date strong,
    .discipline-list-created-by strong {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 750;
    }

    .discipline-list-date span,
    .discipline-list-created-by span {
        color: var(--theme-muted);
        font-size: 10px;
    }

.discipline-list-assigned {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 190px;
    color: var(--theme-text);
}

    .discipline-list-assigned i {
        color: var(--theme-primary);
    }

    .discipline-list-assigned span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.discipline-list-source-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-primary-dark);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

    .discipline-list-source-link:hover {
        color: var(--theme-primary);
        text-decoration: underline;
    }

.discipline-list-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-text);
}

    .discipline-list-count i {
        color: var(--theme-primary);
    }

.discipline-list-muted {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--theme-muted);
    font-size: 11px;
}

/* ============================================================
   STATUS
   ============================================================ */

.discipline-list-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.discipline-list-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.discipline-list-status-draft {
    border-color: color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
}

.discipline-list-status-open {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.discipline-list-status-review {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.discipline-list-status-resolution {
    border-color: #fde68a;
    background: #fffbeb;
    color: #a16207;
}

.discipline-list-status-resolved {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.discipline-list-status-closed {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.discipline-list-status-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.discipline-list-status-default {
    border-color: var(--theme-border);
    background: var(--theme-bg);
    color: var(--theme-muted);
}

/* ============================================================
   MOBILE CARDS
   ============================================================ */

.discipline-list-mobile-grid {
    display: none;
}

.discipline-list-mobile-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
}

.discipline-list-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.discipline-list-mobile-title {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.45;
}

.discipline-list-mobile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    padding: 13px;
    border-radius: 14px;
    background: color-mix( in srgb, var(--theme-bg) 82%, var(--theme-surface) );
}

    .discipline-list-mobile-details > div {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .discipline-list-mobile-details span {
        color: var(--theme-muted);
        font-size: 10px;
    }

    .discipline-list-mobile-details strong {
        overflow-wrap: anywhere;
        color: var(--theme-text);
        font-size: 11px;
    }

    .discipline-list-mobile-details a {
        color: var(--theme-primary-dark);
        text-decoration: none;
    }

/* ============================================================
   EMPTY STATE
   ============================================================ */

.discipline-list-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 18px;
    text-align: center;
}

.discipline-list-empty-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 14px;
    border-radius: 20px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 28px;
}

.discipline-list-empty-state > strong {
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 850;
}

.discipline-list-empty-state > p {
    max-width: 500px;
    margin: 7px 0 18px;
    color: var(--theme-muted);
    font-size: 12px;
    line-height: 1.6;
}

.discipline-list-empty-actions {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.discipline-list-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

    .discipline-list-field-search {
        grid-column: span 2;
    }
}

@media (max-width: 991.98px) {
    .discipline-list-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discipline-list-table-wrapper {
        display: none;
    }

    .discipline-list-mobile-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 15px;
    }
}

@media (max-width: 767.98px) {
    .discipline-list-hero {
        flex-direction: column;
        padding: 21px;
        border-radius: 22px;
    }

    .discipline-list-hero-actions,
    .discipline-list-hero-actions .discipline-list-button {
        width: 100%;
    }

    .discipline-list-filter-grid {
        grid-template-columns: 1fr;
    }

    .discipline-list-field-search {
        grid-column: auto;
    }

    .discipline-list-filter-actions {
        flex-direction: column;
    }

        .discipline-list-filter-actions .discipline-list-button {
            width: 100%;
        }

    .discipline-list-card-header {
        align-items: flex-start;
    }

    .discipline-list-filter-header-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .discipline-list-mobile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .discipline-list-summary-grid {
        grid-template-columns: 1fr;
    }

    .discipline-list-summary-card {
        min-height: 100px;
    }

    .discipline-list-active-filter-badge {
        display: none;
    }

    .discipline-list-mobile-card-header {
        flex-direction: column;
    }

    .discipline-list-mobile-details {
        grid-template-columns: 1fr;
    }

    .discipline-list-empty-actions {
        width: 100%;
        flex-direction: column;
    }

        .discipline-list-empty-actions .discipline-list-button {
            width: 100%;
        }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .discipline-list-hero-actions,
    .discipline-list-filter-card,
    .discipline-list-action-column,
    .discipline-list-view-button,
    .discipline-list-alert-close {
        display: none !important;
    }

    .discipline-list-page {
        gap: 12px;
    }

    .discipline-list-hero,
    .discipline-list-card,
    .discipline-list-summary-card {
        box-shadow: none;
    }

    .discipline-list-table-wrapper {
        display: block;
        overflow: visible;
    }

    .discipline-list-table {
        min-width: 0;
        font-size: 9px;
    }

    .discipline-list-mobile-grid {
        display: none;
    }
}


/* ============================================================
   DISCIPLINE CASE EDIT
   ============================================================ */

.discipline-edit-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 34px;
}

    .discipline-edit-page,
    .discipline-edit-page * {
        box-sizing: border-box;
    }

/* HERO */

.discipline-edit-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 14%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 88%, var(--theme-surface) ) );
    box-shadow: var(--theme-shadow);
}

.discipline-edit-hero-copy {
    max-width: 760px;
}

.discipline-edit-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discipline-edit-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.discipline-edit-reference {
    display: block;
    margin-bottom: 4px;
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 850;
}

.discipline-edit-title-row h2 {
    margin: 0;
    color: var(--theme-text);
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.discipline-edit-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--theme-muted);
    font-size: 14px;
    line-height: 1.65;
}

.discipline-edit-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* STATUS */

.discipline-edit-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    padding: 7px 11px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.discipline-edit-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

/* BUTTONS */

.discipline-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

    .discipline-edit-button:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary-dark);
        transform: translateY(-1px);
    }

    .discipline-edit-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: var(--theme-primary-text);
    }

        .discipline-edit-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: var(--theme-primary-text);
        }

    .discipline-edit-button:disabled {
        cursor: not-allowed;
        opacity: 0.7;
        transform: none;
    }

/* VALIDATION */

.discipline-edit-validation-summary {
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
}

    .discipline-edit-validation-summary:empty {
        display: none;
    }

    .discipline-edit-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

/* CARDS */

.discipline-edit-card {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.discipline-edit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--theme-border);
}

.discipline-edit-card-heading {
    display: grid;
    gap: 4px;
}

    .discipline-edit-card-heading strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 14px;
        font-weight: 850;
    }

        .discipline-edit-card-heading strong i {
            color: var(--theme-primary);
        }

    .discipline-edit-card-heading span {
        color: var(--theme-muted);
        font-size: 12px;
        line-height: 1.5;
    }

.discipline-edit-card-body {
    padding: 20px;
}

.discipline-edit-record-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 12px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-bg);
    color: var(--theme-primary-dark);
}

/* FORM */

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

.discipline-edit-field {
    min-width: 0;
}

    .discipline-edit-field.full {
        grid-column: 1 / -1;
    }

    .discipline-edit-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 800;
    }

        .discipline-edit-field label > span {
            color: #dc2626;
        }

    .discipline-edit-field input,
    .discipline-edit-field select,
    .discipline-edit-field textarea {
        width: 100%;
        min-height: 44px;
        padding: 11px 13px;
        border: 1px solid var(--theme-border);
        border-radius: 12px;
        outline: 0;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 12px;
        transition: border-color 0.16s ease, box-shadow 0.16s ease;
    }

    .discipline-edit-field textarea {
        min-height: 96px;
        line-height: 1.6;
        resize: vertical;
    }

        .discipline-edit-field input:focus,
        .discipline-edit-field select:focus,
        .discipline-edit-field textarea:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 15%, transparent );
        }

.discipline-edit-field-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: #dc2626;
    font-size: 10px;
}

/* STUDENTS */

.discipline-edit-student-list {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.discipline-edit-student-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: color-mix( in srgb, var(--theme-bg) 52%, var(--theme-surface) );
}

.discipline-edit-student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.discipline-edit-student {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.discipline-edit-student-photo-wrap {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--theme-primary-soft);
}

.discipline-edit-student-photo,
.discipline-edit-student-initials {
    width: 100%;
    height: 100%;
}

.discipline-edit-student-photo {
    display: block;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 50%;
    object-fit: cover;
}

.discipline-edit-student-initials {
    display: grid;
    place-items: center;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 50%;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.discipline-edit-student-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.discipline-edit-student-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discipline-edit-student-copy strong {
    overflow: hidden;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discipline-edit-student-copy span,
.discipline-edit-student-copy small {
    color: var(--theme-muted);
    font-size: 10px;
}

.discipline-edit-primary-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.discipline-edit-involvement {
    display: grid;
    gap: 3px;
    text-align: right;
}

    .discipline-edit-involvement span {
        color: var(--theme-muted);
        font-size: 10px;
    }

    .discipline-edit-involvement strong {
        color: var(--theme-text);
        font-size: 11px;
    }

.discipline-edit-student-form-grid {
    padding: 18px;
}

/* ACTIONS */

.discipline-edit-actions {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 18px;
    background: color-mix( in srgb, var(--theme-surface) 94%, transparent );
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.discipline-edit-actions-copy {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--theme-muted);
    font-size: 11px;
}

    .discipline-edit-actions-copy i {
        color: var(--theme-primary);
    }

.discipline-edit-actions-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
}

.discipline-edit-hidden {
    display: none !important;
}

/* RESPONSIVE */

@media (max-width: 991.98px) {
    .discipline-edit-hero {
        flex-direction: column;
    }

    .discipline-edit-title-row {
        flex-direction: column;
    }

    .discipline-edit-actions {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .discipline-edit-hero {
        padding: 21px;
        border-radius: 22px;
    }

    .discipline-edit-hero-actions,
    .discipline-edit-hero-actions .discipline-edit-button {
        width: 100%;
    }

    .discipline-edit-hero-actions {
        flex-direction: column;
    }

    .discipline-edit-form-grid,
    .discipline-edit-student-form-grid {
        grid-template-columns: 1fr;
    }

    .discipline-edit-field.full {
        grid-column: auto;
    }

    .discipline-edit-student-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .discipline-edit-involvement {
        text-align: left;
    }

    .discipline-edit-actions {
        align-items: stretch;
        flex-direction: column;
    }

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

        .discipline-edit-actions-buttons,
        .discipline-edit-actions-buttons .discipline-edit-button {
            width: 100%;
        }
}

@media (max-width: 575.98px) {
    .discipline-edit-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .discipline-edit-student-name-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ============================================================
   DISCIPLINE CASE DETAILS
   ============================================================ */

.discipline-case-details-page .incident-details-hero {
    overflow: visible;
    z-index: 20;
}

    /* Remove the decorative hero circle/ring */
    .discipline-case-details-page .incident-details-hero::before,
    .discipline-case-details-page .incident-details-hero::after {
        display: none !important;
        content: none !important;
    }

.discipline-case-details-page .incident-details-layout,
.discipline-case-details-page .incident-details-summary-grid {
    position: relative;
    z-index: 1;
}

/* ============================================================
   HERO ACTIONS
   ============================================================ */

.discipline-case-hero-actions {
    position: relative;
    align-items: center;
}

.discipline-case-primary-action {
    min-width: 138px;
}

.discipline-case-action-menu {
    position: relative;
}

.discipline-case-more-button {
    min-width: 146px;
}

.discipline-case-more-chevron {
    margin-left: 2px;
    font-size: 10px;
    transition: transform 0.18s ease;
}

.discipline-case-more-button.is-open
.discipline-case-more-chevron {
    transform: rotate(180deg);
}

.discipline-case-back-button {
    min-width: 88px;
    padding-inline: 13px;
}

/* ============================================================
   ACTION DROPDOWN
   ============================================================ */

.discipline-case-action-menu-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 100;
    width: 310px;
    overflow: hidden;
    padding: 7px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
}

    .discipline-case-action-menu-panel[hidden] {
        display: none;
    }

.discipline-case-menu-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 11px;
    outline: 0;
    background: transparent;
    color: var(--theme-text);
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

    .discipline-case-menu-item:hover,
    .discipline-case-menu-item:focus-visible {
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .discipline-case-menu-item:focus-visible {
        box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 16%, transparent );
    }

    .discipline-case-menu-item > i {
        display: grid;
        place-items: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: var(--theme-bg);
        color: var(--theme-primary-dark);
        font-size: 15px;
    }

    .discipline-case-menu-item > span {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .discipline-case-menu-item strong {
        color: inherit;
        font-size: 12px;
        font-weight: 850;
    }

    .discipline-case-menu-item small {
        color: var(--theme-muted);
        font-size: 10px;
        line-height: 1.4;
    }

    .discipline-case-menu-item.danger {
        color: #b91c1c;
    }

        .discipline-case-menu-item.danger:hover,
        .discipline-case-menu-item.danger:focus-visible {
            background: #fef2f2;
            color: #b91c1c;
        }

        .discipline-case-menu-item.danger > i {
            background: #fef2f2;
            color: #dc2626;
        }

.discipline-case-menu-divider {
    height: 1px;
    margin: 6px 4px;
    background: var(--theme-border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1199.98px) {
    .discipline-case-hero-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 991.98px) {
    .discipline-case-details-page .incident-details-hero {
        z-index: 30;
    }

    .discipline-case-action-menu-panel {
        right: 0;
    }
}

@media (max-width: 767.98px) {
    .discipline-case-hero-actions,
    .discipline-case-primary-action,
    .discipline-case-action-menu,
    .discipline-case-more-button,
    .discipline-case-back-button {
        width: 100%;
    }

    .discipline-case-action-menu-panel {
        right: auto;
        left: 0;
        width: 100%;
    }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    .discipline-case-hero-actions,
    .discipline-case-action-menu-panel {
        display: none !important;
    }
}


/* ============================================================
   DISCIPLINE CASE CREATE
   ============================================================ */

.discipline-create-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 34px;
}

    .discipline-create-page,
    .discipline-create-page * {
        box-sizing: border-box;
    }

/* ============================================================
   HERO
   ============================================================ */

.discipline-create-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border: 1px solid var(--theme-border);
    border-radius: 28px;
    background: linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 88%, var(--theme-surface) ) );
    box-shadow: var(--theme-shadow);
}

.discipline-create-hero-copy {
    max-width: 760px;
}

.discipline-create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.discipline-create-hero h2 {
    margin: 0;
    color: var(--theme-text);
    font-size: clamp(26px, 3vw, 35px);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.discipline-create-hero p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--theme-muted);
    font-size: 14px;
    line-height: 1.65;
}

.discipline-create-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.discipline-create-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

    .discipline-create-button:hover {
        border-color: var(--theme-primary);
        color: var(--theme-primary-dark);
        transform: translateY(-1px);
    }

    .discipline-create-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: var(--theme-primary-text);
        box-shadow: 0 10px 22px color-mix( in srgb, var(--theme-primary) 22%, transparent );
    }

        .discipline-create-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: var(--theme-primary-text);
        }

    .discipline-create-button:disabled {
        cursor: not-allowed;
        opacity: 0.7;
        transform: none;
    }

/* ============================================================
   VALIDATION AND ALERTS
   ============================================================ */

.discipline-create-validation-summary {
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
}

    .discipline-create-validation-summary:empty {
        display: none;
    }

    .discipline-create-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.discipline-create-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: var(--theme-surface);
}

    .discipline-create-alert.error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

.discipline-create-alert-icon {
    font-size: 20px;
}

.discipline-create-alert-copy {
    display: grid;
    gap: 3px;
}

    .discipline-create-alert-copy strong {
        font-size: 13px;
        font-weight: 850;
    }

    .discipline-create-alert-copy span {
        font-size: 12px;
        line-height: 1.5;
    }

.discipline-create-alert-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* ============================================================
   CARDS
   ============================================================ */

.discipline-create-card {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
}

.discipline-create-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--theme-border);
}

.discipline-create-card-heading {
    display: grid;
    gap: 4px;
}

    .discipline-create-card-heading strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 14px;
        font-weight: 850;
    }

        .discipline-create-card-heading strong i {
            color: var(--theme-primary);
        }

    .discipline-create-card-heading span {
        color: var(--theme-muted);
        font-size: 12px;
        line-height: 1.5;
    }

.discipline-create-card-body {
    padding: 20px;
}

.discipline-create-draft-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 850;
}

.discipline-create-draft-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.discipline-create-record-count {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 39px;
    padding: 0 12px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-bg);
    color: var(--theme-primary-dark);
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

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

.discipline-create-field {
    min-width: 0;
}

    .discipline-create-field.full {
        grid-column: 1 / -1;
    }

    .discipline-create-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 800;
    }

        .discipline-create-field label > span {
            color: #dc2626;
        }

    .discipline-create-field input,
    .discipline-create-field select,
    .discipline-create-field textarea {
        width: 100%;
        min-height: 44px;
        padding: 11px 13px;
        border: 1px solid var(--theme-border);
        border-radius: 12px;
        outline: 0;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 12px;
        transition: border-color 0.16s ease, box-shadow 0.16s ease;
    }

    .discipline-create-field textarea {
        min-height: 96px;
        line-height: 1.6;
        resize: vertical;
    }

        .discipline-create-field input:focus,
        .discipline-create-field select:focus,
        .discipline-create-field textarea:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 15%, transparent );
        }

.discipline-create-field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    color: var(--theme-muted);
    font-size: 10px;
}

    .discipline-create-field-meta strong {
        white-space: nowrap;
    }

.discipline-create-field-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: #dc2626;
    font-size: 10px;
}

/* ============================================================
   STUDENT SEARCH
   ============================================================ */

.discipline-create-search {
    position: relative;
    max-width: 900px;
}

.discipline-create-search-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 800;
}

.discipline-create-search-input {
    position: relative;
}

    .discipline-create-search-input > i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: var(--theme-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

    .discipline-create-search-input input {
        width: 100%;
        min-height: 46px;
        padding: 11px 45px 11px 41px;
        border: 1px solid var(--theme-border);
        border-radius: 13px;
        outline: 0;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 12px;
    }

        .discipline-create-search-input input:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 15%, transparent );
        }

.discipline-create-search-clear {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--theme-muted);
    cursor: pointer;
    transform: translateY(-50%);
}

    .discipline-create-search-clear:hover {
        background: var(--theme-bg);
        color: var(--theme-text);
    }

.discipline-create-search-status {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    margin-top: 7px;
    color: var(--theme-muted);
    font-size: 11px;
}

.discipline-create-search-results {
    display: grid;
    gap: 5px;
    max-height: 360px;
    margin-top: 7px;
    overflow-y: auto;
    padding: 7px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.discipline-create-search-result {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--theme-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}

    .discipline-create-search-result:hover:not(:disabled) {
        background: var(--theme-primary-soft);
    }

    .discipline-create-search-result:disabled {
        cursor: default;
        opacity: 0.65;
    }

.discipline-create-result-photo-wrap {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--theme-primary-soft);
}

.discipline-create-result-photo,
.discipline-create-result-initials {
    width: 100%;
    height: 100%;
}

.discipline-create-result-photo {
    display: block;
    object-fit: cover;
}

.discipline-create-result-initials {
    display: grid;
    place-items: center;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 850;
}

.discipline-create-result-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

    .discipline-create-result-copy strong {
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .discipline-create-result-copy span,
    .discipline-create-result-copy small {
        color: var(--theme-muted);
        font-size: 10px;
    }

.discipline-create-result-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--theme-primary-dark);
    font-size: 10px;
    font-weight: 800;
}

/* ============================================================
   SELECTED STUDENTS
   ============================================================ */

.discipline-create-student-list {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.discipline-create-student-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: color-mix( in srgb, var(--theme-bg) 52%, var(--theme-surface) );
}

.discipline-create-student-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.discipline-create-student {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.discipline-create-student-photo-wrap {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--theme-primary-soft);
}

.discipline-create-student-photo,
.discipline-create-student-initials {
    width: 100%;
    height: 100%;
}

.discipline-create-student-photo {
    display: block;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 50%;
    object-fit: cover;
}

.discipline-create-student-initials {
    display: grid;
    place-items: center;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 50%;
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.discipline-create-student-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.discipline-create-student-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discipline-create-student-copy strong {
    overflow: hidden;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discipline-create-student-copy > span,
.discipline-create-student-copy small {
    color: var(--theme-muted);
    font-size: 10px;
}

.discipline-create-student-order {
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--theme-bg);
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.discipline-create-student-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discipline-create-primary-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.discipline-create-primary-control label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.discipline-create-primary-control input:checked + label {
    border-color: color-mix( in srgb, var(--theme-primary) 42%, var(--theme-border) );
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
}

.discipline-create-primary-control input:focus-visible + label {
    box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 15%, transparent );
}

.discipline-create-remove-student {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fff;
    color: #b91c1c;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

    .discipline-create-remove-student:hover {
        background: #fef2f2;
    }

.discipline-create-student-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
}

/* ============================================================
   EMPTY STATE AND GUIDANCE
   ============================================================ */

.discipline-create-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 54px 18px;
    text-align: center;
}

.discipline-create-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 13px;
    border-radius: 19px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 25px;
}

.discipline-create-empty-state strong {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 850;
}

.discipline-create-empty-state p {
    max-width: 480px;
    margin: 6px 0 0;
    color: var(--theme-muted);
    font-size: 11px;
    line-height: 1.6;
}

.discipline-create-guidance {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 17px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 24%, var(--theme-border) );
    border-radius: 16px;
    background: var(--theme-primary-soft);
}

.discipline-create-guidance-icon {
    color: var(--theme-primary-dark);
    font-size: 18px;
}

.discipline-create-guidance > div:last-child {
    display: grid;
    gap: 3px;
}

.discipline-create-guidance strong {
    color: var(--theme-text);
    font-size: 12px;
    font-weight: 850;
}

.discipline-create-guidance span {
    color: var(--theme-muted);
    font-size: 11px;
    line-height: 1.55;
}

/* ============================================================
   FORM ACTIONS
   ============================================================ */

.discipline-create-actions {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 18px;
    background: color-mix( in srgb, var(--theme-surface) 94%, transparent );
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
}

.discipline-create-actions-copy {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--theme-muted);
    font-size: 11px;
}

    .discipline-create-actions-copy i {
        color: var(--theme-primary);
    }

.discipline-create-actions-buttons {
    display: flex;
    align-items: center;
    gap: 9px;
}

.discipline-create-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
    .discipline-create-hero {
        flex-direction: column;
    }

    .discipline-create-student-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discipline-create-actions {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .discipline-create-hero {
        padding: 21px;
        border-radius: 22px;
    }

    .discipline-create-hero-actions,
    .discipline-create-hero-actions .discipline-create-button {
        width: 100%;
    }

    .discipline-create-form-grid,
    .discipline-create-student-form-grid {
        grid-template-columns: 1fr;
    }

    .discipline-create-field.full {
        grid-column: auto;
    }

    .discipline-create-card-header,
    .discipline-create-student-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .discipline-create-student-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .discipline-create-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .discipline-create-actions-buttons {
        width: 100%;
        flex-direction: column-reverse;
    }

        .discipline-create-actions-buttons .discipline-create-button {
            width: 100%;
        }
}

@media (max-width: 575.98px) {
    .discipline-create-student {
        align-items: flex-start;
    }

    .discipline-create-student-name-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .discipline-create-student-header-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .discipline-create-primary-control,
    .discipline-create-primary-control label,
    .discipline-create-remove-student {
        width: 100%;
    }

    .discipline-create-search-result {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .discipline-create-result-action {
        grid-column: 2;
    }
}

/* ============================================================
   HIDDEN ELEMENT FIX
   ============================================================ */


.discipline-create-empty-state[hidden],
.discipline-create-student-list[hidden],
.discipline-create-search-results[hidden],
.discipline-create-search-clear[hidden],
.discipline-create-alert[hidden] {
    display: none !important;
}



/* ============================================================
   DISCIPLINE CASE PRINT REPORT
   ============================================================ */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #f1f5f9;
    color: #0f172a;
    font-family: Arial, "Segoe UI", sans-serif;
    font-size: 12px;
}

/* ============================================================
   SCREEN ACTIONS
   ============================================================ */

.discipline-print-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: 210mm;
    margin: 18px auto 0;
}

.discipline-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

    .discipline-print-button:hover {
        border-color: #f97316;
        color: #c2410c;
    }

    .discipline-print-button.primary {
        border-color: #f97316;
        background: #f97316;
        color: #ffffff;
    }

        .discipline-print-button.primary:hover {
            border-color: #ea580c;
            background: #ea580c;
            color: #ffffff;
        }

/* ============================================================
   PRINT PAGE
   ============================================================ */

.discipline-print-page {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    margin: 18px auto;
    padding: 12mm;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* ============================================================
   SCHOOL HEADER
   ============================================================ */

.discipline-print-school-header {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 230px;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 2px solid #0f172a;
}

.discipline-print-school-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
}

    .discipline-print-school-logo img {
        display: block;
        width: auto;
        height: auto;
        max-width: 58px;
        max-height: 58px;
        object-fit: contain;
    }

.discipline-print-school-information h1 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.discipline-print-school-information p {
    margin: 5px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.4;
}

.discipline-print-document-box {
    justify-self: end;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: #fff7ed;
    text-align: right;
}

    .discipline-print-document-box h2 {
        margin: 0;
        color: #9a3412;
        font-size: 15px;
        font-weight: 900;
        letter-spacing: 0.04em;
        line-height: 1.25;
        text-transform: uppercase;
    }

    .discipline-print-document-box span {
        display: block;
        margin-top: 5px;
        color: #9a3412;
        font-size: 11px;
        font-weight: 800;
    }

/* ============================================================
   STATUS BANNER AND WATERMARK
   ============================================================ */

.discipline-print-status-banner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
}

    .discipline-print-status-banner strong {
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .discipline-print-status-banner span {
        font-size: 11px;
        line-height: 1.45;
    }

    .discipline-print-status-banner.cancelled {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

    .discipline-print-status-banner.closed {
        border-color: #cbd5e1;
        background: #f1f5f9;
        color: #334155;
    }

.discipline-print-watermark {
    display: none;
}

/* ============================================================
   SECTIONS
   ============================================================ */

.discipline-print-section {
    position: relative;
    z-index: 1;
    margin-top: 14px;
}

.discipline-print-section-title {
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

    .discipline-print-section-title.cancelled {
        border-color: #fecaca;
        color: #991b1b;
    }

/* ============================================================
   INFORMATION GRID
   ============================================================ */

.discipline-print-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 16px;
}

.discipline-print-info-line {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-height: 22px;
}

    .discipline-print-info-line.full {
        grid-column: 1 / -1;
    }

    .discipline-print-info-line.narrative {
        align-items: start;
    }

    .discipline-print-info-line label {
        color: #64748b;
        font-size: 11px;
        font-weight: 700;
        line-height: 1.4;
    }

    .discipline-print-info-line strong {
        color: #0f172a;
        font-size: 11px;
        font-weight: 800;
        line-height: 1.45;
        overflow-wrap: anywhere;
        white-space: pre-line;
    }

/* ============================================================
   STATUS BADGES
   ============================================================ */

.discipline-print-status {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

    .discipline-print-status.draft {
        border-color: #cbd5e1;
        background: #f8fafc;
        color: #475569;
    }

    .discipline-print-status.open {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .discipline-print-status.review {
        border-color: #fde68a;
        background: #fffbeb;
        color: #92400e;
    }

    .discipline-print-status.resolution {
        border-color: #fed7aa;
        background: #fff7ed;
        color: #9a3412;
    }

    .discipline-print-status.resolved {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .discipline-print-status.closed {
        border-color: #cbd5e1;
        background: #f1f5f9;
        color: #334155;
    }

    .discipline-print-status.cancelled {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

/* ============================================================
   NARRATIVE
   ============================================================ */

.discipline-print-narrative-box {
    min-height: 52px;
    padding: 9px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.55;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.discipline-print-empty-text {
    color: #94a3b8;
    font-style: italic;
}

.discipline-print-empty-box {
    padding: 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    text-align: center;
}

/* ============================================================
   TABLES
   ============================================================ */

.discipline-print-table-wrapper {
    width: 100%;
    overflow: visible;
}

.discipline-print-page table {
    width: 100%;
    border-collapse: collapse;
}

.discipline-print-page thead {
    display: table-header-group;
}

.discipline-print-page th {
    padding: 6px;
    border: 1px solid #dbe3ea;
    background: #f8fafc;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-align: left;
    vertical-align: middle;
}

.discipline-print-page td {
    padding: 6px;
    border: 1px solid #e5e7eb;
    color: #0f172a;
    font-size: 10px;
    line-height: 1.35;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.discipline-print-page tr {
    break-inside: avoid;
    page-break-inside: avoid;
}

.discipline-print-center {
    text-align: center;
}

.discipline-print-number-column {
    width: 34px;
}

.discipline-print-table-primary,
.discipline-print-table-secondary {
    display: block;
}

.discipline-print-table-primary {
    color: #0f172a;
    font-size: 10px;
    font-weight: 800;
}

.discipline-print-table-secondary {
    margin-top: 2px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.35;
}

.discipline-print-primary-label {
    color: #c2410c;
    font-weight: 900;
}

.discipline-print-student-remarks-row td {
    background: #f8fafc;
    color: #475569;
}

.discipline-print-history-date {
    width: 118px;
}

.discipline-print-history-transition {
    width: 170px;
}

.discipline-print-history-user {
    width: 120px;
}

/* ============================================================
   CANCELLATION
   ============================================================ */

.discipline-print-cancellation-box {
    padding: 10px;
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
}

    .discipline-print-cancellation-box label {
        color: #991b1b;
    }

    .discipline-print-cancellation-box strong {
        color: #7f1d1d;
    }

/* ============================================================
   SIGNATURES
   ============================================================ */

.discipline-print-signature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    margin-top: 34px;
    break-inside: avoid;
    page-break-inside: avoid;
}

.discipline-print-signature-box {
    text-align: center;
}

.discipline-print-signature-space {
    height: 28px;
}

.discipline-print-signature-line {
    padding-top: 6px;
    border-top: 1px solid #0f172a;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
}

.discipline-print-signature-label {
    margin-top: 3px;
    color: #64748b;
    font-size: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.discipline-print-footer {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

    .discipline-print-footer span {
        margin: 0 4px;
    }

/* ============================================================
   PRINT
   ============================================================ */

@media print {
    body {
        background: #ffffff;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .discipline-print-actions {
        display: none !important;
    }

    .discipline-print-page {
        width: 100%;
        min-height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        box-shadow: none;
    }

    .discipline-print-watermark {
        position: fixed;
        top: 46%;
        left: 50%;
        z-index: 0;
        display: block;
        color: rgba(15, 23, 42, 0.07);
        font-size: 72px;
        font-weight: 900;
        letter-spacing: 0.08em;
        line-height: 1;
        text-transform: uppercase;
        transform: translate(-50%, -50%) rotate(-28deg);
        pointer-events: none;
    }

        .discipline-print-watermark.cancelled {
            color: rgba(185, 28, 28, 0.09);
        }

        .discipline-print-watermark.closed {
            color: rgba(71, 85, 105, 0.08);
        }

    .discipline-print-section,
    .discipline-print-status-banner,
    .discipline-print-school-header,
    .discipline-print-signature-grid,
    .discipline-print-footer {
        position: relative;
        z-index: 1;
    }

    .discipline-print-section-title {
        break-after: avoid;
        page-break-after: avoid;
    }

    .discipline-print-page table {
        break-inside: auto;
        page-break-inside: auto;
    }

    .discipline-print-page thead {
        display: table-header-group;
    }

    .discipline-print-page tfoot {
        display: table-footer-group;
    }

    @page {
        size: A4 portrait;
        margin: 10mm;
    }
}

/* ============================================================
   STUDENT AFFAIRS - CREATE GUIDANCE CASE
   ============================================================ */

.guidance-create-page,
.guidance-create-page *,
.guidance-create-modal-backdrop,
.guidance-create-modal-backdrop * {
    box-sizing: border-box;
}

.guidance-create-page {
    display: grid;
    gap: 20px;
    padding-bottom: 28px;
}

/* ============================================================
   HERO
   ============================================================ */

.guidance-create-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 16%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-create-hero::after {
        position: absolute;
        right: -70px;
        bottom: -110px;
        width: 250px;
        height: 250px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 8%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-create-hero-copy,
.guidance-create-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-create-hero h2 {
    margin: 7px 0 6px;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.guidance-create-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-create-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.guidance-create-btn {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-create-btn:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
    }

    .guidance-create-btn.primary {
        border-color: transparent;
        background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
        color: var(--theme-primary-text);
        box-shadow: 0 14px 30px color-mix( in srgb, var(--theme-primary) 25%, transparent );
    }

        .guidance-create-btn.primary:hover {
            color: var(--theme-primary-text);
            filter: brightness(0.98);
        }

    .guidance-create-btn.full {
        width: 100%;
    }

    .guidance-create-btn:disabled {
        opacity: 0.65;
        pointer-events: none;
        transform: none;
    }

/* ============================================================
   ALERTS AND VALIDATION
   ============================================================ */

.guidance-create-alert {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 14px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

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

    .guidance-create-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.guidance-create-alert-close {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.guidance-create-validation {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

    .guidance-create-validation:empty {
        display: none;
    }

    .guidance-create-validation ul {
        margin: 0;
        padding-left: 18px;
    }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.guidance-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.guidance-create-main,
.guidance-create-sidebar {
    display: grid;
    gap: 18px;
}

/* ============================================================
   CARDS
   ============================================================ */

.guidance-create-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-create-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 9%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
}

.guidance-create-card-heading {
    min-width: 0;
}

.guidance-create-card-header strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 950;
}

    .guidance-create-card-header strong i {
        color: var(--theme-primary-dark);
    }

.guidance-create-card-header span {
    display: block;
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}

.guidance-create-card-body {
    padding: 19px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

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

.guidance-create-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

    .guidance-create-field.full {
        grid-column: 1 / -1;
    }

    .guidance-create-field label {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 900;
    }

.guidance-create-required {
    color: #dc2626;
}

.guidance-create-input,
.guidance-create-select,
.guidance-create-textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.guidance-create-input,
.guidance-create-select {
    height: 43px;
    padding: 0 13px;
}

.guidance-create-textarea {
    min-height: 125px;
    padding: 12px 13px;
    line-height: 1.55;
    resize: vertical;
}

    .guidance-create-textarea.large {
        min-height: 165px;
    }

    .guidance-create-input:focus,
    .guidance-create-select:focus,
    .guidance-create-textarea:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .guidance-create-input::placeholder,
    .guidance-create-textarea::placeholder {
        color: color-mix( in srgb, var(--theme-muted) 75%, transparent );
    }

.guidance-create-field-hint {
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
}

.guidance-create-field-error {
    color: #b91c1c;
    font-size: 10px;
    font-weight: 750;
}

    .guidance-create-field-error:empty {
        display: none;
    }

/* ============================================================
   STUDENT TABLE
   ============================================================ */

.guidance-create-student-validation {
    padding: 0 19px;
}

.guidance-create-student-empty {
    padding: 42px 22px;
    text-align: center;
}

.guidance-create-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 21px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 26px;
    display: grid;
    place-items: center;
}

.guidance-create-student-empty strong {
    display: block;
    margin-top: 14px;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
}

.guidance-create-student-empty p {
    max-width: 460px;
    margin: 6px auto 0;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 650;
}

.guidance-create-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.guidance-create-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

    .guidance-create-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--theme-border);
        background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 950;
        text-align: left;
        text-transform: uppercase;
    }

    .guidance-create-table td {
        padding: 13px;
        border-bottom: 1px solid var(--theme-border);
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 650;
        vertical-align: middle;
    }

    .guidance-create-table tbody tr:hover {
        background: var(--theme-primary-soft);
    }

    .guidance-create-table tbody tr:last-child td {
        border-bottom: 0;
    }

.guidance-create-center {
    text-align: center;
}

.guidance-create-student {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.guidance-create-photo,
.guidance-create-initials {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
}

.guidance-create-photo {
    object-fit: cover;
}

.guidance-create-initials {
    background: linear-gradient( 135deg, var(--theme-primary-soft), var(--theme-surface) );
    color: var(--theme-primary-dark);
    font-size: 13px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-create-student-copy {
    min-width: 0;
}

    .guidance-create-student-copy strong {
        display: block;
        max-width: 250px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-create-student-copy span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
    }

.guidance-create-primary-wrap {
    display: flex;
    justify-content: center;
}

.guidance-create-radio {
    width: 18px;
    height: 18px;
    accent-color: var(--theme-primary);
    cursor: pointer;
}

.guidance-create-table-textarea {
    width: 100%;
    min-width: 260px;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    outline: none;
    background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
    color: var(--theme-text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    resize: vertical;
}

    .guidance-create-table-textarea:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 3px var(--theme-primary-soft);
    }

.guidance-create-remove {
    width: 34px;
    height: 34px;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fff1f2;
    color: #b91c1c;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

    .guidance-create-remove:hover {
        transform: translateY(-1px);
        background: #fee2e2;
    }

/* ============================================================
   GUIDELINES AND SUMMARY
   ============================================================ */

.guidance-create-guidelines {
    display: grid;
    gap: 11px;
}

.guidance-create-guideline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% );
}

.guidance-create-guideline-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-create-guideline strong {
    display: block;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-create-guideline span {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    line-height: 1.45;
}

.guidance-create-record-summary {
    display: grid;
    gap: 9px;
    margin-bottom: 16px;
}

    .guidance-create-record-summary > div {
        display: grid;
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        gap: 10px;
        padding: 10px 11px;
        border: 1px solid var(--theme-border);
        border-radius: 12px;
        background: color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% );
    }

    .guidance-create-record-summary span {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 750;
    }

    .guidance-create-record-summary strong {
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
        text-align: right;
    }

.guidance-create-submit-card {
    position: sticky;
    top: 18px;
}

.guidance-create-submit-actions {
    display: grid;
    gap: 9px;
}

/* ============================================================
   STUDENT SEARCH MODAL
   ============================================================ */

.guidance-create-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 24px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
}

    .guidance-create-modal-backdrop.open {
        display: flex;
    }

.guidance-create-modal {
    width: min(1050px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.guidance-create-modal-header,
.guidance-create-modal-search,
.guidance-create-modal-footer {
    padding: 18px 20px;
}

.guidance-create-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--theme-border);
}

    .guidance-create-modal-header strong {
        display: block;
        color: var(--theme-text);
        font-size: 16px;
        font-weight: 950;
    }

    .guidance-create-modal-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
    }

.guidance-create-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-create-modal-close:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

.guidance-create-modal-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-bottom: 1px solid var(--theme-border);
}

.guidance-create-search-input-wrap {
    position: relative;
}

    .guidance-create-search-input-wrap i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: var(--theme-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

.guidance-create-search-input {
    width: 100%;
    height: 43px;
    padding: 0 13px 0 40px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

    .guidance-create-search-input:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

.guidance-create-modal-body {
    min-height: 270px;
    overflow-y: auto;
    padding: 18px 20px;
}

.guidance-create-search-message {
    padding: 13px 14px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% );
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 700;
}

    .guidance-create-search-message.error {
        border-color: #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

    .guidance-create-search-message.warning {
        border-color: #fde68a;
        background: #fefce8;
        color: #854d0e;
    }

.guidance-create-search-loading {
    padding: 42px 20px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

    .guidance-create-search-loading span {
        display: block;
        margin-top: 10px;
    }

.guidance-create-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border: 4px solid var(--theme-primary-soft);
    border-top-color: var(--theme-primary);
    border-radius: 999px;
    animation: guidanceCreateSpin 0.8s linear infinite;
}

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

.guidance-create-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guidance-create-search-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 17px;
    background: color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% );
}

.guidance-create-search-card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
}

.guidance-create-search-photo,
.guidance-create-search-initials {
    width: 62px;
    height: 62px;
    border: 1px solid var(--theme-border);
    border-radius: 19px;
}

.guidance-create-search-photo {
    object-fit: cover;
}

.guidance-create-search-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-create-search-copy {
    min-width: 0;
}

    .guidance-create-search-copy strong {
        display: block;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-create-search-copy span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
    }

.guidance-create-search-card-footer {
    padding: 11px 14px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.guidance-create-modal-footer {
    border-top: 1px solid var(--theme-border);
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   UTILITY
   ============================================================ */

.guidance-create-hidden {
    display: none !important;
}

body.guidance-create-modal-open {
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .guidance-create-layout {
        grid-template-columns: 1fr;
    }

    .guidance-create-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guidance-create-submit-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .guidance-create-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-create-form-grid,
    .guidance-create-sidebar,
    .guidance-create-search-results {
        grid-template-columns: 1fr;
    }

    .guidance-create-field.full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .guidance-create-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-create-hero-actions,
    .guidance-create-hero-actions .guidance-create-btn {
        width: 100%;
    }

    .guidance-create-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

        .guidance-create-card-header .guidance-create-btn {
            width: 100%;
        }

    .guidance-create-modal-backdrop {
        padding: 10px;
    }

    .guidance-create-modal {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .guidance-create-modal-search {
        grid-template-columns: 1fr;
    }

        .guidance-create-modal-search .guidance-create-btn {
            width: 100%;
        }

    .guidance-create-record-summary > div {
        grid-template-columns: 1fr;
    }

    .guidance-create-record-summary strong {
        text-align: left;
    }
}

/* ============================================================
   STUDENT AFFAIRS - GUIDANCE CASE LIST
   ============================================================ */

.guidance-list-page,
.guidance-list-page * {
    box-sizing: border-box;
}

.guidance-list-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

/* ============================================================
   HERO
   ============================================================ */

.guidance-list-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 16%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-list-hero::after {
        position: absolute;
        right: -70px;
        bottom: -110px;
        width: 250px;
        height: 250px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 8%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-list-hero-copy,
.guidance-list-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-list-hero h2 {
    margin: 7px 0 6px;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.guidance-list-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-list-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.guidance-list-button,
.guidance-list-view-button,
.guidance-list-edit-button {
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-list-button:hover,
    .guidance-list-view-button:hover,
    .guidance-list-edit-button:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
    }

    .guidance-list-button.primary {
        border-color: transparent;
        background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
        color: var(--theme-primary-text);
        box-shadow: 0 14px 30px color-mix( in srgb, var(--theme-primary) 25%, transparent );
    }

        .guidance-list-button.primary:hover {
            color: var(--theme-primary-text);
            filter: brightness(0.98);
        }

.guidance-list-view-button,
.guidance-list-edit-button {
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 11px;
    font-size: 10px;
}

.guidance-list-view-button {
    border-color: color-mix( in srgb, var(--theme-primary) 38%, var(--theme-border) );
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
}

.guidance-list-edit-button {
    background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
}

    .guidance-list-view-button.full,
    .guidance-list-edit-button.full {
        width: 100%;
    }

/* ============================================================
   ALERTS
   ============================================================ */

.guidance-list-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 17px;
}

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

    .guidance-list-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.guidance-list-alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.65);
    display: grid;
    place-items: center;
}

.guidance-list-alert-copy strong,
.guidance-list-alert-copy span {
    display: block;
}

.guidance-list-alert-copy strong {
    font-size: 11px;
    font-weight: 950;
}

.guidance-list-alert-copy span {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.guidance-list-alert-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-list-alert-close:hover {
        background: rgba(255, 255, 255, 0.65);
    }

/* ============================================================
   SUMMARY CARDS
   ============================================================ */

.guidance-list-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.guidance-list-summary-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 118px;
    padding: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 21px;
    background: var(--theme-surface);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.055);
}

    .guidance-list-summary-card::after {
        position: absolute;
        right: -24px;
        bottom: -34px;
        width: 105px;
        height: 105px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 6%, transparent );
        content: "";
        pointer-events: none;
    }

    .guidance-list-summary-card.primary {
        border-color: color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
        background: linear-gradient( 145deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 87%, var(--theme-primary) 13% ) );
    }

.guidance-list-summary-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 16px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 19px;
    display: grid;
    place-items: center;
}

.guidance-list-summary-copy {
    position: relative;
    z-index: 1;
}

    .guidance-list-summary-copy span,
    .guidance-list-summary-copy strong,
    .guidance-list-summary-copy small {
        display: block;
    }

    .guidance-list-summary-copy span {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .guidance-list-summary-copy strong {
        margin-top: 3px;
        color: var(--theme-text);
        font-size: 27px;
        font-weight: 950;
        letter-spacing: -0.04em;
    }

    .guidance-list-summary-copy small {
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
    }

/* ============================================================
   SHARED CARDS
   ============================================================ */

.guidance-list-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 23px;
    background: var(--theme-surface);
    box-shadow: 0 13px 32px rgba(15, 23, 42, 0.06);
}

.guidance-list-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 8%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
}

.guidance-list-card-heading {
    min-width: 0;
}

    .guidance-list-card-heading strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 14px;
        font-weight: 950;
    }

        .guidance-list-card-heading strong i {
            color: var(--theme-primary-dark);
        }

    .guidance-list-card-heading span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.guidance-list-card-body {
    padding: 19px;
}

/* ============================================================
   FILTER
   ============================================================ */

.guidance-list-filter-header-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.guidance-list-active-filter-badge {
    min-height: 30px;
    padding: 7px 10px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 28%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.guidance-list-filter-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .guidance-list-filter-toggle:hover {
        transform: translateY(-1px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

.guidance-list-filter-body {
    max-height: 700px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.28s ease, opacity 0.2s ease;
}

    .guidance-list-filter-body.guidance-list-filter-collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
    }

.guidance-list-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(4, minmax(145px, 1fr));
    gap: 13px;
}

.guidance-list-field {
    min-width: 0;
}

    .guidance-list-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
    }

    .guidance-list-field input,
    .guidance-list-field select {
        width: 100%;
        min-height: 43px;
        padding: 0 12px;
        border: 1px solid var(--theme-border);
        border-radius: 13px;
        outline: none;
        background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
        color: var(--theme-text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
    }

        .guidance-list-field input:focus,
        .guidance-list-field select:focus {
            border-color: var(--theme-primary);
            background: var(--theme-surface);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

        .guidance-list-field input::placeholder {
            color: color-mix( in srgb, var(--theme-muted) 75%, transparent );
        }

.guidance-list-input-icon {
    position: relative;
}

    .guidance-list-input-icon i {
        position: absolute;
        top: 50%;
        left: 13px;
        color: var(--theme-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

    .guidance-list-input-icon input {
        padding-left: 39px;
    }

.guidance-list-filter-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
}

/* ============================================================
   RECORD COUNT
   ============================================================ */

.guidance-list-record-count {
    min-width: 54px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 12px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .guidance-list-record-count strong {
        font-size: 12px;
        font-weight: 950;
    }

/* ============================================================
   TABLE
   ============================================================ */

.guidance-list-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.guidance-list-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
}

    .guidance-list-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--theme-border);
        background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.05em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .guidance-list-table td {
        padding: 13px;
        border-bottom: 1px solid var(--theme-border);
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 650;
        vertical-align: middle;
    }

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

        .guidance-list-table tbody tr:hover {
            background: color-mix( in srgb, var(--theme-surface) 90%, var(--theme-primary) 10% );
        }

        .guidance-list-table tbody tr:last-child td {
            border-bottom: 0;
        }

.guidance-list-center {
    text-align: center !important;
}

.guidance-list-action-column {
    text-align: right !important;
}

.guidance-list-reference strong,
.guidance-list-reference span,
.guidance-list-reference small,
.guidance-list-date strong,
.guidance-list-date span,
.guidance-list-assigned strong,
.guidance-list-assigned span,
.guidance-list-referral strong,
.guidance-list-referral span {
    display: block;
}

.guidance-list-reference strong {
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
}

.guidance-list-reference span {
    max-width: 220px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guidance-list-reference small {
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-list-date strong,
.guidance-list-assigned strong,
.guidance-list-referral strong {
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-list-date span,
.guidance-list-assigned span,
.guidance-list-referral span {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-list-concern strong {
    display: block;
    max-width: 230px;
    overflow: hidden;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.guidance-list-concern span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 700;
}

    .guidance-list-concern span i {
        color: var(--theme-primary-dark);
    }

/* ============================================================
   STUDENT
   ============================================================ */

.guidance-list-student {
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guidance-list-student-photo-wrap {
    flex-shrink: 0;
}

.guidance-list-student-photo,
.guidance-list-student-initials {
    width: 42px;
    height: 42px;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 50%;
}

.guidance-list-student-photo {
    object-fit: cover;
}

.guidance-list-student-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 10px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-list-student-info {
    min-width: 0;
}

    .guidance-list-student-info strong,
    .guidance-list-student-info span {
        display: block;
    }

    .guidance-list-student-info strong {
        max-width: 180px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-list-student-info span {
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 700;
    }

/* ============================================================
   STATUS
   ============================================================ */

.guidance-list-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 27px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.guidance-list-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.guidance-list-status-draft {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.guidance-list-status-open {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.guidance-list-status-progress {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.guidance-list-status-follow-up {
    border-color: #fde68a;
    background: #fefce8;
    color: #a16207;
}

.guidance-list-status-resolved {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.guidance-list-status-closed {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}

.guidance-list-status-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.guidance-list-status-default {
    border-color: var(--theme-border);
    background: color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% );
    color: var(--theme-muted);
}

/* ============================================================
   COUNT AND ACTIONS
   ============================================================ */

.guidance-list-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-text);
}

    .guidance-list-count i {
        color: var(--theme-primary-dark);
    }

    .guidance-list-count strong {
        font-size: 11px;
        font-weight: 950;
    }

.guidance-list-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

/* ============================================================
   MOBILE CARDS
   ============================================================ */

.guidance-list-mobile-grid {
    display: none;
    gap: 13px;
    padding: 15px;
}

.guidance-list-mobile-card {
    padding: 15px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% );
}

.guidance-list-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.guidance-list-mobile-title {
    margin: 13px 0;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
    line-height: 1.4;
}

.guidance-list-mobile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

    .guidance-list-mobile-details > div {
        min-width: 0;
        padding: 10px;
        border: 1px solid var(--theme-border);
        border-radius: 12px;
        background: var(--theme-surface);
    }

    .guidance-list-mobile-details span,
    .guidance-list-mobile-details strong {
        display: block;
    }

    .guidance-list-mobile-details span {
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .guidance-list-mobile-details strong {
        margin-top: 4px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 9px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.guidance-list-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.guidance-list-empty-state {
    padding: 56px 22px;
    text-align: center;
}

.guidance-list-empty-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto;
    border-radius: 22px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 28px;
    display: grid;
    place-items: center;
}

.guidance-list-empty-state > strong {
    display: block;
    margin-top: 15px;
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 950;
}

.guidance-list-empty-state > p {
    max-width: 510px;
    margin: 7px auto 0;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-list-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.guidance-list-muted {
    color: var(--theme-muted);
    font-size: 9px;
    font-style: italic;
}

.guidance-list-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1250px) {
    .guidance-list-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .guidance-list-field-search {
        grid-column: span 2;
    }
}

@media (max-width: 1050px) {
    .guidance-list-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .guidance-list-table-wrapper {
        display: none;
    }

    .guidance-list-mobile-grid {
        display: grid;
    }

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

    .guidance-list-field-search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .guidance-list-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-list-hero-actions,
    .guidance-list-hero-actions .guidance-list-button {
        width: 100%;
    }

    .guidance-list-card-header {
        align-items: flex-start;
    }

    .guidance-list-active-filter-badge {
        display: none;
    }
}

@media (max-width: 580px) {
    .guidance-list-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-list-summary-grid,
    .guidance-list-filter-grid,
    .guidance-list-mobile-details,
    .guidance-list-mobile-actions {
        grid-template-columns: 1fr;
    }

    .guidance-list-field-search {
        grid-column: auto;
    }

    .guidance-list-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .guidance-list-filter-actions .guidance-list-button {
            width: 100%;
        }

    .guidance-list-card-header {
        padding: 15px;
    }

    .guidance-list-card-body {
        padding: 15px;
    }

    .guidance-list-mobile-card-header {
        flex-direction: column;
    }

        .guidance-list-mobile-card-header
        .guidance-list-status {
            align-self: flex-start;
        }

    .guidance-list-empty-actions {
        display: grid;
    }

        .guidance-list-empty-actions
        .guidance-list-button {
            width: 100%;
        }
}


















/* ============================================================
   STUDENT AFFAIRS - CREATE GUIDANCE CASE
   Pattern aligned with Create Incident Report
   ============================================================ */

.guidance-create-page,
.guidance-create-page *,
.guidance-create-modal-backdrop,
.guidance-create-modal-backdrop * {
    box-sizing: border-box;
}

.guidance-create-page {
    display: grid;
    gap: 20px;
    padding-bottom: 28px;
}

/* ============================================================
   HERO
   ============================================================ */

.guidance-create-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 16%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-create-hero::after {
        position: absolute;
        right: -70px;
        bottom: -110px;
        width: 250px;
        height: 250px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 8%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-create-hero-copy,
.guidance-create-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-create-hero-copy {
    min-width: 0;
}

.guidance-create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-create-hero h2 {
    margin: 7px 0 6px;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.guidance-create-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-create-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.guidance-create-btn {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .guidance-create-btn:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
    }

    .guidance-create-btn:focus-visible {
        outline: none;
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .guidance-create-btn.primary {
        border-color: transparent;
        background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
        color: var(--theme-primary-text);
        box-shadow: 0 14px 30px color-mix( in srgb, var(--theme-primary) 25%, transparent );
    }

        .guidance-create-btn.primary:hover {
            color: var(--theme-primary-text);
            filter: brightness(0.98);
        }

    .guidance-create-btn.full {
        width: 100%;
    }

    .guidance-create-btn:disabled {
        opacity: 0.65;
        pointer-events: none;
        transform: none;
        box-shadow: none;
    }

/* ============================================================
   ALERTS
   ============================================================ */

.guidance-create-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.5;
}

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

    .guidance-create-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.guidance-create-alert-close {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-create-alert-close:hover {
        background: rgba(255, 255, 255, 0.65);
    }

/* ============================================================
   VALIDATION
   ============================================================ */

.guidance-create-validation {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

    .guidance-create-validation:empty {
        display: none;
    }

    .guidance-create-validation ul {
        margin: 0;
        padding-left: 18px;
    }

    .guidance-create-validation li + li {
        margin-top: 4px;
    }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.guidance-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.guidance-create-main,
.guidance-create-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

/* ============================================================
   CARDS
   ============================================================ */

.guidance-create-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-create-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 9%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
}

.guidance-create-card-heading {
    min-width: 0;
}

.guidance-create-card-header strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-text);
    font-size: 15px;
    font-weight: 950;
}

    .guidance-create-card-header strong i {
        color: var(--theme-primary-dark);
    }

.guidance-create-card-header span {
    display: block;
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.45;
}

.guidance-create-card-body {
    padding: 19px;
}

/* ============================================================
   FORM GRID AND FIELDS
   ============================================================ */

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

.guidance-create-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

    .guidance-create-field.full {
        grid-column: 1 / -1;
    }

    .guidance-create-field label {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 900;
    }

.guidance-create-required {
    color: #dc2626;
}

/* ============================================================
   INPUTS, SELECTS, AND TEXTAREAS

   Plain surface background.
   No primary-color tint.
   ============================================================ */

.guidance-create-input,
.guidance-create-select,
.guidance-create-textarea {
    width: 100%;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.guidance-create-input,
.guidance-create-select {
    height: 43px;
    padding: 0 13px;
}

.guidance-create-select {
    cursor: pointer;
}

.guidance-create-textarea {
    min-height: 125px;
    padding: 12px 13px;
    line-height: 1.55;
    resize: vertical;
}

    .guidance-create-textarea.large {
        min-height: 165px;
    }

    .guidance-create-input:hover,
    .guidance-create-select:hover,
    .guidance-create-textarea:hover {
        border-color: color-mix( in srgb, var(--theme-primary) 55%, var(--theme-border) );
    }

    .guidance-create-input:focus,
    .guidance-create-select:focus,
    .guidance-create-textarea:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .guidance-create-input::placeholder,
    .guidance-create-textarea::placeholder {
        color: color-mix( in srgb, var(--theme-muted) 75%, transparent );
        opacity: 1;
    }

    .guidance-create-input:disabled,
    .guidance-create-select:disabled,
    .guidance-create-textarea:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.guidance-create-field-hint {
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.4;
}

.guidance-create-field-error {
    color: #b91c1c;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
}

    .guidance-create-field-error:empty {
        display: none;
    }

/* ============================================================
   STUDENT SECTION
   ============================================================ */

.guidance-create-student-validation {
    padding: 0 19px;
}

.guidance-create-student-empty {
    padding: 42px 22px;
    text-align: center;
}

.guidance-create-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 21px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 26px;
    display: grid;
    place-items: center;
}

.guidance-create-student-empty strong {
    display: block;
    margin-top: 14px;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
}

.guidance-create-student-empty p {
    max-width: 460px;
    margin: 6px auto 0;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}

/* ============================================================
   STUDENT TABLE
   ============================================================ */

.guidance-create-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.guidance-create-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

    .guidance-create-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--theme-border);
        background: color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% );
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.04em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .guidance-create-table td {
        padding: 13px;
        border-bottom: 1px solid var(--theme-border);
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 650;
        vertical-align: middle;
    }

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

        .guidance-create-table tbody tr:hover {
            background: color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% );
        }

        .guidance-create-table tbody tr:last-child td {
            border-bottom: 0;
        }

.guidance-create-center {
    text-align: center;
}

/* ============================================================
   STUDENT IDENTITY
   ============================================================ */

.guidance-create-student {
    min-width: 270px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.guidance-create-photo,
.guidance-create-initials {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
}

.guidance-create-photo {
    display: block;
    object-fit: cover;
}

.guidance-create-initials {
    background: linear-gradient( 135deg, var(--theme-primary-soft), var(--theme-surface) );
    color: var(--theme-primary-dark);
    font-size: 13px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-create-student-copy {
    min-width: 0;
}

    .guidance-create-student-copy strong {
        display: block;
        max-width: 250px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-create-student-copy span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

/* ============================================================
   PRIMARY STUDENT
   ============================================================ */

.guidance-create-primary-wrap {
    display: flex;
    justify-content: center;
}

.guidance-create-radio {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--theme-primary);
    cursor: pointer;
}

/* ============================================================
   STUDENT REMARKS TEXTAREA

   Plain surface background.
   ============================================================ */

.guidance-create-table-textarea {
    width: 100%;
    min-width: 260px;
    min-height: 64px;
    padding: 10px 11px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    resize: vertical;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-create-table-textarea:hover {
        border-color: color-mix( in srgb, var(--theme-primary) 55%, var(--theme-border) );
    }

    .guidance-create-table-textarea:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 3px var(--theme-primary-soft);
    }

    .guidance-create-table-textarea::placeholder {
        color: color-mix( in srgb, var(--theme-muted) 75%, transparent );
        opacity: 1;
    }

/* ============================================================
   REMOVE STUDENT BUTTON
   ============================================================ */

.guidance-create-remove {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #fecaca;
    border-radius: 11px;
    background: #fff1f2;
    color: #b91c1c;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

    .guidance-create-remove:hover {
        transform: translateY(-1px);
        border-color: #fca5a5;
        background: #fee2e2;
    }

    .guidance-create-remove:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
    }

/* ============================================================
   GUIDELINES
   ============================================================ */

.guidance-create-guidelines {
    display: grid;
    gap: 11px;
}

.guidance-create-guideline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: color-mix( in srgb, var(--theme-surface) 97%, var(--theme-primary) 3% );
}

.guidance-create-guideline-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-create-guideline strong {
    display: block;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-create-guideline span {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
}

/* ============================================================
   SUBMIT CARD
   ============================================================ */

.guidance-create-submit-card {
    position: sticky;
    top: 18px;
}

.guidance-create-submit-actions {
    display: grid;
    gap: 9px;
}

/* ============================================================
   STUDENT SEARCH MODAL
   ============================================================ */

.guidance-create-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    padding: 24px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
}

    .guidance-create-modal-backdrop.open {
        display: flex;
    }

.guidance-create-modal {
    width: min(1050px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.3);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.guidance-create-modal-header,
.guidance-create-modal-search,
.guidance-create-modal-footer {
    padding: 18px 20px;
}

.guidance-create-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--theme-border);
}

    .guidance-create-modal-header strong {
        display: block;
        color: var(--theme-text);
        font-size: 16px;
        font-weight: 950;
    }

    .guidance-create-modal-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.4;
    }

.guidance-create-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .guidance-create-modal-close:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

/* ============================================================
   MODAL SEARCH
   ============================================================ */

.guidance-create-modal-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    border-bottom: 1px solid var(--theme-border);
}

.guidance-create-search-input-wrap {
    position: relative;
}

    .guidance-create-search-input-wrap i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: var(--theme-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

/*
    Plain search textbox background.
*/

.guidance-create-search-input {
    width: 100%;
    height: 43px;
    padding: 0 13px 0 40px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    outline: none;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-create-search-input:hover {
        border-color: color-mix( in srgb, var(--theme-primary) 55%, var(--theme-border) );
    }

    .guidance-create-search-input:focus {
        border-color: var(--theme-primary);
        background: var(--theme-surface);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .guidance-create-search-input::placeholder {
        color: color-mix( in srgb, var(--theme-muted) 75%, transparent );
        opacity: 1;
    }

    .guidance-create-search-input:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* ============================================================
   MODAL BODY
   ============================================================ */

.guidance-create-modal-body {
    min-height: 270px;
    overflow-y: auto;
    padding: 18px 20px;
}

.guidance-create-search-message {
    padding: 13px 14px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

    .guidance-create-search-message.error {
        border-color: #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

    .guidance-create-search-message.warning {
        border-color: #fde68a;
        background: #fefce8;
        color: #854d0e;
    }

.guidance-create-search-loading {
    padding: 42px 20px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 750;
    text-align: center;
}

    .guidance-create-search-loading span {
        display: block;
        margin-top: 10px;
    }

.guidance-create-spinner {
    width: 38px;
    height: 38px;
    margin: 0 auto;
    border: 4px solid var(--theme-primary-soft);
    border-top-color: var(--theme-primary);
    border-radius: 999px;
    animation: guidance-create-spin 0.8s linear infinite;
}

@keyframes guidance-create-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */

.guidance-create-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.guidance-create-search-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 17px;
    background: var(--theme-surface);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-create-search-card:hover {
        transform: translateY(-2px);
        border-color: color-mix( in srgb, var(--theme-primary) 40%, var(--theme-border) );
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    }

.guidance-create-search-card-body {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
}

.guidance-create-search-photo,
.guidance-create-search-initials {
    width: 62px;
    height: 62px;
    border: 1px solid var(--theme-border);
    border-radius: 19px;
}

.guidance-create-search-photo {
    display: block;
    object-fit: cover;
}

.guidance-create-search-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 14px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-create-search-copy {
    min-width: 0;
}

    .guidance-create-search-copy strong {
        display: block;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-create-search-copy span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
        line-height: 1.35;
    }

.guidance-create-search-card-footer {
    padding: 11px 14px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.guidance-create-modal-footer {
    border-top: 1px solid var(--theme-border);
    display: flex;
    justify-content: flex-end;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.guidance-create-hidden {
    display: none !important;
}

body.guidance-create-modal-open {
    overflow: hidden;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .guidance-create-layout {
        grid-template-columns: 1fr;
    }

    .guidance-create-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guidance-create-submit-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .guidance-create-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-create-hero-actions {
        justify-content: flex-start;
    }

    .guidance-create-form-grid,
    .guidance-create-sidebar,
    .guidance-create-search-results {
        grid-template-columns: 1fr;
    }

    .guidance-create-field.full {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .guidance-create-page {
        gap: 16px;
    }

    .guidance-create-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-create-hero-actions,
    .guidance-create-hero-actions .guidance-create-btn {
        width: 100%;
    }

    .guidance-create-card {
        border-radius: 18px;
    }

    .guidance-create-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

        .guidance-create-card-header .guidance-create-btn {
            width: 100%;
        }

    .guidance-create-card-body {
        padding: 15px;
    }

    .guidance-create-student-validation {
        padding: 0 15px;
    }

    .guidance-create-modal-backdrop {
        padding: 10px;
    }

    .guidance-create-modal {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .guidance-create-modal-header,
    .guidance-create-modal-search,
    .guidance-create-modal-footer {
        padding: 15px;
    }

    .guidance-create-modal-body {
        padding: 15px;
    }

    .guidance-create-modal-search {
        grid-template-columns: 1fr;
    }

        .guidance-create-modal-search .guidance-create-btn {
            width: 100%;
        }
}

.guidance-list-created-by strong,
.guidance-list-created-by span {
    display: block;
}

.guidance-list-created-by strong {
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-list-created-by span {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-list-assigned {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 800;
}

    .guidance-list-assigned i {
        color: var(--theme-primary-dark);
    }




/* ============================================================
   STUDENT AFFAIRS - GUIDANCE CASE DETAILS
   Pattern aligned with Discipline Case Details
   ============================================================ */

.guidance-details-page,
.guidance-details-page * {
    box-sizing: border-box;
}

.guidance-details-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

/* ============================================================
   HERO
   ============================================================ */

.guidance-details-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 16%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-details-hero::after {
        position: absolute;
        right: -70px;
        bottom: -110px;
        width: 250px;
        height: 250px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 8%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-details-hero-copy,
.guidance-details-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-details-hero-copy {
    min-width: 0;
    flex: 1;
}

.guidance-details-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-details-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 7px;
}

    .guidance-details-title-row > div {
        min-width: 0;
    }

    .guidance-details-title-row h2 {
        margin: 0;
        color: var(--theme-text);
        font-size: clamp(25px, 3vw, 35px);
        font-weight: 950;
        letter-spacing: -0.045em;
    }

    .guidance-details-title-row p {
        max-width: 760px;
        margin: 6px 0 0;
        color: var(--theme-muted);
        font-size: 13px;
        font-weight: 650;
        line-height: 1.55;
    }

.guidance-details-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.guidance-details-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-details-button:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
    }

    .guidance-details-button:focus-visible {
        outline: none;
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .guidance-details-button.full {
        width: 100%;
    }

/* ============================================================
   ALERTS
   ============================================================ */

.guidance-details-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 17px;
}

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

    .guidance-details-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.guidance-details-alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.65);
    display: grid;
    place-items: center;
}

.guidance-details-alert-copy strong,
.guidance-details-alert-copy span {
    display: block;
}

.guidance-details-alert-copy strong {
    font-size: 11px;
    font-weight: 950;
}

.guidance-details-alert-copy span {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.45;
}

.guidance-details-alert-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-details-alert-close:hover {
        background: rgba(255, 255, 255, 0.65);
    }

/* ============================================================
   SUMMARY CARDS
   ============================================================ */

.guidance-details-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.guidance-details-summary-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-height: 118px;
    padding: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 21px;
    background: var(--theme-surface);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.055);
}

    .guidance-details-summary-card::after {
        position: absolute;
        right: -24px;
        bottom: -34px;
        width: 105px;
        height: 105px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 6%, transparent );
        content: "";
        pointer-events: none;
    }

    .guidance-details-summary-card.primary {
        border-color: color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
        background: linear-gradient( 145deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 87%, var(--theme-primary) 13% ) );
    }

.guidance-details-summary-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 16px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 19px;
    display: grid;
    place-items: center;
}

.guidance-details-summary-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

    .guidance-details-summary-copy span,
    .guidance-details-summary-copy strong,
    .guidance-details-summary-copy small {
        display: block;
    }

    .guidance-details-summary-copy span {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .guidance-details-summary-copy strong {
        margin-top: 3px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.02em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-details-summary-copy small {
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
    }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.guidance-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.7fr);
    gap: 20px;
    align-items: start;
}

.guidance-details-main,
.guidance-details-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

/* ============================================================
   CARDS
   ============================================================ */

.guidance-details-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-details-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 9%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
}

.guidance-details-card-heading {
    min-width: 0;
}

    .guidance-details-card-heading strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .guidance-details-card-heading strong i {
            color: var(--theme-primary-dark);
        }

    .guidance-details-card-heading span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.guidance-details-card-body {
    padding: 19px;
}

.guidance-details-cancelled-card {
    border-color: #fecaca;
}

/* ============================================================
   INFO GRID
   ============================================================ */

.guidance-details-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.guidance-details-info-item {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
}

    .guidance-details-info-item.full {
        grid-column: 1 / -1;
    }

    .guidance-details-info-item > span {
        display: block;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 850;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .guidance-details-info-item > strong {
        display: block;
        margin-top: 5px;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 900;
        line-height: 1.45;
    }

    .guidance-details-info-item > div {
        margin-top: 6px;
    }

.guidance-details-section-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--theme-border);
}

/* ============================================================
   CONTENT BLOCKS
   ============================================================ */

.guidance-details-content-stack {
    display: grid;
    gap: 15px;
}

.guidance-details-content-block {
    min-width: 0;
}

.guidance-details-content-label {
    display: block;
    margin-bottom: 7px;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-details-content-text {
    min-height: 86px;
    padding: 13px 14px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.65;
    white-space: pre-line;
}

/* ============================================================
   RECORD COUNT
   ============================================================ */

.guidance-details-record-count {
    min-width: 54px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 12px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .guidance-details-record-count strong {
        font-size: 12px;
        font-weight: 950;
    }

/* ============================================================
   STATUS PILLS
   ============================================================ */

.guidance-details-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 29px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.guidance-details-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.guidance-details-status-draft {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #475569;
}

.guidance-details-status-open {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.guidance-details-status-progress {
    border-color: #ddd6fe;
    background: #f5f3ff;
    color: #6d28d9;
}

.guidance-details-status-follow-up {
    border-color: #fde68a;
    background: #fefce8;
    color: #a16207;
}

.guidance-details-status-resolved {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.guidance-details-status-closed {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #334155;
}

.guidance-details-status-cancelled {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.guidance-details-status-default {
    border-color: var(--theme-border);
    background: var(--theme-surface);
    color: var(--theme-muted);
}

/* ============================================================
   STUDENT GRID
   ============================================================ */

.guidance-details-student-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 18px;
}

.guidance-details-student-card {
    overflow: hidden;
    padding: 15px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-details-student-card:hover {
        transform: translateY(-2px);
        border-color: color-mix( in srgb, var(--theme-primary) 40%, var(--theme-border) );
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    }

    .guidance-details-student-card.primary {
        border-color: color-mix( in srgb, var(--theme-primary) 42%, var(--theme-border) );
        background: linear-gradient( 145deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 92%, var(--theme-primary) 8% ) );
    }

.guidance-details-student-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.guidance-details-student-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.guidance-details-student-photo-wrap {
    flex-shrink: 0;
}

.guidance-details-student-photo,
.guidance-details-student-initials {
    width: 50px;
    height: 50px;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 16px;
}

.guidance-details-student-photo {
    display: block;
    object-fit: cover;
}

.guidance-details-student-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 12px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-details-student-copy {
    min-width: 0;
}

    .guidance-details-student-copy strong,
    .guidance-details-student-copy span {
        display: block;
    }

    .guidance-details-student-copy strong {
        max-width: 230px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-details-student-copy span {
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
    }

.guidance-details-primary-badge {
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 8px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.guidance-details-student-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

    .guidance-details-student-meta > div,
    .guidance-details-student-remarks {
        min-width: 0;
        padding: 10px;
        border: 1px solid var(--theme-border);
        border-radius: 12px;
        background: var(--theme-surface);
    }

        .guidance-details-student-meta span,
        .guidance-details-student-meta strong,
        .guidance-details-student-remarks span {
            display: block;
        }

        .guidance-details-student-meta span,
        .guidance-details-student-remarks span {
            color: var(--theme-muted);
            font-size: 8px;
            font-weight: 850;
            text-transform: uppercase;
        }

    .guidance-details-student-meta strong {
        margin-top: 4px;
        color: var(--theme-text);
        font-size: 9px;
        font-weight: 900;
    }

.guidance-details-student-remarks {
    margin-top: 9px;
}

    .guidance-details-student-remarks p {
        margin: 5px 0 0;
        color: var(--theme-text);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.5;
        white-space: pre-line;
    }

/* ============================================================
   PRIMARY STUDENT SIDEBAR
   ============================================================ */

.guidance-details-primary-profile {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--theme-border);
}

.guidance-details-primary-photo-wrap {
    flex-shrink: 0;
}

.guidance-details-primary-photo,
.guidance-details-primary-initials {
    width: 68px;
    height: 68px;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 20px;
}

.guidance-details-primary-photo {
    display: block;
    object-fit: cover;
}

.guidance-details-primary-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 17px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-details-primary-copy {
    min-width: 0;
}

    .guidance-details-primary-copy strong,
    .guidance-details-primary-copy span {
        display: block;
    }

    .guidance-details-primary-copy strong {
        overflow: hidden;
        color: var(--theme-text);
        font-size: 13px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-details-primary-copy span {
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 700;
    }

/* ============================================================
   SIDEBAR LISTS
   ============================================================ */

.guidance-details-sidebar-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

    .guidance-details-sidebar-list > div {
        min-width: 0;
        padding: 11px;
        border: 1px solid var(--theme-border);
        border-radius: 13px;
        background: var(--theme-surface);
    }

        .guidance-details-sidebar-list > div > span {
            display: block;
            color: var(--theme-muted);
            font-size: 8px;
            font-weight: 850;
            letter-spacing: 0.03em;
            text-transform: uppercase;
        }

        .guidance-details-sidebar-list > div > strong {
            display: block;
            margin-top: 4px;
            color: var(--theme-text);
            font-size: 10px;
            font-weight: 900;
            line-height: 1.45;
        }

        .guidance-details-sidebar-list > div > div {
            margin-top: 6px;
        }

.guidance-details-sidebar-empty {
    padding: 20px 10px;
    text-align: center;
}

    .guidance-details-sidebar-empty i {
        color: var(--theme-primary-dark);
        font-size: 28px;
    }

    .guidance-details-sidebar-empty strong,
    .guidance-details-sidebar-empty span {
        display: block;
    }

    .guidance-details-sidebar-empty strong {
        margin-top: 9px;
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
    }

    .guidance-details-sidebar-empty span {
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
    }

/* ============================================================
   RECORD ACTIVITY
   ============================================================ */

.guidance-details-active-text,
.guidance-details-inactive-text {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.guidance-details-active-text {
    color: #15803d !important;
}

.guidance-details-inactive-text {
    color: #b91c1c !important;
}

/* ============================================================
   AUDIT
   ============================================================ */

.guidance-details-audit-list {
    display: grid;
    gap: 11px;
}

    .guidance-details-audit-list > div {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
        padding: 11px;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
        background: var(--theme-surface);
    }

.guidance-details-audit-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-details-audit-list span,
.guidance-details-audit-list strong,
.guidance-details-audit-list small {
    display: block;
}

.guidance-details-audit-list span {
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.guidance-details-audit-list strong {
    margin-top: 3px;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-details-audit-list small {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

/* ============================================================
   ACTION CARD
   ============================================================ */

.guidance-details-actions-card {
    position: sticky;
    top: 18px;
}

.guidance-details-action-list {
    display: grid;
    gap: 9px;
}

/* ============================================================
   TIMELINE
   ============================================================ */

.guidance-details-timeline {
    position: relative;
    display: grid;
    gap: 0;
    padding: 19px;
}

.guidance-details-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    padding-bottom: 20px;
}

    .guidance-details-timeline-item:last-child {
        padding-bottom: 0;
    }

    .guidance-details-timeline-item:not(:last-child)::before {
        position: absolute;
        top: 42px;
        bottom: 0;
        left: 18px;
        width: 2px;
        background: var(--theme-border);
        content: "";
    }

.guidance-details-timeline-marker {
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 13px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-details-timeline-content {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface);
}

.guidance-details-timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .guidance-details-timeline-header > div {
        min-width: 0;
    }

        .guidance-details-timeline-header strong,
        .guidance-details-timeline-header > div > span {
            display: block;
        }

    .guidance-details-timeline-header strong {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 950;
    }

    .guidance-details-timeline-header > div > span {
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 650;
    }

.guidance-details-timeline-transition {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
    padding: 9px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 700;
}

    .guidance-details-timeline-transition strong {
        color: var(--theme-text);
        font-weight: 900;
    }

    .guidance-details-timeline-transition i {
        color: var(--theme-primary-dark);
    }

.guidance-details-timeline-meta {
    margin-top: 9px;
}

    .guidance-details-timeline-meta span {
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 700;
    }

    .guidance-details-timeline-meta i {
        margin-right: 4px;
        color: var(--theme-primary-dark);
    }

.guidance-details-timeline-remarks {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
}

    .guidance-details-timeline-remarks span {
        display: block;
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 850;
        text-transform: uppercase;
    }

    .guidance-details-timeline-remarks p {
        margin: 5px 0 0;
        color: var(--theme-text);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.5;
        white-space: pre-line;
    }

/* ============================================================
   EMPTY STATES
   ============================================================ */

.guidance-details-empty-state {
    padding: 52px 22px;
    text-align: center;
}

    .guidance-details-empty-state.compact {
        padding: 38px 20px;
    }

.guidance-details-empty-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 25px;
    display: grid;
    place-items: center;
}

.guidance-details-empty-state strong {
    display: block;
    margin-top: 13px;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 950;
}

.guidance-details-empty-state p {
    max-width: 470px;
    margin: 6px auto 0;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.guidance-details-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
    .guidance-details-layout {
        grid-template-columns: 1fr;
    }

    .guidance-details-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guidance-details-actions-card {
        position: static;
    }
}

@media (max-width: 980px) {
    .guidance-details-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guidance-details-student-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .guidance-details-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-details-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-details-hero-actions,
    .guidance-details-hero-actions
    .guidance-details-button {
        width: 100%;
    }

    .guidance-details-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .guidance-details-page {
        gap: 16px;
    }

    .guidance-details-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-details-summary-grid,
    .guidance-details-info-grid,
    .guidance-details-student-meta {
        grid-template-columns: 1fr;
    }

    .guidance-details-info-item.full {
        grid-column: auto;
    }

    .guidance-details-card {
        border-radius: 18px;
    }

    .guidance-details-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px;
    }

    .guidance-details-card-body,
    .guidance-details-student-grid,
    .guidance-details-timeline {
        padding: 15px;
    }

    .guidance-details-student-header {
        flex-direction: column;
    }

    .guidance-details-primary-badge {
        align-self: flex-start;
    }

    .guidance-details-timeline-header {
        flex-direction: column;
    }

        .guidance-details-timeline-header
        .guidance-details-status {
            align-self: flex-start;
        }
}





/* ============================================================
   STUDENT AFFAIRS - EDIT GUIDANCE CASE
   Pattern aligned with Edit Discipline Case
   ============================================================ */

.guidance-edit-page,
.guidance-edit-page * {
    box-sizing: border-box;
}

.guidance-edit-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

/* ============================================================
   HERO
   ============================================================ */

.guidance-edit-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 15%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-edit-hero::after {
        position: absolute;
        right: -75px;
        bottom: -125px;
        width: 265px;
        height: 265px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 7%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-edit-hero-copy,
.guidance-edit-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-edit-hero-copy {
    min-width: 0;
    flex: 1;
}

.guidance-edit-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-edit-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
}

    .guidance-edit-title-row > div {
        min-width: 0;
    }

.guidance-edit-reference {
    display: block;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.guidance-edit-title-row h2 {
    margin: 3px 0 0;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.guidance-edit-hero-copy > p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-edit-status {
    min-height: 31px;
    padding: 7px 11px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 28%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.guidance-edit-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.guidance-edit-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.guidance-edit-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

    .guidance-edit-button:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .guidance-edit-button:focus-visible {
        outline: none;
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 4px var(--theme-primary-soft);
    }

    .guidance-edit-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: #ffffff;
    }

        .guidance-edit-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: #ffffff;
        }

    .guidance-edit-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ============================================================
   ALERTS
   ============================================================ */

.guidance-edit-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 17px;
}

    .guidance-edit-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.guidance-edit-alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.68);
    display: grid;
    place-items: center;
}

.guidance-edit-alert-copy {
    min-width: 0;
}

    .guidance-edit-alert-copy strong,
    .guidance-edit-alert-copy span {
        display: block;
    }

    .guidance-edit-alert-copy strong {
        font-size: 11px;
        font-weight: 950;
    }

    .guidance-edit-alert-copy span {
        margin-top: 2px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.45;
    }

.guidance-edit-alert-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-edit-alert-close:hover {
        background: rgba(255, 255, 255, 0.65);
    }

/* ============================================================
   FORM
   ============================================================ */

#guidanceCaseEditForm {
    display: grid;
    gap: 18px;
}

/* ============================================================
   VALIDATION
   ============================================================ */

.guidance-edit-validation-summary {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.55;
}

    .guidance-edit-validation-summary:empty {
        display: none;
    }

    .guidance-edit-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.guidance-edit-field-error,
.guidance-edit-student-validation {
    display: block;
    min-height: 14px;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.4;
}

.guidance-edit-student-validation {
    padding: 0 19px 16px;
}

/* ============================================================
   CARDS
   ============================================================ */

.guidance-edit-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-edit-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 8%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% ) );
}

.guidance-edit-card-heading {
    min-width: 0;
}

    .guidance-edit-card-heading strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .guidance-edit-card-heading strong i {
            color: var(--theme-primary-dark);
        }

    .guidance-edit-card-heading span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.guidance-edit-card-body {
    padding: 19px;
}

/* ============================================================
   FORM GRID
   ============================================================ */

.guidance-edit-form-grid,
.guidance-edit-student-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guidance-edit-field {
    min-width: 0;
}

    .guidance-edit-field.full {
        grid-column: 1 / -1;
    }

    .guidance-edit-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
        line-height: 1.4;
    }

        .guidance-edit-field label > span {
            margin-left: 2px;
            color: #dc2626;
        }

    .guidance-edit-field input:not([type="hidden"]):not([type="radio"]),
    .guidance-edit-field select,
    .guidance-edit-field textarea,
    .guidance-edit-search-input {
        width: 100%;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    }

    .guidance-edit-field input:not([type="hidden"]):not([type="radio"]),
    .guidance-edit-field select {
        min-height: 46px;
        padding: 10px 13px;
    }

    .guidance-edit-field textarea {
        min-height: 112px;
        padding: 12px 13px;
        line-height: 1.6;
        resize: vertical;
    }

        .guidance-edit-field input:focus,
        .guidance-edit-field select:focus,
        .guidance-edit-field textarea:focus,
        .guidance-edit-search-input:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

        .guidance-edit-field input::placeholder,
        .guidance-edit-field textarea::placeholder,
        .guidance-edit-search-input::placeholder {
            color: var(--theme-muted);
            opacity: 0.78;
            font-weight: 600;
        }

    .guidance-edit-field select {
        cursor: pointer;
    }

.guidance-edit-readonly-value {
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: color-mix( in srgb, var(--theme-surface) 97%, var(--theme-primary) 3% );
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.45;
    display: flex;
    align-items: center;
}

/* ============================================================
   HEADER ACTIONS
   ============================================================ */

.guidance-edit-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.guidance-edit-record-count {
    min-width: 54px;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
    border-radius: 12px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .guidance-edit-record-count strong {
        font-size: 12px;
        font-weight: 950;
    }

/* ============================================================
   STUDENT LIST
   ============================================================ */

.guidance-edit-student-list {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.guidance-edit-student-card {
    overflow: hidden;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

    .guidance-edit-student-card:hover {
        transform: translateY(-2px);
        border-color: color-mix( in srgb, var(--theme-primary) 36%, var(--theme-border) );
        box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
    }

    .guidance-edit-student-card.primary {
        border-color: color-mix( in srgb, var(--theme-primary) 42%, var(--theme-border) );
        background: linear-gradient( 145deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 94%, var(--theme-primary) 6% ) );
    }

.guidance-edit-student-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.guidance-edit-student {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guidance-edit-student-photo-wrap {
    flex-shrink: 0;
}

.guidance-edit-student-photo,
.guidance-edit-student-initials {
    width: 58px;
    height: 58px;
    border: 2px solid color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
    border-radius: 17px;
}

.guidance-edit-student-photo {
    display: block;
    object-fit: cover;
}

.guidance-edit-student-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 14px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-edit-student-copy {
    min-width: 0;
}

.guidance-edit-student-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

    .guidance-edit-student-name-row > strong {
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        line-height: 1.35;
    }

.guidance-edit-student-copy > span,
.guidance-edit-student-copy > small {
    display: block;
}

.guidance-edit-student-copy > span {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 750;
}

.guidance-edit-student-copy > small {
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
    line-height: 1.45;
}

.guidance-edit-primary-label {
    min-height: 24px;
    padding: 5px 8px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 8px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.guidance-edit-student-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================
   PRIMARY STUDENT CONTROL
   ============================================================ */

.guidance-edit-primary-choice {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

    .guidance-edit-primary-choice input {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

.guidance-edit-primary-control {
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.guidance-edit-primary-choice:hover
.guidance-edit-primary-control {
    border-color: var(--theme-primary);
    color: var(--theme-primary-dark);
}

.guidance-edit-primary-choice input:checked + .guidance-edit-primary-control {
    border-color: var(--theme-primary);
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    box-shadow: 0 0 0 3px color-mix( in srgb, var(--theme-primary) 11%, transparent );
}

.guidance-edit-primary-choice input:focus-visible + .guidance-edit-primary-control {
    outline: none;
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 4px var(--theme-primary-soft);
}

/* ============================================================
   STUDENT FORM
   ============================================================ */

.guidance-edit-student-form-grid {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--theme-border);
}

/* ============================================================
   ICON BUTTONS
   ============================================================ */

.guidance-edit-icon-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .guidance-edit-icon-button:hover {
        transform: translateY(-1px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .guidance-edit-icon-button.danger {
        border-color: #fecaca;
        background: #fff1f2;
        color: #b91c1c;
    }

        .guidance-edit-icon-button.danger:hover {
            border-color: #ef4444;
            background: #fee2e2;
            color: #991b1b;
        }

/* ============================================================
   EMPTY STUDENTS
   ============================================================ */

.guidance-edit-empty-students {
    padding: 46px 22px;
    border-top: 1px solid var(--theme-border);
    text-align: center;
}

.guidance-edit-empty-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 25px;
    display: grid;
    place-items: center;
}

.guidance-edit-empty-students > strong {
    display: block;
    margin-top: 13px;
    color: var(--theme-text);
    font-size: 13px;
    font-weight: 950;
}

.guidance-edit-empty-students > p {
    max-width: 480px;
    margin: 6px auto 14px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

/* ============================================================
   BOTTOM ACTION BAR
   ============================================================ */

.guidance-edit-actions {
    position: sticky;
    bottom: 14px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: color-mix( in srgb, var(--theme-surface) 92%, transparent );
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.guidance-edit-actions-copy {
    min-width: 0;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

    .guidance-edit-actions-copy i {
        flex-shrink: 0;
        margin-top: 1px;
        color: var(--theme-primary-dark);
    }

.guidance-edit-actions-buttons {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* ============================================================
   MODAL
   ============================================================ */

body.guidance-edit-modal-open {
    overflow: hidden;
}

.guidance-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 22px;
}

.guidance-edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.guidance-edit-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 23px;
    background: var(--theme-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.guidance-edit-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
}

    .guidance-edit-modal-header > div {
        min-width: 0;
    }

    .guidance-edit-modal-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .guidance-edit-modal-header strong i {
            color: var(--theme-primary-dark);
        }

    .guidance-edit-modal-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
    }

.guidance-edit-modal-body {
    min-height: 0;
    overflow-y: auto;
    padding: 18px;
}

.guidance-edit-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface);
}

    .guidance-edit-search-box > i {
        margin-left: 4px;
        color: var(--theme-primary-dark);
    }

.guidance-edit-search-input {
    min-height: 42px;
    padding: 9px 11px;
}

.guidance-edit-search-message {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 700;
}

.guidance-edit-search-results {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.guidance-edit-search-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-edit-search-result:hover {
        transform: translateY(-1px);
        border-color: color-mix( in srgb, var(--theme-primary) 38%, var(--theme-border) );
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
    }

.guidance-edit-search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-edit-search-result-copy {
    min-width: 0;
}

    .guidance-edit-search-result-copy strong,
    .guidance-edit-search-result-copy span,
    .guidance-edit-search-result-copy small {
        display: block;
    }

    .guidance-edit-search-result-copy strong {
        overflow: hidden;
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .guidance-edit-search-result-copy span {
        margin-top: 2px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 750;
    }

    .guidance-edit-search-result-copy small {
        margin-top: 3px;
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 650;
    }

/* ============================================================
   UTILITIES
   ============================================================ */

.guidance-edit-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .guidance-edit-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-edit-title-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-edit-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .guidance-edit-actions {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-edit-actions-buttons {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .guidance-edit-form-grid,
    .guidance-edit-student-form-grid {
        grid-template-columns: 1fr;
    }

    .guidance-edit-field.full {
        grid-column: auto;
    }

    .guidance-edit-student-header {
        flex-direction: column;
    }

    .guidance-edit-student-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .guidance-edit-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-edit-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .guidance-edit-search-result {
        grid-template-columns: auto minmax(0, 1fr);
    }

        .guidance-edit-search-result
        .guidance-edit-button {
            grid-column: 1 / -1;
            width: 100%;
        }
}

@media (max-width: 560px) {
    .guidance-edit-page {
        gap: 16px;
    }

    .guidance-edit-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-edit-hero-actions,
    .guidance-edit-hero-actions
    .guidance-edit-button {
        width: 100%;
    }

    .guidance-edit-card {
        border-radius: 18px;
    }

    .guidance-edit-card-header,
    .guidance-edit-card-body,
    .guidance-edit-student-list {
        padding: 15px;
    }

    .guidance-edit-student {
        align-items: flex-start;
    }

    .guidance-edit-student-photo,
    .guidance-edit-student-initials {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .guidance-edit-primary-choice,
    .guidance-edit-primary-control {
        width: 100%;
    }

    .guidance-edit-primary-control {
        justify-content: center;
    }

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

        .guidance-edit-actions-buttons
        .guidance-edit-button {
            width: 100%;
        }

    .guidance-edit-modal {
        padding: 10px;
    }

    .guidance-edit-modal-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .guidance-edit-search-box {
        grid-template-columns: auto minmax(0, 1fr);
    }

        .guidance-edit-search-box
        .guidance-edit-button {
            grid-column: 1 / -1;
            width: 100%;
        }
}





/* ============================================================
   GUIDANCE CASE STATUS WORKFLOW MODAL
   ============================================================ */

body.guidance-status-modal-open {
    overflow: hidden;
}

.guidance-details-button.primary {
    border-color: var(--theme-primary);
    background: var(--theme-primary);
    color: #ffffff;
}

    .guidance-details-button.primary:hover {
        border-color: var(--theme-primary-dark);
        background: var(--theme-primary-dark);
        color: #ffffff;
    }

.guidance-status-modal,
.guidance-status-modal * {
    box-sizing: border-box;
}

.guidance-status-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 22px;
}

.guidance-status-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.guidance-status-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min( 800px, calc(100vh - 44px) );
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 24px;
    background: var(--theme-surface);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

    .guidance-status-dialog form {
        min-height: 0;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
    }

.guidance-status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 10%, transparent ), transparent 40% ), var(--theme-surface);
}

    .guidance-status-header > div {
        min-width: 0;
    }

    .guidance-status-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .guidance-status-header strong i {
            color: var(--theme-primary-dark);
        }

    .guidance-status-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
    }

.guidance-status-icon-button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-status-icon-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

.guidance-status-body {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 15px;
    padding: 20px;
}

.guidance-status-field {
    min-width: 0;
}

    .guidance-status-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
    }

        .guidance-status-field label span {
            margin-left: 2px;
            color: #dc2626;
        }

    .guidance-status-field input,
    .guidance-status-field select,
    .guidance-status-field textarea {
        width: 100%;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .guidance-status-field input,
    .guidance-status-field select {
        min-height: 46px;
        padding: 10px 13px;
    }

    .guidance-status-field textarea {
        min-height: 110px;
        padding: 12px 13px;
        line-height: 1.6;
        resize: vertical;
    }

        .guidance-status-field input:focus,
        .guidance-status-field select:focus,
        .guidance-status-field textarea:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

.guidance-status-conditional {
    display: grid;
    gap: 14px;
    padding: 15px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 30%, var(--theme-border) );
    border-radius: 17px;
    background: color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% );
}

    .guidance-status-conditional.danger {
        border-color: #fecaca;
        background: #fff7f7;
    }

.guidance-status-conditional-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

    .guidance-status-conditional-header > i {
        margin-top: 1px;
        color: var(--theme-primary-dark);
        font-size: 17px;
    }

.guidance-status-conditional.danger
.guidance-status-conditional-header > i {
    color: #b91c1c;
}

.guidance-status-conditional-header strong,
.guidance-status-conditional-header span {
    display: block;
}

.guidance-status-conditional-header strong {
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 950;
}

.guidance-status-conditional-header span {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
}

.guidance-status-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 15px 20px;
    border-top: 1px solid var(--theme-border);
    background: var(--theme-surface);
}

.guidance-status-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .guidance-status-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .guidance-status-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: #ffffff;
    }

        .guidance-status-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: #ffffff;
        }

    .guidance-status-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.guidance-status-hidden {
    display: none !important;
}

@media (max-width: 560px) {
    .guidance-status-modal {
        padding: 10px;
    }

    .guidance-status-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 19px;
    }

    .guidance-status-header,
    .guidance-status-body,
    .guidance-status-footer {
        padding-left: 15px;
        padding-right: 15px;
    }

    .guidance-status-footer {
        flex-direction: column-reverse;
    }

    .guidance-status-button {
        width: 100%;
    }
}




/* ============================================================
   STUDENT AFFAIRS - GUIDANCE APPOINTMENT LIST
   ============================================================ */

.guidance-appointment-list-page,
.guidance-appointment-list-page * {
    box-sizing: border-box;
}

.guidance-appointment-list-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

/* ============================================================
   HERO
   ============================================================ */

.guidance-appointment-list-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 15%, transparent ), transparent 40% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-appointment-list-hero::after {
        position: absolute;
        right: -80px;
        bottom: -135px;
        width: 280px;
        height: 280px;
        border-radius: 50%;
        background: color-mix( in srgb, var(--theme-primary) 7%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-appointment-list-hero-copy,
.guidance-appointment-list-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-appointment-list-hero-copy {
    min-width: 0;
    flex: 1;
}

.guidance-appointment-list-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-appointment-list-hero h2 {
    margin: 8px 0 0;
    color: var(--theme-text);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.guidance-appointment-list-hero p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-appointment-list-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.guidance-appointment-list-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-appointment-list-button:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    }

    .guidance-appointment-list-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: #ffffff;
    }

        .guidance-appointment-list-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: #ffffff;
        }

    .guidance-appointment-list-button.full {
        width: 100%;
    }

/* ============================================================
   ALERTS
   ============================================================ */

.guidance-appointment-list-alert {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 17px;
}

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

    .guidance-appointment-list-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

.guidance-appointment-list-alert-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    place-items: center;
}

.guidance-appointment-list-alert-copy {
    min-width: 0;
}

    .guidance-appointment-list-alert-copy strong,
    .guidance-appointment-list-alert-copy span {
        display: block;
    }

    .guidance-appointment-list-alert-copy strong {
        font-size: 11px;
        font-weight: 950;
    }

    .guidance-appointment-list-alert-copy span {
        margin-top: 2px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.45;
    }

.guidance-appointment-list-alert-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-appointment-list-alert-close:hover {
        background: rgba(255, 255, 255, 0.7);
    }

.guidance-appointment-list-validation-summary {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
}

    .guidance-appointment-list-validation-summary:empty {
        display: none;
    }

/* ============================================================
   SUMMARY CARDS
   ============================================================ */

.guidance-appointment-list-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.guidance-appointment-list-summary-card {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    background: var(--theme-surface);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.guidance-appointment-list-summary-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 18px;
    display: grid;
    place-items: center;
}

.guidance-appointment-list-summary-card.scheduled
.guidance-appointment-list-summary-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.guidance-appointment-list-summary-card.completed
.guidance-appointment-list-summary-icon {
    background: #f0fdf4;
    color: #166534;
}

.guidance-appointment-list-summary-card.attention
.guidance-appointment-list-summary-icon {
    background: #fff7ed;
    color: #c2410c;
}

.guidance-appointment-list-summary-copy {
    min-width: 0;
}

    .guidance-appointment-list-summary-copy span,
    .guidance-appointment-list-summary-copy strong,
    .guidance-appointment-list-summary-copy small {
        display: block;
    }

    .guidance-appointment-list-summary-copy span {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .guidance-appointment-list-summary-copy strong {
        margin-top: 3px;
        color: var(--theme-text);
        font-size: 22px;
        font-weight: 950;
        line-height: 1.1;
    }

    .guidance-appointment-list-summary-copy small {
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 650;
    }

/* ============================================================
   FILTER CARD
   ============================================================ */

.guidance-appointment-list-filter-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 21px;
    background: var(--theme-surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.guidance-appointment-list-filter-toggle {
    width: 100%;
    min-height: 76px;
    padding: 16px 18px;
    border: 0;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.guidance-appointment-list-filter-toggle-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.guidance-appointment-list-filter-toggle-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-appointment-list-filter-toggle-copy strong,
.guidance-appointment-list-filter-toggle-copy small {
    display: block;
}

.guidance-appointment-list-filter-toggle-copy strong {
    font-size: 13px;
    font-weight: 950;
}

.guidance-appointment-list-filter-toggle-copy small {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
}

.guidance-appointment-list-filter-toggle-meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.guidance-appointment-list-filter-badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 8px;
    font-weight: 900;
}

[data-guidance-appointment-filter-chevron] {
    transition: transform 0.18s ease;
}

    [data-guidance-appointment-filter-chevron].rotated {
        transform: rotate(180deg);
    }

.guidance-appointment-list-filter-body {
    padding: 18px;
    border-top: 1px solid var(--theme-border);
}

.guidance-appointment-list-filter-form {
    display: grid;
    gap: 16px;
}

.guidance-appointment-list-filter-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(150px, 1fr));
    gap: 13px;
}

.guidance-appointment-list-field {
    min-width: 0;
}

    .guidance-appointment-list-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 9px;
        font-weight: 900;
    }

    .guidance-appointment-list-field input,
    .guidance-appointment-list-field select {
        width: 100%;
        min-height: 44px;
        padding: 10px 12px;
        border: 1px solid var(--theme-border);
        border-radius: 13px;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 10px;
        font-weight: 700;
        outline: none;
    }

        .guidance-appointment-list-field input:focus,
        .guidance-appointment-list-field select:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

.guidance-appointment-list-search-control {
    position: relative;
}

    .guidance-appointment-list-search-control > i {
        position: absolute;
        top: 50%;
        left: 13px;
        color: var(--theme-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

    .guidance-appointment-list-search-control input {
        padding-left: 38px;
    }

.guidance-appointment-list-filter-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

/* ============================================================
   RESULTS CARD
   ============================================================ */

.guidance-appointment-list-results-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-appointment-list-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
}

.guidance-appointment-list-results-heading strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
}

    .guidance-appointment-list-results-heading strong i {
        color: var(--theme-primary-dark);
    }

.guidance-appointment-list-results-heading span {
    display: block;
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
}

.guidance-appointment-list-active-filter {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 8px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   TABLE
   ============================================================ */

.guidance-appointment-list-table-wrap {
    overflow-x: auto;
}

.guidance-appointment-list-table {
    width: 100%;
    min-width: 1120px;
    border-collapse: collapse;
}

    .guidance-appointment-list-table th,
    .guidance-appointment-list-table td {
        padding: 14px 15px;
        border-bottom: 1px solid var(--theme-border);
        text-align: left;
        vertical-align: middle;
    }

    .guidance-appointment-list-table th {
        background: color-mix( in srgb, var(--theme-surface) 97%, var(--theme-primary) 3% );
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 950;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .guidance-appointment-list-table td {
        color: var(--theme-text);
        font-size: 10px;
    }

    .guidance-appointment-list-table tbody tr:hover {
        background: color-mix( in srgb, var(--theme-surface) 97%, var(--theme-primary) 3% );
    }

.guidance-appointment-list-action-column {
    width: 74px;
    text-align: center !important;
}

.guidance-appointment-list-appointment-cell strong,
.guidance-appointment-list-appointment-cell span {
    display: block;
}

.guidance-appointment-list-reference {
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 950;
    text-decoration: none;
}

    .guidance-appointment-list-reference:hover {
        text-decoration: underline;
    }

.guidance-appointment-list-appointment-cell strong {
    margin-top: 4px;
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.35;
}

.guidance-appointment-list-appointment-cell span {
    margin-top: 5px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-appointment-list-schedule strong,
.guidance-appointment-list-schedule span {
    display: block;
}

.guidance-appointment-list-schedule strong {
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-appointment-list-schedule span {
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 700;
}

.guidance-appointment-list-student {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guidance-appointment-list-student-photo-wrap {
    flex-shrink: 0;
}

.guidance-appointment-list-student-photo,
.guidance-appointment-list-student-initials {
    width: 42px;
    height: 42px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
}

.guidance-appointment-list-student-photo {
    display: block;
    object-fit: cover;
}

.guidance-appointment-list-student-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 10px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-appointment-list-student-copy {
    min-width: 0;
}

    .guidance-appointment-list-student-copy strong,
    .guidance-appointment-list-student-copy span,
    .guidance-appointment-list-student-copy small {
        display: block;
    }

    .guidance-appointment-list-student-copy strong {
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
    }

    .guidance-appointment-list-student-copy span {
        margin-top: 2px;
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 700;
    }

    .guidance-appointment-list-student-copy small {
        margin-top: 3px;
        color: var(--theme-primary-dark);
        font-size: 8px;
        font-weight: 850;
    }

.guidance-appointment-list-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guidance-appointment-list-type-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-appointment-list-type strong {
    font-size: 9px;
    font-weight: 850;
}

.guidance-appointment-list-assignment strong,
.guidance-appointment-list-assignment span {
    display: block;
}

.guidance-appointment-list-assignment strong {
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-appointment-list-assignment span {
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-appointment-list-row-actions {
    display: flex;
    justify-content: center;
}

.guidance-appointment-list-icon-button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-text);
    text-decoration: none;
    display: grid;
    place-items: center;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

    .guidance-appointment-list-icon-button:hover {
        transform: translateY(-1px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

/* ============================================================
   STATUS PILLS
   ============================================================ */

.guidance-appointment-list-status {
    min-height: 29px;
    padding: 7px 9px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 8px;
    font-weight: 900;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .guidance-appointment-list-status.draft {
        border-color: #cbd5e1;
        background: #f8fafc;
        color: #475569;
    }

    .guidance-appointment-list-status.scheduled {
        border-color: #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
    }

    .guidance-appointment-list-status.completed {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .guidance-appointment-list-status.rescheduled {
        border-color: #fed7aa;
        background: #fff7ed;
        color: #c2410c;
    }

    .guidance-appointment-list-status.cancelled {
        border-color: #fecaca;
        background: #fff1f2;
        color: #b91c1c;
    }

    .guidance-appointment-list-status.no-show {
        border-color: #fca5a5;
        background: #fef2f2;
        color: #7f1d1d;
    }

/* ============================================================
   MOBILE CARDS
   ============================================================ */

.guidance-appointment-list-mobile-grid {
    display: none;
    gap: 13px;
    padding: 15px;
}

.guidance-appointment-list-mobile-card {
    padding: 15px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
}

.guidance-appointment-list-mobile-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .guidance-appointment-list-mobile-header h3 {
        margin: 4px 0 0;
        color: var(--theme-text);
        font-size: 13px;
        font-weight: 950;
        line-height: 1.35;
    }

.guidance-appointment-list-mobile-schedule {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 13px;
    padding: 10px 11px;
    border-radius: 13px;
    background: color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% );
}

    .guidance-appointment-list-mobile-schedule > div {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 750;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

.guidance-appointment-list-mobile-student {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.guidance-appointment-list-mobile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 14px;
}

    .guidance-appointment-list-mobile-details > div {
        min-width: 0;
        padding: 10px 11px;
        border: 1px solid var(--theme-border);
        border-radius: 13px;
    }

    .guidance-appointment-list-mobile-details span,
    .guidance-appointment-list-mobile-details strong {
        display: block;
    }

    .guidance-appointment-list-mobile-details span {
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .guidance-appointment-list-mobile-details strong {
        margin-top: 4px;
        color: var(--theme-text);
        font-size: 9px;
        font-weight: 850;
        line-height: 1.4;
    }

.guidance-appointment-list-mobile-actions {
    margin-top: 14px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.guidance-appointment-list-empty-state {
    padding: 54px 24px;
    text-align: center;
}

.guidance-appointment-list-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 25px;
    display: grid;
    place-items: center;
}

.guidance-appointment-list-empty-state > strong {
    display: block;
    margin-top: 14px;
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
}

.guidance-appointment-list-empty-state > p {
    max-width: 540px;
    margin: 7px auto 16px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-appointment-list-empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.guidance-appointment-list-hidden {
    display: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

    .guidance-appointment-list-field.search {
        grid-column: 1 / -1;
    }
}

@media (max-width: 980px) {
    .guidance-appointment-list-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .guidance-appointment-list-table-wrap {
        display: none;
    }

    .guidance-appointment-list-mobile-grid {
        display: grid;
    }
}

@media (max-width: 720px) {
    .guidance-appointment-list-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-appointment-list-hero-actions,
    .guidance-appointment-list-hero-actions
    .guidance-appointment-list-button {
        width: 100%;
    }

    .guidance-appointment-list-filter-grid {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-list-field.search {
        grid-column: auto;
    }

    .guidance-appointment-list-filter-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

        .guidance-appointment-list-filter-actions
        .guidance-appointment-list-button {
            width: 100%;
        }

    .guidance-appointment-list-results-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .guidance-appointment-list-page {
        gap: 16px;
    }

    .guidance-appointment-list-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-appointment-list-summary-grid {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-list-filter-toggle {
        align-items: flex-start;
    }

    .guidance-appointment-list-filter-toggle-meta {
        align-items: flex-end;
        flex-direction: column;
    }

    .guidance-appointment-list-mobile-header {
        flex-direction: column;
    }

    .guidance-appointment-list-mobile-details {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-list-empty-actions {
        flex-direction: column;
    }

        .guidance-appointment-list-empty-actions
        .guidance-appointment-list-button {
            width: 100%;
        }
}


/* ============================================================
   STUDENT AFFAIRS - CREATE GUIDANCE APPOINTMENT
   ============================================================ */

.guidance-appointment-create-page,
.guidance-appointment-create-page * {
    box-sizing: border-box;
}

.guidance-appointment-create-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

.guidance-appointment-create-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 15%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 95%, var(--theme-primary) 5% ) );
    box-shadow: var(--theme-shadow);
}

    .guidance-appointment-create-hero::after {
        position: absolute;
        right: -75px;
        bottom: -125px;
        width: 265px;
        height: 265px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 7%, transparent );
        content: "";
        pointer-events: none;
    }

.guidance-appointment-create-hero-copy,
.guidance-appointment-create-hero-actions {
    position: relative;
    z-index: 1;
}

.guidance-appointment-create-hero-copy {
    min-width: 0;
    flex: 1;
}

.guidance-appointment-create-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-appointment-create-hero h2 {
    margin: 8px 0 0;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
    letter-spacing: -0.045em;
}

.guidance-appointment-create-hero p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.guidance-appointment-create-hero-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

#guidanceAppointmentForm {
    display: grid;
    gap: 18px;
}

.guidance-appointment-create-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 390px);
    gap: 20px;
    align-items: start;
}

.guidance-appointment-create-main,
.guidance-appointment-create-sidebar {
    min-width: 0;
    display: grid;
    gap: 18px;
}

.guidance-appointment-create-sidebar {
    position: sticky;
    top: 18px;
}

.guidance-appointment-create-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-appointment-create-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 8%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-surface) 96%, var(--theme-primary) 4% ) );
}

    .guidance-appointment-create-card-header > div {
        min-width: 0;
    }

    .guidance-appointment-create-card-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .guidance-appointment-create-card-header strong i {
            color: var(--theme-primary-dark);
        }

    .guidance-appointment-create-card-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.guidance-appointment-create-card-body {
    padding: 19px;
}

    .guidance-appointment-create-card-body.no-padding {
        padding: 0;
    }

.guidance-appointment-create-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guidance-appointment-create-field {
    min-width: 0;
}

    .guidance-appointment-create-field.full {
        grid-column: 1 / -1;
    }

    .guidance-appointment-create-field label {
        display: block;
        margin-bottom: 7px;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 900;
    }

        .guidance-appointment-create-field label span {
            margin-left: 2px;
            color: #dc2626;
        }

    .guidance-appointment-create-field input,
    .guidance-appointment-create-field select,
    .guidance-appointment-create-field textarea,
    .guidance-appointment-create-search-input {
        width: 100%;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
        background: var(--theme-surface);
        color: var(--theme-text);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .guidance-appointment-create-field input,
    .guidance-appointment-create-field select {
        min-height: 46px;
        padding: 10px 13px;
    }

    .guidance-appointment-create-field textarea {
        min-height: 112px;
        padding: 12px 13px;
        line-height: 1.6;
        resize: vertical;
    }

        .guidance-appointment-create-field input:focus,
        .guidance-appointment-create-field select:focus,
        .guidance-appointment-create-field textarea:focus,
        .guidance-appointment-create-search-input:focus {
            border-color: var(--theme-primary);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

.guidance-appointment-create-help-text {
    display: block;
    margin-top: 6px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-appointment-create-field-error,
.guidance-appointment-create-student-validation {
    display: block;
    min-height: 14px;
    margin-top: 4px;
    color: #b91c1c;
    font-size: 9px;
    font-weight: 750;
}

.guidance-appointment-create-student-validation {
    padding: 0 19px 16px;
}

.guidance-appointment-create-validation-summary {
    padding: 14px 16px;
    border: 1px solid #fecaca;
    border-radius: 16px;
    background: #fff1f2;
    color: #991b1b;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.55;
}

    .guidance-appointment-create-validation-summary:empty {
        display: none;
    }

    .guidance-appointment-create-validation-summary ul {
        margin: 0;
        padding-left: 18px;
    }

.guidance-appointment-create-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .guidance-appointment-create-button:hover {
        transform: translateY(-2px);
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .guidance-appointment-create-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: #ffffff;
    }

        .guidance-appointment-create-button.primary:hover {
            border-color: var(--theme-primary-dark);
            background: var(--theme-primary-dark);
            color: #ffffff;
        }

    .guidance-appointment-create-button.full {
        width: 100%;
    }

    .guidance-appointment-create-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
    }

.guidance-appointment-create-guideline-list {
    display: grid;
    gap: 10px;
}

    .guidance-appointment-create-guideline-list > div {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.45;
    }

    .guidance-appointment-create-guideline-list i {
        flex-shrink: 0;
        margin-top: 1px;
        color: var(--theme-primary-dark);
    }

.guidance-appointment-create-save-actions {
    display: grid;
    gap: 9px;
}

.guidance-appointment-create-student-table-wrap {
    overflow-x: auto;
}

.guidance-appointment-create-student-table {
    width: 100%;
    min-width: 960px;
    border-collapse: collapse;
}

    .guidance-appointment-create-student-table th,
    .guidance-appointment-create-student-table td {
        padding: 13px 14px;
        border-bottom: 1px solid var(--theme-border);
        text-align: left;
        vertical-align: middle;
    }

    .guidance-appointment-create-student-table th {
        background: color-mix( in srgb, var(--theme-surface) 97%, var(--theme-primary) 3% );
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 950;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .guidance-appointment-create-student-table td {
        color: var(--theme-text);
        font-size: 10px;
    }

.guidance-appointment-create-action-column {
    width: 72px;
    text-align: center !important;
}

.guidance-appointment-create-student-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.guidance-appointment-create-student-photo-wrap {
    flex-shrink: 0;
}

.guidance-appointment-create-student-photo,
.guidance-appointment-create-student-initials {
    width: 42px;
    height: 42px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
}

.guidance-appointment-create-student-photo {
    display: block;
    object-fit: cover;
}

.guidance-appointment-create-student-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 10px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-appointment-create-student-copy strong,
.guidance-appointment-create-student-copy span {
    display: block;
}

.guidance-appointment-create-student-copy strong {
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 900;
}

.guidance-appointment-create-student-copy span {
    margin-top: 2px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 700;
}

.guidance-appointment-create-table-textarea {
    width: 100%;
    min-height: 62px;
    padding: 9px 10px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 9px;
    font-weight: 650;
    resize: vertical;
    outline: none;
}

    .guidance-appointment-create-table-textarea:focus {
        border-color: var(--theme-primary);
        box-shadow: 0 0 0 3px var(--theme-primary-soft);
    }

.guidance-appointment-create-primary-choice {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

    .guidance-appointment-create-primary-choice input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .guidance-appointment-create-primary-choice span {
        width: 24px;
        height: 24px;
        border: 2px solid var(--theme-border);
        border-radius: 50%;
        background: var(--theme-surface);
        display: grid;
        place-items: center;
    }

    .guidance-appointment-create-primary-choice
    input:checked + span {
        border-color: var(--theme-primary);
        box-shadow: inset 0 0 0 5px var(--theme-surface);
        background: var(--theme-primary);
    }

.guidance-appointment-create-icon-button {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-text);
    cursor: pointer;
    display: grid;
    place-items: center;
}

    .guidance-appointment-create-icon-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .guidance-appointment-create-icon-button.danger {
        border-color: #fecaca;
        background: #fff1f2;
        color: #b91c1c;
    }

.guidance-appointment-create-empty-students {
    padding: 48px 22px;
    text-align: center;
}

    .guidance-appointment-create-empty-students > div {
        width: 58px;
        height: 58px;
        margin: 0 auto;
        border-radius: 18px;
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        font-size: 23px;
        display: grid;
        place-items: center;
    }

    .guidance-appointment-create-empty-students strong,
    .guidance-appointment-create-empty-students span {
        display: block;
    }

    .guidance-appointment-create-empty-students strong {
        margin-top: 12px;
        color: var(--theme-text);
        font-size: 13px;
        font-weight: 950;
    }

    .guidance-appointment-create-empty-students span {
        max-width: 470px;
        margin: 6px auto 0;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
    }

body.guidance-appointment-create-modal-open {
    overflow: hidden;
}

.guidance-appointment-create-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 22px;
}

.guidance-appointment-create-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(4px);
}

.guidance-appointment-create-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: calc(100vh - 44px);
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 23px;
    background: var(--theme-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.guidance-appointment-create-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
}

    .guidance-appointment-create-modal-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

    .guidance-appointment-create-modal-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
    }

.guidance-appointment-create-modal-body {
    overflow-y: auto;
    padding: 18px;
}

.guidance-appointment-create-search-box {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
}

    .guidance-appointment-create-search-box > i {
        color: var(--theme-primary-dark);
    }

.guidance-appointment-create-search-input {
    min-height: 42px;
    padding: 9px 11px;
}

.guidance-appointment-create-search-message {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--theme-border);
    border-radius: 12px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 700;
}

.guidance-appointment-create-search-results {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.guidance-appointment-create-search-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--theme-border);
    border-radius: 15px;
    background: var(--theme-surface);
}

.guidance-appointment-create-search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-appointment-create-search-result-copy strong,
.guidance-appointment-create-search-result-copy span,
.guidance-appointment-create-search-result-copy small {
    display: block;
}

.guidance-appointment-create-search-result-copy strong {
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 950;
}

.guidance-appointment-create-search-result-copy span {
    margin-top: 2px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 750;
}

.guidance-appointment-create-search-result-copy small {
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 8px;
    font-weight: 650;
}

.guidance-appointment-create-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .guidance-appointment-create-layout {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-create-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .guidance-appointment-create-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-appointment-create-hero-actions,
    .guidance-appointment-create-hero-actions
    .guidance-appointment-create-button {
        width: 100%;
    }

    .guidance-appointment-create-field-grid {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-create-field.full {
        grid-column: auto;
    }

    .guidance-appointment-create-card-header {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .guidance-appointment-create-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .guidance-appointment-create-card-header,
    .guidance-appointment-create-card-body {
        padding: 15px;
    }

    .guidance-appointment-create-search-box,
    .guidance-appointment-create-search-result {
        grid-template-columns: auto minmax(0, 1fr);
    }

        .guidance-appointment-create-search-box
        .guidance-appointment-create-button,
        .guidance-appointment-create-search-result
        .guidance-appointment-create-button {
            grid-column: 1 / -1;
            width: 100%;
        }

    .guidance-appointment-create-modal {
        padding: 10px;
    }

    .guidance-appointment-create-modal-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }
}


/* ============================================================
   STUDENT AFFAIRS - GUIDANCE APPOINTMENT DETAILS
   ============================================================ */

.guidance-appointment-details-page,
.guidance-appointment-details-page * {
    box-sizing: border-box;
}

.guidance-appointment-details-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
}

.guidance-appointment-details-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: var(--theme-surface);
    box-shadow: var(--theme-shadow);
}

.guidance-appointment-details-hero-copy {
    min-width: 0;
    flex: 1;
}

.guidance-appointment-details-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.guidance-appointment-details-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-top: 8px;
}

    .guidance-appointment-details-title-row h2 {
        margin: 0;
        color: var(--theme-text);
        font-size: clamp(24px, 3vw, 34px);
        font-weight: 950;
    }

    .guidance-appointment-details-title-row p {
        margin: 7px 0 0;
        color: var(--theme-muted);
        font-size: 11px;
        font-weight: 800;
    }

.guidance-appointment-details-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.guidance-appointment-details-button {
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .guidance-appointment-details-button.primary {
        border-color: var(--theme-primary);
        background: var(--theme-primary);
        color: #fff;
    }

    .guidance-appointment-details-button.full {
        width: 100%;
    }

.guidance-appointment-details-status {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 950;
    white-space: nowrap;
}

    .guidance-appointment-details-status.draft {
        background: #f1f5f9;
        color: #475569;
    }

    .guidance-appointment-details-status.scheduled {
        background: #dbeafe;
        color: #1d4ed8;
    }

    .guidance-appointment-details-status.completed {
        background: #dcfce7;
        color: #15803d;
    }

    .guidance-appointment-details-status.rescheduled {
        background: #fef3c7;
        color: #b45309;
    }

    .guidance-appointment-details-status.cancelled,
    .guidance-appointment-details-status.no-show {
        background: #fee2e2;
        color: #b91c1c;
    }

.guidance-appointment-details-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.guidance-appointment-details-summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: var(--theme-surface);
}

.guidance-appointment-details-summary-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    display: grid;
    place-items: center;
}

.guidance-appointment-details-summary-card span,
.guidance-appointment-details-summary-card strong {
    display: block;
}

.guidance-appointment-details-summary-card span {
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 800;
}

.guidance-appointment-details-summary-card strong {
    margin-top: 3px;
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 950;
}

.guidance-appointment-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 380px);
    gap: 20px;
    align-items: start;
}

.guidance-appointment-details-main,
.guidance-appointment-details-sidebar {
    display: grid;
    gap: 18px;
}

.guidance-appointment-details-sidebar {
    position: sticky;
    top: 18px;
}

.guidance-appointment-details-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.guidance-appointment-details-card-header {
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
}

    .guidance-appointment-details-card-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

    .guidance-appointment-details-card-header span {
        display: block;
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
    }

.guidance-appointment-details-card-body {
    padding: 19px;
}

    .guidance-appointment-details-card-body.no-padding {
        padding: 0;
    }

.guidance-appointment-details-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

    .guidance-appointment-details-info-grid div,
    .guidance-appointment-details-record-list div {
        padding: 13px 14px;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
    }

    .guidance-appointment-details-info-grid dt,
    .guidance-appointment-details-record-list dt {
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 950;
        text-transform: uppercase;
    }

    .guidance-appointment-details-info-grid dd,
    .guidance-appointment-details-record-list dd {
        margin: 5px 0 0;
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 800;
    }

.guidance-appointment-details-content-block + .guidance-appointment-details-content-block {
    margin-top: 18px;
}

.guidance-appointment-details-content-block span {
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.guidance-appointment-details-content-block p {
    margin: 7px 0 0;
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.7;
    white-space: pre-line;
}

.guidance-appointment-details-student-list {
    display: grid;
}

.guidance-appointment-details-student {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--theme-border);
}

    .guidance-appointment-details-student:last-child {
        border-bottom: 0;
    }

.guidance-appointment-details-student-photo,
.guidance-appointment-details-student-initials {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.guidance-appointment-details-student-photo {
    object-fit: cover;
}

.guidance-appointment-details-student-initials {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    display: grid;
    place-items: center;
}

.guidance-appointment-details-student-copy {
    min-width: 0;
    flex: 1;
}

.guidance-appointment-details-student-name-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.guidance-appointment-details-student-copy strong {
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 950;
}

.guidance-appointment-details-student-copy > span,
.guidance-appointment-details-student-copy small {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 700;
}

.guidance-appointment-details-student-copy p {
    margin: 8px 0 0;
    color: var(--theme-text);
    font-size: 9px;
    line-height: 1.5;
}

.guidance-appointment-details-primary-badge {
    padding: 5px 8px;
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 8px;
    font-weight: 950;
}

.guidance-appointment-details-timeline {
    display: grid;
    gap: 0;
}

.guidance-appointment-details-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
}

    .guidance-appointment-details-timeline-item:not(:last-child)::before {
        position: absolute;
        top: 16px;
        bottom: -4px;
        left: 6px;
        width: 2px;
        background: var(--theme-border);
        content: "";
    }

.guidance-appointment-details-timeline-marker {
    width: 14px;
    height: 14px;
    margin-top: 4px;
    border: 3px solid var(--theme-primary-soft);
    border-radius: 50%;
    background: var(--theme-primary);
    z-index: 1;
}

.guidance-appointment-details-timeline-content {
    padding-bottom: 18px;
}

.guidance-appointment-details-timeline-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

    .guidance-appointment-details-timeline-heading strong {
        color: var(--theme-text);
        font-size: 10px;
        font-weight: 950;
    }

    .guidance-appointment-details-timeline-heading time {
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 700;
    }

.guidance-appointment-details-timeline-content p {
    margin: 6px 0 0;
    color: var(--theme-text);
    font-size: 9px;
    line-height: 1.5;
}

.guidance-appointment-details-timeline-content small {
    display: block;
    margin-top: 5px;
    color: var(--theme-muted);
    font-size: 8px;
}

.guidance-appointment-details-action-list,
.guidance-appointment-details-record-list {
    display: grid;
    gap: 9px;
    margin: 0;
}

.guidance-appointment-details-empty {
    padding: 40px 20px;
    text-align: center;
}

    .guidance-appointment-details-empty i,
    .guidance-appointment-details-empty strong,
    .guidance-appointment-details-empty span {
        display: block;
    }

    .guidance-appointment-details-empty i {
        color: var(--theme-primary-dark);
        font-size: 26px;
    }

    .guidance-appointment-details-empty strong {
        margin-top: 9px;
        color: var(--theme-text);
        font-size: 12px;
    }

    .guidance-appointment-details-empty span {
        margin-top: 4px;
        color: var(--theme-muted);
        font-size: 9px;
    }

    .guidance-appointment-details-empty.compact {
        padding: 20px;
    }

.guidance-appointment-details-alert {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
}

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

    .guidance-appointment-details-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

    .guidance-appointment-details-alert button {
        border: 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

.guidance-appointment-details-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .guidance-appointment-details-layout {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-details-sidebar {
        position: static;
    }

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

@media (max-width: 720px) {
    .guidance-appointment-details-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .guidance-appointment-details-hero-actions,
    .guidance-appointment-details-hero-actions
    .guidance-appointment-details-button {
        width: 100%;
    }

    .guidance-appointment-details-title-row {
        flex-direction: column;
    }

    .guidance-appointment-details-summary-grid,
    .guidance-appointment-details-info-grid {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-details-timeline-heading {
        flex-direction: column;
    }
}





/* ============================================================
   GUIDANCE APPOINTMENT STATUS WORKFLOW
   ============================================================ */

.guidance-appointment-details-button.warning {
    border: 1px solid #ff6b13;
    background: #fff5ee;
    color: #e95200;
}

    .guidance-appointment-details-button.warning:hover {
        background: #ff6b13;
        color: #ffffff;
    }

.guidance-appointment-status-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.guidance-appointment-status-modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 24px;
    background: var(--surface-color, #ffffff);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.guidance-appointment-status-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

    .guidance-appointment-status-modal-header > div {
        display: grid;
        gap: 6px;
    }

    .guidance-appointment-status-modal-header strong {
        display: flex;
        align-items: center;
        gap: 9px;
        font-size: 1.05rem;
        color: var(--text-color, #172033);
    }

        .guidance-appointment-status-modal-header strong i {
            color: #ff6b13;
        }

    .guidance-appointment-status-modal-header span {
        font-size: 0.88rem;
        color: var(--muted-text-color, #64748b);
    }

.guidance-appointment-status-modal-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
}

.guidance-appointment-status-form {
    display: grid;
    gap: 20px;
    padding: 24px;
}

.guidance-appointment-status-field {
    display: grid;
    gap: 8px;
}

    .guidance-appointment-status-field label {
        font-size: 0.84rem;
        font-weight: 800;
        color: var(--text-color, #172033);
    }

    .guidance-appointment-status-field input,
    .guidance-appointment-status-field select,
    .guidance-appointment-status-field textarea {
        width: 100%;
        border: 1px solid var(--border-color, #d9e0ea);
        border-radius: 14px;
        background: var(--surface-color, #ffffff);
        color: var(--text-color, #172033);
        padding: 12px 14px;
        font: inherit;
        outline: none;
    }

    .guidance-appointment-status-field textarea {
        resize: vertical;
        min-height: 112px;
    }

        .guidance-appointment-status-field input:focus,
        .guidance-appointment-status-field select:focus,
        .guidance-appointment-status-field textarea:focus {
            border-color: #ff6b13;
            box-shadow: 0 0 0 3px rgba(255, 107, 19, 0.14);
        }

    .guidance-appointment-status-field small {
        color: var(--muted-text-color, #64748b);
    }

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

.guidance-appointment-status-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 4px;
}

@media (max-width: 720px) {
    .guidance-appointment-status-grid {
        grid-template-columns: 1fr;
    }

    .guidance-appointment-status-modal-actions {
        flex-direction: column-reverse;
    }

        .guidance-appointment-status-modal-actions .guidance-appointment-details-button {
            width: 100%;
        }
}









/* ============================================================
   STUDENT AFFAIRS REPORTS
   Fully aligned with Admin Theme variables
   ============================================================ */

.student-affairs-report-page,
.student-affairs-report-page * {
    box-sizing: border-box;
}

.student-affairs-report-page {
    display: grid;
    gap: 20px;
    padding-bottom: 28px;
    color: var(--theme-text);
}


/* ============================================================
   HERO
   ============================================================ */

.student-affairs-report-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    overflow: hidden;
    padding: 25px 27px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 16%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 82%, var(--theme-surface) ) );
    box-shadow: var(--theme-shadow);
}

    .student-affairs-report-hero::after {
        content: "";
        position: absolute;
        right: -75px;
        bottom: -115px;
        width: 255px;
        height: 255px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 8%, transparent );
        pointer-events: none;
    }

.student-affairs-report-hero-copy,
.student-affairs-report-hero-actions {
    position: relative;
    z-index: 1;
}

.student-affairs-report-hero-copy {
    min-width: 0;
}

.student-affairs-report-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

    .student-affairs-report-eyebrow i {
        font-size: 14px;
    }

.student-affairs-report-hero h1 {
    margin: 7px 0 6px;
    color: var(--theme-text);
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.student-affairs-report-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.student-affairs-report-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.student-affairs-report-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .student-affairs-report-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
        transform: translateY(-2px);
    }

    .student-affairs-report-button.primary {
        border-color: transparent;
        background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
        color: var(--theme-primary-text);
        box-shadow: 0 14px 30px color-mix( in srgb, var(--theme-primary) 25%, transparent );
    }

        .student-affairs-report-button.primary:hover {
            border-color: transparent;
            color: var(--theme-primary-text);
            filter: brightness(0.98);
        }

    .student-affairs-report-button.secondary {
        border-color: var(--theme-border);
        background: var(--theme-surface);
        color: var(--theme-text);
    }

        .student-affairs-report-button.secondary:hover {
            border-color: var(--theme-primary);
            background: var(--theme-primary-soft);
            color: var(--theme-primary-dark);
        }

    .student-affairs-report-button.compact {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 11px;
    }

    .student-affairs-report-button:disabled {
        opacity: 0.65;
        pointer-events: none;
        transform: none;
    }


/* ============================================================
   ALERTS
   Semantic status colors intentionally remain distinct
   ============================================================ */

.student-affairs-report-alert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 46px 14px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

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

    .student-affairs-report-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

    .student-affairs-report-alert button {
        position: absolute;
        top: 50%;
        right: 12px;
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: inherit;
        font-size: 17px;
        cursor: pointer;
        transform: translateY(-50%);
    }

        .student-affairs-report-alert button:hover {
            background: color-mix( in srgb, currentColor 8%, transparent );
        }


/* ============================================================
   COMMON CARD HEADER
   ============================================================ */

.student-affairs-report-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 9%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 82%, var(--theme-surface) ) );
}

    .student-affairs-report-card-header > div {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .student-affairs-report-card-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .student-affairs-report-card-header strong i {
            color: var(--theme-primary-dark);
        }

    .student-affairs-report-card-header span {
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }


/* ============================================================
   FILTER CARD
   ============================================================ */

.student-affairs-report-filter-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px color-mix( in srgb, var(--theme-text) 6%, transparent );
}

.student-affairs-report-clear-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
}

    .student-affairs-report-clear-link:hover {
        color: var(--theme-primary);
        text-decoration: underline;
    }

.student-affairs-report-filter-form {
    display: grid;
    gap: 20px;
    padding: 19px;
}

.student-affairs-report-filter-grid {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 15px;
}

.student-affairs-report-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

    .student-affairs-report-field.search {
        grid-column: span 2;
    }

    .student-affairs-report-field label {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 900;
    }

    .student-affairs-report-field input,
    .student-affairs-report-field select {
        width: 100%;
        height: 43px;
        padding: 0 13px;
        border: 1px solid var(--theme-border);
        border-radius: 14px;
        outline: none;
        background: color-mix( in srgb, var(--theme-bg) 82%, var(--theme-surface) );
        color: var(--theme-text);
        font-family: inherit;
        font-size: 12px;
        font-weight: 700;
        transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    }

        .student-affairs-report-field input::placeholder {
            color: color-mix( in srgb, var(--theme-muted) 78%, transparent );
        }

        .student-affairs-report-field input:focus,
        .student-affairs-report-field select:focus {
            border-color: var(--theme-primary);
            background: var(--theme-surface);
            box-shadow: 0 0 0 4px var(--theme-primary-soft);
        }

        .student-affairs-report-field select:disabled {
            border-color: var(--theme-border);
            background: color-mix( in srgb, var(--theme-bg) 88%, var(--theme-surface) );
            color: color-mix( in srgb, var(--theme-muted) 68%, transparent );
            cursor: not-allowed;
            opacity: 0.8;
        }

    .student-affairs-report-field > span {
        color: #b91c1c;
        font-size: 10px;
        font-weight: 750;
        line-height: 1.35;
    }

.student-affairs-report-search-input {
    position: relative;
}

    .student-affairs-report-search-input > i {
        position: absolute;
        top: 50%;
        left: 14px;
        color: var(--theme-primary);
        font-size: 13px;
        transform: translateY(-50%);
        pointer-events: none;
    }

    .student-affairs-report-search-input input {
        padding-left: 40px;
    }

.student-affairs-report-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* ============================================================
   SUMMARY CARDS
   ============================================================ */

.student-affairs-report-summary-grid {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 16px;
}

.student-affairs-report-summary-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    background: var(--theme-surface);
    box-shadow: 0 10px 24px color-mix( in srgb, var(--theme-text) 5%, transparent );
}

    .student-affairs-report-summary-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 64px;
        height: 64px;
        border-radius: 0 0 0 64px;
        background: color-mix( in srgb, var(--theme-primary) 7%, transparent );
    }

.student-affairs-report-summary-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 18%, var(--theme-border) );
    border-radius: 15px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 19px;
}

.student-affairs-report-summary-card > div:last-child {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
}

.student-affairs-report-summary-card span {
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-affairs-report-summary-card strong {
    margin-top: 4px;
    color: var(--theme-text);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.1;
}

.student-affairs-report-summary-card small {
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.35;
}

/*
    Total, Incident, Discipline, Guidance, Appointment,
    Open, Completed and Students cards all inherit the
    current company theme instead of fixed module colors.
*/

.student-affairs-report-summary-card.total
.student-affairs-report-summary-icon {
    background: var(--theme-secondary-soft);
    color: var(--theme-secondary-dark);
    border-color: color-mix( in srgb, var(--theme-secondary) 22%, var(--theme-border) );
}

.student-affairs-report-summary-card.incident
.student-affairs-report-summary-icon,
.student-affairs-report-summary-card.discipline
.student-affairs-report-summary-icon,
.student-affairs-report-summary-card.guidance
.student-affairs-report-summary-icon,
.student-affairs-report-summary-card.appointment
.student-affairs-report-summary-icon {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
}

.student-affairs-report-summary-card.open
.student-affairs-report-summary-icon {
    background: color-mix( in srgb, var(--theme-secondary-soft) 75%, var(--theme-surface) );
    color: var(--theme-secondary-dark);
}

.student-affairs-report-summary-card.completed
.student-affairs-report-summary-icon {
    background: color-mix( in srgb, #dcfce7 70%, var(--theme-surface) );
    color: #166534;
}

.student-affairs-report-summary-card.students
.student-affairs-report-summary-icon {
    background: var(--theme-secondary-soft);
    color: var(--theme-secondary-dark);
}


/* ============================================================
   RESULTS CARD
   ============================================================ */

.student-affairs-report-results-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px color-mix( in srgb, var(--theme-text) 6%, transparent );
}


/* ============================================================
   RESULTS TABLE
   ============================================================ */

.student-affairs-report-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.student-affairs-report-table {
    width: 100%;
    min-width: 1160px;
    border-collapse: collapse;
    table-layout: fixed;
}

    .student-affairs-report-table th {
        padding: 12px 13px;
        border-bottom: 1px solid var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) );
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 950;
        line-height: 1.25;
        text-align: left;
        text-transform: uppercase;
        vertical-align: middle;
    }

    .student-affairs-report-table td {
        padding: 13px;
        border-bottom: 1px solid color-mix( in srgb, var(--theme-border) 72%, transparent );
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 650;
        line-height: 1.45;
        vertical-align: top;
    }

    .student-affairs-report-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .student-affairs-report-table tbody tr {
        transition: background-color 0.16s ease;
    }

        .student-affairs-report-table tbody tr:hover {
            background: var(--theme-primary-soft);
        }

    .student-affairs-report-table th.record-type {
        width: 150px;
    }

    .student-affairs-report-table th.record-information {
        width: 300px;
    }

    .student-affairs-report-table th.student {
        width: 230px;
    }

    .student-affairs-report-table th.status {
        width: 130px;
    }

    .student-affairs-report-table th.assigned {
        width: 165px;
    }

    .student-affairs-report-table th.date {
        width: 120px;
    }

    .student-affairs-report-table th.actions {
        width: 80px;
        text-align: center;
    }

    .student-affairs-report-table td:last-child {
        text-align: center;
    }


/* ============================================================
   RECORD TYPE BADGES
   Theme-derived rather than fixed module colors
   ============================================================ */

.student-affairs-report-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

    .student-affairs-report-type-badge.incident,
    .student-affairs-report-type-badge.discipline,
    .student-affairs-report-type-badge.guidance-case,
    .student-affairs-report-type-badge.guidance-appointment {
        border-color: color-mix( in srgb, var(--theme-primary) 22%, var(--theme-border) );
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .student-affairs-report-type-badge.guidance-appointment {
        border-color: color-mix( in srgb, var(--theme-secondary) 22%, var(--theme-border) );
        background: var(--theme-secondary-soft);
        color: var(--theme-secondary-dark);
    }

    .student-affairs-report-type-badge.neutral {
        border-color: var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) );
        color: var(--theme-muted);
    }


/* ============================================================
   RECORD DETAILS
   ============================================================ */

.student-affairs-report-record,
.student-affairs-report-student {
    display: grid;
    gap: 3px;
    min-width: 0;
}

    .student-affairs-report-record strong,
    .student-affairs-report-student strong {
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .student-affairs-report-record span,
    .student-affairs-report-student span {
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 750;
        overflow-wrap: anywhere;
    }

    .student-affairs-report-record small {
        display: -webkit-box;
        margin-top: 3px;
        overflow: hidden;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .student-affairs-report-record em {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        width: fit-content;
        margin-top: 4px;
        color: var(--theme-primary-dark);
        font-size: 9px;
        font-style: normal;
        font-weight: 850;
    }

    .student-affairs-report-student small {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
    }

.student-affairs-report-assigned,
.student-affairs-report-date {
    display: inline-block;
    color: var(--theme-text);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}


/* ============================================================
   STATUS BADGES
   Status colors remain semantic for immediate recognition
   ============================================================ */

.student-affairs-report-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

    .student-affairs-report-status.draft,
    .student-affairs-report-status.neutral {
        border-color: var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) );
        color: var(--theme-muted);
    }

    .student-affairs-report-status.open,
    .student-affairs-report-status.submitted,
    .student-affairs-report-status.scheduled {
        border-color: color-mix( in srgb, var(--theme-secondary) 25%, var(--theme-border) );
        background: var(--theme-secondary-soft);
        color: var(--theme-secondary-dark);
    }

    .student-affairs-report-status.review,
    .student-affairs-report-status.investigation,
    .student-affairs-report-status.progress {
        border-color: color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .student-affairs-report-status.follow-up,
    .student-affairs-report-status.rescheduled {
        border-color: #fde68a;
        background: #fffbeb;
        color: #92400e;
    }

    .student-affairs-report-status.completed,
    .student-affairs-report-status.resolved {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .student-affairs-report-status.closed {
        border-color: var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 88%, var(--theme-surface) );
        color: var(--theme-text);
    }

    .student-affairs-report-status.cancelled,
    .student-affairs-report-status.no-show {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }


/* ============================================================
   ACTION ICON
   ============================================================ */

.student-affairs-report-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

    .student-affairs-report-icon-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
        transform: translateY(-2px);
    }


/* ============================================================
   EMPTY STATE
   ============================================================ */

.student-affairs-report-empty {
    display: grid;
    justify-items: center;
    gap: 9px;
    padding: 50px 24px;
    text-align: center;
}

.student-affairs-report-empty-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 3px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 20%, var(--theme-border) );
    border-radius: 21px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 26px;
}

.student-affairs-report-empty strong {
    color: var(--theme-text);
    font-size: 14px;
    font-weight: 950;
}

.student-affairs-report-empty span {
    max-width: 440px;
    margin-bottom: 8px;
    color: var(--theme-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

.student-affairs-report-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.student-affairs-report-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix( in srgb, var(--theme-primary) 35%, var(--theme-border) );
}

.student-affairs-report-table-wrap::-webkit-scrollbar-track {
    background: color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) );
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
    .student-affairs-report-filter-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
    }

    .student-affairs-report-summary-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
    }
}

@media (max-width: 980px) {
    .student-affairs-report-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-affairs-report-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .student-affairs-report-filter-grid {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }

    .student-affairs-report-field.search {
        grid-column: 1 / -1;
    }

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

@media (max-width: 640px) {
    .student-affairs-report-page {
        gap: 16px;
    }

    .student-affairs-report-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .student-affairs-report-hero-actions {
        display: grid;
        width: 100%;
    }

        .student-affairs-report-hero-actions
        .student-affairs-report-button {
            width: 100%;
        }

    .student-affairs-report-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .student-affairs-report-filter-form {
        padding: 17px;
    }

    .student-affairs-report-filter-grid {
        grid-template-columns: 1fr;
    }

    .student-affairs-report-field.search {
        grid-column: auto;
    }

    .student-affairs-report-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .student-affairs-report-filter-actions
        .student-affairs-report-button {
            width: 100%;
        }

    .student-affairs-report-summary-grid {
        grid-template-columns: 1fr;
    }

    .student-affairs-report-summary-card {
        padding: 16px;
    }

    .student-affairs-report-results-card
    .student-affairs-report-card-header
    .student-affairs-report-button {
        width: 100%;
    }
}


/* ============================================================
   STUDENT AFFAIRS DASHBOARD
   Fully aligned with Admin Theme variables
   ============================================================ */

.student-affairs-dashboard-page,
.student-affairs-dashboard-page * {
    box-sizing: border-box;
}

.student-affairs-dashboard-page {
    display: grid;
    gap: 20px;
    padding-bottom: 30px;
    color: var(--theme-text);
}


/* ============================================================
   HERO
   ============================================================ */

.student-affairs-dashboard-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 26px 28px;
    border: 1px solid var(--theme-border);
    border-radius: 26px;
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 18%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 82%, var(--theme-surface) ) );
    box-shadow: var(--theme-shadow);
}

    .student-affairs-dashboard-hero::after {
        content: "";
        position: absolute;
        right: -70px;
        bottom: -125px;
        width: 270px;
        height: 270px;
        border-radius: 999px;
        background: color-mix( in srgb, var(--theme-primary) 8%, transparent );
        pointer-events: none;
    }

.student-affairs-dashboard-hero-copy,
.student-affairs-dashboard-hero-actions {
    position: relative;
    z-index: 1;
}

.student-affairs-dashboard-hero-copy {
    min-width: 0;
}

.student-affairs-dashboard-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--theme-primary-dark);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

    .student-affairs-dashboard-eyebrow i {
        font-size: 15px;
    }

.student-affairs-dashboard-hero h1 {
    margin: 8px 0 7px;
    color: var(--theme-text);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 950;
    line-height: 1.14;
    letter-spacing: -0.045em;
}

.student-affairs-dashboard-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--theme-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.6;
}

.student-affairs-dashboard-generated {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 700;
}

    .student-affairs-dashboard-generated i {
        color: var(--theme-primary-dark);
    }

    .student-affairs-dashboard-generated strong {
        color: var(--theme-text);
        font-weight: 900;
    }

.student-affairs-dashboard-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.student-affairs-dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 15px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

    .student-affairs-dashboard-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
        transform: translateY(-2px);
    }

    .student-affairs-dashboard-button.primary {
        border-color: transparent;
        background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
        color: var(--theme-primary-text);
        box-shadow: 0 14px 30px color-mix( in srgb, var(--theme-primary) 24%, transparent );
    }

        .student-affairs-dashboard-button.primary:hover {
            border-color: transparent;
            color: var(--theme-primary-text);
            filter: brightness(0.98);
        }

    .student-affairs-dashboard-button.secondary {
        border-color: var(--theme-border);
        background: var(--theme-surface);
        color: var(--theme-text);
    }

        .student-affairs-dashboard-button.secondary:hover {
            border-color: var(--theme-primary);
            background: var(--theme-primary-soft);
            color: var(--theme-primary-dark);
        }


/* ============================================================
   ALERTS
   ============================================================ */

.student-affairs-dashboard-alert {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 46px 14px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
}

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

    .student-affairs-dashboard-alert.error {
        border: 1px solid #fecaca;
        background: #fff1f2;
        color: #991b1b;
    }

    .student-affairs-dashboard-alert button {
        position: absolute;
        top: 50%;
        right: 12px;
        display: grid;
        place-items: center;
        width: 28px;
        height: 28px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: inherit;
        font-size: 17px;
        cursor: pointer;
        transform: translateY(-50%);
    }

        .student-affairs-dashboard-alert button:hover {
            background: color-mix( in srgb, currentColor 8%, transparent );
        }


/* ============================================================
   SUMMARY CARDS
   ============================================================ */

.student-affairs-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 16px;
}

.student-affairs-dashboard-summary-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    background: var(--theme-surface);
    box-shadow: 0 10px 24px color-mix( in srgb, var(--theme-text) 5%, transparent );
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .student-affairs-dashboard-summary-card:hover {
        border-color: color-mix( in srgb, var(--theme-primary) 32%, var(--theme-border) );
        box-shadow: var(--theme-shadow);
        transform: translateY(-2px);
    }

    .student-affairs-dashboard-summary-card::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 68px;
        height: 68px;
        border-radius: 0 0 0 68px;
        background: color-mix( in srgb, var(--theme-primary) 7%, transparent );
    }

.student-affairs-dashboard-summary-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 20%, var(--theme-border) );
    border-radius: 15px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 19px;
}

.student-affairs-dashboard-summary-card > div:last-child {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 0;
}

.student-affairs-dashboard-summary-card span {
    color: var(--theme-muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.student-affairs-dashboard-summary-card strong {
    margin-top: 4px;
    color: var(--theme-text);
    font-size: 23px;
    font-weight: 950;
    line-height: 1.1;
}

.student-affairs-dashboard-summary-card small {
    margin-top: 4px;
    color: var(--theme-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.35;
}

.student-affairs-dashboard-summary-card.total
.student-affairs-dashboard-summary-icon,
.student-affairs-dashboard-summary-card.students
.student-affairs-dashboard-summary-icon {
    border-color: color-mix( in srgb, var(--theme-secondary) 22%, var(--theme-border) );
    background: var(--theme-secondary-soft);
    color: var(--theme-secondary-dark);
}

.student-affairs-dashboard-summary-card.active
.student-affairs-dashboard-summary-icon,
.student-affairs-dashboard-summary-card.incident
.student-affairs-dashboard-summary-icon,
.student-affairs-dashboard-summary-card.discipline
.student-affairs-dashboard-summary-icon,
.student-affairs-dashboard-summary-card.guidance
.student-affairs-dashboard-summary-icon,
.student-affairs-dashboard-summary-card.appointment
.student-affairs-dashboard-summary-icon {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
}

.student-affairs-dashboard-summary-card.completed
.student-affairs-dashboard-summary-icon {
    border-color: color-mix( in srgb, #22c55e 25%, var(--theme-border) );
    background: color-mix( in srgb, #dcfce7 70%, var(--theme-surface) );
    color: #166534;
}


/* ============================================================
   APPOINTMENT SUMMARY STRIP
   ============================================================ */

.student-affairs-dashboard-appointment-summary {
    display: grid;
    grid-template-columns: repeat( 4, minmax(0, 1fr) );
    gap: 14px;
}

.student-affairs-dashboard-appointment-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--theme-border);
    border-radius: 18px;
    background: linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) ) );
}

    .student-affairs-dashboard-appointment-stat > div {
        display: grid;
        gap: 4px;
    }

    .student-affairs-dashboard-appointment-stat span {
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.03em;
        text-transform: uppercase;
    }

    .student-affairs-dashboard-appointment-stat strong {
        color: var(--theme-text);
        font-size: 22px;
        font-weight: 950;
    }

    .student-affairs-dashboard-appointment-stat > i {
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        font-size: 18px;
    }

    .student-affairs-dashboard-appointment-stat.upcoming > i {
        background: var(--theme-secondary-soft);
        color: var(--theme-secondary-dark);
    }

    .student-affairs-dashboard-appointment-stat.cancelled > i,
    .student-affairs-dashboard-appointment-stat.no-show > i {
        border: 1px solid #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }


/* ============================================================
   COMMON PANEL AND HEADER
   ============================================================ */

.student-affairs-dashboard-panel,
.student-affairs-dashboard-quick-actions-card {
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 12px 30px color-mix( in srgb, var(--theme-text) 6%, transparent );
}

.student-affairs-dashboard-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 19px;
    border-bottom: 1px solid var(--theme-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--theme-primary) 9%, transparent ), transparent 38% ), linear-gradient( 180deg, var(--theme-surface), color-mix( in srgb, var(--theme-bg) 82%, var(--theme-surface) ) );
}

    .student-affairs-dashboard-card-header > div {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .student-affairs-dashboard-card-header strong {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-text);
        font-size: 15px;
        font-weight: 950;
    }

        .student-affairs-dashboard-card-header strong i {
            color: var(--theme-primary-dark);
        }

    .student-affairs-dashboard-card-header span {
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.45;
    }

.student-affairs-dashboard-header-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--theme-primary-dark);
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

    .student-affairs-dashboard-header-link:hover {
        color: var(--theme-primary);
        text-decoration: underline;
    }


/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.student-affairs-dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat( 3, minmax(0, 1fr) );
    gap: 14px;
    padding: 18px;
}

.student-affairs-dashboard-quick-link {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--theme-border);
    border-radius: 16px;
    background: color-mix( in srgb, var(--theme-bg) 70%, var(--theme-surface) );
    color: var(--theme-text);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

    .student-affairs-dashboard-quick-link:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        box-shadow: var(--theme-shadow);
        transform: translateY(-2px);
    }

    .student-affairs-dashboard-quick-link > span {
        display: grid;
        place-items: center;
        width: 46px;
        height: 46px;
        border: 1px solid color-mix( in srgb, var(--theme-primary) 18%, var(--theme-border) );
        border-radius: 14px;
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        font-size: 18px;
    }

    .student-affairs-dashboard-quick-link > div {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .student-affairs-dashboard-quick-link strong {
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
    }

    .student-affairs-dashboard-quick-link small {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.4;
    }

    .student-affairs-dashboard-quick-link > i {
        color: var(--theme-muted);
        font-size: 12px;
    }

    .student-affairs-dashboard-quick-link.appointment > span,
    .student-affairs-dashboard-quick-link.report > span {
        border-color: color-mix( in srgb, var(--theme-secondary) 20%, var(--theme-border) );
        background: var(--theme-secondary-soft);
        color: var(--theme-secondary-dark);
    }


/* ============================================================
   MAIN GRID
   ============================================================ */

.student-affairs-dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
    gap: 18px;
}


/* ============================================================
   RECENT RECORDS
   ============================================================ */

.student-affairs-dashboard-record-list {
    display: grid;
}

.student-affairs-dashboard-record-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    border-bottom: 1px solid color-mix( in srgb, var(--theme-border) 75%, transparent );
    transition: background-color 0.16s ease;
}

    .student-affairs-dashboard-record-item:last-child {
        border-bottom: 0;
    }

    .student-affairs-dashboard-record-item:hover {
        background: var(--theme-primary-soft);
    }

.student-affairs-dashboard-record-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid color-mix( in srgb, var(--theme-primary) 20%, var(--theme-border) );
    border-radius: 14px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 17px;
}

    .student-affairs-dashboard-record-icon.guidance-appointment {
        border-color: color-mix( in srgb, var(--theme-secondary) 22%, var(--theme-border) );
        background: var(--theme-secondary-soft);
        color: var(--theme-secondary-dark);
    }

.student-affairs-dashboard-record-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.student-affairs-dashboard-record-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

    .student-affairs-dashboard-record-heading > div {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

.student-affairs-dashboard-record-type {
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.student-affairs-dashboard-record-heading strong {
    color: var(--theme-text);
    font-size: 12px;
    font-weight: 950;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.student-affairs-dashboard-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
}

    .student-affairs-dashboard-record-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    .student-affairs-dashboard-record-meta i {
        color: var(--theme-primary-dark);
    }


/* ============================================================
   UPCOMING APPOINTMENTS
   ============================================================ */

.student-affairs-dashboard-appointment-list {
    display: grid;
}

.student-affairs-dashboard-appointment-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    border-bottom: 1px solid color-mix( in srgb, var(--theme-border) 75%, transparent );
    transition: background-color 0.16s ease;
}

    .student-affairs-dashboard-appointment-item:last-child {
        border-bottom: 0;
    }

    .student-affairs-dashboard-appointment-item:hover {
        background: var(--theme-primary-soft);
    }

.student-affairs-dashboard-date-box {
    display: grid;
    place-items: center;
    width: 58px;
    min-height: 64px;
    padding: 7px;
    border: 1px solid color-mix( in srgb, var(--theme-secondary) 24%, var(--theme-border) );
    border-radius: 15px;
    background: var(--theme-secondary-soft);
    color: var(--theme-secondary-dark);
    text-align: center;
}

    .student-affairs-dashboard-date-box span {
        font-size: 9px;
        font-weight: 950;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .student-affairs-dashboard-date-box strong {
        font-size: 21px;
        font-weight: 950;
        line-height: 1;
    }

    .student-affairs-dashboard-date-box small {
        font-size: 8px;
        font-weight: 800;
    }

.student-affairs-dashboard-appointment-content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.student-affairs-dashboard-appointment-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

    .student-affairs-dashboard-appointment-heading > div {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .student-affairs-dashboard-appointment-heading strong {
        color: var(--theme-text);
        font-size: 12px;
        font-weight: 950;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

.student-affairs-dashboard-today-label {
    width: fit-content;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 8px;
    font-weight: 950;
    text-transform: uppercase;
}

.student-affairs-dashboard-appointment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 13px;
}

    .student-affairs-dashboard-appointment-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 700;
    }

    .student-affairs-dashboard-appointment-meta i {
        color: var(--theme-primary-dark);
    }

.student-affairs-dashboard-participant-count {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    color: var(--theme-primary-dark);
    font-size: 9px;
    font-weight: 850;
}


/* ============================================================
   STATUS BADGES
   ============================================================ */

.student-affairs-dashboard-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

    .student-affairs-dashboard-status.draft,
    .student-affairs-dashboard-status.neutral {
        border-color: var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) );
        color: var(--theme-muted);
    }

    .student-affairs-dashboard-status.open,
    .student-affairs-dashboard-status.scheduled {
        border-color: color-mix( in srgb, var(--theme-secondary) 25%, var(--theme-border) );
        background: var(--theme-secondary-soft);
        color: var(--theme-secondary-dark);
    }

    .student-affairs-dashboard-status.progress {
        border-color: color-mix( in srgb, var(--theme-primary) 25%, var(--theme-border) );
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
    }

    .student-affairs-dashboard-status.warning,
    .student-affairs-dashboard-status.rescheduled {
        border-color: #fde68a;
        background: #fffbeb;
        color: #92400e;
    }

    .student-affairs-dashboard-status.completed {
        border-color: #bbf7d0;
        background: #f0fdf4;
        color: #166534;
    }

    .student-affairs-dashboard-status.closed {
        border-color: var(--theme-border);
        background: color-mix( in srgb, var(--theme-bg) 88%, var(--theme-surface) );
        color: var(--theme-text);
    }

    .student-affairs-dashboard-status.cancelled,
    .student-affairs-dashboard-status.no-show {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }


/* ============================================================
   ACTION ICON
   ============================================================ */

.student-affairs-dashboard-icon-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
    color: var(--theme-muted);
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

    .student-affairs-dashboard-icon-button:hover {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        box-shadow: var(--theme-shadow);
        transform: translateY(-2px);
    }


/* ============================================================
   ANALYTICS GRID
   ============================================================ */

.student-affairs-dashboard-analytics-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.7fr) minmax(0, 1.3fr);
    gap: 18px;
}


/* ============================================================
   STATUS BREAKDOWN
   ============================================================ */

.student-affairs-dashboard-status-list {
    display: grid;
    gap: 17px;
    padding: 19px;
}

.student-affairs-dashboard-status-row {
    display: grid;
    gap: 9px;
}

.student-affairs-dashboard-status-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .student-affairs-dashboard-status-row-header > div {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .student-affairs-dashboard-status-row-header strong {
        color: var(--theme-text);
        font-size: 11px;
        font-weight: 900;
    }

    .student-affairs-dashboard-status-row-header > div:last-child span {
        color: var(--theme-muted);
        font-size: 9px;
        font-weight: 750;
    }

.student-affairs-dashboard-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--theme-muted);
}

    .student-affairs-dashboard-status-dot.open {
        background: var(--theme-primary);
    }

    .student-affairs-dashboard-status-dot.completed {
        background: #22c55e;
    }

    .student-affairs-dashboard-status-dot.cancelled {
        background: #ef4444;
    }

    .student-affairs-dashboard-status-dot.neutral {
        background: var(--theme-muted);
    }

.student-affairs-dashboard-progress {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix( in srgb, var(--theme-bg) 80%, var(--theme-border) );
}

    .student-affairs-dashboard-progress span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient( 90deg, var(--theme-primary), var(--theme-primary-dark) );
        transition: width 0.55s ease;
    }


/* ============================================================
   MONTHLY ACTIVITY CHART
   ============================================================ */

.student-affairs-dashboard-chart-total {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-surface);
    color: var(--theme-primary-dark) !important;
    font-size: 9px !important;
    font-weight: 900 !important;
    white-space: nowrap;
}

.student-affairs-dashboard-chart {
    display: grid;
    grid-template-columns: repeat( 6, minmax(70px, 1fr) );
    align-items: end;
    gap: 14px;
    min-height: 295px;
    padding: 22px 19px 19px;
    overflow-x: auto;
}

.student-affairs-dashboard-chart-column {
    display: grid;
    grid-template-rows: 22px 150px 24px auto;
    align-items: end;
    gap: 7px;
    min-width: 70px;
    text-align: center;
}

.student-affairs-dashboard-chart-value {
    color: var(--theme-text);
    font-size: 11px;
    font-weight: 950;
}

.student-affairs-dashboard-chart-track {
    position: relative;
    width: 34px;
    height: 150px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px 10px 4px 4px;
    background: color-mix( in srgb, var(--theme-bg) 82%, var(--theme-border) );
}

    .student-affairs-dashboard-chart-track span {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 0;
        min-height: 3px;
        border-radius: 10px 10px 4px 4px;
        background: linear-gradient( 180deg, var(--theme-primary), var(--theme-primary-dark) );
        transition: height 0.55s ease;
    }

.student-affairs-dashboard-chart-column > strong {
    color: var(--theme-text);
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.student-affairs-dashboard-chart-breakdown {
    display: grid;
    grid-template-columns: repeat( 2, minmax(0, 1fr) );
    gap: 4px;
}

    .student-affairs-dashboard-chart-breakdown span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 3px 4px;
        border: 1px solid var(--theme-border);
        border-radius: 7px;
        background: color-mix( in srgb, var(--theme-bg) 78%, var(--theme-surface) );
        color: var(--theme-muted);
        font-size: 8px;
        font-weight: 800;
    }

    .student-affairs-dashboard-chart-breakdown i {
        color: var(--theme-primary-dark);
    }


/* ============================================================
   EMPTY STATE
   ============================================================ */

.student-affairs-dashboard-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 44px 24px;
    text-align: center;
}

    .student-affairs-dashboard-empty > div {
        display: grid;
        place-items: center;
        width: 60px;
        height: 60px;
        margin-bottom: 3px;
        border: 1px solid color-mix( in srgb, var(--theme-primary) 20%, var(--theme-border) );
        border-radius: 20px;
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        font-size: 24px;
    }

    .student-affairs-dashboard-empty strong {
        color: var(--theme-text);
        font-size: 13px;
        font-weight: 950;
    }

    .student-affairs-dashboard-empty span {
        max-width: 380px;
        color: var(--theme-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
    }


/* ============================================================
   SCROLLBARS
   ============================================================ */

.student-affairs-dashboard-chart::-webkit-scrollbar {
    height: 8px;
}

.student-affairs-dashboard-chart::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix( in srgb, var(--theme-primary) 35%, var(--theme-border) );
}

.student-affairs-dashboard-chart::-webkit-scrollbar-track {
    background: color-mix( in srgb, var(--theme-bg) 84%, var(--theme-surface) );
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1280px) {
    .student-affairs-dashboard-summary-grid {
        grid-template-columns: repeat( 3, minmax(0, 1fr) );
    }

    .student-affairs-dashboard-appointment-summary {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }

    .student-affairs-dashboard-quick-actions {
        grid-template-columns: repeat( 2, minmax(0, 1fr) );
    }

    .student-affairs-dashboard-main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .student-affairs-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-affairs-dashboard-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

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

    .student-affairs-dashboard-analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .student-affairs-dashboard-record-item,
    .student-affairs-dashboard-appointment-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .student-affairs-dashboard-appointment-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .student-affairs-dashboard-record-action {
        grid-column: 2;
        justify-self: end;
    }

    .student-affairs-dashboard-record-heading,
    .student-affairs-dashboard-appointment-heading {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .student-affairs-dashboard-page {
        gap: 16px;
    }

    .student-affairs-dashboard-hero {
        padding: 20px;
        border-radius: 22px;
    }

    .student-affairs-dashboard-hero-actions {
        display: grid;
    }

        .student-affairs-dashboard-hero-actions
        .student-affairs-dashboard-button {
            width: 100%;
        }

    .student-affairs-dashboard-summary-grid,
    .student-affairs-dashboard-appointment-summary,
    .student-affairs-dashboard-quick-actions {
        grid-template-columns: 1fr;
    }

    .student-affairs-dashboard-card-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 17px;
    }

    .student-affairs-dashboard-summary-card {
        padding: 16px;
    }

    .student-affairs-dashboard-quick-actions {
        padding: 15px;
    }

    .student-affairs-dashboard-record-item,
    .student-affairs-dashboard-appointment-item {
        padding: 14px;
    }

    .student-affairs-dashboard-chart {
        grid-template-columns: repeat( 6, 82px );
    }
}












/* =========================================================
   STUDENT MOVEMENT LIST PAGE
   File: wwwroot/css/admin-portal.css

   Uses the current Admin Portal theme variables.
   No body.admin-theme selector is required.
   ========================================================= */

.student-movement-page {
    --sm-primary: var( --theme-primary, var( --admin-primary, var(--bs-primary, #f97316) ) );
    --sm-primary-dark: var( --theme-primary-dark, var( --admin-primary-dark, #ea580c ) );
    --sm-primary-soft: var( --theme-primary-soft, var( --admin-primary-soft, #fff7ed ) );
    --sm-primary-text: var( --theme-primary-text, var( --admin-primary-text, #ffffff ) );
    --sm-secondary: var( --theme-secondary, var( --admin-secondary, var(--sm-primary) ) );
    --sm-secondary-dark: var( --theme-secondary-dark, var( --admin-secondary-dark, var(--sm-primary-dark) ) );
    --sm-secondary-soft: var( --theme-secondary-soft, var( --admin-secondary-soft, var(--sm-primary-soft) ) );
    --sm-background: var( --theme-bg, var( --admin-bg, #f8fafc ) );
    --sm-surface: var( --theme-surface, var( --admin-surface, #ffffff ) );
    --sm-surface-soft: var( --theme-surface-soft, var( --admin-surface-soft, var(--sm-background) ) );
    --sm-border: var( --theme-border, var( --admin-border, #e5e7eb ) );
    --sm-text: var( --theme-text, var( --admin-text, #111827 ) );
    --sm-muted: var( --theme-muted, var( --admin-muted, #64748b ) );
    --sm-shadow: var( --theme-shadow, var( --admin-shadow, 0 10px 28px rgba(15, 23, 42, 0.06) ) );
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 32px;
    color: var(--sm-text);
}


    /* =========================================================
   HERO
   ========================================================= */

    .student-movement-page .student-movement-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 26px 28px;
        border: 1px solid var(--sm-border);
        border-radius: 20px;
        background: linear-gradient( 135deg, var(--sm-primary-soft) 0%, var(--sm-surface) 58%, var(--sm-primary-soft) 100% );
        box-shadow: var(--sm-shadow);
    }

    .student-movement-page .student-movement-hero-content {
        display: flex;
        align-items: center;
        gap: 18px;
        min-width: 0;
    }

    .student-movement-page .student-movement-hero-text {
        min-width: 0;
    }

    .student-movement-page .student-movement-hero-icon {
        display: grid;
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
        place-items: center;
        border-radius: 17px;
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
        font-size: 25px;
        box-shadow: 0 10px 22px color-mix( in srgb, var(--sm-primary) 25%, transparent );
    }

    .student-movement-page .student-movement-hero-eyebrow {
        margin-bottom: 3px;
        color: var(--sm-primary-dark);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .student-movement-page .student-movement-hero h1 {
        margin: 0;
        color: var(--sm-text);
        font-size: clamp(24px, 3vw, 34px);
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .student-movement-page .student-movement-hero p {
        max-width: 720px;
        margin: 7px 0 0;
        color: var(--sm-muted);
        font-size: 14px;
        line-height: 1.65;
    }

    .student-movement-page .student-movement-hero-status {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        min-width: 180px;
        padding: 14px 18px;
        border: 1px solid var(--sm-border);
        border-radius: 14px;
        background: var(--sm-surface);
        text-align: right;
    }

    .student-movement-page
    .student-movement-hero-status-label {
        color: var(--sm-primary-dark);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .student-movement-page
    .student-movement-hero-status strong {
        margin-top: 3px;
        color: var(--sm-text);
        font-size: 16px;
    }


    /* =========================================================
   ALERTS
   ========================================================= */

    .student-movement-page .student-movement-alert {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 15px 17px;
        border: 1px solid;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

    .student-movement-page .student-movement-alert-icon {
        display: grid;
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        place-items: center;
        border-radius: 10px;
        font-size: 17px;
    }

    .student-movement-page .student-movement-alert-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

        .student-movement-page
        .student-movement-alert-content strong {
            font-size: 14px;
        }

        .student-movement-page
        .student-movement-alert-content span {
            font-size: 13px;
            line-height: 1.45;
        }

    .student-movement-page
    .student-movement-alert-success {
        border-color: #a7f3d0;
        background: #ecfdf5;
        color: #065f46;
    }

        .student-movement-page
        .student-movement-alert-success
        .student-movement-alert-icon {
            background: #d1fae5;
        }

    .student-movement-page
    .student-movement-alert-error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

        .student-movement-page
        .student-movement-alert-error
        .student-movement-alert-icon {
            background: #fee2e2;
        }

    .student-movement-page
    .student-movement-alert-close {
        display: grid;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: currentColor;
        cursor: pointer;
        opacity: 0.72;
    }

        .student-movement-page
        .student-movement-alert-close:hover {
            background: rgba(255, 255, 255, 0.65);
            opacity: 1;
        }


    /* =========================================================
   SUMMARY CARDS
   ========================================================= */

    .student-movement-page
    .student-movement-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .student-movement-page
    .student-movement-summary-card {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 112px;
        padding: 18px;
        border: 1px solid var(--sm-border);
        border-radius: 17px;
        background: var(--sm-surface);
        box-shadow: var(--sm-shadow);
    }

    .student-movement-page
    .student-movement-summary-icon {
        display: grid;
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        place-items: center;
        border-radius: 13px;
        font-size: 19px;
    }

    .student-movement-page
    .student-movement-summary-icon-primary {
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

    .student-movement-page
    .student-movement-summary-icon-success {
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-summary-icon-warning {
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

    .student-movement-page
    .student-movement-summary-icon-neutral {
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-summary-content {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

        .student-movement-page
        .student-movement-summary-content > span {
            color: var(--sm-muted);
            font-size: 12px;
            font-weight: 700;
        }

        .student-movement-page
        .student-movement-summary-content > strong {
            margin-top: 2px;
            color: var(--sm-text);
            font-size: 22px;
            font-weight: 800;
            line-height: 1.2;
        }

        .student-movement-page
        .student-movement-summary-content > small {
            margin-top: 3px;
            overflow: hidden;
            color: var(--sm-muted);
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


    /* =========================================================
   FILTER AND LIST PANELS
   ========================================================= */

    .student-movement-page
    .student-movement-filter-panel,
    .student-movement-page
    .student-movement-list-panel {
        overflow: hidden;
        border: 1px solid var(--sm-border);
        border-radius: 18px;
        background: var(--sm-surface);
        box-shadow: var(--sm-shadow);
    }

    .student-movement-page
    .student-movement-panel-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 19px 22px;
        border-bottom: 1px solid var(--sm-border);
        background: var(--sm-surface);
    }

    .student-movement-page
    .student-movement-list-heading {
        background: var(--sm-surface-soft);
    }

    .student-movement-page
    .student-movement-panel-heading h2 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0;
        color: var(--sm-text);
        font-size: 17px;
        font-weight: 800;
    }

        .student-movement-page
        .student-movement-panel-heading h2 i {
            color: var(--sm-primary);
        }

    .student-movement-page
    .student-movement-panel-heading p {
        margin: 4px 0 0;
        color: var(--sm-muted);
        font-size: 12px;
    }


    /* =========================================================
   FILTER FORM
   ========================================================= */

    .student-movement-page
    .student-movement-filter-panel form {
        padding: 22px;
    }

    .student-movement-page
    .student-movement-filter-grid {
        display: grid;
        grid-template-columns: minmax(240px, 1.65fr) repeat(5, minmax(145px, 1fr));
        gap: 15px;
        align-items: end;
    }

    .student-movement-page
    .student-movement-form-group {
        min-width: 0;
    }

        .student-movement-page
        .student-movement-form-group label {
            display: block;
            margin-bottom: 7px;
            color: var(--sm-text);
            font-size: 12px;
            font-weight: 750;
        }

    .student-movement-page
    .student-movement-form-control,
    .student-movement-page
    .student-movement-form-select {
        width: 100%;
        height: 43px;
        border: 1px solid var(--sm-border);
        border-radius: 11px;
        background-color: var(--sm-surface);
        color: var(--sm-text);
        font-size: 13px;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .student-movement-page
    .student-movement-form-control {
        padding: 0 13px;
    }

    .student-movement-page
    .student-movement-form-select {
        padding: 0 34px 0 12px;
    }

    .student-movement-page
    .student-movement-form-control::placeholder {
        color: var(--sm-muted);
        opacity: 0.8;
    }

    .student-movement-page
    .student-movement-form-control:focus,
    .student-movement-page
    .student-movement-form-select:focus {
        border-color: var(--sm-primary);
        box-shadow: 0 0 0 4px color-mix( in srgb, var(--sm-primary) 14%, transparent );
    }

    .student-movement-page
    .student-movement-input-icon {
        position: relative;
    }

        .student-movement-page
        .student-movement-input-icon > i {
            position: absolute;
            z-index: 2;
            top: 50%;
            left: 14px;
            color: var(--sm-muted);
            transform: translateY(-50%);
            pointer-events: none;
        }

        .student-movement-page
        .student-movement-input-icon
        .student-movement-form-control {
            padding-left: 40px;
        }


    /* =========================================================
   FILTER ACTIONS
   ========================================================= */

    .student-movement-page
    .student-movement-filter-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 18px;
        padding-top: 17px;
        border-top: 1px solid var(--sm-border);
    }

    .student-movement-page
    .student-movement-btn-reset,
    .student-movement-page
    .student-movement-btn-search,
    .student-movement-page
    .student-movement-btn-process,
    .student-movement-page
    .student-movement-btn-empty-reset {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 40px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    }

    .student-movement-page
    .student-movement-btn-reset {
        padding: 0 17px;
        border: 1px solid var(--sm-border);
        background: var(--sm-surface);
        color: var(--sm-muted);
    }

        .student-movement-page
        .student-movement-btn-reset:hover {
            border-color: var(--sm-primary);
            background: var(--sm-primary-soft);
            color: var(--sm-primary-dark);
        }

    .student-movement-page
    .student-movement-btn-search {
        padding: 0 18px;
        border: 1px solid var(--sm-primary);
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
        cursor: pointer;
        box-shadow: 0 7px 15px color-mix( in srgb, var(--sm-primary) 20%, transparent );
    }

        .student-movement-page
        .student-movement-btn-search:hover,
        .student-movement-page
        .student-movement-btn-process:hover,
        .student-movement-page
        .student-movement-btn-empty-reset:hover {
            color: var(--sm-primary-text);
            transform: translateY(-1px);
            box-shadow: 0 9px 20px color-mix( in srgb, var(--sm-primary) 25%, transparent );
        }


    /* =========================================================
   RECORD COUNTER
   ========================================================= */

    .student-movement-page
    .student-movement-record-count {
        display: flex;
        align-items: baseline;
        gap: 5px;
        padding: 8px 12px;
        border: 1px solid var(--sm-border);
        border-radius: 10px;
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

        .student-movement-page
        .student-movement-record-count strong {
            font-size: 15px;
        }

        .student-movement-page
        .student-movement-record-count span {
            font-size: 11px;
            font-weight: 700;
        }


    /* =========================================================
   DESKTOP TABLE
   ========================================================= */

    .student-movement-page
    .student-movement-table-responsive {
        overflow-x: auto;
    }

    .student-movement-page
    .student-movement-table {
        width: 100%;
        min-width: 1030px;
        border-collapse: collapse;
    }

        .student-movement-page
        .student-movement-table th {
            padding: 12px 17px;
            border-bottom: 1px solid var(--sm-border);
            background: var(--sm-surface-soft);
            color: var(--sm-muted);
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.055em;
            text-align: left;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .student-movement-page
        .student-movement-table td {
            padding: 14px 17px;
            border-bottom: 1px solid var(--sm-border);
            color: var(--sm-text);
            font-size: 12px;
            vertical-align: middle;
        }

        .student-movement-page
        .student-movement-table tbody tr {
            transition: background 0.16s ease;
        }

            .student-movement-page
            .student-movement-table tbody tr:hover {
                background: var(--sm-primary-soft);
            }

            .student-movement-page
            .student-movement-table tbody tr:last-child td {
                border-bottom: 0;
            }

    .student-movement-page
    .student-movement-text-end {
        text-align: right !important;
    }


    /* =========================================================
   STUDENT IDENTITY
   ========================================================= */

    .student-movement-page
    .student-movement-student-identity {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 245px;
    }

    .student-movement-page
    .student-movement-student-avatar {
        position: relative;
        display: grid;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        overflow: hidden;
        place-items: center;
        border: 2px solid var(--sm-border);
        border-radius: 50%;
        background: linear-gradient( 135deg, var(--sm-primary-soft), var(--sm-surface) );
        color: var(--sm-primary-dark);
        font-size: 12px;
        font-weight: 900;
    }

        .student-movement-page
        .student-movement-student-avatar img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background: var(--sm-surface);
            object-fit: cover;
        }

    .student-movement-page
    .student-movement-student-main-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

        .student-movement-page
        .student-movement-student-main-info strong {
            overflow: hidden;
            max-width: 310px;
            color: var(--sm-text);
            font-size: 13px;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-movement-page
        .student-movement-student-main-info span {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 3px;
            color: var(--sm-muted);
            font-size: 11px;
        }

    .student-movement-page
    .student-movement-table-value {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }

        .student-movement-page
        .student-movement-table-value i {
            color: var(--sm-muted);
        }


    /* =========================================================
   SECTION AND STATUS BADGES
   ========================================================= */

    .student-movement-page
    .student-movement-section-badge,
    .student-movement-page
    .student-movement-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 9px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
    }

    .student-movement-page
    .student-movement-section-assigned {
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-section-unassigned {
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

    .student-movement-page
    .student-movement-status-badge {
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

    .student-movement-page
    .student-movement-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--sm-primary);
        box-shadow: 0 0 0 3px color-mix( in srgb, var(--sm-primary) 15%, transparent );
    }


    /* =========================================================
   PROCESS BUTTON
   ========================================================= */

    .student-movement-page
    .student-movement-btn-process {
        min-height: 36px;
        padding: 0 13px;
        border: 1px solid var(--sm-border);
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
        white-space: nowrap;
    }

        .student-movement-page
        .student-movement-btn-process:hover {
            border-color: var(--sm-primary);
            background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        }


    /* =========================================================
   MOBILE STUDENT LIST
   ========================================================= */

    .student-movement-page
    .student-movement-mobile-list {
        display: none;
        padding: 14px;
        background: var(--sm-background);
    }

    .student-movement-page
    .student-movement-mobile-card {
        padding: 16px;
        border: 1px solid var(--sm-border);
        border-radius: 15px;
        background: var(--sm-surface);
        box-shadow: var(--sm-shadow);
    }

        .student-movement-page
        .student-movement-mobile-card + .student-movement-mobile-card {
            margin-top: 12px;
        }

    .student-movement-page
    .student-movement-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .student-movement-page
    .student-movement-mobile-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 15px;
    }

    .student-movement-page
    .student-movement-mobile-detail {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 10px;
        border-radius: 10px;
        background: var(--sm-surface-soft);
    }

        .student-movement-page
        .student-movement-mobile-detail span {
            color: var(--sm-muted);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .student-movement-page
        .student-movement-mobile-detail strong {
            overflow: hidden;
            color: var(--sm-text);
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .student-movement-page
    .student-movement-btn-process-mobile {
        width: 100%;
        margin-top: 14px;
        border-color: var(--sm-primary);
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
    }


    /* =========================================================
   LIST FOOTER AND PAGINATION
   ========================================================= */

    .student-movement-page
    .student-movement-list-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 16px 20px;
        border-top: 1px solid var(--sm-border);
        background: var(--sm-surface-soft);
    }

    .student-movement-page
    .student-movement-pagination-summary {
        color: var(--sm-muted);
        font-size: 11px;
    }

        .student-movement-page
        .student-movement-pagination-summary strong {
            color: var(--sm-text);
        }

    .student-movement-page
    .student-movement-pagination {
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .student-movement-page
        .student-movement-pagination li a,
        .student-movement-page
        .student-movement-pagination li span {
            display: grid;
            min-width: 34px;
            height: 34px;
            padding: 0 8px;
            place-items: center;
            border: 1px solid var(--sm-border);
            border-radius: 9px;
            background: var(--sm-surface);
            color: var(--sm-muted);
            font-size: 11px;
            font-weight: 800;
            text-decoration: none;
        }

            .student-movement-page
            .student-movement-pagination li a:hover {
                border-color: var(--sm-primary);
                background: var(--sm-primary-soft);
                color: var(--sm-primary-dark);
            }

        .student-movement-page
        .student-movement-pagination li.active span {
            border-color: var(--sm-primary);
            background: var(--sm-primary);
            color: var(--sm-primary-text);
        }

        .student-movement-page
        .student-movement-pagination li.disabled span {
            border-color: var(--sm-border);
            background: var(--sm-background);
            color: var(--sm-muted);
            cursor: not-allowed;
            opacity: 0.48;
        }

    .student-movement-page
    .student-movement-pagination-ellipsis span {
        border-color: transparent !important;
        background: transparent !important;
    }


    /* =========================================================
   EMPTY STATE
   ========================================================= */

    .student-movement-page
    .student-movement-empty-state {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding: 62px 24px;
        text-align: center;
    }

    .student-movement-page
    .student-movement-empty-icon {
        display: grid;
        width: 72px;
        height: 72px;
        place-items: center;
        border-radius: 20px;
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
        font-size: 29px;
    }

    .student-movement-page
    .student-movement-empty-state h3 {
        margin: 17px 0 5px;
        color: var(--sm-text);
        font-size: 18px;
        font-weight: 800;
    }

    .student-movement-page
    .student-movement-empty-state p {
        max-width: 430px;
        margin: 0;
        color: var(--sm-muted);
        font-size: 13px;
        line-height: 1.6;
    }

    .student-movement-page
    .student-movement-btn-empty-reset {
        margin-top: 17px;
        padding: 0 17px;
        border: 1px solid var(--sm-primary);
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
    }


    /* =========================================================
   INFORMATION PANEL
   ========================================================= */

    .student-movement-page
    .student-movement-information-panel {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
        border: 1px solid var(--sm-border);
        border-radius: 15px;
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-information-icon {
        flex: 0 0 auto;
        margin-top: 1px;
        font-size: 20px;
    }

    .student-movement-page
    .student-movement-information-panel h3 {
        margin: 0 0 4px;
        font-size: 13px;
        font-weight: 800;
    }

    .student-movement-page
    .student-movement-information-panel p {
        margin: 0;
        font-size: 12px;
        line-height: 1.65;
    }


    /* =========================================================
   FOCUS AND ACCESSIBILITY
   ========================================================= */

    .student-movement-page a:focus-visible,
    .student-movement-page button:focus-visible,
    .student-movement-page input:focus-visible,
    .student-movement-page select:focus-visible {
        outline: 3px solid color-mix( in srgb, var(--sm-primary) 28%, transparent );
        outline-offset: 2px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1350px) {
    .student-movement-page
    .student-movement-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-movement-page
    .student-movement-search-group {
        grid-column: span 2;
    }
}

@media (max-width: 1050px) {
    .student-movement-page
    .student-movement-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-movement-page
    .student-movement-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-movement-page
    .student-movement-hero-status {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 820px) {
    .student-movement-page
    .student-movement-desktop-table {
        display: none;
    }

    .student-movement-page
    .student-movement-mobile-list {
        display: block;
    }

    .student-movement-page
    .student-movement-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-movement-page
    .student-movement-search-group {
        grid-column: 1 / -1;
    }

    .student-movement-page
    .student-movement-list-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-movement-page
    .student-movement-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .student-movement-page {
        gap: 14px;
    }

        .student-movement-page
        .student-movement-hero {
            padding: 20px;
            border-radius: 16px;
            background: linear-gradient( 180deg, var(--sm-primary-soft), var(--sm-surface) );
        }

        .student-movement-page
        .student-movement-hero-content {
            align-items: flex-start;
        }

        .student-movement-page
        .student-movement-hero-icon {
            width: 49px;
            height: 49px;
            border-radius: 14px;
            font-size: 20px;
        }

        .student-movement-page
        .student-movement-hero p {
            font-size: 12px;
        }

        .student-movement-page
        .student-movement-summary-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .student-movement-page
        .student-movement-summary-card {
            min-height: 94px;
        }

        .student-movement-page
        .student-movement-panel-heading {
            align-items: flex-start;
            padding: 16px;
        }

        .student-movement-page
        .student-movement-list-heading {
            flex-direction: column;
        }

        .student-movement-page
        .student-movement-filter-panel form {
            padding: 16px;
        }

        .student-movement-page
        .student-movement-filter-grid {
            grid-template-columns: 1fr;
        }

        .student-movement-page
        .student-movement-search-group {
            grid-column: auto;
        }

        .student-movement-page
        .student-movement-filter-actions {
            flex-direction: column-reverse;
        }

        .student-movement-page
        .student-movement-btn-reset,
        .student-movement-page
        .student-movement-btn-search {
            width: 100%;
        }

        .student-movement-page
        .student-movement-mobile-detail-grid {
            grid-template-columns: 1fr;
        }

        .student-movement-page
        .student-movement-list-footer {
            padding: 15px;
        }

        .student-movement-page
        .student-movement-information-panel {
            padding: 15px;
        }
}







/* =========================================================
   PROCESS STUDENT MOVEMENT
   File: wwwroot/css/admin-portal.css
   ========================================================= */


/* =========================================================
   PAGE THEME VARIABLES
   ========================================================= */

.process-movement-page,
.movement-confirmation-overlay {
    --pm-primary: var(--theme-primary, #f97316);
    --pm-primary-dark: var(--theme-primary-dark, #ea580c);
    --pm-primary-soft: var(--theme-primary-soft, #fff7ed);
    --pm-primary-text: var(--theme-primary-text, #ffffff);
    --pm-secondary: var(--theme-secondary, #168cf9);
    --pm-secondary-dark: var(--theme-secondary-dark, #0b72d9);
    --pm-secondary-soft: var(--theme-secondary-soft, #eff6ff);
    --pm-secondary-text: var(--theme-secondary-text, #ffffff);
    --pm-background: var(--theme-bg, #f8fafc);
    --pm-surface: var(--theme-surface, #ffffff);
    --pm-border: var(--theme-border, #e5e7eb);
    --pm-text: var(--theme-text, #111827);
    --pm-muted: var(--theme-muted, #64748b);
    --pm-shadow: var( --theme-shadow, 0 18px 45px rgba(15, 23, 42, 0.08) );
}


/* =========================================================
   PAGE CONTAINER
   ========================================================= */

.process-movement-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 36px;
    color: var(--pm-text);
}

body.movement-modal-open {
    overflow: hidden;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.process-movement-page
.movement-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 25px 27px;
    border: 1px solid var(--pm-border);
    border-radius: 20px;
    background: linear-gradient( 135deg, var(--pm-primary-soft) 0%, var(--pm-surface) 58%, var(--pm-primary-soft) 100% );
    box-shadow: var(--pm-shadow);
}

.process-movement-page
.movement-page-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.process-movement-page
.movement-page-header-text {
    min-width: 0;
}

.process-movement-page
.movement-back-button {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    background: var(--pm-surface);
    color: var(--pm-primary-dark);
    font-size: 17px;
    text-decoration: none;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

    .process-movement-page
    .movement-back-button:hover {
        border-color: var(--pm-primary);
        background: var(--pm-primary-soft);
        color: var(--pm-primary-dark);
        transform: translateX(-2px);
    }

.process-movement-page
.movement-page-header-icon {
    display: grid;
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    background: linear-gradient( 135deg, var(--pm-primary), var(--pm-primary-dark) );
    color: var(--pm-primary-text);
    font-size: 24px;
    box-shadow: var(--pm-shadow);
}

.process-movement-page
.movement-page-eyebrow {
    margin-bottom: 3px;
    color: var(--pm-primary-dark);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.process-movement-page
.movement-page-header h1 {
    margin: 0;
    color: var(--pm-text);
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 850;
    letter-spacing: -0.03em;
}

.process-movement-page
.movement-page-header p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--pm-muted);
    font-size: 13px;
    line-height: 1.6;
}

.process-movement-page
.movement-header-status {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    min-width: 165px;
    padding: 13px 16px;
    border: 1px solid var(--pm-border);
    border-radius: 13px;
    background: var(--pm-surface);
    text-align: right;
}

    .process-movement-page
    .movement-header-status span {
        color: var(--pm-primary-dark);
        font-size: 10px;
        font-weight: 850;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .process-movement-page
    .movement-header-status strong {
        margin-top: 3px;
        color: var(--pm-text);
        font-size: 14px;
    }


/* =========================================================
   VALIDATION SUMMARY
   ========================================================= */

.process-movement-page
.movement-validation-summary {
    display: none;
    margin-bottom: 18px;
    padding: 15px 18px;
    border: 1px solid #fecaca;
    border-radius: 13px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 12px;
}

    .process-movement-page
    .movement-validation-summary.validation-summary-errors {
        display: block;
    }

    .process-movement-page
    .movement-validation-summary ul {
        margin: 0;
        padding-left: 19px;
    }

    .process-movement-page
    .movement-validation-summary li + li {
        margin-top: 4px;
    }


/* =========================================================
   MAIN PAGE LAYOUT
   ========================================================= */

.process-movement-page
.movement-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 345px);
    gap: 20px;
    align-items: start;
}

.process-movement-page
.movement-main-column,
.process-movement-page
.movement-side-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}


/* =========================================================
   SHARED CARDS
   ========================================================= */

.process-movement-page
.movement-student-profile-card,
.process-movement-page
.movement-form-panel,
.process-movement-page
.movement-effect-panel,
.process-movement-page
.movement-summary-panel,
.process-movement-page
.movement-action-panel {
    overflow: hidden;
    border: 1px solid var(--pm-border);
    border-radius: 18px;
    background: var(--pm-surface);
    box-shadow: var(--pm-shadow);
}


/* =========================================================
   STUDENT PROFILE
   ========================================================= */

.process-movement-page
.movement-student-profile-banner {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px;
    border-bottom: 1px solid var(--pm-border);
    background: linear-gradient( 135deg, var(--pm-primary-soft), var(--pm-surface) );
}

.process-movement-page
.movement-student-avatar-large {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 76px;
    height: 76px;
    overflow: hidden;
    place-items: center;
    border: 3px solid var(--pm-border);
    border-radius: 21px;
    background: linear-gradient( 135deg, var(--pm-primary-soft), var(--pm-surface) );
    color: var(--pm-primary-dark);
    font-size: 20px;
    font-weight: 900;
}

    .process-movement-page
    .movement-student-avatar-large img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background: var(--pm-surface);
        object-fit: cover;
    }

.process-movement-page
.movement-student-profile-name {
    flex: 1;
    min-width: 0;
}

.process-movement-page
.movement-profile-label {
    color: var(--pm-primary-dark);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.process-movement-page
.movement-student-profile-name h2 {
    overflow: hidden;
    margin: 4px 0;
    color: var(--pm-text);
    font-size: 21px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-movement-page
.movement-student-number {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--pm-muted);
    font-size: 12px;
}

.process-movement-page
.movement-active-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.process-movement-page
.movement-active-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}


/* =========================================================
   STUDENT INFORMATION GRID
   ========================================================= */

.process-movement-page
.movement-student-information-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--pm-border);
}

.process-movement-page
.movement-information-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 89px;
    padding: 15px;
    background: var(--pm-surface);
}

.process-movement-page
.movement-information-icon {
    display: grid;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark);
    font-size: 16px;
}

.process-movement-page
.movement-information-item > div:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.process-movement-page
.movement-information-item span {
    color: var(--pm-muted);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.process-movement-page
.movement-information-item strong {
    overflow: hidden;
    margin-top: 3px;
    color: var(--pm-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.process-movement-page
.movement-text-success {
    color: #15803d !important;
}

.process-movement-page
.movement-text-warning {
    color: #b45309 !important;
}


/* =========================================================
   PANEL HEADINGS
   ========================================================= */

.process-movement-page
.movement-panel-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 19px 21px;
    border-bottom: 1px solid var(--pm-border);
    background: var(--pm-background);
}

.process-movement-page
.movement-panel-heading-icon,
.process-movement-page
.movement-summary-panel-heading > i {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--pm-primary-soft);
    color: var(--pm-primary-dark);
    font-size: 17px;
}

.process-movement-page
.movement-panel-heading h2,
.process-movement-page
.movement-summary-panel-heading h2,
.process-movement-page
.movement-effect-panel-heading h2 {
    margin: 0;
    color: var(--pm-text);
    font-size: 16px;
    font-weight: 850;
}

.process-movement-page
.movement-panel-heading p,
.process-movement-page
.movement-summary-panel-heading p,
.process-movement-page
.movement-effect-panel-heading p {
    margin: 3px 0 0;
    color: var(--pm-muted);
    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   FORM PANEL
   ========================================================= */

.process-movement-page
.movement-panel-body {
    padding: 22px;
}

.process-movement-page
.movement-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.process-movement-page
.movement-form-group {
    min-width: 0;
}

.process-movement-page
.movement-form-group-full {
    grid-column: 1 / -1;
}

.process-movement-page
.movement-form-group label {
    display: block;
    margin-bottom: 7px;
    color: var(--pm-text);
    font-size: 12px;
    font-weight: 800;
}

.process-movement-page
.movement-required-mark {
    color: #dc2626;
}


/* =========================================================
   FORM CONTROLS
   ========================================================= */

.process-movement-page
.movement-form-control,
.process-movement-page
.movement-form-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--pm-border);
    border-radius: 11px;
    background-color: var(--pm-surface);
    color: var(--pm-text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.process-movement-page
.movement-form-control {
    padding: 0 13px;
}

.process-movement-page
.movement-form-select {
    padding: 0 35px 0 13px;
}

.process-movement-page
.movement-form-textarea {
    min-height: 104px;
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.55;
}

.process-movement-page
.movement-form-control::placeholder {
    color: var(--pm-muted);
    opacity: 0.8;
}

.process-movement-page
.movement-form-control:focus,
.process-movement-page
.movement-form-select:focus {
    border-color: var(--pm-primary);
    box-shadow: 0 0 0 4px color-mix( in srgb, var(--pm-primary) 14%, transparent );
}

.process-movement-page
.movement-form-control.input-validation-error,
.process-movement-page
.movement-form-select.input-validation-error {
    border-color: #ef4444;
    background: #fffafa;
}


/* =========================================================
   INPUT ICONS
   ========================================================= */

.process-movement-page
.movement-input-icon-wrapper {
    position: relative;
}

    .process-movement-page
    .movement-input-icon-wrapper > i {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 14px;
        color: var(--pm-muted);
        transform: translateY(-50%);
        pointer-events: none;
    }

    .process-movement-page
    .movement-input-icon-wrapper
    .movement-form-control {
        padding-left: 41px;
    }


/* =========================================================
   VALIDATION AND HELP TEXT
   ========================================================= */

.process-movement-page
.movement-field-validation {
    display: block;
    min-height: 17px;
    margin-top: 5px;
    color: #dc2626;
    font-size: 10px;
    font-weight: 650;
}

.process-movement-page
.movement-field-help {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 3px;
    color: var(--pm-muted);
    font-size: 10px;
    line-height: 1.45;
}

    .process-movement-page
    .movement-field-help i {
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--pm-primary);
    }

.process-movement-page
.movement-textarea-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

    .process-movement-page
    .movement-textarea-footer
    .movement-field-validation {
        flex: 1;
    }

.process-movement-page
.movement-character-counter {
    flex: 0 0 auto;
    margin-top: 5px;
    color: var(--pm-muted);
    font-size: 10px;
}

    .process-movement-page
    .movement-character-counter strong {
        color: var(--pm-text);
    }


/* =========================================================
   SYSTEM EFFECT PANEL
   ========================================================= */

.process-movement-page
.movement-effect-panel {
    padding: 20px;
    border-color: var(--pm-border);
    background: linear-gradient( 135deg, var(--pm-secondary-soft), var(--pm-surface) );
}

.process-movement-page
.movement-effect-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 17px;
}

.process-movement-page
.movement-effect-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--pm-secondary-soft);
    color: var(--pm-secondary-dark);
    font-size: 17px;
}

.process-movement-page
.movement-effect-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.process-movement-page
.movement-effect-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--pm-border);
    border-radius: 12px;
    background: var(--pm-surface);
}

.process-movement-page
.movement-effect-check {
    display: grid;
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 900;
}

.process-movement-page
.movement-effect-item > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.process-movement-page
.movement-effect-item strong {
    color: var(--pm-secondary-dark);
    font-size: 11px;
    font-weight: 850;
}

.process-movement-page
.movement-effect-item span {
    color: var(--pm-muted);
    font-size: 10px;
    line-height: 1.45;
}


/* =========================================================
   SIDE COLUMN
   ========================================================= */

.process-movement-page
.movement-side-column {
    position: sticky;
    top: 18px;
}


/* =========================================================
   MOVEMENT SUMMARY
   ========================================================= */

.process-movement-page
.movement-summary-panel-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px;
    border-bottom: 1px solid var(--pm-border);
    background: var(--pm-background);
}

.process-movement-page
.movement-summary-details {
    padding: 7px 17px;
}

.process-movement-page
.movement-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pm-border);
}

    .process-movement-page
    .movement-summary-row:last-child {
        border-bottom: 0;
    }

    .process-movement-page
    .movement-summary-row span {
        flex: 0 0 auto;
        color: var(--pm-muted);
        font-size: 10px;
        font-weight: 750;
    }

    .process-movement-page
    .movement-summary-row strong {
        overflow-wrap: anywhere;
        color: var(--pm-text);
        font-size: 10px;
        font-weight: 850;
        text-align: right;
    }


/* =========================================================
   WARNING PANEL
   ========================================================= */

.process-movement-page
.movement-warning-panel {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid #fde68a;
    border-radius: 15px;
    background: #fffbeb;
    color: #92400e;
}

.process-movement-page
.movement-warning-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    font-size: 18px;
}

.process-movement-page
.movement-warning-panel h3 {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 850;
}

.process-movement-page
.movement-warning-panel p {
    margin: 0;
    font-size: 10px;
    line-height: 1.55;
}

    .process-movement-page
    .movement-warning-panel p + p {
        margin-top: 6px;
        font-weight: 750;
    }


/* =========================================================
   ACTION PANEL
   ========================================================= */

.process-movement-page
.movement-action-panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 15px;
}

.process-movement-page
.movement-btn-cancel,
.process-movement-page
.movement-btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.process-movement-page
.movement-btn-cancel {
    border: 1px solid var(--pm-border);
    background: var(--pm-surface);
    color: var(--pm-muted);
}

    .process-movement-page
    .movement-btn-cancel:hover {
        border-color: var(--pm-primary);
        background: var(--pm-primary-soft);
        color: var(--pm-primary-dark);
    }

.process-movement-page
.movement-btn-save {
    border: 1px solid var(--pm-primary);
    background: linear-gradient( 135deg, var(--pm-primary), var(--pm-primary-dark) );
    color: var(--pm-primary-text);
    cursor: pointer;
    box-shadow: var(--pm-shadow);
}

    .process-movement-page
    .movement-btn-save:hover {
        color: var(--pm-primary-text);
        transform: translateY(-1px);
    }

    .process-movement-page
    .movement-btn-save:disabled {
        cursor: not-allowed;
        opacity: 0.7;
        transform: none;
    }


/* =========================================================
   CONFIRMATION OVERLAY
   ========================================================= */

.movement-confirmation-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

    .movement-confirmation-overlay.is-visible {
        visibility: visible;
        opacity: 1;
    }


    /* =========================================================
   CONFIRMATION MODAL
   ========================================================= */

    .movement-confirmation-overlay
    .movement-confirmation-modal {
        position: relative;
        width: min(100%, 490px);
        padding: 27px;
        border: 1px solid var(--pm-border);
        border-radius: 20px;
        background: var(--pm-surface);
        color: var(--pm-text);
        box-shadow: 0 28px 65px rgba(15, 23, 42, 0.28);
        text-align: center;
        transform: translateY(15px) scale(0.98);
        transition: transform 0.2s ease;
    }

    .movement-confirmation-overlay.is-visible
    .movement-confirmation-modal {
        transform: translateY(0) scale(1);
    }

    .movement-confirmation-overlay
    .movement-confirmation-close {
        position: absolute;
        top: 14px;
        right: 14px;
        display: grid;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 1px solid var(--pm-border);
        border-radius: 10px;
        background: var(--pm-background);
        color: var(--pm-muted);
        cursor: pointer;
    }

        .movement-confirmation-overlay
        .movement-confirmation-close:hover {
            border-color: var(--pm-primary);
            background: var(--pm-primary-soft);
            color: var(--pm-primary-dark);
        }

    .movement-confirmation-overlay
    .movement-confirmation-icon {
        display: grid;
        width: 66px;
        height: 66px;
        margin: 0 auto 15px;
        place-items: center;
        border-radius: 19px;
        background: var(--pm-primary-soft);
        color: var(--pm-primary-dark);
        font-size: 27px;
    }

    .movement-confirmation-overlay
    .movement-confirmation-modal h2 {
        margin: 0;
        color: var(--pm-text);
        font-size: 21px;
        font-weight: 850;
    }

    .movement-confirmation-overlay
    .movement-confirmation-modal > p {
        margin: 7px 0 13px;
        color: var(--pm-muted);
        font-size: 12px;
    }


    /* =========================================================
   CONFIRMATION STUDENT
   ========================================================= */

    .movement-confirmation-overlay
    .movement-confirmation-student {
        display: flex;
        flex-direction: column;
        padding: 12px;
        border: 1px solid var(--pm-border);
        border-radius: 11px;
        background: var(--pm-background);
    }

        .movement-confirmation-overlay
        .movement-confirmation-student strong {
            color: var(--pm-text);
            font-size: 13px;
        }

        .movement-confirmation-overlay
        .movement-confirmation-student span {
            margin-top: 3px;
            color: var(--pm-muted);
            font-size: 10px;
        }


    /* =========================================================
   STATUS CHANGE
   ========================================================= */

    .movement-confirmation-overlay
    .movement-confirmation-status-change {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 11px;
        margin: 15px 0;
    }

        .movement-confirmation-overlay
        .movement-confirmation-status-change > div {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 3px;
            min-height: 61px;
            padding: 10px;
            border: 1px solid var(--pm-border);
            border-radius: 11px;
            background: var(--pm-surface);
        }

            .movement-confirmation-overlay
            .movement-confirmation-status-change > div:last-child {
                border-color: var(--pm-primary);
                background: var(--pm-primary-soft);
            }

        .movement-confirmation-overlay
        .movement-confirmation-status-change span {
            color: var(--pm-muted);
            font-size: 9px;
            font-weight: 850;
            text-transform: uppercase;
        }

        .movement-confirmation-overlay
        .movement-confirmation-status-change strong {
            color: var(--pm-text);
            font-size: 11px;
        }

        .movement-confirmation-overlay
        .movement-confirmation-status-change > i {
            color: var(--pm-primary);
        }


    /* =========================================================
   MODAL WARNING
   ========================================================= */

    .movement-confirmation-overlay
    .movement-confirmation-warning {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        padding: 11px;
        border: 1px solid #fde68a;
        border-radius: 10px;
        background: #fffbeb;
        color: #92400e;
        text-align: left;
    }

        .movement-confirmation-overlay
        .movement-confirmation-warning i {
            flex: 0 0 auto;
            margin-top: 1px;
        }

        .movement-confirmation-overlay
        .movement-confirmation-warning span {
            font-size: 10px;
            line-height: 1.5;
        }


    /* =========================================================
   MODAL ACTIONS
   ========================================================= */

    .movement-confirmation-overlay
    .movement-confirmation-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
    }

    .movement-confirmation-overlay
    .movement-btn-modal-cancel,
    .movement-confirmation-overlay
    .movement-btn-modal-confirm {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        min-height: 42px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 850;
        cursor: pointer;
        transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
    }

    .movement-confirmation-overlay
    .movement-btn-modal-cancel {
        border: 1px solid var(--pm-border);
        background: var(--pm-surface);
        color: var(--pm-muted);
    }

        .movement-confirmation-overlay
        .movement-btn-modal-cancel:hover {
            border-color: var(--pm-primary);
            background: var(--pm-primary-soft);
            color: var(--pm-primary-dark);
        }

    .movement-confirmation-overlay
    .movement-btn-modal-confirm {
        border: 1px solid var(--pm-primary);
        background: linear-gradient( 135deg, var(--pm-primary), var(--pm-primary-dark) );
        color: var(--pm-primary-text);
        box-shadow: var(--pm-shadow);
    }

        .movement-confirmation-overlay
        .movement-btn-modal-confirm:hover {
            color: var(--pm-primary-text);
            transform: translateY(-1px);
        }

        .movement-confirmation-overlay
        .movement-btn-modal-confirm:disabled {
            cursor: not-allowed;
            opacity: 0.72;
            transform: none;
        }


/* =========================================================
   BUTTON SPINNER
   ========================================================= */

.movement-button-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: movement-spin 0.7s linear infinite;
}

@keyframes movement-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.process-movement-page a:focus-visible,
.process-movement-page button:focus-visible,
.process-movement-page input:focus-visible,
.process-movement-page select:focus-visible,
.process-movement-page textarea:focus-visible,
.movement-confirmation-overlay button:focus-visible {
    outline: 3px solid color-mix( in srgb, var(--pm-primary) 28%, transparent );
    outline-offset: 2px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1120px) {
    .process-movement-page
    .movement-page-layout {
        grid-template-columns: 1fr;
    }

    .process-movement-page
    .movement-side-column {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-movement-page
    .movement-action-panel {
        grid-column: 1 / -1;
        flex-direction: row;
    }
}

@media (max-width: 900px) {
    .process-movement-page
    .movement-student-information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-movement-page
    .movement-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .process-movement-page
    .movement-header-status {
        width: 100%;
        text-align: left;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .process-movement-page
    .movement-side-column {
        display: flex;
    }

    .process-movement-page
    .movement-form-grid,
    .process-movement-page
    .movement-effect-grid {
        grid-template-columns: 1fr;
    }

    .process-movement-page
    .movement-form-group-full {
        grid-column: auto;
    }

    .process-movement-page
    .movement-action-panel {
        flex-direction: column-reverse;
    }

    .process-movement-page
    .movement-student-profile-banner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .process-movement-page
    .movement-active-status-badge {
        margin-left: 93px;
    }
}

@media (max-width: 540px) {
    .process-movement-page {
        gap: 14px;
    }

        .process-movement-page
        .movement-page-header {
            padding: 18px;
            border-radius: 16px;
            background: linear-gradient( 180deg, var(--pm-primary-soft), var(--pm-surface) );
        }

        .process-movement-page
        .movement-page-header-content {
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .process-movement-page
        .movement-back-button {
            width: 39px;
            height: 39px;
        }

        .process-movement-page
        .movement-page-header-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            font-size: 20px;
        }

        .process-movement-page
        .movement-page-header-text {
            width: 100%;
        }

        .process-movement-page
        .movement-student-profile-banner {
            padding: 17px;
        }

        .process-movement-page
        .movement-student-avatar-large {
            width: 63px;
            height: 63px;
            border-radius: 17px;
        }

        .process-movement-page
        .movement-student-profile-name h2 {
            font-size: 17px;
        }

        .process-movement-page
        .movement-active-status-badge {
            width: 100%;
            margin-left: 0;
            justify-content: center;
        }

        .process-movement-page
        .movement-student-information-grid {
            grid-template-columns: 1fr;
        }

        .process-movement-page
        .movement-information-item {
            min-height: 74px;
        }

        .process-movement-page
        .movement-panel-body {
            padding: 17px;
        }

        .process-movement-page
        .movement-effect-panel {
            padding: 17px;
        }

    .movement-confirmation-overlay
    .movement-confirmation-modal {
        padding: 23px 17px 18px;
    }

    .movement-confirmation-overlay
    .movement-confirmation-status-change {
        grid-template-columns: 1fr;
    }

        .movement-confirmation-overlay
        .movement-confirmation-status-change > i {
            transform: rotate(90deg);
        }

    .movement-confirmation-overlay
    .movement-confirmation-actions {
        grid-template-columns: 1fr;
    }
}








/* =========================================================
   STUDENT MOVEMENT LIST PAGE
   File: wwwroot/css/admin-portal.css
   ========================================================= */

.student-movement-page {
    --sm-primary: var( --theme-primary, var(--admin-primary, #f97316) );
    --sm-primary-dark: var( --theme-primary-dark, var(--admin-primary-dark, #ea580c) );
    --sm-primary-soft: var( --theme-primary-soft, var(--admin-primary-soft, #fff7ed) );
    --sm-primary-text: var( --theme-primary-text, var(--admin-primary-text, #ffffff) );
    --sm-secondary: var( --theme-secondary, var(--admin-secondary, #2563eb) );
    --sm-secondary-dark: var( --theme-secondary-dark, var(--admin-secondary-dark, #1d4ed8) );
    --sm-secondary-soft: var( --theme-secondary-soft, var(--admin-secondary-soft, #eff6ff) );
    --sm-background: var( --theme-bg, var(--admin-bg, #f8fafc) );
    --sm-surface: var( --theme-surface, var(--admin-surface, #ffffff) );
    --sm-border: var( --theme-border, var(--admin-border, #e5e7eb) );
    --sm-text: var( --theme-text, var(--admin-text, #111827) );
    --sm-muted: var( --theme-muted, var(--admin-muted, #64748b) );
    --sm-shadow: var( --theme-shadow, 0 10px 28px rgba(15, 23, 42, 0.06) );
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 32px;
    color: var(--sm-text);
}


    /* =========================================================
   HERO
   ========================================================= */

    .student-movement-page .student-movement-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 26px 28px;
        border: 1px solid var(--sm-border);
        border-radius: 20px;
        background: linear-gradient( 135deg, var(--sm-primary-soft) 0%, var(--sm-surface) 60%, var(--sm-primary-soft) 100% );
        box-shadow: var(--sm-shadow);
    }

    .student-movement-page
    .student-movement-hero-content {
        display: flex;
        align-items: center;
        gap: 18px;
        min-width: 0;
    }

    .student-movement-page
    .student-movement-hero-text {
        min-width: 0;
    }

    .student-movement-page
    .student-movement-hero-icon {
        display: grid;
        flex: 0 0 auto;
        width: 60px;
        height: 60px;
        place-items: center;
        border-radius: 17px;
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
        font-size: 25px;
        box-shadow: 0 10px 22px color-mix( in srgb, var(--sm-primary) 24%, transparent );
    }

    .student-movement-page
    .student-movement-hero-eyebrow {
        margin-bottom: 3px;
        color: var(--sm-primary-dark);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .student-movement-page
    .student-movement-hero h1 {
        margin: 0;
        color: var(--sm-text);
        font-size: clamp(24px, 3vw, 34px);
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .student-movement-page
    .student-movement-hero p {
        max-width: 720px;
        margin: 7px 0 0;
        color: var(--sm-muted);
        font-size: 14px;
        line-height: 1.65;
    }

    .student-movement-page
    .student-movement-hero-status {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        min-width: 180px;
        padding: 14px 18px;
        border: 1px solid var(--sm-border);
        border-radius: 14px;
        background: var(--sm-surface);
        text-align: right;
    }

    .student-movement-page
    .student-movement-hero-status-label {
        color: var(--sm-primary-dark);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .student-movement-page
    .student-movement-hero-status strong {
        margin-top: 3px;
        color: var(--sm-text);
        font-size: 16px;
    }


    /* =========================================================
   ALERTS
   ========================================================= */

    .student-movement-page
    .student-movement-alert {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 15px 17px;
        border: 1px solid;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    }

    .student-movement-page
    .student-movement-alert-icon {
        display: grid;
        flex: 0 0 auto;
        width: 36px;
        height: 36px;
        place-items: center;
        border-radius: 10px;
        font-size: 17px;
    }

    .student-movement-page
    .student-movement-alert-content {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
    }

        .student-movement-page
        .student-movement-alert-content strong {
            font-size: 14px;
        }

        .student-movement-page
        .student-movement-alert-content span {
            font-size: 13px;
            line-height: 1.45;
        }

    .student-movement-page
    .student-movement-alert-success {
        border-color: #a7f3d0;
        background: #ecfdf5;
        color: #065f46;
    }

        .student-movement-page
        .student-movement-alert-success
        .student-movement-alert-icon {
            background: #d1fae5;
        }

    .student-movement-page
    .student-movement-alert-error {
        border-color: #fecaca;
        background: #fef2f2;
        color: #991b1b;
    }

        .student-movement-page
        .student-movement-alert-error
        .student-movement-alert-icon {
            background: #fee2e2;
        }

    .student-movement-page
    .student-movement-alert-close {
        display: grid;
        flex: 0 0 auto;
        width: 34px;
        height: 34px;
        place-items: center;
        border: 0;
        border-radius: 9px;
        background: transparent;
        color: currentColor;
        cursor: pointer;
        opacity: 0.72;
    }

        .student-movement-page
        .student-movement-alert-close:hover {
            background: rgba(255, 255, 255, 0.65);
            opacity: 1;
        }


    /* =========================================================
   SUMMARY CARDS
   ========================================================= */

    .student-movement-page
    .student-movement-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

    .student-movement-page
    .student-movement-summary-card {
        display: flex;
        align-items: center;
        gap: 14px;
        min-height: 112px;
        padding: 18px;
        border: 1px solid var(--sm-border);
        border-radius: 17px;
        background: var(--sm-surface);
        box-shadow: var(--sm-shadow);
    }

    .student-movement-page
    .student-movement-summary-icon {
        display: grid;
        flex: 0 0 auto;
        width: 46px;
        height: 46px;
        place-items: center;
        border-radius: 13px;
        font-size: 19px;
    }

    .student-movement-page
    .student-movement-summary-icon-primary {
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

    .student-movement-page
    .student-movement-summary-icon-success {
        background: #dcfce7;
        color: #15803d;
    }

    .student-movement-page
    .student-movement-summary-icon-warning {
        background: #fef3c7;
        color: #b45309;
    }

    .student-movement-page
    .student-movement-summary-icon-neutral {
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-summary-content {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

        .student-movement-page
        .student-movement-summary-content > span {
            color: var(--sm-muted);
            font-size: 12px;
            font-weight: 700;
        }

        .student-movement-page
        .student-movement-summary-content > strong {
            margin-top: 2px;
            color: var(--sm-text);
            font-size: 22px;
            font-weight: 800;
            line-height: 1.2;
        }

        .student-movement-page
        .student-movement-summary-content > small {
            margin-top: 3px;
            overflow: hidden;
            color: var(--sm-muted);
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }


    /* =========================================================
   FILTER AND LIST PANELS
   ========================================================= */

    .student-movement-page
    .student-movement-filter-panel,
    .student-movement-page
    .student-movement-list-panel {
        overflow: hidden;
        border: 1px solid var(--sm-border);
        border-radius: 18px;
        background: var(--sm-surface);
        box-shadow: var(--sm-shadow);
    }

    .student-movement-page
    .student-movement-panel-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 19px 22px;
        border-bottom: 1px solid var(--sm-border);
        background: var(--sm-surface);
    }

    .student-movement-page
    .student-movement-list-heading {
        background: var(--sm-background);
    }

    .student-movement-page
    .student-movement-panel-heading h2 {
        display: flex;
        align-items: center;
        gap: 9px;
        margin: 0;
        color: var(--sm-text);
        font-size: 17px;
        font-weight: 800;
    }

        .student-movement-page
        .student-movement-panel-heading h2 i {
            color: var(--sm-primary);
        }

    .student-movement-page
    .student-movement-panel-heading p {
        margin: 4px 0 0;
        color: var(--sm-muted);
        font-size: 12px;
    }


    /* =========================================================
   FILTER FORM
   ========================================================= */

    .student-movement-page
    .student-movement-filter-panel form {
        padding: 22px;
    }

    .student-movement-page
    .student-movement-filter-grid {
        display: grid;
        grid-template-columns: minmax(240px, 1.65fr) repeat(5, minmax(145px, 1fr));
        gap: 15px;
        align-items: end;
    }

    .student-movement-page
    .student-movement-form-group {
        min-width: 0;
    }

        .student-movement-page
        .student-movement-form-group label {
            display: block;
            margin-bottom: 7px;
            color: var(--sm-text);
            font-size: 12px;
            font-weight: 750;
        }

    .student-movement-page
    .student-movement-form-control,
    .student-movement-page
    .student-movement-form-select {
        width: 100%;
        height: 43px;
        border: 1px solid var(--sm-border);
        border-radius: 11px;
        background-color: var(--sm-surface);
        color: var(--sm-text);
        font-size: 13px;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .student-movement-page
    .student-movement-form-control {
        padding: 0 13px;
    }

    .student-movement-page
    .student-movement-form-select {
        padding: 0 34px 0 12px;
    }

    .student-movement-page
    .student-movement-form-control::placeholder {
        color: var(--sm-muted);
        opacity: 0.8;
    }

    .student-movement-page
    .student-movement-form-control:focus,
    .student-movement-page
    .student-movement-form-select:focus {
        border-color: var(--sm-primary);
        box-shadow: 0 0 0 4px color-mix( in srgb, var(--sm-primary) 14%, transparent );
    }

    .student-movement-page
    .student-movement-input-icon {
        position: relative;
    }

        .student-movement-page
        .student-movement-input-icon > i {
            position: absolute;
            z-index: 2;
            top: 50%;
            left: 14px;
            color: var(--sm-muted);
            transform: translateY(-50%);
            pointer-events: none;
        }

        .student-movement-page
        .student-movement-input-icon
        .student-movement-form-control {
            padding-left: 40px;
        }


    /* =========================================================
   FILTER ACTIONS
   ========================================================= */

    .student-movement-page
    .student-movement-filter-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 18px;
        padding-top: 17px;
        border-top: 1px solid var(--sm-border);
    }

    .student-movement-page
    .student-movement-btn-reset,
    .student-movement-page
    .student-movement-btn-search,
    .student-movement-page
    .student-movement-btn-process,
    .student-movement-page
    .student-movement-btn-empty-reset {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 40px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
    }

    .student-movement-page
    .student-movement-btn-reset {
        padding: 0 17px;
        border: 1px solid var(--sm-border);
        background: var(--sm-surface);
        color: var(--sm-muted);
    }

        .student-movement-page
        .student-movement-btn-reset:hover {
            border-color: var(--sm-primary);
            background: var(--sm-primary-soft);
            color: var(--sm-primary-dark);
        }

    .student-movement-page
    .student-movement-btn-search {
        padding: 0 18px;
        border: 1px solid var(--sm-primary);
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
        cursor: pointer;
        box-shadow: 0 7px 15px color-mix( in srgb, var(--sm-primary) 20%, transparent );
    }

        .student-movement-page
        .student-movement-btn-search:hover,
        .student-movement-page
        .student-movement-btn-process:hover,
        .student-movement-page
        .student-movement-btn-empty-reset:hover {
            color: var(--sm-primary-text);
            transform: translateY(-1px);
            box-shadow: 0 9px 20px color-mix( in srgb, var(--sm-primary) 25%, transparent );
        }


    /* =========================================================
   RECORD COUNT
   ========================================================= */

    .student-movement-page
    .student-movement-record-count {
        display: flex;
        align-items: baseline;
        gap: 5px;
        padding: 8px 12px;
        border: 1px solid var(--sm-border);
        border-radius: 10px;
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
    }

        .student-movement-page
        .student-movement-record-count strong {
            font-size: 15px;
        }

        .student-movement-page
        .student-movement-record-count span {
            font-size: 11px;
            font-weight: 700;
        }


    /* =========================================================
   DESKTOP TABLE
   ========================================================= */

    .student-movement-page
    .student-movement-table-responsive {
        overflow-x: auto;
    }

    .student-movement-page
    .student-movement-table {
        width: 100%;
        min-width: 1030px;
        border-collapse: collapse;
    }

        .student-movement-page
        .student-movement-table th {
            padding: 12px 17px;
            border-bottom: 1px solid var(--sm-border);
            background: var(--sm-background);
            color: var(--sm-muted);
            font-size: 10px;
            font-weight: 800;
            letter-spacing: 0.055em;
            text-align: left;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .student-movement-page
        .student-movement-table td {
            padding: 14px 17px;
            border-bottom: 1px solid var(--sm-border);
            color: var(--sm-text);
            font-size: 12px;
            vertical-align: middle;
        }

        .student-movement-page
        .student-movement-table tbody tr {
            transition: background 0.16s ease;
        }

            .student-movement-page
            .student-movement-table tbody tr:hover {
                background: var(--sm-primary-soft);
            }

            .student-movement-page
            .student-movement-table tbody tr:last-child td {
                border-bottom: 0;
            }

    .student-movement-page
    .student-movement-text-end {
        text-align: right !important;
    }


    /* =========================================================
   STUDENT IDENTITY
   ========================================================= */

    .student-movement-page
    .student-movement-student-identity {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 245px;
    }

    .student-movement-page
    .student-movement-student-avatar {
        position: relative;
        display: grid;
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        overflow: hidden;
        place-items: center;
        border: 2px solid var(--sm-border);
        border-radius: 50%;
        background: linear-gradient( 135deg, var(--sm-primary-soft), var(--sm-surface) );
        color: var(--sm-primary-dark);
        font-size: 12px;
        font-weight: 900;
    }

        .student-movement-page
        .student-movement-student-avatar img {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            background: var(--sm-surface);
            object-fit: cover;
        }

    .student-movement-page
    .student-movement-student-main-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

        .student-movement-page
        .student-movement-student-main-info strong {
            overflow: hidden;
            max-width: 310px;
            color: var(--sm-text);
            font-size: 13px;
            font-weight: 800;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-movement-page
        .student-movement-student-main-info span {
            display: flex;
            align-items: center;
            gap: 5px;
            margin-top: 3px;
            color: var(--sm-muted);
            font-size: 11px;
        }

    .student-movement-page
    .student-movement-table-value {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        white-space: nowrap;
    }

        .student-movement-page
        .student-movement-table-value i {
            color: var(--sm-muted);
        }


    /* =========================================================
   BADGES
   ========================================================= */

    .student-movement-page
    .student-movement-section-badge,
    .student-movement-page
    .student-movement-status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 9px;
        border-radius: 999px;
        font-size: 10px;
        font-weight: 800;
        white-space: nowrap;
    }

    .student-movement-page
    .student-movement-section-assigned {
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-section-unassigned {
        background: #fef3c7;
        color: #92400e;
    }

    .student-movement-page
    .student-movement-status-badge {
        background: #ecfdf5;
        color: #047857;
    }

    .student-movement-page
    .student-movement-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.13);
    }


    /* =========================================================
   PROCESS BUTTON
   ========================================================= */

    .student-movement-page
    .student-movement-btn-process {
        min-height: 36px;
        padding: 0 13px;
        border: 1px solid var(--sm-border);
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
        white-space: nowrap;
    }

        .student-movement-page
        .student-movement-btn-process:hover {
            border-color: var(--sm-primary);
            background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        }


    /* =========================================================
   MOBILE LIST
   ========================================================= */

    .student-movement-page
    .student-movement-mobile-list {
        display: none;
        padding: 14px;
        background: var(--sm-background);
    }

    .student-movement-page
    .student-movement-mobile-card {
        padding: 16px;
        border: 1px solid var(--sm-border);
        border-radius: 15px;
        background: var(--sm-surface);
        box-shadow: var(--sm-shadow);
    }

        .student-movement-page
        .student-movement-mobile-card + .student-movement-mobile-card {
            margin-top: 12px;
        }

    .student-movement-page
    .student-movement-mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .student-movement-page
    .student-movement-mobile-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 15px;
    }

    .student-movement-page
    .student-movement-mobile-detail {
        display: flex;
        flex-direction: column;
        gap: 3px;
        padding: 10px;
        border-radius: 10px;
        background: var(--sm-background);
    }

        .student-movement-page
        .student-movement-mobile-detail span {
            color: var(--sm-muted);
            font-size: 9px;
            font-weight: 800;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .student-movement-page
        .student-movement-mobile-detail strong {
            overflow: hidden;
            color: var(--sm-text);
            font-size: 11px;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .student-movement-page
    .student-movement-btn-process-mobile {
        width: 100%;
        margin-top: 14px;
        border-color: var(--sm-primary);
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
    }


    /* =========================================================
   LIST FOOTER AND PAGINATION
   ========================================================= */

    .student-movement-page
    .student-movement-list-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 16px 20px;
        border-top: 1px solid var(--sm-border);
        background: var(--sm-background);
    }

    .student-movement-page
    .student-movement-pagination-summary {
        color: var(--sm-muted);
        font-size: 11px;
    }

        .student-movement-page
        .student-movement-pagination-summary strong {
            color: var(--sm-text);
        }

    .student-movement-page
    .student-movement-pagination {
        display: flex;
        align-items: center;
        gap: 5px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .student-movement-page
        .student-movement-pagination li a,
        .student-movement-page
        .student-movement-pagination li span {
            display: grid;
            min-width: 34px;
            height: 34px;
            padding: 0 8px;
            place-items: center;
            border: 1px solid var(--sm-border);
            border-radius: 9px;
            background: var(--sm-surface);
            color: var(--sm-muted);
            font-size: 11px;
            font-weight: 800;
            text-decoration: none;
        }

            .student-movement-page
            .student-movement-pagination li a:hover {
                border-color: var(--sm-primary);
                background: var(--sm-primary-soft);
                color: var(--sm-primary-dark);
            }

        .student-movement-page
        .student-movement-pagination li.active span {
            border-color: var(--sm-primary);
            background: var(--sm-primary);
            color: var(--sm-primary-text);
        }

        .student-movement-page
        .student-movement-pagination li.disabled span {
            border-color: var(--sm-border);
            background: var(--sm-background);
            color: var(--sm-muted);
            cursor: not-allowed;
            opacity: 0.48;
        }

    .student-movement-page
    .student-movement-pagination-ellipsis span {
        border-color: transparent !important;
        background: transparent !important;
    }


    /* =========================================================
   EMPTY STATE
   ========================================================= */

    .student-movement-page
    .student-movement-empty-state {
        display: flex;
        align-items: center;
        flex-direction: column;
        padding: 62px 24px;
        text-align: center;
    }

    .student-movement-page
    .student-movement-empty-icon {
        display: grid;
        width: 72px;
        height: 72px;
        place-items: center;
        border-radius: 20px;
        background: var(--sm-primary-soft);
        color: var(--sm-primary-dark);
        font-size: 29px;
    }

    .student-movement-page
    .student-movement-empty-state h3 {
        margin: 17px 0 5px;
        color: var(--sm-text);
        font-size: 18px;
        font-weight: 800;
    }

    .student-movement-page
    .student-movement-empty-state p {
        max-width: 430px;
        margin: 0;
        color: var(--sm-muted);
        font-size: 13px;
        line-height: 1.6;
    }

    .student-movement-page
    .student-movement-btn-empty-reset {
        margin-top: 17px;
        padding: 0 17px;
        border: 1px solid var(--sm-primary);
        background: linear-gradient( 135deg, var(--sm-primary), var(--sm-primary-dark) );
        color: var(--sm-primary-text);
    }


    /* =========================================================
   INFORMATION PANEL
   ========================================================= */

    .student-movement-page
    .student-movement-information-panel {
        display: flex;
        align-items: flex-start;
        gap: 14px;
        padding: 18px 20px;
        border: 1px solid var(--sm-border);
        border-radius: 15px;
        background: var(--sm-secondary-soft);
        color: var(--sm-secondary-dark);
    }

    .student-movement-page
    .student-movement-information-icon {
        flex: 0 0 auto;
        margin-top: 1px;
        font-size: 20px;
    }

    .student-movement-page
    .student-movement-information-panel h3 {
        margin: 0 0 4px;
        font-size: 13px;
        font-weight: 800;
    }

    .student-movement-page
    .student-movement-information-panel p {
        margin: 0;
        font-size: 12px;
        line-height: 1.65;
    }


    /* =========================================================
   ACCESSIBILITY
   ========================================================= */

    .student-movement-page a:focus-visible,
    .student-movement-page button:focus-visible,
    .student-movement-page input:focus-visible,
    .student-movement-page select:focus-visible {
        outline: 3px solid color-mix( in srgb, var(--sm-primary) 28%, transparent );
        outline-offset: 2px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1350px) {
    .student-movement-page
    .student-movement-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-movement-page
    .student-movement-search-group {
        grid-column: span 2;
    }
}

@media (max-width: 1050px) {
    .student-movement-page
    .student-movement-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-movement-page
    .student-movement-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-movement-page
    .student-movement-hero-status {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 820px) {
    .student-movement-page
    .student-movement-desktop-table {
        display: none;
    }

    .student-movement-page
    .student-movement-mobile-list {
        display: block;
    }

    .student-movement-page
    .student-movement-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-movement-page
    .student-movement-search-group {
        grid-column: 1 / -1;
    }

    .student-movement-page
    .student-movement-list-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-movement-page
    .student-movement-pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .student-movement-page {
        gap: 14px;
    }

        .student-movement-page
        .student-movement-hero {
            padding: 20px;
            border-radius: 16px;
            background: linear-gradient( 180deg, var(--sm-primary-soft), var(--sm-surface) );
        }

        .student-movement-page
        .student-movement-hero-content {
            align-items: flex-start;
        }

        .student-movement-page
        .student-movement-hero-icon {
            width: 49px;
            height: 49px;
            border-radius: 14px;
            font-size: 20px;
        }

        .student-movement-page
        .student-movement-hero p {
            font-size: 12px;
        }

        .student-movement-page
        .student-movement-summary-grid {
            grid-template-columns: 1fr;
            gap: 10px;
        }

        .student-movement-page
        .student-movement-summary-card {
            min-height: 94px;
        }

        .student-movement-page
        .student-movement-panel-heading {
            align-items: flex-start;
            padding: 16px;
        }

        .student-movement-page
        .student-movement-list-heading {
            flex-direction: column;
        }

        .student-movement-page
        .student-movement-filter-panel form {
            padding: 16px;
        }

        .student-movement-page
        .student-movement-filter-grid {
            grid-template-columns: 1fr;
        }

        .student-movement-page
        .student-movement-search-group {
            grid-column: auto;
        }

        .student-movement-page
        .student-movement-filter-actions {
            flex-direction: column-reverse;
        }

        .student-movement-page
        .student-movement-btn-reset,
        .student-movement-page
        .student-movement-btn-search {
            width: 100%;
        }

        .student-movement-page
        .student-movement-mobile-detail-grid {
            grid-template-columns: 1fr;
        }

        .student-movement-page
        .student-movement-list-footer {
            padding: 15px;
        }

        .student-movement-page
        .student-movement-information-panel {
            padding: 15px;
        }
}






/* =========================================================
   STUDENT MOVEMENT HISTORY
   ========================================================= */

.student-movement-history-page {
    --mh-primary: var(--theme-primary, var(--admin-primary, #f97316));
    --mh-primary-dark: var(--theme-primary-dark, var(--admin-primary-dark, #ea580c));
    --mh-primary-soft: var(--theme-primary-soft, var(--admin-primary-soft, #fff7ed));
    --mh-primary-text: var(--theme-primary-text, var(--admin-primary-text, #ffffff));
    --mh-secondary: var(--theme-secondary, #64748b);
    --mh-secondary-dark: var(--theme-secondary-dark, #475569);
    --mh-secondary-soft: var(--theme-secondary-soft, #f1f5f9);
    --mh-bg: var(--theme-bg, #f8fafc);
    --mh-surface: var(--theme-surface, #ffffff);
    --mh-border: var(--theme-border, #e2e8f0);
    --mh-text: var(--theme-text, #0f172a);
    --mh-muted: var(--theme-muted, #64748b);
    --mh-shadow: var(--theme-shadow, 0 10px 30px rgba(15, 23, 42, 0.08));
    --mh-success: #16a34a;
    --mh-success-soft: #f0fdf4;
    --mh-danger: #dc2626;
    --mh-danger-soft: #fef2f2;
    --mh-warning: #d97706;
    --mh-warning-soft: #fffbeb;
    --mh-info: #2563eb;
    --mh-info-soft: #eff6ff;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--mh-text);
}


    /* =========================================================
   HERO
   ========================================================= */

    .student-movement-history-page .movement-history-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.5rem 1.6rem;
        border: 1px solid var(--mh-border);
        border-radius: 18px;
        background: var(--mh-surface);
        box-shadow: var(--mh-shadow);
    }

    .student-movement-history-page .movement-history-hero-content {
        display: flex;
        align-items: center;
        gap: 1rem;
        min-width: 0;
    }

    .student-movement-history-page .movement-history-hero-icon {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: var(--mh-primary-soft);
        color: var(--mh-primary);
    }

    .student-movement-history-page .movement-history-hero-text {
        min-width: 0;
    }

    .student-movement-history-page .movement-history-hero-eyebrow {
        margin-bottom: 0.2rem;
        color: var(--mh-primary);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.11em;
        text-transform: uppercase;
    }

    .student-movement-history-page .movement-history-hero h1 {
        margin: 0;
        color: var(--mh-text);
        font-size: clamp(1.45rem, 2vw, 2rem);
        font-weight: 800;
        line-height: 1.2;
    }

    .student-movement-history-page .movement-history-hero p {
        max-width: 720px;
        margin: 0.4rem 0 0;
        color: var(--mh-muted);
        font-size: 0.93rem;
        line-height: 1.6;
    }

    .student-movement-history-page .movement-history-hero-actions {
        flex: 0 0 auto;
    }

    .student-movement-history-page .movement-history-back-button {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.7rem 1rem;
        border: 1px solid var(--mh-border);
        border-radius: 10px;
        background: var(--mh-surface);
        color: var(--mh-text);
        font-size: 0.84rem;
        font-weight: 700;
        text-decoration: none;
        transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    }

        .student-movement-history-page .movement-history-back-button:hover {
            border-color: var(--mh-primary);
            background: var(--mh-primary-soft);
            color: var(--mh-primary-dark);
            transform: translateY(-1px);
        }


    /* =========================================================
   ALERTS
   ========================================================= */

    .student-movement-history-page .movement-history-alert {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        border: 1px solid transparent;
        border-radius: 12px;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .student-movement-history-page .movement-history-alert-icon {
        flex: 0 0 auto;
        margin-top: 1px;
    }

    .student-movement-history-page .movement-history-alert-content {
        flex: 1;
        min-width: 0;
    }

    .student-movement-history-page .movement-history-alert-success {
        border-color: #bbf7d0;
        background: var(--mh-success-soft);
        color: #166534;
    }

    .student-movement-history-page .movement-history-alert-error {
        border-color: #fecaca;
        background: var(--mh-danger-soft);
        color: #991b1b;
    }


    /* =========================================================
   SUMMARY CARDS
   ========================================================= */

    .student-movement-history-page .movement-history-summary-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }

    .student-movement-history-page .movement-history-summary-card {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 1rem 1.1rem;
        border: 1px solid var(--mh-border);
        border-radius: 14px;
        background: var(--mh-surface);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    }

    .student-movement-history-page .movement-history-summary-icon {
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: var(--mh-primary-soft);
        color: var(--mh-primary);
    }

    .student-movement-history-page .movement-history-summary-card > div:last-child {
        min-width: 0;
    }

    .student-movement-history-page .movement-history-summary-card span {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--mh-muted);
        font-size: 0.75rem;
        font-weight: 600;
    }

    .student-movement-history-page .movement-history-summary-card strong {
        display: block;
        overflow: hidden;
        color: var(--mh-text);
        font-size: 1.15rem;
        font-weight: 800;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =========================================================
   PANEL
   ========================================================= */

    .student-movement-history-page .movement-history-panel {
        overflow: hidden;
        border: 1px solid var(--mh-border);
        border-radius: 16px;
        background: var(--mh-surface);
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
    }

    .student-movement-history-page .movement-history-panel-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.2rem 1.3rem;
        border-bottom: 1px solid var(--mh-border);
    }

    .student-movement-history-page .movement-history-panel-eyebrow {
        display: block;
        margin-bottom: 0.2rem;
        color: var(--mh-primary);
        font-size: 0.69rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .student-movement-history-page .movement-history-panel-header h2 {
        margin: 0;
        color: var(--mh-text);
        font-size: 1.05rem;
        font-weight: 800;
    }

    .student-movement-history-page .movement-history-panel-header p {
        margin: 0.35rem 0 0;
        color: var(--mh-muted);
        font-size: 0.82rem;
        line-height: 1.5;
    }


    /* =========================================================
   FILTER FORM
   ========================================================= */

    .student-movement-history-page .movement-history-filter-form {
        padding: 1.2rem 1.3rem 1.3rem;
    }

    .student-movement-history-page .movement-history-filter-grid {
        display: grid;
        grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 0.8fr)) repeat(2, minmax(145px, 0.75fr)) minmax(115px, 0.55fr);
        gap: 0.85rem;
        align-items: end;
    }

    .student-movement-history-page .movement-history-field {
        min-width: 0;
    }

        .student-movement-history-page .movement-history-field label {
            display: block;
            margin-bottom: 0.38rem;
            color: var(--mh-text);
            font-size: 0.74rem;
            font-weight: 700;
        }

        .student-movement-history-page .movement-history-field input,
        .student-movement-history-page .movement-history-field select {
            width: 100%;
            min-height: 42px;
            padding: 0.65rem 0.75rem;
            border: 1px solid var(--mh-border);
            border-radius: 9px;
            outline: none;
            background: var(--mh-surface);
            color: var(--mh-text);
            font: inherit;
            font-size: 0.82rem;
            transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
        }

        .student-movement-history-page .movement-history-field select {
            cursor: pointer;
        }

            .student-movement-history-page .movement-history-field input:hover,
            .student-movement-history-page .movement-history-field select:hover {
                border-color: var(--mh-primary);
            }

            .student-movement-history-page .movement-history-field input:focus,
            .student-movement-history-page .movement-history-field select:focus {
                border-color: var(--mh-primary);
                box-shadow: 0 0 0 3px var(--mh-primary-soft);
            }

        .student-movement-history-page .movement-history-field input::placeholder {
            color: #94a3b8;
        }

    .student-movement-history-page .movement-history-input-with-icon {
        position: relative;
    }

        .student-movement-history-page .movement-history-input-with-icon > svg {
            position: absolute;
            top: 50%;
            left: 0.8rem;
            z-index: 1;
            color: var(--mh-muted);
            pointer-events: none;
            transform: translateY(-50%);
        }

        .student-movement-history-page .movement-history-input-with-icon input {
            padding-left: 2.45rem;
        }

    .student-movement-history-page .movement-history-filter-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.65rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--mh-border);
    }

    .student-movement-history-page .movement-history-reset-button,
    .student-movement-history-page .movement-history-apply-button {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.65rem 0.95rem;
        border-radius: 9px;
        font: inherit;
        font-size: 0.79rem;
        font-weight: 700;
        cursor: pointer;
        text-decoration: none;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .student-movement-history-page .movement-history-reset-button {
        border: 1px solid var(--mh-border);
        background: var(--mh-surface);
        color: var(--mh-muted);
    }

        .student-movement-history-page .movement-history-reset-button:hover {
            border-color: var(--mh-secondary);
            background: var(--mh-secondary-soft);
            color: var(--mh-text);
        }

    .student-movement-history-page .movement-history-apply-button {
        border: 1px solid var(--mh-primary);
        background: var(--mh-primary);
        color: var(--mh-primary-text);
    }

        .student-movement-history-page .movement-history-apply-button:hover {
            border-color: var(--mh-primary-dark);
            background: var(--mh-primary-dark);
            transform: translateY(-1px);
        }


    /* =========================================================
   TABLE
   ========================================================= */

    .student-movement-history-page .movement-history-table-wrap {
        width: 100%;
        overflow-x: auto;
    }

    .student-movement-history-page .movement-history-table {
        width: 100%;
        min-width: 1180px;
        border-collapse: collapse;
        table-layout: auto;
    }

        .student-movement-history-page .movement-history-table thead {
            background: var(--mh-bg);
        }

        .student-movement-history-page .movement-history-table th {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--mh-border);
            color: var(--mh-muted);
            font-size: 0.69rem;
            font-weight: 800;
            letter-spacing: 0.05em;
            text-align: left;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .student-movement-history-page .movement-history-table td {
            padding: 0.9rem 1rem;
            border-bottom: 1px solid var(--mh-border);
            color: var(--mh-text);
            font-size: 0.81rem;
            vertical-align: middle;
        }

        .student-movement-history-page .movement-history-table tbody tr {
            transition: background-color 0.15s ease;
        }

            .student-movement-history-page .movement-history-table tbody tr:hover {
                background: var(--mh-primary-soft);
            }

            .student-movement-history-page .movement-history-table tbody tr:last-child td {
                border-bottom: 0;
            }


    /* =========================================================
   STUDENT IDENTITY
   ========================================================= */

    .student-movement-history-page .movement-history-student {
        min-width: 210px;
        display: flex;
        align-items: center;
        gap: 0.7rem;
    }

    .student-movement-history-page .movement-history-avatar {
        position: relative;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        overflow: hidden;
        border: 2px solid var(--mh-border);
        border-radius: 50%;
        background: var(--mh-primary-soft);
    }

        .student-movement-history-page .movement-history-avatar img {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

    .student-movement-history-page .movement-history-avatar-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--mh-primary-soft);
        color: var(--mh-primary-dark);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .student-movement-history-page .movement-history-student-info {
        min-width: 0;
    }

        .student-movement-history-page .movement-history-student-info strong {
            display: block;
            max-width: 220px;
            overflow: hidden;
            color: var(--mh-text);
            font-size: 0.84rem;
            font-weight: 750;
            line-height: 1.3;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-movement-history-page .movement-history-student-info span {
            display: block;
            margin-top: 0.18rem;
            color: var(--mh-muted);
            font-size: 0.72rem;
        }


    /* =========================================================
   ACADEMIC INFO
   ========================================================= */

    .student-movement-history-page .movement-history-academic-info,
    .student-movement-history-page .movement-history-date-info,
    .student-movement-history-page .movement-history-reason-info,
    .student-movement-history-page .movement-history-encoded-info {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

        .student-movement-history-page .movement-history-academic-info strong,
        .student-movement-history-page .movement-history-date-info strong,
        .student-movement-history-page .movement-history-reason-info strong,
        .student-movement-history-page .movement-history-encoded-info strong {
            color: var(--mh-text);
            font-size: 0.8rem;
            font-weight: 700;
        }

        .student-movement-history-page .movement-history-academic-info span,
        .student-movement-history-page .movement-history-date-info span,
        .student-movement-history-page .movement-history-reason-info span,
        .student-movement-history-page .movement-history-encoded-info span {
            color: var(--mh-muted);
            font-size: 0.71rem;
            line-height: 1.4;
        }

    .student-movement-history-page .movement-history-section {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* =========================================================
   STATUS FLOW
   ========================================================= */

    .student-movement-history-page .movement-history-status-flow {
        min-width: 195px;
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

        .student-movement-history-page .movement-history-status-flow > svg {
            flex: 0 0 auto;
            color: var(--mh-muted);
        }

    .student-movement-history-page .movement-history-status-previous {
        color: var(--mh-muted);
        font-size: 0.72rem;
        font-weight: 650;
        white-space: nowrap;
    }

    .student-movement-history-page .movement-history-status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        min-height: 25px;
        padding: 0.28rem 0.55rem;
        border: 1px solid var(--mh-border);
        border-radius: 999px;
        background: var(--mh-secondary-soft);
        color: var(--mh-secondary-dark);
        font-size: 0.68rem;
        font-weight: 800;
        white-space: nowrap;
    }

        .student-movement-history-page .movement-history-status-badge.transferred {
            border-color: #bfdbfe;
            background: var(--mh-info-soft);
            color: #1d4ed8;
        }

        .student-movement-history-page .movement-history-status-badge.withdrawn {
            border-color: #fed7aa;
            background: #fff7ed;
            color: #c2410c;
        }

        .student-movement-history-page .movement-history-status-badge.dropped {
            border-color: #fde68a;
            background: var(--mh-warning-soft);
            color: #a16207;
        }

        .student-movement-history-page .movement-history-status-badge.dismissed {
            border-color: #fecaca;
            background: var(--mh-danger-soft);
            color: #b91c1c;
        }


    /* =========================================================
   REASON / DESTINATION
   ========================================================= */

    .student-movement-history-page .movement-history-reason-info {
        max-width: 285px;
    }

        .student-movement-history-page .movement-history-reason-info strong {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .student-movement-history-page .movement-history-reason-info span {
            overflow-wrap: anywhere;
        }

        .student-movement-history-page .movement-history-reason-info b {
            color: var(--mh-text);
            font-weight: 700;
        }


    /* =========================================================
   MOBILE CARD LIST
   ========================================================= */

    .student-movement-history-page .movement-history-mobile-list {
        display: none;
        padding: 1rem;
    }

    .student-movement-history-page .movement-history-mobile-card {
        overflow: hidden;
        border: 1px solid var(--mh-border);
        border-radius: 14px;
        background: var(--mh-surface);
    }

        .student-movement-history-page .movement-history-mobile-card + .movement-history-mobile-card {
            margin-top: 0.85rem;
        }

    .student-movement-history-page .movement-history-mobile-card-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.9rem;
        border-bottom: 1px solid var(--mh-border);
        background: var(--mh-bg);
    }

    .student-movement-history-page .movement-history-mobile-details {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
        padding: 0.9rem;
    }

    .student-movement-history-page .movement-history-mobile-detail {
        min-width: 0;
    }

        .student-movement-history-page .movement-history-mobile-detail span {
            display: block;
            margin-bottom: 0.18rem;
            color: var(--mh-muted);
            font-size: 0.68rem;
            font-weight: 600;
        }

        .student-movement-history-page .movement-history-mobile-detail strong {
            display: block;
            overflow: hidden;
            color: var(--mh-text);
            font-size: 0.78rem;
            font-weight: 700;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .student-movement-history-page .movement-history-mobile-reason {
        margin: 0 0.9rem 0.9rem;
        padding: 0.8rem;
        border: 1px solid var(--mh-border);
        border-radius: 10px;
        background: var(--mh-bg);
    }

        .student-movement-history-page .movement-history-mobile-reason > span {
            display: block;
            margin-bottom: 0.25rem;
            color: var(--mh-muted);
            font-size: 0.67rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .student-movement-history-page .movement-history-mobile-reason > strong {
            display: block;
            color: var(--mh-text);
            font-size: 0.79rem;
            line-height: 1.45;
        }

        .student-movement-history-page .movement-history-mobile-reason p {
            margin: 0.45rem 0 0;
            color: var(--mh-muted);
            font-size: 0.72rem;
            line-height: 1.45;
        }

    .student-movement-history-page .movement-history-mobile-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 0.9rem;
        border-top: 1px solid var(--mh-border);
        color: var(--mh-muted);
        font-size: 0.69rem;
    }

        .student-movement-history-page .movement-history-mobile-footer strong {
            color: var(--mh-text);
        }


    /* =========================================================
   PAGINATION
   ========================================================= */

    .student-movement-history-page .movement-history-pagination-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        padding: 1rem 1.2rem;
        border-top: 1px solid var(--mh-border);
    }

    .student-movement-history-page .movement-history-pagination-info {
        color: var(--mh-muted);
        font-size: 0.76rem;
    }

        .student-movement-history-page .movement-history-pagination-info strong {
            color: var(--mh-text);
        }

    .student-movement-history-page .movement-history-pagination {
        display: flex;
        align-items: center;
        gap: 0.32rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .student-movement-history-page .movement-history-pagination li {
            display: flex;
        }

            .student-movement-history-page .movement-history-pagination li > a,
            .student-movement-history-page .movement-history-pagination li > span {
                min-width: 34px;
                height: 34px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 0 0.5rem;
                border: 1px solid var(--mh-border);
                border-radius: 8px;
                background: var(--mh-surface);
                color: var(--mh-text);
                font-size: 0.74rem;
                font-weight: 700;
                text-decoration: none;
                transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
            }

                .student-movement-history-page .movement-history-pagination li > a:hover {
                    border-color: var(--mh-primary);
                    background: var(--mh-primary-soft);
                    color: var(--mh-primary-dark);
                }

            .student-movement-history-page .movement-history-pagination li.active > span {
                border-color: var(--mh-primary);
                background: var(--mh-primary);
                color: var(--mh-primary-text);
            }

            .student-movement-history-page .movement-history-pagination li.disabled > span {
                opacity: 0.45;
                cursor: not-allowed;
            }

    .student-movement-history-page .movement-history-pagination-ellipsis > span {
        border-color: transparent !important;
        background: transparent !important;
        color: var(--mh-muted) !important;
    }

    .student-movement-history-page .movement-history-page-control {
        padding: 0 !important;
    }


    /* =========================================================
   EMPTY STATE
   ========================================================= */

    .student-movement-history-page .movement-history-empty-state {
        padding: 3.5rem 1.25rem;
        text-align: center;
    }

    .student-movement-history-page .movement-history-empty-icon {
        width: 74px;
        height: 74px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1rem;
        border-radius: 22px;
        background: var(--mh-primary-soft);
        color: var(--mh-primary);
    }

    .student-movement-history-page .movement-history-empty-state h3 {
        margin: 0;
        color: var(--mh-text);
        font-size: 1rem;
        font-weight: 800;
    }

    .student-movement-history-page .movement-history-empty-state p {
        max-width: 460px;
        margin: 0.45rem auto 1rem;
        color: var(--mh-muted);
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .student-movement-history-page .movement-history-empty-reset {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 38px;
        padding: 0.6rem 0.9rem;
        border: 1px solid var(--mh-primary);
        border-radius: 9px;
        background: var(--mh-primary);
        color: var(--mh-primary-text);
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none;
    }

        .student-movement-history-page .movement-history-empty-reset:hover {
            border-color: var(--mh-primary-dark);
            background: var(--mh-primary-dark);
            color: var(--mh-primary-text);
        }


    /* =========================================================
   INFORMATION
   ========================================================= */

    .student-movement-history-page .movement-history-information {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem 1.1rem;
        border: 1px solid var(--mh-border);
        border-left: 4px solid var(--mh-primary);
        border-radius: 12px;
        background: var(--mh-surface);
    }

    .student-movement-history-page .movement-history-information-icon {
        flex: 0 0 auto;
        color: var(--mh-primary);
    }

    .student-movement-history-page .movement-history-information strong {
        display: block;
        color: var(--mh-text);
        font-size: 0.82rem;
        font-weight: 800;
    }

    .student-movement-history-page .movement-history-information p {
        margin: 0.25rem 0 0;
        color: var(--mh-muted);
        font-size: 0.76rem;
        line-height: 1.55;
    }


    /* =========================================================
   ACCESSIBILITY
   ========================================================= */

    .student-movement-history-page a:focus-visible,
    .student-movement-history-page button:focus-visible,
    .student-movement-history-page input:focus-visible,
    .student-movement-history-page select:focus-visible {
        outline: 2px solid var(--mh-primary);
        outline-offset: 2px;
    }


/* =========================================================
   RESPONSIVE - 1450
   ========================================================= */

@media (max-width: 1450px) {

    .student-movement-history-page .movement-history-filter-grid {
        grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(145px, 0.8fr));
    }

    .student-movement-history-page .movement-history-search-field {
        grid-column: span 1;
    }
}


/* =========================================================
   RESPONSIVE - 1180
   ========================================================= */

@media (max-width: 1180px) {

    .student-movement-history-page .movement-history-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-movement-history-page .movement-history-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-movement-history-page .movement-history-search-field {
        grid-column: span 2;
    }
}


/* =========================================================
   RESPONSIVE - 900
   ========================================================= */

@media (max-width: 900px) {

    .student-movement-history-page .movement-history-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-movement-history-page .movement-history-hero-actions {
        width: 100%;
    }

    .student-movement-history-page .movement-history-back-button {
        width: 100%;
    }

    .student-movement-history-page .movement-history-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-movement-history-page .movement-history-search-field {
        grid-column: 1 / -1;
    }

    .student-movement-history-page .movement-history-table-wrap {
        display: none;
    }

    .student-movement-history-page .movement-history-mobile-list {
        display: block;
    }

    .student-movement-history-page .movement-history-pagination-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-movement-history-page .movement-history-pagination {
        width: 100%;
        flex-wrap: wrap;
    }
}


/* =========================================================
   RESPONSIVE - 640
   ========================================================= */

@media (max-width: 640px) {

    .student-movement-history-page {
        gap: 0.9rem;
    }

        .student-movement-history-page .movement-history-hero {
            padding: 1rem;
            border-radius: 14px;
        }

        .student-movement-history-page .movement-history-hero-content {
            align-items: flex-start;
        }

        .student-movement-history-page .movement-history-hero-icon {
            width: 46px;
            height: 46px;
            flex-basis: 46px;
            border-radius: 13px;
        }

        .student-movement-history-page .movement-history-hero h1 {
            font-size: 1.25rem;
        }

        .student-movement-history-page .movement-history-hero p {
            font-size: 0.8rem;
        }

        .student-movement-history-page .movement-history-summary-grid {
            grid-template-columns: 1fr;
            gap: 0.7rem;
        }

        .student-movement-history-page .movement-history-summary-card {
            padding: 0.85rem;
        }

        .student-movement-history-page .movement-history-panel {
            border-radius: 13px;
        }

        .student-movement-history-page .movement-history-panel-header {
            padding: 1rem;
        }

        .student-movement-history-page .movement-history-filter-form {
            padding: 1rem;
        }

        .student-movement-history-page .movement-history-filter-grid {
            grid-template-columns: 1fr;
        }

        .student-movement-history-page .movement-history-search-field {
            grid-column: auto;
        }

        .student-movement-history-page .movement-history-filter-actions {
            align-items: stretch;
            flex-direction: column-reverse;
        }

        .student-movement-history-page .movement-history-reset-button,
        .student-movement-history-page .movement-history-apply-button {
            width: 100%;
        }

        .student-movement-history-page .movement-history-mobile-list {
            padding: 0.75rem;
        }

        .student-movement-history-page .movement-history-mobile-card-header {
            align-items: flex-start;
            flex-direction: column;
        }

            .student-movement-history-page .movement-history-mobile-card-header .movement-history-status-badge {
                margin-left: 3.2rem;
            }

        .student-movement-history-page .movement-history-mobile-details {
            grid-template-columns: 1fr;
            gap: 0.6rem;
        }

        .student-movement-history-page .movement-history-mobile-footer {
            align-items: flex-start;
            flex-direction: column;
        }

        .student-movement-history-page .movement-history-pagination-wrap {
            padding: 0.85rem;
        }

        .student-movement-history-page .movement-history-pagination li > a,
        .student-movement-history-page .movement-history-pagination li > span {
            min-width: 32px;
            height: 32px;
            font-size: 0.7rem;
        }

        .student-movement-history-page .movement-history-information {
            padding: 0.9rem;
        }
}

/* =========================================================
   STUDENT MOVEMENT - HERO ACTIONS
   ========================================================= */

.student-movement-page .student-movement-hero-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.student-movement-page .student-movement-history-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid var(--sm-primary);
    border-radius: 10px;
    background: var(--sm-primary);
    color: var(--sm-primary-text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .student-movement-page .student-movement-history-button i {
        font-size: 0.95rem;
        line-height: 1;
    }

    .student-movement-page .student-movement-history-button:hover {
        border-color: var(--sm-primary-dark);
        background: var(--sm-primary-dark);
        color: var(--sm-primary-text);
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(15, 23, 42, 0.10);
    }

    .student-movement-page .student-movement-history-button:active {
        transform: translateY(0);
    }

    .student-movement-page .student-movement-history-button:focus-visible {
        outline: 2px solid var(--sm-primary);
        outline-offset: 2px;
    }


/* =========================================================
   HERO STATUS
   ========================================================= */

.student-movement-page .student-movement-hero-actions
.student-movement-hero-status {
    flex: 0 0 auto;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 820px) {

    .student-movement-page .student-movement-hero-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0.6rem;
    }

    .student-movement-page .student-movement-history-button {
        width: 100%;
        min-height: 44px;
    }

    .student-movement-page .student-movement-hero-status {
        width: 100%;
    }
}





/* =========================================================
   STUDENT MOVEMENT HISTORY DETAILS
   ========================================================= */

.movement-history-details-page {
    --md-primary: var(--theme-primary, var(--admin-primary, #f97316));
    --md-primary-dark: var(--theme-primary-dark, var(--admin-primary-dark, #ea580c));
    --md-primary-soft: var(--theme-primary-soft, var(--admin-primary-soft, #fff7ed));
    --md-primary-text: var(--theme-primary-text, var(--admin-primary-text, #ffffff));
    --md-secondary: var(--theme-secondary, #64748b);
    --md-secondary-dark: var(--theme-secondary-dark, #475569);
    --md-secondary-soft: var(--theme-secondary-soft, #f1f5f9);
    --md-bg: var(--theme-bg, #f8fafc);
    --md-surface: var(--theme-surface, #ffffff);
    --md-border: var(--theme-border, #e2e8f0);
    --md-text: var(--theme-text, #0f172a);
    --md-muted: var(--theme-muted, #64748b);
    --md-shadow: var( --theme-shadow, 0 10px 30px rgba(15, 23, 42, 0.08) );
    --md-success: #16a34a;
    --md-success-soft: #f0fdf4;
    --md-danger: #dc2626;
    --md-danger-soft: #fef2f2;
    --md-warning: #d97706;
    --md-warning-soft: #fffbeb;
    --md-info: #2563eb;
    --md-info-soft: #eff6ff;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: var(--md-text);
}


    /* =========================================================
   HERO
   ========================================================= */

    .movement-history-details-page .movement-details-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.45rem 1.6rem;
        border: 1px solid var(--md-border);
        border-radius: 18px;
        background: var(--md-surface);
        box-shadow: var(--md-shadow);
    }

    .movement-history-details-page .movement-details-hero-content {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .movement-history-details-page .movement-details-hero-icon {
        width: 54px;
        height: 54px;
        flex: 0 0 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px;
        background: var(--md-primary-soft);
        color: var(--md-primary);
        font-size: 1.45rem;
    }

    .movement-history-details-page .movement-details-hero-text {
        min-width: 0;
    }

    .movement-history-details-page .movement-details-hero-eyebrow {
        margin-bottom: 0.2rem;
        color: var(--md-primary);
        font-size: 0.71rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .movement-history-details-page .movement-details-hero h1 {
        margin: 0;
        color: var(--md-text);
        font-size: clamp(1.45rem, 2vw, 2rem);
        font-weight: 800;
        line-height: 1.2;
    }

    .movement-history-details-page .movement-details-hero p {
        max-width: 720px;
        margin: 0.4rem 0 0;
        color: var(--md-muted);
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .movement-history-details-page .movement-details-hero-actions {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 0.65rem;
    }


    /* =========================================================
   HERO BUTTONS
   ========================================================= */

    .movement-history-details-page .movement-details-btn-back,
    .movement-history-details-page .movement-details-btn-active {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.7rem 0.95rem;
        border-radius: 10px;
        font-size: 0.79rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .movement-history-details-page .movement-details-btn-back {
        border: 1px solid var(--md-border);
        background: var(--md-surface);
        color: var(--md-text);
    }

        .movement-history-details-page .movement-details-btn-back:hover {
            border-color: var(--md-primary);
            background: var(--md-primary-soft);
            color: var(--md-primary-dark);
            transform: translateY(-1px);
        }

    .movement-history-details-page .movement-details-btn-active {
        border: 1px solid var(--md-primary);
        background: var(--md-primary);
        color: var(--md-primary-text);
    }

        .movement-history-details-page .movement-details-btn-active:hover {
            border-color: var(--md-primary-dark);
            background: var(--md-primary-dark);
            color: var(--md-primary-text);
            transform: translateY(-1px);
            box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
        }


    /* =========================================================
   STUDENT PROFILE CARD
   ========================================================= */

    .movement-history-details-page .movement-details-profile-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding: 1.25rem 1.35rem;
        border: 1px solid var(--md-border);
        border-radius: 16px;
        background: var(--md-surface);
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
    }

    .movement-history-details-page .movement-details-profile-main {
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .movement-history-details-page .movement-details-avatar {
        position: relative;
        width: 70px;
        height: 70px;
        flex: 0 0 70px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 3px solid var(--md-border);
        border-radius: 50%;
        background: var(--md-primary-soft);
        color: var(--md-primary-dark);
        font-size: 1.1rem;
        font-weight: 800;
    }

        .movement-history-details-page .movement-details-avatar span {
            position: relative;
            z-index: 1;
        }

        .movement-history-details-page .movement-details-avatar img {
            position: absolute;
            inset: 0;
            z-index: 2;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
        }

    .movement-history-details-page .movement-details-profile-info {
        min-width: 0;
    }

    .movement-history-details-page .movement-details-profile-label {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--md-primary);
        font-size: 0.68rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .movement-history-details-page .movement-details-profile-info h2 {
        margin: 0;
        color: var(--md-text);
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.3;
    }

    .movement-history-details-page .movement-details-profile-meta {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem 1rem;
        margin-top: 0.6rem;
    }

        .movement-history-details-page .movement-details-profile-meta span {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            color: var(--md-muted);
            font-size: 0.76rem;
            font-weight: 600;
        }

        .movement-history-details-page .movement-details-profile-meta i {
            color: var(--md-primary);
        }

    .movement-history-details-page .movement-details-profile-status {
        flex: 0 0 auto;
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        gap: 0.4rem;
    }

    .movement-history-details-page .movement-details-profile-status-label {
        color: var(--md-muted);
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
    }


    /* =========================================================
   STATUS BADGES
   ========================================================= */

    .movement-history-details-page .movement-details-status-badge {
        min-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: fit-content;
        padding: 0.3rem 0.65rem;
        border: 1px solid var(--md-border);
        border-radius: 999px;
        background: var(--md-secondary-soft);
        color: var(--md-secondary-dark);
        font-size: 0.7rem;
        font-weight: 800;
        white-space: nowrap;
    }

        .movement-history-details-page
        .movement-details-status-badge.enrolled {
            border-color: #bbf7d0;
            background: var(--md-success-soft);
            color: #15803d;
        }

        .movement-history-details-page
        .movement-details-status-badge.enrolled-late {
            border-color: #bfdbfe;
            background: var(--md-info-soft);
            color: #1d4ed8;
        }

        .movement-history-details-page
        .movement-details-status-badge.transferred {
            border-color: #bfdbfe;
            background: var(--md-info-soft);
            color: #1d4ed8;
        }

        .movement-history-details-page
        .movement-details-status-badge.withdrawn {
            border-color: #fed7aa;
            background: #fff7ed;
            color: #c2410c;
        }

        .movement-history-details-page
        .movement-details-status-badge.dropped {
            border-color: #fde68a;
            background: var(--md-warning-soft);
            color: #a16207;
        }

        .movement-history-details-page
        .movement-details-status-badge.dismissed {
            border-color: #fecaca;
            background: var(--md-danger-soft);
            color: #b91c1c;
        }

        .movement-history-details-page
        .movement-details-status-badge.default {
            border-color: var(--md-border);
            background: var(--md-secondary-soft);
            color: var(--md-secondary-dark);
        }


    /* =========================================================
   STATUS TRANSITION PANEL
   ========================================================= */

    .movement-history-details-page .movement-details-status-panel {
        padding: 1.25rem 1.35rem;
        border: 1px solid var(--md-border);
        border-radius: 16px;
        background: var(--md-surface);
        box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
    }

    .movement-history-details-page .movement-details-section-heading {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .movement-history-details-page .movement-details-heading-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--md-primary-soft);
        color: var(--md-primary);
        font-size: 1rem;
    }

    .movement-history-details-page .movement-details-section-heading span {
        display: block;
        margin-bottom: 0.1rem;
        color: var(--md-primary);
        font-size: 0.67rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .movement-history-details-page .movement-details-section-heading h2 {
        margin: 0;
        color: var(--md-text);
        font-size: 1rem;
        font-weight: 800;
    }

    .movement-history-details-page .movement-details-section-heading p {
        margin: 0.25rem 0 0;
        color: var(--md-muted);
        font-size: 0.76rem;
        line-height: 1.5;
    }


    /* =========================================================
   STATUS FLOW
   ========================================================= */

    .movement-history-details-page .movement-details-status-flow {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: stretch;
        gap: 0.9rem;
        margin-top: 1.15rem;
    }

    .movement-history-details-page .movement-details-status-box {
        min-height: 84px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.9rem 1rem;
        border: 1px solid var(--md-border);
        border-radius: 12px;
        background: var(--md-bg);
    }

    .movement-history-details-page
    .movement-details-status-box-movement {
        border-color: var(--md-primary);
        background: var(--md-primary-soft);
    }

    .movement-history-details-page .movement-details-status-box-label {
        color: var(--md-muted);
        font-size: 0.67rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .movement-history-details-page .movement-details-status-box strong {
        color: var(--md-text);
        font-size: 0.93rem;
        font-weight: 800;
    }

    .movement-history-details-page .movement-details-status-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--md-primary);
        font-size: 1.2rem;
    }


    /* =========================================================
   CURRENT STATUS PANEL
   ========================================================= */

    .movement-history-details-page
    .movement-details-current-status-panel {
        padding: 1rem 1.15rem;
        border: 1px solid var(--md-border);
        border-left: 4px solid var(--md-primary);
        border-radius: 13px;
        background: var(--md-surface);
    }

    .movement-history-details-page
    .movement-details-current-status-content {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .movement-history-details-page
    .movement-details-current-status-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: var(--md-primary-soft);
        color: var(--md-primary);
        font-size: 1.05rem;
    }

    .movement-history-details-page
    .movement-details-current-status-text {
        min-width: 0;
    }

        .movement-history-details-page
        .movement-details-current-status-text > span {
            display: block;
            color: var(--md-muted);
            font-size: 0.68rem;
            font-weight: 700;
            text-transform: uppercase;
        }

    .movement-history-details-page
    .movement-details-current-status-value {
        margin-top: 0.35rem;
    }

    .movement-history-details-page
    .movement-details-current-status-text p {
        margin: 0.45rem 0 0;
        color: var(--md-muted);
        font-size: 0.76rem;
        line-height: 1.55;
    }


    /* =========================================================
   MAIN CONTENT GRID
   ========================================================= */

    .movement-history-details-page .movement-details-content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(280px, 350px);
        align-items: start;
        gap: 1.1rem;
    }

    .movement-history-details-page .movement-details-main-column,
    .movement-history-details-page .movement-details-side-column {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }


    /* =========================================================
   MAIN CARDS
   ========================================================= */

    .movement-history-details-page .movement-details-card {
        overflow: hidden;
        border: 1px solid var(--md-border);
        border-radius: 15px;
        background: var(--md-surface);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    }

    .movement-history-details-page .movement-details-card-header {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.1rem;
        border-bottom: 1px solid var(--md-border);
        background: var(--md-bg);
    }

    .movement-history-details-page .movement-details-card-icon {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        background: var(--md-primary-soft);
        color: var(--md-primary);
        font-size: 1rem;
    }

    .movement-history-details-page
    .movement-details-card-header > div:last-child {
        min-width: 0;
    }

    .movement-history-details-page .movement-details-card-header span {
        display: block;
        margin-bottom: 0.1rem;
        color: var(--md-primary);
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.07em;
        text-transform: uppercase;
    }

    .movement-history-details-page .movement-details-card-header h2 {
        margin: 0;
        color: var(--md-text);
        font-size: 0.95rem;
        font-weight: 800;
    }

    .movement-history-details-page .movement-details-card-body {
        padding: 1.1rem;
    }


    /* =========================================================
   DETAIL GRID
   ========================================================= */

    .movement-history-details-page .movement-details-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .movement-history-details-page .movement-details-detail-item {
        min-width: 0;
        padding: 0.85rem;
        border: 1px solid var(--md-border);
        border-radius: 10px;
        background: var(--md-bg);
    }

    .movement-history-details-page .movement-details-detail-full {
        grid-column: 1 / -1;
    }

    .movement-history-details-page .movement-details-detail-label {
        display: block;
        margin-bottom: 0.3rem;
        color: var(--md-muted);
        font-size: 0.66rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .movement-history-details-page .movement-details-detail-item strong {
        color: var(--md-text);
        font-size: 0.8rem;
        font-weight: 750;
        line-height: 1.4;
    }

    .movement-history-details-page .movement-details-detail-text {
        color: var(--md-text);
        font-size: 0.79rem;
        line-height: 1.55;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }


    /* =========================================================
   RECEIVING SCHOOL
   ========================================================= */

    .movement-history-details-page
    .movement-details-receiving-school {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        color: var(--md-text);
        font-size: 0.8rem;
    }

        .movement-history-details-page
        .movement-details-receiving-school i {
            color: var(--md-primary);
            font-size: 1rem;
        }


    /* =========================================================
   SIDE CARDS
   ========================================================= */

    .movement-history-details-page .movement-details-side-card {
        overflow: hidden;
        border: 1px solid var(--md-border);
        border-radius: 15px;
        background: var(--md-surface);
        box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    }

    .movement-history-details-page
    .movement-details-side-card-header {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.9rem 1rem;
        border-bottom: 1px solid var(--md-border);
        background: var(--md-bg);
    }

        .movement-history-details-page
        .movement-details-side-card-header i {
            color: var(--md-primary);
            font-size: 1rem;
        }

        .movement-history-details-page
        .movement-details-side-card-header h2 {
            margin: 0;
            color: var(--md-text);
            font-size: 0.85rem;
            font-weight: 800;
        }

    .movement-history-details-page
    .movement-details-side-card-body {
        padding: 0.95rem 1rem;
    }


    /* =========================================================
   SUMMARY ROW
   ========================================================= */

    .movement-history-details-page .movement-details-summary-row {
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--md-border);
    }

        .movement-history-details-page
        .movement-details-summary-row:first-child {
            padding-top: 0;
        }

        .movement-history-details-page
        .movement-details-summary-row:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }

        .movement-history-details-page .movement-details-summary-row > span:first-child {
            color: var(--md-muted);
            font-size: 0.71rem;
            font-weight: 600;
        }

        .movement-history-details-page .movement-details-summary-row > strong {
            min-width: 0;
            color: var(--md-text);
            font-size: 0.73rem;
            font-weight: 750;
            text-align: right;
            overflow-wrap: anywhere;
        }


    /* =========================================================
   AUDIT ITEMS
   ========================================================= */

    .movement-history-details-page .movement-details-audit-item {
        display: flex;
        align-items: flex-start;
        gap: 0.7rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--md-border);
    }

        .movement-history-details-page
        .movement-details-audit-item:first-child {
            padding-top: 0;
        }

        .movement-history-details-page
        .movement-details-audit-item:last-child {
            padding-bottom: 0;
            border-bottom: 0;
        }

    .movement-history-details-page .movement-details-audit-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        background: var(--md-primary-soft);
        color: var(--md-primary);
    }

    .movement-history-details-page
    .movement-details-audit-item > div:last-child {
        min-width: 0;
    }

    .movement-history-details-page .movement-details-audit-item span {
        display: block;
        margin-bottom: 0.15rem;
        color: var(--md-muted);
        font-size: 0.67rem;
        font-weight: 600;
    }

    .movement-history-details-page .movement-details-audit-item strong {
        display: block;
        color: var(--md-text);
        font-size: 0.75rem;
        font-weight: 750;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }


    /* =========================================================
   INTERNAL REFERENCE CARD
   ========================================================= */

    .movement-history-details-page
    .movement-details-reference-card {
        background: var(--md-bg);
    }

        .movement-history-details-page
        .movement-details-reference-card
        .movement-details-side-card-header {
            background: var(--md-secondary-soft);
        }


    /* =========================================================
   HISTORICAL NOTICE
   ========================================================= */

    .movement-history-details-page
    .movement-details-history-notice {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem 1.1rem;
        border: 1px solid var(--md-border);
        border-left: 4px solid var(--md-primary);
        border-radius: 12px;
        background: var(--md-surface);
    }

    .movement-history-details-page
    .movement-details-history-notice-icon {
        flex: 0 0 auto;
        color: var(--md-primary);
        font-size: 1.05rem;
    }

    .movement-history-details-page
    .movement-details-history-notice h3 {
        margin: 0;
        color: var(--md-text);
        font-size: 0.82rem;
        font-weight: 800;
    }

    .movement-history-details-page
    .movement-details-history-notice p {
        margin: 0.25rem 0 0;
        color: var(--md-muted);
        font-size: 0.75rem;
        line-height: 1.55;
    }


    /* =========================================================
   FOOTER ACTION
   ========================================================= */

    .movement-history-details-page
    .movement-details-footer-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .movement-history-details-page
    .movement-details-btn-back-bottom {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        padding: 0.65rem 0.95rem;
        border: 1px solid var(--md-border);
        border-radius: 9px;
        background: var(--md-surface);
        color: var(--md-text);
        font-size: 0.77rem;
        font-weight: 700;
        text-decoration: none;
        transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

        .movement-history-details-page
        .movement-details-btn-back-bottom:hover {
            border-color: var(--md-primary);
            background: var(--md-primary-soft);
            color: var(--md-primary-dark);
            transform: translateY(-1px);
        }


    /* =========================================================
   FOCUS / ACCESSIBILITY
   ========================================================= */

    .movement-history-details-page a:focus-visible,
    .movement-history-details-page button:focus-visible {
        outline: 2px solid var(--md-primary);
        outline-offset: 2px;
    }


/* =========================================================
   RESPONSIVE - 1200
   ========================================================= */

@media (max-width: 1200px) {

    .movement-history-details-page
    .movement-details-content-grid {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
    }
}


/* =========================================================
   RESPONSIVE - 1000
   ========================================================= */

@media (max-width: 1000px) {

    .movement-history-details-page
    .movement-details-content-grid {
        grid-template-columns: 1fr;
    }

    .movement-history-details-page
    .movement-details-side-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movement-history-details-page
    .movement-details-reference-card {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   RESPONSIVE - 820
   ========================================================= */

@media (max-width: 820px) {

    .movement-history-details-page
    .movement-details-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .movement-history-details-page
    .movement-details-hero-actions {
        width: 100%;
        align-items: stretch;
    }

    .movement-history-details-page
    .movement-details-btn-back,
    .movement-history-details-page
    .movement-details-btn-active {
        flex: 1;
    }

    .movement-history-details-page
    .movement-details-profile-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .movement-history-details-page
    .movement-details-profile-status {
        width: 100%;
        align-items: flex-start;
        padding-top: 0.8rem;
        border-top: 1px solid var(--md-border);
    }

    .movement-history-details-page
    .movement-details-status-flow {
        grid-template-columns: 1fr;
    }

    .movement-history-details-page
    .movement-details-status-arrow {
        min-height: 28px;
        transform: rotate(90deg);
    }
}


/* =========================================================
   RESPONSIVE - 640
   ========================================================= */

@media (max-width: 640px) {

    .movement-history-details-page {
        gap: 0.9rem;
    }

        .movement-history-details-page
        .movement-details-hero {
            padding: 1rem;
            border-radius: 14px;
        }

        .movement-history-details-page
        .movement-details-hero-content {
            align-items: flex-start;
        }

        .movement-history-details-page
        .movement-details-hero-icon {
            width: 46px;
            height: 46px;
            flex-basis: 46px;
            border-radius: 13px;
            font-size: 1.2rem;
        }

        .movement-history-details-page
        .movement-details-hero h1 {
            font-size: 1.25rem;
        }

        .movement-history-details-page
        .movement-details-hero p {
            font-size: 0.8rem;
        }

        .movement-history-details-page
        .movement-details-hero-actions {
            flex-direction: column;
        }

        .movement-history-details-page
        .movement-details-btn-back,
        .movement-history-details-page
        .movement-details-btn-active {
            width: 100%;
        }

        .movement-history-details-page
        .movement-details-profile-card {
            padding: 1rem;
            border-radius: 13px;
        }

        .movement-history-details-page
        .movement-details-profile-main {
            align-items: flex-start;
        }

        .movement-history-details-page
        .movement-details-avatar {
            width: 58px;
            height: 58px;
            flex-basis: 58px;
        }

        .movement-history-details-page
        .movement-details-profile-info h2 {
            font-size: 1rem;
        }

        .movement-history-details-page
        .movement-details-profile-meta {
            align-items: flex-start;
            flex-direction: column;
            gap: 0.3rem;
        }

        .movement-history-details-page
        .movement-details-status-panel {
            padding: 1rem;
            border-radius: 13px;
        }

        .movement-history-details-page
        .movement-details-status-box {
            min-height: auto;
        }

        .movement-history-details-page
        .movement-details-current-status-panel {
            padding: 0.9rem;
        }

        .movement-history-details-page
        .movement-details-detail-grid {
            grid-template-columns: 1fr;
        }

        .movement-history-details-page
        .movement-details-detail-full {
            grid-column: auto;
        }

        .movement-history-details-page
        .movement-details-card {
            border-radius: 13px;
        }

        .movement-history-details-page
        .movement-details-card-header {
            padding: 0.9rem;
        }

        .movement-history-details-page
        .movement-details-card-body {
            padding: 0.9rem;
        }

        .movement-history-details-page
        .movement-details-side-column {
            display: flex;
            flex-direction: column;
        }

        .movement-history-details-page
        .movement-details-reference-card {
            grid-column: auto;
        }

        .movement-history-details-page
        .movement-details-summary-row {
            align-items: flex-start;
            flex-direction: column;
            gap: 0.25rem;
        }

            .movement-history-details-page
            .movement-details-summary-row > strong {
                text-align: left;
            }

        .movement-history-details-page
        .movement-details-history-notice {
            padding: 0.9rem;
        }

        .movement-history-details-page
        .movement-details-footer-actions {
            justify-content: stretch;
        }

        .movement-history-details-page
        .movement-details-btn-back-bottom {
            width: 100%;
        }
}


/* =========================================================
   RESPONSIVE - 420
   ========================================================= */

@media (max-width: 420px) {

    .movement-history-details-page
    .movement-details-profile-main {
        width: 100%;
    }

    .movement-history-details-page
    .movement-details-avatar {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
        font-size: 0.9rem;
    }

    .movement-history-details-page
    .movement-details-current-status-content {
        gap: 0.65rem;
    }

    .movement-history-details-page
    .movement-details-current-status-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}


/* =========================================================
   MOVEMENT HISTORY - DETAILS ACTION
   ========================================================= */

.student-movement-history-page .movement-history-text-end {
    text-align: right;
}

.student-movement-history-page .movement-history-details-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--mh-primary);
    border-radius: 8px;
    background: var(--mh-primary-soft);
    color: var(--mh-primary-dark);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .student-movement-history-page .movement-history-details-button:hover {
        border-color: var(--mh-primary);
        background: var(--mh-primary);
        color: var(--mh-primary-text);
        transform: translateY(-1px);
    }

.student-movement-history-page .movement-history-mobile-action {
    padding: 0 0.9rem 0.9rem;
}

.student-movement-history-page
.movement-history-details-button-mobile {
    width: 100%;
    min-height: 42px;
    background: var(--mh-primary);
    color: var(--mh-primary-text);
}

    .student-movement-history-page
    .movement-history-details-button-mobile:hover {
        border-color: var(--mh-primary-dark);
        background: var(--mh-primary-dark);
        color: var(--mh-primary-text);
    }

/* ============================================================
   STUDENT MOVEMENT - REVERSAL
   ============================================================ */

.student-movement-reversal-page {
    --mr-primary: var(--theme-primary, #F97316);
    --mr-primary-dark: var(--theme-primary-dark, #EA580C);
    --mr-primary-soft: var(--theme-primary-soft, #FFF7ED);
    --mr-primary-text: var(--theme-primary-text, #FFFFFF);
    --mr-surface: var(--theme-surface, #FFFFFF);
    --mr-bg: var(--theme-bg, #F8FAFC);
    --mr-border: var(--theme-border, #E5E7EB);
    --mr-text: var(--theme-text, #1F2937);
    --mr-muted: var(--theme-muted, #6B7280);
    --mr-success: #15803D;
    --mr-success-soft: #F0FDF4;
    --mr-success-border: #BBF7D0;
    --mr-danger: #B91C1C;
    --mr-danger-dark: #991B1B;
    --mr-danger-soft: #FEF2F2;
    --mr-danger-border: #FECACA;
    --mr-warning: #B45309;
    --mr-warning-soft: #FFFBEB;
    --mr-warning-border: #FDE68A;
    --mr-blue: #1D4ED8;
    --mr-blue-soft: #EFF6FF;
    --mr-blue-border: #BFDBFE;
    color: var(--mr-text);
}


/* ============================================================
   HERO
   ============================================================ */

.movement-reversal-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    margin-bottom: 22px;
    border-radius: 28px;
    border: 1px solid var(--mr-border);
    background: radial-gradient( circle at top right, color-mix( in srgb, var(--mr-primary) 18%, transparent), transparent 34% ), radial-gradient( circle at bottom left, color-mix( in srgb, var(--mr-primary-dark) 9%, transparent), transparent 30% ), linear-gradient( 135deg, var(--mr-surface), var(--mr-primary-soft) );
    box-shadow: var(--theme-shadow);
}


    .movement-reversal-hero::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        right: -95px;
        bottom: -125px;
        border-radius: 999px;
        border: 34px solid color-mix( in srgb, var(--mr-primary) 7%, transparent );
        pointer-events: none;
    }


.movement-reversal-hero-main {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 780px;
}


.movement-reversal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--mr-primary-dark);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}


    .movement-reversal-eyebrow i {
        font-size: 14px;
    }


.movement-reversal-hero h2 {
    margin: 0;
    color: var(--mr-text);
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 950;
    letter-spacing: -0.045em;
    line-height: 1.05;
}


.movement-reversal-hero p {
    max-width: 700px;
    margin: 11px 0 0;
    color: var(--mr-muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.65;
}


.movement-reversal-hero-actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}


.movement-reversal-back-button {
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 15px;
    border: 1px solid var(--mr-border);
    background: var(--mr-surface);
    color: var(--mr-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}


    .movement-reversal-back-button:hover {
        transform: translateY(-1px);
        background: var(--mr-primary-soft);
        color: var(--mr-primary-dark);
        border-color: color-mix( in srgb, var(--mr-primary) 30%, var(--mr-border) );
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }


/* ============================================================
   ALERT
   ============================================================ */

.movement-reversal-alert {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 20px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--mr-border);
    background: var(--mr-surface);
}


    .movement-reversal-alert.danger {
        background: var(--mr-danger-soft);
        border-color: var(--mr-danger-border);
    }


.movement-reversal-alert-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #FFFFFF;
    color: var(--mr-danger);
    border: 1px solid var(--mr-danger-border);
    font-size: 18px;
}


.movement-reversal-alert strong {
    display: block;
    color: var(--mr-danger-dark);
    font-size: 13px;
    font-weight: 900;
}


.movement-reversal-validation-summary {
    margin-top: 5px;
    color: var(--mr-danger);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.5;
}


    .movement-reversal-validation-summary ul {
        margin: 6px 0 0;
        padding-left: 18px;
    }


/* ============================================================
   STUDENT PROFILE
   ============================================================ */

.movement-reversal-profile-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 24px;
    background: #0F172A;
    color: #FFFFFF;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}


.movement-reversal-profile-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}


.movement-reversal-avatar {
    position: relative;
    width: 70px;
    height: 70px;
    min-width: 70px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient( 135deg, var(--mr-primary), var(--mr-primary-dark) );
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}


    .movement-reversal-avatar img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        border-radius: inherit;
    }


.movement-reversal-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mr-primary-text);
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.03em;
}


.movement-reversal-student-info {
    min-width: 0;
}


.movement-reversal-student-label {
    display: block;
    color: #94A3B8;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


.movement-reversal-student-info h3 {
    margin: 4px 0 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: -0.035em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.movement-reversal-student-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 7px;
}


    .movement-reversal-student-meta span {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        color: #CBD5E1;
        font-size: 11px;
        font-weight: 700;
    }


    .movement-reversal-student-meta i {
        color: var(--mr-primary);
        font-size: 12px;
    }


.movement-reversal-record-chip {
    min-width: 125px;
    padding: 11px 13px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    text-align: right;
}


    .movement-reversal-record-chip span {
        display: block;
        color: #94A3B8;
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


    .movement-reversal-record-chip strong {
        display: block;
        margin-top: 4px;
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 950;
    }


/* ============================================================
   ELIGIBILITY
   ============================================================ */

.movement-reversal-eligibility {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--mr-border);
    background: var(--mr-surface);
}


    .movement-reversal-eligibility.eligible {
        background: linear-gradient( 135deg, var(--mr-success-soft), var(--mr-surface) );
        border-color: var(--mr-success-border);
    }


    .movement-reversal-eligibility.blocked {
        background: linear-gradient( 135deg, var(--mr-danger-soft), var(--mr-surface) );
        border-color: var(--mr-danger-border);
    }


.movement-reversal-eligibility-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 22px;
}


.movement-reversal-eligibility.eligible
.movement-reversal-eligibility-icon {
    background: #FFFFFF;
    color: var(--mr-success);
    border: 1px solid var(--mr-success-border);
}


.movement-reversal-eligibility.blocked
.movement-reversal-eligibility-icon {
    background: #FFFFFF;
    color: var(--mr-danger);
    border: 1px solid var(--mr-danger-border);
}


.movement-reversal-eligibility-content {
    min-width: 0;
}


    .movement-reversal-eligibility-content > span {
        display: block;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


.movement-reversal-eligibility.eligible
.movement-reversal-eligibility-content > span {
    color: var(--mr-success);
}


.movement-reversal-eligibility.blocked
.movement-reversal-eligibility-content > span {
    color: var(--mr-danger);
}


.movement-reversal-eligibility-content h3 {
    margin: 3px 0 0;
    color: var(--mr-text);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.025em;
}


.movement-reversal-eligibility-content p {
    margin: 5px 0 0;
    color: var(--mr-muted);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.5;
}


.movement-reversal-eligibility-badge {
    padding: 7px 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 900;
    white-space: nowrap;
}


.movement-reversal-eligibility.eligible
.movement-reversal-eligibility-badge {
    background: #DCFCE7;
    color: var(--mr-success);
    border: 1px solid var(--mr-success-border);
}


.movement-reversal-eligibility.blocked
.movement-reversal-eligibility-badge {
    background: #FEE2E2;
    color: var(--mr-danger);
    border: 1px solid var(--mr-danger-border);
}


/* ============================================================
   STATUS RESTORATION
   ============================================================ */

.movement-reversal-status-card {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid var(--mr-border);
    background: var(--mr-surface);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.05);
}


.movement-reversal-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
}


    .movement-reversal-section-heading span {
        display: block;
        color: var(--mr-primary-dark);
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


    .movement-reversal-section-heading h3 {
        margin: 3px 0 0;
        color: var(--mr-text);
        font-size: 16px;
        font-weight: 950;
        letter-spacing: -0.03em;
    }


    .movement-reversal-section-heading > i {
        color: var(--mr-primary);
        font-size: 26px;
    }


.movement-reversal-transition {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
    align-items: stretch;
    gap: 13px;
}


.movement-reversal-transition-state {
    padding: 17px;
    border-radius: 20px;
    border: 1px solid var(--mr-border);
    background: var(--mr-bg);
}


    .movement-reversal-transition-state.current {
        background: #F8FAFC;
    }


    .movement-reversal-transition-state.restored {
        background: linear-gradient( 135deg, var(--mr-success-soft), #FFFFFF );
        border-color: var(--mr-success-border);
    }


    .movement-reversal-transition-state > span {
        display: block;
        margin-bottom: 7px;
        color: var(--mr-muted);
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }


    .movement-reversal-transition-state strong {
        display: inline-flex;
        padding: 6px 10px;
        border-radius: 999px;
        color: var(--mr-text);
        background: #E2E8F0;
        font-size: 11px;
        font-weight: 900;
    }


        .movement-reversal-transition-state strong.enrolled,
        .movement-reversal-transition-state strong.enrolled-late {
            background: #DCFCE7;
            color: #166534;
        }


        .movement-reversal-transition-state strong.transferred {
            background: #DBEAFE;
            color: #1D4ED8;
        }


        .movement-reversal-transition-state strong.dropped {
            background: #FEF3C7;
            color: #92400E;
        }


        .movement-reversal-transition-state strong.dismissed {
            background: #FEE2E2;
            color: #991B1B;
        }


        .movement-reversal-transition-state strong.withdrawn {
            background: #F3E8FF;
            color: #7E22CE;
        }


    .movement-reversal-transition-state.restored strong {
        background: #DCFCE7;
        color: #166534;
    }


    .movement-reversal-transition-state small {
        display: block;
        margin-top: 8px;
        color: var(--mr-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.4;
    }


.movement-reversal-transition-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}


    .movement-reversal-transition-arrow div {
        width: 38px;
        height: 38px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: linear-gradient( 135deg, var(--mr-primary), var(--mr-primary-dark) );
        color: var(--mr-primary-text);
        box-shadow: 0 8px 20px color-mix( in srgb, var(--mr-primary) 23%, transparent );
    }


    .movement-reversal-transition-arrow span {
        color: var(--mr-muted);
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


/* ============================================================
   MAIN LAYOUT
   ============================================================ */

.movement-reversal-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}


.movement-reversal-main-column,
.movement-reversal-side-column {
    display: grid;
    gap: 18px;
}


/* ============================================================
   COMMON CARDS
   ============================================================ */

.movement-reversal-card,
.movement-reversal-side-card {
    border-radius: 24px;
    border: 1px solid var(--mr-border);
    background: var(--mr-surface);
    box-shadow: 0 10px 34px rgba(15, 23, 42, 0.045);
}


.movement-reversal-card {
    padding: 20px;
}


.movement-reversal-side-card {
    padding: 18px;
}


.movement-reversal-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--mr-border);
}


.movement-reversal-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--mr-primary-soft);
    color: var(--mr-primary-dark);
    border: 1px solid color-mix( in srgb, var(--mr-primary) 16%, var(--mr-border) );
    font-size: 18px;
}


    .movement-reversal-card-icon.success {
        background: var(--mr-success-soft);
        color: var(--mr-success);
        border-color: var(--mr-success-border);
    }


    .movement-reversal-card-icon.warning {
        background: var(--mr-warning-soft);
        color: var(--mr-warning);
        border-color: var(--mr-warning-border);
    }


.movement-reversal-card-header span {
    display: block;
    color: var(--mr-muted);
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.movement-reversal-card-header h3 {
    margin: 3px 0 0;
    color: var(--mr-text);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.025em;
}


/* ============================================================
   DETAIL GRID
   ============================================================ */

.movement-reversal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}


.movement-reversal-detail-item {
    min-width: 0;
    padding: 13px;
    border-radius: 16px;
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
}


    .movement-reversal-detail-item.full {
        grid-column: 1 / -1;
    }


    .movement-reversal-detail-item > span {
        display: block;
        color: var(--mr-muted);
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }


    .movement-reversal-detail-item > strong {
        display: block;
        margin-top: 5px;
        color: var(--mr-text);
        font-size: 11px;
        font-weight: 850;
        line-height: 1.45;
        word-break: break-word;
    }


    .movement-reversal-detail-item strong.movement-status {
        display: inline-flex;
        width: fit-content;
        padding: 5px 8px;
        border-radius: 999px;
    }


        .movement-reversal-detail-item
        strong.movement-status.transferred {
            background: #DBEAFE;
            color: #1D4ED8;
        }


        .movement-reversal-detail-item
        strong.movement-status.dropped {
            background: #FEF3C7;
            color: #92400E;
        }


        .movement-reversal-detail-item
        strong.movement-status.dismissed {
            background: #FEE2E2;
            color: #991B1B;
        }


        .movement-reversal-detail-item
        strong.movement-status.withdrawn {
            background: #F3E8FF;
            color: #7E22CE;
        }


/* ============================================================
   SECTION RESTORE NOTE
   ============================================================ */

.movement-reversal-restore-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 17px;
    background: var(--mr-blue-soft);
    border: 1px solid var(--mr-blue-border);
}


    .movement-reversal-restore-note > i {
        margin-top: 1px;
        color: var(--mr-blue);
        font-size: 17px;
    }


    .movement-reversal-restore-note strong {
        display: block;
        color: #1E40AF;
        font-size: 11px;
        font-weight: 900;
    }


    .movement-reversal-restore-note p {
        margin: 4px 0 0;
        color: #475569;
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
    }


/* ============================================================
   EMPTY STATE
   ============================================================ */

.movement-reversal-empty {
    padding: 28px 18px;
    border-radius: 18px;
    border: 1px dashed #CBD5E1;
    background: #F8FAFC;
    text-align: center;
}


    .movement-reversal-empty > i {
        display: block;
        margin-bottom: 8px;
        color: var(--mr-primary);
        font-size: 26px;
    }


    .movement-reversal-empty strong {
        display: block;
        color: var(--mr-text);
        font-size: 12px;
        font-weight: 900;
    }


    .movement-reversal-empty p {
        max-width: 500px;
        margin: 5px auto 0;
        color: var(--mr-muted);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
    }


/* ============================================================
   COMPLETED REVERSAL
   ============================================================ */

.movement-reversal-card.reversal-record {
    border-color: var(--mr-success-border);
}


.movement-reversal-record-banner {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 17px;
    background: var(--mr-success-soft);
    border: 1px solid var(--mr-success-border);
}


    .movement-reversal-record-banner > i {
        margin-top: 1px;
        color: var(--mr-success);
        font-size: 18px;
    }


    .movement-reversal-record-banner strong {
        display: block;
        color: #166534;
        font-size: 11px;
        font-weight: 900;
    }


    .movement-reversal-record-banner p {
        margin: 4px 0 0;
        color: #3F6212;
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
    }


/* ============================================================
   FORM
   ============================================================ */

.movement-reversal-form-group + .movement-reversal-form-group {
    margin-top: 16px;
}


.movement-reversal-form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}


    .movement-reversal-form-label label {
        color: var(--mr-text);
        font-size: 11px;
        font-weight: 900;
    }


    .movement-reversal-form-label > span {
        padding: 4px 7px;
        border-radius: 999px;
        background: var(--mr-danger-soft);
        color: var(--mr-danger);
        border: 1px solid var(--mr-danger-border);
        font-size: 7px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }


        .movement-reversal-form-label > span.optional {
            background: #F8FAFC;
            color: var(--mr-muted);
            border-color: var(--mr-border);
        }


.movement-reversal-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid var(--mr-border);
    outline: 0;
    background: var(--mr-surface);
    color: var(--mr-text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.55;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}


    .movement-reversal-textarea::placeholder {
        color: #94A3B8;
    }


    .movement-reversal-textarea:focus {
        border-color: var(--mr-primary);
        box-shadow: 0 0 0 4px color-mix( in srgb, var(--mr-primary) 12%, transparent );
        background: #FFFFFF;
    }


    .movement-reversal-textarea.input-validation-error {
        border-color: var(--mr-danger);
        box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.08);
    }


.movement-reversal-field-footer {
    min-height: 19px;
    margin-top: 5px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    color: var(--mr-muted);
    font-size: 9px;
    font-weight: 650;
}


.movement-reversal-field-error {
    color: var(--mr-danger);
    font-weight: 750;
}


/* ============================================================
   FORM WARNING
   ============================================================ */

.movement-reversal-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding: 15px;
    border-radius: 18px;
    background: linear-gradient( 135deg, var(--mr-warning-soft), #FFFFFF );
    border: 1px solid var(--mr-warning-border);
}


.movement-reversal-warning-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--mr-warning);
    border: 1px solid var(--mr-warning-border);
}


.movement-reversal-warning-box strong {
    display: block;
    color: #92400E;
    font-size: 11px;
    font-weight: 900;
}


.movement-reversal-warning-box p {
    margin: 5px 0 0;
    color: #78350F;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.55;
}


/* ============================================================
   FORM ACTIONS
   ============================================================ */

.movement-reversal-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mr-border);
}


.movement-reversal-secondary-button,
.movement-reversal-danger-button {
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}


.movement-reversal-secondary-button {
    background: var(--mr-surface);
    color: var(--mr-text);
    border: 1px solid var(--mr-border);
}


    .movement-reversal-secondary-button:hover {
        transform: translateY(-1px);
        background: #F8FAFC;
        color: var(--mr-primary-dark);
    }


.movement-reversal-danger-button {
    border: 1px solid transparent;
    background: linear-gradient( 135deg, #DC2626, #B91C1C );
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(185, 28, 28, 0.20);
}


    .movement-reversal-danger-button:hover {
        transform: translateY(-1px);
        background: linear-gradient( 135deg, #B91C1C, #991B1B );
        box-shadow: 0 14px 30px rgba(185, 28, 28, 0.27);
    }


    .movement-reversal-danger-button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }


/* ============================================================
   SIDE CARDS
   ============================================================ */

.movement-reversal-side-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}


    .movement-reversal-side-title > i {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: var(--mr-primary-soft);
        color: var(--mr-primary-dark);
        font-size: 15px;
    }


    .movement-reversal-side-title span {
        display: block;
        color: var(--mr-muted);
        font-size: 7px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


    .movement-reversal-side-title h3 {
        margin: 2px 0 0;
        color: var(--mr-text);
        font-size: 13px;
        font-weight: 950;
    }


/* ============================================================
   SAFETY CHECKS
   ============================================================ */

.movement-reversal-check-list {
    display: grid;
    gap: 8px;
}


.movement-reversal-check-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 8px;
    padding: 11px;
    border-radius: 14px;
    border: 1px solid var(--mr-border);
    background: #F8FAFC;
}


    .movement-reversal-check-item > i {
        margin-top: 1px;
        font-size: 15px;
    }


    .movement-reversal-check-item.passed {
        background: var(--mr-success-soft);
        border-color: var(--mr-success-border);
    }


    .movement-reversal-check-item.failed {
        background: var(--mr-danger-soft);
        border-color: var(--mr-danger-border);
    }


    .movement-reversal-check-item.passed > i {
        color: var(--mr-success);
    }


    .movement-reversal-check-item.failed > i {
        color: var(--mr-danger);
    }


    .movement-reversal-check-item strong {
        display: block;
        color: var(--mr-text);
        font-size: 10px;
        font-weight: 900;
    }


    .movement-reversal-check-item span {
        display: block;
        margin-top: 2px;
        color: var(--mr-muted);
        font-size: 8px;
        font-weight: 650;
        line-height: 1.4;
    }


/* ============================================================
   SIDE DETAILS
   ============================================================ */

.movement-reversal-side-detail {
    padding: 10px 0;
    border-bottom: 1px solid var(--mr-border);
}


    .movement-reversal-side-detail:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }


    .movement-reversal-side-detail span {
        display: block;
        color: var(--mr-muted);
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }


    .movement-reversal-side-detail strong {
        display: block;
        margin-top: 4px;
        color: var(--mr-text);
        font-size: 10px;
        font-weight: 850;
        line-height: 1.4;
    }


.movement-reversal-side-card.policy p {
    margin: 0;
    color: var(--mr-muted);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.55;
}


    .movement-reversal-side-card.policy p + p {
        margin-top: 8px;
    }


/* ============================================================
   CONFIRMATION MODAL
   ============================================================ */

body.movement-reversal-modal-open {
    overflow: hidden;
}


.movement-reversal-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(6px);
}


    .movement-reversal-modal-backdrop.show {
        display: flex;
    }


.movement-reversal-modal {
    width: min(480px, 100%);
    padding: 26px;
    border-radius: 28px;
    background: var(--theme-surface, #FFFFFF);
    border: 1px solid var(--theme-border, #E5E7EB);
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.30);
    text-align: center;
    animation: movementReversalModalIn 0.22s ease-out;
}


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

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


.movement-reversal-modal-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 13px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FECACA;
    font-size: 28px;
}


.movement-reversal-modal-eyebrow {
    display: block;
    color: #B91C1C;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}


.movement-reversal-modal h3 {
    margin: 5px 0 0;
    color: var(--theme-text, #1F2937);
    font-size: 21px;
    font-weight: 950;
    letter-spacing: -0.035em;
}


.movement-reversal-modal > p {
    margin: 10px auto 0;
    max-width: 390px;
    color: var(--theme-muted, #6B7280);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.6;
}


.movement-reversal-modal-section-note,
.movement-reversal-modal-warning {
    margin-top: 13px;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    text-align: left;
}


.movement-reversal-modal-section-note {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}


.movement-reversal-modal-warning {
    background: #FFF7ED;
    border: 1px solid #FED7AA;
    color: #9A3412;
}


    .movement-reversal-modal-section-note > i,
    .movement-reversal-modal-warning > i {
        margin-top: 1px;
        flex: 0 0 auto;
        font-size: 15px;
    }


    .movement-reversal-modal-section-note span,
    .movement-reversal-modal-warning span {
        font-size: 10px;
        font-weight: 700;
        line-height: 1.5;
    }


.movement-reversal-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}


/* ============================================================
   BUTTON SPINNER
   ============================================================ */

.movement-reversal-button-spinner {
    width: 13px;
    height: 13px;
    display: inline-block;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #FFFFFF;
    animation: movementReversalSpin 0.7s linear infinite;
}


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


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1050px) {

    .movement-reversal-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }
}


/* ============================================================
   MOBILE / SMALL TABLET
   ============================================================ */

@media (max-width: 820px) {

    .movement-reversal-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 23px;
    }


    .movement-reversal-hero-actions {
        width: 100%;
    }


    .movement-reversal-back-button {
        width: 100%;
    }


    .movement-reversal-profile-card {
        align-items: flex-start;
        flex-direction: column;
    }


    .movement-reversal-profile-left {
        width: 100%;
    }


    .movement-reversal-record-chip {
        width: 100%;
        text-align: left;
    }


    .movement-reversal-eligibility {
        grid-template-columns: auto minmax(0, 1fr);
    }


    .movement-reversal-eligibility-badge {
        grid-column: 1 / -1;
        width: fit-content;
    }


    .movement-reversal-transition {
        grid-template-columns: 1fr;
    }


    .movement-reversal-transition-arrow {
        padding: 2px 0;
    }


        .movement-reversal-transition-arrow div {
            transform: rotate(90deg);
        }


    .movement-reversal-layout {
        grid-template-columns: 1fr;
    }


    .movement-reversal-side-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .movement-reversal-side-card:first-child {
        grid-column: 1 / -1;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .movement-reversal-hero {
        border-radius: 22px;
        padding: 19px;
    }


        .movement-reversal-hero h2 {
            font-size: 25px;
        }


    .movement-reversal-profile-card {
        border-radius: 20px;
        padding: 16px;
    }


    .movement-reversal-profile-left {
        align-items: flex-start;
    }


    .movement-reversal-avatar {
        width: 58px;
        height: 58px;
        min-width: 58px;
        border-radius: 18px;
    }


    .movement-reversal-student-info h3 {
        font-size: 15px;
        white-space: normal;
    }


    .movement-reversal-student-meta {
        flex-direction: column;
        gap: 5px;
    }


    .movement-reversal-eligibility {
        padding: 15px;
        border-radius: 18px;
    }


    .movement-reversal-eligibility-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }


    .movement-reversal-status-card,
    .movement-reversal-card,
    .movement-reversal-side-card {
        border-radius: 20px;
        padding: 16px;
    }


    .movement-reversal-detail-grid {
        grid-template-columns: 1fr;
    }


    .movement-reversal-detail-item.full {
        grid-column: auto;
    }


    .movement-reversal-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }


    .movement-reversal-secondary-button,
    .movement-reversal-danger-button {
        width: 100%;
    }


    .movement-reversal-side-column {
        grid-template-columns: 1fr;
    }


    .movement-reversal-side-card:first-child {
        grid-column: auto;
    }


    .movement-reversal-modal {
        padding: 21px;
        border-radius: 23px;
    }


    .movement-reversal-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   STUDENT MOVEMENT DETAILS - REVERSE ACTION
   ============================================================ */

/* ------------------------------------------------------------
   HERO - REVERSE MOVEMENT BUTTON
   ------------------------------------------------------------ */

.movement-details-btn-reverse {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 14px;
    border: 1px solid #FECACA;
    background: linear-gradient( 135deg, #FEF2F2, #FFFFFF );
    color: #B91C1C;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(185, 28, 28, 0.08);
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}


    .movement-details-btn-reverse i {
        font-size: 14px;
    }


    .movement-details-btn-reverse:hover {
        transform: translateY(-1px);
        background: linear-gradient( 135deg, #DC2626, #B91C1C );
        color: #FFFFFF;
        border-color: #B91C1C;
        box-shadow: 0 10px 25px rgba(185, 28, 28, 0.20);
    }


/* ============================================================
   SIDE CARD - REVERSAL ACTION
   ============================================================ */

.movement-details-reversal-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: 11px;
    row-gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 17px;
    border: 1px solid #FECACA;
    background: linear-gradient( 135deg, #FEF2F2, #FFFFFF );
}


.movement-details-reversal-action-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #FFFFFF;
    color: #B91C1C;
    border: 1px solid #FECACA;
    font-size: 18px;
    box-shadow: 0 5px 14px rgba(185, 28, 28, 0.08);
}


.movement-details-reversal-action-text {
    min-width: 0;
}


    .movement-details-reversal-action-text strong {
        display: block;
        color: var(--theme-text, #1F2937);
        font-size: 11px;
        font-weight: 900;
        line-height: 1.35;
    }


    .movement-details-reversal-action-text span {
        display: block;
        margin-top: 3px;
        color: var(--theme-muted, #6B7280);
        font-size: 9px;
        font-weight: 650;
        line-height: 1.5;
    }


.movement-details-reversal-action-button {
    grid-column: 1 / -1;
    min-height: 39px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 13px;
    border: 1px solid transparent;
    background: linear-gradient( 135deg, #DC2626, #B91C1C );
    color: #FFFFFF;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.17);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}


    .movement-details-reversal-action-button i {
        font-size: 12px;
        transition: transform 0.18s ease;
    }


    .movement-details-reversal-action-button:hover {
        transform: translateY(-1px);
        background: linear-gradient( 135deg, #B91C1C, #991B1B );
        color: #FFFFFF;
        box-shadow: 0 11px 25px rgba(185, 28, 28, 0.24);
    }


        .movement-details-reversal-action-button:hover i {
            transform: translateX(2px);
        }


/* ============================================================
   FOOTER - REVERSE MOVEMENT BUTTON
   ============================================================ */

.movement-details-btn-reverse-bottom {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: linear-gradient( 135deg, #DC2626, #B91C1C );
    color: #FFFFFF;
    text-decoration: none;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 9px 22px rgba(185, 28, 28, 0.18);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}


    .movement-details-btn-reverse-bottom i {
        font-size: 14px;
    }


    .movement-details-btn-reverse-bottom:hover {
        transform: translateY(-1px);
        background: linear-gradient( 135deg, #B91C1C, #991B1B );
        color: #FFFFFF;
        box-shadow: 0 12px 28px rgba(185, 28, 28, 0.26);
    }


/* ============================================================
   HERO ACTION ALIGNMENT
   ============================================================ */

.movement-details-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}


/* ============================================================
   FOOTER ACTION ALIGNMENT
   ============================================================ */

.movement-details-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 700px) {

    .movement-details-hero-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }


    .movement-details-btn-reverse,
    .movement-details-btn-back,
    .movement-details-btn-active {
        width: 100%;
    }


    .movement-details-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .movement-details-btn-back-bottom,
    .movement-details-btn-reverse-bottom {
        width: 100%;
    }
}



/* ============================================================
   STUDENT MOVEMENT DETAILS - REVERSED STATE
   ============================================================ */


/* ============================================================
   HERO REVERSED BADGE
   ============================================================ */

.movement-details-reversed-badge {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 14px;
    border: 1px solid #BBF7D0;
    background: linear-gradient( 135deg, #F0FDF4, #FFFFFF );
    color: #15803D;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 7px 18px rgba(21, 128, 61, 0.08);
}


    .movement-details-reversed-badge i {
        font-size: 14px;
    }


/* ============================================================
   MAIN REVERSAL NOTICE PANEL
   ============================================================ */

.movement-details-reversed-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #BBF7D0;
    background: linear-gradient( 135deg, #F0FDF4, #FFFFFF );
    box-shadow: 0 10px 28px rgba(21, 128, 61, 0.05);
}


.movement-details-reversed-panel-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #FFFFFF;
    color: #15803D;
    border: 1px solid #BBF7D0;
    font-size: 22px;
}


.movement-details-reversed-panel-content {
    min-width: 0;
}


    .movement-details-reversed-panel-content > span {
        display: block;
        color: #15803D;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }


    .movement-details-reversed-panel-content h2 {
        margin: 3px 0 0;
        color: var(--theme-text, #1F2937);
        font-size: 15px;
        font-weight: 950;
        letter-spacing: -0.025em;
    }


    .movement-details-reversed-panel-content p {
        margin: 5px 0 0;
        color: var(--theme-muted, #6B7280);
        font-size: 10px;
        font-weight: 650;
        line-height: 1.5;
    }


.movement-details-reversed-panel-status {
    min-width: 150px;
    padding: 11px 13px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #BBF7D0;
}


    .movement-details-reversed-panel-status > span {
        display: block;
        margin-bottom: 5px;
        color: #64748B;
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }


/* ============================================================
   PROFILE REVERSED STATUS
   ============================================================ */

.movement-details-profile-reversed {
    margin-top: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}


    .movement-details-profile-reversed i {
        font-size: 11px;
    }


/* ============================================================
   STATUS FLOW - RESTORED
   ============================================================ */

.movement-details-status-box-restored {
    background: linear-gradient( 135deg, #F0FDF4, #FFFFFF );
    border-color: #BBF7D0;
}


.movement-details-status-arrow-reversed {
    color: #15803D;
}


/* ============================================================
   REVERSAL INFORMATION CARD
   ============================================================ */

.movement-details-reversal-card {
    margin-bottom: 18px;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #BBF7D0;
    background: linear-gradient( 135deg, #FFFFFF, #F0FDF4 );
    box-shadow: 0 12px 34px rgba(21, 128, 61, 0.06);
}


.movement-details-reversal-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 15px;
    border-bottom: 1px solid #D1FAE5;
}


.movement-details-reversal-card-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #FFFFFF;
    border: 1px solid #BBF7D0;
    color: #15803D;
    font-size: 19px;
    box-shadow: 0 6px 16px rgba(21, 128, 61, 0.07);
}


.movement-details-reversal-card-header > div:last-child {
    min-width: 0;
}


.movement-details-reversal-card-header span {
    display: block;
    color: #15803D;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.movement-details-reversal-card-header h2 {
    margin: 3px 0 0;
    color: var(--theme-text, #1F2937);
    font-size: 15px;
    font-weight: 950;
    letter-spacing: -0.025em;
}


.movement-details-reversal-card-header p {
    margin: 4px 0 0;
    color: var(--theme-muted, #6B7280);
    font-size: 9px;
    font-weight: 650;
    line-height: 1.45;
}


/* ============================================================
   REVERSAL STATUS FLOW
   ============================================================ */

.movement-details-reversal-status-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr);
    align-items: stretch;
    gap: 11px;
    margin-bottom: 16px;
}


.movement-details-reversal-status-item {
    padding: 14px;
    border-radius: 17px;
    border: 1px solid var(--theme-border, #E5E7EB);
    background: #FFFFFF;
}


    .movement-details-reversal-status-item.restored {
        border-color: #BBF7D0;
        background: #F0FDF4;
    }


    .movement-details-reversal-status-item > span {
        display: block;
        margin-bottom: 6px;
        color: #64748B;
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }


.movement-details-reversal-flow-arrow {
    display: grid;
    place-items: center;
}


    .movement-details-reversal-flow-arrow i {
        width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 999px;
        background: #DCFCE7;
        color: #15803D;
        border: 1px solid #BBF7D0;
        font-size: 14px;
    }


/* ============================================================
   REVERSAL DETAIL GRID
   ============================================================ */

.movement-details-reversal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}


.movement-details-reversal-detail-item {
    min-width: 0;
    padding: 13px;
    border-radius: 16px;
    border: 1px solid #D1FAE5;
    background: rgba(255, 255, 255, 0.75);
}


.movement-details-reversal-detail-full {
    grid-column: 1 / -1;
}


.movement-details-reversal-detail-item > span {
    display: block;
    color: #64748B;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


.movement-details-reversal-detail-item > strong {
    display: block;
    margin-top: 5px;
    color: var(--theme-text, #1F2937);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.5;
    word-break: break-word;
}


/* ============================================================
   SUMMARY REVERSED BADGE
   ============================================================ */

.movement-details-summary-reversed {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    font-size: 9px;
    font-weight: 900;
}


/* ============================================================
   RIGHT SIDE REVERSED CARD
   ============================================================ */

.movement-details-side-card-reversed {
    border-color: #BBF7D0;
    background: linear-gradient( 135deg, #FFFFFF, #F0FDF4 );
}


    .movement-details-side-card-reversed
    .movement-details-side-card-header i {
        color: #15803D;
    }


.movement-details-side-reversed-state {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 15px;
    background: #DCFCE7;
    border: 1px solid #BBF7D0;
}


    .movement-details-side-reversed-state > i {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        display: grid;
        place-items: center;
        border-radius: 11px;
        background: #FFFFFF;
        color: #15803D;
        font-size: 15px;
    }


    .movement-details-side-reversed-state strong {
        display: block;
        color: #166534;
        font-size: 10px;
        font-weight: 900;
    }


    .movement-details-side-reversed-state span {
        display: block;
        margin-top: 2px;
        color: #3F6212;
        font-size: 8px;
        font-weight: 650;
    }


.movement-details-side-reversal-info {
    padding: 9px 0;
    border-bottom: 1px solid #D1FAE5;
}


    .movement-details-side-reversal-info:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }


    .movement-details-side-reversal-info > span {
        display: block;
        color: #64748B;
        font-size: 8px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }


    .movement-details-side-reversal-info > strong {
        display: block;
        margin-top: 4px;
        color: var(--theme-text, #1F2937);
        font-size: 10px;
        font-weight: 850;
    }


/* ============================================================
   FOOTER REVERSED STATUS
   ============================================================ */

.movement-details-reversed-footer {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 14px;
    background: #DCFCE7;
    color: #166534;
    border: 1px solid #BBF7D0;
    font-size: 10px;
    font-weight: 900;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 800px) {

    .movement-details-reversed-panel {
        grid-template-columns: auto minmax(0, 1fr);
    }


    .movement-details-reversed-panel-status {
        grid-column: 1 / -1;
        width: 100%;
    }


    .movement-details-reversal-status-flow {
        grid-template-columns: 1fr;
    }


    .movement-details-reversal-flow-arrow i {
        transform: rotate(90deg);
    }
}


@media (max-width: 600px) {

    .movement-details-reversal-card {
        padding: 16px;
        border-radius: 20px;
    }


    .movement-details-reversal-detail-grid {
        grid-template-columns: 1fr;
    }


    .movement-details-reversal-detail-full {
        grid-column: auto;
    }


    .movement-details-reversed-footer {
        width: 100%;
    }
}



/* ============================================================
   LIBRARY SETUP
   Categories
   Authors
   Publishers
   Locations / Shelves
   Borrowing Rules
   References
   ============================================================ */


/* ============================================================
   SETUP NAVIGATION / SUMMARY
   ============================================================ */

.library-setup-summary {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}


.library-setup-summary-card {
    min-width: 0;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 14px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}


    .library-setup-summary-card:hover {
        border-color: var(--theme-primary);
        background: color-mix( in srgb, var(--theme-primary-soft) 55%, var(--theme-surface) );
        transform: translateY(-1px);
    }


    .library-setup-summary-card.active {
        border-color: var(--theme-primary);
        background: var(--theme-primary-soft);
        box-shadow: var(--theme-shadow);
    }


.library-setup-summary-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.95rem;
}


.library-setup-summary-card.active
.library-setup-summary-icon {
    background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
    color: var(--theme-primary-text);
}


.library-setup-summary-card > div:last-child {
    min-width: 0;
}


    .library-setup-summary-card > div:last-child > span {
        display: block;
        overflow: hidden;
        color: var(--theme-muted);
        font-size: 0.63rem;
        font-weight: 800;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .library-setup-summary-card > div:last-child > strong {
        display: block;
        margin-top: 3px;
        color: var(--theme-text);
        font-size: 1.1rem;
        font-weight: 950;
        line-height: 1;
    }


/* ============================================================
   SETUP TABS
   ============================================================ */

.library-setup-tab {
    display: none;
}


    .library-setup-tab.active {
        display: block;
    }


/* ============================================================
   SETUP TABLE VALUES
   ============================================================ */

.library-setup-code {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
    padding: 4px 7px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 7px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.library-setup-subtext {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 0.61rem;
    font-weight: 600;
    line-height: 1.35;
}


.library-setup-address {
    display: block;
    max-width: 320px;
    color: var(--theme-text);
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}


.library-setup-publisher-table {
    min-width: 950px;
}


/* ============================================================
   INVENTORY SETUP
   ============================================================ */

.library-setup-inventory-stack {
    display: grid;
    gap: 14px;
}


/* ============================================================
   LOCATION NAME
   ============================================================ */

.library-setup-location-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-text);
}


    .library-setup-location-name i {
        color: var(--theme-primary-dark);
        font-size: 0.78rem;
    }


    .library-setup-location-name strong {
        font-size: 0.7rem;
        font-weight: 900;
        white-space: nowrap;
    }


/* ============================================================
   SHELF NAME
   ============================================================ */

.library-setup-shelf-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-text);
}


    .library-setup-shelf-name i {
        color: var(--theme-primary-dark);
        font-size: 0.78rem;
    }


    .library-setup-shelf-name strong {
        font-size: 0.7rem;
        font-weight: 900;
        white-space: nowrap;
    }


/* ============================================================
   LOCATION CHIP
   ============================================================ */

.library-setup-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 210px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.62rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}


    .library-setup-location-chip i {
        flex: 0 0 auto;
        font-size: 0.68rem;
    }


/* ============================================================
   COUNT CHIP
   ============================================================ */

.library-count-chip {
    min-width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.65rem;
    font-weight: 900;
}


/* ============================================================
   TABLE ALIGNMENT
   ============================================================ */

.library-table-center {
    text-align: center;
}


/* ============================================================
   SETUP DEPENDENCY
   ============================================================ */

.library-setup-dependency {
    margin: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed var(--theme-border);
    border-radius: 14px;
    background: color-mix( in srgb, var(--theme-primary-soft) 30%, var(--theme-surface) );
}


.library-setup-dependency-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 1rem;
}


.library-setup-dependency > div:last-child {
    min-width: 0;
}


.library-setup-dependency strong {
    display: block;
    color: var(--theme-text);
    font-size: 0.72rem;
    font-weight: 900;
}


.library-setup-dependency span {
    display: block;
    margin-top: 3px;
    color: var(--theme-muted);
    font-size: 0.64rem;
    font-weight: 600;
    line-height: 1.4;
}


/* ============================================================
   REFERENCES GRID
   ============================================================ */

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


/* ============================================================
   REFERENCE LIST
   ============================================================ */

.library-reference-list {
    display: grid;
    gap: 7px;
}


.library-reference-item {
    min-width: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 11px;
    background: var(--theme-surface);
}


    .library-reference-item > div {
        min-width: 0;
    }


    .library-reference-item strong {
        display: block;
        margin-top: 4px;
        overflow: hidden;
        color: var(--theme-text);
        font-size: 0.68rem;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }


    .library-reference-item small {
        display: block;
        margin-top: 2px;
        color: var(--theme-muted);
        font-size: 0.58rem;
        font-weight: 600;
        line-height: 1.35;
    }


/* ============================================================
   SETUP MODAL
   ============================================================ */

.library-setup-modal {
    width: min(650px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 21px;
    background: var(--theme-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}


/* ============================================================
   SETUP FORM GRID
   ============================================================ */

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


.library-setup-form-span-2 {
    grid-column: 1 / -1;
}


/* ============================================================
   FORM HELP
   ============================================================ */

.library-form-help {
    display: block;
    margin-top: 5px;
    color: var(--theme-muted);
    font-size: 0.59rem;
    font-weight: 600;
    line-height: 1.4;
}


/* ============================================================
   SETUP ACTIVE ROW
   ============================================================ */

.library-setup-active-row {
    margin-top: 14px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: color-mix( in srgb, var(--theme-primary-soft) 15%, var(--theme-surface) );
    cursor: pointer;
}


    .library-setup-active-row > div:nth-child(2) {
        min-width: 0;
    }


        .library-setup-active-row > div:nth-child(2)
        strong {
            display: block;
            color: var(--theme-text);
            font-size: 0.69rem;
            font-weight: 900;
        }


        .library-setup-active-row > div:nth-child(2)
        span {
            display: block;
            margin-top: 2px;
            color: var(--theme-muted);
            font-size: 0.61rem;
            font-weight: 600;
            line-height: 1.4;
        }


/* ============================================================
   BORROWING RULE TABLE
   ============================================================ */

.library-borrowing-rule-table {
    min-width: 1260px;
}


/* ============================================================
   BORROWING RULE INFORMATION
   ============================================================ */

.library-borrowing-rule-info {
    padding: 12px 13px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: color-mix( in srgb, var(--theme-primary-soft) 35%, var(--theme-surface) );
}


.library-borrowing-rule-info-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.85rem;
}


.library-borrowing-rule-info > div:last-child {
    min-width: 0;
}


.library-borrowing-rule-info strong {
    display: block;
    color: var(--theme-text);
    font-size: 0.7rem;
    font-weight: 900;
}


.library-borrowing-rule-info span {
    display: block;
    margin-top: 2px;
    color: var(--theme-muted);
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.45;
}


/* ============================================================
   BORROWING RULE BORROWER
   ============================================================ */

.library-rule-borrower {
    min-width: 135px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}


.library-rule-borrower-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.78rem;
}


.library-rule-borrower > div:last-child {
    min-width: 0;
}


.library-rule-borrower strong {
    display: block;
    overflow: hidden;
    color: var(--theme-text);
    font-size: 0.68rem;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.library-rule-borrower span {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--theme-muted);
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   BORROWING RULE SCOPE
   ============================================================ */

.library-rule-default,
.library-rule-level {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 180px;
    padding: 5px 8px;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.library-rule-default {
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
}


.library-rule-level {
    background: var(--theme-surface);
    color: var(--theme-text);
}


    .library-rule-default i,
    .library-rule-level i {
        flex: 0 0 auto;
    }


/* ============================================================
   BORROWING RULE VALUES
   ============================================================ */

.library-rule-number {
    color: var(--theme-text);
    font-size: 0.78rem;
    font-weight: 950;
}


.library-rule-unit {
    display: block;
    margin-top: 1px;
    color: var(--theme-muted);
    font-size: 0.55rem;
    font-weight: 650;
}


.library-rule-fine {
    color: var(--theme-primary-dark);
    font-size: 0.71rem;
    font-weight: 900;
    white-space: nowrap;
}


/* ============================================================
   BORROWING RULE BOOLEAN VALUES
   ============================================================ */

.library-rule-yes,
.library-rule-no,
.library-rule-warning {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 800;
    white-space: nowrap;
}


.library-rule-yes {
    color: var(--theme-primary-dark);
}


.library-rule-no {
    color: var(--theme-muted);
}


.library-rule-warning {
    color: #b45309;
}


/* ============================================================
   BORROWING RULE MODAL
   ============================================================ */

.library-borrowing-rule-modal {
    width: min(820px, 100%);
    max-height: calc(100vh - 36px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--theme-border);
    border-radius: 22px;
    background: var(--theme-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.26);
}


/* ============================================================
   BORROWING RULE FORM SECTION
   ============================================================ */

.library-rule-form-section {
    min-width: 0;
}


    .library-rule-form-section + .library-rule-form-section {
        margin-top: 20px;
        padding-top: 18px;
        border-top: 1px solid var(--theme-border);
    }


/* ============================================================
   BORROWING RULE FORM HEADING
   ============================================================ */

.library-rule-form-heading {
    margin-bottom: 13px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}


    .library-rule-form-heading > span {
        width: 32px;
        height: 32px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        background: var(--theme-primary-soft);
        color: var(--theme-primary-dark);
        font-size: 0.67rem;
        font-weight: 950;
    }


    .library-rule-form-heading > div {
        min-width: 0;
    }


    .library-rule-form-heading strong {
        display: block;
        color: var(--theme-text);
        font-size: 0.71rem;
        font-weight: 900;
    }


    .library-rule-form-heading small {
        display: block;
        margin-top: 2px;
        color: var(--theme-muted);
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1.35;
    }


/* ============================================================
   BORROWING RULE NUMBER GRID
   ============================================================ */

.library-rule-number-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 11px;
}


/* ============================================================
   MONEY INPUT
   ============================================================ */

.library-money-control {
    position: relative;
}


    .library-money-control > span {
        position: absolute;
        left: 11px;
        top: 50%;
        z-index: 2;
        transform: translateY(-50%);
        color: var(--theme-muted);
        font-size: 0.72rem;
        font-weight: 850;
        pointer-events: none;
    }


    .library-money-control
    .library-form-control {
        padding-left: 27px;
    }


/* ============================================================
   BORROWING RULE OPTIONS
   ============================================================ */

.library-rule-option-list {
    display: grid;
    gap: 8px;
}


.library-rule-option {
    padding: 11px 12px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: color-mix( in srgb, var(--theme-primary-soft) 10%, var(--theme-surface) );
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease;
}


    .library-rule-option:hover {
        border-color: color-mix( in srgb, var(--theme-primary) 45%, var(--theme-border) );
        background: color-mix( in srgb, var(--theme-primary-soft) 25%, var(--theme-surface) );
    }


.library-rule-option-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--theme-primary-soft);
    color: var(--theme-primary-dark);
    font-size: 0.82rem;
}


    .library-rule-option-icon.warning {
        background: color-mix( in srgb, #f59e0b 10%, var(--theme-surface) );
        color: #b45309;
    }


.library-rule-option > div:nth-child(2) {
    min-width: 0;
}


    .library-rule-option > div:nth-child(2)
    strong {
        display: block;
        color: var(--theme-text);
        font-size: 0.68rem;
        font-weight: 900;
    }


    .library-rule-option > div:nth-child(2)
    span {
        display: block;
        margin-top: 2px;
        color: var(--theme-muted);
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1.4;
    }


/* ============================================================
   SETUP INVENTORY TABLE
   ============================================================ */

#librarySetupTab-inventory
.library-table {
    min-width: 720px;
}


#librarySetupTab-inventory
.library-panel-header {
    align-items: center;
}


/* ============================================================
   SETUP MODAL WIDTHS
   ============================================================ */

#libraryLocationModal
.library-setup-modal,
#libraryShelfModal
.library-setup-modal {
    width: min(650px, 100%);
}


/* ============================================================
   RESPONSIVE - LARGE
   ============================================================ */

@media (max-width: 1250px) {

    .library-setup-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE - TABLET
   ============================================================ */

@media (max-width: 980px) {

    .library-setup-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .library-rule-number-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE - SMALL TABLET
   ============================================================ */

@media (max-width: 760px) {

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


    .library-setup-reference-grid {
        grid-template-columns: 1fr;
    }


    .library-setup-form-grid {
        grid-template-columns: 1fr;
    }


    .library-setup-form-span-2 {
        grid-column: auto;
    }


    .library-rule-number-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }


    .library-setup-dependency {
        margin: 14px;
        align-items: flex-start;
    }


    .library-borrowing-rule-modal {
        border-radius: 17px;
    }
}


/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 520px) {

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


    .library-rule-number-grid {
        grid-template-columns: 1fr;
    }


    .library-setup-active-row,
    .library-rule-option {
        grid-template-columns: 36px minmax(0, 1fr) 36px;
        gap: 8px;
    }


    .library-setup-active-row,
    .library-rule-option {
        padding: 10px;
    }
}






















/* ============================================================
   SECTION OFFERING - USER-FRIENDLY SUBJECT SCHEDULE EDITING
   Append this block at the END of wwwroot/css/site.css
   ============================================================ */

.subject-schedule-editor-card {
    scroll-margin-top: 18px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

    .subject-schedule-editor-card.is-editing {
        border-color: #f97316;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.10), rgba(255, 255, 255, 0.96));
        box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.10), 0 18px 40px rgba(15, 23, 42, 0.10);
    }

.subject-schedule-editor-mode-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 30px;
    margin: 0 !important;
    padding: 6px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase;
    white-space: nowrap;
}

    .subject-schedule-editor-mode-badge.is-editing {
        border-color: #fdba74;
        background: #fff7ed;
        color: #c2410c !important;
    }

.subject-schedule-editing-banner {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
    padding: 13px 14px;
    border: 1px solid #fdba74;
    border-radius: 16px;
    background: #fff7ed;
    animation: subjectScheduleEditBannerIn 0.2s ease-out;
}

    .subject-schedule-editing-banner[hidden],
    .subject-schedule-field-hint[hidden] {
        display: none !important;
    }

.subject-schedule-editing-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #f97316;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.24);
}

.subject-schedule-editing-banner > div:last-child {
    min-width: 0;
}

.subject-schedule-editing-banner span {
    display: block;
    margin: 0 0 3px !important;
    color: #c2410c !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.2;
    letter-spacing: 0.08em !important;
    text-transform: uppercase;
}

.subject-schedule-editing-banner strong {
    display: block;
    overflow: hidden;
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subject-schedule-editing-banner small {
    display: block;
    margin-top: 3px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.subject-schedule-field-hint {
    display: block;
    margin-top: 1px;
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
}

#scheduleSubjectField.is-locked select,
#scheduleSubjectCode:disabled {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
    cursor: not-allowed;
    opacity: 1;
}

.subject-schedule-message.info {
    display: block;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.subject-schedule-table tbody tr[data-schedule-row-id] {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.subject-schedule-table tbody tr.is-editing {
    background: #fff7ed;
    box-shadow: inset 4px 0 0 #f97316;
}

    .subject-schedule-table tbody tr.is-editing td {
        border-bottom-color: #fed7aa;
    }

        .subject-schedule-table tbody tr.is-editing td:first-child > strong {
            color: #c2410c;
        }

.subject-schedule-row-edit-badge {
    display: none !important;
    width: max-content;
    margin-top: 7px !important;
    padding: 5px 8px;
    border: 1px solid #fdba74;
    border-radius: 999px;
    background: #ffffff;
    color: #c2410c !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.subject-schedule-table tbody tr.is-editing .subject-schedule-row-edit-badge {
    display: inline-flex !important;
}

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

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

@media (max-width: 640px) {
    .subject-schedule-editor-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .subject-schedule-editor-mode-badge {
        align-self: flex-start;
    }

    .subject-schedule-editing-banner {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 12px;
    }

    .subject-schedule-editing-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 17px;
    }

    .subject-schedule-editing-banner strong {
        white-space: normal;
    }
}




/* ============================================================
   ADDITIONAL CHARGE MANAGEMENT
   Shared styles:
   - AdditionalCharges.cshtml
   - AdditionalChargeDetails.cshtml
   ============================================================ */

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


/* ============================================================
   SUMMARY
   ============================================================ */

.additional-charge-money-stat {
    font-size: 28px !important;
    line-height: 1.1 !important;
}


/* ============================================================
   FILTER
   ============================================================ */

.additional-charge-filter-grid {
    grid-template-columns: minmax(240px, 1.35fr) minmax(150px, 0.7fr) minmax(180px, 0.9fr) minmax(140px, 0.65fr) minmax(170px, 0.75fr) auto;
}


/* ============================================================
   TABLE
   ============================================================ */

.additional-charge-table {
    min-width: 1180px;
}

.additional-charge-schedule-table {
    min-width: 1050px;
}

.additional-charge-name {
    min-width: 190px;
}

    .additional-charge-name strong {
        display: block;
        color: var(--ink);
        font-size: 13px;
        font-weight: 900;
        line-height: 1.3;
    }

    .additional-charge-name span {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 650;
    }

.additional-charge-target {
    min-width: 130px;
}

    .additional-charge-target strong {
        display: block;
        color: var(--ink);
        font-size: 12px;
        font-weight: 850;
    }

    .additional-charge-target span {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 650;
    }

.additional-charge-money {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

    .additional-charge-money.balance {
        color: var(--orange-dark);
    }

.additional-charge-muted {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.additional-charge-empty {
    margin: 0;
    border-radius: 0 0 24px 24px;
}


/* ============================================================
   CREATE / EDIT FORM
   ============================================================ */

.additional-charge-form {
    display: grid;
    gap: 16px;
}

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

.additional-charge-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

    .additional-charge-field.span-2 {
        grid-column: span 2;
    }

    .additional-charge-field.full {
        grid-column: 1 / -1;
    }

    .additional-charge-field label {
        color: var(--text);
        font-size: 12px;
        font-weight: 850;
    }

    .additional-charge-field input,
    .additional-charge-field select,
    .additional-charge-field textarea {
        width: 100%;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #FFFFFF;
        color: var(--ink);
        font-family: var(--font-main);
        font-size: 13px;
        font-weight: 650;
        outline: none;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    }

    .additional-charge-field input,
    .additional-charge-field select {
        height: 44px;
        padding: 0 13px;
    }

    .additional-charge-field textarea {
        min-height: 88px;
        padding: 12px 13px;
        resize: vertical;
        line-height: 1.5;
    }

        .additional-charge-field input:focus,
        .additional-charge-field select:focus,
        .additional-charge-field textarea:focus {
            border-color: var(--orange);
            background: #FFFAF5;
            box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
        }

        .additional-charge-field input:disabled,
        .additional-charge-field select:disabled,
        .additional-charge-field textarea:disabled,
        .additional-charge-field .readonly-field {
            background: #F8FAFC;
            color: #64748B;
            cursor: not-allowed;
        }

    .additional-charge-field small {
        color: var(--muted);
        font-size: 11px;
        font-weight: 650;
        line-height: 1.45;
    }

.additional-charge-note {
    padding: 13px 14px;
    border: 1px solid var(--orange-line);
    border-radius: 16px;
    background: var(--orange-soft);
    color: #9A3412;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

    .additional-charge-note strong {
        color: var(--orange-dark);
        font-weight: 900;
    }

.additional-charge-hidden {
    display: none !important;
}


/* ============================================================
   MODAL
   ============================================================ */

.additional-charge-modal .registrar-modal-card {
    width: min(980px, 100%);
}

.additional-charge-modal .registrar-modal-body {
    padding: 22px 24px;
}

.additional-charge-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    background: var(--bg);
}


/* ============================================================
   DETAILS HERO
   ============================================================ */

.additional-charge-details-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.4fr);
    gap: 16px;
}

.additional-charge-hero-main {
    min-height: 190px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--orange-line);
    background: radial-gradient( circle at top right, rgba(249, 115, 22, 0.15), transparent 36% ), linear-gradient( 135deg, #FFFFFF 0%, #FFF7ED 100% );
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .additional-charge-hero-main > span {
        color: var(--orange-dark);
        font-size: 11px;
        font-weight: 950;
        text-transform: uppercase;
        letter-spacing: 0.07em;
    }

    .additional-charge-hero-main h2 {
        margin: 7px 0 5px;
        color: var(--ink);
        font-size: 24px;
        font-weight: 950;
        letter-spacing: -0.04em;
        line-height: 1.15;
    }

    .additional-charge-hero-main p {
        margin: 0;
        color: var(--muted);
        font-size: 13px;
        font-weight: 650;
        line-height: 1.5;
    }

.additional-charge-hero-status {
    margin-top: 16px;
}

.additional-charge-hero-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .additional-charge-hero-info > div {
        padding: 15px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #FFFFFF;
        display: grid;
        align-content: center;
        gap: 5px;
    }

    .additional-charge-hero-info span {
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .additional-charge-hero-info strong {
        color: var(--ink);
        font-size: 14px;
        font-weight: 900;
        line-height: 1.35;
    }


/* ============================================================
   DETAILS SECTIONS
   ============================================================ */

.additional-charge-section {
    padding: 20px;
    border-radius: 24px;
    background: #FFFFFF;
    border: 1px solid #EEF2F7;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.045);
}

.additional-charge-section-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

    .additional-charge-section-header h3 {
        margin: 0;
        color: var(--ink);
        font-size: 18px;
        font-weight: 950;
        letter-spacing: -0.025em;
    }

    .additional-charge-section-header p {
        margin: 5px 0 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
        line-height: 1.5;
    }


/* ============================================================
   POSTING CARD
   ============================================================ */

.additional-charge-post-card {
    padding: 18px;
    border: 1px solid var(--orange-line);
    border-radius: 22px;
    background: linear-gradient( 135deg, #FFF7ED 0%, #FFFFFF 80% );
}

    .additional-charge-post-card h4 {
        margin: 0;
        color: var(--ink);
        font-size: 16px;
        font-weight: 950;
    }

    .additional-charge-post-card p {
        margin: 6px 0 0;
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
        line-height: 1.5;
    }

.additional-charge-post-summary {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

    .additional-charge-post-summary > div {
        padding: 13px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #FFFFFF;
    }

    .additional-charge-post-summary span {
        display: block;
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .additional-charge-post-summary strong {
        display: block;
        margin-top: 5px;
        color: var(--ink);
        font-size: 14px;
        font-weight: 950;
    }

.additional-charge-post-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}


/* ============================================================
   SPECIFIC STUDENT
   ============================================================ */

.additional-charge-selected-header {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .additional-charge-selected-header strong {
        color: var(--ink);
        font-size: 14px;
        font-weight: 900;
    }

    .additional-charge-selected-header span {
        color: var(--muted);
        font-size: 12px;
        font-weight: 650;
    }

.additional-charge-remove-btn {
    min-height: 32px;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid #FECACA;
    background: #FFFFFF;
    color: #B91C1C;
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
}

    .additional-charge-remove-btn:hover {
        border-color: #FCA5A5;
        background: #FEF2F2;
        color: #991B1B;
    }


/* ============================================================
   LOADING
   ============================================================ */

.additional-charge-search-loading {
    padding: 18px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

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

        .additional-charge-filter-grid
        .premium-filter-actions {
            grid-column: span 3;
        }
}

@media (max-width: 1050px) {
    .additional-charge-details-hero {
        grid-template-columns: 1fr;
    }

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

    .additional-charge-field.span-2 {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .additional-charge-filter-grid {
        grid-template-columns: 1fr;
    }

        .additional-charge-filter-grid
        .premium-filter-actions {
            grid-column: span 1;
        }

    .additional-charge-hero-info {
        grid-template-columns: 1fr;
    }

    .additional-charge-post-summary {
        grid-template-columns: 1fr;
    }

    .additional-charge-section-header,
    .additional-charge-selected-header {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 680px) {
    .additional-charge-form-grid {
        grid-template-columns: 1fr;
    }

    .additional-charge-field.span-2,
    .additional-charge-field.full {
        grid-column: auto;
    }

    .additional-charge-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

        .additional-charge-modal-actions .btn {
            width: 100%;
        }

    .additional-charge-post-actions {
        display: grid;
    }

        .additional-charge-post-actions .btn {
            width: 100%;
        }
}


/* ============================================================
   ADDITIONAL CHARGE - DYNAMIC THEME ACCENT
   ============================================================ */

.premium-main-stat.additional-charge-stat-primary {
    background: linear-gradient( 135deg, var(--theme-primary), var(--theme-primary-dark) );
    color: var(--theme-primary-text);
    border-color: var(--theme-primary);
    box-shadow: var(--theme-shadow);
}

    .premium-main-stat.additional-charge-stat-primary
    .stat-top span,
    .premium-main-stat.additional-charge-stat-primary
    strong,
    .premium-main-stat.additional-charge-stat-primary
    small {
        color: var(--theme-primary-text);
    }

    .premium-main-stat.additional-charge-stat-primary
    .stat-top em {
        background: var(--theme-surface);
        color: var(--theme-primary);
        border: 1px solid var(--theme-border);
    }




body.admin-theme .premium-btn.primary {
    background: linear-gradient( 135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100% );
    color: var(--theme-primary-text);
    border-color: var(--theme-primary);
    box-shadow: var(--theme-shadow);
}

    body.admin-theme .premium-btn.primary:hover {
        background: linear-gradient( 135deg, var(--theme-primary-dark) 0%, var(--theme-primary) 100% );
        color: var(--theme-primary-text);
        border-color: var(--theme-primary-dark);
    }


body.admin-theme .premium-main-stat.theme-primary {
    background: linear-gradient( 135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100% );
    color: var(--theme-primary-text);
    border-color: var(--theme-primary);
    box-shadow: var(--theme-shadow);
}

    body.admin-theme .premium-main-stat.theme-primary .stat-top span,
    body.admin-theme .premium-main-stat.theme-primary > strong,
    body.admin-theme .premium-main-stat.theme-primary > small {
        color: var(--theme-primary-text);
    }

    body.admin-theme .premium-main-stat.theme-primary .stat-top em {
        background: var(--theme-surface);
        color: var(--theme-primary-dark);
        border-color: var(--theme-border);
    }



body.admin-theme
.premium-main-stat.additional-charge-stat-primary {
    background: linear-gradient( 135deg, var(--theme-primary) 0%, var(--theme-primary-dark) 100% ) !important;
    border-color: var(--theme-primary) !important;
    color: var(--theme-primary-text) !important;
    box-shadow: var(--theme-shadow);
}

    body.admin-theme
    .premium-main-stat.additional-charge-stat-primary
    .stat-top span,
    body.admin-theme
    .premium-main-stat.additional-charge-stat-primary > strong,
    body.admin-theme
    .premium-main-stat.additional-charge-stat-primary > small {
        color: var(--theme-primary-text) !important;
    }

    body.admin-theme
    .premium-main-stat.additional-charge-stat-primary
    .stat-top em {
        background: rgba(255, 255, 255, 0.16) !important;
        color: var(--theme-primary-text) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
    }


/* ============================================================
   ADDITIONAL CHARGE DETAILS
   DYNAMIC THEME CLEANUP
   ============================================================ */


/* BACK LINK */

body.admin-theme .additional-charge-page .company-back-link {
    color: var(--theme-primary-dark);
    border-color: var(--theme-border);
    background: var(--theme-surface);
}

    body.admin-theme .additional-charge-page .company-back-link:hover {
        color: var(--theme-primary-text);
        border-color: var(--theme-primary);
        background: var(--theme-primary);
    }


/* DETAILS HERO */

body.admin-theme .additional-charge-hero-main {
    border-color: var(--theme-border);
    background: radial-gradient( circle at top right, var(--theme-primary-soft), transparent 38% ), linear-gradient( 135deg, var(--theme-surface) 0%, var(--theme-primary-soft) 100% );
}


    /* HERO ITEM LABEL */

    body.admin-theme .additional-charge-hero-main > span {
        color: var(--theme-primary-dark);
    }


    /* HERO TITLE */

    body.admin-theme .additional-charge-hero-main h2 {
        color: var(--theme-text);
    }


    /* HERO SUBTEXT */

    body.admin-theme .additional-charge-hero-main p {
        color: var(--theme-muted);
    }


/* ============================================================
   MONTHLY SOA
   PARENT EMAIL NOTIFICATIONS
   ============================================================ */

.msoa-email-section {
    margin-top: 18px;
}


/* ============================================================
   EMAIL HEADER
   ============================================================ */

.msoa-email-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    margin-bottom: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}


.msoa-email-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}


    .msoa-email-header-info strong {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
    }


    .msoa-email-header-info span {
        font-size: 13px;
        line-height: 1.45;
        color: #64748b;
    }


.msoa-email-actions {
    flex-shrink: 0;
}


    .msoa-email-actions form {
        margin: 0;
    }



/* ============================================================
   EMAIL SUMMARY CARDS
   ============================================================ */

.msoa-email-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}


.msoa-email-stat {
    min-width: 0;
    min-height: 90px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}


    .msoa-email-stat span {
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: #64748b;
    }


    .msoa-email-stat strong {
        font-size: 22px;
        line-height: 1.15;
        font-weight: 800;
        color: #0f172a;
    }


    .msoa-email-stat small {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.35;
        color: #64748b;
    }



/* ============================================================
   SENT
   ============================================================ */

.msoa-email-stat-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}


    .msoa-email-stat-success span,
    .msoa-email-stat-success strong {
        color: #15803d;
    }



/* ============================================================
   NO EMAIL
   ============================================================ */

.msoa-email-stat-warning {
    background: #fffbeb;
    border-color: #fde68a;
}


    .msoa-email-stat-warning span,
    .msoa-email-stat-warning strong {
        color: #b45309;
    }



/* ============================================================
   FAILED
   ============================================================ */

.msoa-email-stat-danger {
    background: #fef2f2;
    border-color: #fecaca;
}


    .msoa-email-stat-danger span,
    .msoa-email-stat-danger strong {
        color: #b91c1c;
    }



/* ============================================================
   STATUS MESSAGE
   ============================================================ */

.msoa-email-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}


    .msoa-email-message > i {
        flex-shrink: 0;
        margin-top: 1px;
        font-size: 15px;
    }


    .msoa-email-message > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }


    .msoa-email-message strong {
        font-size: 13px;
        font-weight: 700;
    }


    .msoa-email-message span {
        font-size: 12px;
    }



    /* ============================================================
   SUCCESS MESSAGE
   ============================================================ */

    .msoa-email-message.success {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #166534;
    }



    /* ============================================================
   WARNING MESSAGE
   ============================================================ */

    .msoa-email-message.warning {
        background: #fffbeb;
        border: 1px solid #fde68a;
        color: #92400e;
    }



    /* ============================================================
   ERROR MESSAGE
   ============================================================ */

    .msoa-email-message.error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #991b1b;
    }



    /* ============================================================
   INFORMATION MESSAGE
   ============================================================ */

    .msoa-email-message.info {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #475569;
    }



/* ============================================================
   RECIPIENT TABLE
   ============================================================ */

.msoa-email-address {
    word-break: break-word;
}


.msoa-email-error {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #b91c1c;
    cursor: help;
}


    .msoa-email-error i {
        margin-right: 3px;
    }



/* ============================================================
   TABLE / ACTION FORM FIX
   ============================================================ */

.msoa-email-section form {
    margin-bottom: 0;
}



/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .msoa-email-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .msoa-email-header {
        flex-direction: column;
        align-items: stretch;
    }


    .msoa-email-actions {
        width: 100%;
    }


        .msoa-email-actions .btn {
            width: 100%;
        }
}


@media (max-width: 600px) {

    .msoa-email-stats {
        grid-template-columns: 1fr;
    }


    .msoa-email-stat {
        min-height: 82px;
    }
}


/* ============================================================
   MONTHLY SOA - EMAIL SENDING PROGRESS
   ============================================================ */

.msoa-email-progress {
    margin-bottom: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}


.msoa-email-progress-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}


    .msoa-email-progress-heading > div {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }


    .msoa-email-progress-heading strong {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
    }


    .msoa-email-progress-heading span {
        font-size: 12px;
        color: #64748b;
    }


#msoaEmailProgressPercent {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}


/* ============================================================
   PROGRESS TRACK
   ============================================================ */

.msoa-email-progress-track {
    width: 100%;
    height: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #e5e7eb;
    border-radius: 999px;
}


.msoa-email-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--admin-primary, #5b3cc4);
    border-radius: inherit;
    transition: width .25s ease;
}


/* ============================================================
   PROGRESS COUNTS
   ============================================================ */

.msoa-email-progress-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}


    .msoa-email-progress-details > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }


    .msoa-email-progress-details span {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #64748b;
    }


    .msoa-email-progress-details strong {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
    }


/* ============================================================
   PROGRESS NOTE
   ============================================================ */

.msoa-email-progress-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
}


    .msoa-email-progress-note i {
        margin-top: 1px;
        flex-shrink: 0;
    }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 700px) {

    .msoa-email-progress-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 480px) {

    .msoa-email-progress-heading {
        flex-direction: column;
    }


    .msoa-email-progress-details {
        grid-template-columns: 1fr;
    }
}