/* UHO Daya Tampung — semua aturan dibatasi di .uhodt */
.uhodt {
  --dt-aksen: #1e4fa3;
  --dt-aksen-muda: #eaf0fb;
  --dt-teks: #1b2433;
  --dt-redam: #5d6678;
  --dt-garis: #dfe5ef;
  --dt-latar: #ffffff;
  --dt-latar-2: #f6f8fc;
  --dt-ketat-bg: #fde8eb;   --dt-ketat-fg: #a3162b;
  --dt-sedang-bg: #fff3d6;  --dt-sedang-fg: #8a5a00;
  --dt-longgar-bg: #e2f5e8; --dt-longgar-fg: #146c36;
  color: var(--dt-teks);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 16px 32px;   /* jarak dari header situs */
}
.uhodt *, .uhodt *::before, .uhodt *::after { box-sizing: border-box; }
.uhodt h2.uhodt-judul { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.2; margin: 0 0 .7rem; color: var(--dt-teks); }
.uhodt .uhodt-desk { color: var(--dt-redam); font-size: 1.15rem; max-width: 72ch; margin: 0 0 1.8rem; }

/* kartu statistik */
.uhodt .uhodt-stat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 2.2rem; }
.uhodt .uhodt-kartu { background: var(--dt-latar); border: 1px solid var(--dt-garis); border-left: 4px solid var(--dt-aksen); border-radius: 12px; padding: 22px 24px; }
.uhodt .uhodt-angka { font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.uhodt .uhodt-label { font-size: 1rem; color: var(--dt-redam); margin-top: 6px; }

/* tab jalur */
.uhodt .uhodt-tab { display: inline-flex; gap: 4px; padding: 5px; background: var(--dt-latar-2); border: 1px solid var(--dt-garis); border-radius: 12px; margin-bottom: 16px; }
.uhodt .uhodt-tab button { border: 0; background: transparent; color: var(--dt-redam); font: inherit; font-size: 1.1rem; font-weight: 700; padding: 11px 28px; border-radius: 8px; cursor: pointer; }
.uhodt .uhodt-tab button[aria-selected="true"] { background: var(--dt-aksen); color: #fff; }
.uhodt .uhodt-tab button:focus-visible { outline: 2px solid var(--dt-aksen); outline-offset: 2px; }

.uhodt .uhodt-judul-tabel { font-size: 1.65rem; line-height: 1.3; margin: .5rem 0 .3rem; color: var(--dt-teks); }
.uhodt .uhodt-ket-tabel { color: var(--dt-redam); font-size: 1.05rem; margin: 0 0 16px; }
.uhodt .uhodt-peringatan { background: var(--dt-sedang-bg); color: var(--dt-sedang-fg); border-radius: 10px; padding: 12px 16px; font-size: 1.02rem; margin: 0 0 16px; }

/* toolbar */
.uhodt .uhodt-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.uhodt .uhodt-bar input, .uhodt .uhodt-bar select { font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1px solid var(--dt-garis); border-radius: 10px; background: var(--dt-latar); color: var(--dt-teks); }
.uhodt .uhodt-bar input { flex: 1 1 260px; min-width: 180px; }
.uhodt .uhodt-bar input:focus, .uhodt .uhodt-bar select:focus { outline: 2px solid var(--dt-aksen); outline-offset: 1px; }
.uhodt .uhodt-hitung { margin-left: auto; font-size: 1rem; color: var(--dt-redam); white-space: nowrap; }

/* tabel */
.uhodt .uhodt-bungkus { border: 1px solid var(--dt-garis); border-radius: 14px; overflow: auto; max-height: min(72vh, 780px); background: var(--dt-latar); }
.uhodt table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1.1rem; margin: 0; }
.uhodt thead th { text-align: left; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--dt-redam); background: var(--dt-latar-2); padding: 16px 20px; border-bottom: 1px solid var(--dt-garis); white-space: nowrap; position: sticky; top: 0; z-index: 2; box-shadow: 0 2px 6px rgba(15, 24, 48, .08); }
.uhodt tbody td { padding: 20px 20px; border-bottom: 1px solid var(--dt-garis); vertical-align: middle; background: transparent; }
.uhodt tbody tr:last-child td { border-bottom: 0; }
.uhodt tbody tr[data-i] { cursor: pointer; }
.uhodt tbody tr[data-i]:hover td { background: var(--dt-aksen-muda); }
.uhodt .uhodt-th-no, .uhodt .uhodt-td-no { width: 68px; text-align: center; }
.uhodt .uhodt-td-no { color: var(--dt-redam); font-weight: 600; font-variant-numeric: tabular-nums; }
.uhodt .uhodt-no-m { display: none; }
.uhodt .uhodt-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.uhodt .uhodt-nama { all: unset; cursor: pointer; font-weight: 700; font-size: 1.12rem; color: var(--dt-teks); }
.uhodt .uhodt-nama:focus-visible { outline: 2px solid var(--dt-aksen); outline-offset: 2px; border-radius: 3px; }
.uhodt .uhodt-baru { margin-left: 8px; font-size: .78rem; font-weight: 700; background: var(--dt-aksen-muda); color: var(--dt-aksen); padding: 2px 7px; border-radius: 99px; vertical-align: middle; }
.uhodt .uhodt-lencana { display: inline-block; font-size: .98rem; font-weight: 700; padding: 6px 14px; border-radius: 99px; white-space: nowrap; }
.uhodt .uhodt-lencana.ketat { background: var(--dt-ketat-bg); color: var(--dt-ketat-fg); }
.uhodt .uhodt-lencana.sedang { background: var(--dt-sedang-bg); color: var(--dt-sedang-fg); }
.uhodt .uhodt-lencana.longgar { background: var(--dt-longgar-bg); color: var(--dt-longgar-fg); }
.uhodt .uhodt-lencana.kosong { background: var(--dt-latar-2); color: var(--dt-redam); }
.uhodt .uhodt-kosong { text-align: center; color: var(--dt-redam); padding: 40px 14px; font-size: 1.1rem; }

.uhodt .uhodt-catatan { font-size: .98rem; color: var(--dt-redam); margin: 16px 2px 0; }
.uhodt .uhodt-catatan p { margin: 0 0 6px; }
.uhodt .uhodt-catatan a { color: var(--dt-aksen); }

/* modal */
.uhodt-modal { --dt-aksen: #1e4fa3; position: fixed; inset: 0; background: rgba(15, 24, 48, .55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 99999; }
.uhodt-modal.buka { display: flex; }
.uhodt-modal .uhodt-kotak { background: #fff; color: #1b2433; width: 100%; max-width: 820px; max-height: 90vh; overflow: auto; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); font-family: inherit; }
.uhodt-modal .uhodt-kepala { background: var(--dt-aksen); color: #fff; padding: 22px 64px 20px 28px; position: relative; border-radius: 14px 14px 0 0; }
.uhodt-modal .uhodt-kepala h3 { margin: 0 0 4px; font-size: 1.5rem; line-height: 1.3; color: #fff; }
.uhodt-modal .uhodt-kepala p { margin: 0; font-size: 1.02rem; opacity: .92; color: #fff; }
.uhodt-modal .uhodt-tutup { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 1.25rem; cursor: pointer; }
.uhodt-modal .uhodt-tutup:hover { background: rgba(255, 255, 255, .35); }
.uhodt-modal .uhodt-isi { padding: 24px 28px 28px; font-size: 1.05rem; }
.uhodt-modal .uhodt-chip-baris { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.uhodt-modal .uhodt-chip { background: #f6f8fc; border: 1px solid #dfe5ef; border-left: 4px solid var(--dt-aksen); border-radius: 10px; padding: 14px 18px; }
.uhodt-modal .uhodt-chip small { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: #5d6678; }
.uhodt-modal .uhodt-chip strong { font-size: 1.4rem; }
.uhodt-modal h4 { font-size: 1.15rem; margin: 0 0 12px; color: var(--dt-aksen); }
.uhodt-modal table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.uhodt-modal th { background: var(--dt-aksen); color: #fff; padding: 12px 14px; font-size: .82rem; text-transform: uppercase; text-align: center; }
.uhodt-modal th:first-child, .uhodt-modal td:first-child { text-align: left; }
.uhodt-modal td { padding: 13px 14px; border-bottom: 1px solid #dfe5ef; text-align: center; font-variant-numeric: tabular-nums; }
.uhodt-modal .uhodt-redam { color: #5d6678; font-size: .98rem; margin: 14px 0 0; }

/* ponsel: tabel menjadi kartu */
@media (max-width: 720px) {
  .uhodt .uhodt-stat { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .uhodt .uhodt-kartu { padding: 16px 16px; }
  .uhodt .uhodt-angka { font-size: 1.9rem; }
  .uhodt-modal .uhodt-chip-baris { grid-template-columns: 1fr; }
  .uhodt .uhodt-hitung { margin-left: 0; width: 100%; }
  .uhodt .uhodt-bungkus { max-height: none; overflow: hidden; }
  .uhodt thead { display: none; }
  .uhodt tbody td.uhodt-td-no { display: none; }
  .uhodt .uhodt-no-m { display: inline; color: var(--dt-redam); font-weight: 600; }
  .uhodt { padding: 36px 12px 24px; font-size: 1.05rem; }
  .uhodt tbody tr { display: block; padding: 18px 18px; border-bottom: 1px solid var(--dt-garis); }
  .uhodt tbody tr:last-child { border-bottom: 0; }
  .uhodt tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; border: 0; }
  .uhodt tbody td::before { content: attr(data-label); color: var(--dt-redam); font-size: .95rem; }
  .uhodt tbody td.uhodt-td-nama { display: block; font-size: 1.2rem; padding-bottom: 10px; }
  .uhodt tbody td.uhodt-td-nama::before { content: none; }
  .uhodt tbody td[colspan] { display: block; text-align: center; }
  .uhodt tbody td[colspan]::before { content: none; }
}

/* ======================================================================
   Ikon mengambang (Tetap di layar / Ikut halaman) dan jendela panel
   ====================================================================== */
#uhdtf-root { --uhdtf-a: #1e4fa3; position: absolute; top: 0; left: 0; width: 100%; height: 0; z-index: 99980; pointer-events: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.3; }
#uhdtf-root *, #uhdtf-root *::before, #uhdtf-root *::after { box-sizing: border-box; }
#uhdtf-root [hidden] { display: none !important; }
#uhdtf-root .uhdtf-w { position: absolute; pointer-events: auto; display: block; width: var(--uhdtf-s); margin: 0; padding: 0; -webkit-user-select: none; user-select: none; }
#uhdtf-root .uhdtf-w.has-lbl { width: calc(var(--uhdtf-s) * 1.7); }
#uhdtf-root .uhdtf-w--fixed { position: fixed; }   /* tetap di layar: tidak ikut bergulir */
#uhdtf-root .uhdtf-w--page { position: absolute; }  /* ikut halaman: bergulir bersama halaman */
#uhdtf-root .uhdtf-btn { display: flex; flex-direction: column; align-items: center; width: 100%; margin: 0; padding: 0; border: 0; background: none; color: inherit; box-shadow: none; cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: transform .2s ease; }
#uhdtf-root .uhdtf-btn:hover { transform: translateY(-3px); }
#uhdtf-root .uhdtf-btn:focus-visible { outline: 3px solid #c9a24b; outline-offset: 6px; border-radius: 12px; }
#uhdtf-root .uhdtf-img { display: block; flex: none; width: var(--uhdtf-s); height: var(--uhdtf-s); overflow: hidden; background: #fff; }
#uhdtf-root .uhdtf-img img { display: block; width: 100%; height: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: cover; box-shadow: none; pointer-events: none; }
#uhdtf-root .uhdtf-f-circle .uhdtf-img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(201, 162, 75, .85), 0 4px 10px rgba(15, 39, 71, .22); }
#uhdtf-root .uhdtf-f-rounded .uhdtf-img { border-radius: 22%; box-shadow: 0 0 0 1px rgba(201, 162, 75, .85), 0 4px 10px rgba(15, 39, 71, .22); }
#uhdtf-root .uhdtf-f-none .uhdtf-img { background: transparent; filter: drop-shadow(0 8px 12px rgba(15, 39, 71, .35)); }
#uhdtf-root .uhdtf-f-none .uhdtf-img img { object-fit: contain; }
#uhdtf-root .uhdtf-lbl { display: block; max-width: 100%; margin: 6px 0 0; padding: .3em .85em; border-radius: 999px; background: var(--uhdtf-a); color: #fff; font-size: clamp(11px, calc(var(--uhdtf-s) * .15), 18px); font-weight: 700; text-align: center; box-shadow: 0 6px 14px rgba(15, 39, 71, .35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#uhdtf-root .uhdtf-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

html.uhdtf-lock { overflow: hidden; }
.uhdtf-ov { --dt-aksen: #1e4fa3; --uhdtf-top-base: 90px; --uhdtf-top: var(--uhdtf-top-base); position: fixed; inset: 0; z-index: 99990; display: none; align-items: flex-start; justify-content: center; padding: var(--uhdtf-top) 16px 16px; background: rgba(15, 24, 48, .6); }
body.admin-bar .uhdtf-ov { --uhdtf-top: calc(var(--uhdtf-top-base) + 32px); }
.uhdtf-ov.buka { display: flex; }
.uhdtf-ov .uhdtf-kotak { position: relative; width: 100%; max-width: min(1560px, calc(100vw - 32px)); max-height: calc(100vh - var(--uhdtf-top) - 16px); overflow: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.uhdtf-ov .uhdtf-bar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 10px 12px 0; background: linear-gradient(#fff 65%, rgba(255, 255, 255, 0)); }
.uhdtf-ov .uhdtf-tutup { width: 44px; height: 44px; border: 0; border-radius: 12px; background: #eef1f6; color: #1b2433; font-size: 1.3rem; cursor: pointer; }
.uhdtf-ov .uhdtf-tutup:hover { background: #dfe5ef; }
.uhdtf-ov .uhdtf-tutup:focus-visible { outline: 2px solid var(--dt-aksen); outline-offset: 2px; }
.uhdtf-ov .uhdtf-isi { padding: 0 32px 32px; }
.uhdtf-ov .uhodt { max-width: none; padding: 4px 0 0; }
.uhdtf-ov .uhdtf-pesan { text-align: center; color: #5d6678; font-size: 1.1rem; padding: 48px 10px; margin: 0; }
.uhdtf-ov .uhdtf-ulang { display: block; margin: 0 auto 30px; padding: 8px 18px; border: 1px solid #1e4fa3; border-radius: 8px; background: #fff; color: #1e4fa3; font: inherit; cursor: pointer; }
@media (max-width: 782px) { body.admin-bar .uhdtf-ov { --uhdtf-top: calc(var(--uhdtf-top-base) + 46px); } }
@media (max-width: 720px) { .uhdtf-ov { --uhdtf-top: calc(var(--uhdtf-top-base) * .6); padding: var(--uhdtf-top) 8px 8px; } body.admin-bar .uhdtf-ov { --uhdtf-top: calc(var(--uhdtf-top-base) * .6 + 46px); } .uhdtf-ov .uhdtf-kotak { border-radius: 14px; } .uhdtf-ov .uhdtf-isi { padding: 0 14px 22px; } }
@media (prefers-reduced-motion: reduce) { #uhdtf-root .uhdtf-btn { transition: none; } }
@media print { #uhdtf-root, .uhdtf-ov { display: none !important; } }

/* ======================================================================
   Mode atur ikon (hanya admin): geser dengan kursor di beranda
   ====================================================================== */
#uhdtf-root .uhdtf-gear { position: absolute; top: -8px; left: calc(50% + var(--uhdtf-s) / 2 - 18px); z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--uhdtf-a); color: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); cursor: pointer; opacity: .9; }
#uhdtf-root .uhdtf-gear:hover, #uhdtf-root .uhdtf-gear:focus-visible { opacity: 1; filter: brightness(.9); }
#uhdtf-root .uhdtf-w:not(.has-lbl) .uhdtf-gear { left: calc(var(--uhdtf-s) - 18px); }
#uhdtf-root .uhdtf-rs { display: none; position: absolute; top: calc(var(--uhdtf-s) - 12px); left: calc(50% + var(--uhdtf-s) / 2 - 12px); z-index: 2; width: 20px; height: 20px; border: 2px solid #fff; border-radius: 5px; background: var(--uhdtf-a); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); cursor: nwse-resize; touch-action: none; }
#uhdtf-root .uhdtf-w:not(.has-lbl) .uhdtf-rs { left: calc(var(--uhdtf-s) - 12px); }
#uhdtf-root .uhdtf-rs::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; }
#uhdtf-root .uhdtf-w.is-edit { cursor: move; touch-action: none; }
#uhdtf-root .uhdtf-w.is-edit .uhdtf-btn, #uhdtf-root .uhdtf-w.is-edit .uhdtf-btn:focus { cursor: move; outline: none; transform: none !important; }
#uhdtf-root .uhdtf-w.is-edit .uhdtf-img { outline: 3px dashed var(--uhdtf-a); outline-offset: 8px; }
#uhdtf-root .uhdtf-w.is-edit .uhdtf-rs { display: block; }
#uhdtf-root .uhdtf-w.is-edit .uhdtf-gear { display: none; }
#uhdtf-root .uhdtf-w.is-drag .uhdtf-img { box-shadow: 0 0 0 1px rgba(201, 162, 75, .85), 0 12px 22px rgba(15, 39, 71, .35); }

#uhdtf-root .uhdtf-panel { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; width: min(660px, calc(100vw - 20px)); max-height: calc(100vh - 28px); overflow: auto; padding: 14px 16px 12px; border: 1px solid #c9a24b; border-radius: 14px; background: #fff; color: #243044; font-size: 14px; box-shadow: 0 18px 44px rgba(15, 39, 71, .4); pointer-events: auto; }
#uhdtf-root .uhdtf-ph { margin: 0 0 10px; }
#uhdtf-root .uhdtf-ph strong { display: block; font-size: 16px; color: #0f2747; }
#uhdtf-root .uhdtf-ph span { display: block; margin-top: 2px; font-size: 12px; color: #5a6679; }
#uhdtf-root .uhdtf-pr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 9px; }
#uhdtf-root .uhdtf-pr > label:first-child { flex: none; width: 62px; font-weight: 700; color: #0f2747; }
#uhdtf-root .uhdtf-pr .uhdtf-l2 { width: auto; margin-left: 6px; font-weight: 700; color: #0f2747; }
#uhdtf-root .uhdtf-pr input[type=range] { flex: 1 1 140px; min-width: 120px; margin: 0; padding: 0; accent-color: var(--uhdtf-a); }
#uhdtf-root .uhdtf-pr output { min-width: 52px; font-variant-numeric: tabular-nums; }
#uhdtf-root .uhdtf-pr input[type=text], #uhdtf-root .uhdtf-pr select { flex: 1 1 150px; min-width: 0; height: 34px; margin: 0; padding: 4px 10px; border: 1px solid #aab4c4; border-radius: 8px; background: #fff; color: #243044; font: inherit; font-size: 14px; box-shadow: none; }
#uhdtf-root .uhdtf-pr select { flex: 0 1 auto; }
#uhdtf-root .uhdtf-btns { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
#uhdtf-root .uhdtf-chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; color: #243044; cursor: pointer; }
#uhdtf-root .uhdtf-chk input { margin: 0; }
#uhdtf-root .uhdtf-panel button { margin: 0; padding: 6px 14px; min-height: 34px; border: 1px solid #aab4c4; border-radius: 8px; background: #fff; color: #243044; font: inherit; font-size: 14px; line-height: 1.2; cursor: pointer; }
#uhdtf-root .uhdtf-panel button:hover { border-color: #0f2747; }
#uhdtf-root .uhdtf-panel button:focus-visible, #uhdtf-root .uhdtf-panel input:focus-visible, #uhdtf-root .uhdtf-panel select:focus-visible { outline: 3px solid #c9a24b; outline-offset: 2px; }
#uhdtf-root .uhdtf-panel button.uhdtf-primary { border-color: var(--uhdtf-a); background: var(--uhdtf-a); color: #fff; font-weight: 700; }
#uhdtf-root .uhdtf-pf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #dde3ec; }
#uhdtf-root .uhdtf-more { margin-left: auto; font-size: 13px; color: var(--uhdtf-a); text-decoration: underline; }
#uhdtf-root .uhdtf-msg { flex-basis: 100%; min-height: 1.2em; font-size: 13px; color: #1a5c2c; }
#uhdtf-root .uhdtf-msg.is-err { color: #b32d2e; }
@media (max-width: 600px) { #uhdtf-root .uhdtf-ph span { display: none; } #uhdtf-root .uhdtf-pr > label:first-child { width: 100%; } #uhdtf-root .uhdtf-more { margin-left: 0; } }
