:root { --nu: #0b6e4f; --nu-2: #08563e; --nu-soft: #e3f1ea; }
body { background: #f4f7f5; font-size: .94rem; }
.sidebar { width: 250px; min-height: 100vh; background: var(--nu); }
.sidebar a { color: #e7f3ed; text-decoration: none; display: block; padding: .55rem 1rem; border-radius: .4rem; }
.sidebar a:hover, .sidebar a.active { background: var(--nu-2); color: #fff; }
.sidebar .brand { color: #fff; font-weight: 700; letter-spacing: .5px; }
.btn-nu { background: var(--nu); color: #fff; } .btn-nu:hover { background: var(--nu-2); color: #fff; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat .num { font-size: 1.8rem; font-weight: 700; color: var(--nu); }
.table thead th { background: var(--nu-soft); font-weight: 600; white-space: nowrap; }
.progress { height: .6rem; }
.login-wrap { min-height: 100vh; background: linear-gradient(135deg, #0b6e4f 0%, #08563e 60%, #063d2c 100%); }
@media (max-width: 991px) { .sidebar { width: 100%; min-height: auto; } }
.th-urut { color: inherit; text-decoration: none; white-space: nowrap; }
.th-urut:hover, .th-urut.aktif { color: var(--nu); }
.pagination .page-item.active .page-link { background: var(--nu); border-color: var(--nu); }
.pagination .page-link { color: var(--nu); }
.tombol-bantuan { color: var(--nu); text-decoration: none; font-weight: 600; }
.tombol-bantuan:hover { color: var(--nu-2); }
.kotak-centang { max-height: 260px; overflow-y: auto; background: #fff; }
.kotak-centang .form-check { padding: .35rem .5rem .35rem 2rem; border-radius: .35rem; margin: 0; }
.kotak-centang .form-check:hover { background: var(--nu-soft); }
.kotak-centang .form-check-input:checked + .form-check-label { font-weight: 600; color: var(--nu); }
.form-check-input:checked { background-color: var(--nu); border-color: var(--nu); }
.sidebar .menu-nonaktif { color: #7fa896; cursor: not-allowed; display: flex; align-items: center; justify-content: space-between;
  white-space: nowrap; padding: .55rem 1rem; border-radius: .4rem; user-select: none; }
.sidebar .menu-nonaktif .kunci { font-size: .75rem; opacity: .8; }
.sidebar .identitas { line-height: 1.3; }
.sidebar .identitas .keterangan { font-size: .72rem; color: #b9d8c9; margin-top: .15rem; line-height: 1.35; }
.bagian { border-top: 3px solid var(--nu); }
.bagian-judul { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 1px solid #eef2ef; }
.bagian-judul .nomor { flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: var(--nu); color: #fff; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.tabel-kpi thead th { background: transparent; font-size: .8rem; color: #6b7280; font-weight: 600; border-bottom-width: 1px; }
.daftar-cek li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.daftar-cek li::before { content: "\F28A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: #c4cdc8; }
.daftar-cek li.ok::before { content: "\F26A"; color: var(--nu); }
.daftar-cek li.ok > a { color: var(--nu); }
.daftar-cek a { color: #374151; text-decoration: none; }
.daftar-cek a:hover { text-decoration: underline; }
.bilah-aksi { position: sticky; bottom: 0; background: #f4f7f5; padding: .75rem 1rem; margin: 0 -1rem; z-index: 5; border-top: 1px solid #dfe7e2; box-shadow: 0 -6px 12px -8px rgba(0,0,0,.15); }
.langkah-draf li { padding: .35rem 0; }

/* Logo Nahdlatul Ulama di atas nama aplikasi */
.sidebar a.logo-nu, .simutu-side a.logo-nu { display: block; background: #fff; border-radius: .75rem; padding: .6rem .8rem; margin-bottom: .85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.sidebar a.logo-nu:hover, .simutu-side a.logo-nu:hover { background: #fff; }
.sidebar a.logo-nu img, .simutu-side a.logo-nu img { display: block; width: 100%; height: auto; max-width: 190px; margin: 0 auto; }
@media (max-width: 991px) { .sidebar a.logo-nu { display: inline-block; padding: .4rem .6rem; } .sidebar a.logo-nu img { max-width: 110px; } }

/* Foto pengguna di menu kiri */
.sidebar .foto-saya, .simutu-side .foto-saya { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto;
  border: 2px solid rgba(255,255,255,.85); box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* =====================================================================
   Penyegaran tampilan (v20): tautan, kartu, tabel, tombol, form, badge
   ===================================================================== */
:root { --nu-3: #063d2c; --teks: #1b2e26; --redup: #64746d; --garis: #e6ece9; --bayang: 0 1px 2px rgba(16,40,30,.04), 0 2px 8px rgba(16,40,30,.06); }
body { background: #f3f6f4; color: var(--teks); -webkit-font-smoothing: antialiased; }
main h4 { font-weight: 700; letter-spacing: -.01em; color: #15302a; }
main h5, main h6 { font-weight: 650; color: #15302a; }
main .text-muted { color: var(--redup) !important; }
::selection { background: #cfe8dc; }

/* Tautan: hijau, tanpa garis; garis bawah halus muncul saat disorot */
main a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.text-decoration-none):not(.list-group-item-action) {
  color: var(--nu); text-decoration: none; font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-size: 0 1.5px; background-position: 0 100%; transition: background-size .22s ease, color .15s ease; }
main a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.text-decoration-none):not(.list-group-item-action):hover {
  color: var(--nu-2); background-size: 100% 1.5px; }
main a:focus-visible { outline: 2px solid rgba(11,110,79,.35); outline-offset: 2px; border-radius: 3px; }
main .table td a:not(.btn) { color: #17402f; font-weight: 600; }
main .table td a:not(.btn):hover { color: var(--nu); }
main a.text-decoration-none { color: inherit; }

/* Tautan kembali (breadcrumb) */
a.tautan-kembali, main a.tautan-kembali { display: inline-flex !important; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600 !important;
  color: var(--redup) !important; background: #fff !important; border: 1px solid var(--garis); border-radius: 999px;
  padding: .2rem .75rem .2rem .55rem; transition: all .15s ease; }
a.tautan-kembali:hover { color: var(--nu) !important; border-color: #b7d9c8; box-shadow: 0 2px 6px rgba(11,110,79,.1); }

/* Kartu */
main .card { border: 0; border-radius: .9rem; box-shadow: var(--bayang); }
main .card > .table-responsive:first-child, main .card > .table-responsive:first-child table { border-top-left-radius: .9rem; border-top-right-radius: .9rem; }
main .card-header { background: #fff !important; border-bottom: 1px solid var(--garis); padding: .85rem 1.1rem; font-weight: 650 !important;
  color: #15302a; border-radius: .9rem .9rem 0 0 !important; display: flex; align-items: center; gap: .5rem; }
main .card-header::before { content: ""; width: 4px; height: 1.05em; border-radius: 4px; background: var(--nu); flex: 0 0 auto; }
main .card-footer { border-top: 1px solid var(--garis); border-radius: 0 0 .9rem .9rem !important; }
main .list-group-item { border-color: var(--garis); padding: .7rem 1.1rem; }
main .list-group-flush > .list-group-item:last-child { border-bottom-left-radius: .9rem; border-bottom-right-radius: .9rem; }

/* Kartu angka */
main .stat { position: relative; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
main .stat .num { font-size: 1.9rem; letter-spacing: -.02em; }
main a .stat:hover, main a:hover > .stat { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16,40,30,.1); }
.stat-ikon { width: 44px; height: 44px; border-radius: .75rem; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex: 0 0 auto; }
.stat-ikon.hijau { background: #e3f1ea; color: var(--nu); } .stat-ikon.biru { background: #e3eefb; color: #1f6fa8; }
.stat-ikon.kuning { background: #fff3d6; color: #a56a00; } .stat-ikon.merah { background: #fde6e4; color: #c0392b; }
.stat-ikon.ungu { background: #efe8f9; color: #6f42c1; }

/* Tabel */
main .table { --bs-table-hover-bg: #f3f9f6; margin-bottom: 0; }
main .table > :not(caption) > * > * { padding: .7rem .8rem; border-color: var(--garis); }
main .table thead th { background: #f1f7f4; color: #44574f; font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 1px solid #dbe7e1; white-space: nowrap; }
main .table thead th a, main .table thead th .th-urut { color: inherit !important; font-weight: 700 !important; background-image: none !important; }
main .table tbody tr:last-child td { border-bottom: 0; }
main .table-responsive { border-radius: .9rem; }

/* Tombol */
.btn { border-radius: .6rem; font-weight: 500; transition: all .15s ease; }
.btn-sm { border-radius: .5rem; }
.btn-nu { background: linear-gradient(180deg, #0f7a58, #0b6e4f); border: 1px solid #0a6347; color: #fff; box-shadow: 0 1px 2px rgba(11,110,79,.25); }
.btn-nu:hover, .btn-nu:focus { background: linear-gradient(180deg, #0b6e4f, #08563e); color: #fff; border-color: #08563e; box-shadow: 0 4px 12px rgba(11,110,79,.25); }
.btn-outline-success { color: var(--nu); border-color: #9fcdb7; }
.btn-outline-success:hover { background: var(--nu); border-color: var(--nu); color: #fff; }
.btn-outline-secondary { color: #4b5d55; border-color: #d3ddd8; background: #fff; }
.btn-outline-secondary:hover { background: #f1f6f3; color: var(--nu-2); border-color: #b7d9c8; }
.btn-light { background: #f1f6f3; border-color: #e1ebe6; color: #2f4a3e; }
.btn-light:hover { background: #e3f1ea; border-color: #c6e0d3; color: var(--nu-2); }
.btn-aksi { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 600; padding: .22rem .6rem;
  border-radius: 999px; background: #f1f6f3; color: var(--nu) !important; border: 1px solid #dceae3; white-space: nowrap; }
.btn-aksi:hover { background: var(--nu); color: #fff !important; border-color: var(--nu); }
.btn-aksi.bahaya { color: #c0392b !important; background: #fdf1f0; border-color: #f6d4d0; }
.btn-aksi.bahaya:hover { background: #c0392b; color: #fff !important; border-color: #c0392b; }

/* Form */
.form-control, .form-select { border-radius: .6rem; border-color: #d6e0db; }
.form-control:focus, .form-select:focus { border-color: #5fae8a; box-shadow: 0 0 0 .2rem rgba(11,110,79,.13); }
.form-label { font-weight: 600; font-size: .86rem; color: #2a3f36; margin-bottom: .3rem; }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(11,110,79,.15); border-color: #5fae8a; }
.input-group-text { border-color: #d6e0db; background: #f6f9f7; }

/* Badge status: lembut dengan titik warna */
.badge { font-weight: 600; letter-spacing: .01em; }
.lencana { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600; line-height: 1;
  padding: .32rem .62rem; border-radius: 999px; white-space: nowrap; }
.lencana::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; opacity: .85; }
.lencana.l-success { background: #e2f4ea; color: #12784f; } .lencana.l-warning { background: #fff3d6; color: #9a6400; }
.lencana.l-danger { background: #fde6e4; color: #b42318; } .lencana.l-info { background: #e0f3f8; color: #0e7490; }
.lencana.l-primary { background: #e3eefb; color: #1f5f99; } .lencana.l-secondary { background: #eef1f3; color: #55636b; }
.lencana.l-dark { background: #e7e9ea; color: #2c3438; }

/* Progres */
.progress { background: #e8efeb; border-radius: 999px; height: .55rem; }
.progress-bar { border-radius: 999px; }
.progress-bar.bg-success { background: linear-gradient(90deg, #0b6e4f, #2fa36b) !important; }

/* Paginasi & tab */
.pagination { gap: .25rem; }
.pagination .page-link { border-radius: .5rem !important; border-color: var(--garis); min-width: 2rem; text-align: center; }
.pagination .page-item.active .page-link { box-shadow: 0 2px 6px rgba(11,110,79,.25); }
.nav-tabs { border-bottom-color: var(--garis); }
.nav-tabs .nav-link { color: var(--redup); font-weight: 600; border: 0; border-bottom: 2px solid transparent; }
.nav-tabs .nav-link:hover { color: var(--nu); border-bottom-color: #b7d9c8; }
.nav-tabs .nav-link.active { color: var(--nu); background: transparent; border-bottom-color: var(--nu); }

/* Peringatan */
main .alert { border: 0; border-radius: .8rem; border-left: 4px solid currentColor; }
main .alert-success { background: #e6f5ed; color: #0f6a45; } main .alert-danger { background: #fdecea; color: #a52a1f; }
main .alert-warning { background: #fff6dd; color: #8a5a00; } main .alert-info { background: #e5f4f8; color: #0e6680; }
main .alert-light { background: #fff; color: #44574f; border-left-color: #9fcdb7; box-shadow: var(--bayang); }

/* Judul halaman */
.kepala-halaman { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.kepala-halaman .sub { color: var(--redup); font-size: .85rem; }

/* Keadaan kosong */
.kosong { text-align: center; color: var(--redup); padding: 2rem 1rem; }
.kosong i { font-size: 2rem; display: block; color: #b7cfc3; margin-bottom: .4rem; }

/* Info detail (label kecil + nilai) */
.info-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--redup); font-weight: 600; margin-bottom: .15rem; }
.info-nilai { font-weight: 600; color: #15302a; }
main .card-header.justify-content-between { justify-content: flex-start !important; }
main .card-header > :last-child:not(:first-child) { margin-left: auto; }
main .card-header > .fw-semibold { font-weight: 650 !important; }
.lencana:has(> i)::before { display: none; }
.pagination .page-item.active .page-link { color: #fff !important; background: var(--nu); border-color: var(--nu); }
.list-group-item .lencana { flex-shrink: 0; align-self: center; margin-left: .5rem; }
.input-group > .form-control:not(:first-child), .input-group > .form-select:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child), .input-group > .input-group-text:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > .input-group-text:first-child { border-top-left-radius: .6rem; border-bottom-left-radius: .6rem; }

/* Tabel rapi: lebar kolom terukur, sel kode & angka tidak terpotong */
main .table.tabel-rapi { table-layout: fixed; width: 100%; }
main .table-responsive > .table.tabel-rapi { min-width: 540px; }
main .table.tabel-rapi td { overflow-wrap: break-word; word-break: normal; hyphens: auto; }
main .table.tabel-rapi td .lencana, main .table.tabel-rapi td .btn, main .table.tabel-rapi td .btn-aksi { overflow-wrap: normal; }
main .table.tabel-rapi thead th { white-space: normal; line-height: 1.25; vertical-align: middle; }
main .table.tabel-rapi .lencana { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
main .table.tabel-rapi td { vertical-align: middle; }
main .table.tabel-rapi td.text-end { white-space: nowrap; }
.kode-sel { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; color: #44574f; white-space: nowrap; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; }
.bar-mini { display: flex; align-items: center; gap: .4rem; }
.bar-mini .progress { flex: 1 1 auto; height: .45rem; }
.bar-mini span { font-size: .78rem; font-weight: 600; color: #2f4a3e; min-width: 2.6rem; text-align: right; }
.progress-bar.bg-info { background: linear-gradient(90deg, #1f8fb0, #3fb6d3) !important; }
.progress-bar.bg-warning { background: linear-gradient(90deg, #d99a00, #f3c13a) !important; }
main .table.tabel-rapi thead th a.th-urut { white-space: normal; display: inline; }
main .table.tabel-rapi .kode-sel { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; }
main .table.tabel-rapi td .lencana { white-space: normal; line-height: 1.2; overflow: visible; text-overflow: clip; align-items: flex-start; }
main .table.tabel-rapi td .lencana::before { margin-top: .2rem; flex: 0 0 auto; }
