body {
    background: #f4f6f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 14px;
}
.card { border: none; border-radius: 10px; }
.card-header { border-radius: 10px 10px 0 0 !important; font-size: 15px; }

/* ----- Dropdown user di navbar ----- */
.user-dropdown .user-dd-name {
    max-width: 140px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}
.user-dropdown-menu {
    min-width: 260px;
    max-width: 320px;
    padding-top: 0;
    padding-bottom: 4px;
}
.user-dropdown-menu .user-dd-info {
    background: #f8fafc;
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.35;
}
.user-dropdown-menu .user-dd-pd {
    white-space: normal;        /* WAJIB: agar nama OPD panjang wrap, bukan terpotong */
    word-break: break-word;
    font-size: 12px;
    margin-top: 2px;
}
.user-dropdown-menu .dropdown-item {
    padding: 8px 14px;
    font-size: 13.5px;
}
.user-dropdown-menu .dropdown-divider {
    margin: 4px 0;
}

.tree-wrapper {
    max-height: 80vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#simdaTable td, #simdaTable th,
#sipdTable td, #sipdTable th {
    vertical-align: middle;
    font-size: 13px;
}

.tree-row {
    cursor: pointer;
}
.tree-row > td {
    transition: background-color 0.15s;
}
.tree-row:hover > td { background-color: #fff8e1 !important; }

.tree-row.active > td {
    background-color: #fde68a !important;
    font-weight: 700;
}
.tree-row.active > td:first-child {
    box-shadow: inset 3px 0 0 #f59e0b;
}

.tree-row.matched > td {
    background-color: #fef08a !important;
    font-weight: 700;
}
.tree-row.matched > td:first-child {
    box-shadow: inset 3px 0 0 #f59e0b;
}

.tree-row.matched.active > td {
    background-color: #fcd34d !important;
    font-weight: 700;
}
.tree-row.matched.active > td:first-child {
    box-shadow: inset 4px 0 0 #d97706;
}

.toggle {
    display: inline-block;
    width: 14px;
    color: #6b7280;
    font-size: 10px;
    margin-right: 4px;
}
.tree-row.has-children .toggle::before { content: "▶"; }
.tree-row.expanded .toggle::before { content: "▼"; }
.tree-row.no-children .toggle { visibility: hidden; }

.kode-cell { font-family: 'Consolas', monospace; white-space: nowrap; }
.depth-1, .depth-2 { font-weight: 700; background:#ecfdf5; }
.depth-3 { font-weight: 600; }
.depth-4 { color: #115e59; }
.depth-5 { color: #334155; }
.depth-6, .depth-7 { color: #475569; }

.indent {
    display: inline-block;
    width: 18px;
}

.badge-depth {
    font-size: 10px;
    background:#e5e7eb;
    color:#374151;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

#searchBox::placeholder { color: #6b7280; }

/* ===== Search dropdown ===== */
.search-wrap {
    position: relative;
}
.search-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    width: min(620px, calc(100vw - 20px));
    max-height: 65vh;
    overflow-y: auto;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    z-index: 1050;
}
.search-dropdown .sd-header {
    padding: 6px 10px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    color: #6b7280;
    position: sticky;
    top: 0;
    z-index: 1;
}
.search-dropdown .sd-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}
.search-dropdown .sd-item:last-child { border-bottom: none; }
.search-dropdown .sd-item:hover,
.search-dropdown .sd-item.sd-active {
    background: #fef3c7;
}
.search-dropdown .sd-kode {
    font-family: 'Consolas', monospace;
    font-size: 12px;
    color: #0369a1;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
.search-dropdown .sd-nama {
    font-size: 13px;
    color: #374151;
    flex: 1;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}
.search-dropdown .sd-parent {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}
.search-dropdown .sd-parent .sd-pkode {
    font-family: 'Consolas', monospace;
    color: #0369a1;
}
.search-dropdown .sd-badge {
    font-size: 10px;
    padding: 1px 6px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 8px;
    flex-shrink: 0;
}
.search-dropdown .sd-empty {
    padding: 14px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    font-size: 13px;
}
.search-dropdown mark {
    background: #fde047;
    padding: 0 2px;
    border-radius: 2px;
    color: inherit;
}

/* Spotlight animation */
@keyframes spotlight {
    0%   { background-color: #fde047 !important; }
    100% { background-color: transparent; }
}
.tree-row.spotlight > td {
    animation: spotlight 1.5s ease-out;
}

/* ===== Tab switcher untuk mobile ===== */
.panel-tabs .nav-link {
    color: #475569;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
}
.panel-tabs .nav-link.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}
.panel-tabs .nav-item:not(:last-child) { margin-right: 6px; }

/* ===== Responsive: TABLET (≥768px) — side-by-side, lebih kompak ===== */
@media (min-width: 768px) and (max-width: 991.98px) {
    .tree-wrapper { max-height: 75vh; }
    #simdaTable td, #simdaTable th,
    #sipdTable td, #sipdTable th { font-size: 12px; padding: 5px 6px; }
    .indent { width: 12px; }
    .card-header { font-size: 13px; padding: 8px 10px; }
    .badge-depth { font-size: 9px; padding: 0 4px; }
}

/* ===== Responsive: MOBILE (<768px) — tab switcher, satu panel aktif ===== */
@media (max-width: 767.98px) {
    body { font-size: 13px; }

    .navbar-brand { font-size: 15px; }

    .search-bar {
        width: 100%;
        order: 3 !important;
    }
    #searchBox { font-size: 14px; }

    .panel-col.panel-hidden-mobile {
        display: none;
    }

    .tree-wrapper {
        max-height: calc(100vh - 220px);
        min-height: 400px;
    }

    #simdaTable td, #simdaTable th,
    #sipdTable td, #sipdTable th {
        font-size: 12px;
        padding: 6px 4px;
    }

    .indent { width: 12px; }
    .toggle { width: 12px; font-size: 9px; }
    .kode-cell { font-size: 11px; }

    .card-header {
        font-size: 13px;
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 4px;
    }
    .card-header small { font-size: 11px; }

    .badge-depth {
        font-size: 9px;
        padding: 0 4px;
        margin-left: 2px;
    }

    .search-dropdown {
        position: fixed;
        top: auto;
        left: 8px;
        right: 8px;
        max-width: none;
        margin: 0;
        max-height: 55vh;
    }
}

/* ===== Touch device tweaks ===== */
@media (hover: none) and (pointer: coarse) {
    .tree-row > td { padding-top: 10px; padding-bottom: 10px; }
    .toggle { width: 18px; font-size: 12px; }
    .sd-item { padding: 12px !important; }
}


/* =================================================================
   SHELL LAYOUT — sidebar + main content
   ================================================================= */
.app-body {
    margin: 0;
    background: #f4f6f9;
}

.app-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    color: #fff;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform .25s ease;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 14px;
    font-weight: 700;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.sidebar-brand .brand-icon { font-size: 20px; }
/* ---- Brand aplikasi SiCAKAP (semua role, 2026-11-15) ---- */
.sidebar-brand .brand-sicakap {
    display: flex; align-items: center; gap: 10px;
    color: #fff; text-decoration: none; min-width: 0;
    border-radius: 8px; transition: opacity .15s;
}
.sidebar-brand .brand-sicakap:hover { opacity: .88; color: #fff; }
.sidebar-brand .brand-sicakap-logo {
    width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.sidebar-brand .brand-sicakap-teks {
    font-size: 22px; font-weight: 800; letter-spacing: .5px; line-height: 1;
}
.sidebar-brand .brand-sicakap-teks .si { font-weight: 500; letter-spacing: 0; }

/* ---- Brand SICAKAP (menggantikan brand teks untuk role Sicakap) ----
   Kedua berkas logo berlatar transparan, jadi TIDAK diberi alas putih - langsung
   menyatu dengan gradasi biru sidebar. */
.sidebar-brand-logo {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px 18px 16px;
    position: relative;
}
.sidebar-brand-logo .brand-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;          /* logo kini tautan ke beranda */
    border-radius: 8px;
    transition: opacity .15s;
}
.sidebar-brand-logo .brand-logo-wrap:hover { opacity: .85; }
.sidebar-brand-logo .brand-logo-lambang {
    width: 76px;
    height: auto;
}
/* Tulisan SICAKAP berwarna biru tua (#012658) - nyaris sama dengan latar
   sidebar, jadi akan hilang bila dibiarkan apa adanya. Filter ini mengubah
   grafik berwarna apa pun menjadi siluet putih pekat, sehingga terbaca jelas
   tanpa perlu menyiapkan berkas logo versi terang tersendiri. */
.sidebar-brand-logo .brand-logo-tulisan {
    width: 100%;
    max-width: 168px;
    height: auto;
    filter: brightness(0) invert(1);
}
.sidebar-brand-logo .sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    margin-left: 0;
}

/* ---- Beranda SICAKAP (halaman utama setelah login) ----
   Sengaja lapang dan tanpa kartu: hanya logo, tulisan, dan kepanjangannya. */
.sicakap-beranda {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 18px;
    min-height: calc(100vh - 190px);
    padding: 24px 16px 40px;
}
.sicakap-beranda .beranda-lambang {
    width: 200px;
    max-width: 45vw;
    height: auto;
}
.sicakap-beranda .beranda-tulisan {
    width: 320px;
    max-width: 70vw;
    height: auto;
}
.sicakap-beranda .beranda-tulisan-teks {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: #012658;
}
.sicakap-beranda .beranda-kepanjangan {
    margin: 0;
    font-size: 1.05rem;
    color: #475569;
    max-width: 34rem;
}
@media (max-width: 575.98px) {
    .sicakap-beranda { gap: 14px; min-height: calc(100vh - 150px); }
    .sicakap-beranda .beranda-kepanjangan { font-size: .95rem; }
}

/* Beranda versi RINGKAS: dipakai saat di bawahnya ada dashboard, sehingga logo
   tidak lagi memenuhi layar dan isi yang penting langsung terlihat. */
.sicakap-beranda-ringkas {
    min-height: 0;
    gap: 8px;
    padding: 8px 16px 18px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
}
.sicakap-beranda-ringkas .beranda-lambang { width: 92px; }
.sicakap-beranda-ringkas .beranda-tulisan { width: 180px; }
.sicakap-beranda-ringkas .beranda-tulisan-teks { font-size: 1.6rem; }
.sicakap-beranda-ringkas .beranda-kepanjangan { font-size: .9rem; }

/* ---- Kartu tahap alur SPM ---- */
.sic-kartu { border-left: 4px solid #adb5bd; }
.sic-kartu-secondary { border-left-color: #6b7280; }
.sic-kartu-warning   { border-left-color: #f59e0b; }
.sic-kartu-success   { border-left-color: #059669; }
.sic-kartu-danger    { border-left-color: #dc2626; }
/* Tahap yang kosong diredupkan supaya yang berisi langsung menonjol */
.sic-kartu-kosong { opacity: .55; }
.sic-dash .table th { font-weight: 600; }
}
.sidebar-brand .sidebar-close {
    margin-left: auto;
    padding: 0 6px;
    font-size: 18px;
    text-decoration: none;
}
.sidebar-nav { padding: 12px 8px; flex: 1; }
.sidebar-section {
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    font-size: 10.5px;
    letter-spacing: .8px;
    padding: 8px 10px 4px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13.5px;
    transition: background .15s, color .15s;
}
.sidebar-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.sidebar-link.active {
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 600;
}
.sidebar-link-icon { font-size: 16px; width: 22px; text-align: center; }
.sidebar-footer {
    padding: 10px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 11px;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1039;
}
.sidebar-backdrop.show { display: block; }

/* Main shell */
.app-main {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.app-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 18px;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.app-topbar-title {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}
.app-content {
    padding: 16px 18px 28px;
    flex: 1;
}
.page-header .page-title {
    font-size: 18px;
    color: #1f2937;
}

/* Autohide sidebar (mis. halaman Usulan v2) — sidebar tersembunyi, konten full-width.
   Tombol ☰ tetap tampil untuk membuka sidebar sebagai overlay saat diperlukan. */
body.sidebar-autohide .app-sidebar { transform: translateX(-100%); }
body.sidebar-autohide .app-sidebar.open { transform: translateX(0); }
body.sidebar-autohide .app-main { margin-left: 0; }
body.sidebar-autohide #btnSidebarToggle { display: inline-flex !important; }
body.sidebar-autohide #btnSidebarClose { display: inline-block !important; }

@media (max-width: 767.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        width: 78%;
        max-width: 320px;
    }
    .app-sidebar.open { transform: translateX(0); }
    .app-main { margin-left: 0; }
}

/* =================================================================
   MAPPING REKENING ASET — combobox & tree
   ================================================================= */
.map-search-dropdown {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1050;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    margin-top: 2px;
}
.map-dd-item {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13.5px;
}
.map-dd-item:last-child { border-bottom: 0; }
.map-dd-item:hover,
.map-dd-item.active {
    background: #eff6ff;
}
.map-dd-item mark {
    background: #fde68a;
    padding: 0 2px;
    border-radius: 2px;
}
.map-dd-item .map-dd-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
}
.map-dd-item .map-dd-kode {
    background: #f3f4f6;
    color: #0369a1;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Consolas', monospace;
    width: fit-content;
    font-weight: 600;
}
.map-dd-item .map-dd-text {
    color: #374151;
    line-height: 1.3;
    word-break: break-word;
}
.map-dd-item .map-dd-lvl6 {
    color: #6b7280;
    font-size: 11.5px;
    line-height: 1.3;
}
.map-dd-item .map-dd-lvl6 code {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0 4px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 4px;
}
.map-dd-empty {
    padding: 14px;
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.map-card .map-tree-wrapper {
    max-height: 60vh;          /* Aset 108 & LRA — pasangan utama */
    overflow: auto;
}
.map-card-helper .map-tree-wrapper {
    max-height: 22vh;          /* Neraca — pendamping, lebih pendek */
}

/* Icon swap saat collapse: tampilkan ▼ kalau terbuka, ▶ kalau tertutup */
.btn-toggle-neraca .ne-icon-collapsed { display: none; }
.btn-toggle-neraca.collapsed .ne-icon-expanded { display: none; }
.btn-toggle-neraca.collapsed .ne-icon-collapsed { display: inline; }

/* SVG connector dari baris terpilih di Aset 108 → baris terpilih di LRA */
.map-connector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 100;
    overflow: visible;
    display: none;             /* default tersembunyi; ditampilkan via JS saat ada path */
}
.map-connector.is-visible { display: block; }
.map-connector #connectorPath {
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.18));
    transition: opacity 0.18s ease;
}
.map-tree-table td, .map-tree-table th { font-size: 13px; vertical-align: middle; }
.map-tree-table td:first-child,
.map-tree-table th:first-child {
    white-space: nowrap;
    width: 1%;            /* fit-to-content; pasangan dengan nowrap */
}
.map-tree-table code.tree-kode {
    background: #f3f4f6;
    color: #1f2937;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12.5px;
    white-space: nowrap;
}
.tree-indent {
    display: inline-block;
}
.tree-elbow {
    color: #9ca3af;
    margin-right: 4px;
    font-family: monospace;
}
.tree-toggle {
    display: inline-block;
    width: 18px;
    height: 18px;
    padding: 0;
    margin-right: 4px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #4b5563;
    font-size: 9px;
    line-height: 16px;
    text-align: center;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
    user-select: none;
}
.tree-toggle:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}
.tree-toggle-leaf {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 4px;
    vertical-align: middle;
}
.tree-row-selected {
    background: #fef9c3 !important;
}
.tree-row-selected code.tree-kode {
    background: #fde68a;
    color: #78350f;
    font-weight: 600;
}

/* Warna soft per level untuk tree interaktif (Aset 108 & LRA) */
#mapAsetBody tr.tree-level-1 td,
#mapLraBody  tr.tree-level-1 td { background: hsl( 45, 75%, 94%); } /* amber soft  */
#mapAsetBody tr.tree-level-2 td,
#mapLraBody  tr.tree-level-2 td { background: hsl(210, 80%, 95%); } /* blue soft   */
#mapAsetBody tr.tree-level-3 td,
#mapLraBody  tr.tree-level-3 td { background: hsl(150, 55%, 94%); } /* green soft  */
#mapAsetBody tr.tree-level-4 td,
#mapLraBody  tr.tree-level-4 td { background: hsl(275, 60%, 95%); } /* violet soft */
#mapAsetBody tr.tree-level-5 td,
#mapLraBody  tr.tree-level-5 td { background: hsl(330, 65%, 96%); } /* pink soft   */
#mapAsetBody tr.tree-level-6 td,
#mapLraBody  tr.tree-level-6 td { background: hsl(  0,  0%, 98%); } /* gray soft   */
/* Highlight baris terpilih tetap menang */
#mapAsetBody tr.tree-row-selected td,
#mapLraBody  tr.tree-row-selected td { background: #fef9c3 !important; }

/* Row pada tree interaktif bisa diklik untuk select; beri kursor & efek hover */
#mapAsetBody tr[data-kode],
#mapLraBody  tr[data-kode] { cursor: pointer; }
#mapAsetBody tr[data-kode]:hover td,
#mapLraBody  tr[data-kode]:hover td { filter: brightness(0.96); }
#mapAsetBody tr.tree-row-selected:hover td,
#mapLraBody  tr.tree-row-selected:hover td { filter: none; }

/* ===== Info Popup Aset (hover nama aset) ===== */
#assetInfoPopup {
    position: fixed;
    z-index: 2000;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    font-size: 13px;
    overflow: hidden;
}
#assetInfoPopup .aip-header {
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
}
#assetInfoPopup .aip-context {
    padding: 8px 12px 0;
    font-size: 12px;
    font-style: italic;
    color: #6b7280;
    line-height: 1.45;
}
#assetInfoPopup .aip-policy {
    padding: 8px 12px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 8px;
    font-size: 12.5px;
}
#assetInfoPopup .aip-context + .aip-policy { margin-top: 8px; }
#assetInfoPopup .aip-pol-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 1px 0;
}
#assetInfoPopup .aip-pol-row span { color: #6b7280; }
#assetInfoPopup .aip-pol-row strong { color: #166534; }
#assetInfoPopup .aip-pol-ovh {
    margin-top: 4px;
    color: #374151;
    line-height: 1.5;
}
#assetInfoPopup .aip-pol-ovh b { color: #92400e; }
#assetInfoPopup .aip-pol-src {
    margin-top: 5px;
    font-size: 10.5px;
    color: #9ca3af;
}
#assetInfoPopup .aip-footer {
    display: flex;
    align-items: center;
    padding: 7px 12px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

/* ===== Tab Rekening LRA (Belanja Modal / DBK / Pemeliharaan / Sewa) ===== */
.map-lra-tabs { gap: 2px; }
.map-lra-tabs .nav-link {
    padding: 1px 9px;
    font-size: 11.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
}
.map-lra-tabs .nav-link:hover { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.map-lra-tabs .nav-link.active {
    background: #fff;
    color: #157347;
    font-weight: 600;
    border-color: #fff;
}
.map-lo-footer {
    padding: 6px 10px;
    font-size: 12px;
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}
.map-lo-footer .tree-kode { font-size: 11.5px; }

/* ===== Halaman Kebijakan Aset ===== */
.kbj-wrapper { max-height: calc(100vh - 220px); overflow-y: auto; }
.kbj-table { font-size: 12.5px; }
.kbj-table thead th { font-size: 12px; }
.kbj-table tr.kbj-row-group td { background: hsl(45, 90%, 95%); }
#assetInfoPopup .aip-google-link {
    font-size: 12px;
    font-weight: 600;
    color: #16a34a;
    text-decoration: none;
}
#assetInfoPopup .aip-google-link:hover { text-decoration: underline; }

/* ===================================================================
   Modul Verifikasi RKA
   Lembar verifikasi sengaja meniru tata letak cetakan RKA - verifikator
   membandingkannya dengan dokumen kertas di sebelahnya, jadi kemiripan
   susunan lebih menolong daripada tampilan yang lebih "modern".
   =================================================================== */

.rkav-kertas .rkav-kop { line-height: 1.35; }
.rkav-kertas .rkav-kop .fw-bold { letter-spacing: .3px; }

/* Blok identitas: label rata kiri, titik dua sejajar, nilai menggantung rapi */
.rkav-idbaris {
    display: flex;
    align-items: flex-start;
    padding: 2px 0;
    font-size: .82rem;
}
.rkav-idlabel { flex: 0 0 190px; color: #6b7280; }
.rkav-idpisah { flex: 0 0 14px; color: #9ca3af; }
.rkav-idnilai { flex: 1 1 auto; }

.rkav-tabel-indikator th,
.rkav-tabel-indikator td { padding: .3rem .5rem; vertical-align: top; }

/* --- Tabel rincian --- */
.rkav-tabel { font-size: .82rem; }
.rkav-tabel > thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    white-space: nowrap;
}
.rkav-tabel td { padding: .3rem .45rem; }
.rkav-tabel .rkav-uraian { line-height: 1.3; }

/* Baris akun dicetak tebal berlatar abu, persis seperti pada formulir */
.rkav-akun > td { background: #f3f4f6; }
.rkav-header_group > td { background: #fefce8; }
.rkav-sub_group > td { background: #fafafa; }
.rkav-item_detail > td { background: #fff; }

.rkav-tanda {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #6b7280;
}
.rkav-spek {
    font-size: .75rem;
    color: #6b7280;
    padding-left: 2px;
}
.rkav-catatan-lain {
    font-size: .72rem;
    margin-top: 3px;
    padding-left: 4px;
    border-left: 2px solid #e5e7eb;
}

/* Baris yang ditandai perlu koreksi harus terlihat saat menggulir cepat */
.rkav-ditandai > td { background: #fef2f2 !important; }
.rkav-ditandai > td:first-child { box-shadow: inset 3px 0 0 #dc2626; }

.rkav-tabel textarea.rkav-catatan {
    font-size: .78rem;
    min-height: 31px;
    resize: vertical;
    overflow: hidden;
}
.rkav-tabel select.rkav-status { font-size: .78rem; }

@media (max-width: 992px) {
    .rkav-idlabel { flex-basis: 130px; }
}

/* Riwayat tahap & catatan yang terbawa dari tahap sebelumnya */
.rkav-riwayat-baris > td { padding: .25rem .5rem; }
.rkav-catatan-lalu {
    font-size: .72rem;
    margin-top: 3px;
    padding-left: 4px;
    border-left: 2px solid #fbbf24;   /* kuning: bukan catatan tahap ini */
}
#rkavTahapChip .btn { min-width: 74px; }

/* Posisi terkini pada kolom Tahap daftar Verifikasi RKA */
.rkav-posisi { font-size: .74rem; line-height: 1.25; margin-top: 1px; }
