/* AK Human Capital — tema putih, hitam & gold */
:root {
  --gold: #C9A227; --gold-dark: #9C7A12; --gold-soft: #F7F0DA; --gold-line: #E6D8A8;
  --ink: #141414; --ink-2: #3A3A3A; --muted: #6E6A5E; --line: #ECE6D4; --line-2: #F3EFE3;
  --bg: #FAF8F2; --surface: #FFFFFF; --sidebar: #0B0B0B; --sidebar-2: #161616;
  --good: #2E7D32; --good-bg: #E8F3E8; --warn: #A66A00; --warn-bg: #FFF3D6; --bad: #C62828; --bad-bg: #FDE8E6; --info: #1F5FAD; --info-bg: #E6F0FB;
  --s1: #a8820f; --s2: #2a78d6; --s3: #eb6834; --s4: #1baf7a; --s5: #4a3aa7; --s6: #e87ba4;
  --radius: 14px; --shadow: 0 1px 2px rgba(20, 20, 20, .04), 0 6px 18px rgba(20, 20, 20, .05);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
svg[aria-hidden="true"] { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.geo-box .ic svg, .insight h4 svg { width: 18px; height: 18px; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.bold { font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }
.grow { flex: 1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.row.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 10px; }
.gap-s { gap: 6px; } .gap-l { gap: 18px; }
.mt { margin-top: 14px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 22px; } .mb { margin-bottom: 14px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 262px; background: var(--sidebar); color: #EDE7D3; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .25s; border-right: 1px solid #222; }
.sidebar::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 200px at -10% -5%, rgba(201, 162, 39, .18), transparent 60%), repeating-linear-gradient(135deg, rgba(201, 162, 39, .025) 0 2px, transparent 2px 14px); }
.brand { display: flex; gap: 12px; align-items: center; padding: 18px 18px 14px; position: relative; border-bottom: 1px solid rgba(201, 162, 39, .25); }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.brand .mono-logo { width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, #1b1b1b, #000); border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-weight: 800; letter-spacing: .5px; }
.brand .t1 { font-weight: 800; color: #fff; font-size: 15px; line-height: 1.15; }
.brand .t2 { font-size: 11px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-top: 3px; }
.nav { overflow-y: auto; padding: 10px 10px 30px; flex: 1; position: relative; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.nav .sec { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #8C7A45; padding: 14px 12px 6px; display: flex; align-items: center; gap: 8px; }
.nav .sec::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 162, 39, .35), transparent); }
.nav a { display: flex; align-items: center; gap: 11px; color: #D8D2BF; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; text-decoration: none; position: relative; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav a.active { background: linear-gradient(90deg, rgba(201, 162, 39, .22), rgba(201, 162, 39, .05)); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.nav a.active svg { color: var(--gold); opacity: 1; }
.nav a .cnt { margin-left: auto; background: var(--gold); color: #000; border-radius: 20px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; }
.side-foot { padding: 12px 16px; border-top: 1px solid rgba(201, 162, 39, .2); font-size: 11px; color: #8a846f; position: relative; }
.main { margin-left: 262px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 22px; position: sticky; top: 0; z-index: 30; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent 45%); opacity: .6; }
.topbar h1 { font-size: 18px; }
.topbar .crumb { font-size: 12px; color: var(--muted); }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; position: relative; }
.iconbtn:hover { border-color: var(--gold-line); background: var(--gold-soft); }
.iconbtn svg { width: 19px; height: 19px; }
.iconbtn .dot { position: absolute; top: -4px; right: -4px; background: var(--bad); color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 5px; border: 2px solid #fff; }
.user-chip { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 12px; border: 1px solid transparent; }
.user-chip:hover { border-color: var(--line); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-dark); display: grid; place-items: center; font-weight: 700; font-size: 13px; overflow: hidden; flex: none; border: 1px solid var(--gold-line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; }
.avatar.md { width: 44px; height: 44px; font-size: 16px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.content { padding: 22px; max-width: 1480px; width: 100%; }
.menu-btn { display: none; }
.backdrop { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card.pad-0 { padding: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-h h3::before { content: ''; width: 4px; height: 16px; background: var(--gold); border-radius: 2px; }
.card-h .sub { font-size: 12px; color: var(--muted); font-weight: 400; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .span3 { grid-column: span 3; }
.hero { background: linear-gradient(120deg, #0E0E0E 0%, #1d1a12 60%, #3a2f10 100%); color: #fff; border-radius: 18px; padding: 22px 24px; position: relative; overflow: hidden; border: 1px solid #2b2618; }
.hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(201, 162, 39, .35); box-shadow: 0 0 0 30px rgba(201, 162, 39, .05), 0 0 0 60px rgba(201, 162, 39, .03); }
.hero h2 { font-size: 22px; }
.hero .gold { color: var(--gold); }
.hero .muted { color: #bcb39a; }

/* stat tile */
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; position: relative; overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.stat .lbl { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.stat .val { font-size: 26px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .val small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 3px; }
.stat .foot { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.stat.link { cursor: pointer; }
.stat.link:hover { border-color: var(--gold-line); }
.stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line); }
.stat.st-aman::before { background: var(--good); } .stat.st-perhatian::before { background: #E0A100; } .stat.st-kritis::before { background: var(--bad); }
.stat.dark { background: #0F0F0F; color: #fff; border-color: #2a2616; }
.stat.dark .lbl { color: #c9bf9f; }

/* status pill */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 20px; white-space: nowrap; text-transform: uppercase; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.aman { background: var(--good-bg); color: var(--good); }
.pill.perhatian { background: var(--warn-bg); color: var(--warn); }
.pill.kritis { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.badge.gold { background: var(--gold-soft); color: var(--gold-dark); }
.badge.green { background: var(--good-bg); color: var(--good); }
.badge.red { background: var(--bad-bg); color: var(--bad); }
.badge.amber { background: var(--warn-bg); color: var(--warn); }
.badge.blue { background: var(--info-bg); color: var(--info); }
.badge.dark { background: #161616; color: var(--gold); }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 13px; white-space: nowrap; color: var(--ink); text-decoration: none; min-height: 36px; }
.btn:hover { border-color: var(--gold-line); background: #FFFDF6; text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, #D4AE35, var(--gold)); border-color: var(--gold-dark); color: #111; }
.btn.primary:hover { background: linear-gradient(180deg, #DDB93F, #C29A1F); }
.btn.dark { background: #111; color: var(--gold); border-color: #111; }
.btn.dark:hover { background: #222; }
.btn.danger { color: var(--bad); border-color: #F2C9C4; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.success { color: var(--good); border-color: #BFE0C0; }
.btn.success:hover { background: var(--good-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12px; min-height: 30px; border-radius: 8px; }
.btn.lg { padding: 12px 20px; font-size: 15px; min-height: 48px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.block { width: 100%; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); min-width: 0; }
label.f .req { color: var(--bad); }
.input, select.input, textarea.input { border: 1px solid #DED7C2; background: #fff; border-radius: 10px; padding: 9px 11px; font-size: 13.5px; outline: none; width: 100%; min-height: 38px; }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .18); }
textarea.input { min-height: 80px; resize: vertical; }
.input.sm { padding: 5px 8px; min-height: 30px; font-size: 12.5px; border-radius: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; font-weight: 500; }
.check input { width: 17px; height: 17px; accent-color: var(--gold); }
.rating { display: flex; gap: 5px; }
.rating button { width: 36px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; }
.rating button.on { background: var(--gold); border-color: var(--gold-dark); color: #111; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--gold-soft); border: 1px solid var(--gold-line); color: #5b4608; border-radius: 20px; padding: 3px 6px 3px 10px; font-size: 12px; font-weight: 600; }
.chip button { border: 0; background: rgba(0, 0, 0, .08); border-radius: 50%; width: 18px; height: 18px; cursor: pointer; line-height: 1; font-size: 12px; }
.combo { position: relative; }
.combo-list { position: absolute; z-index: 90; left: 0; right: 0; top: 100%; margin-top: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); max-height: 260px; overflow: auto; }
.combo-list div { padding: 8px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; font-size: 13px; }
.combo-list div:hover, .combo-list div.hl { background: var(--gold-soft); }
.combo-list .sub { color: var(--muted); font-size: 11.5px; }
.files { display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 12.5px; background: #fff; }
.file-item .ext { font-size: 10px; font-weight: 800; background: #111; color: var(--gold); border-radius: 5px; padding: 3px 5px; text-transform: uppercase; }
.file-item img.th { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; }
.dropzone { border: 1.5px dashed #D6CBA5; border-radius: 12px; padding: 14px; text-align: center; color: var(--muted); font-size: 12.5px; cursor: pointer; background: #FFFDF6; }
.dropzone:hover, .dropzone.over { border-color: var(--gold); background: var(--gold-soft); }
.dropzone svg { width: 22px; height: 22px; vertical-align: middle; }
.dropzone.big svg { width: 36px; height: 36px; display: block; margin: 0 auto 4px; color: var(--gold-dark); }
.btn.wrap { white-space: normal; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 13.5px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.tabs button .cnt { background: var(--bad); color: #fff; border-radius: 10px; font-size: 10px; padding: 1px 6px; margin-left: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: transparent; padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg button.on { background: #111; color: var(--gold); }

/* ---------- Table ---------- */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: #111; color: var(--gold); font-weight: 600; font-size: 11.5px; text-align: left; padding: 10px 12px; white-space: nowrap; letter-spacing: .02em; position: sticky; top: 0; cursor: default; }
.tbl th.sort { cursor: pointer; }
.tbl th.sort:hover { color: #fff; }
.tbl td { padding: 9px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:hover td { background: #FFFCF2; }
.tbl tr.click { cursor: pointer; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 700; background: var(--gold-soft); border-top: 2px solid var(--gold-line); }
.tbl .person { display: flex; align-items: center; gap: 9px; }
.tbl .person .n { font-weight: 600; }
.tbl-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.tbl-tools .search { max-width: 260px; }
.empty { padding: 30px; text-align: center; color: var(--muted); }
.empty svg { width: 36px; height: 36px; color: var(--gold-line); display: block; margin: 0 auto 8px; }

/* ---------- Modal, toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 10, 10, .55); backdrop-filter: blur(2px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fade .15s; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); border-top: 3px solid var(--gold); animation: pop .18s; }
.modal.wide { max-width: 920px; } .modal.xl { max-width: 1180px; } .modal.narrow { max-width: 440px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 10px; }
.modal-h h3 { font-size: 16px; }
.modal-b { padding: 18px 20px; }
.modal-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: #FDFBF5; border-radius: 0 0 16px 16px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0 } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0 } }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast { background: #111; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 13px; display: flex; gap: 10px; align-items: flex-start; border-left: 4px solid var(--gold); animation: pop .2s; }
.toast.err { border-left-color: #EF5350; }
.toast.ok { border-left-color: #66BB6A; }
.tooltip { position: fixed; z-index: 300; pointer-events: none; background: #111; color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); max-width: 260px; line-height: 1.45; }
.tooltip b { color: var(--gold); }
.tooltip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* ---------- Charts ---------- */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.chart .grid-l { stroke: #EFEADB; stroke-width: 1; }
.chart .axis { stroke: #D9D1B8; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 58px; gap: 10px; align-items: center; font-size: 12.5px; }
.bar-row .track { height: 10px; background: var(--line-2); border-radius: 6px; overflow: hidden; position: relative; }
.bar-row .fill { height: 100%; border-radius: 6px; background: var(--gold); }
.bar-row .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-row .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 8px; background: var(--line-2); border-radius: 6px; overflow: hidden; }
.progress > div { height: 100%; background: var(--gold); border-radius: 6px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list .it { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list .it:last-child { border-bottom: 0; }
.list .it .t { font-weight: 600; font-size: 13px; }
.list .it .s { font-size: 12px; color: var(--muted); }
.alert-row { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; align-items: flex-start; }
.alert-row + .alert-row { margin-top: 8px; }
.alert-row .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.alert-row.kritis .ic { background: var(--bad-bg); color: var(--bad); }
.alert-row.perhatian .ic { background: var(--warn-bg); color: var(--warn); }
.alert-row.info .ic { background: var(--info-bg); color: var(--info); }
.alert-row .ic svg { width: 16px; height: 16px; }
.insight { border: 1px solid var(--gold-line); background: linear-gradient(180deg, #FFFCF1, #fff); border-radius: 14px; padding: 16px; }
.insight h4 { font-size: 13px; display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; }
.insight h4:first-child { margin-top: 0; }
.insight ul { margin: 0; padding-left: 18px; }
.insight li { margin: 4px 0; font-size: 13px; line-height: 1.5; }
.ai-tag { background: #111; color: var(--gold); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 20px; letter-spacing: .08em; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; }
.login-art { background: #0B0B0B; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-art::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 400px at 20% 10%, rgba(201, 162, 39, .28), transparent 60%), repeating-linear-gradient(135deg, rgba(201, 162, 39, .04) 0 2px, transparent 2px 18px); }
.login-art .ring { position: absolute; right: -120px; bottom: -120px; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(201, 162, 39, .4); box-shadow: 0 0 0 40px rgba(201, 162, 39, .06), 0 0 0 90px rgba(201, 162, 39, .035); }
.login-art > * { position: relative; }
.login-art h1 { font-size: 40px; line-height: 1.1; max-width: 480px; }
.login-art h1 span { color: var(--gold); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 30px; }
.login-box { width: 100%; max-width: 380px; }
.login-box .logo { width: 74px; height: 74px; object-fit: contain; }
.login-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 480px; }
.login-feats div { border: 1px solid rgba(201, 162, 39, .3); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: #ddd4b8; background: rgba(255, 255, 255, .02); }

/* ---------- Attendance ---------- */
.clock-card { background: #0E0E0E; color: #fff; border-radius: 18px; padding: 20px; position: relative; overflow: hidden; border: 1px solid #2a2616; }
.clock-card .time { font-size: 44px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.clock-card .gold { color: var(--gold); }
.cam { position: relative; width: 100%; aspect-ratio: 3/4; max-height: 62vh; background: #000; border-radius: 16px; overflow: hidden; }
.cam video, .cam canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam .guide { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 3/4; transform: translate(-50%, -50%); border: 3px solid rgba(255, 255, 255, .5); border-radius: 50%; transition: border-color .2s; }
.cam .guide.ok { border-color: #66BB6A; box-shadow: 0 0 0 2000px rgba(0, 0, 0, .25); }
.cam .msg { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .7); color: #fff; padding: 10px 12px; border-radius: 12px; text-align: center; font-weight: 600; font-size: 14px; }
.geo-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.geo-box .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .d { border: 1px solid var(--line-2); border-radius: 8px; min-height: 58px; padding: 5px; font-size: 11px; background: #fff; }
.cal .d.off { background: #F7F5EF; }
.cal .d.hol { background: var(--bad-bg); }
.cal .d.cb { background: var(--warn-bg); }
.cal .d.today { outline: 2px solid var(--gold); }
.cal .d .n { font-weight: 700; font-size: 12px; }
.cal .h { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; padding: 4px; }
.code { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 3px; border-radius: 5px; font-size: 10.5px; font-weight: 700; }
.code.H { background: var(--good-bg); color: var(--good); } .code.T { background: var(--warn-bg); color: var(--warn); } .code.PC { background: #FFF0E0; color: #B25B00; }
.code.A { background: var(--bad-bg); color: var(--bad); } .code.I, .code.M { background: var(--info-bg); color: var(--info); } .code.S { background: #F2E7FB; color: #6A1B9A; } .code.C { background: var(--gold-soft); color: var(--gold-dark); }
.code.L, .code.LN, .code.OFF { background: #EFEFEF; color: #888; }
.sched td.cell { padding: 3px; text-align: center; }
.sched .sc { display: block; border-radius: 6px; padding: 5px 2px; font-size: 11px; font-weight: 700; cursor: pointer; border: 1px solid transparent; min-width: 38px; }
.sched .sc:hover { border-color: #111; }
.sched .sc.off { background: #EFEFEF; color: #777; }
.sched .sc.hol { background: var(--bad-bg); color: var(--bad); }
.sched .sc.leave { outline: 2px dashed var(--info); }

/* ---------- DAP ---------- */
.dap-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; max-height: 72vh; position: relative; }
.dap-grid { display: grid; min-width: 880px; position: relative; }
.dap-grid .hd { position: sticky; top: 0; z-index: 5; background: #111; color: #fff; padding: 8px 6px; text-align: center; font-size: 12px; border-left: 1px solid #222; }
.dap-grid .hd b { display: block; color: var(--gold); font-size: 16px; }
.dap-grid .hd.today { background: linear-gradient(180deg, #3a2f10, #111); }
.dap-grid .hd.off { color: #aaa; }
.dap-grid .tm { position: sticky; left: 0; z-index: 4; background: #FDFBF5; font-size: 10.5px; color: var(--muted); text-align: right; padding: 0 6px; border-top: 1px solid var(--line-2); height: 30px; line-height: 30px; }
.dap-grid .tm.hour { color: var(--ink); font-weight: 700; }
.dap-grid .corner { position: sticky; left: 0; top: 0; z-index: 6; background: #111; }
.dap-grid .slot { border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); height: 30px; cursor: cell; user-select: none; }
.dap-grid .slot.hour { border-top-color: var(--line); }
.dap-grid .slot.work { background: #FFFEF9; }
.dap-grid .slot.offday { background: repeating-linear-gradient(135deg, #FAFAFA 0 6px, #F3F3F3 6px 12px); }
.dap-grid .slot.sel { background: var(--gold-soft) !important; }
.dap-ev { position: absolute; border-radius: 8px; padding: 4px 6px; font-size: 11px; overflow: hidden; cursor: pointer; border: 1px solid; line-height: 1.3; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); z-index: 3; }
.dap-ev b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dap-ev.rutinitas { background: #F7F0DA; border-color: #D8C07A; color: #4a3a07; }
.dap-ev.inisiatif { background: #E6F0FB; border-color: #9CC0EC; color: #0f3d73; }
.dap-ev.mandatory { background: #1A1A1A; border-color: #000; color: #F3E3A6; }
.dap-ev.luar_kota { background: #E8F3E8; border-color: #9CCB9E; color: #1d4d20; }
.dap-ev.done { opacity: .75; }
.dap-ev.done::after { content: '✓'; position: absolute; right: 5px; top: 3px; font-weight: 800; }
.dap-ev.locked { background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 4px, transparent 4px 9px); }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 4; pointer-events: none; }
.cat-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0, 0, 0, .15); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(240px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kcol { background: #F4F1E7; border-radius: 14px; padding: 10px; min-height: 300px; border: 1px solid var(--line); }
.kcol.over { background: var(--gold-soft); border-color: var(--gold); }
.kcol-h { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px; font-weight: 700; font-size: 13px; }
.kcol-h .n { background: #111; color: var(--gold); font-size: 11px; border-radius: 10px; padding: 1px 8px; }
.kcard { background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); cursor: grab; touch-action: none; user-select: none; }
.kcard:hover { border-color: var(--gold-line); }
.kcard.dragging { opacity: .9; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); transform: rotate(2deg); cursor: grabbing; position: fixed; z-index: 500; pointer-events: none; }
.kcard .t { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.kcard .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--muted); }
.kph { border: 2px dashed var(--gold); border-radius: 12px; margin-bottom: 8px; background: rgba(201, 162, 39, .08); }
.prio-Tinggi { color: var(--bad); } .prio-Sedang { color: var(--warn); } .prio-Rendah { color: var(--good); }

/* ---------- Org chart ---------- */
.org { overflow: auto; padding: 10px 0 20px; }
.org ul { padding-top: 22px; position: relative; display: flex; justify-content: center; margin: 0; padding-left: 0; }
.org li { list-style: none; text-align: center; position: relative; padding: 22px 6px 0; }
.org li::before, .org li::after { content: ''; position: absolute; top: 0; right: 50%; border-top: 2px solid var(--gold-line); width: 50%; height: 22px; }
.org li::after { right: auto; left: 50%; border-left: 2px solid var(--gold-line); }
.org li:only-child::after, .org li:only-child::before { display: none; }
.org li:only-child { padding-top: 0; }
.org li:first-child::before, .org li:last-child::after { border: 0 none; }
.org li:last-child::before { border-right: 2px solid var(--gold-line); border-radius: 0 6px 0 0; }
.org li:first-child::after { border-radius: 6px 0 0 0; }
.org ul ul::before { content: ''; position: absolute; top: 0; left: 50%; border-left: 2px solid var(--gold-line); height: 22px; }
.org > ul { padding-top: 0; }
.onode { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 8px; min-width: 132px; max-width: 170px; cursor: pointer; box-shadow: var(--shadow); position: relative; }
.onode:hover { border-color: var(--gold); }
.onode.owner { background: #0E0E0E; color: #fff; border-color: var(--gold); }
.onode.owner .p { color: var(--gold); }
.onode.manager { border-top: 3px solid var(--gold); }
.onode.spv { border-top: 3px solid #111; }
.onode .n { font-weight: 700; font-size: 12px; line-height: 1.2; }
.onode .p { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.onode .tg { position: absolute; top: -9px; right: -6px; background: #111; color: var(--gold); border-radius: 10px; font-size: 10px; padding: 1px 6px; font-weight: 700; }
.onode.hl { outline: 3px solid var(--gold); }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 7px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; }
.timeline { border-left: 2px solid var(--gold-line); padding-left: 14px; margin-left: 6px; }
.timeline .ti { position: relative; padding-bottom: 12px; }
.timeline .ti::before { content: ''; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.timeline .ti .d { font-size: 11px; color: var(--muted); }
.timeline .ti .x { font-size: 13px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps .st { font-size: 11px; padding: 3px 8px; border-radius: 20px; background: var(--line-2); color: var(--muted); font-weight: 600; }
.steps .st.approved { background: var(--good-bg); color: var(--good); }
.steps .st.rejected { background: var(--bad-bg); color: var(--bad); }
.steps .st.pending { background: var(--warn-bg); color: var(--warn); }
.exec-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.exec-tile .l { font-size: 12px; letter-spacing: .18em; font-weight: 800; color: var(--ink-2); }
.exec-tile .v { font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.exec-tile .u { font-size: 12px; color: var(--muted); font-weight: 600; }
.exec-tile .s { font-size: 12px; color: var(--muted); margin-top: 8px; min-height: 32px; }
.exec-tile .bar { position: absolute; left: 0; right: 0; top: 0; height: 4px; }
.exec-tile.aman .bar { background: var(--good); } .exec-tile.perhatian .bar { background: #E0A100; } .exec-tile.kritis .bar { background: var(--bad); }
.bottom-nav { display: none; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 10px; font-size: 12px; color: var(--muted); }
.color-row { display: flex; align-items: center; gap: 8px; }
.color-row input[type=color] { width: 44px; height: 38px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: #fff; }
.skeleton { background: linear-gradient(90deg, #f1ede2 25%, #f8f5ec 50%, #f1ede2 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; height: 90px; }
@keyframes sk { to { background-position: -200% 0 } }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) { .g6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: grid; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .span2, .span3 { grid-column: auto; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 14px 16px 90px; }
  .topbar { padding: 0 12px; height: 58px; }
  .topbar h1 { font-size: 16px; }
  .topbar .crumb, .user-chip .nm { display: none; }
  .g4, .g5, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stat .val { font-size: 22px; }
  .kv { grid-template-columns: 110px 1fr; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 18px 18px 0 0; max-height: 94vh; overflow-y: auto; }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: #0B0B0B; z-index: 50; border-top: 1px solid #2a2616; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #bdb49a; font-size: 10.5px; text-decoration: none; padding: 4px 0; }
  .bottom-nav a svg { width: 21px; height: 21px; }
  .bottom-nav a.active { color: var(--gold); }
  .toasts { left: 12px; right: 12px; bottom: 80px; max-width: none; }
  .exec-tile .v { font-size: 30px; }
  .bar-row { grid-template-columns: 100px 1fr 50px; }
}
@media print {
  .sidebar, .topbar, .bottom-nav, .no-print, .btn { display: none !important; }
  .main { margin: 0; } .content { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  body { background: #fff; }
}
