/* ================================================================
   UPPM PAGE PREMIUM — final component layer
   Loaded from footer so page-inline CSS cannot defeat theme tokens.
   It intentionally does not redefine the page/navy background.
   ================================================================ */

@keyframes uppmPageSettle {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes uppmHeaderSettle {
    from { opacity: 0; transform: translateY(-10px) scale(.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Public landing CTA: preserve readable text on the theme-aware accent button. */
body.dark-mode.guest .p-btn-primary,
html[data-theme="dark"] body.guest .p-btn-primary {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.guest .p-cta-band .p-btn-primary,
html[data-theme="dark"] body.guest .p-cta-band .p-btn-primary {
    color: var(--p-cta-btn-text, #fff) !important;
    -webkit-text-fill-color: var(--p-cta-btn-text, #fff) !important;
}

/* One width system: the header already supplies the outer .container. */
body.has-sidebar .app-content > .container {
    width: 100% !important;
    max-width: 1600px !important;
    margin-inline: auto !important;
    padding-inline: clamp(16px, 2.25vw, 32px) !important;
}

body.has-sidebar .app-content > .container > :is(.container, .container-fluid) {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

body.has-sidebar .premium-page-shell {
    width: 100% !important;
    max-width: none !important;
}

/* Consistent component geometry without replacing authored backgrounds. */
body.has-sidebar .app-content :is(
    .card,
    .panel,
    .content-card,
    .table-card,
    .filter-card,
    .form-card,
    .detail-card,
    .sidebar-card,
    .assessment-card,
    .modal-content
) {
    border-radius: var(--radius-xl, 20px) !important;
    border-color: var(--border-color, #e2e8f0) !important;
    box-shadow: var(--shadow-sm, 0 8px 24px rgba(15, 23, 42, .07));
}

body.has-sidebar .app-content :is(
    .page-header,
    .header-container,
    .header-section,
    .dashboard-header,
    .hero-section,
    [class*="page-header"]
) {
    animation: uppmHeaderSettle .5s cubic-bezier(.2, .85, .25, 1.08) both;
}

body.has-sidebar .app-content .premium-enter {
    animation: uppmPageSettle .44s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--uppm-enter-delay, 0ms);
}

/* Buttons keep their semantic colors, but share size, radius and feedback. */
body.has-sidebar .app-content :is(
    .btn,
    button,
    [role="button"],
    input[type="submit"],
    input[type="button"]
) {
    border-radius: var(--radius-md, 12px);
    transition: transform .16s ease, box-shadow .2s ease, filter .2s ease, background-color .2s ease !important;
    -webkit-tap-highlight-color: transparent;
}

body.has-sidebar .app-content :is(
    .btn,
    button,
    [role="button"],
    input[type="submit"],
    input[type="button"]
):active {
    transform: scale(.97);
}

body.has-sidebar .app-content :is(.btn, button):focus-visible,
body.has-sidebar .app-content :is(.form-control, .form-select, input, textarea, select):focus-visible {
    outline: 0 !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .16) !important;
}

/* Form surfaces and readable placeholders in both themes. */
body.has-sidebar .app-content :is(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    border-radius: var(--radius-md, 12px);
    border-color: var(--border-color, #cbd5e1);
    color: var(--text-primary, #1e293b);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.has-sidebar .app-content :is(input, textarea)::placeholder {
    color: var(--text-muted, var(--text-secondary, #64748b)) !important;
    opacity: .82;
}

/* Tables remain complete; wide datasets receive smooth horizontal access. */
body.has-sidebar .app-content .premium-table-scroll,
body.has-sidebar .app-content .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    border-radius: var(--radius-lg, 16px);
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color, #cbd5e1) transparent;
    -webkit-overflow-scrolling: touch;
}

body.has-sidebar .app-content .premium-data-table {
    width: 100% !important;
    color: var(--text-primary, #1e293b);
    border-color: var(--border-color, #e2e8f0);
}

body.has-sidebar .app-content .premium-table-self-scroll {
    display: table;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.has-sidebar .app-content .premium-data-table :is(th, td) {
    vertical-align: middle;
    border-color: var(--border-color, #e2e8f0) !important;
}

body.has-sidebar .app-content .premium-data-table thead th {
    color: var(--text-secondary, #64748b);
    white-space: nowrap;
}

body.has-sidebar .app-content .premium-data-table tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}

/* Dark mode: target surfaces and typography, never the authored page backdrop. */
body.dark-mode.has-sidebar .app-content :is(
    .card,
    .panel,
    .content-card,
    .table-card,
    .filter-card,
    .form-card,
    .detail-card,
    .sidebar-card,
    .assessment-card,
    .modal-content,
    .dropdown-menu,
    .list-group-item,
    .accordion-item,
    .offcanvas
) {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.has-sidebar .app-content :is([class$="-card"], [class*="-card "]) {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.has-sidebar .app-content :is(
    .card-header,
    .card-footer,
    .modal-header,
    .modal-footer,
    .accordion-header,
    .accordion-button,
    .table thead th,
    .table tfoot td
) {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.has-sidebar .app-content :is(.table, .premium-data-table) :is(tbody, tr, td) {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.has-sidebar .app-content :is(.table, .premium-data-table) tbody td {
    background-color: var(--bg-card) !important;
}

body.dark-mode.has-sidebar .app-content :is(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.has-sidebar .app-content :is(
    h1, h2, h3, h4, h5, h6,
    p, label, legend,
    .text-dark, .text-body,
    .form-label, .form-label-bold,
    .dropdown-item, .list-group-item,
    td, th
) {
    color: var(--text-primary) !important;
}

body.dark-mode.has-sidebar .app-content :is(
    .text-muted,
    .text-secondary,
    small,
    .form-text,
    .help-text,
    .meta-text,
    .dataTables_info,
    .dataTables_empty
) {
    color: var(--text-secondary) !important;
}

body.dark-mode.has-sidebar .app-content [style*="color: #1"],
body.dark-mode.has-sidebar .app-content [style*="color:#1"],
body.dark-mode.has-sidebar .app-content [style*="color: #2"],
body.dark-mode.has-sidebar .app-content [style*="color:#2"],
body.dark-mode.has-sidebar .app-content [style*="color: black"],
body.dark-mode.has-sidebar .app-content [style*="color:black"] {
    color: var(--text-primary) !important;
}

body.dark-mode.has-sidebar .app-content :is(.pagination .page-link, .dataTables_paginate .paginate_button) {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.has-sidebar .app-content :is(.pagination .active .page-link, .dataTables_paginate .paginate_button.current) {
    background: var(--primary-color, #2563eb) !important;
    color: #fff !important;
}

body.dark-mode.has-sidebar .app-content :is(
    .btn-primary,
    .btn-success,
    .btn-danger,
    [class*="btn-submit"],
    [class*="btn-download"],
    [class*="btn-approve"],
    [class*="btn-solid"]
) {
    color: #fff !important;
}

body.dark-mode.has-sidebar .app-content :is(
    [class*="btn-"]:not([class*="btn-outline"]):not(.btn-warning),
    [class*="badge"],
    [class*="status-"],
    [class*="avatar"],
    [class*="marker"],
    [class*="pill-"]
) {
    color: var(--text-primary) !important;
}

/* Mobile app rhythm and safe-area. */
@media (max-width: 767.98px) {
    body.has-sidebar .app-content > .container {
        max-width: none !important;
        padding: 12px 12px calc(88px + env(safe-area-inset-bottom)) !important;
    }

    body.has-sidebar .app-content > .container > :is(.container, .container-fluid) {
        padding: 0 !important;
    }

    /* Auto-injected legacy rules wrapped every .d-flex.gap-3, including
       vertical stacks. A wrapped column expands to its widest child. */
    body.has-sidebar .app-content .d-flex.flex-column {
        flex-wrap: nowrap !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.has-sidebar .app-content .d-flex.flex-column > * {
        min-width: 0;
        max-width: 100%;
    }

    body.has-sidebar .app-content :is(
        .page-header,
        .header-container,
        .header-section,
        .dashboard-header,
        [class*="page-header"]
    ) {
        margin-bottom: 16px !important;
        border-radius: var(--radius-xl, 20px) !important;
    }

    body.has-sidebar .app-content :is(.card, .panel, .content-card, .table-card, .filter-card, .form-card, .detail-card) {
        border-radius: var(--radius-lg, 16px) !important;
    }

    body.has-sidebar .app-content .premium-snap-row {
        display: flex !important;
        grid-template-columns: none !important;
        gap: 12px !important;
        margin-inline: -12px !important;
        padding: 2px 12px 12px !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    body.has-sidebar .app-content .premium-snap-row::-webkit-scrollbar { display: none; }

    body.has-sidebar .app-content .premium-snap-row > * {
        flex: 0 0 min(78vw, 286px) !important;
        width: min(78vw, 286px) !important;
        max-width: min(78vw, 286px) !important;
        scroll-snap-align: start;
    }

    body.has-sidebar .app-content .premium-action-rail,
    body.has-sidebar .app-content .premium-scroll-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        max-width: 100% !important;
        padding-bottom: 6px;
        overflow-x: auto !important;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    body.has-sidebar .app-content .premium-action-rail::-webkit-scrollbar,
    body.has-sidebar .app-content .premium-scroll-tabs::-webkit-scrollbar { display: none; }

    body.has-sidebar .app-content .premium-action-rail > *,
    body.has-sidebar .app-content .premium-scroll-tabs > * {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }

    body.has-sidebar .app-content :is(.form-control, .form-select, input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
        min-height: 44px;
        font-size: 16px !important;
    }

    body.has-sidebar .app-content :is(.btn, button, input[type="submit"], input[type="button"]) {
        min-height: 42px;
    }

    body.has-sidebar .app-content .premium-table-scroll,
    body.has-sidebar .app-content .table-responsive {
        margin-inline: 0 !important;
        scroll-snap-type: x proximity;
    }

    body.has-sidebar .app-content .premium-data-table {
        min-width: max(680px, 100%) !important;
    }

    body.has-sidebar .app-content .premium-data-table :is(th, td) {
        padding: 11px 12px !important;
        white-space: normal;
    }

    body.has-sidebar .app-content .premium-card-table-wrap {
        overflow: visible !important;
        border: 0 !important;
        background: transparent !important;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards,
    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        background: transparent !important;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 12px !important;
        padding: 8px 14px !important;
        overflow: hidden;
        background: var(--bg-card, #fff) !important;
        border: 1px solid var(--border-color, #e2e8f0) !important;
        border-radius: var(--radius-lg, 16px) !important;
        box-shadow: var(--shadow-sm, 0 8px 24px rgba(15, 23, 42, .07));
        scroll-snap-align: start;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody td {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 14px !important;
        width: 100% !important;
        min-width: 0 !important;
        padding: 10px 0 !important;
        text-align: right !important;
        white-space: normal !important;
        word-break: break-word;
        background: transparent !important;
        border: 0 !important;
        border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody td:last-child {
        border-bottom: 0 !important;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody td::before {
        content: attr(data-label);
        flex: 0 0 min(34%, 130px);
        color: var(--text-secondary, #64748b);
        font-size: 10px;
        font-weight: 800;
        line-height: 1.3;
        letter-spacing: .045em;
        text-align: left;
        text-transform: uppercase;
    }

    body.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody td > :is(.btn-group, .d-flex) {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    body.dark-mode.has-sidebar .app-content .premium-data-table.premium-mobile-cards tbody tr {
        background: var(--bg-card) !important;
        border-color: var(--border-color) !important;
    }

    body.has-sidebar .app-content :is(.modal-dialog, .offcanvas) {
        max-width: calc(100vw - 16px) !important;
        margin: 8px !important;
    }

    body.has-sidebar .app-content .modal-content {
        max-height: calc(100dvh - 16px);
        border-radius: var(--radius-xl, 20px) !important;
    }

    body.has-sidebar .app-content .modal-body {
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.has-sidebar .app-content :is(.d-flex, .btn-group).premium-mobile-stack {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.has-sidebar .app-content *,
    body.has-sidebar .app-content *::before,
    body.has-sidebar .app-content *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================================================
   DOSEN WORKSPACE — shared finishing layer
   Keeps the existing navy/blue page backdrop and only repairs component
   contrast, responsive geometry, and interaction consistency.
   ======================================================================== */

/* The impersonation strip is also used while an admin visually audits the
   dosen workspace. Keep it compact and readable in both themes. */
.impersonation-banner {
    gap: 16px;
}

.impersonation-banner .impersonation-copy {
    min-width: 0;
    color: #422006 !important;
}

.impersonation-banner .impersonation-exit {
    color: #fff !important;
    white-space: nowrap;
}

body.dark-mode .impersonation-banner {
    background: linear-gradient(135deg, rgba(146, 64, 14, .94), rgba(120, 53, 15, .94)) !important;
    border-bottom-color: rgba(251, 191, 36, .58) !important;
}

body.dark-mode .impersonation-banner .impersonation-copy,
body.dark-mode .impersonation-banner .impersonation-copy :is(span, b) {
    color: #fff7d6 !important;
}

body.dark-mode .impersonation-banner .impersonation-exit {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #2b1900 !important;
}

/* Semantic badge colours must remain readable. The previous generic dark
   override made some text identical to its own coloured background. */
body.dark-mode.has-sidebar .app-content .badge.text-white,
body.dark-mode.has-sidebar .app-content :is(.badge.bg-primary, .badge.bg-success, .badge.bg-danger, .badge.bg-secondary, .badge.bg-dark) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.has-sidebar .app-content :is(.badge.bg-warning, .badge.bg-info) {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
}

body.dark-mode.has-sidebar .app-content .badge.bg-primary-subtle {
    background: rgba(59, 130, 246, .18) !important;
    color: #bfdbfe !important;
}

body.dark-mode.has-sidebar .app-content .badge.bg-success-subtle {
    background: rgba(16, 185, 129, .16) !important;
    color: #a7f3d0 !important;
}

body.dark-mode.has-sidebar .app-content .badge.bg-warning-subtle {
    background: rgba(245, 158, 11, .16) !important;
    color: #fde68a !important;
}

body.dark-mode.has-sidebar .app-content .badge.bg-danger-subtle {
    background: rgba(244, 63, 94, .16) !important;
    color: #fecdd3 !important;
}

body.dark-mode.has-sidebar .app-content .badge:is(.bg-light, .bg-white) {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-history_dosen .app-content .badge[style*="#eef2ff"] {
    background: rgba(99, 102, 241, .18) !important;
    color: #c7d2fe !important;
}

/* HAKI / ISBN form: fieldsets were still hard-coded #f8fafc. */
body.dark-mode.page-output .app-content .form-section {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-output .app-content .form-section :is(.form-label, .form-section-title, p, small) {
    color: var(--text-primary) !important;
}

body.dark-mode.page-output .app-content .form-section :is(.text-muted, small) {
    color: var(--text-secondary) !important;
}

/* History Proposal: upload CTAs and archive rows retained white inline
   backgrounds, making their white labels disappear. */
body.dark-mode.page-proposal_list .app-content .btn-upload-smart {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #fff !important;
    border-color: rgba(147, 197, 253, .32) !important;
}

body.dark-mode.page-proposal_list .app-content #arsipBerkasTable tbody tr {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* SINTA guide: dark cards were applied correctly, but their inline light-mode
   typography stayed navy and became almost invisible. */
body.dark-mode.page-sinta_sync #sinta-sync-page > .card:first-child {
    background: linear-gradient(145deg, rgba(14, 116, 144, .24), rgba(18, 27, 46, .76)) !important;
    border-color: rgba(125, 211, 252, .28) !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page > .card:first-child :is(
    div[style*="color: #0f172a"],
    div[style*="color: #1e293b"]
) {
    color: var(--text-primary) !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page > .card:first-child div[style*="color: #475569"] {
    color: var(--text-secondary) !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page > .card:first-child :is(
    h6[style*="color: #0369a1"],
    strong[style*="color: #0369a1"]
) {
    color: #7dd3fc !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page > .card:first-child div[style*="color: #78350f"] {
    color: #fde68a !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page .btn-pdf-premium {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page #btn-toggle-sync {
    background: var(--bg-secondary) !important;
    color: #bfdbfe !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-sinta_sync #sinta-sync-page #portfolioTabs .nav-link.active {
    background: rgba(59, 130, 246, .20) !important;
    color: #dbeafe !important;
}

@media (max-width: 767.98px) {
    .impersonation-banner {
        align-items: stretch !important;
        flex-wrap: wrap;
        padding: 11px 14px !important;
        gap: 10px !important;
    }

    .impersonation-banner .impersonation-copy {
        flex: 1 1 210px;
        align-items: flex-start !important;
        font-size: 11.5px;
        line-height: 1.45;
    }

    .impersonation-banner .impersonation-form {
        flex: 0 0 auto;
        align-self: center;
    }

    body:is(
        .page-proposal,
        .page-output,
        .page-publication,
        .page-incentive_list,
        .page-proposal_list,
        .page-history_dosen,
        .page-templates,
        .page-sinta_sync,
        .page-profile
    ) .app-content :is(.header-mewah-container, [class*="page-header"]) {
        padding: 16px !important;
        gap: 12px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.page-output .app-content .form-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 14px !important;
        border-radius: var(--radius-lg, 16px) !important;
    }

    body.page-sinta_sync #sinta-sync-page {
        padding-inline: 0 !important;
        overflow: hidden;
    }

    body.page-sinta_sync #sinta-sync-page #portfolioTabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    body.page-sinta_sync #sinta-sync-page #portfolioTabs::-webkit-scrollbar {
        display: none;
    }

    body.page-sinta_sync #sinta-sync-page #portfolioTabs .nav-item {
        flex: 0 0 auto !important;
        width: auto !important;
        scroll-snap-align: start;
    }

    body.page-sinta_sync #sinta-sync-page #portfolioTabs .nav-link {
        width: auto !important;
        min-width: max-content !important;
    }

    body.page-sinta_sync #sinta-sync-page .premium-data-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    body.page-sinta_sync #sinta-sync-page .premium-data-table tbody,
    body.page-sinta_sync #sinta-sync-page .premium-data-table tbody tr,
    body.page-sinta_sync #sinta-sync-page .premium-data-table tbody td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        text-align: left !important;
    }
}

/* ========================================================================
   Audit Logs — readable traceability cards and a theme-aware filter modal
   ======================================================================== */
body.page-audit_logs .audit-wrapper,
body.page-audit_logs .audit-wrapper * {
    min-width: 0;
}

body.page-audit_logs .audit-page-header,
body.page-audit_logs .audit-role-card,
body.page-audit_logs .audit-log-card {
    border-color: var(--border-color, #dbe3ef) !important;
    box-shadow: 0 14px 34px -24px rgba(15, 23, 42, .28) !important;
}

body.page-audit_logs .audit-page-header,
body.page-audit_logs .audit-role-card {
    background: var(--bg-card, #fff) !important;
}

body.page-audit_logs .audit-page-header :is(h2, .text-muted),
body.page-audit_logs .audit-role-card :is(h6, p) {
    color: var(--text-primary, #0f172a) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs .audit-page-header .text-muted,
body.page-audit_logs .audit-role-card :is(.text-muted, p) {
    color: var(--text-secondary, #64748b) !important;
}

body.page-audit_logs .audit-role-card a.btn-light {
    color: var(--text-primary, #334155) !important;
    background: var(--bg-secondary, #f8fafc) !important;
    border-color: var(--border-color, #cbd5e1) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs .audit-role-card a.btn-light:active {
    transform: scale(.98);
}

body.page-audit_logs .audit-today-insight {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin: -8px 0 20px;
    padding: 15px 17px;
    color: var(--text-primary, #0f172a);
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(14, 165, 233, .035) 56%, transparent),
        var(--bg-card, #fff);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: 17px;
    box-shadow: 0 14px 34px -28px rgba(37, 99, 235, .7);
}

body.page-audit_logs .audit-today-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-radius: 13px;
    box-shadow: 0 9px 22px -10px rgba(37, 99, 235, .75);
}

body.page-audit_logs .audit-today-copy {
    display: grid;
    gap: 2px;
}

body.page-audit_logs .audit-today-eyebrow {
    color: #2563eb;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.page-audit_logs .audit-today-copy strong {
    color: var(--text-primary, #0f172a) !important;
    font-size: 13.5px;
    line-height: 1.4;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs .audit-today-copy small {
    color: var(--text-secondary, #64748b) !important;
    font-size: 10.5px;
    line-height: 1.45;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs .audit-today-badge {
    display: inline-flex;
    min-width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    color: #1d4ed8;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(59, 130, 246, .2);
    border-radius: 14px;
    font-size: 17px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}

body.dark-mode.page-audit_logs .audit-today-insight {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(14, 165, 233, .08) 58%, transparent),
        #101b2f;
    border-color: rgba(96, 165, 250, .28);
}

body.dark-mode.page-audit_logs .audit-today-eyebrow {
    color: #7dd3fc;
}

body.dark-mode.page-audit_logs .audit-today-badge {
    color: #dbeafe;
    background: rgba(30, 64, 175, .28);
    border-color: rgba(96, 165, 250, .28);
}

body.page-audit_logs .audit-log-card {
    color: var(--text-primary, #0f172a);
    background: var(--bg-card, #fff) !important;
}

body.page-audit_logs .audit-log-card .table-toolbar {
    border-color: var(--border-color, #e2e8f0) !important;
}

body.page-audit_logs .audit-log-card .table-toolbar-title {
    color: var(--text-primary, #0f172a) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs .audit-log-card .audit-count-badge {
    color: var(--text-primary, #0f172a) !important;
    background: var(--bg-secondary, #f1f5f9) !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs #auditLogTable tbody td {
    color: var(--text-primary, #334155) !important;
    border-color: var(--border-color, #cbd5e1) !important;
}

body.page-audit_logs #auditLogTable :is(.actor-name, .desc-pill.pill-text, .desc-target .target-title) {
    color: var(--text-primary, #0f172a) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs #auditLogTable :is(.timestamp, .timestamp small, .desc-pill.pill-ip-text, .desc-target .target-meta) {
    color: var(--text-secondary, #64748b) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs #auditLogTable .desc-target {
    color: var(--text-primary, #334155) !important;
    background: var(--bg-secondary, #f8fafc) !important;
    border-color: var(--border-color, #e2e8f0) !important;
}

body.page-audit_logs #auditLogTable tbody tr.audit-row-hidden {
    display: none !important;
}

/* Progressive fallback: before the pagination script is ready, never expose
   hundreds of rows or cards in one long page. */
body.page-audit_logs #auditLogTable:not(.audit-pagination-ready) tbody tr.audit-log-row:nth-child(n + 11) {
    display: none !important;
}

body.page-audit_logs .audit-log-pagination[hidden] {
    display: none !important;
}

body.page-audit_logs .audit-log-pagination {
    display: grid;
    grid-template-columns: minmax(132px, 1fr) auto minmax(132px, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 13px;
    color: var(--text-primary, #0f172a);
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 17px;
    box-shadow: 0 14px 34px -27px rgba(15, 23, 42, .55);
}

body.page-audit_logs :is(.audit-page-nav, .audit-page-number) {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-primary, #334155);
    background: var(--bg-secondary, #f8fafc);
    border: 1px solid var(--border-color, #dbe3ef);
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

body.page-audit_logs .audit-page-nav:active,
body.page-audit_logs .audit-page-number:active {
    transform: scale(.96);
}

body.page-audit_logs .audit-page-nav:disabled {
    opacity: .42;
    cursor: not-allowed;
}

body.page-audit_logs .audit-page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.page-audit_logs .audit-page-number {
    width: 40px;
    padding: 0;
}

body.page-audit_logs .audit-page-number.active {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px -9px rgba(37, 99, 235, .85);
    -webkit-text-fill-color: #fff;
}

body.page-audit_logs .audit-page-ellipsis {
    color: var(--text-secondary, #64748b);
    font-weight: 900;
}

body.page-audit_logs .audit-page-summary {
    grid-column: 1 / -1;
    color: var(--text-secondary, #64748b);
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
}

body.dark-mode.page-audit_logs .audit-log-pagination {
    background: #101b2f;
    border-color: rgba(148, 163, 184, .22);
}

body.dark-mode.page-audit_logs :is(.audit-page-nav, .audit-page-number) {
    color: #e2e8f0;
    background: rgba(30, 41, 59, .82);
    border-color: rgba(148, 163, 184, .22);
}

body.dark-mode.page-audit_logs #auditLogTable tbody tr {
    background: #101b2f !important;
    border-color: rgba(148, 163, 184, .22) !important;
}

body.dark-mode.page-audit_logs #auditLogTable .actor-badge.role-admin {
    color: #fda4af !important;
    background: rgba(244, 63, 94, .14) !important;
    border-color: rgba(251, 113, 133, .28) !important;
}

body.dark-mode.page-audit_logs #auditLogTable .actor-badge.role-keuangan {
    color: #6ee7b7 !important;
    background: rgba(16, 185, 129, .14) !important;
    border-color: rgba(52, 211, 153, .28) !important;
}

body.dark-mode.page-audit_logs #auditLogTable .actor-badge.role-reviewer {
    color: #93c5fd !important;
    background: rgba(59, 130, 246, .15) !important;
    border-color: rgba(96, 165, 250, .3) !important;
}

body.dark-mode.page-audit_logs #auditLogTable .actor-badge.role-system {
    color: #cbd5e1 !important;
    background: rgba(148, 163, 184, .13) !important;
    border-color: rgba(148, 163, 184, .26) !important;
}

body.dark-mode.page-audit_logs #auditLogTable .action-badge.act-delete { color: #fda4af !important; background: rgba(244, 63, 94, .14) !important; }
body.dark-mode.page-audit_logs #auditLogTable .action-badge.act-approve { color: #6ee7b7 !important; background: rgba(16, 185, 129, .14) !important; }
body.dark-mode.page-audit_logs #auditLogTable .action-badge.act-assign { color: #93c5fd !important; background: rgba(59, 130, 246, .15) !important; }
body.dark-mode.page-audit_logs #auditLogTable .action-badge.act-bypass { color: #c4b5fd !important; background: rgba(139, 92, 246, .16) !important; }
body.dark-mode.page-audit_logs #auditLogTable .action-badge.act-edit { color: #fcd34d !important; background: rgba(245, 158, 11, .14) !important; }

body.dark-mode.page-audit_logs #auditLogTable .target-badge {
    color: #cbd5e1 !important;
    background: rgba(30, 41, 59, .82) !important;
    border-color: rgba(148, 163, 184, .22) !important;
}

body.dark-mode.page-audit_logs #auditLogTable .desc-target {
    color: #e2e8f0 !important;
    background: rgba(30, 64, 175, .15) !important;
    border-color: rgba(96, 165, 250, .24) !important;
}

body.page-audit_logs #auditFilterModal .modal-dialog {
    width: min(520px, calc(100vw - 24px));
    max-width: 520px !important;
    margin: 12px auto !important;
}

body.page-audit_logs #auditFilterModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2200 !important;
    width: 100% !important;
    height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    outline: 0;
}

/* Bootstrap's remote stylesheet can arrive late. Keep the dialog out of the
   page until Bootstrap explicitly marks it as open. */
body.page-audit_logs #auditFilterModal:not(.show) {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

body.page-audit_logs #auditFilterModal.show {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.page-audit_logs #auditFilterModal .modal-dialog {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

body.page-audit_logs #auditFilterModal .modal-content {
    pointer-events: auto;
}

body.page-audit_logs #auditFilterModal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.page-audit_logs #auditFilterModal .btn-close {
    display: inline-flex !important;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-primary, #0f172a) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 10px;
    opacity: 1 !important;
}

body.page-audit_logs #auditFilterModal .btn-close::before {
    content: "×";
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

body.page-audit_logs .audit-filter-fallback-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2190 !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    background: rgba(2, 6, 23, .72) !important;
    opacity: 1 !important;
}

body.page-audit_logs .modal-backdrop.show {
    z-index: 2190 !important;
}

body.page-audit_logs #auditFilterModal .modal-content {
    color: var(--text-primary, #0f172a) !important;
    background: var(--bg-card, #fff) !important;
    border: 1px solid var(--border-color, #dbe3ef) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 26px 70px -28px rgba(2, 6, 23, .65) !important;
}

body.page-audit_logs #auditFilterModal :is(.modal-header, .modal-body, .modal-footer) {
    color: var(--text-primary, #0f172a) !important;
    background: var(--bg-card, #fff) !important;
    border-color: var(--border-color, #e2e8f0) !important;
}

body.page-audit_logs #auditFilterModal :is(.modal-title, label) {
    color: var(--text-primary, #0f172a) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs #auditFilterModal :is(.form-control, .form-select) {
    color: var(--text-primary, #0f172a) !important;
    background-color: var(--bg-secondary, #f8fafc) !important;
    border-color: var(--border-color, #cbd5e1) !important;
    -webkit-text-fill-color: currentColor;
}

body.page-audit_logs #auditFilterModal :is(.form-control, .form-select):focus {
    background-color: var(--bg-card, #fff) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .16) !important;
}

body.page-audit_logs #auditFilterModal #auditSearchSuggestions {
    color: var(--text-primary, #0f172a) !important;
    background: var(--bg-card, #fff) !important;
    border-color: var(--border-color, #cbd5e1) !important;
}

body.page-audit_logs #auditFilterModal .audit-filter-actions {
    width: auto !important;
    margin: 0 !important;
    padding: 0 16px 16px !important;
}

body.page-audit_logs #auditFilterModal .audit-filter-actions .btn {
    min-height: 42px;
    margin: 0 !important;
    white-space: normal;
}

body.page-audit_logs #auditFilterModal .audit-modal-reset {
    color: var(--text-primary, #334155) !important;
    background: var(--bg-secondary, #f1f5f9) !important;
    border-color: var(--border-color, #cbd5e1) !important;
    -webkit-text-fill-color: currentColor;
}

body.dark-mode.page-audit_logs #auditFilterModal .btn-close {
    color: #f8fafc !important;
    filter: none !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-audit_logs #auditFilterModal .btn-close::before {
    content: "\00D7";
    color: #f8fafc !important;
    text-shadow: 0 1px 8px rgba(255, 255, 255, .28);
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-audit_logs .modal-backdrop.show {
    opacity: .72 !important;
}

@media (max-width: 767.98px) {
    body.page-audit_logs .container.py-4 {
        width: 100% !important;
        max-width: none !important;
        padding: 12px 10px 104px !important;
    }

    body.page-audit_logs .audit-page-header {
        align-items: flex-start !important;
        gap: 14px !important;
        margin: 4px 0 14px !important;
        padding: 16px !important;
        border-radius: 18px !important;
    }

    body.page-audit_logs .audit-page-header .header-info-wrapper,
    body.page-audit_logs .audit-page-header > .d-flex,
    body.page-audit_logs .audit-page-header form,
    body.page-audit_logs .audit-page-header button {
        width: 100%;
    }

    body.page-audit_logs .audit-today-insight {
        gap: 11px;
        margin: 0 0 14px;
        padding: 13px;
        border-radius: 16px;
    }

    body.page-audit_logs .audit-today-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    body.page-audit_logs .audit-today-copy strong {
        font-size: 12.5px;
    }

    body.page-audit_logs .audit-today-copy small {
        font-size: 9.5px;
    }

    body.page-audit_logs .audit-today-badge {
        min-width: 40px;
        height: 40px;
        padding: 0 9px;
        border-radius: 12px;
        font-size: 15px;
    }

    body.page-audit_logs .audit-page-header h2 {
        font-size: 1.28rem !important;
        line-height: 1.25;
    }

    body.page-audit_logs .audit-page-header button {
        min-height: 44px;
        justify-content: center;
    }

    body.page-audit_logs .audit-role-card {
        margin-bottom: 14px !important;
        border-radius: 18px !important;
    }

    body.page-audit_logs .audit-role-card .card-body {
        padding: 15px !important;
    }

    body.page-audit_logs .audit-role-grid,
    body.page-audit_logs .audit-role-columns {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100%;
    }

    body.page-audit_logs .audit-role-column {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
    }

    body.page-audit_logs .audit-role-card a.btn-light {
        width: 100% !important;
        max-width: none !important;
        min-height: 42px;
        padding: 8px 10px !important;
        line-height: 1.25;
        white-space: normal;
    }

    body.page-audit_logs .audit-actions-row,
    body.page-audit_logs .audit-actions,
    body.page-audit_logs .audit-filter-trigger {
        width: 100%;
    }

    body.page-audit_logs .audit-actions-row {
        margin-bottom: 14px !important;
        gap: 8px !important;
    }

    body.page-audit_logs .audit-actions {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    body.page-audit_logs .audit-filter-trigger,
    body.page-audit_logs #btnBulkDelete {
        min-height: 46px;
        justify-content: center;
        border-radius: 14px !important;
    }

    body.page-audit_logs .audit-log-card {
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.page-audit_logs .audit-log-card .table-toolbar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px !important;
        margin-bottom: 10px;
        padding: 13px 14px !important;
        background: var(--bg-card, #fff) !important;
        border: 1px solid var(--border-color, #e2e8f0) !important;
        border-radius: 16px;
        box-shadow: 0 10px 28px -22px rgba(15, 23, 42, .4);
    }

    body.page-audit_logs .audit-log-card .table-toolbar-title {
        font-size: 12.5px !important;
        line-height: 1.35;
    }

    body.page-audit_logs .audit-log-card .audit-count-badge {
        padding: 7px 9px !important;
        font-size: 9px !important;
        line-height: 1.2;
        white-space: nowrap;
    }

    body.page-audit_logs .audit-log-scroll {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    body.page-audit_logs #auditLogTable,
    body.page-audit_logs #auditLogTable tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    body.page-audit_logs #auditLogTable thead {
        display: none !important;
    }

    body.page-audit_logs #auditLogTable tbody tr.audit-log-row {
        position: relative !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 10px !important;
        padding: 42px 14px 14px !important;
        color: var(--text-primary, #0f172a) !important;
        background: var(--bg-card, #fff) !important;
        border: 1px solid var(--border-color, #dbe3ef) !important;
        border-radius: 17px !important;
        box-shadow: 0 12px 30px -24px rgba(15, 23, 42, .55) !important;
        overflow: hidden;
    }

    body.page-audit_logs #auditLogTable tbody tr.audit-log-row::before {
        content: "REKAMAN AKTIVITAS";
        position: absolute;
        top: 15px;
        left: 14px;
        color: #60a5fa;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .09em;
    }

    body.page-audit_logs #auditLogTable tbody tr.audit-log-row > td {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        color: var(--text-primary, #334155) !important;
        background: transparent !important;
        border: 0 !important;
        text-align: left !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    body.page-audit_logs #auditLogTable tbody tr.audit-log-row > td::before {
        content: attr(data-label) !important;
        display: block !important;
        margin: 0 0 4px !important;
        color: var(--text-secondary, #64748b) !important;
        font-size: 8.5px !important;
        font-weight: 900 !important;
        letter-spacing: .075em !important;
        line-height: 1.2;
        text-transform: uppercase !important;
    }

    body.page-audit_logs #auditLogTable .audit-select-cell {
        position: absolute !important;
        top: 12px;
        right: 13px;
        z-index: 2;
        display: flex !important;
        width: 26px !important;
        height: 26px;
        align-items: center;
        justify-content: center;
    }

    body.page-audit_logs #auditLogTable .audit-select-cell::before,
    body.page-audit_logs #auditLogTable .audit-control-cell::before {
        content: none !important;
        display: none !important;
    }

    body.page-audit_logs #auditLogTable .audit-select-cell input {
        width: 18px !important;
        height: 18px !important;
        margin: 0;
        accent-color: #3b82f6;
    }

    body.page-audit_logs #auditLogTable :is(.audit-time-cell, .audit-actor-cell, .audit-action-cell, .audit-type-cell) {
        padding: 10px !important;
        background: var(--bg-secondary, #f8fafc) !important;
        border: 1px solid var(--border-color, #e2e8f0) !important;
        border-radius: 12px;
    }

    body.page-audit_logs #auditLogTable :is(.audit-detail-cell, .audit-control-cell) {
        grid-column: 1 / -1;
    }

    body.page-audit_logs #auditLogTable .audit-detail-cell {
        padding-top: 2px !important;
    }

    body.page-audit_logs #auditLogTable .audit-control-cell {
        display: flex !important;
        justify-content: flex-end;
    }

    body.page-audit_logs #auditLogTable .audit-control-cell .btn-delete-single {
        display: inline-flex;
        width: 38px;
        height: 36px;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        border-radius: 11px !important;
    }

    body.page-audit_logs #auditLogTable :is(.actor-wrap, .desc-block, .desc-pills, .desc-target) {
        width: 100%;
        max-width: 100%;
    }

    body.page-audit_logs #auditLogTable .actor-name {
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    body.page-audit_logs #auditLogTable .desc-pills {
        align-items: flex-start !important;
        gap: 8px !important;
    }

    body.page-audit_logs #auditLogTable .desc-pill {
        max-width: 100%;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    body.page-audit_logs #auditLogTable .desc-pill.pill-text {
        width: 100%;
        font-size: 12.5px !important;
        line-height: 1.5;
    }

    body.page-audit_logs #auditLogTable .desc-divider {
        display: none;
    }

    body.page-audit_logs #auditLogTable :is(.geo-locked-wrapper, .geo-unlocked-wrapper) {
        max-width: 100%;
        flex-wrap: wrap;
    }

    body.page-audit_logs #auditLogTable .desc-target {
        padding: 10px 11px;
        overflow-wrap: anywhere;
    }

    body.page-audit_logs #auditLogTable tbody tr.audit-log-empty,
    body.page-audit_logs #auditLogTable tbody tr.audit-log-empty .audit-empty-cell {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }

    body.page-audit_logs .audit-log-pagination {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
        padding: 11px;
        border-radius: 16px;
    }

    body.page-audit_logs .audit-page-numbers {
        grid-column: 1 / -1;
        grid-row: 1;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    body.page-audit_logs .audit-page-numbers::-webkit-scrollbar {
        display: none;
    }

    body.page-audit_logs .audit-page-nav {
        width: 100%;
        min-height: 42px;
    }

    body.page-audit_logs .audit-page-number {
        flex: 0 0 38px;
        width: 38px;
        min-height: 38px;
    }

    body.page-audit_logs .audit-page-summary {
        font-size: 9.5px;
        line-height: 1.4;
    }

    body.page-audit_logs #auditFilterModal .modal-dialog {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px) !important;
        margin: 8px auto !important;
    }

    body.page-audit_logs #auditFilterModal .modal-content {
        max-height: calc(100dvh - 16px);
        border-radius: 18px !important;
    }

    body.page-audit_logs #auditFilterModal .modal-header {
        padding: 16px 16px 10px !important;
    }

    body.page-audit_logs #auditFilterModal .modal-title {
        max-width: calc(100% - 36px);
        font-size: 15px !important;
        line-height: 1.35;
    }

    body.page-audit_logs #auditFilterModal .modal-body {
        padding: 10px 16px 6px !important;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    body.page-audit_logs #auditFilterModal .modal-body .mb-3 {
        margin-bottom: 11px !important;
    }

    body.page-audit_logs #auditFilterModal :is(.form-control, .form-select) {
        width: 100% !important;
        height: 44px !important;
        font-size: 16px !important;
        border-radius: 11px !important;
    }

    body.page-audit_logs #auditFilterModal .audit-filter-actions {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        width: auto !important;
        padding: 8px 16px 16px !important;
    }

    body.page-audit_logs #auditFilterModal .audit-filter-actions .btn {
        display: inline-flex;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 10px !important;
        font-size: 12px !important;
        line-height: 1.25;
    }

    body.page-audit_logs #auditFilterModal .audit-modal-print {
        grid-column: 1 / -1;
    }
}

@media (max-width: 359.98px) {
    body.page-audit_logs .audit-role-column,
    body.page-audit_logs #auditLogTable tbody tr.audit-log-row,
    body.page-audit_logs #auditFilterModal .audit-filter-actions {
        grid-template-columns: 1fr;
    }

    body.page-audit_logs #auditLogTable :is(.audit-detail-cell, .audit-control-cell),
    body.page-audit_logs #auditFilterModal .audit-modal-print {
        grid-column: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-audit_logs .app-content *,
    body.page-audit_logs .modal * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Must stay after every mobile card rule: hidden pages cannot be revived by
   a later display:grid !important declaration. */
body.page-audit_logs #auditLogTable tbody tr.audit-log-row.audit-row-hidden,
body.page-audit_logs #auditLogTable tbody tr.audit-log-row[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Final dark-mode contrast guards
   Keep these selectors intentionally narrow so the established navy/blue
   surfaces and application theme tokens remain untouched.
   -------------------------------------------------------------------------- */
body.dark-mode.has-sidebar .topbar .topbar-logout,
body.dark-mode.has-sidebar .topbar .topbar-logout:visited,
body.dark-mode.has-sidebar .topbar .topbar-logout:hover,
body.dark-mode.has-sidebar .topbar .topbar-logout:focus-visible {
    color: #fff !important;
}

body.dark-mode.page-users .app-content a.text-success {
    color: #34d399 !important;
}

body.dark-mode.page-users .app-content .mobile-proposal-card-body a.text-success.fw-bold {
    color: #34d399 !important;
    -webkit-text-fill-color: #34d399 !important;
}

body.dark-mode.page-accreditation_audit .app-content .btn-outline-secondary.active,
body.dark-mode.page-accreditation_audit .app-content .btn-outline-secondary.text-white {
    color: #fff !important;
}

body.dark-mode.page-admin_sinta_sync .app-content [style*="background:#fafafa"],
body.dark-mode.page-admin_sinta_sync .app-content [style*="background: #fafafa"],
body.dark-mode.page-admin_sinta_sync .app-content [style*="background:#f0f4ff"],
body.dark-mode.page-admin_sinta_sync .app-content [style*="background: #f0f4ff"] {
    color: var(--text-primary) !important;
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

/* --------------------------------------------------------------------------
   Targeted mobile dark-mode recovery — proposal, outputs, publications,
   users, notification control center, and feedback list.
   -------------------------------------------------------------------------- */
body.dark-mode.page-proposal_list .app-content .btn-check-reviewer {
    color: #e0f2fe !important;
    background: linear-gradient(135deg, rgba(3, 105, 161, .72), rgba(14, 116, 144, .64)) !important;
    border-color: rgba(125, 211, 252, .58) !important;
    box-shadow: 0 8px 22px rgba(14, 165, 233, .2) !important;
    -webkit-text-fill-color: #e0f2fe !important;
}

body.dark-mode.page-proposal_list .app-content .btn-check-reviewer:hover,
body.dark-mode.page-proposal_list .app-content .btn-check-reviewer:focus-visible {
    color: #fff !important;
    background: linear-gradient(135deg, #0369a1, #0e7490) !important;
    border-color: #7dd3fc !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.page-proposal_list .app-content .mobile-proposal-badges .badge[style*="#d1fae5"] {
    color: #a7f3d0 !important;
    background: rgba(16, 185, 129, .2) !important;
    border: 1px solid rgba(52, 211, 153, .4) !important;
    -webkit-text-fill-color: #a7f3d0 !important;
}

body.dark-mode.page-proposal_list .app-content .mobile-proposal-badges .badge[style*="#e0f2fe"] {
    color: #bae6fd !important;
    background: rgba(14, 165, 233, .2) !important;
    border: 1px solid rgba(56, 189, 248, .42) !important;
    -webkit-text-fill-color: #bae6fd !important;
}

body.dark-mode.page-output .app-content .mobile-proposal-card-body > strong,
body.dark-mode.page-output .app-content .mobile-proposal-card-title,
body.dark-mode.page-publication .app-content .mobile-proposal-card-body > strong,
body.dark-mode.page-publication .app-content .mobile-proposal-card-title,
body.dark-mode.page-users .app-content .mobile-proposal-card-body > strong,
body.dark-mode.page-users .app-content .mobile-proposal-card-title {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

/* Desktop keeps the authored table rows instead of the mobile card clone.
   Their title elements carried light-theme ink through an inline/custom rule. */
body.dark-mode.page-output .app-content #outputTable tbody td.col-info > strong,
body.dark-mode.page-output .app-content #outputTable tbody td:nth-child(2) > strong,
body.dark-mode.page-publication .app-content #publicationTable tbody td.col-info > .fw-bold,
body.dark-mode.page-publication .app-content #publicationTable tbody td:nth-child(2) > .fw-bold {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

/* Desktop action columns — keep every label and icon distinguishable from
   the navy table surface without changing action semantics. */
body.dark-mode.page-output .app-content #outputTable .btn-action-group :is(.btn-view, .btn-review, .btn-delete, .btn-info) {
    min-height: 38px;
    padding: 9px 12px !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: none !important;
}

body.dark-mode.page-output .app-content #outputTable .btn-action-group .btn-view {
    background: rgba(14, 165, 233, .16) !important;
    color: #bae6fd !important;
    border-color: rgba(56, 189, 248, .42) !important;
}

body.dark-mode.page-output .app-content #outputTable .btn-action-group .btn-review {
    background: rgba(245, 158, 11, .17) !important;
    color: #fde68a !important;
    border-color: rgba(251, 191, 36, .44) !important;
}

body.dark-mode.page-output .app-content #outputTable .btn-action-group .btn-delete {
    background: rgba(244, 63, 94, .15) !important;
    color: #fecdd3 !important;
    border-color: rgba(251, 113, 133, .42) !important;
}

body.dark-mode.page-output .app-content #outputTable .btn-action-group .btn-info {
    background: rgba(16, 185, 129, .17) !important;
    color: #a7f3d0 !important;
    border-color: rgba(52, 211, 153, .42) !important;
}

body.dark-mode.page-output .app-content #outputTable .btn-action-group :is(.btn-view, .btn-review, .btn-delete, .btn-info) i {
    color: currentColor !important;
}

body.dark-mode.page-output .app-content #outputTable .btn-action-group :is(.btn-view, .btn-review, .btn-delete, .btn-info):hover {
    color: #fff !important;
    filter: brightness(1.18);
    transform: translateY(-1px);
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium {
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    box-shadow: 0 4px 12px rgba(2, 6, 23, .2) !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium[title="Buka File"] {
    background: #0369a1 !important;
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium[title="Review Admin"] {
    background: #a16207 !important;
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium[title="Hapus"] {
    background: #be123c !important;
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium:is(
    [title="Ajukan Dana Insentif"],
    [title="Cek Status Uang Insentif"]
) {
    background: #047857 !important;
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium i {
    color: currentColor !important;
    -webkit-text-fill-color: currentColor !important;
}

body.dark-mode.page-publication .app-content #publicationTable td.col-actions .btn-premium:hover {
    filter: brightness(1.16);
    transform: translateY(-1px) !important;
}

/* Publication DataTables desktop toolbar. A global full-width select rule
   pushed the page-length value below "Tampilkan" and made the search field
   blend into the dark table surface. */
@media (min-width: 768px) {
    body.page-publication .app-content #publicationTable_wrapper .dataTables_length,
    body.page-publication .app-content #publicationTable_wrapper .dataTables_filter {
        width: auto !important;
        min-height: 40px;
        margin: 0 0 16px !important;
    }

    body.page-publication .app-content #publicationTable_wrapper .dataTables_length label,
    body.page-publication .app-content #publicationTable_wrapper .dataTables_filter label {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px;
        width: auto !important;
        min-height: 40px;
        margin: 0 !important;
        white-space: nowrap;
        line-height: 1.2;
    }

    body.page-publication .app-content #publicationTable_wrapper .dataTables_length select {
        flex: 0 0 76px !important;
        width: 76px !important;
        min-width: 76px !important;
        max-width: 76px !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 6px 28px 6px 10px !important;
    }

    body.page-publication .app-content #publicationTable_wrapper .dataTables_filter input[type="search"] {
        flex: 0 0 clamp(210px, 20vw, 280px) !important;
        width: clamp(210px, 20vw, 280px) !important;
        min-width: 210px !important;
        max-width: 280px !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 7px 12px !important;
    }
}

body.dark-mode.page-publication .app-content #publicationTable_wrapper :is(
    .dataTables_length label,
    .dataTables_filter label
) {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

body.dark-mode.page-publication .app-content #publicationTable_wrapper :is(
    .dataTables_length select,
    .dataTables_filter input[type="search"]
) {
    background: rgba(30, 41, 59, .96) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(96, 165, 250, .42) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 0 0 1px rgba(15, 23, 42, .2) !important;
    -webkit-text-fill-color: #f8fafc !important;
    color-scheme: dark;
}

body.dark-mode.page-publication .app-content #publicationTable_wrapper .dataTables_length select option {
    background: #1e293b;
    color: #f8fafc;
}

body.dark-mode.page-publication .app-content #publicationTable_wrapper .dataTables_filter input[type="search"]:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .18) !important;
}

body.dark-mode.page-publication .app-content #target-tabel-publikasi .table-responsive {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-publication .app-content .table-responsive:has(> #publicationTable_wrapper) {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-notification_center .app-content .ios-header {
    color: #f8fafc !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 64, 175, .58)) !important;
    border-color: rgba(96, 165, 250, .38) !important;
    box-shadow: 0 18px 42px rgba(2, 6, 23, .28) !important;
}

body.dark-mode.page-notification_center .app-content .ios-header h1,
body.dark-mode.page-notification_center .app-content .ios-header h1.text-dark {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-notification_center .app-content .ios-header .text-muted {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-notification_center .app-content .ios-header .badge.bg-primary {
    color: #bfdbfe !important;
    background: rgba(59, 130, 246, .2) !important;
    border: 1px solid rgba(96, 165, 250, .35) !important;
    -webkit-text-fill-color: #bfdbfe !important;
}

body.dark-mode.page-notification_center .app-content .card-ios,
body.dark-mode.page-notification_center .app-content .card {
    color: var(--text-primary) !important;
    background: rgba(18, 27, 46, .88) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-notification_center .app-content .card-ios-header,
body.dark-mode.page-notification_center .app-content .card-header {
    color: var(--text-primary) !important;
    background: rgba(15, 23, 42, .72) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode.page-feedback_list .app-content [style*="color: #003366"],
body.dark-mode.page-feedback_list .app-content [style*="color:#003366"] {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

body.dark-mode.page-feedback_list .app-content .text-primary-emphasis {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

/* Laporan mobile cards ----------------------------------------------------- */
body.dark-mode.page-laporan .app-content .mobile-proposal-card-body > strong,
body.dark-mode.page-laporan .app-content .mobile-proposal-card-body > .fw-bold {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-laporan .app-content .mobile-proposal-card-body [style*="color: #475569"],
body.dark-mode.page-laporan .app-content .mobile-proposal-card-body [style*="color:#475569"] {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

body.dark-mode.page-laporan .app-content .mobile-proposal-card-body [style*="color: #64748b"],
body.dark-mode.page-laporan .app-content .mobile-proposal-card-body [style*="color:#64748b"],
body.dark-mode.page-laporan .app-content .mobile-proposal-card-body [style*="color: #94a3b8"],
body.dark-mode.page-laporan .app-content .mobile-proposal-card-body [style*="color:#94a3b8"] {
    color: #a9b4c4 !important;
    -webkit-text-fill-color: #a9b4c4 !important;
}

body.dark-mode.page-laporan .app-content .mobile-proposal-badges .category-pkm {
    color: #a7f3d0 !important;
    background: rgba(16, 185, 129, .2) !important;
    border-color: rgba(52, 211, 153, .42) !important;
    -webkit-text-fill-color: #a7f3d0 !important;
}

body.dark-mode.page-laporan .app-content .mobile-proposal-badges .category-research {
    color: #bae6fd !important;
    background: rgba(14, 165, 233, .2) !important;
    border-color: rgba(56, 189, 248, .42) !important;
    -webkit-text-fill-color: #bae6fd !important;
}

/* Proposal Aksi / Reviewer centered mobile modal -------------------------- */
body.dark-mode.page-proposal_list #mobBottomSheet.mob-bottom-sheet {
    color: var(--text-primary) !important;
    background: #0f172a !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    box-shadow: 0 26px 70px rgba(2, 6, 23, .68) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-header {
    background: rgba(18, 27, 46, .96) !important;
    border-bottom-color: rgba(148, 163, 184, .18) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-title {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-subtitle,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-label small,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-rev-date {
    color: #a9b4c4 !important;
    -webkit-text-fill-color: #a9b4c4 !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-close-btn {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-body {
    color: var(--text-primary) !important;
    background: #0f172a !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-detail-block,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-section {
    color: var(--text-primary) !important;
    background: rgba(18, 27, 46, .96) !important;
    border-color: rgba(148, 163, 184, .18) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-detail-block [style*="color:#1e293b"],
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-detail-block [style*="color: #1e293b"] {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-detail-block [style*="color:#64748b"],
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-detail-block [style*="color: #64748b"] {
    color: #a9b4c4 !important;
    -webkit-text-fill-color: #a9b4c4 !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-rev-item {
    color: var(--text-primary) !important;
    background: rgba(18, 27, 46, .54) !important;
    border-color: rgba(148, 163, 184, .15) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item:hover,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item:focus-visible,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item:active {
    color: #fff !important;
    background: rgba(30, 64, 175, .3) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-label strong,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-rev-name {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item.mob-danger .mob-bs-label strong {
    color: #fca5a5 !important;
    -webkit-text-fill-color: #fca5a5 !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item.mob-info .mob-bs-icon,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-rev-btn.mob-edit {
    color: #7dd3fc !important;
    background: rgba(14, 165, 233, .18) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item.mob-purple .mob-bs-icon {
    color: #c4b5fd !important;
    background: rgba(139, 92, 246, .2) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item:is(.mob-warning, .mob-amber) .mob-bs-icon,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item:not(.mob-info):not(.mob-purple):not(.mob-warning):not(.mob-amber):not(.mob-success):not(.mob-danger) .mob-bs-icon {
    color: #fcd34d !important;
    background: rgba(245, 158, 11, .18) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item.mob-success .mob-bs-icon {
    color: #6ee7b7 !important;
    background: rgba(16, 185, 129, .18) !important;
}

body.dark-mode.page-proposal_list #mobBottomSheet .mob-bs-item.mob-danger .mob-bs-icon,
body.dark-mode.page-proposal_list #mobBottomSheet .mob-rev-btn.mob-del {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, .18) !important;
}

/* Jejak Ilmiah ------------------------------------------------------------
   The page ships with several inline light surfaces and an unscoped mobile
   table-to-card rule. Keep the existing data/sync behaviour, but normalise
   the visual layer here after the page styles have loaded. */
body.page-admin_sinta .app-content > .container-fluid {
    width: 100% !important;
    max-width: none !important;
}

body.page-admin_sinta .app-content .breadcrumb-item.active {
    color: var(--text-secondary) !important;
}

body.page-admin_sinta #sinta-tabs {
    max-width: 100%;
    color: var(--text-primary);
    background: rgba(241, 245, 249, .92) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .08);
}

body.page-admin_sinta #sinta-tabs .nav-link {
    min-height: 42px;
    color: #526078 !important;
    transition: color .18s ease, background-color .18s ease,
        box-shadow .18s ease, transform .18s ease;
}

body.page-admin_sinta #sinta-tabs .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, .26);
}

body.page-admin_sinta #sinta-tabs .nav-link:active,
body.page-admin_sinta #adminLecturerTab .nav-link:active,
body.page-admin_sinta .dosen-item-link:active,
body.page-admin_sinta .app-content .btn:active {
    transform: scale(.975);
}

body.page-admin_sinta #adminLecturerTab {
    min-width: 0;
}

body.page-admin_sinta #adminLecturerTab .nav-link {
    min-height: 42px;
    color: #526078 !important;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    transition: color .18s ease, background-color .18s ease,
        border-color .18s ease, transform .18s ease;
}

body.page-admin_sinta #adminLecturerTab .nav-link.active {
    color: #fff !important;
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: rgba(96, 165, 250, .7) !important;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .22);
}

body.page-admin_sinta #adminLecturerTab .nav-link.active i {
    color: #fff !important;
}

body.page-admin_sinta .dosen-item-link {
    position: relative;
    overflow: hidden;
}

body.page-admin_sinta .dosen-item-link:focus-visible,
body.page-admin_sinta #sinta-tabs .nav-link:focus-visible,
body.page-admin_sinta #adminLecturerTab .nav-link:focus-visible {
    outline: 3px solid rgba(96, 165, 250, .45) !important;
    outline-offset: 2px;
}

/* Complete dark-mode recovery for hard-coded light components. */
body.dark-mode.page-admin_sinta #sinta-tabs {
    background: rgba(15, 23, 42, .82) !important;
    border-color: rgba(148, 163, 184, .22) !important;
    box-shadow: 0 14px 34px rgba(2, 6, 23, .25);
}

body.dark-mode.page-admin_sinta #sinta-tabs .nav-link {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-admin_sinta #sinta-tabs .nav-link.active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card {
    color: var(--text-primary) !important;
    background: linear-gradient(145deg, rgba(18, 27, 46, .96), rgba(30, 64, 175, .22)) !important;
    border-top: 1px solid rgba(96, 165, 250, .2) !important;
    border-right: 1px solid rgba(96, 165, 250, .2) !important;
    border-bottom: 1px solid rgba(96, 165, 250, .2) !important;
    box-shadow: 0 14px 34px rgba(2, 6, 23, .22) !important;
}

body.dark-mode.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card h3,
body.dark-mode.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card .text-dark {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card .text-muted {
    color: #b8c3d2 !important;
    -webkit-text-fill-color: #b8c3d2 !important;
}

body.dark-mode.page-admin_sinta .dosen-list-card,
body.dark-mode.page-admin_sinta .dosen-detail-card,
body.dark-mode.page-admin_sinta .dosen-detail-card > .card,
body.dark-mode.page-admin_sinta #pane-inbox > .card {
    color: var(--text-primary) !important;
    background: rgba(18, 27, 46, .9) !important;
    border-color: rgba(148, 163, 184, .2) !important;
    box-shadow: 0 16px 38px rgba(2, 6, 23, .24) !important;
}

body.dark-mode.page-admin_sinta .dosen-list-card > .bg-light-subtle,
body.dark-mode.page-admin_sinta .dosen-list-card .input-group,
body.dark-mode.page-admin_sinta #adminLecturerTabContent .bg-light,
body.dark-mode.page-admin_sinta #pane-inbox .table-light,
body.dark-mode.page-admin_sinta #pane-inbox .mobile-action-bar {
    color: var(--text-primary) !important;
    background: rgba(15, 23, 42, .74) !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-admin_sinta .dosen-list-card .form-control,
body.dark-mode.page-admin_sinta .dosen-list-card .input-group-text {
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0 !important;
}

body.dark-mode.page-admin_sinta .dosen-list-card .form-control::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1;
}

body.dark-mode.page-admin_sinta #qf-sinta,
body.dark-mode.page-admin_sinta #qf-scholar,
body.dark-mode.page-admin_sinta #qf-scopus,
body.dark-mode.page-admin_sinta #qf-all.btn-outline-secondary {
    color: #dbe5f1 !important;
    background: rgba(51, 65, 85, .5) !important;
    border-color: rgba(148, 163, 184, .45) !important;
    -webkit-text-fill-color: #dbe5f1 !important;
}

body.dark-mode.page-admin_sinta #qf-all.btn-primary,
body.dark-mode.page-admin_sinta #qf-sinta.btn-primary,
body.dark-mode.page-admin_sinta #qf-scholar.btn-primary,
body.dark-mode.page-admin_sinta #qf-scopus.btn-primary {
    color: #fff !important;
    background: #2563eb !important;
    border-color: #60a5fa !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.page-admin_sinta .dosen-item-link {
    color: #dbe5f1 !important;
}

body.dark-mode.page-admin_sinta .dosen-item-link:hover {
    background: rgba(59, 130, 246, .12) !important;
}

body.dark-mode.page-admin_sinta .dosen-item-link.active {
    color: #eff6ff !important;
    background: rgba(37, 99, 235, .22) !important;
    border-color: rgba(96, 165, 250, .5) !important;
}

body.dark-mode.page-admin_sinta .dosen-name-txt,
body.dark-mode.page-admin_sinta .dosen-item-link.active .dosen-name-txt {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-admin_sinta .dosen-item-link .badge.bg-light,
body.dark-mode.page-admin_sinta #pane-inbox .badge.bg-light {
    color: #cbd5e1 !important;
    background: rgba(51, 65, 85, .68) !important;
    border-color: rgba(148, 163, 184, .32) !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTab {
    background: rgba(15, 23, 42, .45);
    border-radius: 14px;
}

body.dark-mode.page-admin_sinta #adminLecturerTab .nav-link {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTab .nav-link.active,
body.dark-mode.page-admin_sinta #adminLecturerTab .nav-link.active i {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTabContent,
body.dark-mode.page-admin_sinta #adminLecturerTabContent .tab-pane,
body.dark-mode.page-admin_sinta #pane-inbox {
    color: var(--text-primary) !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTabContent .text-dark,
body.dark-mode.page-admin_sinta #adminLecturerTabContent h1,
body.dark-mode.page-admin_sinta #adminLecturerTabContent h2,
body.dark-mode.page-admin_sinta #adminLecturerTabContent h3,
body.dark-mode.page-admin_sinta #adminLecturerTabContent h4,
body.dark-mode.page-admin_sinta #adminLecturerTabContent h5,
body.dark-mode.page-admin_sinta #adminLecturerTabContent h6,
body.dark-mode.page-admin_sinta #pane-inbox .text-dark,
body.dark-mode.page-admin_sinta #pane-inbox h5 {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTabContent .text-secondary,
body.dark-mode.page-admin_sinta #adminLecturerTabContent .text-muted,
body.dark-mode.page-admin_sinta #pane-inbox .text-muted {
    color: #aebacc !important;
    -webkit-text-fill-color: #aebacc !important;
}

/* Score summary cards carry light-mode gradients inline. Re-skin them with
   dark navy surfaces so their light typography remains readable at night. */
body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.overall {
    color: #fbbf24 !important;
    background: linear-gradient(135deg, rgba(120, 53, 15, .48), rgba(15, 23, 42, .96)) !important;
    border-color: rgba(251, 191, 36, .42) !important;
    box-shadow: 0 14px 30px rgba(2, 6, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.three-year {
    color: #4ade80 !important;
    background: linear-gradient(135deg, rgba(6, 78, 59, .5), rgba(15, 23, 42, .96)) !important;
    border-color: rgba(74, 222, 128, .38) !important;
    box-shadow: 0 14px 30px rgba(2, 6, 23, .22), inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.overall h2,
body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.overall i {
    color: #fcd34d !important;
    -webkit-text-fill-color: #fcd34d !important;
}

body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.overall span {
    color: #fde68a !important;
    -webkit-text-fill-color: #fde68a !important;
    opacity: 1 !important;
}

body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.three-year h2,
body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.three-year i {
    color: #86efac !important;
    -webkit-text-fill-color: #86efac !important;
}

body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card.three-year span {
    color: #bbf7d0 !important;
    -webkit-text-fill-color: #bbf7d0 !important;
    opacity: 1 !important;
}

body.dark-mode.page-admin_sinta #detail-pane .sinta-stat-card .text-muted {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTabContent .table,
body.dark-mode.page-admin_sinta #pane-inbox .table {
    --bs-table-bg: transparent;
    --bs-table-color: #e2e8f0;
    --bs-table-border-color: rgba(148, 163, 184, .2);
    --bs-table-hover-bg: rgba(59, 130, 246, .08);
    --bs-table-hover-color: #f8fafc;
    color: #e2e8f0 !important;
}

body.dark-mode.page-admin_sinta #adminLecturerTabContent .table > :not(caption) > * > *,
body.dark-mode.page-admin_sinta #pane-inbox .table > :not(caption) > * > * {
    color: inherit !important;
    background-color: transparent !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-admin_sinta #admin-metrics-pane [style*="background:#f8fafc"],
body.dark-mode.page-admin_sinta #admin-metrics-pane [style*="background: #f8fafc"],
body.dark-mode.page-admin_sinta #admin-metrics-pane [style*="background:#fffbeb"],
body.dark-mode.page-admin_sinta #admin-metrics-pane [style*="background: #fffbeb"],
body.dark-mode.page-admin_sinta #dosen-sinta-metrics-table-body.bg-white {
    color: var(--text-primary) !important;
    background: rgba(15, 23, 42, .72) !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-admin_sinta #pane-inbox .mobile-proposal-card-body [style*="color: #475569"],
body.dark-mode.page-admin_sinta #pane-inbox .mobile-proposal-card-body [style*="color:#475569"],
body.dark-mode.page-admin_sinta #pane-inbox .mobile-proposal-card-body [style*="color: #1e293b"],
body.dark-mode.page-admin_sinta #pane-inbox .mobile-proposal-card-body [style*="color:#1e293b"] {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-admin_sinta #pane-inbox .mobile-proposal-card-body [style*="color: #64748b"],
body.dark-mode.page-admin_sinta #pane-inbox .mobile-proposal-card-body [style*="color:#64748b"] {
    color: #aebacc !important;
    -webkit-text-fill-color: #aebacc !important;
}

body.dark-mode.page-admin_sinta #pane-inbox .badge.bg-danger-soft {
    color: #fca5a5 !important;
    background: rgba(239, 68, 68, .16) !important;
    border: 1px solid rgba(248, 113, 113, .3) !important;
    -webkit-text-fill-color: #fca5a5 !important;
}

@media (max-width: 767.98px) {
    body.page-admin_sinta .app-content > .container-fluid {
        padding: 16px 14px calc(96px + env(safe-area-inset-bottom)) !important;
    }

    body.page-admin_sinta .app-content > .container-fluid > .d-flex:first-child {
        margin-bottom: 16px !important;
        animation: adminSintaSettle .42s cubic-bezier(.16, 1, .3, 1) both;
    }

    body.page-admin_sinta .app-content > .container-fluid h2 {
        font-size: clamp(1.42rem, 6vw, 1.72rem) !important;
        line-height: 1.16;
    }

    body.page-admin_sinta .app-content > .container-fluid h2 + p {
        margin-top: 8px;
        font-size: 12px !important;
        line-height: 1.55;
    }

    body.page-admin_sinta #sinta-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100% !important;
        padding: 6px !important;
        margin-bottom: 16px !important;
        overflow: visible !important;
        white-space: normal !important;
        border-radius: 17px !important;
    }

    body.page-admin_sinta #sinta-tabs .nav-item {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.page-admin_sinta #sinta-tabs .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px;
        padding: 8px 7px !important;
        border-radius: 12px !important;
        font-size: 11.5px;
        line-height: 1.25;
        text-align: center;
        white-space: normal !important;
    }

    body.page-admin_sinta #sinta-tabs .nav-link i {
        flex: 0 0 auto;
        margin-right: 5px !important;
    }

    body.page-admin_sinta #pane-manage > .row.g-3.mb-4 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px !important;
        margin: 0 0 14px !important;
    }

    body.page-admin_sinta #pane-manage > .row.g-3.mb-4 > .col-md-3 {
        width: auto !important;
        min-width: 0;
        padding: 0 !important;
    }

    body.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card {
        align-items: flex-start !important;
        min-width: 0;
        min-height: 116px;
        padding: 12px !important;
        gap: 9px !important;
    }

    body.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card > .rounded-3 {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px;
    }

    body.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card h3 {
        max-width: 100%;
        font-size: 14px !important;
        line-height: 1.25;
    }

    body.page-admin_sinta #pane-manage > .row.g-3.mb-4 .card p {
        font-size: 10.5px !important;
        line-height: 1.35;
    }

    body.page-admin_sinta .sinta-master-grid {
        gap: 12px !important;
    }

    body.page-admin_sinta .dosen-list-card {
        margin-bottom: 0 !important;
        border-radius: 18px !important;
    }

    body.page-admin_sinta .dosen-list-card > .p-3 {
        padding: 13px !important;
    }

    body.page-admin_sinta .dosen-list-container {
        max-height: 340px !important;
        padding: 8px 10px 12px !important;
        overscroll-behavior: contain;
    }

    body.page-admin_sinta .dosen-item-link {
        gap: 9px;
        min-height: 58px;
        margin-bottom: 5px;
        padding: 9px 10px;
    }

    body.page-admin_sinta .dosen-detail-card {
        min-height: 0 !important;
        padding: 12px !important;
        border-radius: 18px !important;
    }

    body.page-admin_sinta .dosen-detail-card > .card {
        padding: 14px !important;
        border-radius: 16px !important;
    }

    body.page-admin_sinta #adminLecturerTab {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex: 1 0 100% !important;
        gap: 5px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 5px;
        overflow: visible !important;
        white-space: normal !important;
        border-radius: 15px;
    }

    body.page-admin_sinta #adminLecturerTab .nav-item {
        width: 100%;
        min-width: 0;
    }

    body.page-admin_sinta #adminLecturerTab .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 3px;
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding: 6px 4px !important;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    body.page-admin_sinta #adminLecturerTab .nav-link i,
    body.page-admin_sinta #adminLecturerTab .nav-link .badge {
        margin-right: 0 !important;
        margin-left: 1px !important;
    }

    body.page-admin_sinta #btn-toggle-sync {
        width: 100%;
        min-height: 42px;
        border-radius: 12px !important;
    }

    /* Undo the page's blanket table-to-card conversion for detail data.
       Inbox keeps its purpose-built mobile card transformer. */
    body.page-admin_sinta #pane-manage .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
        overscroll-behavior-inline: contain;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
        border-radius: 12px;
    }

    body.page-admin_sinta #pane-manage .table-responsive table {
        display: table !important;
        width: 100% !important;
        min-width: 600px !important;
        max-width: none !important;
        margin: 0 !important;
    }

    body.page-admin_sinta #pane-manage .table-responsive table colgroup {
        display: table-column-group !important;
    }

    body.page-admin_sinta #pane-manage .table-responsive table col {
        display: table-column !important;
    }

    body.page-admin_sinta #pane-manage .table-responsive table thead {
        display: table-header-group !important;
    }

    body.page-admin_sinta #pane-manage .table-responsive table tbody {
        display: table-row-group !important;
    }

    body.page-admin_sinta #pane-manage .table-responsive table tr {
        display: table-row !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-admin_sinta #pane-manage .table-responsive table th,
    body.page-admin_sinta #pane-manage .table-responsive table td {
        display: table-cell !important;
        width: auto !important;
        min-width: 0;
        padding: 10px !important;
        text-align: left !important;
        vertical-align: middle !important;
        white-space: normal;
    }

    body.page-admin_sinta #admin-metrics-pane > .row > .col-md-6 table {
        min-width: 0 !important;
        table-layout: fixed;
    }

    /* responsive-overrides.css globally converts every .table into cards.
       Jejak Ilmiah already owns its mobile presentation, so retain proper
       table semantics inside the lecturer detail (including score metrics). */
  body.page-admin_sinta #pane-manage .dosen-detail-card table.table {
        display: table !important;
        width: 100% !important;
        max-width: none !important;
        margin-bottom: 0 !important;
    }

  body.page-admin_sinta #pane-manage .dosen-detail-card table.table thead {
        display: table-header-group !important;
    }

  body.page-admin_sinta #pane-manage .dosen-detail-card table.table tbody {
        display: table-row-group !important;
        width: auto !important;
    }

  body.page-admin_sinta #pane-manage .dosen-detail-card table.table tr {
        display: table-row !important;
        width: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

  body.page-admin_sinta #pane-manage .dosen-detail-card table.table th,
  body.page-admin_sinta #pane-manage .dosen-detail-card table.table td {
        display: table-cell !important;
        width: auto !important;
        min-width: 0;
        padding: 9px 8px !important;
        border-bottom: 1px solid var(--border-color) !important;
        text-align: left !important;
        vertical-align: middle !important;
        font-size: 12px !important;
    }

  body.page-admin_sinta #pane-manage .dosen-detail-card table.table td::before {
        display: none !important;
        content: none !important;
    }

    body.page-admin_sinta #admin-metrics-pane > .row > .col-md-6 .p-3 {
        min-height: 0 !important;
    }

    body.page-admin_sinta #admin-metrics-pane .row.g-3 {
        gap: 10px;
    }

    body.page-admin_sinta #pane-inbox > .card {
        padding: 14px !important;
        border-radius: 18px !important;
    }

    body.page-admin_sinta #pane-inbox > .card > .d-flex:first-child {
        align-items: flex-start !important;
        gap: 10px;
    }

    body.page-admin_sinta #pane-inbox h5 {
        font-size: 15px;
        line-height: 1.35;
    }

    body.page-admin_sinta #pane-inbox .table-responsive table tbody tr {
        color: var(--text-primary) !important;
        background: var(--bg-card) !important;
        border-color: var(--border-color) !important;
    }

    body.page-admin_sinta #pane-inbox .mobile-proposal-card-body {
        min-width: 0;
    }

    @keyframes adminSintaSettle {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-admin_sinta .app-content *,
    body.page-admin_sinta .app-content *::before,
    body.page-admin_sinta .app-content *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* --------------------------------------------------------------------------
   Accreditation & AMI — mobile clarity, solid modals, and dark-mode recovery
   -------------------------------------------------------------------------- */

body.page-accreditation_audit .accreditation-readiness-score {
    transition: transform 200ms ease, box-shadow 200ms ease;
}

body.dark-mode.page-accreditation_audit .accreditation-readiness-score {
    color: #eaf2ff !important;
    background: radial-gradient(circle at 35% 28%, rgba(37, 99, 235, .42), rgba(15, 23, 42, .98) 72%) !important;
    border-color: rgba(96, 165, 250, .78) !important;
    box-shadow: 0 16px 34px rgba(2, 6, 23, .34), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

body.dark-mode.page-accreditation_audit .accreditation-readiness-score h3 {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}

body.dark-mode.page-accreditation_audit .accreditation-readiness-score span {
    color: #dbeafe !important;
    -webkit-text-fill-color: #dbeafe !important;
}

body.page-accreditation_audit #exportConfigModal .modal-content,
body.page-accreditation_audit #exportConfigModal .modal-body {
    color: #1e293b !important;
    background: #fff !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
}

body.page-accreditation_audit #exportConfigModal .modal-footer {
    background: #f8fafc !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal .modal-content {
    color: #f8fafc !important;
    background: #0d1729 !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: 0 28px 70px rgba(2, 6, 23, .62) !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal .modal-header {
    color: #fff !important;
    background: linear-gradient(135deg, #1d4ed8, #6d28d9) !important;
    border-color: rgba(255, 255, 255, .14) !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal .modal-body {
    color: #f8fafc !important;
    background: #111c30 !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal .modal-footer {
    color: #f8fafc !important;
    background: #0d1729 !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal :is(label, .form-label) {
    color: #eaf2ff !important;
    -webkit-text-fill-color: #eaf2ff !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal :is(.form-control, .form-select) {
    color: #f8fafc !important;
    background: #162238 !important;
    border-color: rgba(148, 163, 184, .32) !important;
    box-shadow: none !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal :is(.form-control, .form-select):focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .18) !important;
}

body.dark-mode.page-accreditation_audit #exportConfigModal + .modal-backdrop,
body.dark-mode.page-accreditation_audit .modal-backdrop.show {
    opacity: .72 !important;
}

body.page-accreditation_audit #lecturerDetailModal .modal-content {
    opacity: 1 !important;
    backdrop-filter: none !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .modal-content {
    color: #f8fafc !important;
    background: #0b1425 !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: 0 28px 72px rgba(2, 6, 23, .66) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .modal-header,
body.dark-mode.page-accreditation_audit #lecturerDetailModal .modal-footer {
    color: #f8fafc !important;
    background: #0d1729 !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .modal-body {
    color: #f8fafc !important;
    background: #111c30 !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .btn-close,
body.dark-mode.page-accreditation_audit #exportConfigModal .btn-close {
    filter: invert(1) grayscale(1) brightness(1.8);
    opacity: .9;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-metric-card {
    color: #e2e8f0 !important;
    background: linear-gradient(145deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .98)) !important;
    border-color: rgba(148, 163, 184, .24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 24px rgba(2, 6, 23, .18) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-overall {
    background: linear-gradient(145deg, rgba(120, 53, 15, .5), rgba(15, 23, 42, .98)) !important;
    border-color: rgba(251, 191, 36, .38) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-three-year {
    background: linear-gradient(145deg, rgba(6, 78, 59, .5), rgba(15, 23, 42, .98)) !important;
    border-color: rgba(74, 222, 128, .34) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-scopus {
    background: linear-gradient(145deg, rgba(30, 64, 175, .5), rgba(15, 23, 42, .98)) !important;
    border-color: rgba(96, 165, 250, .36) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-scholar {
    background: linear-gradient(145deg, rgba(88, 28, 135, .5), rgba(15, 23, 42, .98)) !important;
    border-color: rgba(192, 132, 252, .34) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-profile {
    background: linear-gradient(145deg, rgba(131, 24, 67, .46), rgba(15, 23, 42, .98)) !important;
    border-color: rgba(244, 114, 182, .32) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-metric-card .text-muted {
    color: #cbd5e1 !important;
    -webkit-text-fill-color: #cbd5e1 !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-overall h3 {
    color: #fcd34d !important;
    -webkit-text-fill-color: #fcd34d !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-three-year h3 {
    color: #86efac !important;
    -webkit-text-fill-color: #86efac !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-scopus h3 {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-scholar h3 {
    color: #d8b4fe !important;
    -webkit-text-fill-color: #d8b4fe !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-chart-card {
    color: #f8fafc !important;
    background: #101b2f !important;
    border-color: rgba(148, 163, 184, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-chart-card h6 {
    color: #f8fafc !important;
    -webkit-text-fill-color: #f8fafc !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent,
body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .tab-pane,
body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .table {
    color: #e2e8f0 !important;
    background: transparent !important;
}

body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent :is(tr, td, th) {
    color: #e2e8f0 !important;
    background-color: transparent !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-accreditation_audit #auditTable .mobile-stat-box {
    color: #dbe5f1 !important;
    background: rgba(15, 23, 42, .7) !important;
    border-color: rgba(148, 163, 184, .2) !important;
}

body.dark-mode.page-accreditation_audit #auditTable .mobile-stat-box strong {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}

body.dark-mode.page-accreditation_audit #auditTable .mobile-stat-box span {
    color: #dbe5f1 !important;
    -webkit-text-fill-color: #dbe5f1 !important;
}

@media (max-width: 767.98px) {
    body.page-accreditation_audit .accreditation-readiness-card,
    body.page-accreditation_audit .accreditation-prodi-card {
        padding: 16px !important;
        border-radius: 20px !important;
    }

    body.page-accreditation_audit .prodi-mobile-list {
        display: grid !important;
        gap: 10px;
    }

    body.page-accreditation_audit .prodi-mobile-item,
    body.page-accreditation_audit .prodi-mobile-total {
        padding: 12px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    }

    body.page-accreditation_audit .prodi-mobile-heading {
        display: flex;
        align-items: center;
        gap: 9px;
        margin-bottom: 10px;
    }

    body.page-accreditation_audit .prodi-mobile-rank {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        flex: 0 0 24px;
        color: #fff;
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        border-radius: 50%;
        font-size: 10px;
        font-weight: 800;
        box-shadow: 0 5px 12px rgba(37, 99, 235, .22);
    }

    body.page-accreditation_audit .prodi-mobile-name,
    body.page-accreditation_audit .prodi-mobile-total-title {
        min-width: 0;
        color: #1e293b;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.35;
    }

    body.page-accreditation_audit .prodi-mobile-total-title {
        margin-bottom: 10px;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    body.page-accreditation_audit .prodi-mobile-metrics {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    body.page-accreditation_audit .prodi-mobile-metric {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 48px;
        padding: 6px 3px;
        color: #526078;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
    }

    body.page-accreditation_audit .prodi-mobile-metric b {
        color: #1e293b;
        font-size: 13px;
        line-height: 1;
    }

    body.page-accreditation_audit .prodi-mobile-metric small {
        margin-top: 4px;
        color: #64748b;
        font-size: 8px;
        font-weight: 700;
        line-height: 1;
    }

    body.page-accreditation_audit .prodi-mobile-funding {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-top: 8px;
        padding: 8px 10px;
        color: #166534;
        background: rgba(34, 197, 94, .08);
        border: 1px solid rgba(34, 197, 94, .18);
        border-radius: 10px;
        font-size: 9px;
        font-weight: 700;
    }

    body.page-accreditation_audit .prodi-mobile-funding strong {
        color: #15803d;
        font-size: 10px;
        white-space: nowrap;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-item,
    body.dark-mode.page-accreditation_audit .prodi-mobile-total {
        color: #e2e8f0 !important;
        background: rgba(15, 23, 42, .7) !important;
        border-color: rgba(148, 163, 184, .2) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035) !important;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-name,
    body.dark-mode.page-accreditation_audit .prodi-mobile-total-title {
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-metric {
        color: #cbd5e1 !important;
        background: rgba(30, 41, 59, .8) !important;
        border-color: rgba(148, 163, 184, .2) !important;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-metric b {
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-metric small {
        color: #aebacc !important;
        -webkit-text-fill-color: #aebacc !important;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-funding {
        color: #bbf7d0 !important;
        background: rgba(16, 185, 129, .1) !important;
        border-color: rgba(52, 211, 153, .22) !important;
    }

    body.dark-mode.page-accreditation_audit .prodi-mobile-funding strong {
        color: #86efac !important;
        -webkit-text-fill-color: #86efac !important;
    }

    body.page-accreditation_audit #auditTable tbody tr {
        min-height: 0 !important;
        padding: 12px 10px 12px 56px !important;
        border-radius: 16px !important;
    }

    body.page-accreditation_audit #auditTable tbody td.col-info {
        padding: 0 !important;
    }

    body.page-accreditation_audit #auditTable .mobile-grid-stats {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
        padding-top: 8px !important;
    }

    body.page-accreditation_audit #auditTable .mobile-stat-box,
    body.page-accreditation_audit #auditTable .mobile-stat-box-wide {
        display: flex !important;
        flex-direction: column;
        grid-column: 1 / -1 !important;
        gap: 3px;
        padding: 8px 9px;
        color: #526078 !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px;
        font-size: 10px !important;
        line-height: 1.35 !important;
    }

    body.page-accreditation_audit #auditTable .mobile-stat-box strong {
        color: #1d4ed8 !important;
        font-size: 8.5px;
        letter-spacing: .045em;
    }

    body.page-accreditation_audit #auditTable .mobile-stat-box span {
        color: #475569;
        font-size: 10px;
    }

    body.page-accreditation_audit #auditTable .mobile-action-bar {
        width: 46px !important;
        padding: 8px 4px !important;
    }

    body.page-accreditation_audit #auditTable .mobile-action-bar .mob-btn-detail {
        width: 36px !important;
        height: 44px !important;
        gap: 3px !important;
        border-radius: 10px !important;
        font-size: 9px !important;
    }

    body.page-accreditation_audit #auditTable .mobile-action-bar i {
        font-size: 12px !important;
    }

    body.page-accreditation_audit #auditTable .mobile-action-bar-number {
        width: 20px !important;
        height: 20px !important;
        font-size: 9px !important;
    }

    body.dark-mode.page-accreditation_audit #auditTable tbody tr {
        background: rgba(15, 23, 42, .74) !important;
        border-color: rgba(148, 163, 184, .22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 8px 20px rgba(2, 6, 23, .16) !important;
    }

    body.dark-mode.page-accreditation_audit #auditTable .mobile-action-bar {
        background: linear-gradient(180deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .96)) !important;
        border-color: rgba(148, 163, 184, .2) !important;
    }

    body.dark-mode.page-accreditation_audit #auditTable .mobile-stat-box,
    body.dark-mode.page-accreditation_audit #auditTable .mobile-stat-box-wide {
        color: #dbe5f1 !important;
        background: rgba(30, 41, 59, .7) !important;
        border-color: rgba(148, 163, 184, .2) !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-dialog,
    body.page-accreditation_audit #exportConfigModal .modal-dialog {
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        margin: 8px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-content {
        max-height: calc(100dvh - 16px) !important;
        border-radius: 20px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-header {
        padding: 14px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-header > .d-flex {
        min-width: 0;
        gap: 10px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-dosen-avatar,
    body.page-accreditation_audit #lecturerDetailModal #modal-dosen-initials {
        width: 46px !important;
        height: 46px !important;
        flex: 0 0 46px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-dosen-name {
        font-size: 15px !important;
        line-height: 1.3;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-body {
        padding: 14px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-card {
        min-height: 104px;
        padding: 12px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-chart-card {
        padding: 14px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab.accreditation-detail-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px !important;
        width: 100% !important;
        height: auto !important;
        padding: 7px;
        overflow: visible !important;
        background: #f1f5f9;
        border: 1px solid #e2e8f0 !important;
        border-radius: 15px;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab > .nav-item {
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100% !important;
        min-height: 48px;
        padding: 7px 6px !important;
        color: #526078 !important;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 11px !important;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        overflow: hidden !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link.active {
        color: #fff !important;
        background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
        border-color: transparent !important;
        box-shadow: 0 7px 16px rgba(37, 99, 235, .24);
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link.active :is(i, .badge) {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link.active .badge {
        background: rgba(255, 255, 255, .22) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTab.accreditation-detail-tabs {
        background: rgba(15, 23, 42, .76) !important;
        border-color: rgba(148, 163, 184, .2) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link {
        color: #cbd5e1 !important;
        background: rgba(30, 41, 59, .76) !important;
        border-color: rgba(148, 163, 184, .2) !important;
        -webkit-text-fill-color: #cbd5e1 !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link.active {
        color: #fff !important;
        background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
        -webkit-text-fill-color: #fff !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTabContent {
        max-height: none !important;
        padding: 2px !important;
        overflow: visible !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-footer {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        padding: 12px 14px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-footer > * {
        justify-content: center;
        width: 100% !important;
        min-height: 42px;
        margin: 0 !important;
        padding: 8px !important;
        white-space: normal;
        text-align: center;
    }

    body.page-accreditation_audit #lecturerDetailModal .modal-footer > button {
        grid-column: 1 / -1;
    }

    body.page-accreditation_audit #exportConfigModal .modal-content {
        border-radius: 20px !important;
    }

    body.page-accreditation_audit #exportConfigModal .modal-header,
    body.page-accreditation_audit #exportConfigModal .modal-body,
    body.page-accreditation_audit #exportConfigModal .modal-footer {
        padding: 16px !important;
    }

    /* Lecturer detail: native-card tabs and vertical data presentation. */
    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link {
        display: grid !important;
        grid-template-columns: 28px minmax(0, 1fr) auto;
        align-items: center;
        justify-content: stretch;
        min-height: 62px;
        gap: 7px;
        padding: 8px !important;
        text-align: left;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link > i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        margin: 0 !important;
        background: rgba(37, 99, 235, .08);
        border: 1px solid rgba(37, 99, 235, .12);
        border-radius: 9px;
        font-size: 11px;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .accreditation-tab-label {
        min-width: 0;
        color: #334155;
        font-size: 10.5px;
        font-weight: 800;
        line-height: 1.22;
        text-align: left;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 20px;
        height: 20px;
        margin: 0 !important;
        padding: 0 5px !important;
        font-size: 8px !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link.active .accreditation-tab-label,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link.active .accreditation-tab-label {
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTab .accreditation-tab-label {
        color: #e2e8f0 !important;
        -webkit-text-fill-color: #e2e8f0 !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTab .nav-link > i {
        background: rgba(96, 165, 250, .1) !important;
        border-color: rgba(96, 165, 250, .18) !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modalTabContent,
    body.page-accreditation_audit #lecturerDetailModal #modalTabContent .tab-pane,
    body.page-accreditation_audit #lecturerDetailModal #modalTabContent .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-row {
        display: flex !important;
        flex-direction: column;
        width: 100%;
        margin-bottom: 10px;
        padding: 13px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    }

    body.page-accreditation_audit #lecturerDetailModal :is(#modal-pub-pane, #modal-book-pane, #modal-haki-pane, #modal-lit-pane, #modal-abdimas-pane) table.table-summary,
    body.page-accreditation_audit #lecturerDetailModal :is(#modal-pub-pane, #modal-book-pane, #modal-haki-pane, #modal-lit-pane, #modal-abdimas-pane) table.table-summary tbody {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        table-layout: fixed !important;
    }

    body.page-accreditation_audit #lecturerDetailModal :is(#modal-pub-pane, #modal-book-pane, #modal-haki-pane, #modal-lit-pane, #modal-abdimas-pane) > .table-responsive {
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-main,
    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-status {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
        text-align: left !important;
        border: 0 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-main {
        overflow-wrap: anywhere;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-main :is(a, span, div) {
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        text-align: left !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-main > div:first-child > :is(a, span) {
        display: block !important;
        width: 100% !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-status {
        margin-top: 10px;
        padding-top: 10px !important;
        border-top: 1px solid #e2e8f0 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-list-status .badge {
        max-width: 100%;
        white-space: normal;
        text-align: left;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-list-row {
        background: #101b2f !important;
        border-color: rgba(148, 163, 184, .22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-list-status {
        border-color: rgba(148, 163, 184, .18) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-list-status .badge {
        color: #bfdbfe !important;
        background: rgba(37, 99, 235, .18) !important;
        border-color: rgba(96, 165, 250, .3) !important;
        -webkit-text-fill-color: #bfdbfe !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel {
        color: #334155;
        background: linear-gradient(145deg, #fff, #f8fafc) !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 7px 20px rgba(15, 23, 42, .06);
    }

    body.page-accreditation_audit #lecturerDetailModal .metric-detail-sinta {
        background: linear-gradient(145deg, #fffbeb, #fff7d6) !important;
        border-color: #fde68a !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        background: transparent !important;
        table-layout: fixed !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel {
        overflow: hidden !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel table.table-summary {
        display: table !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel table.table-summary tbody {
        display: table-row-group !important;
        width: auto !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel table.table-summary tr {
        display: table-row !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel :is(td, th) {
        padding: 8px 9px !important;
        color: #334155 !important;
        background: rgba(255, 255, 255, .7) !important;
        border-color: #e2e8f0 !important;
        text-align: left !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel :is(td, th):last-child {
        width: 34% !important;
        color: #1d4ed8 !important;
        text-align: right !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel :is(td, th):first-child {
        width: 66% !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal .metric-detail-sinta {
        color: #f8fafc !important;
        background: linear-gradient(145deg, #14223a, #0f1a2d) !important;
        border-color: rgba(148, 163, 184, .24) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel h6 {
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel :is(td, th) {
        color: #dbe5f1 !important;
        background: rgba(30, 41, 59, .66) !important;
        border-color: rgba(148, 163, 184, .2) !important;
        -webkit-text-fill-color: #dbe5f1 !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-metric-detail-panel :is(td, th):last-child {
        color: #93c5fd !important;
        -webkit-text-fill-color: #93c5fd !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .accreditation-metric-detail-panel,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .accreditation-metric-detail-panel table {
        color: #e2e8f0 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .accreditation-metric-detail-panel h6 {
        display: block !important;
        color: #f8fafc !important;
        font-size: 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-text-fill-color: #f8fafc !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .accreditation-metric-detail-panel :is(td, th) {
        display: table-cell !important;
        color: #dbe5f1 !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
        opacity: 1 !important;
        visibility: visible !important;
        -webkit-text-fill-color: #dbe5f1 !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modalTabContent .accreditation-metric-detail-panel :is(td, th):last-child {
        color: #93c5fd !important;
        -webkit-text-fill-color: #93c5fd !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-timeline-body,
    body.page-accreditation_audit #lecturerDetailModal #modal-evidence-pane .table-responsive {
        max-height: none !important;
        overflow: visible !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-review-card {
        color: #334155;
        background: #fff !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 7px 20px rgba(15, 23, 42, .06) !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-reviewer-card {
        background: #f8fafc !important;
        border-color: #e2e8f0 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-history-item {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 3px !important;
        padding: 8px 0;
        text-align: left !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-history-item + .accreditation-history-item {
        border-top: 1px dashed #cbd5e1;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-reviewer-heading {
        align-items: flex-start !important;
        flex-wrap: wrap;
        gap: 7px;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-criteria-row {
        gap: 10px;
        text-align: left !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modal-timeline-pane > .alert,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal #modal-evidence-pane > .alert {
        color: #cbd5e1 !important;
        background: #101b2f !important;
        border-color: rgba(148, 163, 184, .22) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-review-card,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-reviewer-card {
        color: #e2e8f0 !important;
        background: #101b2f !important;
        border-color: rgba(148, 163, 184, .22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal :is(.accreditation-review-card, .accreditation-reviewer-card) :is(.text-dark, .text-muted, .text-secondary, h6, span) {
        color: #dbe5f1 !important;
        -webkit-text-fill-color: #dbe5f1 !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-review-funding b,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-reviewer-card .badge {
        color: #93c5fd !important;
        -webkit-text-fill-color: #93c5fd !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-history-track {
        border-color: rgba(96, 165, 250, .34) !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-evidence-pane table,
    body.page-accreditation_audit #lecturerDetailModal #modal-evidence-pane tbody {
        display: block !important;
        width: 100% !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-evidence-pane thead {
        display: none !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card {
        display: block !important;
        width: 100%;
        margin-bottom: 10px;
        padding: 13px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card td {
        display: block !important;
        width: 100% !important;
        padding: 0 0 11px !important;
        overflow-wrap: anywhere;
        text-align: left !important;
        border: 0 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card td:last-child {
        padding-bottom: 0 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card td::before {
        display: block;
        margin-bottom: 5px;
        color: #64748b;
        content: attr(data-label);
        font-family: inherit;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: .07em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card {
        color: #e2e8f0 !important;
        background: #101b2f !important;
        border-color: rgba(148, 163, 184, .22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card td,
    body.dark-mode.page-accreditation_audit #lecturerDetailModal .accreditation-evidence-card td::before {
        color: #dbe5f1 !important;
        -webkit-text-fill-color: #dbe5f1 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-sinta-metrics-table-body {
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.page-accreditation_audit #lecturerDetailModal #modal-sinta-metrics-table-body > table {
        display: none !important;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-metrics-mobile-view {
        display: grid;
        gap: 10px;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-card {
        padding: 13px;
        color: #334155;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(15, 23, 42, .05);
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-heading {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 8px;
        margin-bottom: 10px;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-heading strong {
        color: #1e293b;
        font-size: 11px;
        line-height: 1.35;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-code {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 31px;
        height: 24px;
        padding: 0 7px;
        color: #fff;
        background: linear-gradient(135deg, #2563eb, #4f46e5);
        border-radius: 8px;
        font-size: 9px;
        font-weight: 900;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-weights,
    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-weights {
        margin-bottom: 7px;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-weights > span,
    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid > span {
        min-width: 0;
        padding: 8px;
        color: #64748b;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        font-size: 8.5px;
        line-height: 1.3;
        text-align: left;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid small,
    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid b {
        display: block;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid small {
        margin-bottom: 4px;
        color: #64748b;
        font-size: 7.5px;
        font-weight: 800;
        letter-spacing: .035em;
        text-transform: uppercase;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-weights b,
    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid b {
        color: #1d4ed8;
        font-size: 9px;
    }

    body.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-summary {
        padding: 11px 12px;
        color: #1e3a8a;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        border-radius: 11px;
        font-size: 9px;
        font-weight: 800;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-card {
        color: #e2e8f0 !important;
        background: #101b2f !important;
        border-color: rgba(148, 163, 184, .22) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04) !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-heading strong {
        color: #f8fafc !important;
        -webkit-text-fill-color: #f8fafc !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal :is(.sinta-mobile-score-weights, .sinta-mobile-score-grid) > span {
        color: #cbd5e1 !important;
        background: rgba(30, 41, 59, .72) !important;
        border-color: rgba(148, 163, 184, .2) !important;
        -webkit-text-fill-color: #cbd5e1 !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-grid small {
        color: #aebacc !important;
        -webkit-text-fill-color: #aebacc !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal :is(.sinta-mobile-score-weights, .sinta-mobile-score-grid) b {
        color: #93c5fd !important;
        -webkit-text-fill-color: #93c5fd !important;
    }

    body.dark-mode.page-accreditation_audit #lecturerDetailModal .sinta-mobile-score-summary {
        color: #dbeafe !important;
        background: rgba(30, 64, 175, .22) !important;
        border-color: rgba(96, 165, 250, .28) !important;
        -webkit-text-fill-color: #dbeafe !important;
    }
}

body.page-accreditation_audit #lecturerDetailModal .sinta-metrics-mobile-view {
    display: none;
}

@media (max-width: 767.98px) {
    body.page-accreditation_audit #lecturerDetailModal .sinta-metrics-mobile-view {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-accreditation_audit .app-content *,
    body.page-accreditation_audit .modal *,
    body.page-accreditation_audit .app-content *::before,
    body.page-accreditation_audit .app-content *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
