:root {
    --app-blue-50: #f1f6ff;
    --app-blue-100: #e3edff;
    --app-blue-200: #c6d9fb;
    --app-blue-500: #3478ee;
    --app-blue-600: #285ed0;
    --app-blue-700: #19429f;
    --app-navy: #0b1e49;
    --app-text: #172744;
    --app-muted: #637593;
    --app-border: #d7e1f1;
    --app-canvas: #f3f6fc;
    --bs-primary: #285ed0;
    --bs-primary-rgb: 40, 94, 208;
    --bs-link-color: #285ed0;
    --bs-link-hover-color: #173f9c;
}

body {
    font-family: Arial, sans-serif;
    color: var(--app-text);
}

.workspace-card {
    color: var(--app-text);
    border: 1px solid var(--app-border);
    transition: transform .15s ease, box-shadow .15s ease;
}

.workspace-card:hover {
    color: var(--app-text);
    transform: translateY(-2px);
    box-shadow: 0 .75rem 1.5rem rgba(17, 47, 92, .12);
}

.workspace-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    font-size: 1.5rem;
}

.inventory-workspace-icon {
    color: #285ed0;
    background: #e3edff;
}

.students-workspace-icon {
    color: #12765f;
    background: #ddf5ed;
}

.student-fieldset {
    min-width: 0;
    padding-top: .25rem;
}

.student-fieldset-title {
    float: none;
    width: auto;
    padding: 0 .5rem;
    margin-left: 1rem;
    color: var(--app-blue-700);
    font-size: 1.15rem;
    font-weight: 700;
}

.student-fieldset .card-body {
    padding-top: .75rem;
}

.student-record-form .form-label {
    font-size: 1.05rem;
    font-weight: 600;
}

.student-record-form .form-control,
.student-record-form .form-select {
    font-family: Arial, sans-serif;
    font-size: 1.3rem;
}

.student-record-form .student-record-key-field {
    border-color: #3372d6;
    background-color: #eaf2ff;
    color: #123d83;
    font-weight: 700;
}

.student-photo-box {
    display: flex;
    width: 140px;
    height: 160px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed var(--app-border);
    border-radius: .5rem;
    background: #f8faff;
    color: var(--app-muted);
}

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

.student-photo-box span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
}

.student-photo-box span .bi {
    font-size: 2.5rem;
}

.app-body {
    background: var(--app-canvas);
    color: var(--app-text);
}

a {
    color: var(--app-blue-600);
}

a:hover {
    color: var(--app-navy);
}

.layout-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: 56px;
}

.sidebar {
    width: 276px;
    background: linear-gradient(180deg, #123a79 0%, #0b2455 48%, #081a3b 100%);
    color: #fff;
    min-height: calc(100vh - 56px);
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.navbar.bg-dark {
    background: linear-gradient(100deg, #174a9b 0%, #103776 46%, #0b214e 100%) !important;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.1rem 0.85rem 0.85rem;
}

.brand-box {
    padding: 1rem 1rem 1.2rem;
    font-weight: 700;
    font-size: 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 0.5rem;
}

.sidebar-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.35rem 0.55rem 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #55c9f2 0%, #397cf3 58%, #354bc5 100%);
    color: #fff;
    font-size: 1.25rem;
}

.sidebar-heading-copy,
.account-details {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.sidebar-heading-copy strong {
    color: #f5f8f3;
    font-size: 0.9rem;
    font-weight: 700;
}

.sidebar-heading-copy small {
    margin-top: 0.12rem;
    color: #a9c5ed;
    font-size: 0.75rem;
}

.sidebar-navigation {
    flex: 1;
    padding-top: 1.1rem;
}

.sidebar-section + .sidebar-section {
    margin-top: 1.45rem;
}

.sidebar-section-label {
    padding: 0 0.7rem 0.55rem;
    color: #9bb6dc;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 43px;
    margin-bottom: 3px;
    padding: 0.65rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #d1def2;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.sidebar .nav-link.active {
    border-color: rgba(112, 174, 255, 0.28);
    background: linear-gradient(100deg, rgba(62, 132, 239, 0.3), rgba(61, 91, 196, 0.18));
    color: #fff;
}

.sidebar .nav-icon {
    width: 1.15rem;
    color: #a9c4e8;
    font-size: 1rem;
    text-align: center;
}

.sidebar .nav-link.active .nav-icon {
    color: #79c9ff;
}

.sidebar-submenu-toggle {
    width: 100%;
    background: transparent;
    text-align: left;
}

.sidebar-submenu {
    padding-top: 0.15rem;
}

.sidebar-submenu .nav-link {
    min-height: 38px;
    margin-left: 1rem;
    width: calc(100% - 1rem);
    padding-left: 0.65rem;
}

.sidebar-submenu-chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 160ms ease;
}

.sidebar-submenu-toggle[aria-expanded="true"] .sidebar-submenu-chevron {
    transform: rotate(180deg);
}

.sidebar-account {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    padding: 0.8rem 0.45rem 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.account-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #2866bf, #253d83);
    color: #b7e4ff;
}

.account-details {
    flex: 1;
}

.account-details strong {
    overflow: hidden;
    color: #f1f5f2;
    font-size: 0.77rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-details small {
    margin-top: 0.12rem;
    color: #a9c5ed;
    font-size: 0.7rem;
}

.account-menu-icon {
    color: #a9c5ed;
}

.main-content {
    margin-left: 276px;
    width: calc(100% - 276px);
    padding: 1rem 1.5rem 2rem;
}

.main-content-full {
    margin-left: 0;
    width: 100%;
}

.app-footer {
    padding: 1.25rem 0 0.25rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    text-align: center;
}

.app-footer strong {
    color: var(--app-blue-700);
}

.app-footer span {
    margin-left: 0.2rem;
    color: var(--app-muted);
}

.reports-body .app-footer,
.disposal-review-body .app-footer {
    display: none;
}

.login-bg {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 12% 8%, rgba(113, 167, 255, 0.24), transparent 36%),
        linear-gradient(135deg, #0b2455 0%, #123a79 48%, #1b4e9b 100%);
}

.login-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem 1.5rem;
}

.login-card {
    display: grid;
    width: min(100%, 1000px);
    min-height: 590px;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(3, 18, 48, 0.34);
}

.login-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 3.5rem;
    color: #fff;
    background: linear-gradient(150deg, #1c55a5 0%, #123a79 56%, #0b2455 100%);
}

.login-brand-panel::after {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.035), 0 0 0 78px rgba(255, 255, 255, 0.025);
    content: "";
    pointer-events: none;
}

.login-brand-content {
    position: relative;
    z-index: 1;
    max-width: 360px;
}

.login-logo-frame {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(4, 19, 48, 0.22);
}

.login-logo {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.login-eyebrow,
.login-form-kicker {
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.15em;
}

.login-eyebrow {
    color: #b9d5ff;
}

.login-brand-content h1 {
    margin: 0 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 2.65rem);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.12;
}

.login-brand-description {
    max-width: 320px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.7;
}

.login-brand-rule {
    width: 54px;
    height: 3px;
    margin: 2.25rem 0 1rem;
    border-radius: 3px;
    background: #83b7ff;
}

.login-brand-caption {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.84rem;
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem clamp(2rem, 6vw, 5rem);
}

.login-form-content {
    width: 100%;
    max-width: 370px;
}

.login-form-kicker {
    color: #3974c8;
}

.login-form-heading {
    margin-bottom: 2rem;
}

.login-form-heading h2 {
    margin: 0 0 0.55rem;
    color: #172b4d;
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.login-form-heading p {
    margin: 0;
    color: #748198;
    font-size: 0.94rem;
}

.login-form-content .form-label {
    margin-bottom: 0.55rem;
    color: #283b5a;
    font-size: 0.88rem;
    font-weight: 650;
}

.login-input {
    min-height: 50px;
    padding: 0.75rem 0.9rem;
    border-color: #dce4ef;
    border-radius: 10px;
    background-color: #fbfcfe;
    font-size: 0.94rem;
}

.login-input::placeholder {
    color: #9aa7b9;
}

.login-input:focus {
    border-color: #3974c8;
    background-color: #fff;
    box-shadow: 0 0 0 0.22rem rgba(57, 116, 200, 0.14);
}

.login-submit {
    display: flex;
    min-height: 51px;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem 0.75rem 1.15rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(110deg, #2866bf, #174a9b);
    box-shadow: 0 8px 18px rgba(31, 87, 166, 0.2);
    font-weight: 650;
}

.login-submit:hover,
.login-submit:focus-visible {
    background: linear-gradient(110deg, #2059ad, #123e87);
}

.login-submit span {
    font-size: 1.25rem;
    line-height: 1;
}

.login-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.75rem 0 0;
    color: #8591a3;
    font-size: 0.78rem;
}

.login-security-note span {
    font-size: 0.9rem;
}

.login-footer {
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    text-align: center;
}

@media (max-width: 767.98px) {
    .login-page {
        justify-content: flex-start;
        padding: 1.25rem 1rem;
    }

    .login-card {
        width: min(100%, 500px);
        min-height: 0;
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .login-brand-panel {
        justify-content: center;
        padding: 1.75rem 1.5rem;
        text-align: center;
    }

    .login-brand-content {
        max-width: 100%;
    }

    .login-logo-frame {
        width: 76px;
        height: 76px;
        margin: 0 auto 1rem;
        border-radius: 18px;
    }

    .login-logo {
        width: 60px;
        height: 60px;
    }

    .login-eyebrow {
        margin-bottom: 0.4rem;
        font-size: 0.64rem;
    }

    .login-brand-content h1 {
        margin-bottom: 0.45rem;
        font-size: 1.65rem;
    }

    .login-brand-description {
        margin: 0 auto;
        font-size: 0.86rem;
    }

    .login-brand-rule,
    .login-brand-caption {
        display: none;
    }

    .login-form-panel {
        padding: 2rem 1.5rem 1.75rem;
    }

    .login-form-heading {
        margin-bottom: 1.5rem;
    }

    .login-form-heading h2 {
        font-size: 1.55rem;
    }

    .login-form-content .mb-4 {
        margin-bottom: 1.1rem !important;
    }

    .login-security-note {
        margin-top: 1.25rem;
    }

    .login-footer {
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .login-card {
        animation: login-card-enter 500ms ease-out both;
    }

    @keyframes login-card-enter {
        from {
            opacity: 0;
            transform: translateY(12px);
        }

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

.card {
    border: 0;
    border-radius: 18px;
    color: var(--app-text);
}

.dashboard-stat {
    min-height: 142px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(12, 33, 78, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.dashboard-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(12, 33, 78, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.dashboard-stat .card-body {
    gap: 1rem;
    padding: 1rem 1.05rem;
}

.stat-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.stat-label {
    padding-top: 0.2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.stat-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1rem;
}

.stat-value {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.tile-gradient-blue {
    background: linear-gradient(180deg, #3c76f5 0%, #142c70 100%) !important;
}

.tile-gradient-cyan {
    background: linear-gradient(180deg, #1688c7 0%, #083d82 100%) !important;
}

.tile-gradient-indigo {
    background: linear-gradient(180deg, #4b5acb 0%, #142258 100%) !important;
}

.tile-gradient-violet {
    background: linear-gradient(180deg, #704af0 0%, #29136f 100%) !important;
}

.tile-gradient-teal {
    background: linear-gradient(180deg, #0b78a6 0%, #09234e 100%) !important;
}

.student-dashboard-body .navbar.bg-dark,
.asset-dashboard-body .navbar.bg-dark {
    border-bottom: 1px solid #e1e7ef;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(31, 49, 75, 0.06);
}

.student-dashboard-body .navbar-brand,
.asset-dashboard-body .navbar-brand {
    color: #18345b;
    font-weight: 700;
}

.student-dashboard-body .navbar .nav-item.text-white,
.asset-dashboard-body .navbar .nav-item.text-white {
    color: #34445c !important;
}

.student-dashboard-body .navbar .btn-outline-light,
.asset-dashboard-body .navbar .btn-outline-light {
    border-color: #cbd5e1;
    color: #34445c;
}

.student-dashboard-body .navbar .btn-outline-light:hover,
.asset-dashboard-body .navbar .btn-outline-light:hover {
    border-color: #285ed0;
    background: #285ed0;
    color: #fff;
}

.dashboard-light {
    padding-bottom: 1.5rem;
}

.dashboard-page-heading h2,
.student-dashboard-heading h2 {
    color: #1a2c45;
    font-size: 1.55rem;
    font-weight: 700;
}

.dashboard-page-heading p,
.student-dashboard-heading p {
    font-size: 0.9rem;
}

.dashboard-light .dashboard-stat {
    min-height: 124px;
    border: 1px solid #e0e6ed;
    border-radius: 13px;
    background: #fff !important;
    color: var(--app-text);
    box-shadow: 0 2px 8px rgba(31, 49, 75, 0.06);
}

.dashboard-light .dashboard-stat:hover {
    box-shadow: 0 8px 18px rgba(31, 49, 75, 0.1);
}

.dashboard-light .stat-label {
    color: #33445b;
    font-size: 0.86rem;
    font-weight: 600;
}

.dashboard-light .stat-value {
    color: #17283f;
    font-size: 1.8rem;
}

.dashboard-light .stat-caption {
    color: #718096;
    line-height: 1.25;
}

.dashboard-light .stat-icon {
    border: 0;
    border-radius: 10px;
    font-size: 1.05rem;
}

.dashboard-light .tile-gradient-blue .stat-icon {
    background: #e1efff;
    color: #2872b8;
}

.dashboard-light .tile-gradient-violet .stat-icon {
    background: #f1e9ff;
    color: #8158bd;
}

.dashboard-light .tile-gradient-indigo .stat-icon {
    background: #e9eaff;
    color: #5966bd;
}

.dashboard-light .tile-gradient-cyan .stat-icon {
    background: #e0f5f4;
    color: #218b88;
}

.dashboard-light .tile-gradient-green .stat-icon {
    background: #e4f5eb;
    color: #27804b;
}

.dashboard-light .dashboard-panel {
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(31, 49, 75, 0.05);
}

.dashboard-light .dashboard-panel > .card-header {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8edf3;
    color: #1d2e45;
}

.dashboard-light .dashboard-panel > .card-header small {
    display: block;
    margin-top: 0.15rem;
    color: var(--app-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.dashboard-light .dashboard-panel .table {
    margin: 0;
}

.dashboard-light .dashboard-panel .table thead th {
    padding: 0.8rem 1rem;
    background: #f7f9fc;
    color: #63728a;
}

.dashboard-light .dashboard-panel .table tbody td {
    padding: 0.75rem 1rem;
}

.dashboard-light .dashboard-panel .card-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid #e8edf3;
    font-size: 0.85rem;
}

.dashboard-light .dashboard-panel .list-group-item {
    padding: 0.85rem 1rem;
    border-color: #edf0f4;
    color: #34445c;
    font-size: 0.88rem;
}

.dashboard-light .dashboard-panel .list-group-item i {
    color: #3973c5;
}

.dashboard-light .dashboard-panel .list-group-item:hover {
    background: #f7f9fc;
    color: #204d91;
}

.student-profile-toolbar {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
}

.student-profile {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(31, 49, 75, 0.08);
}

.student-profile-header {
    display: flex;
    min-height: 210px;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(120deg, #f2f7ff 0%, #fff 70%);
    border-bottom: 1px solid #e8edf3;
}

.student-profile-photo {
    display: grid;
    width: 140px;
    height: 160px;
    flex: 0 0 140px;
    place-items: center;
    overflow: hidden;
    border: 4px solid #fff;
    border-radius: 12px;
    background: #e7effa;
    box-shadow: 0 3px 12px rgba(31, 49, 75, 0.12);
    color: #5480b8;
    font-size: 3.5rem;
}

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

.student-profile-intro {
    min-width: 0;
    flex: 1;
}

.student-profile-kicker {
    color: #5274a2;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.student-profile-intro h1 {
    margin: 0.4rem 0 0.75rem;
    color: #172b49;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.student-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.student-profile-meta span {
    padding: 0.35rem 0.65rem;
    border: 1px solid #dce6f3;
    border-radius: 999px;
    background: #fff;
    color: #445a78;
    font-size: 1.1rem;
}

.student-profile-status {
    align-self: flex-start;
    margin-left: auto;
}

.student-profile-body {
    padding: 0.5rem 2rem 1.5rem;
}

.student-profile-section {
    padding: 1.15rem 0;
    border-bottom: 1px solid #edf0f4;
}

.student-profile-section:last-child {
    border-bottom: 0;
}

.student-profile-section h2 {
    margin: 0 0 1rem;
    color: #285ed0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.student-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
}

.student-profile-detail {
    min-width: 0;
}

.student-profile-detail dt {
    margin-bottom: 0.25rem;
    color: #78869a;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.student-profile-detail dd {
    margin: 0;
    color: #233750;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.student-profile-activity + .student-profile-activity {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f4;
}

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

.student-profile-empty {
    margin: 0;
    color: var(--app-muted);
}

.student-profile-documents {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #edf0f4;
}

.student-profile-documents h3 {
    margin: 0 0 0.75rem;
    color: #285ed0;
    font-size: 1rem;
    font-weight: 700;
}

.student-profile-document-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.student-profile-document-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid #edf0f4;
}

.student-profile-document-icon {
    color: #3973c5;
    font-size: 1.4rem;
}

.student-profile-document-details {
    display: grid;
    min-width: 0;
    flex: 1;
}

.student-profile-document-details strong,
.student-profile-document-details small {
    overflow-wrap: anywhere;
}

.student-profile-document-details small {
    color: var(--app-muted);
}

.student-documents {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(31, 49, 75, 0.05);
}

.student-documents > .card-header {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #e8edf3;
    color: #1d2e45;
}

.student-documents > .card-header small {
    display: block;
    margin-top: 0.2rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 400;
}

.student-document-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
}

.student-document-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 10px;
    background: #edf3ff;
    color: #3569b5;
    font-size: 1.15rem;
}

.student-document-details {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 0.15rem;
}

.student-document-details strong,
.student-document-details small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-document-details strong {
    color: #263b57;
    font-size: 0.88rem;
}

.student-document-details small {
    color: var(--app-muted);
    font-size: 0.75rem;
}

.student-document-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.4rem;
}

.student-document-actions form {
    margin: 0;
}

@media (max-width: 767.98px) {
    .student-profile-header {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1.25rem;
    }

    .student-profile-photo {
        width: 100px;
        height: 120px;
        flex-basis: 100px;
    }

    .student-profile-status {
        margin-left: 0;
    }

    .student-profile-body {
        padding: 0.25rem 1.25rem 1rem;
    }

    .student-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem 1rem;
    }

    .student-document-row {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .student-document-actions {
        margin-left: auto;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    body.student-profile-body::after {
        display: none !important;
        content: none !important;
    }

    body.student-profile-body .navbar,
    body.student-profile-body .sidebar,
    body.student-profile-body .app-footer,
    body.student-profile-body .student-profile-toolbar,
    body.student-profile-body .student-documents {
        display: none !important;
    }

    body.student-profile-body .layout-wrapper {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.student-profile-body .main-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body.student-profile-body .student-profile {
        max-width: none;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
        background: #fff;
        color: #172b49;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.student-profile-body .student-profile-header {
        min-height: 0;
        gap: 5mm;
        padding: 5mm;
    }

    body.student-profile-body .student-profile-photo {
        width: 27mm;
        height: 32mm;
        flex-basis: 27mm;
        border-width: 1mm;
        border-radius: 2mm;
        box-shadow: none;
        font-size: 24pt;
    }

    body.student-profile-body .student-profile-kicker {
        font-size: 7pt;
    }

    body.student-profile-body .student-profile-intro h1 {
        margin: 1mm 0 2mm;
        font-size: 18pt;
    }

    body.student-profile-body .student-profile-meta {
        gap: 1.5mm;
    }

    body.student-profile-body .student-profile-meta span {
        padding: 1mm 2mm;
        font-size: 7pt;
    }

    body.student-profile-body .student-profile-body {
        padding: 0 5mm 2mm;
    }

    body.student-profile-body .student-profile-section {
        padding: 2.5mm 0;
        break-inside: auto;
        page-break-inside: auto;
    }

    body.student-profile-body .student-profile-section h2 {
        margin-bottom: 2mm;
        font-size: 8pt;
    }

    body.student-profile-body .student-profile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2mm 4mm;
    }

    body.student-profile-body .student-profile-detail dt {
        margin-bottom: 0.5mm;
        font-size: 6pt;
    }

    body.student-profile-body .student-profile-detail dd {
        font-size: 7.5pt;
        line-height: 1.2;
    }

    body.student-profile-body .student-profile-activity + .student-profile-activity {
        margin-top: 2mm;
        padding-top: 2mm;
    }

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

    body.student-profile-body .student-profile-empty {
        font-size: 7.5pt;
    }

    body.student-profile-body .student-profile-documents {
        margin-top: 2mm;
        padding-top: 2mm;
    }

    body.student-profile-body .student-profile-documents h3 {
        margin-bottom: 1mm;
        font-size: 8pt;
    }

    body.student-profile-body .student-profile-document-list li {
        gap: 2mm;
        padding: 1.5mm 0;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body.student-profile-body .student-profile-document-icon {
        font-size: 10pt;
    }

    body.student-profile-body .student-profile-document-details {
        font-size: 7.5pt;
    }

    body.student-profile-body .student-profile-document-details small {
        font-size: 6.5pt;
    }

    body.student-profile-body .student-profile-document-download {
        display: none;
    }
}

.table thead th {
    background: var(--app-blue-50);
    color: #29456f;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.table > :not(caption) > * > * {
    border-color: var(--app-border);
}

.badge {
    font-size: 0.72rem;
    padding: 0.45em 0.7em;
}

.form-control, .form-select {
    border-radius: 10px;
    border-color: #cbd7e9;
    color: var(--app-text);
}

.form-control:focus,
.form-select:focus {
    border-color: #6c9cf0;
    box-shadow: 0 0 0 0.22rem rgba(52, 120, 238, 0.18);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #3c7ef3 0%, #285ed0 54%, #173e9e 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(40, 94, 208, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: transparent;
    background: linear-gradient(135deg, #2d68d5 0%, #1c4aa9 100%);
    color: #fff;
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 0.22rem rgba(52, 120, 238, 0.28);
}

.btn-outline-primary {
    border-color: #4776ce;
    color: #2456b5;
}

.btn-outline-primary:hover {
    border-color: #2456b5;
    background: #2456b5;
    color: #fff;
}

.bg-primary {
    background: linear-gradient(135deg, #3c7ef3, #173e9e) !important;
}

.text-primary,
.link-primary {
    color: #285ed0 !important;
}

.form-check-input:checked {
    border-color: #285ed0;
    background-color: #285ed0;
}

.form-check-input:focus {
    border-color: #6c9cf0;
    box-shadow: 0 0 0 0.22rem rgba(52, 120, 238, 0.18);
}

.disposal-quantity {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.35rem;
    padding: 0.8rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-blue-50);
}

.disposal-quantity small {
    color: var(--app-muted);
    font-size: 0.72rem;
}

.disposal-quantity strong {
    color: var(--app-navy);
    font-size: 1.25rem;
}

.disposal-print-sheet {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 2rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 48, 96, 0.08);
}

.disposal-print-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 2px solid var(--app-blue-600);
}

.disposal-print-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #55c9f2 0%, #397cf3 58%, #354bc5 100%);
    color: #fff;
    font-size: 1.4rem;
}

.disposal-print-heading p {
    margin: 0 0 0.2rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.disposal-print-heading h1 {
    margin: 0;
    color: var(--app-navy);
    font-size: 1.45rem;
    font-weight: 700;
}

.disposal-print-table th {
    width: auto;
    color: #29456f;
    font-weight: 600;
}

.disposal-print-table td,
.disposal-print-table th {
    padding: 0.85rem 0.75rem;
    border-color: var(--app-border);
    vertical-align: top;
}

.disposal-signature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    margin-top: 3.5rem;
    color: var(--app-text);
    font-size: 0.9rem;
    font-weight: 600;
    break-inside: avoid;
}

.disposal-signature-line {
    height: 2.5rem;
    border-bottom: 1px solid #33415a;
}

.disposal-print-footer {
    margin-top: 2rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 0.75rem;
    text-align: center;
}

.disposal-print-footer strong {
    color: var(--app-blue-700);
}

.disposal-upload-card {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--app-border);
    border-radius: 8px;
}

.disposal-item-entry,
.transfer-item-entry {
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: var(--app-blue-50);
}

.disposal-cart-table thead th,
.transfer-cart-table thead th {
    background: #fff;
}

.disposal-report-sheet {
    padding: 1.5rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 48, 96, 0.08);
}

.inventory-report-sheet {
    margin-top: 1.5rem;
}

.disposal-report-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--app-blue-600);
}

.disposal-report-heading p {
    margin: 0 0 0.25rem;
    color: var(--app-blue-600);
    font-size: 0.8rem;
    font-weight: 700;
}

.disposal-report-heading h3 {
    margin: 0;
    color: var(--app-navy);
    font-size: 1.35rem;
}

.disposal-report-heading span {
    display: inline-block;
    margin-top: 0.35rem;
    color: var(--app-muted);
    font-size: 0.8rem;
}

.disposal-report-actions {
    display: flex;
    gap: 0.5rem;
}

.disposal-report-table {
    margin: 0;
    font-size: 0.85rem;
}

.disposal-report-table th,
.disposal-report-table td {
    padding: 0.65rem 0.55rem;
    border-color: var(--app-border);
    vertical-align: middle;
}

.disposal-report-table tfoot {
    background: var(--app-blue-50);
    color: var(--app-navy);
    font-weight: 700;
}

.disposal-report-footer {
    margin-top: 1.25rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--app-border);
    color: var(--app-muted);
    font-size: 0.75rem;
    text-align: center;
}

.disposal-report-footer strong {
    color: var(--app-blue-700);
}

.transfer-print-sheet {
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    padding: 2rem;
    border: 1px solid var(--app-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 48, 96, 0.08);
}

.transfer-print-sheet {
    --transfer-print-scale: 1;
}

.transfer-print-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--app-blue-600);
}

.transfer-print-heading p {
    margin: 0 0 0.2rem;
    color: var(--app-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.transfer-print-heading h1 {
    margin: 0;
    color: var(--app-navy);
    font-size: 1.45rem;
    font-weight: 700;
}

.transfer-summary {
    row-gap: 1rem;
}

.transfer-summary strong,
.transfer-approval-remarks > strong,
.transfer-requester-remarks > strong {
    color: #29456f;
}

.transfer-requester-remarks {
    margin-top: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--app-border);
    border-radius: 6px;
}

.transfer-approval-remarks {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--app-border);
    border-radius: 6px;
}

.transfer-signature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    break-inside: avoid;
}

.transfer-signature-row > div {
    display: flex;
    flex-direction: column;
}

.transfer-signature-row span {
    min-height: 1.5rem;
    margin-top: 0.5rem;
}

.transfer-signature-line {
    height: 2rem;
    border-bottom: 1px solid #33415a;
}

.student-analysis-page {
    max-width: 1500px;
}

.student-analysis-eyebrow {
    color: #526b9b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.student-analysis-filter-card,
.student-analysis-empty,
.student-analysis-report {
    border: 1px solid #e1e8f4;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .45rem 1.5rem rgba(34, 59, 101, .07);
}

.student-analysis-empty {
    color: var(--app-text);
}

.student-analysis-empty-icon {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: #edf3ff;
    color: #3e69d6;
    font-size: 1.8rem;
}

.student-analysis-report {
    overflow: hidden;
}

.student-analysis-report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(120deg, #f1f5ff 0%, #f7f3ff 54%, #eefbfa 100%);
}

.student-analysis-report-header h1 {
    margin: .4rem 0 .75rem;
    color: #142d59;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
}

.student-analysis-student-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.student-analysis-student-meta span {
    padding: .3rem .65rem;
    border: 1px solid rgba(66, 94, 146, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: #465c80;
    font-size: .8rem;
    font-weight: 600;
}

.student-analysis-session-chip {
    display: flex;
    min-width: 165px;
    flex-direction: column;
    gap: .2rem;
    padding: .85rem 1rem;
    border: 1px solid rgba(65, 92, 144, .14);
    border-radius: .8rem;
    background: rgba(255, 255, 255, .8);
}

.student-analysis-session-chip small {
    color: #647694;
    font-size: .72rem;
}

.student-analysis-session-chip strong {
    color: #243f70;
}

.student-analysis-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.35rem 1.5rem 0;
}

.student-analysis-stat {
    position: relative;
    display: flex;
    min-height: 145px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    padding: 1.15rem 1.35rem;
    border: 1px solid transparent;
    border-radius: .9rem;
}

.student-stat-academic {
    border-color: #d8e4ff;
    background: linear-gradient(135deg, #eff4ff, #f8faff);
    color: #2c56b7;
}

.student-stat-discipline {
    border-color: #ffe0d7;
    background: linear-gradient(135deg, #fff2ed, #fffaf8);
    color: #bc583a;
}

.student-stat-reward {
    border-color: #d3efe2;
    background: linear-gradient(135deg, #eaf9f1, #f8fdf9);
    color: #18764f;
}

.student-analysis-stat small {
    font-size: .82rem;
    font-weight: 700;
}

.student-analysis-stat strong {
    margin: .15rem 0;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.student-analysis-stat > span:last-child {
    color: #5d6d87;
    font-size: .76rem;
}

.student-stat-icon {
    position: absolute;
    top: .8rem;
    right: 1rem;
    opacity: .16;
    font-size: 2.3rem;
}

.student-analysis-section {
    padding: 1.5rem;
}

.student-analysis-section + .student-analysis-section,
.student-analysis-record-grid {
    border-top: 1px solid #e9eef6;
}

.student-analysis-section-heading,
.student-analysis-section-heading > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.student-analysis-section-heading > div {
    justify-content: flex-start;
}

.student-analysis-section-heading h2 {
    margin: 0;
    color: #233b64;
    font-size: 1.05rem;
    font-weight: 800;
}

.student-analysis-section-heading p {
    margin: .15rem 0 0;
    color: #74829a;
    font-size: .78rem;
}

.student-analysis-section-icon {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: .8rem;
    font-size: 1.05rem;
}

.academic-icon {
    background: #edf2ff;
    color: #4268d1;
}

.insight-icon {
    background: #f2edff;
    color: #7853c8;
}

.discipline-icon {
    background: #fff0ea;
    color: #c56042;
}

.reward-icon {
    background: #e8f8ef;
    color: #23835a;
}

.student-analysis-trend {
    padding: .4rem .65rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
}

.trend-up {
    background: #e8f8ef;
    color: #18764f;
}

.trend-down {
    background: #fff0ea;
    color: #b04d34;
}

.student-analysis-chart {
    display: grid;
    gap: .9rem;
    margin: 1.5rem 0;
}

.student-analysis-chart-row {
    display: grid;
    grid-template-columns: minmax(130px, 190px) minmax(100px, 1fr) 58px;
    align-items: center;
    gap: 1rem;
}

.student-analysis-chart-label {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.student-analysis-chart-label strong {
    overflow: hidden;
    color: #344b70;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-analysis-chart-label span {
    color: #8793a7;
    font-size: .7rem;
}

.student-analysis-bar-track {
    height: .8rem;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f8;
}

.student-analysis-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5275e8, #8b62dc 62%, #41b7a4);
}

.student-analysis-chart-value {
    color: #344b70;
    font-size: .82rem;
    text-align: right;
}

.student-analysis-table-wrap {
    border: 1px solid #e8edf5;
    border-radius: .7rem;
}

.student-analysis-table-wrap .table {
    font-size: .8rem;
}

.student-analysis-table-wrap .table thead th {
    background: #f7f9fd;
    color: #5c6e8d;
    font-size: .7rem;
    letter-spacing: .03em;
    white-space: nowrap;
}

.student-analysis-no-data {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: .65rem;
    background: #f7f9fd;
    color: #72819a;
    font-size: .85rem;
}

.student-analysis-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.1rem;
}

.student-analysis-insight {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .85rem;
    border: 1px solid #e7eaf2;
    border-radius: .75rem;
    background: #fafbfe;
}

.student-analysis-insight > span {
    padding-top: .05rem;
    color: #6d68bd;
}

.student-analysis-insight strong {
    color: #354a6d;
    font-size: .83rem;
}

.student-analysis-insight p {
    margin: .2rem 0 0;
    color: #66758e;
    font-size: .78rem;
    line-height: 1.45;
}

.insight-trend-positive,
.insight-discipline-positive,
.insight-reward-positive {
    border-color: #d5eee1;
    background: #f3fbf6;
}

.insight-trend-positive > span,
.insight-discipline-positive > span,
.insight-reward-positive > span {
    color: #27845e;
}

.insight-trend-attention,
.insight-discipline-attention {
    border-color: #f4d8d0;
    background: #fff7f4;
}

.insight-trend-attention > span,
.insight-discipline-attention > span {
    color: #bd593e;
}

.student-analysis-disclaimer {
    margin: 1rem 0 0;
    color: #77849a;
    font-size: .73rem;
    line-height: 1.5;
}

.student-analysis-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-record-section + .student-record-section {
    border-left: 1px solid #e9eef6;
}

.student-analysis-event-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}

.student-analysis-event {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: .75rem;
    padding: .8rem 0;
    border-bottom: 1px solid #edf0f6;
}

.student-analysis-event:last-child {
    border-bottom: 0;
}

.student-analysis-event-date {
    color: #75839a;
    font-size: .72rem;
    font-weight: 700;
}

.student-analysis-event strong {
    color: #394e70;
    font-size: .82rem;
}

.student-analysis-event p {
    margin: .2rem 0;
    color: #67758d;
    font-size: .78rem;
    line-height: 1.45;
    white-space: pre-line;
}

.student-analysis-event small {
    color: #7c899e;
    font-size: .72rem;
    white-space: pre-line;
}

.student-analysis-report-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1.5rem;
    border-top: 1px solid #e9eef6;
    color: #71809a;
    font-size: .72rem;
}

@media (max-width: 767.98px) {
    .student-analysis-report-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.35rem;
    }

    .student-analysis-session-chip {
        min-width: 0;
    }

    .student-analysis-stat-grid {
        grid-template-columns: 1fr;
        padding: 1rem 1rem 0;
    }

    .student-analysis-stat {
        min-height: 120px;
    }

    .student-analysis-section {
        padding: 1rem;
    }

    .student-analysis-chart-row {
        grid-template-columns: minmax(85px, 125px) minmax(60px, 1fr) 48px;
        gap: .55rem;
    }

    .student-analysis-insights,
    .student-analysis-record-grid {
        grid-template-columns: 1fr;
    }

    .student-record-section + .student-record-section {
        border-top: 1px solid #e9eef6;
        border-left: 0;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 9mm;
    }

    body.student-analysis-report-body::after {
        display: none !important;
        content: none !important;
    }

    body.student-analysis-report-body .navbar,
    body.student-analysis-report-body .sidebar,
    body.student-analysis-report-body .app-footer,
    body.student-analysis-report-body .student-analysis-toolbar,
    body.student-analysis-report-body .student-analysis-filter-card {
        display: none !important;
    }

    body.student-analysis-report-body .layout-wrapper {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.student-analysis-report-body .main-content {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body.student-analysis-report-body .student-analysis-page {
        max-width: none;
        padding: 0;
    }

    body.student-analysis-report-body .student-analysis-report {
        overflow: visible;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        color: #172744;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    body.student-analysis-report-body .student-analysis-report-header {
        padding: 6mm;
    }

    body.student-analysis-report-body .student-analysis-stat-grid {
        gap: 3mm;
        padding: 4mm 0 0;
    }

    body.student-analysis-report-body .student-analysis-stat {
        min-height: 27mm;
        padding: 3mm;
        break-inside: avoid;
    }

    body.student-analysis-report-body .student-analysis-section {
        padding: 5mm 0;
        break-inside: auto;
    }

    body.student-analysis-report-body .student-analysis-section-heading,
    body.student-analysis-report-body .student-analysis-event,
    body.student-analysis-report-body .student-analysis-insight {
        break-inside: avoid;
    }

    body.student-analysis-report-body .student-analysis-chart {
        gap: 2.5mm;
        margin: 4mm 0;
    }

    body.student-analysis-report-body .student-analysis-chart-row {
        gap: 3mm;
    }

    body.student-analysis-report-body .student-analysis-chart-label strong,
    body.student-analysis-report-body .student-analysis-chart-value {
        font-size: 8pt;
    }

    body.student-analysis-report-body .student-analysis-chart-label span,
    body.student-analysis-report-body .student-analysis-disclaimer,
    body.student-analysis-report-body .student-analysis-event p,
    body.student-analysis-report-body .student-analysis-event small {
        font-size: 7pt;
    }

    body.student-analysis-report-body .student-analysis-table-wrap .table {
        font-size: 7pt;
    }

    body.student-analysis-report-body .student-analysis-insights {
        gap: 2mm;
    }

    body.student-analysis-report-body .student-analysis-record-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.student-analysis-report-body .student-analysis-event-list {
        gap: 1mm;
    }

    body.student-analysis-report-body .student-analysis-report-footer {
        padding: 3mm 0;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    body::after {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: block !important;
        padding: 3mm 0 1mm;
        border-top: 1px solid #b8c7dc;
        background: #fff;
        color: #425675;
        content: "Powered by EasyTech 0321-8628218";
        font-size: 9pt;
        text-align: center;
        visibility: visible !important;
    }

    .app-footer {
        display: none !important;
    }

    body.disposal-review-body::after {
        display: none !important;
        content: none !important;
    }

    body.disposal-review-body * {
        visibility: hidden !important;
    }

    body.disposal-review-body .disposal-print-sheet,
    body.disposal-review-body .disposal-print-sheet * {
        visibility: visible !important;
    }

    .navbar,
    .sidebar,
    .disposal-print-actions,
    .disposal-upload-card {
        display: none !important;
    }

    body.disposal-review-body .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.disposal-review-body .disposal-print-sheet {
        position: static;
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.disposal-review-body .disposal-print-heading {
        gap: 4mm;
        margin-bottom: 4mm;
        padding-bottom: 3mm;
    }

    body.disposal-review-body .disposal-print-mark {
        width: 10mm;
        height: 10mm;
        flex-basis: 10mm;
        font-size: 12pt;
    }

    body.disposal-review-body .disposal-print-heading h1 {
        font-size: 15pt;
    }

    body.disposal-review-body .disposal-print-table {
        width: 100%;
        margin: 2mm 0;
        font-size: 8pt;
    }

    body.disposal-review-body .disposal-print-table th,
    body.disposal-review-body .disposal-print-table td {
        padding: 1.5mm;
        line-height: 1.15;
    }

    body.disposal-review-body .disposal-print-sheet .mb-2 {
        margin-bottom: 2mm !important;
    }

    body.disposal-review-body .disposal-signature-row {
        gap: 12mm;
        margin-top: 8mm;
        font-size: 8.5pt;
    }

    body.disposal-review-body .disposal-signature-line {
        height: 9mm;
    }

    body.disposal-review-body .disposal-print-footer {
        margin-top: 4mm;
        padding-top: 2mm;
    }

    body.transfer-print-body::after {
        display: none !important;
        content: none !important;
    }

    body.transfer-print-body * {
        visibility: hidden !important;
    }

    body.transfer-print-body .transfer-print-sheet,
    body.transfer-print-body .transfer-print-sheet * {
        visibility: visible !important;
    }

    body.transfer-print-body .navbar,
    body.transfer-print-body .sidebar,
    body.transfer-print-body .app-footer,
    body.transfer-print-body .transfer-actions {
        display: none !important;
    }

    body.transfer-print-body .main-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.transfer-print-body .transfer-print-sheet {
        position: static;
        width: calc(100% / var(--transfer-print-scale, 1));
        max-width: none;
        margin: 0;
        padding: 4mm;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        zoom: var(--transfer-print-scale, 1);
        font-size: 9pt;
    }

    body.transfer-print-body .transfer-print-heading {
        margin-bottom: 3mm;
        padding-bottom: 2mm;
    }

    body.transfer-print-body .transfer-print-heading h1 {
        font-size: 15pt;
    }

    body.transfer-print-body .transfer-summary {
        --bs-gutter-y: 2mm;
        --bs-gutter-x: 3mm;
        font-size: 8.5pt;
    }

    body.transfer-print-body .transfer-requester-remarks,
    body.transfer-print-body .transfer-approval-remarks {
        margin-top: 2mm;
        padding: 2mm 3mm;
        font-size: 8.5pt;
    }

    body.transfer-print-body .transfer-print-sheet .table-responsive {
        overflow: visible !important;
    }

    body.transfer-print-body .transfer-print-table {
        margin: 2mm 0 0;
        font-size: 8pt;
        break-inside: auto;
    }

    body.transfer-print-body .transfer-print-table th,
    body.transfer-print-body .transfer-print-table td {
        padding: 1.5mm 2mm;
        line-height: 1.2;
    }

    body.transfer-print-body .transfer-print-table tr {
        break-inside: avoid;
    }

    body.transfer-print-body .transfer-signature-row {
        gap: 12mm;
        margin-top: 8mm;
        font-size: 8.5pt;
    }

    body.transfer-print-body .transfer-signature-row span {
        min-height: 5mm;
        margin-top: 1mm;
    }

    body.transfer-print-body .transfer-signature-line {
        height: 9mm;
    }

    body.disposal-report-printing * {
        visibility: hidden !important;
    }

    body.transfer-report-printing * {
        visibility: hidden !important;
    }

    body.transfer-report-printing::after {
        display: none !important;
        content: none !important;
    }

    body.transfer-report-printing #transfer-report-sheet,
    body.transfer-report-printing #transfer-report-sheet * {
        visibility: visible !important;
    }

    body.transfer-report-printing .navbar,
    body.transfer-report-printing .sidebar,
    body.transfer-report-printing .app-footer,
    body.transfer-report-printing .main-content > :not(.reports-page),
    body.transfer-report-printing .reports-page > :not(#transfer-report-sheet) {
        display: none !important;
    }

    body.transfer-report-printing .layout-wrapper {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.transfer-report-printing .main-content,
    body.transfer-report-printing .reports-page {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.transfer-report-printing #transfer-report-sheet {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 4mm;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.transfer-report-printing #transfer-report-sheet .disposal-report-actions {
        display: none !important;
    }

    body.transfer-report-printing #transfer-report-sheet .disposal-report-heading {
        margin-bottom: 4mm;
        padding-bottom: 3mm;
        border-bottom: 1.5pt solid #285ed0;
    }

    body.transfer-report-printing #transfer-report-sheet .disposal-report-heading h3 {
        margin: 0 0 1mm;
        color: #0b1e49;
        font-size: 16pt;
    }

    body.transfer-report-printing #transfer-report-sheet .disposal-report-heading p {
        margin-bottom: 1mm;
        color: #637593;
        font-size: 8pt;
    }

    body.transfer-report-printing .transfer-report-table {
        width: 100%;
        margin: 0;
        font-size: 7.5pt;
    }

    body.transfer-report-printing .transfer-report-table th,
    body.transfer-report-printing .transfer-report-table td {
        padding: 1.5mm 1.2mm;
        line-height: 1.2;
        vertical-align: middle;
        border: 0.5pt solid #cbd5e1;
    }

    body.transfer-report-printing .transfer-report-table thead {
        display: table-header-group;
    }

    body.transfer-report-printing .transfer-report-table thead th {
        background: #eaf1fb !important;
        color: #17345f !important;
        font-weight: 700;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body.transfer-report-printing .transfer-report-table tfoot {
        display: table-row-group;
        font-weight: 700;
    }

    body.transfer-report-printing .transfer-report-table tr,
    body.transfer-report-printing #transfer-report-sheet .disposal-report-heading {
        break-inside: avoid;
    }

    body.transfer-report-printing #transfer-report-sheet .disposal-report-footer {
        margin-top: 4mm;
        padding-top: 2mm;
        border-top: 0.5pt solid #cbd5e1;
        font-size: 7pt;
    }

    body.disposal-report-printing::after {
        display: none !important;
        content: none !important;
    }

    body.disposal-report-printing .disposal-report-sheet,
    body.disposal-report-printing .disposal-report-sheet * {
        visibility: visible !important;
    }

    body.disposal-report-printing .navbar,
    body.disposal-report-printing .sidebar,
    body.disposal-report-printing .app-footer,
    body.disposal-report-printing .main-content > :not(.reports-page),
    body.disposal-report-printing .reports-page > :not(#disposal-report-sheet) {
        display: none !important;
    }

    body.disposal-report-printing .layout-wrapper {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.disposal-report-printing .main-content {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.disposal-report-printing .reports-page {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body.disposal-report-printing .disposal-report-sheet,
    body.disposal-report-printing .disposal-report-sheet * {
        visibility: visible !important;
    }

    body.disposal-report-printing .disposal-report-sheet {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.5in;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.inventory-report-printing * {
        visibility: hidden !important;
    }

    body.inventory-report-printing::after {
        display: none !important;
        content: none !important;
    }

    body.inventory-report-printing .inventory-report-sheet,
    body.inventory-report-printing .inventory-report-sheet * {
        visibility: visible !important;
    }

    body.inventory-report-printing .navbar,
    body.inventory-report-printing .sidebar,
    body.inventory-report-printing .app-footer,
    body.inventory-report-printing .main-content > :not(.reports-page),
    body.inventory-report-printing .reports-page > :not(.inventory-report-sheet) {
        display: none !important;
    }

    body.inventory-report-printing .layout-wrapper {
        display: block;
        min-height: 0;
        padding: 0;
    }

    body.inventory-report-printing .main-content {
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.inventory-report-printing .reports-page {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    body.inventory-report-printing .inventory-report-sheet {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.inventory-report-printing .disposal-report-actions {
        display: none !important;
    }

    body.inventory-report-printing .inventory-report-table {
        width: 100%;
        font-size: 8pt;
    }

    body.inventory-report-printing .inventory-report-table th,
    body.inventory-report-printing .inventory-report-table td {
        padding: 2mm 1.5mm;
    }

    body.inventory-report-printing .inventory-report-table thead {
        display: table-header-group;
    }

    body.inventory-report-printing .inventory-report-table tr,
    body.inventory-report-printing .disposal-report-heading {
        break-inside: avoid;
    }

    body.disposal-report-printing .disposal-report-actions {
        display: none !important;
    }

    body.disposal-report-printing .disposal-report-table {
        font-size: 9pt;
    }

    body.disposal-report-printing .disposal-report-table th,
    body.disposal-report-printing .disposal-report-table td {
        padding: 0.12in 0.1in;
    }
}

::selection {
    background: #c6d9fb;
    color: #0b1e49;
}

@media (max-width: 992px) {
    .layout-wrapper {
        display: block;
        padding-top: 56px;
    }

    .sidebar {
        position: static;
        width: 100%;
        min-height: auto;
    }

    .sidebar-menu {
        min-height: auto;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }
}

.roles-page {
    max-width: 1600px;
    padding: 1.6rem 1.75rem 2.5rem;
}

.roles-page-heading,
.roles-section-heading,
.roles-card-heading,
.roles-card-footer,
.roles-card-meta,
.roles-card-identity,
.roles-permission-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.roles-page-heading {
    margin-bottom: 1.4rem;
}

.roles-eyebrow {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .45rem;
    color: var(--app-blue-600);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.roles-page-heading h1 {
    margin: 0;
    color: #172744;
    font-size: 1.7rem;
    font-weight: 750;
}

.roles-page-heading p,
.roles-section-heading p {
    margin: .4rem 0 0;
    color: var(--app-muted);
    font-size: .9rem;
}

.roles-heading-note {
    display: flex;
    max-width: 360px;
    align-items: flex-start;
    gap: .65rem;
    padding: .8rem .9rem;
    border: 1px solid #dbe7fb;
    border-radius: 12px;
    background: #f8fbff;
    color: #526785;
    font-size: .8rem;
    line-height: 1.45;
}

.roles-heading-note i {
    color: var(--app-blue-600);
    font-size: 1rem;
}

.roles-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1.75rem;
}

.roles-overview-card {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid #e0e8f3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(24, 52, 91, .035);
}

.roles-overview-card > div {
    display: grid;
    gap: .12rem;
}

.roles-overview-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    font-size: 1.05rem;
}

.roles-icon-blue { background: #eaf1ff; color: #285ed0; }
.roles-icon-green { background: #e8f7ef; color: #208357; }
.roles-icon-violet { background: #f1edff; color: #7152c6; }
.roles-icon-amber { background: #fff4df; color: #b77810; }

.roles-overview-label {
    color: #71819a;
    font-size: .75rem;
    font-weight: 600;
}

.roles-overview-card strong {
    color: #1b2d49;
    font-size: 1.35rem;
    line-height: 1.1;
}

.roles-section-heading {
    margin-bottom: .9rem;
}

.roles-section-heading h2 {
    margin: 0;
    color: #1b2d49;
    font-size: 1.1rem;
    font-weight: 700;
}

.roles-section-heading p {
    font-size: .82rem;
}

.roles-section-count {
    padding: .35rem .65rem;
    border: 1px solid #dce6f5;
    border-radius: 999px;
    background: #fff;
    color: #526785;
    font-size: .75rem;
    font-weight: 700;
}

.roles-list {
    display: grid;
    gap: 1rem;
}

.roles-card {
    overflow: hidden;
    border: 1px solid #dfe7f2;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(24, 52, 91, .045);
}

.roles-card-heading {
    min-height: 78px;
    padding: .95rem 1.15rem;
    border-bottom: 1px solid #e9eef6;
    background: linear-gradient(110deg, #fff 0%, #f9fbff 100%);
}

.roles-card-identity {
    justify-content: flex-start;
}

.roles-card-mark {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid #d9e6fb;
    border-radius: 12px;
    background: #eef4ff;
    color: #285ed0;
    font-size: 1.1rem;
}

.roles-card-identity h3 {
    margin: 0;
    color: #1b2d49;
    font-size: 1rem;
    font-weight: 700;
}

.roles-card-identity div > span {
    display: inline-block;
    margin-top: .18rem;
    color: #8694a9;
    font-size: .74rem;
}

.roles-card-meta {
    justify-content: flex-end;
}

.roles-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .32rem .58rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.roles-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.roles-status.is-active {
    background: #e9f7ef;
    color: #228254;
}

.roles-status.is-inactive {
    background: #f0f2f5;
    color: #778397;
}

.roles-assignment-count {
    color: #78879b;
    font-size: .76rem;
}

.roles-assignment-count strong {
    color: #344966;
}

.roles-permission-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    padding: 1rem 1.15rem;
}

.roles-permission-group {
    min-width: 0;
    padding: .8rem;
    border: 1px solid #e8edf5;
    border-radius: 11px;
    background: #fcfdff;
}

.roles-permission-group-heading {
    min-height: 25px;
    padding-bottom: .5rem;
    border-bottom: 1px solid #edf1f6;
}

.roles-permission-group-heading h4 {
    overflow: hidden;
    margin: 0;
    color: #344966;
    font-size: .78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roles-select-group {
    padding: 0;
    border: 0;
    background: transparent;
    color: #285ed0;
    font-size: .69rem;
    font-weight: 600;
    white-space: nowrap;
}

.roles-select-group:hover {
    color: #173f9c;
    text-decoration: underline;
}

.roles-permission-items {
    display: grid;
    gap: .15rem;
    padding-top: .35rem;
}

.roles-permission-item {
    display: flex;
    min-height: 38px;
    align-items: flex-start;
    gap: .55rem;
    padding: .45rem .25rem;
    border-radius: 7px;
    cursor: pointer;
}

.roles-permission-item:hover {
    background: #f4f7fc;
}

.roles-permission-item .form-check-input {
    flex: 0 0 auto;
    margin-top: .18rem;
    cursor: pointer;
}

.roles-permission-copy {
    display: grid;
    gap: .12rem;
    min-width: 0;
}

.roles-permission-copy strong {
    color: #394d69;
    font-size: .76rem;
    font-weight: 600;
    line-height: 1.3;
}

.roles-permission-copy small {
    color: #8794a8;
    font-size: .68rem;
    line-height: 1.35;
}

.roles-card-footer {
    min-height: 62px;
    padding: .7rem 1.15rem;
    border-top: 1px solid #e9eef6;
    background: #fafbfd;
}

.roles-card-footer > span {
    color: #78879b;
    font-size: .73rem;
}

.roles-card-footer > span i {
    margin-right: .25rem;
    color: #468369;
}

.roles-card-footer .btn {
    min-width: 132px;
    font-size: .8rem;
    font-weight: 600;
}

.roles-empty-state {
    padding: 3.5rem 1rem;
    border: 1px dashed #ccd8e8;
    border-radius: 15px;
    background: #fff;
    text-align: center;
}

.roles-empty-state > span {
    display: grid;
    width: 54px;
    height: 54px;
    margin: 0 auto .9rem;
    place-items: center;
    border-radius: 16px;
    background: #eef4ff;
    color: #285ed0;
    font-size: 1.4rem;
}

.roles-empty-state h3 {
    margin: 0;
    color: #263b59;
    font-size: 1rem;
    font-weight: 700;
}

.roles-empty-state p {
    margin: .4rem 0 0;
    color: #78879b;
    font-size: .82rem;
}

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

@media (max-width: 767px) {
    .roles-page {
        padding: 1.1rem .85rem 2rem;
    }

    .roles-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .roles-heading-note {
        max-width: none;
    }

    .roles-overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }

    .roles-overview-card {
        min-height: 76px;
        gap: .55rem;
        padding: .75rem;
    }

    .roles-overview-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .roles-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .roles-card-meta {
        width: 100%;
        justify-content: space-between;
    }

    .roles-permission-groups {
        grid-template-columns: 1fr;
        padding: .8rem;
    }

    .roles-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .roles-card-footer .btn {
        width: 100%;
    }
}
