/* plngrade — gaya mengikuti referensi dashboard HC & sidebar "zavio". */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --line: #e6eaf1;
  --line-soft: #eef1f6;
  --ink: #18233a;
  --ink-2: #3c4a63;
  --muted: #6f7b91;
  --primary: #2f6fd6;
  --primary-ink: #1f5fc0;
  --primary-soft: #eaf2fe;
  --navy: #1e3a75;
  --navy-2: #24448a;
  --bar: #6aa6e6;
  --bar-strong: #3b6fc4;
  --green: #3fa56b; --green-soft: #e3f5ea; --green-ink: #17804a;
  --blue: #3b7ddd;  --blue-soft: #e5effd;  --blue-ink: #1f63c6;
  --amber: #e0a24a; --amber-soft: #fcf0dc; --amber-ink: #a35f0c;
  --gray: #a3aab6;  --gray-soft: #eef0f4;  --gray-ink: #5f6878;
  --purple: #9a72cf; --purple-soft: #f1eafb; --purple-ink: #6f45ad;
  --red: #dc5a5a;   --red-soft: #fde8e8;   --red-ink: #b42323;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04);
  --sidebar: 268px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
:focus-visible { outline: 3px solid #9cbdf2; outline-offset: 2px; border-radius: 6px; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell & sidebar ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar); flex: none; background: #fff; border-right: 1px solid var(--line);
  padding: 26px 18px 20px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 22px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: #111a2e; }
.brand b { font-weight: 800; color: var(--primary); }
.brand-logo { display: block; height: 30px; width: auto; flex: none; }
.brand-name { padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.1; }
.brand.light { color: #fff; padding: 0; }
.brand.light b { color: #93c5fd; }
.brand.light .brand-name { border-left-color: rgba(255, 255, 255, .25); }
.brand-chip { background: #fff; border-radius: 10px; padding: 7px 10px; display: inline-flex; }
.nav-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa4b5; padding: 14px 12px 8px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .logout {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px;
  color: #3f4b60; font-weight: 500; font-size: 16px; transition: background .15s, color .15s;
}
.nav a .ico, .logout .ico { color: #6b778c; }
.nav a:hover, .logout:hover { background: #f5f7fb; color: var(--ink); }
.nav a.active { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.nav a.active .ico { color: var(--primary-ink); }
.side-spacer { flex: 1; min-height: 24px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 72px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 32px; position: sticky; top: 0; z-index: 30; }
.crumbs { color: var(--muted); font-size: 15px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .cur { color: var(--ink); font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 18px; }
.top-periode { color: var(--muted); font-size: 15px; }
.who { display: flex; align-items: center; gap: 10px; }
.who-txt { display: flex; flex-direction: column; text-align: right; line-height: 1.2; }
.who-txt b { font-size: 14px; }
.who-txt small { font-size: 12px; color: var(--muted); }
.avatar-sm { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.menu-btn { display: none; border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--ink); cursor: pointer; }
.scrim { display: none; }
.content { padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 22px; max-width: 1480px; width: 100%; }

/* ---------- Cards & headings ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 26px 30px; }
.card-title { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.card-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 30px 18px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.empty-state { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--primary); }
.eyebrow.light { color: #93c5fd; }
.page-title { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.page-sub { color: var(--muted); margin: 6px 0 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-weight: 700; margin-bottom: -8px; align-self: flex-start; }

.hero { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero .eyebrow { color: #a9c3f1; }
.hero h1 { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 8px; }
.hero p { margin: 0; color: #b9cbec; }
.hero-actions { display: flex; align-items: center; gap: 18px; }
.hero-tag { color: #b9cbec; }
.btn-hero { background: var(--navy-2); border: 1px solid #4d6bb0; color: #fff; }
.btn-hero:hover { background: #2c51a3; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 600; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-ink); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-sm { padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.btn-ghost:hover { background: #f7f9fc; }
.btn.disabled { pointer-events: none; opacity: .45; }
.btn-block { width: 100%; }
.link { color: var(--primary-ink); background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--red-ink); }

.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.badge.badge-mini { font-size: 11px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.filters.filters-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); }
.filters label, .form label, .filters .field { display: flex; flex-direction: column; gap: 8px; }
.filters label > span, .form label > span, .filters .field > span { font-weight: 600; color: var(--ink-2); font-size: 15px; }
/* Filter pilih-banyak (details/summary bergaya select) */
.multi { position: relative; }
.multi > summary {
  list-style: none; cursor: pointer; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 42px 12px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.multi > summary::-webkit-details-marker { display: none; }
.multi > summary:focus-visible, .multi[open] > summary { border-color: #9cbdf2; box-shadow: 0 0 0 4px #e3edfd; outline: none; }
.multi-panel {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(360px, 90vw);
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); padding: 8px;
}
.multi-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; }
.filters .multi-list label.check { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.filters .multi-list label.check:hover { background: var(--line-soft); }
.filters .multi-list label.check > span { font-weight: 500; color: var(--ink); font-size: 14.5px; }
.filters .multi-panel label.check-all { flex-direction: row; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.filters .multi-panel label.check-all > span { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.multi-panel input[type=checkbox] { width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.multi-list input[type=checkbox] { width: 16px; height: 16px; flex: none; accent-color: var(--primary); }
.multi-actions { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px 2px; border-top: 1px solid var(--line-soft); margin-top: 6px; }
select, input[type=text], input[type=email], input[type=search], input[type=password], input[type=date], input:not([type]) {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s;
}
select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23475467' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select:focus, input:focus { border-color: #9cbdf2; box-shadow: 0 0 0 4px #e3edfd; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.inline-search input { width: 220px; padding: 9px 14px; }
.sort label { display: flex; align-items: center; gap: 10px; }
.sort select { padding: 8px 40px 8px 12px; }

/* ---------- KPI, badges, dots ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { padding: 26px 30px; }
.kpi-label { color: var(--ink-2); font-weight: 500; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.kpi-val { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 16px 0 10px; font-variant-numeric: tabular-nums; }
.kpi-val.accent { color: var(--primary); }
.kpi-sub { color: var(--muted); font-size: 14px; }

.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.tone-green.dot, .seg.tone-green { background: var(--green); }
.tone-blue.dot, .seg.tone-blue { background: var(--blue); }
.tone-amber.dot, .seg.tone-amber { background: var(--amber); }
.tone-gray.dot, .seg.tone-gray { background: var(--gray); }
.tone-purple.dot, .seg.tone-purple { background: var(--purple); }
.tone-red.dot, .seg.tone-red { background: var(--red); }

.badge { display: inline-block; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.badge.tone-green { background: var(--green-soft); color: var(--green-ink); }
.badge.tone-blue { background: var(--blue-soft); color: var(--blue-ink); }
.badge.tone-amber { background: var(--amber-soft); color: var(--amber-ink); }
.badge.tone-gray { background: var(--gray-soft); color: var(--gray-ink); }
.badge.tone-purple { background: var(--purple-soft); color: var(--purple-ink); }
.badge.tone-red { background: var(--red-soft); color: var(--red-ink); }

/* ---------- Charts ---------- */
.comp-head { display: flex; justify-content: space-between; align-items: flex-end; margin: 34px 0 14px; }
.comp-head .big { font-size: 52px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stack { display: flex; gap: 4px; height: 36px; }
.seg { border-radius: 6px; transition: opacity .15s; min-width: 8px; }
.seg:first-child { border-radius: 10px 6px 6px 10px; }
.seg:last-child { border-radius: 6px 10px 10px 6px; }
.seg:only-child { border-radius: 10px; }
.seg:hover { opacity: .8; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; margin-top: 24px; }
.legend-item { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.legend-item span { flex: 1; }
.legend-item b { font-variant-numeric: tabular-nums; }
.legend-item:hover span { text-decoration: underline; }

/* Pegawai per PeG (Dashboard): batang bertumpuk per status */
.peg-chart { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 10px; align-items: end; margin-top: 22px; }
.peg-col { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.peg-col:hover .peg-stack, .peg-col:focus-within .peg-stack { box-shadow: 0 0 0 2px var(--bar-strong); }
.peg-tip { display: none; position: absolute; bottom: 28px; left: 100%; z-index: 5;
  min-width: 220px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(24, 35, 58, .16); font-size: 13px; text-align: left; }
.peg-col:hover .peg-tip, .peg-col:focus-within .peg-tip { display: block; }
.peg-col.tip-left .peg-tip { right: 100%; left: auto; }
.peg-tip > b { display: block; margin-bottom: 8px; font-size: 14px; }
.peg-tip a { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: inherit; text-decoration: none; }
.peg-tip a span { flex: 1; }
.peg-tip a b { font-variant-numeric: tabular-nums; }
.peg-tip a:hover span { text-decoration: underline; }
.peg-total { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; min-height: 18px; }
.peg-stack { width: 100%; max-width: 56px; display: flex; flex-direction: column-reverse; gap: 2px; border-radius: 6px 6px 2px 2px; overflow: hidden; }
.peg-stack .seg.peg-seg { display: block; min-height: 2px; min-width: 0; border-radius: 0; }
.peg-stack .seg.peg-seg:hover { opacity: .75; }
.peg-label { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
a.peg-label:hover { color: var(--ink); text-decoration: underline; }
.peg-axis { margin: 6px 0 0; font-size: 12px; text-align: center; }
@media (max-width: 720px) {
  .peg-chart { gap: 3px; }
  .peg-total { font-size: 9px; }
  .peg-label { font-size: 11px; }
}

/* PeG vs PoG per jenis jabatan: donut per jenis (SVG, keliling 100) */
.donuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.donut-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.donut { display: block; width: 100%; aspect-ratio: 1; }
.donut circle { fill: none; stroke-width: 6; }
.donut-track { stroke: #f1f3f7; }
.donut-seg { transition: stroke-width .15s, opacity .15s; }
.donut a:hover .donut-seg { stroke-width: 7.5; opacity: .85; }
.donut-seg.tone-green { stroke: var(--green); } .donut-seg.tone-blue { stroke: var(--blue); }
.donut-seg.tone-amber { stroke: var(--amber); } .donut-seg.tone-gray { stroke: var(--gray); }
.donut-box { position: relative; width: 100%; max-width: 190px; }
.donut-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.donut-center a, .donut-center span { pointer-events: auto; display: flex; flex-direction: column; align-items: center; color: inherit; text-decoration: none; }
.donut-center b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.donut-center small { color: var(--muted); font-size: 12px; }
.donut-center a:hover b { text-decoration: underline; }
.donut-name { margin-top: 14px; font-weight: 700; font-size: 15px; line-height: 1.3; max-width: 200px; }
.donut-item.bar-tip-wrap:hover .donut { filter: drop-shadow(0 0 4px rgba(59, 111, 196, .35)); }
@media (max-width: 720px) {
  .donuts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
}

/* Tooltip batang horizontal (PeG vs PoG, LDP): muncul di atas batang saat disorot */
.bar-tip-wrap { position: relative; min-width: 0; }
.bar-tip { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); z-index: 5;
  min-width: 260px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(24, 35, 58, .16); font-size: 13px; text-align: left; }
.bar-tip-wrap:hover .bar-tip, .bar-tip-wrap:focus-within .bar-tip { display: block; }
.bar-tip-wrap:hover .stack { filter: brightness(1.04); box-shadow: 0 0 0 2px var(--bar-strong); border-radius: 10px; }
.bar-tip > b { display: block; margin-bottom: 8px; font-size: 14px; }
.bar-tip a, .bar-tip > div { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: inherit; text-decoration: none; }
.bar-tip span { flex: 1; }
.bar-tip a b, .bar-tip > div b { font-variant-numeric: tabular-nums; }
.bar-tip small { min-width: 48px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-tip > div { color: var(--muted); }
.bar-tip a:hover span { text-decoration: underline; }

/* LDP Pegawai per jenjang (Dashboard) */
.ldp-legend { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; }
.ldp-legend .legend-item { font-size: 14px; }
.ldp-rows { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.ldp-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr minmax(110px, auto); gap: 18px; align-items: center; }
.bar-total { text-align: right; white-space: nowrap; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.bar-total b { color: var(--ink); font-size: 15px; }
a.bar-total:hover { text-decoration: underline; }
.ldp-name { display: flex; flex-direction: column; line-height: 1.3; }
.ldp-name small { color: var(--muted); font-size: 13px; }
.ldp-stack { height: 20px; }
.ldp-empty { flex: 1; background: #f1f3f7; }
.ldp-note-link:hover { text-decoration: underline; }
.ldp-note-link { color: inherit; }
a.seg { display: block; }
.ldp-hint { margin: 6px 0 0; font-size: 12px; }
.ldp-detail { margin: 18px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ldp-detail > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.ldp-detail dt { color: var(--muted); font-size: 14px; }
.ldp-detail dd { margin: 0; }
.ldp-cell { display: flex; flex-direction: column; gap: 2px; }
.ldp-cell > span { display: inline-flex; align-items: center; gap: 6px; }
.ldp-cell small { white-space: normal; max-width: 220px; }
.ldp-note { margin: 18px 0 0; font-size: 13px; }
@media (max-width: 720px) {
  .ldp-row { grid-template-columns: 1fr; gap: 8px; }
  .bar-total { text-align: left; }
}

.hbars { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.hbars-scroll { max-height: 340px; overflow-y: auto; padding-right: 8px; overscroll-behavior: contain; }
.hbar-top { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 10px; }
.track { height: 16px; background: #f1f3f7; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--bar-strong); border-radius: 99px; }

.vbars { display: flex; justify-content: space-around; align-items: flex-end; gap: 12px; min-height: 230px; padding-top: 30px; }
.vbars.sem { min-height: 200px; }
.vbar { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; max-width: 110px; }
/* Angka & grafik Dashboard menaut ke Monitoring Pegawai (siapa saja) */
a.kpi-link { color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; }
a.kpi-link:hover { border-color: var(--bar-strong); }
a.kpi-link:hover .kpi-label { text-decoration: underline; }
a.hbar-link, a.vbar-link { color: inherit; text-decoration: none; display: block; border-radius: 8px; }
a.vbar-link { display: flex; }
a.hbar-link:hover .hbar-top span, a.vbar-link:hover span { text-decoration: underline; color: var(--ink); }
a.vbar-link:hover .col, a.hbar-link:hover .track i { opacity: .8; }
.vbar b { font-size: 16px; font-variant-numeric: tabular-nums; }
.vbar .col { width: 100%; max-width: 88px; background: var(--bar); border-radius: 7px 7px 2px 2px; }
.vbar .col-empty { background: repeating-linear-gradient(45deg, #e5e9f0 0 6px, #f3f5f8 6px 12px); }
.vbar span { color: var(--muted); font-size: 14px; white-space: nowrap; }

.todo { list-style: none; margin: 18px 0 0; padding: 0; }
.todo li { border-top: 1px solid var(--line-soft); }
.todo li:first-child { border-top: 0; }
.todo a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; }
.todo a > span { display: flex; flex-direction: column; min-width: 0; }
.todo small { color: var(--muted); font-size: 13px; }
.todo a:hover b { color: var(--primary-ink); }
.todo li.muted { padding: 12px 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; position: relative; } /* relative: elemen absolut (sr-only) ikut terpotong, tidak melebarkan halaman */
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); background: #f7f8fb; padding: 18px 24px; font-size: 15px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.card .tbl th:first-child, .card .tbl td:first-child { padding-left: 30px; }
.tbl td { padding: 18px 24px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tfoot td { border-bottom: 0; background: #fbfcfd; }
.tbl tbody tr:hover td { background: #fafbfd; }
.tbl.dense td, .tbl.dense th { padding: 10px 16px; font-size: 14px; }
.tbl.compact td, .tbl.compact th { padding: 14px 14px; }
.tbl.compact .segline { min-width: 250px; }
.tbl .empty { text-align: center; color: var(--muted); padding: 40px; }
.tbl .num { font-variant-numeric: tabular-nums; }
.person { display: flex; flex-direction: column; line-height: 1.35; }
.person b { font-weight: 700; white-space: nowrap; }
.person small { color: var(--muted); font-size: 14px; }
a.person:hover b { color: var(--primary-ink); }
.poin { min-width: 140px; }
.poin b { display: block; font-variant-numeric: tabular-nums; }
.mini-bar { display: block; height: 6px; background: #f1f3f7; border-radius: 99px; margin-top: 8px; overflow: hidden; width: 140px; }
.mini-bar i { display: block; height: 100%; background: var(--bar-strong); border-radius: 99px; }
.segline { min-width: 200px; }
.segline + .segline { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.actions { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }
.actions form { margin: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 18px 30px 22px; gap: 12px; flex-wrap: wrap; }
.pager-btns { display: flex; gap: 10px; }

/* ---------- Detail pegawai ---------- */
.profile { display: flex; align-items: center; gap: 24px; }
.avatar { width: 96px; height: 96px; border-radius: 22px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, #dbe8fb, #c3d8f6); color: var(--primary-ink); font-size: 32px; font-weight: 800; }
.profile-main { flex: 1; min-width: 0; }
.profile-main h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.chips { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; color: var(--ink-2); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.detail-grid.wide-main { grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); }
.col-main, .col-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.total-big { font-size: 48px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.progress { position: relative; height: 18px; background: #eef1f6; border-radius: 99px; margin-top: 26px; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2463c8, #2aa7e0); }
.progress .mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; box-shadow: 0 0 0 1px #c9d4e5; }
.progress-scale { position: relative; height: 24px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.progress-scale span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.progress-scale span:first-child { transform: none; }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; }
.checklist li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); }
.checklist li:first-child { border-top: 0; padding-top: 6px; }
.checklist b { display: block; font-weight: 700; font-size: 16px; }
.checklist small { color: var(--muted); font-size: 14.5px; }
.ck { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.ck .ico { stroke-width: 3; }
.ck-ok { background: var(--green-soft); color: var(--green-ink); }
.ck-warn { background: var(--amber-soft); color: var(--amber-ink); }
.ck-fail { background: var(--red-soft); color: var(--red-ink); }
.ck-na { background: var(--gray-soft); color: var(--gray-ink); }
.hasil { font-size: 17px; font-weight: 700; color: var(--ink-2); margin: 24px 0 12px; }
.notes { margin-top: 4px; background: var(--amber-soft); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: #7a4a0d; }
.notes ul { margin: 6px 0 0; padding-left: 18px; }
.disclaimer { background: #eaf3fd; border: 1px solid #d6e6fa; border-radius: var(--radius); padding: 18px 24px; color: #2e4f7d; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; }
.disclaimer .ico { margin-top: 3px; }

/* ---------- Ketentuan, data, tabs ---------- */
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.steps { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.step { flex: none; min-width: 52px; text-align: center; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: 12.5px; border-radius: 6px; padding: 3px 6px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.tabs a small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.tabs a.active { background: var(--primary-soft); border-color: #cfe0fb; color: var(--primary-ink); }

.flash { border-radius: 12px; padding: 12px 16px; font-weight: 500; font-size: 14.5px; }
.flash-success { background: var(--green-soft); color: var(--green-ink); }
.flash-error { background: var(--red-soft); color: var(--red-ink); }
.flash-warn { background: var(--amber-soft); color: #7a4a0d; }

/* ---------- Login ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 15% 10%, #e8effc, var(--bg) 55%); }
.login-wrap { display: grid; grid-template-columns: 1.1fr 1fr; width: min(1040px, 100%); background: #fff; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(30, 58, 117, .35); }
.login-hero { background: linear-gradient(150deg, #1a2f63, #1e3a75 55%, #2c4fa0); color: #fff; padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 10px 0 12px; }
.login-hero p { color: #c3d2ee; margin: 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: #dbe5f7; font-size: 14.5px; }
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points .ico { background: rgba(255, 255, 255, .14); border-radius: 50%; padding: 3px; width: 22px; height: 22px; stroke-width: 3; }
.login-card { padding: 48px 44px; }
.login-card h2 { font-size: 28px; font-weight: 800; }
.login-card .flash { margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .sidebar { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 10px 40px rgba(0, 0, 0, .2); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 35; }
  .menu-btn { display: inline-flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters.filters-3 { grid-template-columns: 1fr 1fr; }
  .filters.filters-3 label:last-child { grid-column: 1 / -1; }
  .login-wrap { grid-template-columns: 1fr; }
  .top-periode, .who-txt { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 18px 16px 40px; gap: 16px; }
  .topbar { padding: 0 16px; }
  .card.pad, .kpi { padding: 20px; }
  .card-head { padding: 20px 20px 14px; }
  .card .tbl th:first-child, .card .tbl td:first-child { padding-left: 20px; }
  .tbl th, .tbl td { padding: 14px; }
  .pager { padding: 16px 20px; }
  .hero { padding: 24px; }
  .hero h1, .page-title { font-size: 26px; }
  .kpis, .kpis.three, .filters, .legend { grid-template-columns: 1fr; }
  .filters.filters-3 { grid-template-columns: 1fr; }
  .kpi-val, .comp-head .big { font-size: 40px; }
  .profile { flex-wrap: wrap; }
  .avatar { width: 72px; height: 72px; font-size: 24px; }
  .vbars { gap: 6px; }
  .vbar span { font-size: 11px; }
  .vbar b { font-size: 13px; }
  .login-hero, .login-card { padding: 28px; }
  .inline-search input { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- Pengaturan menu utama ---------- */
.nav-off { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--gray-ink); background: var(--gray-soft); border-radius: 6px; padding: 2px 7px; }
.menu-switches { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.switch-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.switch-row:hover { background: #f8fafd; }
.switch-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--primary-soft); color: var(--primary-ink); }
.switch-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.switch-txt small { color: var(--muted); font-size: 14px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #cfd5df; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Sinkronisasi data real ---------- */
.sync-last { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 0 30px 20px; font-size: 14.5px; }
.sync-history { border-top: 1px solid var(--line-soft); }
.sync-history summary { cursor: pointer; padding: 14px 30px; font-weight: 600; color: var(--ink-2); }
.sync-history .tbl td { vertical-align: top; }
@media (max-width: 640px) { .sync-last { padding: 0 16px 16px; } .sync-history summary { padding: 12px 16px; } }
.sync-last + .sync-last { margin-top: -10px; }
.import-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.import-form input[type=file] { max-width: 100%; font: inherit; font-size: 14px; }
.sync-tbl { min-width: 110px; }

/* ---------- Validasi Data ---------- */
.issue-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.issue-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; color: inherit; border: 1px solid transparent; }
.issue-card .badge { white-space: normal; text-align: left; }
.issue-card b { font-size: 26px; line-height: 1; }
.issue-card small { color: var(--muted); font-size: 13.5px; }
.issue-card:hover { border-color: var(--line); }
.issue-card.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.issue-value { font-size: 13px; line-height: 1.45; min-width: 280px; max-width: 460px; }
.iv-line + .iv-line { margin-top: 8px; }
.iv-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.iv-used { padding-left: 8px; border-left: 3px solid var(--primary); }
.mt-xs { margin-top: 4px; }
.seg-jab { font-weight: 600; color: var(--ink); font-size: 13px; line-height: 1.35; }
.tbl td.seg-calc { color: var(--ink); line-height: 1.5; }
.tbl tr.seg-split td { border-bottom: 1px dashed var(--line-soft); }
.tbl tr.seg-split td[rowspan] { border-bottom: 1px solid var(--line-soft); }
.card .tbl tr.seg-cont td:first-child { padding-left: 14px; }
.tbl.compact.tbl-riwayat .segline { min-width: 200px; }
.tbl-riwayat .badge { white-space: normal; line-height: 1.3; }
.seg-sum { display: block; font-weight: 400; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.col-jabatan { min-width: 180px; max-width: 280px; }

/* Unit Organisasi: pohon dengan kolom cari (satu field), memakai gaya .multi */
.tree .multi-panel { width: min(520px, 92vw); }
.tree .pick-cari { padding: 9px 12px; border-radius: 10px; margin-bottom: 6px; font-size: 14.5px; }
.tree-body, .tree-hasil { max-height: 360px; overflow-y: auto; }
.tree-ul, .tree-hasil { list-style: none; margin: 0; padding: 0; }
.tree-ul .tree-ul { padding-left: 18px; border-left: 1px dashed var(--line); margin-left: 11px; }
.tree-row { display: flex; align-items: flex-start; gap: 2px; }
.tree-tog { flex: none; width: 22px; height: 30px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 13px; padding: 0; }
.tree-tog.kosong { cursor: default; }
.tree-node { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left;
  border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.tree-node:hover, .tree-node:focus-visible { background: var(--line-soft); outline: none; }
.tree-node.on { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.tree-semua { width: 100%; margin-bottom: 2px; }
.tree-nama { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.tree-jalur { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.tree-jml { flex: none; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.tree-info { padding: 6px 8px; font-size: 14px; }
.tree-node.nol:not(.on) { color: var(--muted); }
