/* Halaman pilih modul: daftar sederhana, satu warna aksen (merah logo). */
.md-page { min-height: 100vh; display: flex; flex-direction: column; background: #f4f5f7; color: #111827; }
.md-wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

.md-bar { background: #fff; border-bottom: 1px solid #e5e7eb; border-top: 3px solid #c8161d; }
.md-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.md-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.md-brand img { width: 32px; height: 32px; object-fit: contain; }
.md-akun { display: flex; align-items: center; gap: 8px; min-width: 0; }
.md-profil { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 4px 8px; border-radius: 6px; color: inherit; text-decoration: none; }
.md-profil:hover { background: #f3f4f6; color: inherit; text-decoration: none; }
.md-avatar { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #e5e7eb; color: #374151; font-size: .75rem; font-weight: 600; }
.md-profil-teks { min-width: 0; line-height: 1.2; }
.md-profil-teks strong { display: block; font-size: .85rem; font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-profil-teks small { display: block; font-size: .72rem; color: #6b7280; text-transform: capitalize; }
.md-keluar { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; font-size: .82rem; color: #374151; cursor: pointer; }
.md-keluar:hover { background: #f9fafb; border-color: #9ca3af; }

.md-samar { background: #fff7ed; border-bottom: 1px solid #fed7aa; color: #9a3412; font-size: .84rem; }
.md-samar .md-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.md-samar a { color: #9a3412; font-weight: 600; text-decoration: underline; }

.md-isi { flex: 1; padding-top: 32px; padding-bottom: 32px; }
.md-kepala { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.md-kepala h1 { margin: 0 0 2px; font-size: 1.35rem; font-weight: 600; }
.md-kepala p { margin: 0; font-size: .86rem; color: #6b7280; }
.md-galat { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; color: #991b1b; font-size: .86rem; }

.md-kantor { position: relative; width: 280px; }
.md-kantor-label { display: block; margin-bottom: 4px; font-size: .75rem; color: #6b7280; }
.md-kantor-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 38px; padding: 0 12px; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; font-size: .86rem; font-weight: 500; color: #111827; text-align: left; cursor: pointer; }
.md-kantor-btn:disabled { cursor: default; color: #374151; }
.md-kantor-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-menu { position: absolute; z-index: 30; right: 0; left: 0; top: calc(100% + 4px); padding: 8px; background: #fff; border: 1px solid #d1d5db; border-radius: 6px; box-shadow: 0 8px 20px rgba(17, 24, 39, .1); }
.md-menu-isi { max-height: 300px; overflow-y: auto; margin-top: 6px; }
.md-menu-label { padding: 8px 8px 2px; font-size: .72rem; color: #6b7280; }
.md-menu-isi button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 8px; background: transparent; border: 0; border-radius: 4px; font-size: .84rem; color: #111827; text-align: left; cursor: pointer; }
.md-menu-isi button:hover, .md-menu-isi button[aria-selected="true"] { background: #f3f4f6; }

.md-panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.md-cari { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0 16px; border-bottom: 1px solid #e5e7eb; color: #9ca3af; }
.md-cari input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: .88rem; color: #111827; }
.md-cari:focus-within { color: #c8161d; }
.md-kosong { padding: 28px 16px; text-align: center; font-size: .86rem; color: #6b7280; }

.md-daftar { list-style: none; margin: 0; padding: 0; }
.md-baris { position: relative; display: flex; align-items: center; gap: 12px; padding-right: 14px; }
.md-baris + .md-baris { border-top: 1px solid #eef0f3; }
.md-baris:hover { background: #fafafa; }
.md-buka { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; padding: 14px 0 14px 18px; background: transparent; border: 0; text-align: left; color: inherit; text-decoration: none; cursor: pointer; }
.md-buka:hover { color: inherit; text-decoration: none; }
.md-buka:disabled { cursor: default; }
/* seluruh baris bisa diklik; tombol keterangan ada di atasnya */
.md-buka::after { content: ""; position: absolute; inset: 0; }
.md-buka:focus-visible { outline: 0; }
.md-buka:focus-visible::after { outline: 2px solid #c8161d; outline-offset: -2px; border-radius: 6px; }
.md-ikon { flex-shrink: 0; color: #4b5563; }
.md-baris:hover .md-ikon { color: #c8161d; }
.md-teks { min-width: 0; }
.md-teks strong { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .94rem; font-weight: 600; }
.md-teks em { font-style: normal; font-size: .7rem; font-weight: 500; color: #4b5563; padding: 0 6px; border: 1px solid #d1d5db; border-radius: 4px; }
.md-teks small { display: block; margin-top: 2px; font-size: .8rem; line-height: 1.45; color: #6b7280; }
.md-teks .md-cocok { color: #111827; }
.md-panah { flex-shrink: 0; display: flex; color: #9ca3af; }
.md-putar { animation: md-putar .8s linear infinite; }
@keyframes md-putar { to { transform: rotate(360deg); } }

.md-info { position: relative; z-index: 1; flex-shrink: 0; }
.md-info > button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; background: transparent; border: 0; border-radius: 4px; font-size: .78rem; color: #6b7280; cursor: help; }
.md-info > button:hover { background: #eef0f3; color: #111827; }
.md-tip { display: none; position: absolute; right: 0; top: calc(100% + 4px); width: 270px; padding: 10px 12px; background: #1f2937; color: #e5e7eb; border-radius: 6px; font-size: .78rem; line-height: 1.55; box-shadow: 0 8px 20px rgba(17, 24, 39, .18); }
.md-tip strong { display: block; margin-bottom: 4px; color: #fff; font-weight: 600; }
.md-info:hover, .md-info:focus-within, .md-info.is-buka { z-index: 20; }
.md-info:hover .md-tip, .md-info:focus-within .md-tip, .md-info.is-buka .md-tip { display: block; }

.md-judul-bagian { margin: 24px 0 8px; font-size: .82rem; font-weight: 600; color: #4b5563; }
.md-kaki { padding: 16px; text-align: center; font-size: .76rem; color: #9ca3af; }

@media (max-width: 575px) {
    .md-wrap { padding: 0 14px; }
    .md-isi { padding-top: 20px; }
    .md-profil-teks, .md-keluar span, .md-info > button span { display: none; }
    .md-kantor { width: 100%; }
    .md-buka { gap: 12px; padding-left: 14px; }
    .md-baris { gap: 6px; padding-right: 10px; }
}
