





/* Tata letak bergaya MediaWiki "Vector" — Wiki Universitas Paramadina */
:root {
    --link: #0645ad; --link-visited: #0b0080; --link-new: #ba0000;
    --border: #a7d7f9; --rule: #a2a9b1; --panel-bg: #f6f6f6;
    --text: #202122; --muted: #54595d;
    --sidebar-w: 15.5rem;
    --head-h: 7.5rem;   /* tinggi area kepala sampai garis atas konten */
    --tab-h: 3.45rem;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
    margin: 0; background: var(--panel-bg); color: var(--text);
    font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration: underline; }
a.new, a.new:visited { color: var(--link-new); }
a.external::after { content: " ↗"; font-size: .8em; color: var(--muted); }

/* ── Latar kepala ─────────────────────────────── */
#mw-page-base {
    height: var(--head-h); background-color: #fff;
    background-image: linear-gradient(#fff 50%, var(--panel-bg) 100%);
}
#mw-head-base { margin-top: calc(-1 * var(--head-h)); margin-left: var(--sidebar-w); height: var(--head-h); }

/* ── Konten ──────────────────────────────────── */
.mw-body {
    margin-left: var(--sidebar-w); margin-top: -1px;
    padding: 1.25em 1.5em 1.5em 1.5em;
    background: #fff; border: 1px solid var(--border); border-right: 0;
    min-height: max(calc(100vh - var(--head-h)), 62rem); position: relative;
    font-size: .875em; line-height: 1.6;
}
@media (min-width: 982px) { .mw-body { padding: 1.25em 1.5em 1.5em 2.3em; } }
.firstHeading {
    font-family: "Linux Libertine", Georgia, Times, serif;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 2.85em; font-weight: normal; line-height: 1.3;
    margin: 0 0 .25em; padding: 0; border-bottom: 1px solid var(--rule);
}
#contentSub { color: var(--muted); font-size: .92em; margin: 0 0 1.2em; }
.mw-body-content { font-size: 1.43em; line-height: 1.75; }
.mw-body-content p { margin: .45em 0 .9em; }
.mw-body-content h2 {
    font-size: 1.55em; font-weight: normal; line-height: 1.3;
    margin: 1.1em 0 .35em; padding-bottom: .1em; border-bottom: 1px solid var(--rule);
}
.mw-body-content h3 { font-size: 1.2em; margin: .9em 0 .3em; }
.mw-body-content h4 { font-size: 1.05em; margin: .8em 0 .2em; }
.mw-body-content ol, .mw-body-content ul { margin: .3em 0 0 2.6em; padding: 0; }
.mw-editsection { font-size: .58em; font-weight: normal; margin-left: 1em; vertical-align: middle; white-space: nowrap; }
.mw-editsection-bracket { color: var(--text); }
.count { color: var(--muted); font-size: .78em; margin-left: .35em; }
.muted { color: var(--muted); }
small, .small { font-size: .82em; }

/* Daftar isi */
.toc {
    display: inline-block; border: 1px solid var(--rule); background: #f8f9fa;
    padding: .55em 1.1em .7em; font-size: .95em; margin: .4em 0 1.2em;
}
.toc .toctitle { text-align: center; white-space: nowrap; }
.toc .toctitle h2 { display: inline; border: 0; font-size: 1em; font-weight: bold; margin: 0; padding: 0; }
.toc .toctogglelink { font-size: .95em; margin-left: .3em; }
.toc ul { list-style: none; margin: .4em 0 0; padding: 0; }
.toc ul ul { margin-left: 1.6em; }
.toc li { line-height: 1.95; }
.toc.collapsed ul { display: none; }
.tocnumber { color: var(--link); padding-right: .3em; }

/* ── Navigasi kepala (personal + tab) ─────────── */
#mw-navigation h2 { position: absolute; top: -9999px; }
#p-personal { position: absolute; top: 6px; right: .75em; z-index: 100; font-size: .875em; }
#p-personal ul { list-style: none; margin: 0; padding-left: 10em; }
#p-personal li { float: left; margin-left: .95em; margin-top: .5em; line-height: 1.2; font-size: 1.15em; }
#pt-userpage a { padding-left: 18px; background: no-repeat left center/14px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Ccircle cx='10' cy='6' r='5' fill='%23a5762f'/%3E%3Cpath d='M0 22c0-7 4-10 10-10s10 3 10 10z' fill='%2372777d'/%3E%3C/svg%3E"); }

#left-navigation { position: absolute; top: calc(var(--head-h) - var(--tab-h)); left: var(--sidebar-w); margin-left: -1px; display: flex; }
#right-navigation { position: absolute; top: calc(var(--head-h) - var(--tab-h)); right: 0; display: flex; align-items: stretch; }
.vectorTabs { height: var(--tab-h); background: linear-gradient(to bottom, rgba(167,215,249,0) 0, var(--border) 100%) no-repeat right bottom/1px 100%; padding-left: 1px; }
.vectorTabs ul { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; }
.vectorTabs li {
    height: 100%; background: linear-gradient(to top, #77c1f6 0, #e8f2f8 1px, #fff 100%);
    position: relative;
}
.vectorTabs li::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, rgba(167,215,249,0) 0, var(--border) 100%); }
.vectorTabs li.selected { background: #fff; }
.vectorTabs li a {
    display: block; height: 100%; padding: 1.45em .62em 0; font-size: 1.15em; line-height: 1;
    color: var(--link); white-space: nowrap;
}
.vectorTabs li.selected a, .vectorTabs li.selected a:visited { color: var(--text); }
.vectorTabs li.new a, .vectorTabs li.new a:visited { color: #a55858; }
.vectorTabs li a:hover { text-decoration: none; }
.vectorTabs li:not(.selected) a:hover { text-decoration: underline; }

.watch-form { margin: 0; height: var(--tab-h); display: flex; align-items: center; padding: 0 .25em;
    background: linear-gradient(to top, #77c1f6 0, #e8f2f8 1px, #fff 100%); position: relative; }
.watch-form::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, rgba(167,215,249,0) 0, var(--border) 100%); }
.watch-btn { border: 0; background: none; cursor: pointer; padding: .2em .2em 0; }
.watch-btn svg { fill: none; stroke: #72a7d8; stroke-width: 1.6; }
.watch-btn.watched svg { fill: #3366cc; stroke: #3366cc; }
.watch-btn:hover svg { stroke: #3366cc; }

.vectorMenu { position: relative; height: var(--tab-h); background: linear-gradient(to top, #77c1f6 0, #e8f2f8 1px, #fff 100%); }
.vectorMenu::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px;
    background: linear-gradient(to bottom, rgba(167,215,249,0) 0, var(--border) 100%); }
.vectorMenu-toggle { border: 0; background: none; height: 100%; padding: 1.2em .8em 0; cursor: pointer; }
.vectorMenu-toggle svg { fill: #54595d; }
.vectorMenu-list { display: none; position: absolute; right: -1px; top: var(--tab-h); z-index: 200; list-style: none;
    margin: 0; padding: 0; min-width: 14em; background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.vectorMenu.open .vectorMenu-list { display: block; }
.vectorMenu-list li a, .vectorMenu-list li .linklike { display: block; padding: .55em .9em; font-size: .95em; text-align: left; width: 100%; }
.vectorMenu-list li a:hover, .vectorMenu-list li .linklike:hover { background: #eaf3ff; text-decoration: none; }
.vectorMenu-list form { margin: 0; }
.linklike { border: 0; background: none; color: var(--link); cursor: pointer; font: inherit; padding: 0; }

#p-search { margin: .7em 1.5em 0 1.1em; }
#simpleSearch { position: relative; width: 21em; max-width: 30vw; display: flex;
    border: 1px solid var(--rule); background: #fff; height: 2.1em; }
#simpleSearch input { flex: 1; border: 0; padding: .3em .45em; font-size: 1.1em; outline: none; background: transparent; min-width: 0; }
#simpleSearch input::placeholder { color: #72777d; }
#searchButton { border: 0; background: none; padding: 0 .45em; color: #202122; cursor: pointer; }

/* ── Tombol sembunyikan/tampilkan panel kiri ──── */
/* Posisi tetap mepet ke tepi kiri jendela, baik saat panel kiri terbuka
   maupun saat disembunyikan, agar tombol selalu mudah dijangkau. */
.sidebar-toggle {
    position: fixed; top: calc(var(--head-h) + .25em); left: .4em;
    z-index: 300; width: 2em; height: 2em; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--rule); border-radius: 3px; background: #fff; color: #54595d;
    cursor: pointer; padding: 0; box-shadow: 0 1px 2px rgba(0,0,0,.12);
    transition: left .15s ease;
}
.sidebar-toggle:hover { background: #eaf3ff; color: #3366cc; }
body.sidebar-collapsed .sidebar-toggle svg rect:last-child { fill: none; }
@media (max-width: 820px) { .sidebar-toggle { display: none; } }

/* ── Sidebar ─────────────────────────────────── */
body.sidebar-collapsed { --sidebar-w: 0rem; }
body.sidebar-collapsed #mw-panel { display: none; }
#mw-panel { position: absolute; top: 0; left: 0; width: var(--sidebar-w); padding-bottom: 2em; font-size: inherit; transition: width .15s ease; }
#p-logo { width: 15em; height: 160px; margin-bottom: 1em; }
#p-logo a { display: flex; align-items: flex-start; width: 100%; height: 100%; padding: 1.3em .2em 0 0; }
#p-logo img { width: 100%; max-height: 90px; object-fit: contain; object-position: left top; }
.logo-fallback { font-family: Georgia, serif; color: #6b6f73; font-size: 1.3em; line-height: 1; }
.portal { margin: 0 1.6em 0 1.1em; padding: .25em 0; background: no-repeat left top/100% 1px
    linear-gradient(to right, rgba(200,204,209,0) 0, #c8ccd1 33%, #c8ccd1 66%, rgba(200,204,209,0) 100%); }
.portal-first { background: none; margin-top: 0; }
.portal ul { list-style: none; margin: 0; padding: .3em 0 0; }
.portal li { line-height: 1.125em; padding: .25em 0; font-size: 1em; word-wrap: break-word; }
.portal li a { font-size: 1.06em; }
.portal-first li { padding: .25em 0 .8em .4em; }
.portal .body { margin-left: 1.25em; padding-top: 0; }
.portal li.active > a { color: var(--link-visited); }
.portal h3 { margin: .5em 0 0; padding: .25em 0; font-size: 1em; font-weight: normal; }
.portal-toggle { display: flex; align-items: flex-start; gap: .55em; border: 0; background: none; padding: 0; cursor: pointer;
    color: var(--muted); font: inherit; font-size: 1.06em; text-align: left; line-height: 1.15; }
.portal-toggle .arrow { width: 0; height: 0; margin-top: .3em; flex: none;
    border-left: .42em solid transparent; border-right: .42em solid transparent; border-top: .55em solid #72777d; }
.portal.collapsed .portal-toggle .arrow { border-top: .42em solid transparent; border-bottom: .42em solid transparent;
    border-left: .55em solid #72777d; border-right: 0; margin: .15em .1em 0 .25em; }
.portal.collapsed .portal-toggle { color: var(--link); }
.portal.collapsed .body { display: none; }

/* ── Footer ──────────────────────────────────── */
#footer { margin-left: var(--sidebar-w); padding: .75em 1.5em 2em; font-size: .78em; color: var(--text); }
#footer ul { list-style: none; margin: 0; padding: 0; }
#footer li { padding: .4em 0; }
#footer-places li { display: inline; margin-right: 1em; }

/* ── Komponen konten ─────────────────────────── */
.mw-message-box { border: 1px solid; padding: .55em .9em; margin: 0 0 1em; font-size: 1em; }
.mw-message-box-success { background: #d5fdf4; border-color: #14866d; }
.mw-message-box-error { background: #fee7e6; border-color: #d33; }
.mw-message-box-warning { background: #fef6e7; border-color: #fc3; }
.mw-message-box-notice { background: #eaecf0; border-color: #a2a9b1; }
.mw-message-box ul { margin: .2em 0 0 1.5em; font-size: .95em; }

.wikitable { border-collapse: collapse; background: #f8f9fa; border: 1px solid var(--rule); margin: .8em 0; font-size: .82em; }
.wikitable th, .wikitable td { border: 1px solid var(--rule); padding: .3em .55em; vertical-align: top; text-align: left; }
.wikitable th { background: #eaecf0; }
.wikitable.full { width: 100%; }
.wikitable.sortable th { white-space: nowrap; }

.infobox { float: right; clear: right; width: 22em; margin: .3em 0 1em 1.4em; border: 1px solid var(--rule);
    background: #f8f9fa; font-size: .78em; line-height: 1.5; border-collapse: collapse; }
.infobox caption { font-size: 1.2em; font-weight: bold; padding: .35em; }
.infobox th, .infobox td { padding: .3em .55em; vertical-align: top; text-align: left; border-top: 1px solid #eaecf0; }
.infobox th { width: 38%; }
.infobox .infobox-header { background: #dde6f4; text-align: center; font-weight: bold; }
.badge { display: inline-block; font-size: .78em; padding: 0 .45em; border-radius: 2px; border: 1px solid; line-height: 1.6; }
.badge-ok { color: #14866d; border-color: #14866d; background: #e8f7f2; }
.badge-warn { color: #ac6600; border-color: #fc3; background: #fef6e7; }
.badge-off { color: #72777d; border-color: #c8ccd1; background: #f8f9fa; }
.badge-red { color: #d33; border-color: #d33; background: #fee7e6; }

/* Tombol "Link Eksternal" (infobox dokumen) — warna mengikuti portal.visibility,
   seperti tombol "Unit pemilik" tetapi untuk visibilitas: public = hijau, internal = abu-abu,
   restricted = merah muda dengan tulisan merah lebih tua. */
.ext-link-btn {
    display: inline-flex; align-items: center; gap: .4em; border: 1px solid transparent; border-radius: 3px;
    padding: .35em .8em; font-size: .85em; font-weight: 600; font-family: inherit; cursor: pointer;
    transition: filter .1s ease;
}
.ext-link-btn:hover { filter: brightness(0.96); }
.ext-link-btn:active { filter: brightness(0.92); }
.ext-link-public { color: #0b5c49; border-color: #14866d; background: #e8f7f2; }
.ext-link-internal { color: #42464a; border-color: #c8ccd1; background: #eef0f2; }
.ext-link-restricted { color: #7a0f26; border-color: #d33; background: #fcd9de; }

.doc-page { overflow: hidden; border: 1px solid #eaecf0; margin: .6em 0; background: #fff; }
.doc-page summary { cursor: pointer; padding: .35em .7em; background: #f8f9fa; font-size: .85em; color: var(--muted); }
.doc-page pre { white-space: pre-wrap; word-wrap: break-word; margin: 0; padding: .8em 1em; font-family: inherit; font-size: .85em; line-height: 1.6; }
.keyword { display: inline-block; background: #eaf3ff; border: 1px solid #c8d8f0; padding: 0 .5em; margin: 0 .2em .3em 0; font-size: .78em; border-radius: 2px; }
pre.json { background: #f8f9fa; border: 1px solid #eaecf0; padding: .7em; font-size: .72em; line-height: 1.45; overflow: auto; max-height: 36em; }

/* blok di samping infobox: menyempit, tidak turun ke bawah float */
.bfc { overflow-x: auto; }
.doc-list { margin: .3em 0 1em 2.6em; }
.doc-list li { margin: .2em 0; }
.doc-list .meta { color: var(--muted); font-size: .78em; margin-left: .35em; }

/* Formulir */
.mw-form { font-size: .85em; max-width: 60em; }
.mw-form fieldset { border: 1px solid var(--rule); margin: 0 0 1.1em; padding: .6em 1em 1em; }
.mw-form legend { font-weight: bold; padding: 0 .3em; }
.mw-form .row { display: grid; grid-template-columns: 13em 1fr; gap: .6em 1em; align-items: start; margin: .5em 0; }
.mw-form label.lbl { padding-top: .35em; color: #202122; }
.mw-form input[type=text], .mw-form input[type=date], .mw-form input[type=number], .mw-form input[type=email],
.mw-form select, .mw-form textarea, .mw-form input[type=file] {
    width: 100%; font: inherit; padding: .35em .5em; border: 1px solid var(--rule); border-radius: 2px; background: #fff; }
.mw-form textarea { min-height: 7em; font-family: Menlo, Consolas, "Liberation Mono", monospace; font-size: .92em; line-height: 1.5; }
.mw-form textarea.tall { min-height: 22em; }
.mw-form .hint { color: var(--muted); font-size: .88em; margin-top: .15em; }
.mw-form .actions { display: flex; gap: .6em; align-items: center; margin-top: 1em; flex-wrap: wrap; }
.btn { display: inline-block; font: inherit; font-weight: bold; padding: .45em .95em; border-radius: 2px; cursor: pointer;
    border: 1px solid #a2a9b1; background: #f8f9fa; color: #202122; }
.btn:hover { background: #fff; text-decoration: none; }
.btn-primary { background: #36c; border-color: #36c; color: #fff; }
.btn-primary:hover { background: #447ff5; color: #fff; }
.btn-danger { background: #d33; border-color: #d33; color: #fff; }
.btn-sm { font-size: .85em; padding: .2em .6em; font-weight: normal; }
.inline-form { display: inline; margin: 0; }

.history li { margin: .3em 0; font-size: .82em; list-style: none; }
.history { margin-left: 0 !important; }
.history .comment { font-style: italic; color: var(--muted); }
.diff-added { color: #14866d; } .diff-removed { color: #d33; }

.talk-thread { border-left: 3px solid #c8ccd1; padding: .2em 0 .2em .9em; margin: .9em 0; font-size: .9em; }
.talk-thread .sig { color: var(--muted); font-size: .85em; }
.preview { border: 1px dashed #c8ccd1; padding: .5em 1em; background: #fffdf2; margin: 1em 0; }
.pagination { font-size: .82em; margin: 1em 0; }
.pagination a, .pagination span { margin-right: .7em; }
.search-result { margin: 0 0 1.1em; }
.search-result .title { font-size: 1.05em; }
.search-result .snippet { font-size: .8em; line-height: 1.5; }
.search-result .meta { font-size: .72em; color: #14866d; }
.searchmatch { font-weight: bold; }

/* ── Halaman login ───────────────────────────── */
.login-body { background: #f6f6f6; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { background: #fff; border: 1px solid var(--border); width: min(30em, 92vw); padding: 2.2em 2.4em 1.8em; text-align: center; }
.login-card img { max-width: 14em; margin-bottom: 1em; }
.login-card h1 { font-weight: normal; font-size: 1.7em; margin: 0 0 .3em; border-bottom: 1px solid var(--rule); padding-bottom: .3em; }
.login-card p { color: var(--muted); font-size: .92em; line-height: 1.6; }
.btn-google { display: inline-flex; align-items: center; gap: .7em; margin: 1.2em 0 .6em; padding: .7em 1.4em;
    border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #3c4043; font-weight: 600; font-size: 1em; }
.btn-google:hover { background: #f8f9fa; text-decoration: none; box-shadow: 0 1px 3px rgba(60,64,67,.2); }
.btn-google svg { width: 20px; height: 20px; }

/* ── Responsif ───────────────────────────────── */
@media (max-width: 820px) {
    :root { --sidebar-w: 0rem; }
    #mw-panel { position: static; width: auto; display: flex; flex-wrap: wrap; background: #fff; border-bottom: 1px solid var(--border); padding: 0 0 .5em; }
    #p-logo { height: auto; width: 100%; margin: 0; }
    #p-logo a { padding: .6em 1em; } #p-logo img { max-height: 48px; }
    .portal { flex: 1 1 45%; }
    #mw-navigation { display: flex; flex-direction: column; }
    #p-personal, #left-navigation, #right-navigation { position: static; }
    #p-personal ul { padding-left: .5em; display: flex; flex-wrap: wrap; }
    #mw-panel { order: 3; } #p-personal { order: 0; } #left-navigation { order: 1; } #right-navigation { order: 2; flex-wrap: wrap; }
    #mw-head-base, #mw-page-base { display: none; }
    body { display: flex; flex-direction: column; }
    #mw-navigation { order: -1; } .mw-body { order: 0; margin-left: 0; border-left: 0; } #footer { order: 1; margin-left: 0; }
    .infobox { float: none; width: 100%; margin: 0 0 1em; }
    .mw-form .row { grid-template-columns: 1fr; }
    #simpleSearch { max-width: 60vw; }
}

/* Lebih sempit lagi (mis. tablet potret kecil / ponsel lanskap): panel kiri (logo + menu
   navigasi "portal") disembunyikan total (bukan sekadar pindah ke atas seperti di 820px)
   supaya ruang konten lebih lega. Sidebar sudah lebar 0 & .mw-body/#footer sudah mepet kiri
   sejak breakpoint 820px di atas, jadi di sini cukup menyembunyikan panelnya saja. */
@media (max-width: 700px) {
    #mw-panel { display: none !important; }
}

/* Lebih sempit lagi (ponsel): kotak infobox dokumen (berisi kelompok "Klasifikasi fungsi"
   & "Jenis Konten") ikut disembunyikan total agar isi dokumen yang utama tidak terlalu sesak;
   infonya tetap bisa dibuka lewat halaman /wiki/<kode> atau /cari masing-masing. */
@media (max-width: 480px) {
    .infobox { display: none; }
}

/* ── Formulir dokumen: panel JSON, tabel berulang, rincian ── */
.mw-form .json-panel { background: #f8f9fa; border-color: #a7d7f9; }
.mw-form .form-h2 { font-size: 1.25em; font-weight: normal; border-bottom: 1px solid var(--rule); margin: 1.4em 0 .3em; }
.mw-form .repeater-table { font-size: 1em; margin: .3em 0 .5em; }
.mw-form .repeater-table td { padding: .2em .3em; vertical-align: middle; }
.mw-form .repeater-table input[type=text] { padding: .25em .4em; }
.mw-form .repeater-table .remove-row { color: #d33; font-size: 1.1em; }
.mw-form details.obj-field { border: 1px solid var(--rule); padding: .45em 1em; margin: 0 0 .7em; background: #fff; }
.mw-form details.obj-field summary { cursor: pointer; }
.mw-form details.obj-field[open] summary { margin-bottom: .4em; }

/* ── Tamu: tombol Masuk log di pojok kanan atas ── */
#p-personal #pt-anonuserpage { color: var(--muted); }
#p-personal .login-btn { border: 1px solid #36c; border-radius: 2px; padding: .2em .7em; font-weight: bold; }
#p-personal .login-btn:hover { background: #36c; color: #fff; text-decoration: none; }

/* ── Taksonomi fungsi (klasifikasi kode empat digit) ── */
.fungsi-code { font-family: Menlo, Consolas, "Liberation Mono", monospace; font-size: .86em; color: var(--muted); margin-right: .15em; }
a .fungsi-code { color: inherit; opacity: .8; }
#contentSub .fungsi-crumb { margin-top: .2em; }
.fungsi-crumb-label { color: var(--muted); }
.fungsi-tree-mini { list-style: none; margin: 0 !important; padding: 0; }
.fungsi-tree-mini li { line-height: 1.35; margin: .1em 0; }
.fungsi-summary { color: var(--muted); }
.fungsi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19em, 1fr)); gap: .7em 1em; margin: .4em 0 1em; }
.fungsi-card { border: 1px solid #eaecf0; background: #f8f9fa; padding: .45em .8em .55em; font-size: .9em; }
.fungsi-card-title { font-weight: bold; line-height: 1.4; margin-bottom: .2em; }
.mw-body-content .fungsi-card ul { list-style: none; margin: 0; padding: 0; }
.fungsi-card li { line-height: 1.4; margin: .2em 0; font-size: .95em; }
.fungsi-empty > a, a.fungsi-empty { color: #72777d; }
.mw-body-content .fungsi-children { list-style: none; margin-left: .3em; }
.fungsi-children > li { margin: .35em 0 .5em; }
.fungsi-sub { margin: .1em 0 0 1.4em; line-height: 1.5; }
.fungsi-home .count { margin-left: .35em; }
.fungsi-hits { background: #f8f9fa; border: 1px solid #eaecf0; padding: .4em .7em; margin: 0 0 1em; font-size: .9em; }
.fungsi-hit { display: inline-block; margin: .15em .8em .15em 0; }
.fungsi-guide { border: 1px solid #a7d7f9; background: #f3f9ff; padding: .5em .9em; margin: .6em 0 1em; font-size: .9em; }
.fungsi-guide-title { font-weight: bold; margin-bottom: .3em; }
.fungsi-guide ul { margin: .1em 0 .4em 1.4em !important; }
.fungsi-guide p { margin: .2em 0 .5em; }
/* formulir */
.mw-form .fungsi-field { border-color: #a7d7f9; }
.mw-form .fungsi-cascade { display: grid; grid-template-columns: 1fr; gap: .45em; }
.mw-form .fungsi-level { display: grid; grid-template-columns: 10.5em 1fr; gap: .6em; align-items: center; }
.mw-form .fungsi-level[hidden] { display: none; }
.mw-form .fungsi-level-name { color: var(--muted); font-size: .9em; }
.mw-form .fungsi-tools { margin-top: .1em; }
.mw-form .fungsi-path { margin-top: .5em; padding: .4em .6em; background: #f8f9fa; border: 1px solid #eaecf0; line-height: 1.55; }
.mw-form .fungsi-crumb-item { white-space: normal; }
.mw-form .fungsi-warn { color: #ac6600; margin-top: .25em; }
.mw-form .fungsi-rules ul { margin: .3em 0 0 1.4em; }
@media (max-width: 820px) {
    .mw-form .fungsi-level { grid-template-columns: 1fr; gap: .1em; }
}

/* ── v2.0: navigasi taksonomi fungsi & jenis konten ── */
.portal-code { font-family: Menlo, Consolas, "Liberation Mono", monospace; font-size: .8em; color: var(--muted); margin-right: .1em; }
.fungsi-portal .portal-toggle { line-height: 1.25; }
.fungsi-portal li { padding: .2em 0; }
.fungsi-portal li a { font-size: .98em; }
.fungsi-portal .portal-overview a { font-style: italic; }
.fungsi-meta { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; font-size: .85em; margin: 0 0 .6em; }
.mw-body-content .home-l2 { margin-bottom: .6em; }
.home-l2 > li { margin: .25em 0 .45em; }
.home-l3 { color: var(--muted); line-height: 1.5; margin: .05em 0 0; }
.home-l3 a { color: var(--link); }
.home-l3 a.fungsi-empty { color: #72777d; }
.mw-body-content .jenis-list { list-style: none; margin-left: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18em, 1fr)); gap: .5em 1.2em; }
.jenis-list li { line-height: 1.4; }
details.fungsi-index > summary { cursor: pointer; list-style: none; }
details.fungsi-index > summary::-webkit-details-marker { display: none; }
details.fungsi-index > summary h2 { display: inline-block; width: calc(100% - 1.4em); }
details.fungsi-index > summary::before { content: "▸"; display: inline-block; width: 1.2em; color: var(--muted); }
details.fungsi-index[open] > summary::before { content: "▾"; }
.mw-body-content .fungsi-card ul.fungsi-l4 { margin: .1em 0 .3em 1.1em; }
.fungsi-l4 li { font-size: .92em; margin: .05em 0; }
.mw-body-content .fungsi-hit-list { list-style: none; margin-left: 0; }
.fungsi-hit-list li { margin: .35em 0; }
.fungsi-tree-mini li.current { font-weight: bold; }
.infobox-sub { font-size: .8em; font-weight: normal; color: var(--muted); margin-top: .2em; }
/* Label jenis konten */
.jenis-tag { display: inline-block; border-radius: 2px; padding: 0 .5em; font-size: .85em; line-height: 1.6; border: 1px solid #c8ccd1; background: #f8f9fa; color: #202122; font-weight: normal; }
.jenis-tag.small { font-size: .7em; vertical-align: middle; }
.jenis-dokumen_setara { background: #f3f0ff; border-color: #c4b8f0; }
.jenis-kebijakan { background: #eaf3ff; border-color: #a7c4f0; }
.jenis-prosedur_manual_mutu { background: #e8f7f2; border-color: #9fd8c5; }
.jenis-panduan { background: #fef6e7; border-color: #f2d28b; }
.jenis-instruksi_kerja { background: #fff1e6; border-color: #f5c29b; }
.jenis-formulir { background: #fdeef4; border-color: #f0b3cc; }
.jenis-standar_dan_kriteria { background: #eef7e6; border-color: #b8dc98; }
.jenis-laporan_dan_bukti { background: #eef2f6; border-color: #b5c3d1; }
.jenis-referensi_pengetahuan { background: #f5f5ef; border-color: #d3d3b8; }
.infobox caption .jenis-tag { font-size: .9em; font-weight: bold; }
.mw-body-content h3.jenis-heading { font-weight: normal; margin-top: 1.1em; }
.jenis-heading .small { font-size: .65em; margin-left: .4em; }
/* Saringan dokumen di halaman fungsi */
.doc-filter { display: flex; flex-wrap: wrap; gap: .5em 1em; align-items: center; background: #f8f9fa; border: 1px solid #eaecf0; padding: .45em .7em; margin: .3em 0 .7em; }
.doc-filter label { display: inline-flex; gap: .35em; align-items: center; }
.doc-filter select { width: auto !important; max-width: 16em; }
.doc-table tr.doc-inactive td { background: #f8f9fa; color: var(--muted); }
.doc-table tr.doc-inactive a { color: #72777d; }
.topic-tag { background: #f3f0ff; border-color: #c4b8f0; }
.search-result .meta-fungsi { color: #14866d; }
/* Formulir v2 */
.mw-form .check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14em, 1fr)); gap: .15em 1em; }
.mw-form .check-grid label { font-size: .95em; line-height: 1.5; }
.mw-form .check-grid input[type=text] { grid-column: 1 / -1; margin-top: .3em; }
.mw-form details.tag-group { border-bottom: 1px solid #eaecf0; padding: .2em 0; }
.mw-form details.tag-group summary { cursor: pointer; }
.mw-form details.tag-group .check-grid { padding: .3em 0 .4em 1em; }
/* Infobox dokumen tanpa <caption> (dihapus bersama label jenis konten lama): baris pertama
   ("Klasifikasi fungsi") memakai border-top abu-abu muda (#eaecf0) seperti baris lain, yang
   di tepi atas tabel akan menimpa/mengalahkan border tabel var(--rule) saat border-collapse,
   sehingga garis atas kotak jadi pudar/hilang. Set ulang jadi var(--rule) supaya tetap satu
   garis tegas & sejajar dengan garis bawah judul h2 (mis. "Ringkasan"), yang juga var(--rule). */
.infobox tr:first-child > td,
.infobox tr:first-child > th { border-top: 1px solid var(--rule); }










/* Kolom "Aksi" pada tabel "Daftar dokumen yang sudah diunggah" (/unggah-dokumen) — ikon
   "Unduh"/"Hapus" berdampingan, menggantikan kolom "Unduh" yang lama. */
.kolom-aksi { white-space: nowrap; text-align: center; }
.kolom-aksi .inline-form { display: inline-block; }
.aksi-ikon { display: inline-block; border: 0; background: none; padding: 0 .25em; margin: 0; font-size: 1.05em; line-height: 1; cursor: pointer; text-decoration: none; vertical-align: middle; }
.aksi-ikon:hover { opacity: .7; }
