
#tablePrintArea {
    display: none;
}

.admin-table-toolbar {
    background: #fff;
}.page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.page-loader[hidden] {
    display: none;
}

.page-loader.is-visible {
    opacity: 1;
    visibility: visible;
}

.page-loader-card {
    min-width: 190px;
    padding: 1.4rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1rem 3rem rgba(15, 23, 42, 0.24);
    text-align: center;
}

.page-loader-spinner {
    width: 2.75rem;
    height: 2.75rem;
    margin: 0 auto 0.8rem;
    border: 4px solid #dbeafe;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: page-loader-spin 0.75s linear infinite;
}

.page-loader-title {
    color: #0f172a;
    font-weight: 700;
}

.page-loader-text {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.85rem;
}

@keyframes page-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .page-loader-spinner { animation-duration: 1.5s; }
}

.global-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.42rem 0.7rem;
    border: 0;
    border-radius: 0.4rem;
    color: #fff;
    background: #212529;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.global-back-button:hover {
    background: #0d6efd;
    transform: none;
    box-shadow: none;
}

.page-back-row {
    margin-bottom: 0.75rem;
}

.global-back-button:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.35);
    outline-offset: 3px;
}

.global-back-button i {
    font-size: 0.85rem;
}

body {
    min-height: 100vh;
}

.dashboard-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    min-height: 100vh;
    flex: 0 0 280px;
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 1040;
}

.sidebar-close,
.mobile-topbar,
.sidebar-backdrop {
    display: none;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 1010;
    min-height: 64px;
    padding: 0.7rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.sidebar-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
}

.sidebar-brand-title {
    font-weight: 700;
    line-height: 1.1;
}

.sidebar-brand-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    line-height: 1.2;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link i {
    width: 1.1rem;
    text-align: center;
    font-size: 1rem;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}


.sidebar .project-menu-toggle {
    background: transparent;
}

.sidebar .project-menu-chevron {
    transition: transform 0.2s ease;
}

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

.sidebar .project-submenu {
    margin-left: 0.65rem;
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar .project-submenu .nav-link {
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
}
.dashboard-main {
    flex: 1;
    min-width: 0;
}

.dashboard-content {
    padding: 1.5rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.login-logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
}

.login-title {
    color: #16213d;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.login-caption {
    color: #53606f;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
}

.department-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 1rem;
    color: #16213d;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.05);
}

.department-card:hover,
.department-card.active {
    color: #0d6efd;
    border-color: #0d6efd;
}

.department-card span {
    font-weight: 700;
}

.stat-box {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.06);
}

.profile-shell {
    max-width: 1100px;
    margin: 0 auto;
}

.profile-passport {
    width: 95px;
    height: 115px;
    border-radius: 8px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.12);
}

.profile-passport-placeholder {
    display: grid;
    place-items: center;
    background: #e8eef8;
    color: #1f2a44;
    font-size: 2rem;
    font-weight: 700;
}

.profile-detail {
    min-height: 86px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: #fff;
}

.profile-detail-label {
    color: #6c757d;
    font-size: 0.82rem;
    margin-bottom: 0.35rem;
}

.profile-detail-value {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.allocation-scroll-card {
    overflow-x: auto;
}

.allocation-wide-select {
    min-width: 760px;
}

.print-header,
.print-signature {
    display: none;
}

.signature-line {
    width: 260px;
    border-top: 1px solid #111;
    margin-bottom: 0.5rem;
}

@media (max-width: 991.98px) {
    .admin-topbar {
        display: none;
    }

    .dashboard-shell {
        display: block;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(82vw, 300px);
        min-height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        overflow-y: auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-close {
        display: block;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        z-index: 1030;
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 1020;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 56px;
        padding: 0.75rem 1rem;
    }

    .mobile-topbar-title {
        min-width: 0;
        flex: 1;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .card-header {
        padding: 0.8rem 1rem;
    }

    .table {
        min-width: 720px;
    }

    .modal-dialog {
        margin: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .dashboard-content {
        padding: 0.75rem;
    }

    .global-back-button { padding: 0.38rem 0.62rem; }

    h2,
    .h4 {
        font-size: 1.2rem;
    }

    .profile-passport {
        width: 82px;
        height: 100px;
    }
}

@media print {
    body.table-export-mode > *:not(#tablePrintArea) {
        display: none !important;
    }

    body.table-export-mode #tablePrintArea {
        display: block !important;
        padding: 12mm;
        color: #111;
        background: #fff;
    }

    body.table-export-mode #tablePrintArea .table-print-heading {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #111;
    }

    body.table-export-mode #tablePrintArea table {
        width: 100% !important;
        border-collapse: collapse;
    }

    body.table-export-mode #tablePrintArea th,
    body.table-export-mode #tablePrintArea td {
        border: 1px solid #bbb;
        padding: 0.35rem;
        vertical-align: top;
    }

    .sidebar,
    .mobile-topbar,
    .no-print,
    .sidebar-backdrop {
        display: none !important;
    }

    body,
    .dashboard-main,
    .dashboard-content {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .dashboard-shell {
        display: block;
        min-height: auto;
    }

    .print-header,
    .print-signature {
        display: block;
    }

    .card {
        border: 0 !important;
        box-shadow: none !important;
    }

    .table {
        min-width: 0;
        font-size: 0.82rem;
    }
}

.news-attention-button {
    animation: newsAttentionBlink 1s ease-in-out infinite;
    box-shadow: 0 0 0 rgba(255, 193, 7, 0.7);
}

@keyframes newsAttentionBlink {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.75); }
    50% { opacity: 0.45; transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .news-attention-button { animation: none; }
}

/* Institutional home page */
.portal-home {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3.5rem 0 2rem;
    color: #172033;
    background: linear-gradient(135deg, rgba(248,250,252,.97), rgba(226,237,248,.93)), radial-gradient(circle at top left, #fff, #dce9f5);
}
.portal-home::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .24;
    background-image: linear-gradient(rgba(23,54,93,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(23,54,93,.08) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.portal-home-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.portal-home-orb-one { width: 320px; height: 320px; top: -130px; right: -80px; background: rgba(47,117,181,.17); }
.portal-home-orb-two { width: 230px; height: 230px; bottom: -90px; left: -70px; background: rgba(21,128,61,.12); }
.portal-home-container { position: relative; z-index: 1; }
.portal-home-card {
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 1.5rem;
    background: rgba(255,255,255,.93);
    box-shadow: 0 1.75rem 4.5rem rgba(23,54,93,.18);
    backdrop-filter: blur(14px);
}
.portal-home-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 520px;
    padding: 3rem 2.2rem;
    text-align: center;
    color: #fff;
    background: linear-gradient(155deg, #0c2f57 0%, #164f82 58%, #176b57 130%);
}
.portal-home-brand-panel::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    border: 34px solid rgba(255,255,255,.05);
    border-radius: 50%;
}
.portal-home-logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 172px;
    height: 172px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,.98);
    box-shadow: 0 1rem 2.5rem rgba(0,0,0,.2);
}
.portal-home-logo-ring { position: absolute; inset: -10px; border: 1px solid rgba(255,255,255,.32); border-radius: 50%; }
.portal-home-logo { width: 126px; height: 126px; object-fit: contain; }
.portal-home-faculty { position: relative; z-index: 1; font-size: .82rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.portal-home-divider { position: relative; z-index: 1; width: 54px; height: 3px; margin: 1rem 0; border-radius: 999px; background: #7dd3a8; }
.portal-home-brand-note { position: relative; z-index: 1; max-width: 260px; color: rgba(255,255,255,.76); font-size: .92rem; line-height: 1.65; }
.portal-home-content { display: flex; flex-direction: column; justify-content: center; padding: 4rem 4.25rem; }
.portal-home-eyebrow {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .45rem;
    margin-bottom: 1.35rem;
    padding: .45rem .8rem;
    border-radius: 999px;
    color: #164f82;
    background: #e8f1fa;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.portal-home-university { margin-bottom: .4rem; color: #0c2f57; font-size: clamp(2rem,4vw,3.45rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; text-transform: uppercase; }
.portal-home-department { margin-bottom: 1.8rem; color: #176b57; font-size: clamp(1.05rem,2vw,1.35rem); font-weight: 750; letter-spacing: .025em; text-transform: uppercase; }
.portal-home-system-title { max-width: 650px; padding-left: 1.1rem; border-left: 4px solid #2f75b5; }
.portal-home-system-title span, .portal-home-system-title strong { display: block; }
.portal-home-system-title span { margin-bottom: .35rem; color: #172033; font-size: clamp(1.2rem,2.4vw,1.72rem); font-weight: 800; line-height: 1.2; }
.portal-home-system-title strong { color: #627086; font-size: 1rem; font-weight: 600; line-height: 1.55; }
.portal-home-actions { margin-top: 2rem; }
.portal-home-login-btn {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: .82rem 1.2rem;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #164f82, #0c2f57);
    box-shadow: 0 .8rem 1.8rem rgba(12,47,87,.24);
    font-weight: 750;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.portal-home-login-btn:hover, .portal-home-login-btn:focus { color: #fff; background: linear-gradient(135deg,#176b57,#115242); transform: translateY(-2px); box-shadow: 0 1rem 2rem rgba(17,82,66,.24); }
.portal-home-login-btn .bi-arrow-right { transition: transform .2s ease; }
.portal-home-login-btn:hover .bi-arrow-right { transform: translateX(3px); }
.portal-home-features { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-top: 2rem; color: #637083; font-size: .85rem; font-weight: 700; }
.portal-home-features span { display: inline-flex; align-items: center; gap: .38rem; }
.portal-home-features i { color: #176b57; }
.portal-home-footer { margin-top: 1.25rem; text-align: center; color: #64748b; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 991.98px) {
    .portal-home { padding: 1.5rem 0; }
    .portal-home-card { max-width: 720px; }
    .portal-home-brand-panel { min-height: auto; padding: 2.3rem 1.5rem; }
    .portal-home-logo-wrap { width: 132px; height: 132px; margin-bottom: 1.15rem; }
    .portal-home-logo { width: 98px; height: 98px; }
    .portal-home-brand-note { display: none; }
    .portal-home-divider { margin-bottom: 0; }
    .portal-home-content { padding: 2.7rem 2.4rem 3rem; text-align: center; }
    .portal-home-eyebrow { align-self: center; }
    .portal-home-system-title { margin: 0 auto; padding: 1rem 0 0; border-top: 3px solid #2f75b5; border-left: 0; }
    .portal-home-features { justify-content: center; }
}
@media (max-width: 575.98px) {
    .portal-home { align-items: flex-start; padding: 0; background: #f4f7fb; }
    .portal-home-card { border: 0; border-radius: 0; box-shadow: none; }
    .portal-home-brand-panel { padding: 1.6rem 1rem; }
    .portal-home-logo-wrap { width: 104px; height: 104px; }
    .portal-home-logo { width: 76px; height: 76px; }
    .portal-home-logo-ring { inset: -6px; }
    .portal-home-content { padding: 2.2rem 1.25rem 2.6rem; }
    .portal-home-eyebrow { font-size: .68rem; }
    .portal-home-university { font-size: 1.9rem; }
    .portal-home-department { font-size: .95rem; line-height: 1.4; }
    .portal-home-actions, .portal-home-login-btn { width: 100%; justify-content: center; }
    .portal-home-footer { padding: 0 1rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .portal-home-login-btn, .portal-home-login-btn .bi-arrow-right { transition: none; }
}
