/* Identitas visual MAHAMERU v0.2: huruf Inter; Biru #007AC2, Biru Tua #004A8F, Hijau #43AB33, Oranye #F7941E, Abu-abu #6C7A89. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/aset/font/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/aset/font/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/aset/font/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/aset/font/inter-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/aset/font/inter-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 900; font-display: swap; src: url(/aset/font/inter-latin-900-normal.woff2) format('woff2'); }

:root {
  --biru: #007AC2; --biru-tua: #004A8F; --hijau: #43AB33; --oranye: #F7941E; --abu: #6C7A89;
  --latar: #F4F7FA; --kartu: #FFFFFF; --garis: #DCE3EA; --teks: #1B2733; --merah: #C62828;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.5; color: var(--teks); background: var(--latar); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { color: var(--biru-tua); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; }
a { color: var(--biru); }
.kepala { background: var(--biru-tua); color: #fff; display: flex; align-items: center; gap: 24px; padding: 10px 24px; flex-wrap: wrap; }
.kepala-logo img { display: block; }
.kepala-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.kepala-nav a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-weight: 600; font-size: .9rem; }
.kepala-nav a[aria-current="page"], .kepala-nav a:hover { background: rgba(255,255,255,.16); }
.kepala-pengguna { display: flex; align-items: center; gap: 12px; font-size: .85rem; }
.isi { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px; }
.kaki { text-align: center; color: var(--abu); font-size: .8rem; padding: 16px; }
.kartu { background: var(--kartu); border: 1px solid var(--garis); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.kisi { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kartu-modul { display: block; text-decoration: none; color: inherit; border-top: 4px solid var(--biru); }
.kartu-modul.hijau { border-top-color: var(--hijau); }
.kartu-modul.oranye { border-top-color: var(--oranye); }
.kartu-modul:hover { box-shadow: 0 2px 10px rgba(0,74,143,.12); }
.kartu-modul p { color: var(--abu); margin: 0; font-size: .9rem; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 12px 0 4px; }
input, select { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--garis); border-radius: 8px; background: #fff; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(0,122,194,.35); outline-offset: 1px; }
.bantuan { color: var(--abu); font-size: .82rem; margin: 4px 0 0; }
.tombol { font: inherit; font-weight: 600; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; background: var(--biru); color: #fff; }
.tombol:hover { background: var(--biru-tua); }
.tombol[disabled] { opacity: .6; cursor: wait; }
.tombol-hantu { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.tombol-kedua { background: #fff; color: var(--biru); border: 1px solid var(--biru); }
.tombol-kedua:hover { background: #EAF4FB; }
.tombol-penuh { width: 100%; margin-top: 20px; }
.baris-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 12px; }
.baris-filter > div { min-width: 180px; flex: 1; }
.baris-filter label { margin-top: 0; }
.tabel-bungkus { overflow-x: auto; border: 1px solid var(--garis); border-radius: 8px; background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--garis); text-align: left; white-space: nowrap; vertical-align: top; }
th { background: #EEF3F8; color: var(--biru-tua); font-weight: 600; position: sticky; top: 0; }
td.angka, th.angka { text-align: right; font-variant-numeric: tabular-nums; }
.halaman { display: flex; gap: 8px; align-items: center; margin-top: 8px; color: var(--abu); font-size: .85rem; }
.ringkas { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ringkas div { background: #fff; border: 1px solid var(--garis); border-radius: 8px; padding: 10px 12px; }
.ringkas dt { color: var(--abu); font-size: .78rem; }
.ringkas dd { margin: 2px 0 0; font-weight: 700; color: var(--biru-tua); word-break: break-word; }
.lencana { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #EAF4FB; color: var(--biru-tua); }
.catatan { border-left: 4px solid var(--oranye); background: #FFF6EA; padding: 10px 14px; border-radius: 6px; font-size: .9rem; margin-bottom: 16px; }
.galat { border-left-color: var(--merah); background: #FDECEC; }
.memuat { color: var(--abu); }
.pesan { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--teks); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: .9rem; max-width: 90vw; z-index: 10; }
.pesan.galat { background: var(--merah); }
.pesan.sukses { background: var(--hijau); }
details summary { cursor: pointer; color: var(--biru); font-weight: 600; margin: 8px 0; }
@media (max-width: 640px) { .isi { padding: 16px; } .kepala { padding: 10px 16px; } }

/* Modul lama dalam iframe: memenuhi ruang di bawah kepala. */
body.mode-modul .isi { max-width: none; padding: 0; display: flex; }
body.mode-modul .kaki { display: none; }
.bingkai-modul { flex: 1; width: 100%; min-height: calc(100vh - 64px); border: 0; display: block; background: #fff; }

/* Layar masuk: tata letak dan tipografi modal login MAHAMERU lama (SBML/POK). */
body.mode-masuk { background: radial-gradient(circle at 15% 20%, #134a7a 0, transparent 45%), radial-gradient(circle at 85% 85%, #0d5a63 0, transparent 40%), #0c233a; background-attachment: fixed; }
body.mode-masuk .isi { max-width: none; padding: 0; display: flex; }
body.mode-masuk .kaki { color: #8fb0c9; }
[hidden] { display: none !important; }
.masuk-latar { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; min-height: calc(100vh - 52px);
  color: #1d3147; line-height: 1.55; }
.masuk-kartu { display: grid; grid-template-columns: 300px minmax(0, 390px); width: 690px; max-width: 100%; margin: auto;
  background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 25px 80px #020b1754; }
.masuk-kartu h2, .masuk-kartu h3, .masuk-kartu p { margin: 0; }
.masuk-merek { padding: 36px 30px; color: #fff; background: #072e54; display: flex; flex-direction: column; align-items: flex-start; }
.masuk-logo { display: block; width: 94px; height: 59px; padding: 4px; border-radius: 12px; background: #fff; object-fit: contain; margin: 0 0 18px; }
.masuk-wordmark { font-size: 23px; letter-spacing: 1.2px; font-weight: 800; line-height: 1.2; }
.masuk-instansi { font-size: 8px; color: #b2cede; letter-spacing: 1.4px; margin-top: 5px !important; }
.masuk-garis { display: flex; gap: 5px; margin: 35px 0 22px; }
.masuk-garis i { display: block; width: 27px; height: 4px; border-radius: 2px; background: #119bd3; }
.masuk-garis i:nth-child(2) { width: 21px; background: #14a76f; }
.masuk-garis i:nth-child(3) { width: 14px; background: #f2a52b; }
.masuk-merek h2 { color: #fff; font-size: 22px; font-weight: 600; line-height: 1.5; letter-spacing: -.5px; }
.masuk-deskripsi { font-size: 11px; line-height: 1.9; color: #b2cede; margin-top: 14px !important; }
.masuk-modul { margin-top: auto; padding-top: 35px; font-size: 9px; letter-spacing: 1.4px; color: #a4c7df; }
.masuk-form { min-width: 0; padding: 40px 34px 32px; }
.masuk-eyebrow { color: #087fbc; font-size: 10px; letter-spacing: 1.6px; font-weight: 700; }
.masuk-form h3 { font-size: 22px; font-weight: 700; letter-spacing: -.6px; margin: 5px 0 8px; color: #1d3147; }
.masuk-intro { color: #62758a; font-size: 12px; line-height: 1.8; margin-bottom: 22px !important; }
.masuk-label { display: block; font-size: 11px; font-weight: 600; margin: 16px 0 8px; color: #3e566d; }
.masuk-form form > .masuk-label:first-child { margin-top: 0; }
.masuk-input { display: block; width: 100%; min-height: 46px; border: 1px solid #ccd8e4; border-radius: 9px; background: #fff; padding: 12px; color: #1d3147; font: 13px/1.5 Inter, 'Segoe UI', Arial, sans-serif; }
.masuk-input-rahasia { letter-spacing: 1px; }
.masuk-input::placeholder { font-size: 12px; letter-spacing: 0; color: #6e8294; }
.masuk-input:focus { border-color: #087fbc; outline: 3px solid #36a5d5; outline-offset: 3px; }
.masuk-petunjuk { font-size: 10px; line-height: 1.8; color: #62758a; margin-top: 9px !important; }
.masuk-kirim { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; margin-top: 20px; padding: 12px; border-radius: 9px;
  font: 600 12px/1.5 Inter, 'Segoe UI', Arial, sans-serif; color: #fff; background: #083e70; border: 1px solid #083e70; cursor: pointer; transition: background .16s ease; }
.masuk-kirim:hover:not(:disabled) { background: #062f56; }
.masuk-kirim:disabled { opacity: .6; cursor: wait; }
.masuk-kirim:focus-visible { outline: 3px solid #36a5d5; outline-offset: 3px; }
.masuk-galat { background: #fff3f3; color: #9d3046; border: 1px solid #f2d8df; border-radius: 8px; padding: 10px 12px; font-size: 12px; line-height: 1.65; margin-bottom: 18px; overflow-wrap: anywhere; }
.masuk-kaki { border-top: 1px solid #e9eff5; padding-top: 18px; margin-top: 25px !important; color: #62758a; text-align: center; font-size: 10px; line-height: 1.7; }
@media (max-width: 640px) {
  .masuk-latar { padding: 16px; }
  .masuk-kartu { display: block; width: 100%; max-width: 390px; border-radius: 18px; }
  .masuk-merek { padding: 24px 27px; display: grid; grid-template-columns: 66px minmax(0, 1fr); column-gap: 14px; }
  .masuk-logo { grid-row: 1 / 3; width: 66px; height: 43px; margin: 0; border-radius: 9px; }
  .masuk-wordmark { font-size: 20px; align-self: end; }
  .masuk-instansi { font-size: 7px; letter-spacing: .7px; margin-top: 2px !important; }
  .masuk-merek h2, .masuk-deskripsi, .masuk-garis { display: none; }
  .masuk-modul { grid-column: 1 / -1; padding-top: 18px; }
  .masuk-form { padding: 27px; }
  .masuk-form h3 { font-size: 21px; }
  .masuk-input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .masuk-kirim { transition: none; } }
