/* ==========================================================================
   e-SK PTUN Kupang — Stylesheet v2
   Arah desain: dokumen resmi yang tenang dan rapi. Hijau peradilan yang dalam,
   aksen kuningan (brass) yang tipis, latar porselen, dan pola guilloche
   (garis pengaman pada dokumen resmi) sebagai satu-satunya ornamen.
   ========================================================================== */

:root {
    --ink: #14201b;
    --ink-2: #47544f;
    --ink-3: #78837e;
    --beringin: #164537;
    --beringin-d: #0f3329;
    --beringin-2: #23674f;
    --beringin-3: #e7f0eb;
    --brass: #a9824a;
    --brass-l: #d8bd8a;
    --brass-2: #f5eee2;
    --kertas: #f3f5f3;
    --surface: #ffffff;
    --garis: #e0e5e1;
    --garis-2: #eef1ee;
    --merah: #a63d2d;
    --merah-2: #f9ebe7;
    --amber: #95600a;
    --amber-2: #fbf2df;
    --biru: #2c5b7a;
    --biru-2: #e7eff5;
    --abu: #66716c;
    --abu-2: #eff1ef;
    --ungu: #5b4391;
    --ungu-2: #f3effa;

    /* alias lama agar kompatibel */
    --emas: var(--brass);
    --emas-2: var(--brass-2);

    --f-serif: "Newsreader", "Source Serif 4", Georgia, "Times New Roman", serif;
    --f-sans: "Plus Jakarta Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;

    --sh-1: 0 1px 2px rgba(15, 51, 41, 0.05);
    --sh-2: 0 1px 2px rgba(15, 51, 41, 0.04), 0 10px 28px -14px rgba(15, 51, 41, 0.18);
    --sh-3: 0 2px 6px rgba(15, 51, 41, 0.06), 0 24px 48px -20px rgba(15, 51, 41, 0.32);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --guilloche:
        repeating-radial-gradient(circle at 88% 18%, rgba(216, 189, 138, 0.11) 0 1px, transparent 1px 13px),
        repeating-radial-gradient(circle at 70% 120%, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 17px);

    --bs-body-font-family: var(--f-sans);
    --bs-body-color: var(--ink);
    --bs-body-bg: var(--kertas);
    --bs-primary: var(--beringin);
    --bs-primary-rgb: 22, 69, 55;
    --bs-link-color: var(--beringin-2);
    --bs-link-color-rgb: 35, 103, 79;
    --bs-link-hover-color: var(--beringin);
    --bs-border-color: var(--garis);
    --bs-border-radius: var(--r-sm);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--f-sans);
    font-size: 0.925rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--kertas);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, .serif {
    font-family: var(--f-serif);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--ink);
}
h4, h5, h6 { font-family: var(--f-sans); font-weight: 700; letter-spacing: -0.01em; }
.modal-title { font-family: var(--f-serif); font-weight: 600; font-size: 1.25rem; }

.num, .tabular { font-variant-numeric: tabular-nums; }
.nomor-sk {
    font-family: var(--f-serif);
    font-weight: 600;
    font-variant-numeric: tabular-nums lining-nums;
    color: var(--ink);
    word-break: break-word;
    letter-spacing: 0;
}
.text-ink-2 { color: var(--ink-2) !important; }
.text-ink-3 { color: var(--ink-3) !important; }
.small-2 { font-size: 0.82rem; }
.min-w-0 { min-width: 0; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s; }
::selection { background: #d6e7dd; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

/* Ornamen lama dinonaktifkan */
.ikat, .ikat-thin { display: none !important; }

/* ---------- Animasi ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(166, 61, 45, 0.45); } 60% { box-shadow: 0 0 0 6px rgba(166, 61, 45, 0); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }

/* Muncul bertahap saat halaman dibuka (diatur oleh ui.js) */
.js-anim :is(.kpi, .panel, .sk-row, .sk-card, .peg-row, .register, .cek-nama, .peg-card, .alert-tinjau, .banner) { opacity: 0; }
.js-anim :is(.kpi, .panel, .sk-row, .sk-card, .peg-row, .register, .cek-nama, .peg-card, .alert-tinjau, .banner).in {
    animation: rise 0.6s var(--ease) both; animation-delay: var(--d, 0ms);
}
.js-anim .hero h1, .js-anim .hero-lead, .js-anim .search-xl, .js-anim .hero-links { animation: rise 0.7s var(--ease) both; }
.js-anim .hero-lead { animation-delay: 80ms; }
.js-anim .search-xl { animation-delay: 160ms; }
.js-anim .hero-links { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js-anim :is(.kpi, .panel, .sk-row, .sk-card, .peg-row, .register, .cek-nama, .peg-card, .alert-tinjau, .banner) { opacity: 1; }
}

/* ---------- Tombol & form ---------- */
.btn {
    font-weight: 600; border-radius: var(--r-sm); padding: 0.55rem 1.05rem;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.32rem 0.7rem; font-size: 0.82rem; }
.btn-lg { padding: 0.75rem 1.4rem; }
.btn-primary {
    --bs-btn-bg: var(--beringin);
    --bs-btn-border-color: var(--beringin);
    --bs-btn-hover-bg: var(--beringin-d);
    --bs-btn-hover-border-color: var(--beringin-d);
    --bs-btn-active-bg: #0b281f;
    --bs-btn-active-border-color: #0b281f;
    --bs-btn-disabled-bg: var(--beringin);
    --bs-btn-disabled-border-color: var(--beringin);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 14px -8px rgba(22, 69, 55, 0.7);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 10px 20px -10px rgba(22, 69, 55, 0.8); }
.btn-outline-primary {
    --bs-btn-color: var(--beringin);
    --bs-btn-border-color: #bcd0c5;
    --bs-btn-hover-bg: var(--beringin);
    --bs-btn-hover-border-color: var(--beringin);
    --bs-btn-active-bg: var(--beringin);
}
.btn-emas {
    --bs-btn-color: #2b2110;
    --bs-btn-bg: var(--brass-l);
    --bs-btn-border-color: var(--brass-l);
    --bs-btn-hover-bg: #cdae75;
    --bs-btn-hover-border-color: #cdae75;
    --bs-btn-hover-color: #2b2110;
    --bs-btn-active-bg: #c2a266;
}
.btn-light-ink {
    --bs-btn-color: var(--ink-2);
    --bs-btn-bg: var(--surface);
    --bs-btn-border-color: var(--garis);
    --bs-btn-hover-bg: #f6f8f6;
    --bs-btn-hover-border-color: #cdd5cf;
    --bs-btn-hover-color: var(--ink);
    box-shadow: var(--sh-1);
}
.btn-outline-light { --bs-btn-border-color: rgba(255, 255, 255, 0.35); }

.form-control, .form-select {
    border-color: var(--garis);
    border-radius: var(--r-sm);
    padding: 0.58rem 0.85rem;
    background-color: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-select { padding-right: 2.25rem; }
.form-control::placeholder { color: #a3aca7; }
.form-control:hover, .form-select:hover { border-color: #ccd4ce; }
.form-control:focus, .form-select:focus {
    border-color: var(--beringin-2);
    box-shadow: 0 0 0 4px rgba(35, 103, 79, 0.12);
}
.form-label { font-weight: 600; font-size: 0.8rem; color: var(--ink-2); margin-bottom: 0.35rem; }
.form-text { color: var(--ink-3); font-size: 0.78rem; }
.req::after { content: " *"; color: var(--merah); }
.form-check-input:checked { background-color: var(--beringin); border-color: var(--beringin); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(35, 103, 79, 0.14); border-color: var(--beringin-2); }

/* ---------- Status & badge ---------- */
.st {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.74rem; font-weight: 700;
    padding: 0.24rem 0.62rem 0.24rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
    line-height: 1.2;
}
.st i { font-size: 0.78em; }
.st-berlaku { background: var(--beringin-3); color: var(--beringin); }
.st-tinjau { background: var(--amber-2); color: var(--amber); }
.st-diganti { background: var(--biru-2); color: var(--biru); }
.st-dicabut { background: var(--merah-2); color: var(--merah); }
.st-kedaluwarsa { background: var(--abu-2); color: var(--abu); }
.st-draf { background: var(--ungu-2); color: var(--ungu); }
.st-note { display: inline-block; margin-left: 0.35rem; font-size: 0.74rem; color: var(--amber); font-style: italic; }

.jn { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.jn i { color: var(--ink-3); }

.kat-chip { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 600; color: var(--ink-2); }
.kat-chip::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%;
    background: var(--kat); flex: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--kat) 18%, transparent);
}

.pg-status { font-size: 0.72rem; font-weight: 700; padding: 0.16rem 0.55rem; border-radius: 999px; }
.pg-aktif { background: var(--beringin-3); color: var(--beringin); }
.pg-nonaktif { background: var(--merah-2); color: var(--merah); }

.chip-diubah { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.74rem; font-weight: 700; color: var(--amber); }

/* ---------- Panel ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--garis);
    border-radius: var(--r-md);
    box-shadow: var(--sh-2);
}
.panel-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--garis-2);
}
.panel-head h2, .panel-head h3 { font-size: 1.12rem; margin: 0; }
.panel-body { padding: 1.25rem; }
.panel-foot { padding: 0.8rem 1.25rem; border-top: 1px solid var(--garis-2); background: #fafbfa; border-radius: 0 0 var(--r-md) var(--r-md); }

.empty { text-align: center; padding: 2.75rem 1rem; color: var(--ink-3); }
.empty i {
    font-size: 1.35rem; color: var(--beringin-2);
    display: grid; place-items: center; margin: 0 auto 0.75rem;
    width: 52px; height: 52px; border-radius: 50%;
    background: radial-gradient(circle, var(--beringin-3) 60%, transparent 61%), repeating-radial-gradient(circle, transparent 0 4px, rgba(35, 103, 79, 0.1) 4px 5px);
}
.empty strong { display: block; color: var(--ink); margin-bottom: 0.25rem; font-weight: 700; }

/* ---------- Flash ---------- */
.flash {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.85rem 1rem; border-radius: var(--r-md);
    margin-bottom: 1rem; font-size: 0.9rem;
    border: 1px solid; box-shadow: var(--sh-1);
    animation: rise 0.4s var(--ease) both;
}
.flash i { font-size: 1.05rem; line-height: 1.35; }
.flash .btn-close { margin-left: auto; font-size: 0.65rem; }
.flash-success { background: #f1f8f4; border-color: #cfe2d6; color: #143d30; }
.flash-error { background: #fdf3f0; border-color: #efcfc7; color: #7a2b1f; }
.flash-warning { background: #fdf7ea; border-color: #f0dfb5; color: #6a4500; }
.flash-info { background: #f0f5f9; border-color: #cfdfea; color: #234a62; }

/* ---------- Nomor urut daftar ---------- */
.no, .tbl .no {
    width: 48px; text-align: center; color: var(--ink-3);
    font-variant-numeric: tabular-nums; font-weight: 600; font-size: 0.82rem;
}
.list-plain.numbered { counter-reset: no var(--start, 0); }
.list-plain.numbered > li { counter-increment: no; position: relative; padding-left: 3.2rem; }
.list-plain.numbered > li::before {
    content: counter(no); position: absolute; left: 1.25rem; top: 0.95rem;
    width: 1.5rem; text-align: center;
    font-size: 0.8rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   PUBLIK
   ========================================================================== */
.pub-nav {
    background: var(--beringin-d);
    color: #fff;
    position: sticky; top: 0; z-index: 1030;
    border-bottom: 1px solid rgba(216, 189, 138, 0.25);
    box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.6);
}
.pub-nav .navbar { padding: 0.7rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 40px; height: 40px; flex: none;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #2a6b55, var(--beringin-d) 70%);
    box-shadow: 0 0 0 1px rgba(216, 189, 138, 0.6), 0 0 0 4px rgba(216, 189, 138, 0.12);
    display: grid; place-items: center;
    color: var(--brass-l); font-size: 1.15rem;
}
.brand-text { line-height: 1.15; }
.brand-text b { font-family: var(--f-serif); font-size: 1.2rem; font-weight: 600; display: block; letter-spacing: 0; }
.brand-text span { font-size: 0.74rem; color: #a9c4b8; }

.pub-nav .nav-link {
    color: #cfe0d8; font-weight: 500; font-size: 0.9rem;
    padding: 0.5rem 0.9rem !important; border-radius: 999px;
    position: relative;
}
.pub-nav .nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.pub-nav .nav-link.active { color: #fff; background: rgba(216, 189, 138, 0.16); box-shadow: inset 0 0 0 1px rgba(216, 189, 138, 0.35); }
.pub-nav .navbar-toggler { border-color: rgba(255, 255, 255, 0.3); }
.pub-nav .navbar-toggler-icon { filter: invert(1); }

/* Hero */
.hero {
    background: var(--guilloche), radial-gradient(120% 90% at 85% 0%, #22604c 0%, var(--beringin) 45%, var(--beringin-d) 100%);
    color: #dbe8e2;
    padding: 4rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 189, 138, 0.6), transparent);
}
.hero > .container { position: relative; }
.hero h1 {
    color: #fff;
    font-size: clamp(2.1rem, 4.4vw, 3.5rem);
    line-height: 1.04;
    font-weight: 500;
    letter-spacing: -0.025em;
    max-width: 15ch;
    margin-bottom: 1.1rem;
}
.hero-lead { font-size: 1.04rem; color: #b9cfc5; max-width: 50ch; margin-bottom: 2rem; }

.search-xl {
    display: flex; gap: 0.5rem;
    background: #fff;
    padding: 0.45rem;
    border-radius: 14px;
    box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08);
    max-width: 640px;
    transition: box-shadow 0.2s;
}
.search-xl .input-wrap { position: relative; flex: 1; }
.search-xl .input-wrap i { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 1.05rem; }
.search-xl input {
    border: 0; width: 100%; height: 100%;
    padding: 0.85rem 0.8rem 0.85rem 2.7rem;
    font-size: 1rem; color: var(--ink); background: transparent; border-radius: var(--r-sm);
}
.search-xl input:focus { outline: none; }
.search-xl:focus-within { box-shadow: 0 0 0 3px rgba(216, 189, 138, 0.7), 0 24px 48px -24px rgba(0, 0, 0, 0.55); }
.search-xl .btn { padding: 0.7rem 1.5rem; border-radius: 10px; }

.hero-links { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.hero-links span { color: #92b2a4; font-size: 0.84rem; margin-right: 0.25rem; }
.hero-links a {
    color: #e2ede8; text-decoration: none; font-size: 0.82rem; font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.8rem; border-radius: 999px;
    transition: background 0.15s, border-color 0.15s;
}
.hero-links a:hover { background: rgba(216, 189, 138, 0.16); border-color: rgba(216, 189, 138, 0.5); color: #fff; }

/* Register status */
.register {
    background: #fff; color: var(--ink);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-3), 0 0 0 1px rgba(255, 255, 255, 0.06);
    position: relative;
}
.register::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--beringin-2), var(--brass-l));
}
.register-head { padding: 1.15rem 1.35rem 0.85rem; }
.register-head h2 { font-size: 1.15rem; margin: 0; }
.register-head p { margin: 0.15rem 0 0; font-size: 0.78rem; color: var(--ink-3); }
.register-row {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.75rem 1.35rem;
    text-decoration: none; color: var(--ink);
    border-top: 1px solid var(--garis-2);
    transition: background 0.15s;
}
.register-row:hover { background: #f7f9f7; color: var(--ink); }
.register-row .mark { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.register-row .lbl { flex: 1; font-weight: 600; font-size: 0.9rem; }
.register-row .lbl small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.76rem; }
.register-row .val { font-family: var(--f-serif); font-size: 1.65rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.register-foot {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: 0.8rem 1.35rem; font-size: 0.8rem; color: var(--ink-3);
    background: #f8faf8; border-top: 1px solid var(--garis-2);
}

/* Section */
.sec { padding: 3.25rem 0; }
.sec-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.sec-title h2 { font-size: 1.65rem; margin: 0; }
.sec-title p { margin: 0.25rem 0 0; color: var(--ink-3); font-size: 0.88rem; }

/* Cek nama */
.cek-nama {
    margin-top: -2.75rem; position: relative; z-index: 2;
    background: #fff;
    border: 1px solid var(--garis);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-3);
    padding: 1.5rem;
    display: grid; gap: 1rem 2rem; grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 992px) { .cek-nama { grid-template-columns: 1.1fr 1fr; padding: 1.6rem 2rem; } }
.cek-nama h2 { font-size: 1.4rem; margin: 0 0 0.2rem; }
.cek-nama p { margin: 0; color: var(--ink-3); }
.cek-nama form { display: flex; gap: 0.5rem; }

/* Indeks kategori */
.idx-list { list-style: none; margin: 0; padding: 0; columns: 1; column-gap: 2rem; }
@media (min-width: 768px) { .idx-list { columns: 2; } }
.idx-list li { break-inside: avoid; }
.idx-list a {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.78rem 0.5rem; margin: 0 -0.5rem;
    border-bottom: 1px solid var(--garis);
    text-decoration: none; color: var(--ink); border-radius: 6px;
    transition: background 0.15s, padding 0.2s var(--ease);
}
.idx-list a:hover { background: #fff; padding-left: 0.85rem; }
.idx-list .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.idx-list .idx-name { flex: 1; font-weight: 500; }
.idx-list .idx-count { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 0.85rem; }
.idx-list .idx-count b { color: var(--ink); font-weight: 700; }

/* Baris SK */
.sk-list { display: flex; flex-direction: column; gap: 0.7rem; }
.sk-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 1rem;
    background: var(--surface);
    border: 1px solid var(--garis);
    border-radius: var(--r-md);
    padding: 1rem 1.2rem;
    text-decoration: none; color: var(--ink);
    position: relative;
    box-shadow: var(--sh-1);
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.sk-row.has-no { grid-template-columns: 34px 64px 1fr; }
.sk-row:hover { border-color: #b9cdc1; box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.sk-row:hover .sk-perihal { color: var(--beringin); }
.sk-row.is-off { background: #fbfcfb; }
.sk-row.is-off .sk-perihal { color: var(--ink-2); }
.sk-no {
    align-self: start; padding-top: 0.35rem;
    font-size: 0.82rem; font-weight: 700; color: var(--ink-3);
    font-variant-numeric: tabular-nums; text-align: center;
}
.sk-date { text-align: center; border-right: 1px solid var(--garis-2); padding-right: 1rem; line-height: 1.1; }
.sk-date b { display: block; font-family: var(--f-serif); font-size: 1.7rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; color: var(--beringin); }
.sk-date span { font-size: 0.72rem; color: var(--ink-3); }
.sk-nomor { font-size: 0.86rem; color: var(--ink-2); font-family: var(--f-serif); font-weight: 600; font-variant-numeric: tabular-nums; }
.sk-perihal { font-weight: 600; font-size: 0.98rem; line-height: 1.42; margin: 0.15rem 0 0.55rem; transition: color 0.15s; }
.sk-meta { display: flex; flex-wrap: wrap; gap: 0.45rem 1rem; align-items: center; font-size: 0.78rem; color: var(--ink-3); }
@media (max-width: 575.98px) {
    .sk-row, .sk-row.has-no { grid-template-columns: 1fr; gap: 0.4rem; }
    .sk-no { text-align: left; padding: 0; }
    .sk-no::before { content: "No. "; font-weight: 500; }
    .sk-date { text-align: left; border-right: 0; padding: 0; display: flex; gap: 0.4rem; align-items: baseline; }
    .sk-date b { font-size: 1rem; display: inline; }
}

/* Arsip per tahun */
.tahun-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.tahun-bar {
    display: grid; grid-template-columns: 52px 1fr 40px; gap: 0.75rem; align-items: center;
    text-decoration: none; color: var(--ink); font-size: 0.86rem; padding: 0.2rem 0;
}
.tahun-bar:hover { color: var(--beringin); }
.tahun-bar .yr { font-weight: 700; font-variant-numeric: tabular-nums; }
.tahun-bar .track { height: 8px; background: var(--abu-2); border-radius: 999px; overflow: hidden; display: flex; }
.tahun-bar .track > span { transform-origin: left; animation: grow 0.9s var(--ease) both; animation-delay: 0.2s; }
.tahun-bar .seg-tim { background: var(--beringin-2); }
.tahun-bar .seg-ped { background: var(--brass); }
.tahun-bar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.legend { display: flex; gap: 1rem; font-size: 0.78rem; color: var(--ink-3); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; vertical-align: 0; }

/* Halaman daftar */
.page-head {
    background: var(--guilloche), linear-gradient(180deg, var(--beringin) 0%, var(--beringin-d) 100%);
    color: #d8e6df;
    padding: 2.25rem 0 2rem;
}
.page-head h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; color: #fff; font-weight: 500; }
.page-head p { margin: 0.4rem 0 0; color: #b4cbc0; max-width: 70ch; }
.crumb { font-size: 0.8rem; color: #9dbcae; margin-bottom: 0.5rem; }
.crumb a { color: #c7dbd1; text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; }
.page-head .profile-head h1 { color: #fff; }
.page-head .profile-stats div span { color: #a9c4b8; }
.page-head .profile-stats div b { color: #fff; }

.filter-box { position: sticky; top: 88px; }
.filter-box .form-label { margin-top: 0.9rem; }
.filter-box .form-label:first-of-type { margin-top: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
    font-size: 0.8rem; font-weight: 600; color: var(--ink-2);
    padding: 0.32rem 0.75rem; border: 1px solid var(--garis); border-radius: 999px;
    cursor: pointer; background: #fff; transition: all 0.15s;
}
.seg label:hover { border-color: #c5cfc8; }
.seg input:checked + label { background: var(--beringin); border-color: var(--beringin); color: #fff; box-shadow: 0 4px 10px -6px rgba(22, 69, 55, 0.8); }
.seg input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; }

.result-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.9rem; color: var(--ink-2); }
.active-filter {
    display: inline-flex; align-items: center; gap: 0.35rem;
    background: var(--beringin-3); color: var(--beringin);
    border-radius: 999px; padding: 0.16rem 0.35rem 0.16rem 0.75rem;
    font-size: 0.78rem; font-weight: 600; text-decoration: none; margin: 0.15rem 0.2rem 0.15rem 0;
}
.active-filter i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 69, 55, 0.12); font-size: 0.62rem; }
.active-filter:hover { background: #d6e7dd; color: var(--beringin); }

/* Detail SK */
.doc-head {
    background: var(--guilloche), linear-gradient(180deg, var(--beringin) 0%, var(--beringin-d) 100%);
    color: #d8e6df;
    padding: 2.25rem 0 2.1rem;
}
.doc-head .crumb { margin-bottom: 0.9rem; }
.doc-head .nomor-sk { font-size: 0.98rem; color: var(--brass-l); }
.doc-head h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.18; max-width: 36ch; margin: 0.35rem 0 1rem; color: #fff; font-weight: 500; }
.doc-head .jn, .doc-head .kat-chip, .doc-head .text-ink-3 { color: #c5d8cf !important; }
.doc-head .jn i { color: #9dbcae; }

.banner {
    display: flex; gap: 0.9rem; align-items: flex-start;
    border-radius: var(--r-md); padding: 1rem 1.15rem; margin-bottom: 1.25rem;
    border: 1px solid; box-shadow: var(--sh-1);
}
.banner > i { font-size: 1.15rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, 0.65); }
.banner b { display: block; margin-bottom: 0.1rem; }
.banner p { margin: 0; font-size: 0.88rem; }
.banner a { color: inherit; font-weight: 700; }
.banner-diganti { background: #f2f7fa; border-color: #d3e2ec; color: #234a62; }
.banner-dicabut { background: #fdf4f1; border-color: #efd0c8; color: #7a2b1f; }
.banner-kedaluwarsa { background: #f6f7f6; border-color: var(--garis); color: var(--ink-2); }
.banner-tinjau, .banner-ubah { background: #fdf8ec; border-color: #f0e0b8; color: #5d3c00; }
.banner-draf { background: #f7f4fc; border-color: #e1d7f2; color: #43306a; }

.meta-list { margin: 0; }
.meta-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 0.75rem; padding: 0.65rem 0; border-bottom: 1px dashed var(--garis); }
.meta-list > div:last-child { border-bottom: 0; }
.meta-list dt { font-weight: 500; color: var(--ink-3); font-size: 0.84rem; }
.meta-list dd { margin: 0; font-size: 0.9rem; }
@media (max-width: 575.98px) { .meta-list > div { grid-template-columns: 1fr; gap: 0.1rem; } }

.pdf-frame { width: 100%; height: 78vh; min-height: 520px; border: 1px solid var(--garis); border-radius: var(--r-md); background: #e9ece9; }
.pdf-missing { border: 1.5px dashed #cfd7d1; border-radius: var(--r-md); padding: 3rem 1rem; text-align: center; color: var(--ink-3); background: #fafbfa; }

/* Tabel */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.89rem; }
.tbl th {
    font-size: 0.74rem; font-weight: 700; color: var(--ink-3);
    text-align: left; padding: 0.7rem 0.8rem;
    border-bottom: 1px solid var(--garis); background: #f8faf8;
    white-space: nowrap; letter-spacing: 0.01em;
}
.tbl td { padding: 0.8rem; border-bottom: 1px solid var(--garis-2); vertical-align: middle; transition: background 0.15s; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #f8fbf9; }
.tbl .is-off td { background: #fdf7f5; }
.tbl .is-off:hover td { background: #fbefeb; }
.tbl tbody tr { position: relative; }
.tbl-admin tbody tr td:first-child { box-shadow: inset 3px 0 0 transparent; transition: box-shadow 0.2s; }
.tbl-admin tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--beringin-2); }

.person { display: flex; align-items: center; gap: 0.7rem; }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #e3eee8, #d2e4da); color: var(--beringin);
    font-weight: 700; font-size: 0.74rem; letter-spacing: 0.02em;
}
.avatar.lg { width: 68px; height: 68px; font-size: 1.3rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12); }
.avatar.off { background: linear-gradient(135deg, #f9ebe7, #f2d9d2); color: var(--merah); }
.person b { display: block; font-weight: 600; line-height: 1.25; }
.person small { color: var(--ink-3); font-size: 0.76rem; }
.peran { font-weight: 600; }

/* Riwayat versi */
.versi { list-style: none; padding: 0; margin: 0; position: relative; }
.versi::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--garis); border-radius: 2px; }
.versi li { position: relative; padding: 0 0 1rem 1.75rem; }
.versi li:last-child { padding-bottom: 0; }
.versi li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #c9d2cc; }
.versi li.current::before { border-color: var(--beringin); background: var(--beringin); box-shadow: 0 0 0 4px var(--beringin-3); }
.versi a { text-decoration: none; }
.versi .v-nomor { font-family: var(--f-serif); font-weight: 600; font-size: 0.92rem; display: block; color: var(--ink); }
.versi .v-meta { font-size: 0.76rem; color: var(--ink-3); }

/* Pegawai publik */
.peg-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.peg-card {
    display: flex; gap: 0.85rem; align-items: center;
    background: var(--surface); border: 1px solid var(--garis); border-radius: var(--r-md);
    padding: 0.95rem 1rem; text-decoration: none; color: var(--ink); box-shadow: var(--sh-1);
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.peg-card:hover { border-color: #b9cdc1; box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.peg-card:hover b { color: var(--beringin); }
.peg-card .info { flex: 1; min-width: 0; }
.peg-card b { display: block; font-weight: 600; line-height: 1.3; }
.peg-card small { display: block; color: var(--ink-3); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peg-card .count { text-align: center; line-height: 1; }
.peg-card .count b { font-family: var(--f-serif); font-size: 1.4rem; color: var(--beringin); }
.peg-card .count span { font-size: 0.68rem; color: var(--ink-3); }

.profile-head { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.profile-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 0.25rem; }
.profile-stats div b { font-family: var(--f-serif); font-size: 1.7rem; display: block; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.profile-stats div span { font-size: 0.78rem; color: var(--ink-3); }

/* Footer */
.pub-foot { background: var(--beringin-d); color: #a3bfb2; margin-top: 3rem; font-size: 0.86rem; border-top: 1px solid rgba(216, 189, 138, 0.25); }
.pub-foot .container { padding-top: 2rem; padding-bottom: 2rem; }
.pub-foot b { color: #fff; font-family: var(--f-serif); font-weight: 600; font-size: 1.05rem; }
.pub-foot a { color: #d5e3dc; }

/* Paginasi */
.pagination-esk { gap: 0.3rem; }
.pagination-esk .page-link {
    color: var(--ink-2); border: 1px solid var(--garis); border-radius: var(--r-sm) !important;
    font-weight: 600; font-size: 0.85rem; min-width: 38px; text-align: center; background: #fff; box-shadow: var(--sh-1);
}
.pagination-esk .page-item.active .page-link { background: var(--beringin); border-color: var(--beringin); color: #fff; }
.pagination-esk .page-link:hover { background: var(--beringin-3); color: var(--beringin); }

/* ==========================================================================
   LOGIN
   ========================================================================== */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr; background: #fff; }
@media (min-width: 992px) { .login-wrap { grid-template-columns: 1.05fr 1fr; } }
.login-art {
    background: var(--guilloche), radial-gradient(120% 90% at 85% 0%, #22604c 0%, var(--beringin) 45%, var(--beringin-d) 100%);
    color: #cfe0d8; padding: 3rem; display: none; position: relative;
    flex-direction: column; justify-content: space-between;
}
@media (min-width: 992px) { .login-art { display: flex; } }
.login-art h1 { color: #fff; font-size: 2.7rem; max-width: 13ch; line-height: 1.05; font-weight: 500; letter-spacing: -0.02em; }
.login-art p { max-width: 42ch; color: #b4cbc0; }
.login-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.login-card { width: 100%; max-width: 380px; animation: rise 0.6s var(--ease) both; }
.login-card h2 { font-size: 1.9rem; margin-bottom: 0.25rem; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.adm { display: flex; min-height: 100vh; }
.adm-side {
    width: 264px; flex: none;
    background:
        repeating-radial-gradient(circle at 50% 115%, rgba(216, 189, 138, 0.07) 0 1px, transparent 1px 12px) bottom / 100% 260px no-repeat,
        linear-gradient(180deg, #154236 0%, #0e3027 100%);
    color: #bcd1c7;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    border-right: 1px solid rgba(216, 189, 138, 0.18);
}
.adm-side .brand { padding: 1.2rem 1.35rem 1rem; }
.adm-side .brand-mark { width: 38px; height: 38px; font-size: 1.05rem; }
.adm-nav { padding: 0.5rem 0.8rem; flex: 1; overflow-y: auto; }
.adm-nav .grp { font-size: 0.7rem; color: #7d9d90; padding: 1.1rem 0.8rem 0.4rem; font-weight: 700; letter-spacing: 0.04em; }
.adm-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.58rem 0.8rem; border-radius: 10px; margin-bottom: 2px;
    color: #c3d6cd; text-decoration: none; font-weight: 500; font-size: 0.89rem;
    position: relative; transition: background 0.15s, color 0.15s;
}
.adm-nav a i { font-size: 1rem; width: 20px; text-align: center; color: #86a99a; transition: color 0.15s; }
.adm-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.adm-nav a:hover i { color: #cfe0d8; }
.adm-nav a.active { background: linear-gradient(90deg, rgba(216, 189, 138, 0.18), rgba(216, 189, 138, 0.04)); color: #fff; }
.adm-nav a.active::before { content: ""; position: absolute; left: -0.8rem; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brass-l); }
.adm-nav a.active i { color: var(--brass-l); }
.adm-nav .cnt {
    margin-left: auto; background: var(--brass-l); color: #2b2110;
    font-size: 0.68rem; font-weight: 800; border-radius: 999px; padding: 0.08rem 0.45rem; min-width: 20px; text-align: center;
}
.adm-side-foot { padding: 1rem 1.35rem; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 0.84rem; }
.adm-side-foot a { color: #bcd1c7; text-decoration: none; }
.adm-side-foot a:hover { color: #fff; }

.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-top {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--garis);
    padding: 0.85rem 1.75rem;
    display: flex; align-items: center; gap: 1rem;
    position: sticky; top: 0; z-index: 20;
}
.adm-top h1 { font-size: 1.4rem; margin: 0; flex: 1; font-weight: 600; }
.adm-top .user { display: flex; align-items: center; gap: 0.6rem; font-size: 0.86rem; border-radius: 999px; padding: 0.25rem 0.75rem 0.25rem 0.3rem; }
.adm-content { padding: 1.75rem; flex: 1; max-width: 1600px; width: 100%; }
@media (max-width: 991.98px) {
    .adm-side { position: fixed; left: -290px; z-index: 1050; transition: left 0.25s var(--ease); }
    .adm-side.show { left: 0; box-shadow: 0 0 60px rgba(0, 0, 0, 0.35); }
    .adm-backdrop { position: fixed; inset: 0; background: rgba(10, 25, 20, 0.4); backdrop-filter: blur(2px); z-index: 1040; display: none; }
    .adm-backdrop.show { display: block; }
    .adm-content { padding: 1rem; }
    .adm-top { padding: 0.7rem 1rem; }
}

/* KPI */
.kpi-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1200px) { .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } }
.kpi {
    background: var(--surface); border: 1px solid var(--garis); border-radius: var(--r-md);
    padding: 1.05rem 1.2rem 1.1rem; text-decoration: none; color: var(--ink);
    display: flex; flex-direction: column; gap: 0.15rem;
    position: relative; overflow: hidden; box-shadow: var(--sh-2);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--k, var(--beringin)); }
.kpi::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: repeating-radial-gradient(circle, color-mix(in srgb, var(--k, var(--beringin)) 14%, transparent) 0 1px, transparent 1px 8px);
    opacity: 0.55; pointer-events: none;
}
.kpi:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--sh-3); border-color: #cdd7d0; }
.kpi .lbl { font-size: 0.8rem; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 0.45rem; }
.kpi .lbl i { color: var(--k, var(--beringin)); }
.kpi .val { font-family: var(--f-serif); font-size: 2.3rem; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums lining-nums; margin-top: 0.2rem; }
.kpi .sub { font-size: 0.76rem; color: var(--ink-3); }

.alert-tinjau {
    background: linear-gradient(90deg, #fdf6e6, #fffaf0); border: 1px solid #efdcac; border-radius: var(--r-md);
    padding: 1rem 1.25rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 1.25rem; box-shadow: var(--sh-1);
}
.alert-tinjau i.big {
    font-size: 1.2rem; color: var(--amber); width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; background: #fff; animation: pulse-dot 2.4s infinite;
}
.alert-tinjau .txt { flex: 1; min-width: 240px; color: #6a4800; font-size: 0.9rem; }
.alert-tinjau .txt b { display: block; color: #4a3200; }

.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain > li { padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--garis-2); transition: background 0.15s; }
.list-plain > li:hover { background: #fafcfa; }
.list-plain > li:last-child { border-bottom: 0; }
.list-plain a.title { color: var(--ink); text-decoration: none; font-weight: 600; }
.list-plain a.title:hover { color: var(--beringin); text-decoration: underline; }
.alasan { font-size: 0.8rem; color: var(--amber); margin-top: 0.25rem; white-space: pre-line; }

.log-item { display: flex; gap: 0.75rem; font-size: 0.84rem; }
.log-item .ic { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--beringin-3); color: var(--beringin-2); font-size: 0.8rem; }
.log-item small { color: var(--ink-3); }

.status-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--garis); margin-bottom: 1.1rem; }
.status-tabs a {
    padding: 0.65rem 0.95rem; text-decoration: none; color: var(--ink-3); font-weight: 600; font-size: 0.86rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.2s;
}
.status-tabs a:hover { color: var(--ink); border-bottom-color: var(--garis); }
.status-tabs a.active { color: var(--beringin); border-bottom-color: var(--beringin); }
.status-tabs a .n {
    font-weight: 700; color: var(--ink-3); margin-left: 0.4rem; font-variant-numeric: tabular-nums;
    font-size: 0.72rem; background: var(--abu-2); border-radius: 999px; padding: 0.06rem 0.45rem;
}
.status-tabs a.active .n { background: var(--beringin-3); color: var(--beringin); }

.tbl-wrap { overflow-x: auto; }
.tbl-admin td .nomor-sk { font-size: 0.9rem; display: block; }
.tbl-admin td .perihal { color: var(--ink-2); font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 50ch; }
.act { display: flex; gap: 0.3rem; justify-content: flex-end; }
.act .btn { padding: 0.28rem 0.5rem; }

/* Form SK */
.form-section { padding: 1.35rem 1.35rem; border-bottom: 1px solid var(--garis-2); }
.form-section:last-child { border-bottom: 0; }
.form-section h3 { font-family: var(--f-sans); font-size: 0.96rem; font-weight: 700; margin-bottom: 0.15rem; letter-spacing: -0.01em; }
.form-section > p { color: var(--ink-3); font-size: 0.82rem; margin-bottom: 1rem; }

.jenis-pick, .relasi-pick { display: grid; gap: 0.7rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 1200px) { .relasi-pick { grid-template-columns: repeat(4, 1fr); } }
.jenis-pick input, .relasi-pick input { position: absolute; opacity: 0; }
.jenis-pick label, .relasi-pick label {
    display: flex; gap: 0.75rem; align-items: flex-start; height: 100%;
    border: 1.5px solid var(--garis); border-radius: var(--r-md);
    padding: 0.9rem 1rem; cursor: pointer; background: #fff;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.2s;
}
.relasi-pick label { flex-direction: column; gap: 0.2rem; padding: 0.8rem 0.9rem; }
.jenis-pick label:hover, .relasi-pick label:hover { border-color: #c5d1c9; }
.jenis-pick label i, .relasi-pick label i { font-size: 1.25rem; color: var(--ink-3); }
.jenis-pick label b, .relasi-pick label b { display: block; font-size: 0.9rem; }
.jenis-pick label small, .relasi-pick label small { color: var(--ink-3); font-size: 0.76rem; line-height: 1.35; }
.jenis-pick input:checked + label, .relasi-pick input:checked + label { border-color: var(--beringin); background: #f4f9f6; box-shadow: 0 0 0 4px rgba(35, 103, 79, 0.08); }
.jenis-pick input:checked + label i, .relasi-pick input:checked + label i { color: var(--beringin); }
.jenis-pick input:focus-visible + label, .relasi-pick input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; }
.relasi-efek { font-size: 0.82rem; border-radius: var(--r-sm); padding: 0.65rem 0.85rem; background: #fafbfa; border: 1px dashed #cfd7d1; }

.anggota-table td { padding: 0.5rem; }
.anggota-table .handle { color: var(--ink-3); width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.anggota-table .form-control, .anggota-table .form-select { padding: 0.42rem 0.6rem; font-size: 0.86rem; }
.anggota-table tr.table-warning td { background: #fff4d6; }

.dropzone {
    border: 1.5px dashed #cbd4ce; border-radius: var(--r-md);
    padding: 1.5rem; text-align: center; background: #fafbfa; cursor: pointer;
    position: relative; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--beringin-2); background: #f2f8f4; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone i { font-size: 1.7rem; color: var(--beringin-2); }
.dropzone .fname { font-weight: 600; color: var(--beringin); margin-top: 0.35rem; }

.sticky-actions {
    position: sticky; bottom: 0; z-index: 10;
    background: rgba(243, 245, 243, 0.88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--garis);
    padding: 0.9rem 0; margin-top: 1rem;
}

/* Select2 */
.select2-container--bootstrap-5 .select2-selection { border-color: var(--garis); border-radius: var(--r-sm); min-height: calc(1.5em + 1.16rem + 2px); }
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: var(--beringin-2); box-shadow: 0 0 0 4px rgba(35, 103, 79, 0.12); }
.select2-container--bootstrap-5 .select2-dropdown { border-color: var(--garis); border-radius: var(--r-sm); box-shadow: var(--sh-3); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted { background: var(--beringin-3); color: var(--ink); }
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected { background: var(--beringin); color: #fff; }
.s2-opt b { display: block; font-weight: 600; }
.s2-opt small { color: var(--ink-3); }
.select2-results__option--highlighted .s2-opt small { color: var(--ink-2); }
.select2-results__option--selected .s2-opt small { color: #d5e3dc; }

.color-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; vertical-align: -1px; }

/* Modal & dropdown */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(10, 30, 24, 0.45); }
.modal-header { border-bottom-color: var(--garis-2); padding: 1.1rem 1.35rem; }
.modal-body { padding: 1.25rem 1.35rem; }
.modal-footer { border-top-color: var(--garis-2); padding: 0.85rem 1.35rem; }
.modal-backdrop.show { opacity: 0.4; }
.dropdown-menu { border-color: var(--garis); border-radius: var(--r-md); box-shadow: var(--sh-3); padding: 0.4rem; }
.dropdown-item { border-radius: 8px; padding: 0.5rem 0.75rem; font-size: 0.88rem; }
.dropdown-item:active { background: var(--beringin); }
.nav-tabs .nav-link { color: var(--ink-3); font-weight: 600; }
.nav-tabs .nav-link.active { color: var(--beringin); }

/* ---------- Keterkaitan SK ---------- */
.relasi-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.relasi-list li {
    display: flex; gap: 0.75rem; align-items: flex-start;
    padding: 0.75rem 0.85rem; border: 1px solid var(--garis-2);
    border-radius: var(--r-sm); background: #fcfdfc;
    position: relative;
}
.relasi-list li::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--rl, var(--garis)); }
.relasi-list .rl-ic { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 0.85rem; background: var(--rl-bg, var(--abu-2)); color: var(--rl, var(--ink-2)); }
.relasi-list .rl-label { display: block; font-size: 0.74rem; font-weight: 700; color: var(--rl, var(--ink-2)); }
.relasi-list .rl-nomor { display: block; font-family: var(--f-serif); font-weight: 600; font-size: 0.92rem; color: var(--ink); text-decoration: none; word-break: break-word; }
.relasi-list .rl-nomor:hover { color: var(--beringin); text-decoration: underline; }
.relasi-list .rl-perihal { display: block; font-size: 0.83rem; color: var(--ink-2); line-height: 1.35; }
.relasi-list .rl-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.74rem; color: var(--ink-3); margin-top: 0.3rem; }
.relasi-list .rl-meta .st { font-size: 0.68rem; padding: 0.1rem 0.45rem; }
.relasi-list .rl-meta .st-note { display: none; }
.rl-ganti { --rl: var(--biru); --rl-bg: var(--biru-2); }
.rl-ubah { --rl: var(--amber); --rl-bg: var(--amber-2); }
.rl-cabut { --rl: var(--merah); --rl-bg: var(--merah-2); }

/* ---------- Review ---------- */
.rv {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; font-weight: 700; padding: 0.16rem 0.5rem;
    border-radius: 6px; border: 1px solid transparent; white-space: nowrap;
}
.rv i { font-size: 0.8em; }
.rv-belum { color: var(--ink-3); border-color: var(--garis); background: #fff; border-style: dashed; }
.rv-perbaikan { color: var(--merah); border-color: #efd0c8; background: var(--merah-2); }
.rv-verifikasi { color: var(--biru); border-color: #d0e0ea; background: var(--biru-2); }
.rv-sesuai { color: var(--beringin); border-color: #cbe0d3; background: var(--beringin-3); }

.rv-list { display: flex; flex-direction: column; }
.rv-item { padding: 1.05rem 1.25rem 1.05rem 1.35rem; border-bottom: 1px solid var(--garis-2); position: relative; scroll-margin-top: 90px; transition: background 0.3s; }
.rv-item::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.rv-item:last-child { border-bottom: 0; }
.rv-item-terbuka::before { background: var(--merah); }
.rv-item-ditindaklanjuti::before { background: var(--biru); }
.rv-item-selesai::before { background: var(--beringin-2); }
.rv-item-selesai { background: #fbfcfb; }
.rv-item:target { background: #fffaea; }
.rv-isi { font-size: 0.9rem; line-height: 1.58; }
.rv-tingkat { font-size: 0.7rem; font-weight: 600; color: var(--ink-3); background: var(--abu-2); border-radius: 5px; padding: 0.06rem 0.42rem; }
.rv-wajib { color: var(--merah); background: var(--merah-2); }
.rv-saran { color: var(--biru); background: var(--biru-2); }
.rv-thread { list-style: none; margin: 0.8rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--garis); display: flex; flex-direction: column; gap: 0.65rem; }
.rv-thread li { font-size: 0.85rem; }
.rv-form { margin-top: 0.8rem; padding: 0.8rem; background: #f8faf8; border: 1px solid var(--garis-2); border-radius: var(--r-sm); }

.toggle-row { display: flex; gap: 1.5rem; align-items: flex-start; justify-content: space-between; padding: 1.05rem 0; border-top: 1px solid var(--garis-2); }
.toggle-row:first-of-type { border-top: 0; }
.toggle-row b { display: block; font-size: 0.94rem; }
.toggle-row span { display: block; font-size: 0.82rem; color: var(--ink-3); margin-top: 0.15rem; max-width: 56ch; }
.toggle-row.sub { padding-left: 1.25rem; border-left: 3px solid var(--garis-2); transition: opacity 0.2s; }
.toggle-row .form-switch .form-check-input { width: 2.7em; height: 1.45em; cursor: pointer; }

/* Animasi bilah persen (komposisi, rekap) */
.bar-anim > span { transform-origin: left; animation: grow 0.9s var(--ease) both; animation-delay: 0.25s; }

@media print {
    .pub-nav, .pub-foot, .filter-box, .no-print, .adm-side, .adm-top { display: none !important; }
    .panel { box-shadow: none; }
}


/* ---------- Penampil PDF ---------- */
.pdfv { border: 1px solid var(--garis); border-radius: var(--r-md); overflow: hidden; background: #e6eae7; }
.pdfv-bar {
    display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.65rem; background: #fff; border-bottom: 1px solid var(--garis);
    position: relative; z-index: 2;
}
.pdfv-grp { display: flex; align-items: center; gap: 0.25rem; }
.pdfv-btn, .pdfv-zoom {
    border: 1px solid transparent; background: transparent; color: var(--ink-2);
    min-width: 32px; height: 32px; border-radius: 8px; display: inline-grid; place-items: center;
    font-size: 0.9rem; text-decoration: none; transition: background 0.15s, color 0.15s;
}
.pdfv-btn:hover, .pdfv-zoom:hover { background: var(--beringin-3); color: var(--beringin); }
.pdfv-zoom { font-size: 0.78rem; font-weight: 700; padding: 0 0.5rem; font-variant-numeric: tabular-nums; min-width: 54px; border-color: var(--garis); }
.pdfv-page { font-size: 0.82rem; color: var(--ink-3); display: inline-flex; align-items: center; gap: 0.3rem; font-variant-numeric: tabular-nums; }
.pdfv-input { width: 42px; height: 30px; text-align: center; border: 1px solid var(--garis); border-radius: 6px; font-weight: 600; color: var(--ink); }
.pdfv-input:focus { outline: none; border-color: var(--beringin-2); box-shadow: 0 0 0 3px rgba(35, 103, 79, 0.12); }
.pdfv:not(.pdfv-siap) .pdfv-bar [data-act], .pdfv:not(.pdfv-siap) .pdfv-input { opacity: 0.45; pointer-events: none; }
.pdfv-gagal .pdfv-bar { display: none; }

.pdfv-pages {
    height: 78vh; min-height: 480px; overflow: auto; padding: 16px; position: relative;
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    scroll-behavior: smooth;
}
.pdfv-pages:focus { outline: none; }
.pdfv-pages.pdfv-iframe { padding: 0; }
.pdfv-pages.pdfv-iframe .pdf-frame { height: 100%; min-height: 480px; border: 0; border-radius: 0; }
.pdfv-pg {
    background: #fff; flex: none; position: relative; max-width: none; margin: 0 auto;
    box-shadow: 0 1px 3px rgba(15, 51, 41, 0.12), 0 10px 26px -14px rgba(15, 51, 41, 0.35);
    border-radius: 2px; overflow: hidden;
    background-image: linear-gradient(90deg, #f3f5f3 0%, #fafbfa 40%, #f3f5f3 80%);
    background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.pdfv-pg.siap { animation: none; background: #fff; }
.pdfv-pg canvas { width: 100% !important; height: 100% !important; display: block; animation: rise 0.35s var(--ease) both; }

.pdfv-loading { margin: auto; align-self: center; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; color: var(--ink-3); font-size: 0.86rem; }
.pdfv-sheet {
    width: 160px; height: 210px; background: #fff; border-radius: 3px;
    box-shadow: 0 10px 26px -14px rgba(15, 51, 41, 0.4);
    background-image:
        linear-gradient(#eef1ee, #eef1ee), linear-gradient(#eef1ee, #eef1ee), linear-gradient(#eef1ee, #eef1ee), linear-gradient(#eef1ee, #eef1ee),
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    background-repeat: no-repeat;
    background-size: 60% 8px, 80% 6px, 75% 6px, 70% 6px, 50% 100%;
    background-position: 20% 30px, 20% 60px, 20% 76px, 20% 92px, -100% 0;
    animation: sheet 1.3s ease-in-out infinite;
}
@keyframes sheet { to { background-position: 20% 30px, 20% 60px, 20% 76px, 20% 92px, 200% 0; } }

.pdfv-msg { margin: auto; align-self: center; max-width: 560px; width: 100%; text-align: center; color: var(--ink-2); font-size: 0.88rem; padding: 1rem; }
.pdfv-msg .pdfv-msg-ic { font-size: 1.6rem; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 0.8rem; background: #fff; color: var(--merah); box-shadow: var(--sh-2); }
.pdfv-msg b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 0.3rem; }
.pdfv-msg p { margin-bottom: 1rem; }
.pdfv .pdf-frame { width: 100%; }
@media (max-width: 575.98px) { .pdfv-pages { height: 70vh; padding: 10px; } }

.pdfv-msg .btn { display: inline-flex; align-items: center; gap: 0.35rem; }
.pdfv-diag { margin-top: 1.25rem; text-align: left; background: #fff; border: 1px solid var(--garis); border-radius: var(--r-sm); overflow: hidden; }
.pdfv-diag-h { font-size: 0.74rem; font-weight: 700; color: var(--ink-3); padding: 0.5rem 0.75rem; background: #f8faf8; border-bottom: 1px solid var(--garis-2); }
.pdfv-diag ul { list-style: none; margin: 0; padding: 0; }
.pdfv-diag li { display: grid; grid-template-columns: 150px 1fr; gap: 0.5rem; padding: 0.45rem 0.75rem; font-size: 0.78rem; border-bottom: 1px solid var(--garis-2); }
.pdfv-diag li:last-child { border-bottom: 0; }
.pdfv-diag li span { color: var(--ink-3); }
.pdfv-diag li code { color: var(--ink); white-space: pre-wrap; word-break: break-word; background: none; font-size: 0.76rem; }
.pdfv-diag li.ok code { color: var(--beringin); }
.pdfv-diag li.bad code { color: var(--merah); }

/* ---------- Pilihan jumlah per halaman ---------- */
.tampil-per { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.tampil-per label { font-weight: 600; white-space: nowrap; margin: 0; }
.tampil-per .form-select { width: auto; min-width: 88px; padding-top: 0.3rem; padding-bottom: 0.3rem; font-size: 0.82rem; }
.lebih { font-size: 0.86rem; color: var(--ink-3); margin: 0.25rem 0 0; }
.lebih a { font-weight: 700; }

/* ---------- Kartu SK di profil pegawai ---------- */
.sk-cards { display: flex; flex-direction: column; gap: 1rem; }
.sk-card {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 1.1rem; align-items: center;
    background: var(--surface); border: 1px solid var(--garis); border-radius: var(--r-lg);
    padding: 1.35rem 1.5rem; text-decoration: none; color: var(--ink);
    box-shadow: var(--sh-2); position: relative;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.sk-card::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--beringin-2); }
.sk-card.is-off::before { background: #c3cbc6; }
.sk-card:hover { border-color: #b9cdc1; box-shadow: var(--sh-3); transform: translateY(-2px); color: var(--ink); }
.sk-card:hover .sk-card-perihal { color: var(--beringin); }
.sk-card-no {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: var(--beringin-3); color: var(--beringin); font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums;
}
.sk-card.is-off .sk-card-no { background: var(--abu-2); color: var(--ink-3); }
.sk-card-body { min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.sk-card-nomor { font-family: var(--f-serif); font-weight: 600; font-size: 0.92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sk-card-perihal { font-size: 1.16rem; font-weight: 700; line-height: 1.38; color: var(--ink); letter-spacing: -0.01em; transition: color 0.15s; }
.sk-card.is-off .sk-card-perihal { color: var(--ink-2); }
.sk-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; align-items: center; font-size: 0.84rem; color: var(--ink-3); margin-top: 0.35rem; }
.sk-card-meta i { margin-right: 0.35rem; }
.sk-card-peran { font-weight: 700; color: var(--beringin); background: var(--beringin-3); padding: 0.2rem 0.65rem; border-radius: 999px; }
.sk-card.is-off .sk-card-peran { color: var(--ink-2); background: var(--abu-2); }
.sk-card-status { display: flex; align-items: center; gap: 0.9rem; }
.sk-card-status > i { color: var(--ink-3); font-size: 1rem; transition: transform 0.2s var(--ease); }
.sk-card:hover .sk-card-status > i { transform: translateX(3px); color: var(--beringin); }
@media (max-width: 767.98px) {
    .sk-card { grid-template-columns: 36px 1fr; padding: 1.1rem 1.1rem 1.1rem 1.25rem; }
    .sk-card-no { width: 34px; height: 34px; font-size: 0.82rem; }
    .sk-card-status { grid-column: 2; }
    .sk-card-status > i { display: none; }
    .sk-card-perihal { font-size: 1.05rem; }
}

/* ---------- Cari pegawai: tampilan daftar / kisi ---------- */
.view-toggle { display: inline-flex; border: 1px solid var(--garis); border-radius: 10px; background: #fff; padding: 3px; box-shadow: var(--sh-1); }
.view-toggle a {
    width: 36px; height: 32px; display: grid; place-items: center; border-radius: 7px;
    color: var(--ink-3); text-decoration: none; font-size: 1.05rem; transition: background 0.15s, color 0.15s;
}
.view-toggle a:hover { color: var(--ink); background: var(--abu-2); }
.view-toggle a.active { background: var(--beringin); color: #fff; }

.peg-list { display: flex; flex-direction: column; gap: 0.6rem; }
.peg-row {
    display: grid; grid-template-columns: 36px 42px minmax(0, 1.3fr) minmax(0, 1fr) 90px 16px; gap: 1rem; align-items: center;
    background: var(--surface); border: 1px solid var(--garis); border-radius: var(--r-md);
    padding: 0.85rem 1.15rem; text-decoration: none; color: var(--ink); box-shadow: var(--sh-1);
    transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.peg-row:hover { border-color: #b9cdc1; box-shadow: var(--sh-2); transform: translateY(-1px); color: var(--ink); }
.peg-row:hover .peg-nama b { color: var(--beringin); }
.peg-row .avatar { width: 42px; height: 42px; font-size: 0.82rem; }
.peg-no { text-align: center; font-weight: 700; font-size: 0.85rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.peg-nama, .peg-jab { min-width: 0; display: flex; flex-direction: column; }
.peg-nama b { font-weight: 700; font-size: 0.98rem; line-height: 1.3; transition: color 0.15s; }
.peg-jab b { font-weight: 600; font-size: 0.88rem; color: var(--ink-2); line-height: 1.3; }
.peg-nama small, .peg-jab small { color: var(--ink-3); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.peg-sk { text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.peg-sk b { font-family: var(--f-serif); font-size: 1.4rem; color: var(--beringin); }
.peg-sk small { font-size: 0.7rem; color: var(--ink-3); }
.peg-arrow { color: var(--ink-3); transition: transform 0.2s var(--ease); }
.peg-row:hover .peg-arrow { transform: translateX(3px); color: var(--beringin); }
@media (max-width: 767.98px) {
    .peg-row { grid-template-columns: 30px 38px 1fr 56px; gap: 0.7rem; padding: 0.75rem 0.85rem; }
    .peg-jab, .peg-arrow { display: none; }
    .peg-row .avatar { width: 38px; height: 38px; }
}
