/* ===== Token ===== */
:root {
  --hutan: #0F2A1D; --hutan-2: #163A29;
  --daun: #1F7A4D; --daun-2: #26925C; --pucuk: #E6F3EB;
  --tandan: #F59E0B; --tandan-2: #FBBF24; --tandan-muda: #FEF3DC;
  --bg: #F4F6F3; --surface: #FFFFFF; --surface-2: #F8FAF7; --line: #E3E8E1; --line-2: #EEF1EC;
  --text: #13201A; --muted: #66756C;
  --bad: #C2362B; --bad-bg: #FDECEA; --ok: #19794A; --ok-bg: #E4F4EA; --info: #2360A8; --info-bg: #E6EFFA;
  --shadow: 0 1px 2px rgba(16,40,28,.05), 0 6px 20px -8px rgba(16,40,28,.12);
  --shadow-lg: 0 24px 60px -20px rgba(10,30,20,.35);
  --r: 14px; --r-sm: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --side-w: 256px;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B1410; --surface: #111D17; --surface-2: #15231C; --line: #22352B; --line-2: #1A2A22;
  --text: #E4ECE7; --muted: #8FA298; --pucuk: #173A28; --tandan-muda: #3A2C0F;
  --bad-bg: #3A1714; --ok-bg: #133022; --info-bg: #142740; --bad: #F07167; --ok: #5BD08F; --info: #7DB3F0;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -10px rgba(0,0,0,.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
a { color: var(--daun-2); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--tandan); outline-offset: 2px; }
kbd { font: 600 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }

/* ===== Logo ===== */
.logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(145deg, var(--daun-2), var(--daun)); display: grid; place-items: center; box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); flex: none; }
.logo span { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--tandan-2), var(--tandan) 60%, #C2410C); }
.logo.lg { width: 48px; height: 48px; border-radius: 14px; }
.logo.lg span { width: 20px; height: 20px; }

/* ===== Login ===== */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); background: var(--bg); }
.login-hero { position: relative; overflow: hidden; color: #DCEBE2; padding: 40px 48px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(ellipse at 30% 20%, #1D5A3C 0%, transparent 55%), radial-gradient(ellipse at 90% 100%, #3B2A0A 0%, transparent 45%), var(--hutan); }
.hero-top { display: flex; align-items: center; gap: 12px; font-size: 17px; color: #fff; }
.orbit { --s: min(420px, 36vw); position: relative; width: var(--s); aspect-ratio: 1; align-self: center; margin: 24px 0; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); animation: putar 60s linear infinite; }
.ring.r2 { inset: 14%; animation-duration: 42s; animation-direction: reverse; border-style: solid; border-color: rgba(255,255,255,.07); }
.ring.r3 { inset: 28%; animation-duration: 30s; }
.ring i { position: absolute; width: 16px; height: 16px; border-radius: 50%; top: 50%; left: 50%; margin: -8px;
  background: radial-gradient(circle at 35% 35%, var(--tandan-2), var(--tandan) 55%, #9A3412); box-shadow: 0 0 18px rgba(245,158,11,.45); }
.ring.r1 i:nth-child(1) { transform: rotate(10deg) translateX(calc(var(--s) * .5)) scale(.8); }
.ring.r1 i:nth-child(2) { transform: rotate(130deg) translateX(calc(var(--s) * .5)) scale(1.1); }
.ring.r1 i:nth-child(3) { transform: rotate(250deg) translateX(calc(var(--s) * .5)) scale(.6); }
.ring.r2 i { background: radial-gradient(circle at 35% 35%, #6EE7A5, var(--daun-2) 60%, #0E4A2C); box-shadow: 0 0 14px rgba(38,146,92,.5); }
.ring.r2 i:nth-child(1) { transform: rotate(40deg) translateX(calc(var(--s) * .36)); }
.ring.r2 i:nth-child(2) { transform: rotate(130deg) translateX(calc(var(--s) * .36)) scale(.7); }
.ring.r2 i:nth-child(3) { transform: rotate(220deg) translateX(calc(var(--s) * .36)) scale(1.2); }
.ring.r2 i:nth-child(4) { transform: rotate(310deg) translateX(calc(var(--s) * .36)) scale(.8); }
.ring.r3 i:nth-child(1) { transform: rotate(0deg) translateX(calc(var(--s) * .22)) scale(.7); }
.ring.r3 i:nth-child(2) { transform: rotate(72deg) translateX(calc(var(--s) * .22)) scale(1); }
.ring.r3 i:nth-child(3) { transform: rotate(144deg) translateX(calc(var(--s) * .22)) scale(.6); }
.ring.r3 i:nth-child(4) { transform: rotate(216deg) translateX(calc(var(--s) * .22)) scale(.9); }
.ring.r3 i:nth-child(5) { transform: rotate(288deg) translateX(calc(var(--s) * .22)) scale(.75); }
.core { position: absolute; inset: 38%; border-radius: 50%; background: rgba(255,255,255,.06); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12);
  display: grid; place-content: center; text-align: center; gap: 2px; }
.core strong { font-size: clamp(26px, 3.4vw, 40px); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.core small { font-size: 12px; color: #9DBAA8; }
.hero-copy h2 { font-size: clamp(22px, 2.3vw, 30px); color: #fff; max-width: 22ch; font-weight: 700; }
.hero-copy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.hero-copy li { padding-left: 24px; position: relative; color: #B7CEC0; }
.hero-copy li::before { content: ''; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--tandan); box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
@keyframes putar { to { transform: rotate(360deg); } }
.login-side { display: grid; place-items: center; padding: 32px 24px; }
.login-card { width: min(380px, 100%); display: grid; gap: 14px; animation: naik .5s cubic-bezier(.2,.8,.2,1) both; }
.login-card h1 { font-size: 28px; font-weight: 800; margin-top: 10px; }
.login-card .muted { margin: -6px 0 8px; }
.fld { position: relative; }
.fld input { width: 100%; padding: 22px 14px 8px; font-size: 15px; border-radius: 12px; }
.fld label { position: absolute; left: 15px; top: 15px; font-weight: 500; color: var(--muted); pointer-events: none; transition: all .15s; font-size: 15px; }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label { top: 6px; font-size: 11.5px; font-weight: 600; color: var(--daun-2); }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); padding: 6px; cursor: pointer; border-radius: 8px; }
.eye.on { color: var(--daun-2); }
.caps { margin: -6px 0 0; font-size: 12.5px; color: #B45309; }
.lg-btn { position: relative; height: 48px; font-size: 15px; border-radius: 12px; }
.lg-btn .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: putar .7s linear infinite; }
.lg-btn.loading span { display: none; }
.lg-btn.loading .spin { display: inline-block; }
.login-foot { font-size: 12.5px; text-align: center; margin: 6px 0 0 !important; }
.shake { animation: goyang .35s; }
@keyframes goyang { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes naik { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ===== Shell ===== */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; transition: grid-template-columns .2s; }
.ciut .shell { grid-template-columns: 76px 1fr; }
.side { background: var(--hutan); color: #C9DBD0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 18px 16px 14px 20px; font-weight: 800; font-size: 15.5px; color: #fff; }
.side-brand .lbl { flex: 1; min-width: 0; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ciut-btn { background: rgba(255,255,255,.06); border: 0; color: #9DBAA8; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.ciut-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.ciut .ciut-btn svg { transform: rotate(180deg); }
.side nav { flex: 1; padding: 4px 12px 16px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.nav-group { margin-top: 16px; }
.nav-group > span { display: block; padding: 0 10px 6px; font-size: 11.5px; color: #6F8F7C; font-weight: 600; white-space: nowrap; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: #C9DBD0; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; position: relative; transition: background .15s, color .15s; }
.nav-link svg { width: 19px; height: 19px; opacity: .85; }
.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active { background: linear-gradient(90deg, rgba(245,158,11,.22), rgba(245,158,11,.06)); color: #fff; font-weight: 700; }
.nav-link.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--tandan); }
.nav-link.active svg { color: var(--tandan-2); opacity: 1; }
.nav-link .cnt { margin-left: auto; background: var(--tandan); color: var(--hutan); font-size: 11px; font-weight: 800; padding: 0 7px; border-radius: 999px; }
.ciut .side .lbl, .ciut .nav-group > span, .ciut .nav-link .t, .ciut .nav-link .cnt, .ciut .side-out { display: none; }
.ciut .nav-group { margin-top: 10px; border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; }
.ciut .nav-link { justify-content: center; padding: 10px; }
.ciut .side-brand { flex-direction: column; padding: 16px 0 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 14px 16px 18px; border-top: 1px solid rgba(255,255,255,.07); }
.ciut .side-user { justify-content: center; padding: 14px 0; }
.side-user .lbl { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.side-user .lbl span { color: #fff; font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user small { color: #7F9E8B; font-size: 12px; }
.side .icon-btn { color: #9DBAA8; }
.side .icon-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--tandan-2), var(--tandan)); color: var(--hutan); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.top-title { flex: 1; min-width: 0; display: grid; }
.top h2 { font-size: 20px; font-weight: 800; }
.top-title small { color: var(--muted); font-size: 12.5px; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; min-width: 240px; }
.search-btn span { flex: 1; text-align: left; }
.search-btn svg { width: 17px; height: 17px; }
.search-btn:hover { border-color: var(--daun-2); }
.menu-btn { display: none; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun, :root:not([data-theme]) .i-sun { display: none; }
.page { padding: 24px 28px 64px; display: grid; gap: 20px; align-content: start; }
.page:focus { outline: none; }
.page.masuk > * { animation: naik .35s cubic-bezier(.2,.8,.2,1) both; }
.page.masuk > *:nth-child(2) { animation-delay: .04s; } .page.masuk > *:nth-child(3) { animation-delay: .08s; } .page.masuk > *:nth-child(4) { animation-delay: .12s; }
.scrim { display: none; }

/* ===== Skeleton ===== */
.sk { border-radius: var(--r); background: linear-gradient(90deg, var(--line-2) 25%, var(--surface-2) 50%, var(--line-2) 75%); background-size: 200% 100%; animation: kilau 1.2s infinite; }
@keyframes kilau { to { background-position: -200% 0; } }

/* ===== Komponen ===== */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; min-width: 0; box-shadow: var(--shadow); }
.panel > h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 14px; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { font-size: 15.5px; font-weight: 700; flex: 1; }
.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)); }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 20px; align-items: start; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: grid; gap: 4px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 10px 28px -14px rgba(16,40,28,.3); }
.stat b { display: block; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: 13px; }
.stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--pucuk); color: var(--daun-2); margin-bottom: 6px; }
.stat .ic.amber { background: var(--tandan-muda); color: #B45309; }
[data-theme="dark"] .stat .ic.amber { color: var(--tandan-2); }
.stat .ic.blue { background: var(--info-bg); color: var(--info); }
.stat .ic.red { background: var(--bad-bg); color: var(--bad); }
.stat.hero { background: linear-gradient(140deg, var(--daun) 0%, #155C3A 60%, var(--hutan) 100%); border-color: transparent; color: #fff; }
.stat.hero span { color: #BFE0CC; }
.stat.hero .ic { background: rgba(255,255,255,.14); color: var(--tandan-2); }
.stat.hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.35), transparent 70%); }

.btn { font: inherit; font-weight: 600; font-size: 13.5px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text);
  padding: 8px 15px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .15s, border-color .15s, transform .1s; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
a.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { border-color: var(--daun-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--daun); border-color: var(--daun); color: #fff; box-shadow: 0 4px 12px -4px rgba(31,122,77,.5); }
.btn.primary:hover { background: var(--daun-2); }
.btn.accent { background: var(--tandan); border-color: var(--tandan); color: var(--hutan); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.btn.sm { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.block { width: 100%; padding: 11px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--daun-2); cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--line-2); color: var(--text); }

label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 500; font-size: 14px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); width: 100%; min-width: 0; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--daun-2) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { border-color: var(--daun-2); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--daun-2) 16%, transparent); }
textarea { min-height: 76px; resize: vertical; }
.form { display: grid; gap: 14px; }
.form .row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.form h4 { font-size: 14px; margin-top: 4px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.form-error { color: var(--bad); font-size: 13px; font-weight: 500; margin: 0; min-height: 1em; }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--text); }
.check input { width: 17px; height: 17px; accent-color: var(--daun); }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--daun); padding: 0; }

.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: color-mix(in srgb, var(--pucuk) 45%, transparent); }
tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; background: var(--surface-2); }
td.act { white-space: nowrap; text-align: right; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }
.empty::before { content: ''; display: block; width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--tandan-muda), var(--pucuk)); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--tandan-muda); color: #9A5B00; }
[data-theme="dark"] .badge.warn { color: var(--tandan-2); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters label { min-width: 150px; }
.alert { padding: 11px 14px 11px 40px; border-radius: 12px; background: var(--tandan-muda); color: #7A4A00; font-size: 13.5px; font-weight: 500; position: relative; border: 1px solid color-mix(in srgb, var(--tandan) 25%, transparent); transition: transform .15s; }
.alert::before { content: '!'; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; border-radius: 50%; background: var(--tandan); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; }
a.alert:hover { transform: translateX(3px); }
[data-theme="dark"] .alert { color: var(--tandan-2); }
.alert.bad { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert.bad::before { background: var(--bad); }
.alert.ok { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert.ok::before { content: '✓'; background: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.tab { background: none; border: 0; padding: 7px 14px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; border-radius: 9px; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--daun); color: #fff; box-shadow: 0 3px 10px -4px rgba(31,122,77,.6); }
code { font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); word-break: break-all; }

/* ===== Timbangan ===== */
.scale { background: linear-gradient(160deg, var(--hutan-2), var(--hutan)); border-radius: 18px; padding: 20px; color: #CFE0D3; display: grid; gap: 14px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.scale::after { content: ''; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.18), transparent 70%); pointer-events: none; }
.scale-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; gap: 10px; position: relative; z-index: 1; }
.scale-live { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; position: relative; z-index: 1; }
.scale-live .val { font-size: clamp(44px, 6vw, 72px); font-weight: 800; color: var(--tandan-2); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; text-shadow: 0 0 30px rgba(245,158,11,.35); }
.scale-live .unit { font-size: 18px; color: #9DB5A3; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #6C7F71; margin-right: 7px; vertical-align: 1px; }
.dot.on { background: #4ADE80; animation: denyut 1.4s infinite; }
.dot.stable { background: var(--tandan); box-shadow: 0 0 0 3px rgba(245,158,11,.25); }
@keyframes denyut { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 100% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } }
.scale-pair { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.scale-cell { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 11px 12px; display: grid; gap: 7px; }
.scale-cell span { font-size: 12px; color: #9DB5A3; }
.scale-cell input { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.1); color: #fff; font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.scale-cell input[readonly] { color: var(--tandan-2); }
.scale-cell b { font-size: 28px; color: #fff; text-align: right; font-variant-numeric: tabular-nums; padding: 4px 2px; }
.scale .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none; }
.scale .btn.accent { background: var(--tandan); color: var(--hutan); border-color: var(--tandan); }
.calc { display: grid; gap: 8px; font-size: 14px; }
.calc div { display: flex; justify-content: space-between; gap: 10px; }
.calc .total { font-size: 20px; font-weight: 800; border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 2px; color: var(--daun-2); }

/* ===== Grafik ===== */
.chart { position: relative; }
.chart svg { width: 100%; height: 200px; display: block; overflow: visible; }
.chart .area { fill: url(#gradArea); }
.chart .garis { fill: none; stroke: var(--daun-2); stroke-width: 2.4; stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: gambar 1.2s ease forwards; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .titik { fill: var(--surface); stroke: var(--tandan); stroke-width: 2.5; opacity: 0; transition: opacity .1s; }
.chart .tip { position: absolute; pointer-events: none; background: var(--hutan); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -120%); opacity: 0; transition: opacity .1s; }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
@keyframes gambar { to { stroke-dashoffset: 0; } }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; }
.bars div { flex: 1; background: var(--daun-2); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sapa { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sapa h3 { font-size: 22px; font-weight: 800; }
.sapa p { margin: 2px 0 0; color: var(--muted); }
.aksi-cepat { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== POS ===== */
.pos { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.prod { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--text); display: grid; gap: 3px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.prod:hover { border-color: var(--daun-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.prod:active { transform: scale(.97); }
.prod:disabled { opacity: .45; transform: none; cursor: not-allowed; }
.prod b { font-size: 13.5px; }
.prod small { color: var(--muted); }
.prod .price { font-weight: 800; color: var(--daun-2); }
.cart-row { display: grid; grid-template-columns: 1fr 72px auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; animation: naik .2s both; }
.cart-row input { padding: 5px 8px; text-align: right; }

/* ===== Palet pencarian ===== */
.palette { position: fixed; inset: 0; z-index: 70; background: rgba(8,20,14,.45); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: pudar .15s; }
.pal-box { width: min(620px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; animation: naik .2s both; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-in input { border: 0; padding: 4px 0; font-size: 16px; box-shadow: none !important; background: transparent; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: var(--text); text-decoration: none; }
.pal-item small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pal-item svg { color: var(--muted); }
.pal-item.sel { background: var(--pucuk); }
.pal-item.sel svg { color: var(--daun-2); }
.pal-sec { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 10px 12px 4px; }
@keyframes pudar { from { opacity: 0; } }

/* ===== Modal & toast ===== */
.modal { position: fixed; inset: 0; background: rgba(8,20,14,.5); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; z-index: 50; animation: pudar .15s; }
.modal-box { background: var(--surface); border-radius: 18px; width: min(720px, 100%); max-height: 92vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: naik .22s cubic-bezier(.2,.8,.2,1) both; }
.modal-box.wide { width: min(1000px, 100%); }
.modal-box header { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-box header h3 { flex: 1; font-size: 17px; font-weight: 700; }
.modal-body { padding: 20px; overflow-y: auto; display: grid; gap: 16px; }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--hutan); color: #fff; padding: 12px 18px 12px 44px; border-radius: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s, transform .2s; z-index: 80; max-width: min(420px, 90vw); box-shadow: var(--shadow-lg); font-weight: 500; }
.toast::before { content: '✓'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--daun-2); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.toast.show { opacity: 1; transform: none; }
.toast.bad { background: #7F1D1D; }
.toast.bad::before { content: '!'; background: var(--bad); }

/* ===== Cetak ===== */
#print-area { display: none; }
.slip { font-family: var(--font); color: #000; font-size: 12px; }
.slip h4 { font-size: 14px; text-align: center; }
.slip .c { text-align: center; }
.slip table { font-size: 12px; }
.slip td, .slip th { padding: 2px 0; border: 0; background: none; }
.slip hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.slip .big { font-size: 16px; font-weight: 800; }
@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; color: #000; }
  #print-area .panel { box-shadow: none; border: 0; background: #fff; color: #000; }
  #print-area.thermal { width: 58mm; }
  #print-area.a4 { width: 100%; }
  @page { margin: 6mm; }
}

/* ===== Responsif ===== */
@media (max-width: 1200px) { .search-btn span, .search-btn kbd { display: none; } .search-btn { min-width: 0; width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split, .pos { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login-hero { padding: 22px 22px 26px; gap: 14px; border-radius: 0 0 22px 22px; }
  .login-hero .orbit, .login-hero .hero-copy ul { display: none; }
  .login-hero .hero-copy h2 { font-size: 19px; max-width: 26ch; }
  .login-side { align-items: flex-start; padding-top: 8px; }
  .login-card > .logo.lg { display: none; }
}
@media (max-width: 860px) {
  .shell, .ciut .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 40; transform: translateX(-100%); transition: transform .22s; }
  .side.open { transform: none; }
  .ciut .side .lbl, .ciut .nav-link .t, .ciut .nav-group > span { display: initial; }
  .ciut .nav-link { justify-content: flex-start; }
  .ciut-btn { display: none; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .side.open + .scrim { display: block; }
  .menu-btn { display: grid; }
  .top { padding: 12px 16px; } .page { padding: 18px 16px 60px; }
  .top { flex-wrap: wrap; }
  .top-actions { order: 10; width: 100%; }
  .ciut .side-out { display: grid; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .scale-pair { grid-template-columns: 1fr; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .chart .garis { stroke-dashoffset: 0; } }

/* ===== WhatsApp ===== */
.wa-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border-left: 4px solid var(--line); transition: border-color .3s; }
.wa-hero.on { border-left-color: #25D366; } .wa-hero.off { border-left-color: var(--bad); }
.wa-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #25D366; color: #fff; flex: none; }
.wa-ic svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wa-info { flex: 1; min-width: 220px; } .wa-info h3 { font-size: 17px; } .wa-info p { margin: 4px 0 0; }
.wa-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.ok i { animation: denyut 1.6s infinite; }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
@keyframes denyut { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); } 70% { box-shadow: 0 0 0 7px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.qr-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; }
.qr-steps h3 { font-size: 16px; margin-bottom: 8px; } .qr-steps ol { padding-left: 20px; margin: 0 0 10px; display: grid; gap: 8px; }
.qr-side { display: grid; justify-items: center; gap: 8px; }
.qr-img { width: 264px; height: 264px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 12px; position: relative; overflow: hidden; }
.qr-img img { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }
.qr-img.loading::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(31,122,77,.12), transparent); animation: sapu 1.1s infinite; }
@keyframes sapu { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; flex-wrap: wrap; justify-self: start; }
.seg-i { display: block; font-weight: 600; } .seg-i input { position: absolute; opacity: 0; pointer-events: none; }
.seg-i span { display: block; padding: 7px 14px; border-radius: 9px; cursor: pointer; color: var(--muted); font-size: 13.5px; }
.seg-i input:checked + span { background: var(--surface); color: var(--daun); box-shadow: var(--shadow); }
.seg-i input:focus-visible + span { outline: 3px solid var(--tandan); }
.wa-msg { white-space: pre-line; display: block; max-width: 420px; }
@media (max-width: 760px) { .qr-panel { grid-template-columns: 1fr; } .qr-img { width: 230px; height: 230px; } }
#wa-wablas .row { align-items: start; }
#wa-qr { scroll-margin-top: 90px; }

/* ===== mode demo ===== */
.demo-box { border: 1px dashed color-mix(in srgb, var(--tandan) 60%, transparent); background: var(--tandan-muda); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; margin-top: 6px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.demo-head b { font-size: 14px; } .demo-head span { font-size: 12.5px; color: var(--muted); }
.demo-akun { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.demo-btn { font: inherit; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; display: grid; gap: 2px; transition: border-color .15s, transform .15s; }
.demo-btn:hover { border-color: var(--daun-2); transform: translateY(-1px); }
.demo-btn b { font-size: 13.5px; color: var(--daun); } .demo-btn small { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.demo-note { margin: 0; font-size: 12px; color: var(--muted); }
.demo-banner { margin: 14px 28px 0; padding: 9px 14px; border-radius: var(--r-sm); background: var(--tandan-muda); color: color-mix(in srgb, var(--tandan) 45%, var(--text)); font-size: 13px; }
.demo-banner b { background: var(--tandan); color: var(--hutan); padding: 1px 8px; border-radius: 999px; margin-right: 6px; font-size: 12px; }
@media (max-width: 860px) { .demo-banner { margin: 12px 16px 0; } }
