/* Plus Jakarta Sans (SIL Open Font License, lihat assets/fonts/OFL-LICENSE.txt), di-host sendiri */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Kasnera — stylesheet */
:root {
  --bg: #F1F6FC;
  --surface: #FFFFFF;
  --line: #D8E5F3;
  --line-strong: #B8CDDF;
  --ink: #142E49;
  --ink-2: #3B5670;
  --muted: #5C7390;
  --green: #155BA8;
  --green-hover: #10467D;
  --green-2: #247DCF;
  --green-soft: #E5F2FF;
  --in: #1A74C9;
  --out: #8A3A10;
  --warn-ink: #7A4306;
  --warn-bg: #FBF0DF;
  --tg-ink: #1F4E79;
  --tg-bg: #E4EEF7;
  --danger: #A12A12;
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-hover); }
h1 { font-size: 27px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 16.5px; margin: 0 0 14px; font-weight: 700; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.block { display: block; }
.b { font-weight: 700; }
.r { text-align: right; }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: 0.01em; }
.in { color: var(--in); }
.out { color: var(--out); }
.warn-text { color: var(--warn-ink); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #4f7aa3; outline-offset: 2px; }
.ic { flex: none; }

/* ---------- Shell ---------- */
.topbar { display: none; }
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--surface) 0 251px, var(--line) 251px 252px, var(--bg) 252px); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; }
.brand, .brand-sm { display: flex; align-items: center; gap: 9px; padding: 0 8px; text-decoration: none; }
.tenant-name { padding: 10px 10px; background: var(--bg); border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; line-height: 1.35; }
.tenant-name span { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; min-height: 42px; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active { background: var(--green-soft); color: var(--green); font-weight: 700; }
.badge-count { margin-left: auto; background: var(--warn-ink); color: #fff; font-size: 11.5px; border-radius: 999px; padding: 1px 8px; }
.logout { margin-top: auto; }
.logout button { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 0; padding: 10px 11px; border-radius: 10px; font: inherit; font-size: 14.5px; color: var(--muted); cursor: pointer; min-height: 42px; }
.logout button:hover { background: var(--bg); color: var(--ink); }
.main { padding: 28px 34px 56px; min-width: 0; max-width: 1240px; width: 100%; }

/* ---------- Page parts ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.page-head p { margin: 0; max-width: 70ch; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; min-width: 0; }
.panel h2 + .rows, .panel h2 + form { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-2 > .panel { margin-bottom: 0; }
.grid-2 + .panel, .grid-2 + .grid-2 { margin-top: 18px; }
.widgets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.widgets > * { margin: 0; }
.w-full { grid-column: 1 / -1; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.kpi b { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.kpi small { font-size: 12.5px; color: var(--muted); }
.mini-kpis { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 16px; }
.mini-kpis > div { display: flex; flex-direction: column; }
.mini-kpis span { font-size: 12.5px; color: var(--muted); }
.mini-kpis b { font-size: 17px; }
.mini-kpis.big { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 18px; }
.mini-kpis.big b { font-size: 21px; font-weight: 800; }

.bars { display: flex; align-items: flex-end; gap: 10px; height: 200px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.bar-col small { font-size: 11.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.bar-col span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bar-col span.b { color: var(--ink); }
.bar { width: 100%; max-width: 46px; border-radius: 7px 7px 3px 3px; background: #9fb6cb; }
.bar.today { background: var(--green); }
.meter { height: 9px; background: #eaecee; border-radius: 5px; overflow: hidden; flex: 1; min-width: 60px; }
.meter span { display: block; height: 100%; background: var(--green-2); border-radius: 5px; }
.meter.alt span { background: #7A8C84; }
.meter.warn span { background: #C27A12; }
.meter-row { display: flex; flex-direction: column; gap: 6px; padding: 7px 0; }
.meter-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; flex-wrap: wrap; }
.meter-row > div:first-child span { color: var(--ink-2); }
td .meter { display: inline-block; vertical-align: middle; width: 90px; margin-right: 6px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #eaecee; }
.rows > li:first-child { border-top: 0; }
.rows > li.col { flex-direction: column; align-items: stretch; }
.rows > li > div:first-child, .row-top > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rows > li > div:first-child span, .row-top span:not(.pill) { font-size: 13px; color: var(--muted); }
.row-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.amt { white-space: nowrap; }

.pill { display: inline-block; font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #eaecee; color: var(--ink-2); white-space: nowrap; }
.pill-ok { background: var(--green-soft); color: var(--green); }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill-tg { background: var(--tg-bg); color: var(--tg-ink); }
.pill-brown { background: #F1EAE2; color: #5C3410; }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th.r { text-align: right; }
.table td.r { white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid #eaecee; vertical-align: top; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tr.total td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--line); }
.table tr.is-void td { color: var(--muted); }
.table tr.is-void td b, .table tr.is-void td.b { text-decoration: line-through; }
.table tr.warn-row td { background: #FFF8EE; }
.table td a.b { text-decoration: none; }

/* ---------- Forms ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
label small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input, select, textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid #cfdbe6; outline-offset: 0; }
input:disabled { background: var(--bg); color: var(--muted); }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--green); flex: none; }
input[type='file'] { padding: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.span-2 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.stack:last-child { margin-bottom: 0; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.check span { display: inline; }
.seg { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { flex-direction: row; align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 600; }
.seg label:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.filters label { min-width: 150px; }
.filters .grow, .inline-form .grow { flex: 1 1 260px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; }
.inline-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-actions form { display: inline; }
.toggle-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid #eaecee; font-weight: 400; }
.toggle-row b { font-weight: 700; }
input.switch { appearance: none; -webkit-appearance: none; width: 50px !important; height: 30px !important; border-radius: 999px; background: #B7BFB9; border: 0; position: relative; cursor: pointer; transition: background .15s; }
input.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
input.switch:checked { background: var(--green); }
input.switch:checked::after { left: 23px; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
legend { font-weight: 700; font-size: 15px; margin-bottom: 4px; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 11px; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--green); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn.danger { color: var(--danger); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-size: 12px; color: var(--ink); }
.icon-btn:disabled { color: #B7BFB9; border-color: var(--line); cursor: default; }

.alert { border-radius: 11px; padding: 12px 16px; margin-bottom: 16px; font-size: 14.5px; font-weight: 500; }
.alert-success { background: var(--green-soft); color: #082540; }
.alert-error { background: #FBE6E0; color: #7A200C; }
.alert-warn { background: var(--warn-bg); color: #5C3304; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty p { margin-bottom: 14px; }

details.void { margin-top: 2px; }
details.void > summary, details.import > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--green); list-style: none; padding: 4px 0; }
details.void > summary::-webkit-details-marker, details.import > summary::-webkit-details-marker { display: none; }
details.void[open] { background: var(--bg); border-radius: 10px; padding: 10px 12px 12px; margin-top: 6px; min-width: 240px; }
details.void form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
details.import { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink-2); border: 1.5px solid var(--line-strong); }
.tabs a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

.approve { padding: 12px 0; border-top: 1px solid #eaecee; }
.approve:first-of-type { border-top: 0; }
.approve p { margin-bottom: 8px; }
.quick { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.quick .btn { justify-content: flex-start; }

.items { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 10px; }
.item-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: var(--bg); border-radius: 12px; padding: 12px; }
.item-row .grow { flex: 2 1 220px; }
.item-row label { flex: 1 1 140px; }
.item-row label.sm { flex: 0 1 90px; }
.sale-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); margin: 16px 0; padding-top: 14px; font-size: 15px; }
.sale-total b { font-size: 24px; font-weight: 800; }
.form-grid + .items, .items + .btn { margin-top: 14px; }
[data-add-item] { margin-bottom: 18px; }
form .form-grid + .form-grid { margin-top: 14px; }

.imei-box { background: var(--bg); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.imei-box div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.imei-box span { font-size: 13px; color: var(--muted); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0 0 14px; }
.dl dt, .dl dd { padding: 9px 0; border-bottom: 1px solid #eaecee; margin: 0; font-size: 14px; }
.dl dt { color: var(--muted); padding-right: 18px; }
.dl dd { text-align: right; font-weight: 600; }
.timeline { list-style: none; margin: 0 0 6px; padding: 0 0 0 16px; border-left: 2px solid var(--green-soft); }
.timeline li { position: relative; padding: 0 0 14px 8px; display: flex; flex-direction: column; }
.timeline li::before { content: ''; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline span { font-size: 12.5px; color: var(--muted); }
.big-code { font-size: 22px; letter-spacing: 0.15em; }
.steps { padding-left: 20px; margin: 0 0 16px; }
.steps li { margin-bottom: 8px; }

/* ---------- Auth & wizard ---------- */
.auth-body { min-height: 100vh; background: var(--bg); }
.auth-wrap { max-width: 460px; margin: 0 auto; padding: 48px 18px 40px; display: flex; flex-direction: column; gap: 18px; }
.auth-wrap.wide { max-width: 620px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; text-decoration: none; margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card.form { display: flex; flex-direction: column; gap: 14px; }
.card.form form { display: flex; flex-direction: column; gap: 14px; }
.card h1 { font-size: 24px; }
.otp-input { font-size: 26px; letter-spacing: 0.4em; text-align: center; font-weight: 700; }
.otp-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.card.form .otp-actions form { display: inline; }
.alt-link { text-align: center; font-size: 14px; color: var(--muted); margin: 0; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); }

.wizard { width: 100%; }
.auth-wrap:has(.wizard) { max-width: 980px; }
.wiz-progress { display: flex; gap: 8px; margin-bottom: 8px; }
.wiz-progress span { flex: 1; height: 6px; border-radius: 3px; background: #d9dde0; }
.wiz-progress span.on { background: var(--green); }
.wiz-form h1 { font-size: 32px; margin: 12px 0 6px; }
.wiz-form > p.muted { margin-bottom: 22px; max-width: 64ch; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.choice-grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.choice { position: relative; cursor: pointer; font-weight: 400; }
.choice input { position: absolute; top: 18px; right: 18px; }
.choice-body { display: flex; flex-direction: column; gap: 8px; height: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 20px 48px 18px 20px; }
.choice-body .ic { width: 30px; height: 30px; color: var(--green); }
.choice-body b { font-size: 17px; }
.choice-body span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.choice-body small { font-size: 12.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 9px; margin-top: auto; }
.choice:has(input:checked) .choice-body { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: #f4f7fa; }
.choice:has(input:focus-visible) .choice-body { outline: 3px solid #4f7aa3; outline-offset: 2px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.info-grid .card { display: flex; flex-direction: column; gap: 14px; }
.preview { background: var(--green); color: #fff; border-radius: 18px; padding: 24px; }
.preview .preview-k { font-size: 13px; font-weight: 600; color: #bfd0e0; margin: 14px 0 6px; }
.preview .preview-k:first-child { margin-top: 0; }
.preview .preview-t { font-size: 21px; font-weight: 800; margin: 0; }
.preview ul { margin: 0; padding-left: 18px; }
.preview li { margin-bottom: 3px; }
.preview .preview-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #2e4e6c; font-size: 13.5px; color: #e2eaf1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; justify-content: space-between; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 12px 8px 16px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; color: var(--ink); }
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .sidebar { position: fixed; z-index: 40; inset: 61px 0 0 0; height: auto; display: none; border-right: 0; }
  body.nav-open .sidebar { display: flex; }
  body.nav-open { overflow: hidden; }
  .sidebar .brand { display: none; }
  .main { padding: 20px 16px 48px; }
  .grid-2, .widgets, .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi b { font-size: 19px; }
  h1 { font-size: 23px; }
  .wiz-form h1 { font-size: 26px; }
  .panel { padding: 18px 16px; }
  .card { padding: 22px 18px; }
  .bars { gap: 5px; }
  .bar-col small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .sidebar, .topbar, .no-print, .skip { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; max-width: none; }
  .panel, .mini-kpis.big { border-color: #bbb; break-inside: avoid; }
  body { background: #fff; }
}

/* ---------- Files ---------- */
h2.mt { margin-top: 26px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 0 0 14px; }
.thumbs a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); position: relative; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .doc { display: flex; align-items: center; justify-content: center; height: 100%; font-weight: 700; color: var(--ink-2); font-size: 13px; }
.file-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.file-link .ic { width: 14px; height: 14px; }
input[type='file'] { font-size: 14px; }
.mt-s { margin-top: 14px; }

/* ---------- Account switcher ---------- */
.acct { background: var(--bg); border-radius: var(--radius-sm); }
.acct > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); min-height: 52px; }
.acct > summary::-webkit-details-marker { display: none; }
.acct > summary:hover { background: #eaecee; }
.acct-cur { display: flex; flex-direction: column; min-width: 0; }
.acct-cur b, .acct-menu b { font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.acct-cur span, .acct-menu button span { font-size: 12.5px; color: var(--muted); }
.acct-caret { color: var(--muted); font-size: 12px; transition: transform .15s; }
.acct[open] .acct-caret { transform: rotate(180deg); }
.acct-menu { padding: 0 6px 8px; display: flex; flex-direction: column; gap: 2px; }
.acct-menu form { margin: 0; }
.acct-menu button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 1px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; font: inherit; cursor: pointer; color: var(--ink); }
.acct-menu button:hover { border-color: var(--green); }
.acct-add { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 9px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--green); min-height: 44px; }
.acct-add:hover { background: var(--green-soft); }
.wiz-cancel { display: inline-block; margin-bottom: 6px; font-size: 14px; }
.stack > .btn { align-self: flex-start; }
.col-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-stack > .panel { margin: 0; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }
input:disabled::placeholder { color: #9AA39E; }

/* ---------- Layout fixes ---------- */
/* Visually-hidden labels inside wide tables must not widen the page on phones */
.table-wrap, .panel, .card { position: relative; }
/* List rows with a title + badge line */
.rows > li.col > div.row-top:first-child { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.rows > li.col > div.row-top > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* Radio choices side by side */
.seg { flex-direction: row; }
/* Spacing between stacked sections inside one panel */
.panel > h2:not(:first-child), .panel > form + h2, .panel > .imei-box + h2 { margin-top: 26px; }
.kpi b { white-space: nowrap; }
.mini-kpis b { white-space: nowrap; }
.table td.actions { white-space: nowrap; min-width: 120px; }
.table td.actions details.void[open] { white-space: normal; position: absolute; right: 0; z-index: 5; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px -12px rgba(23, 33, 29, .35); min-width: 260px; }
.table td.actions { position: relative; }
.table td.actions details.void + details.void { margin-top: 2px; }
@media (max-width: 560px) {
  .kpi b { font-size: 17px; }
  .mini-kpis.big b { font-size: 18px; }
  .mini-kpis { gap: 10px 20px; }
  .table td.actions details.void[open] { right: auto; left: -140px; }
}

/* ---------- Grouped menu & phone bottom bar ---------- */
.nav-group + .nav-group { margin-top: 4px; }
.nav-label { margin: 0 0 4px; padding: 0 11px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8A948F; }
.sidebar { gap: 14px; }
.nav a { min-height: 40px; padding: 8px 11px; }
.bottom-nav { display: none; }
.topbar-acct { display: inline-flex; align-items: center; gap: 8px; max-width: 58%; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; }
.topbar-acct span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -8px 24px -18px rgba(18, 40, 30, .35); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; background: none; border: 0; font: inherit; font-size: 11.5px; font-weight: 600; color: #5A6560; text-decoration: none; cursor: pointer; border-radius: 12px; }
  .bottom-nav .bn-ic { display: inline-flex; width: 36px; height: 30px; align-items: center; justify-content: center; border-radius: 10px; }
  .bottom-nav a.active { color: var(--green); }
  .bottom-nav a.active .bn-ic { background: var(--green-soft); }
  .bottom-nav .bn-catat { color: var(--green); }
  .bottom-nav .bn-catat .bn-ic { width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--green); color: #fff; box-shadow: 0 8px 18px -8px rgba(10, 74, 51, .7); }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .sidebar { inset: 61px 0 calc(67px + env(safe-area-inset-bottom, 0px)) 0; padding: 16px 14px 20px; }
  .sidebar .logout { margin-top: 8px; }
  .nav-group .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .nav-group .nav a { background: var(--bg); }
  .nav-group .nav a.active { background: var(--green-soft); }
  .menu-btn { display: none; }
  body.admin .menu-btn { display: inline-flex; }
}
@media (min-width: 901px) {
  .topbar-acct { display: none; }
}

/* ---------- Cash closing ---------- */
.denoms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; background: var(--bg); border-radius: 12px; padding: 12px; }
.denom { gap: 4px; font-size: 12.5px; color: var(--muted); }
.denom span { font-weight: 700; color: var(--ink-2); }
.denom input { min-height: 40px; padding: 8px; text-align: center; }
.total-input { font-size: 20px; font-weight: 800; }
@media (max-width: 560px) { .denoms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Receipt (nota) ---------- */
.nota-body { background: #ebedef; min-height: 100vh; padding: 20px 12px 40px; }
.nota-bar { max-width: 760px; margin: 0 auto 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.nota-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nota-hint { max-width: 760px; margin: 0 auto 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.nota { background: #fff; margin: 0 auto; padding: 20px 18px 22px; border-radius: 6px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); font-size: 13.5px; line-height: 1.45; color: #111; font-variant-numeric: tabular-nums; }
.nota-80 { max-width: 340px; }
.nota-58 { max-width: 250px; font-size: 12.5px; }
.nota-head { text-align: center; display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px dashed #999; }
.nota-shop { font-size: 16px; font-weight: 800; }
.nota-order { text-align: center; font-size: 18px; font-weight: 800; margin: 10px 0 0; padding: 6px; border: 2px solid #111; border-radius: 6px; }
.nota-meta { display: grid; grid-template-columns: max-content 1fr; gap: 2px 10px; margin: 12px 0; }
.nota-meta dt { color: #555; }
.nota-meta dd { margin: 0; text-align: right; }
.nota-items { width: 100%; border-collapse: collapse; border-top: 1px dashed #999; border-bottom: 1px dashed #999; }
.nota-items td { padding: 2px 0; vertical-align: top; }
.nota-name { padding-top: 8px !important; font-weight: 600; }
.nota-name small { display: block; font-weight: 400; color: #444; }
.nota-qty { color: #333; }
.nota-total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0 6px; font-size: 15px; }
.nota-total b { font-size: 18px; }
.nota-status { text-align: center; font-weight: 800; letter-spacing: .12em; margin: 6px 0 12px; padding: 6px; border: 2px solid currentColor; border-radius: 6px; }
.nota-status small { font-weight: 600; letter-spacing: 0; }
.nota-status.ok { color: #0a3c6b; }
.nota-status.due { color: #9A5B0B; }
.nota-status.void { color: #A12A12; }
.nota-foot { text-align: center; border-top: 1px dashed #999; padding-top: 10px; }
.nota-foot p { margin: 0 0 4px; }
.nota-by { color: #777; font-size: 11.5px; }
.staf-rekap { margin: 4px 0 14px; }
.staf-rekap > summary { cursor: pointer; font-weight: 700; color: var(--green); font-size: 14px; padding: 6px 0; }
.nota-grp { padding-top: 10px !important; font-weight: 800; letter-spacing: .08em; font-size: 11.5px; color: #444; }
.nota-gsub td { padding-bottom: 4px !important; font-weight: 700; border-bottom: 1px dotted #bbb; }
.dapur-items td { font-size: 15px; font-weight: 700; padding: 4px 0 !important; }
.dapur-items .dq { width: 3.2em; font-size: 17px; }
.dapur-tag { text-align: center; font-weight: 800; letter-spacing: .08em; margin: 8px 0 4px; }
.dapur-note { font-weight: 700; margin: 8px 0 0; }
.nota-cek { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 8px 0 6px; font-size: 11px; line-height: 1.35; color: #333; }
.nota-cek svg { display: block; max-width: 100%; height: auto; }
.nota-cek b { letter-spacing: .06em; }
.nota-send { max-width: 420px; margin: 0 auto 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.nota-send label { font-size: 13.5px; }
.nota-send > div { display: flex; gap: 8px; }
.nota-send input { flex: 1; min-width: 0; }
.nota-send small { color: var(--muted); font-size: 12px; }
.fk-cek { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 14px; border-top: 1px solid #e3e6e1; font-size: 12.5px; color: #4b5550; }
.fk-cek svg { flex: none; }
.fk-cek span { display: flex; flex-direction: column; gap: 2px; }
.fk-cek span > b:first-child { color: #171c21; }
.cek-body { background: #ebedef; min-height: 100vh; padding: 28px 14px 40px; }
.cek { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.cek-brand { display: flex; justify-content: center; }
.cek-card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.cek-badge { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.cek-badge svg { width: 34px; height: 34px; flex: none; }
.cek-badge b { display: block; font-size: 17px; }
.cek-badge span { font-size: 13.5px; }
.cek-badge.ok { background: #eaeff4; color: #0a2b4a; }
.cek-badge.bad { background: #FDECE8; color: #8A2A1E; }
.cek-badge.warn { background: #FBF0DF; color: #7A4306; }
.cek-shop { text-align: center; margin-bottom: 10px; }
.cek-shop b { font-size: 17px; display: block; }
.cek-shop span { color: var(--muted); font-size: 13px; }
.cek-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 12px; font-size: 14px; }
.cek-meta dt { color: var(--muted); }
.cek-meta dd { margin: 0; text-align: right; font-weight: 600; }
.cek-items { border-top: 1px dashed #bbb; border-bottom: 1px dashed #bbb; padding: 8px 0; font-size: 13.5px; }
.cek-items div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.cek-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.cek-total b { font-size: 20px; }
.cek-form { display: flex; flex-direction: column; gap: 8px; }
.cek-form > div { display: flex; gap: 8px; }
.cek-form input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.cek-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
@media print {
  .nota-body { background: #fff; padding: 0; }
  .nota { box-shadow: none; border-radius: 0; padding: 4mm 3mm; max-width: none; }
  .nota-80 { width: 72mm; }
  .nota-58 { width: 48mm; }
  .nota-send { display: none; }
  @page { margin: 0; }
}

/* ---------- Subscriptions, announcements, legal ---------- */
.sub-banner a { font-weight: 700; color: inherit; }
.announce { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; background: var(--tg-bg); color: #163B5C; border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; }
.announce p { margin: 4px 0 0; font-size: 14.5px; }
.announce .link-btn { color: #163B5C; }
.sub-status { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.sub-status > div { display: flex; flex-direction: column; }
.sub-status b { font-size: 20px; font-weight: 800; }
.sub-status.is-expired { border-color: #E9B8A9; background: #FFF7F4; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.plan-price { font-size: 22px !important; font-weight: 800; color: var(--ink) !important; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan-form .seg { margin-bottom: 16px; }
.pay-amount { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 6px; }
.pay-info { background: var(--bg); border-radius: 12px; padding: 14px 16px; margin: 12px 0 16px; line-height: 1.6; }
textarea { font: inherit; font-size: 15px; resize: vertical; }
.plan-edit { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 10px; }
.plan-edit > summary { cursor: pointer; padding: 12px 0; list-style: none; }
.plan-edit > summary::-webkit-details-marker { display: none; }
.plan-edit form { padding-bottom: 14px; }
.danger-zone { border-color: #EBC2B6; }
.danger-zone h2 { color: var(--danger); }
.cash-bars { min-width: 140px; }
.cash-bars span { display: block; height: 7px; border-radius: 4px; margin: 2px 0; }
.cb-in { background: #2e689e; }
.cb-out { background: #C9784A; }
.opname-input { max-width: 110px; text-align: center; }
.legal { max-width: 760px; padding-top: 32px; padding-bottom: 64px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.legal h2 { font-size: 19px; margin: 28px 0 8px; }
.legal p { line-height: 1.7; color: #333a40; }

/* ---------- Dashboard: greeting, quick tiles, attention, KPI ---------- */
.dash-head h1 { font-size: clamp(24px, 2.6vw, 32px); }
.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.qt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s; }
.qt:hover { transform: translateY(-1px); border-color: #bfccd8; box-shadow: 0 10px 24px -18px rgba(18, 40, 30, .5); }
.qt span { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.qt b { font-size: 15px; line-height: 1.25; }
.qt-in span { background: #e3ebf2; color: #13508a; }
.qt-out span { background: #FCE4E1; color: #C9412F; }
.qt-sale span { background: #FCEBDD; color: #D9711C; }
.qt-cash span { background: #E6EEFB; color: #2F6BC4; }
.attention { background: #FFF9EE; border: 1px solid #F1DFB8; border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; }
.attention h2 { font-size: 15px; margin: 0 0 8px; }
.attention ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.att { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); font-size: 14.5px; font-weight: 600; border: 1px solid #F3E7CC; }
.att span { flex: none; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.att b { margin-left: auto; color: var(--muted); font-size: 18px; }
.att-warn span { background: #FFF1D6; color: #B7791F; }
.att-bad span { background: #FCE4E1; color: #C9412F; }
.att-info span { background: #E6EEFB; color: #2F6BC4; }
.kpi-top { display: flex; align-items: center; gap: 8px; }
.kpi-top i { flex: none; width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.kpi-top i svg { width: 16px; height: 16px; }
.k-in .kpi-top i { background: #e3ebf2; color: #13508a; }
.k-out .kpi-top i { background: #FCE4E1; color: #C9412F; }
.k-bal .kpi-top i { background: #E6EEFB; color: #2F6BC4; }
.k-laba .kpi-top i { background: #F1EBFB; color: #6E4BC2; }
.kpi b { margin-top: 6px; font-size: 26px; }
.kpi small { line-height: 1.4; }
.trend-good { color: #134b80 !important; font-weight: 600; }
.trend-bad { color: #C9412F !important; font-weight: 600; }
@media (max-width: 900px) { .quick-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .qt { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .qt b { font-size: 14px; }
  .kpi b { font-size: 19px; }
}

.all-good { display: flex; align-items: center; gap: 10px; background: #eef3f8; border: 1px solid #cfdce8; color: #0b345a; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.stats-more > summary { cursor: pointer; list-style: none; }
.stats-more > summary::-webkit-details-marker { display: none; }
.stats-more[open] > summary { margin-bottom: 12px; }
.section-title { font-size: 18px; margin: 24px 0 10px; }

/* ---------- Reset confirmation ---------- */
.reset-warning { border: 2px solid #E39A8A; background: #FFF4F1; }
.reset-warning h2 { color: #B3321F; }
.danger-zone .choice-body span { display: block; margin-top: 4px; }

/* ---------- Demo account chooser ---------- */
.demo-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-choices form { margin: 0; }
.demo-card { width: 100%; height: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: inherit; color: var(--ink); transition: border-color .12s, transform .12s; }
.demo-card:hover { border-color: #9fb8d0; transform: translateY(-1px); }
.demo-card > span { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.demo-card > span.qt-in { background: #e3ebf2; color: #13508a; }
.demo-card > span.qt-cash { background: #E6EEFB; color: #2F6BC4; }
.demo-card b { font-size: 16px; }
.demo-card small { color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) { .demo-choices { grid-template-columns: 1fr; } }

/* ---------- Admin view-as bar ---------- */
.viewas-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #1F2A44; color: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.viewas-bar .btn { background: #fff; color: #1F2A44; }

/* ---------- Admin notification samples ---------- */
.tg-sample { background: #E9F3FB; border-radius: 14px 14px 14px 4px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin: 10px 0; max-width: 420px; }
.tg-sample u { color: #1F6FB0; text-decoration: none; }

/* ---------- Live updates ---------- */
.live-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 560px); background: #101b26; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .5); transition: opacity .5s, transform .5s; }
.live-toast.out { opacity: 0; transform: translate(-50%, 10px); }
.live-bar { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; max-width: min(94vw, 640px); background: #fff; border: 1px solid #cfd9e3; border-left: 4px solid #2e689e; color: var(--ink); padding: 10px 12px 10px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .45); }
.live-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-bar button { flex: none; border: 0; background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 8px 12px; border-radius: 9px; cursor: pointer; }
@media (max-width: 900px) { .live-toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); } .live-bar { top: 70px; } }

/* ---------- Telegram destinations ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 16px; border: 0; padding: 0; margin: 0; }
.check-grid legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }

/* ---------- Ad results widget ---------- */
.roas { margin: 14px 0 4px; font-size: 14.5px; }
.roas b { font-size: 22px; margin-right: 6px; }

/* ---------- Profile photos ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 50%; object-fit: cover; background: #e3ebf2; }
.avatar-ini { color: #0b345a; font-weight: 800; letter-spacing: .02em; }
.avatar-edit { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.avatar-edit > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.avatar-form { margin: 0; }
.avatar-pick { position: relative; overflow: hidden; cursor: pointer; }
.avatar-pick input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.avatar-pick:focus-within { outline: 3px solid rgba(46, 158, 106, .35); outline-offset: 2px; }
.me-chip { display: flex; align-items: center; gap: 10px; padding: 10px; margin-top: auto; border-radius: 12px; text-decoration: none; color: var(--ink); }
.me-chip:hover, .me-chip.active { background: var(--bg); }
.me-chip span { display: flex; flex-direction: column; min-width: 0; }
.me-chip b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-chip small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .logout { margin-top: 0; }
.with-avatar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rows > li > div.with-avatar:first-child { flex-direction: row; align-items: center; gap: 12px; }
.with-avatar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar-acct .avatar { margin-left: -4px; }

/* ================= Landing page ================= */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.lp { background: #fafbfc; color: var(--ink); }
.lp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.brand-logo { display: block; height: auto; max-width: 100%; }
.only-m { display: none !important; }

/* Header */
.lp-head { position: sticky; top: 0; z-index: 30; background: rgba(251, 252, 250, .92); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); }
.lp-head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.lp-brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.lp-nav { display: flex; gap: 30px; }
.lp-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.lp-nav a:hover { color: var(--green); }
.lp-head-cta { display: flex; align-items: center; gap: 20px; }
.lp-login { color: var(--ink); font-weight: 700; text-decoration: none; font-size: 15.5px; }
.lp-btn { gap: 10px; border-radius: 12px; box-shadow: 0 10px 22px -12px rgba(10, 74, 51, .55); }
.lp-btn svg, .lp-btn-more svg { flex: none; }
.lp-menu { display: none; position: relative; }
.lp-menu > summary { list-style: none; cursor: pointer; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: var(--ink); }
.lp-menu > summary::-webkit-details-marker { display: none; }
.lp-menu[open] > summary { background: #eef1f3; }
.lp-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(86vw, 300px); background: #fff; border: 1px solid #E3E8E4; border-radius: 16px; box-shadow: 0 24px 50px -22px rgba(18, 40, 30, .4); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.lp-menu-panel a:not(.btn) { padding: 12px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lp-menu-panel a:not(.btn):hover { background: #f2f4f6; }
.lp-menu-panel .btn { margin-top: 6px; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 18px 0 8px; }
.lp-hero::before { content: ''; position: absolute; left: 12px; top: 260px; width: 120px; height: 140px; background-image: radial-gradient(#cfd4d8 1.2px, transparent 1.2px); background-size: 14px 14px; opacity: .7; pointer-events: none; }
.lp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 8px; align-items: center; }
.lp-hero-text { position: relative; z-index: 2; padding: 20px 0; }
.lp-hero-text h1 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; margin: 0 0 20px; color: #12161a; }
.lp-hero-text h1 span { color: #0b345a; display: block; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 16px; border-radius: 999px; background: #e6ecf2; color: #0b345a; font-weight: 600; font-size: 14.5px; }
.lp-lead { font-size: clamp(16px, 1.35vw, 18px); line-height: 1.6; color: #3F4A45; max-width: 48ch; margin: 0 0 26px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.lp-cta .btn-lg { min-height: 56px; padding: 0 28px; font-size: 16.5px; }
.lp-btn-more { gap: 10px; border-color: #D3D9D4; }
.lp-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.lp-checks li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: #4A5550; font-weight: 500; }
.lp-checks svg { width: 21px; height: 21px; padding: 3px; border-radius: 50%; background: #2e689e; color: #fff; stroke-width: 3; flex: none; }
.lp-visual { position: relative; margin-right: calc(-1 * max(24px, (100vw - 1200px) / 2 + 24px)); }
.lp-scene { display: block; width: 100%; height: auto; max-width: none; }
/* Foto utama: placeholder buram (inline, langsung tampil) lalu foto asli muncul halus */
.lp-pic { position: relative; display: block; }
.lp-pic::before { content: ''; position: absolute; inset: 0; background: var(--ph-d) center / 100% 100% no-repeat; filter: blur(12px); transform: scale(1.02); transition: opacity .45s ease; pointer-events: none; }
.lp-pic img { position: relative; opacity: 0; transition: opacity .45s ease; }
.lp-pic.is-loaded img { opacity: 1; }
.lp-pic.is-loaded::before { opacity: 0; }
@media (max-width: 640px) { .lp-pic::before { background-image: var(--ph-m); } }
@media (prefers-reduced-motion: reduce) { .lp-pic img, .lp-pic::before { transition: none; } }

/* Section basics */
.lp-sec { padding: 72px 0; scroll-margin-top: 72px; }
.lp-sec-tight { padding: 56px 0; }
.lp-sec-alt { background: #f2f5f7; }
.lp-sec-head { max-width: 620px; margin: 0 0 32px; }
.lp-sec-head h2, .lp-title { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 12px; font-weight: 800; }
.lp-title span { color: #0b447a; }
.lp-center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.lp-sec-head p { font-size: 16.5px; line-height: 1.6; color: #4A5550; margin: 0; }
.lp-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #4A5550; }
.lp-eyebrow::before { content: ''; width: 28px; height: 2px; background: #2e689e; border-radius: 2px; }

/* Kenapa Kasnera */
.lp-why { padding-top: 56px; }
.lp-why .lp-title { margin-bottom: 28px; }
.lp-why .lp-title span { display: block; }
.lp-why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-why-grid > div { background: #fff; border: 1px solid #E3E8E4; border-radius: 18px; padding: 24px; }
.lp-why-grid h3 { font-size: 18px; margin: 14px 0 6px; }
.lp-why-grid p { margin: 0; color: #5A6560; font-size: 15px; line-height: 1.6; }
.lp-tile { flex: none; width: 52px; height: 52px; border-radius: 14px; background: #e5ecf2; color: #0b345a; display: inline-flex; align-items: center; justify-content: center; }

/* Six features */
.lp-feat6 { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.lp-f6 { background: #fff; border: 1px solid #E3E8E4; border-radius: 18px; padding: 22px 18px; text-align: center; box-shadow: 0 14px 30px -26px rgba(18, 40, 30, .4); }
.lp-f6 h3 { font-size: 16px; margin: 14px 0 6px; }
.lp-f6 p { margin: 0; color: #5A6560; font-size: 14px; line-height: 1.55; }
.lp-f6-ic { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.lp-f6-ic.green { background: #1f609d; }
.lp-f6-ic.blue { background: #3B8EE8; }
.lp-f6-ic.orange { background: #F27B2B; }
.lp-f6-ic.purple { background: #7C5CE0; }
.lp-f6-ic.red { background: #E2484D; }
.lp-f6-ic.teal { background: #1BA7A0; }

/* Devices */
.lp-devices-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lp-devices .lp-title span { display: block; }
.lp-devices-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; }
.lp-devices-grid.no-img { grid-template-columns: 1fr; text-align: left; }
.lp-devices-img { display: block; width: 100%; height: auto; border-radius: 4.4% / 5.8%; box-shadow: 0 30px 60px -44px rgba(18, 40, 30, .45); }
.lp-devices .lp-title { font-size: clamp(28px, 2.9vw, 44px); letter-spacing: -0.035em; }
.lp-devices .lp-list li { font-size: clamp(16px, 1.45vw, 20px); color: #3A4540; }
.lp-devices .lp-list svg { width: 30px; height: 30px; padding: 6px; background: #0b447a; }
.lp-list { list-style: none; margin: 22px 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.5; }
.lp-list svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: #2e689e; color: #fff; stroke-width: 3; }
.ph-card small, 
/* Steps, chips, FAQ, final CTA, footer */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-steps li { background: #fff; border: 1px solid #E3E8E4; border-radius: 18px; padding: 24px; }
.lp-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #0a2b4a; color: #fff; font-weight: 800; margin-bottom: 14px; }
.lp-steps h3 { font-size: 17.5px; margin: 0 0 6px; letter-spacing: -0.01em; }
.lp-steps p { color: #5A6560; font-size: 15px; line-height: 1.6; margin: 0; }
.lp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chips li { background: #fff; border: 1px solid #dce0e4; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; color: #232a30; }
.lp-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.lp-faq { display: flex; flex-direction: column; gap: 10px; }
.lp-faq details { background: #fff; border: 1px solid #E3E8E4; border-radius: 14px; padding: 0 20px; }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 16px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.lp-faq details[open] summary svg { transform: rotate(180deg); }
.lp-faq details p { margin: 0 0 18px; color: #4A5550; line-height: 1.65; font-size: 15.5px; }
.lp-final { margin: 0 0 72px; background: #0a2b4a; color: #fff; border-radius: 24px; padding: 40px 44px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; background-image: radial-gradient(600px 300px at 90% 0%, rgba(46, 158, 106, .45), rgba(46, 158, 106, 0)); }
.lp-final h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 6px; letter-spacing: -0.03em; }
.lp-final p { margin: 0; color: #cdd9e5; font-size: 16px; }
.lp-btn-light { background: #fff; color: #0a2b4a; min-height: 54px; padding: 0 26px; font-size: 16px; }
.lp-btn-light:hover { background: #eaf0f5; color: #0a2b4a; }
.lp-foot { border-top: 1px solid #E3E8E4; padding: 26px 0 34px; }
.lp-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.lp-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.lp-foot nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.lp-foot small { color: var(--muted); }

/* Dua kolom sederhana di formulir (dipakai di beberapa halaman admin) */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }

/* ---------- Admin chat ---------- */
.chat-admin { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.6fr); gap: 16px; align-items: start; }
.chat-list .rows li { padding: 0; }
.chat-item { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.chat-item:hover, .chat-item.on { background: var(--bg); }
.chat-item > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.chat-item small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.admin-log { height: 52vh; min-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bg); border-radius: 12px; margin: 10px 0; }
.amsg { max-width: 80%; }
.amsg p { margin: 0; padding: 9px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; background: #fff; border: 1px solid var(--line); }
.amsg.admin { align-self: flex-end; text-align: right; }
.amsg.admin p { background: var(--green); color: #fff; border-color: var(--green); text-align: left; }
.amsg time { font-size: 11px; color: var(--muted); }
.admin-compose { display: flex; gap: 8px; align-items: flex-end; }
.admin-compose textarea { flex: 1; resize: vertical; }
@media (max-width: 900px) { .chat-admin { grid-template-columns: 1fr; } }

/* ---------- Pembelian ---------- */
.pb-items { display: flex; flex-direction: column; gap: 8px; }
.pb-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, .7fr) minmax(0, 1.1fr) minmax(0, .9fr) 28px; gap: 10px; align-items: center; }
.pb-head { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.pb-row label { margin: 0; }
.pb-row [data-pb-del] { font-size: 20px; line-height: 1; }
.pb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: #f2f5f8; border: 1px solid #d6dfe8; }
.pb-total b { font-size: 24px; }
@media (max-width: 760px) {
  .pb-head { display: none; }
  .pb-row { grid-template-columns: 1fr 1fr; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
  .pb-row > label:first-child { grid-column: span 2; }
}
/* ---------- Uang pemilik, posisi keuangan ---------- */
.owner-note { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 10px 14px; border-radius: 12px; background: #F1F6FF; color: #24406B; font-size: 14px; }
.position .pos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pos-col h3 { font-size: 14px; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pos-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.pos-total { border-bottom: 0; font-weight: 800; }
.pos-net { margin-top: 14px; padding: 16px; border-radius: 14px; background: #f2f5f8; border: 1px solid #d6dfe8; display: flex; flex-direction: column; gap: 4px; }
.pos-net b { font-size: 26px; letter-spacing: -0.02em; }
.pos-net small { color: var(--muted); line-height: 1.45; }
@media (max-width: 760px) { .position .pos-grid { grid-template-columns: 1fr; } }
.wa-btn { margin: 6px 0; }
/* ---------- Mode sederhana, panduan, impor ---------- */
.nav-more { margin: 4px 6px 0; }
.nav-more button { width: 100%; text-align: left; border: 1px dashed var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 10px; cursor: pointer; }
.nav-more button:hover { color: var(--green); border-color: #9fb8d0; }
.guide { background: var(--surface); border: 1px solid #d6dfe8; border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; }
.guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.guide-head h2 { margin: 0; font-size: 17px; }
.guide-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.guide-bar { height: 6px; border-radius: 99px; background: #eef0f2; margin: 12px 0; overflow: hidden; }
.guide-bar i { display: block; height: 100%; background: #1f609d; border-radius: 99px; }
.guide-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.guide-steps a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.guide-steps a:hover { border-color: #9fb8d0; }
.guide-steps b { display: block; font-size: 14px; }
.guide-steps small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.g-check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d0d6; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.guide-steps li.done .g-check { background: #1f609d; border-color: #1f609d; color: #fff; }
.guide-steps li.done .g-check svg { width: 13px; height: 13px; }
.guide-steps li.done b { color: var(--muted); text-decoration: line-through; }
.import-types { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; }
.import-types legend { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.howto { margin: 0; padding-left: 18px; display: grid; gap: 10px; line-height: 1.55; font-size: 14.5px; }

/* ---------- Info & Promo (client) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.post-card:hover { border-color: #9fb8d0; transform: translateY(-2px); box-shadow: 0 18px 36px -28px rgba(18, 40, 30, .5); }
.post-img { position: relative; display: flex; align-items: center; justify-content: center; min-height: 140px; overflow: hidden; background: #eaf0f6; color: #0b345a; }
.post-img.k-promo { background: linear-gradient(135deg, #FFF0E3, #FFE0C7); color: #D9711C; }
.post-img.k-kabar { background: linear-gradient(135deg, #E6F0FF, #D6E6FF); color: #2F6BC4; }
.post-img.k-info { background: linear-gradient(135deg, #eaf0f6, #d8e3ee); color: #0b345a; }
.post-img > svg { width: 52px; height: 52px; opacity: .8; }
.post-img:not(:has(img)) { aspect-ratio: 16 / 9; }
.post-img img { display: block; width: 100%; height: auto; object-fit: contain; }
.post-kind { position: absolute; left: 10px; top: 10px; padding: 4px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; background: rgba(255, 255, 255, .94); color: #232a30; }
.post-kind.k-promo { color: #C2611A; }
.post-kind.k-kabar { color: #2F6BC4; }
.post-kind.k-info { color: #0b447a; }
.post-new { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 99px; background: #C9412F; color: #fff; font-size: 11px; font-weight: 800; }
.post-pin { position: absolute; right: 10px; bottom: 8px; font-size: 15px; }
.post-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.post-body b { font-size: 16px; line-height: 1.35; }
.post-body span { color: #4A5550; font-size: 14px; line-height: 1.5; }
.post-body small { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.post-detail { padding: 0; overflow: hidden; max-width: 820px; }
.post-detail .post-kind { position: static; display: inline-block; background: #f1f3f5; }
.post-hero { display: block; width: 100%; height: auto; object-fit: contain; background: #f4f6f7; }
.post-detail-body { padding: 22px 26px 28px; }
.post-detail-body h1 { margin: 10px 0 6px; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.post-headline { font-size: 17px; color: #3F4A45; margin: 0 0 6px; }
.post-text { font-size: 15.5px; line-height: 1.7; margin: 16px 0 20px; }
.badge-new { background: #C9412F !important; }
/* Kartu promo di ruang kosong menu samping */
.side-promo { display: block; margin: 14px 4px 10px; border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, #f2f5f8, #e3eaf1); border: 1px solid #d6dfe8; transition: border-color .15s, transform .15s; }
.side-promo:hover { border-color: #9fb8d0; transform: translateY(-1px); }
.side-promo.k-promo { background: linear-gradient(160deg, #FFF6EE, #FFE8D4); border-color: #F5D7BC; }
.side-promo.k-kabar { background: linear-gradient(160deg, #F1F6FF, #E0EBFF); border-color: #CCDDF7; }
.side-promo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.side-promo-body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.side-promo-body small { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0b447a; }
.side-promo.k-promo small { color: #C2611A; }
.side-promo.k-kabar small { color: #2F6BC4; }
.side-promo-body b { font-size: 13.5px; line-height: 1.35; }
.side-promo-body span { font-size: 12.5px; color: #4A5550; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-admin-foto { display: flex; align-items: center; gap: 12px; }
.post-admin-foto img { width: 140px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.post-admin-thumb { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; }
@media (max-width: 640px) { .post-detail-body { padding: 18px; } .post-grid { grid-template-columns: 1fr; } }

/* ---------- Kabar UMKM ---------- */
.lp-news .lp-title span { color: #0b447a; }
.news-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; margin-bottom: 18px; }
.news-head .lp-title { margin: 0; }
.news-src { margin: 0; color: #5A6560; font-size: 14px; max-width: 420px; }
.news-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.news-card { height: 100%; display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid #E3E8E4; overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s, box-shadow .15s; }
.news-card:hover { border-color: #9fb8d0; transform: translateY(-2px); box-shadow: 0 18px 36px -28px rgba(18, 40, 30, .5); }
.news-thumb { position: relative; display: block; aspect-ratio: 15 / 8; overflow: hidden; }
.news-thumb svg { display: block; width: 100%; height: 100%; transition: transform .3s ease; }
.news-card:hover .news-thumb svg { transform: scale(1.04); }
.news-tag { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .92); font-size: 11.5px; font-weight: 800; color: #232a30; letter-spacing: .01em; }
.news-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.news-t { font-weight: 700; line-height: 1.42; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { margin-top: auto; font-size: 12.5px; color: #7A847F; font-weight: 600; }
@media (max-width: 640px) {
  .news-list { grid-template-columns: 1fr; gap: 10px; }
  .news-card { flex-direction: row; align-items: stretch; }
  .news-thumb { flex: none; width: 112px; aspect-ratio: auto; }
  .news-tag { display: none; }
  .news-body { padding: 12px 14px; gap: 6px; }
  .news-t { font-size: 14.5px; }
}

/* ---------- Insight articles ---------- */
.article .lead { font-size: 18px; color: #3F4A45; line-height: 1.6; margin-top: 0; }
.ins-tag.dark { color: #0b447a; margin: 0 0 6px; }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 10px; padding: 20px; border-radius: 18px; background: #f1f5f8; border: 1px solid #d6dfe8; }
.article-cta > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.article-cta span { color: #4A5550; font-size: 14.5px; }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.article-list a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; border: 1px solid #E3E8E4; background: #fff; text-decoration: none; color: var(--ink); }
.article-list a:hover { border-color: #9fb8d0; }
.article-list span { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0b447a; }
.article-list small { color: #5A6560; }

/* ---------- Ticker ---------- */
.lp-ticker { border-top: 1px solid #e3e8ec; border-bottom: 1px solid #e3e8ec; background: #f4f7f9; overflow: hidden; }
.lp-ticker-in { display: flex; align-items: center; gap: 18px; height: 50px; }
.lp-ticker-label { flex: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: .02em; color: #0b345a; text-transform: uppercase; padding-right: 18px; border-right: 1px solid #d5dde5; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2e689e; box-shadow: 0 0 0 0 rgba(46, 158, 106, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 158, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 158, 106, 0); } }
.lp-ticker-view { flex: 1; min-width: 0; overflow: hidden; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lp-ticker-track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: ticker 60s linear infinite; }
.lp-ticker:hover .lp-ticker-track { animation-play-state: paused; }
.lp-ticker-view::-webkit-scrollbar { display: none; }
.lp-ticker-track li { display: inline-flex; align-items: center; white-space: nowrap; font-size: 14.5px; font-weight: 600; color: #2b3238; padding: 0 22px; }
.lp-ticker-track li::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #9cb3c9; margin-left: 44px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Ticker tetap berjalan seperti running text market; di perangkat yang mematikan animasi dibuat lebih pelan */
@media (prefers-reduced-motion: reduce) { .lp-ticker-track { animation-duration: 120s; } .pulse { animation: none; } }

/* ---------- Insight slider ---------- */
.lp-insight { padding-top: 24px; }
.insight-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; }
.insight-head .lp-title { margin: 0; }
.insight-head .lp-title span { color: #0b447a; }
.insight-nav { display: flex; gap: 8px; }
.insight-nav button { width: 42px; height: 42px; border-radius: 12px; border: 1px solid #d5dade; background: #fff; font-size: 24px; line-height: 1; color: #0a2b4a; cursor: pointer; }
.insight-nav button:hover { border-color: #2e689e; }
.insight { position: relative; display: grid; min-height: 132px; border-radius: 22px; overflow: hidden; color: #fff; background: radial-gradient(520px 260px at 92% 0%, rgba(80, 200, 140, .35), rgba(80, 200, 140, 0) 70%), linear-gradient(120deg, #0a253f 0%, #0e355a 60%, #124370 100%); box-shadow: 0 30px 60px -40px rgba(10, 63, 44, .8); }
.ins-slide { grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px; padding: 26px 30px 34px; opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.ins-slide.is-on { opacity: 1; transform: none; pointer-events: auto; }
.ins-ic { width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; color: #bfd8f0; }
.ins-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #9fc2e3; margin-bottom: 6px; }
.ins-body h3 { margin: 0 0 6px; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.02em; }
.ins-body p { margin: 0; color: #d3dee9; font-size: 15.5px; line-height: 1.55; max-width: 62ch; }
.ins-cta { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: #fff; color: #0a2b4a; font-weight: 800; text-decoration: none; font-size: 14.5px; }
.ins-cta:hover { background: #eaf0f6; }
.ins-dots { position: absolute; left: 30px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.ins-dots button { width: 22px; height: 5px; border-radius: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .3); cursor: pointer; }
.ins-dots button[aria-selected="true"] { background: #fff; width: 34px; }
.ins-progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: #7fb1e0; }
.insight.run .ins-progress { animation: insbar 7s linear forwards; }
@keyframes insbar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ins-slide { transition: none; } .insight.run .ins-progress { animation: none; } }

@media (max-width: 640px) {
  .lp-ticker-in { height: 44px; gap: 12px; }
  .lp-ticker-label { font-size: 11px; padding-right: 12px; }
  .lp-ticker-label .lbl-long { display: none; }
  .lp-ticker-track li { font-size: 13.5px; padding: 0 16px; }
  .lp-ticker-track li::after { margin-left: 32px; }
  .insight { min-height: 0; }
  .ins-slide { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px 40px; }
  .ins-ic { width: 48px; height: 48px; border-radius: 14px; }
  .ins-cta { justify-self: start; }
  .ins-dots { left: 20px; }
  .insight-nav button { width: 38px; height: 38px; }
}

@media (max-width: 1100px) {
  .lp-feat6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .lp-nav { display: none; }
  .lp-hero::before { display: none; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .lp-visual { margin-right: -24px; margin-left: -24px; }
  .lp-steps { grid-template-columns: 1fr; gap: 12px; }
  .lp-steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 18px; }
  .lp-steps .lp-num { grid-row: span 2; margin: 0; }
  .lp-faq-wrap, .lp-devices-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-devices-grid > div:last-child { order: -1; }
}
@media (max-width: 640px) {
  .only-d { display: none !important; }
  .only-m { display: revert !important; }
  .lp-badge.only-m { display: inline-flex !important; }
  .lp-checks-row.only-m { display: grid !important; }
  .lp-wrap { padding-left: 18px; padding-right: 18px; }
  .lp-head-in { min-height: 64px; }
  .lp-head-cta { display: none; }
  .lp-menu { display: block; }
  .lp-brand .brand-logo { width: 140px; height: auto; }
  .lp-hero { padding-top: 6px; background: radial-gradient(500px 400px at 100% 10%, #e6ecf2 0%, rgba(230, 242, 235, 0) 70%); }
  .lp-hero-text { padding: 6px 0 4px; }
  .lp-hero-text h1 { font-size: clamp(27px, 7.7vw, 40px); letter-spacing: -0.05em; }
  .lp-cta { flex-direction: column; gap: 12px; }
  .lp-cta .btn-lg { width: 100%; }
  .lp-checks-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .lp-checks-row li { align-items: flex-start; font-size: 13.5px; line-height: 1.35; }
  .lp-visual { margin: 6px -18px 0; }
  .lp-sec { padding: 48px 0; }
  .lp-why { padding-top: 32px; border-radius: 28px 28px 0 0; background: #fff; margin-top: -24px; position: relative; }
  .lp-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lp-why-grid > div { padding: 14px 10px; border-radius: 14px; }
  .lp-why-grid .lp-tile { width: 40px; height: 40px; border-radius: 11px; }
  .lp-why-grid .lp-tile svg { width: 20px; height: 20px; }
  .lp-why-grid h3 { font-size: 14px; margin: 10px 0 4px; }
  .lp-why-grid p { font-size: 12.5px; line-height: 1.45; }
  .lp-feat6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-f6 { padding: 16px 12px; }
  .lp-f6 h3 { font-size: 15px; }
  .lp-f6 p { font-size: 13px; }
    .lp-sec-head { margin-bottom: 22px; }
  .lp-chips li { padding: 8px 14px; font-size: 14px; }
  .lp-final { padding: 28px 22px; border-radius: 20px; margin-bottom: 48px; }
  .lp-final .lp-btn-light { width: 100%; }
}

/* =====================================================================
   Kasnera 3.3: bingkai aplikasi baru (header kapsul, rel ikon, menu lengkap)
   dan halaman Ringkasan gaya baru. Ditaruh paling akhir supaya menimpa gaya lama.
   ===================================================================== */
:root { --app-bg: #EDF0EE; --k-soft: #F2F4F3; --k-green: #0b345a; --k-green2: #155896; --k-mint: #eaf0f6; --k-red: #C9412F; }
body.app-v2 { background: var(--app-bg); }
.app-v2 .topbar { display: none !important; }
.k-hdr { position: sticky; top: 12px; z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 18px 0; background: #fff; border-radius: 999px; padding: 9px 10px 9px 22px; box-shadow: 0 10px 30px -24px rgba(17, 24, 20, .4); }
.k-brand { display: inline-flex; flex: none; }
.k-brand img { display: block; height: auto; }
.k-tabs { display: flex; gap: 4px; background: var(--k-soft); border-radius: 999px; padding: 5px; overflow-x: auto; }
.k-tabs a { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #3A4640; text-decoration: none; white-space: nowrap; }
.k-tabs a:hover { color: var(--k-green); }
.k-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .25); }
.k-hr { display: flex; align-items: center; gap: 10px; }
.k-circ { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--k-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.k-circ.on { background: var(--k-mint); color: var(--k-green); }
.k-dot { position: absolute; top: 7px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--k-red); border: 2px solid #fff; }
.k-acct { position: relative; }
.k-acct > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 4px 14px 4px 4px; border-radius: 999px; background: var(--k-soft); cursor: pointer; max-width: 280px; }
.k-acct > summary::-webkit-details-marker { display: none; }
.k-acct-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.k-acct-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-acct-t small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.k-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 290px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: 0 24px 50px -24px rgba(17, 24, 20, .4); display: flex; flex-direction: column; gap: 2px; z-index: 50; }
.k-acct-menu form { margin: 0; }
.k-acct-menu a, .k-acct-menu button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 0; background: transparent; font: inherit; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.k-acct-menu a:hover, .k-acct-menu button:hover { background: var(--k-soft); }
.k-acct-menu svg { flex: none; width: 18px; height: 18px; color: var(--k-green); }
.k-acct-menu span { display: flex; flex-direction: column; min-width: 0; }
.k-acct-menu b { font-size: 13.5px; }
.k-acct-menu small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-acct-menu .danger, .k-acct-menu .danger svg { color: var(--k-red); }
.app-v2 .shell { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0; background: var(--app-bg) !important; min-height: calc(100vh - 80px); }
.k-rail { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 12px; padding: 20px 0 20px 18px; }
.k-rg { background: #fff; border-radius: 36px; padding: 9px 7px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.k-rg-tabs { display: none; }
.k-ri { position: relative; width: 60px; padding: 8px 2px 6px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: #3A4640; font-size: 10.5px; font-weight: 600; text-align: center; line-height: 1.15; text-decoration: none; border: 0; background: transparent; font-family: inherit; cursor: pointer; }
.k-ri svg { width: 20px; height: 20px; }
.k-ri:hover { background: var(--k-soft); }
.k-ri.on { background: var(--k-green); color: #fff; }
.k-n { position: absolute; top: 3px; right: 6px; min-width: 17px; height: 17px; border-radius: 99px; background: var(--k-red); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.app-v2 .main { max-width: 1320px; padding: 22px 22px 56px; }
/* "Semua menu" (menu samping lama) sebagai lembar di semua ukuran layar */
.app-v2 .sidebar { display: none; position: fixed !important; z-index: 80; top: 12px !important; bottom: 12px !important; left: 12px !important; right: auto !important; width: 330px; height: auto !important; border-radius: 26px; border: 0 !important; box-shadow: 0 30px 60px -20px rgba(17, 24, 20, .45); overflow-y: auto; padding: 16px 14px 18px !important; }
body.app-v2.nav-open .sidebar { display: flex; }
body.app-v2.nav-open::before { content: ''; position: fixed; inset: 0; z-index: 75; background: rgba(17, 24, 20, .35); }
.app-v2 .sidebar .brand { display: none; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; }
.sheet-head b { font-size: 16px; }
.sheet-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--k-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.bottom-nav button[data-menu-toggle] { font-family: inherit; }
@media (max-width: 1180px) {
  .k-tabs { display: none; }
  .k-rg-tabs { display: flex; }
}
@media (max-width: 900px) {
  .k-hdr { margin: 8px 10px 0; top: 8px; padding: 7px 8px 7px 16px; }
  .k-brand img { width: 120px; }
  .k-acct-t { display: none; }
  .k-acct > summary { padding: 3px; }
  .app-v2 .shell { grid-template-columns: 1fr; }
  .k-rail { display: none; }
  .app-v2 .main { padding: 16px 12px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .app-v2 .sidebar { left: 8px !important; right: 8px !important; width: auto; top: auto !important; bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important; max-height: 78vh; }
}
@media print { .k-hdr, .k-rail { display: none !important; } .app-v2 .shell { display: block; } }

/* ---------- Ringkasan gaya baru ---------- */
.d-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.d-top h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; letter-spacing: -.03em; }
.d-top h1 span { color: #9AA59F; }
.d-top p { margin: 6px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.d-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.d-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #fff; border: 0; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; }
.d-pill:hover { box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); }
.d-pill.pri { background: var(--k-green); color: #fff; }
.d-pill i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .18); }
.d-pill i svg { width: 14px; height: 14px; }
.d-pill i.out { background: #FCE4E1; color: var(--k-red); }
.d-pill i.sale { background: #FCEBDD; color: #D9711C; }
.d-pill i.cash { background: #E6EEFB; color: #2F6BC4; }
.d-pill.sm { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.d-pill.sm svg { width: 15px; height: 15px; }
.d-guide { background: #fff; border-radius: 26px; padding: 18px 22px; margin-bottom: 18px; }
.d-guide-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.d-guide-h h2 { margin: 0; font-size: 17px; }
.d-guide-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.d-guide-h .d-pill { background: var(--k-soft); }
.d-gbar { height: 8px; border-radius: 99px; background: #eef0f2; margin: 12px 0; overflow: hidden; }
.d-gbar i { display: block; height: 100%; background: var(--k-green2); border-radius: 99px; }
.d-gsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.d-gsteps a { display: flex; gap: 9px; align-items: flex-start; background: #F6F7F6; border-radius: 16px; padding: 11px; text-decoration: none; color: var(--ink); height: 100%; }
.d-gsteps b { display: block; font-size: 13.5px; }
.d-gsteps small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.d-gc { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #c9d0d6; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.d-gc svg { width: 13px; height: 13px; }
.d-gsteps li.done .d-gc { background: var(--k-green2); border-color: var(--k-green2); }
.d-gsteps li.done b { text-decoration: line-through; color: #9AA59F; }
.d-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr) minmax(0, .95fr); gap: 18px; align-items: stretch; margin-bottom: 18px; }
.d-hero.no-chart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.d-second.no-trx { grid-template-columns: minmax(0, 1fr); }
.d-rest { align-items: start; }
.d-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.d-card { background: #fff; border-radius: 26px; padding: 20px 22px; position: relative; min-width: 0; }
.d-grow { display: flex; flex-direction: column; }
.d-col > .d-grow { flex: 1; }
.d-sp2 { grid-column: span 2; }
.d-ch { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.d-ch h2 { margin: 0; font-size: 16px; font-weight: 700; }
.d-ch p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.d-ttl { display: flex; align-items: center; gap: 10px; }
.d-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--k-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.d-go { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--k-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.d-go:hover { background: var(--k-mint); color: var(--k-green); }
.d-go svg { width: 18px; height: 18px; }
.d-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--k-soft); color: var(--muted); }
.d-chip.good { background: #1f609d; color: #fff; }
.d-chip.bad { background: #FCE4E1; color: var(--k-red); }
.d-chip.soft { background: var(--k-mint); color: var(--k-green); }
.d-chip.warn { background: #FFF1D6; color: #B7791F; }
.d-bal { background: linear-gradient(140deg, #134b80 0%, #0b345a 100%); color: #fff; border-radius: 20px; padding: 18px 20px 16px; position: relative; overflow: hidden; }
.d-bal.neg { background: linear-gradient(140deg, #B5412F 0%, #8C2E21 100%); }
.d-bal::after { content: ''; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.d-bal small { opacity: .8; font-size: 12.5px; }
.d-bal b { display: block; font-size: clamp(24px, 2.2vw, 30px); letter-spacing: -.02em; margin: 6px 0 12px; font-weight: 700; }
.d-bal b span { opacity: .6; font-weight: 600; font-size: .75em; margin-right: 4px; }
.d-bal .r { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; opacity: .9; position: relative; z-index: 1; }
.d-bal .r span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-mini { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.d-mini small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.d-mini b { display: block; font-size: clamp(20px, 1.9vw, 24px); letter-spacing: -.02em; margin-top: 4px; }
.d-mini b.in { color: var(--ink); } .d-mini b.out { color: var(--k-red); } .d-mini b.z { color: #9AA59F; }
.d-mini em { font-style: normal; color: var(--muted); font-size: 12px; }
.d-bars { position: relative; flex: 1; min-height: 230px; display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; padding-top: 28px; }
.d-ax { display: flex; flex-direction: column; justify-content: space-between; height: 100%; font-size: 11px; color: #9AA59F; padding-bottom: 24px; }
.d-gl { position: absolute; left: 54px; right: 0; top: 28px; bottom: 32px; background: repeating-linear-gradient(180deg, transparent 0, transparent calc(50% - 1px), #E1E6E3 calc(50% - 1px), #E1E6E3 50%); pointer-events: none; }
.d-bw { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.d-bar { width: 100%; max-width: 58px; border-radius: 999px; background: repeating-linear-gradient(135deg, #8faac4 0 7px, #9fb7cd 7px 14px); }
.d-bar.today { background: repeating-linear-gradient(135deg, #0b345a 0 7px, #144470 7px 14px); }
.d-bar.red { background: repeating-linear-gradient(135deg, #F0A69C 0 7px, #F4B8B0 7px 14px); }
.d-bar.red.today { background: repeating-linear-gradient(135deg, #C9412F 0 7px, #D4553F 7px 14px); }
.d-bw > span:last-child { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.d-tip { position: absolute; left: 50%; transform: translateX(-50%); background: var(--k-green); color: #fff; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 99px; white-space: nowrap; z-index: 1; }
.d-tip.red { background: var(--k-red); }
.d-big { text-align: center; margin: 2px 0 6px; }
.d-big small { color: var(--muted); font-size: 12.5px; }
.d-big b { display: block; font-size: clamp(26px, 2.4vw, 32px); letter-spacing: -.02em; font-weight: 700; margin: 2px 0 6px; }
.d-big b span { color: #9AA59F; font-weight: 600; }
.d-big b.out, .d-big b.out span { color: var(--k-red); }
.d-laba { overflow: hidden; padding-bottom: 14px; }
.d-spark { display: block; width: calc(100% + 44px); height: 100px; margin: 4px -22px 0; flex: 1; min-height: 80px; }
.d-duo { display: flex; margin: -26px auto 0; background: #fff; border-radius: 999px; padding: 4px; width: max-content; max-width: 100%; position: relative; box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .35); }
.d-duo a { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.d-duo a.on { background: var(--k-green); color: #fff; }
.d-table { overflow-x: auto; }
.d-table table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.d-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 10px 4px; }
.d-table td { padding: 10px; font-size: 13.5px; font-weight: 600; }
.d-table tbody tr:nth-child(even) td { background: #F6F7F6; }
.d-table tbody tr:nth-child(even) td:first-child { border-radius: 14px 0 0 14px; }
.d-table tbody tr:nth-child(even) td:last-child { border-radius: 0 14px 14px 0; }
.d-table .r { text-align: right; }
.d-table .in { color: #134b80; } .d-table .out { color: var(--k-red); }
.d-who { display: flex; align-items: center; gap: 10px; }
.d-who i { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.d-who i svg { width: 16px; height: 16px; }
.d-who i.in { background: #e3ebf2; color: #13508a; } .d-who i.out { background: #FCE4E1; color: var(--k-red); }
.d-who small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.d-st { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.d-st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2e80cc; }
.d-st.wait::before { background: #F2A93B; }
.d-att { display: flex; flex-direction: column; gap: 8px; }
.d-att a { display: flex; align-items: center; gap: 10px; background: #F6F7F6; border-radius: 16px; padding: 11px 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.d-att a:hover { background: var(--k-mint); }
.d-att a i { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.d-att a i svg { width: 15px; height: 15px; }
.d-att .t-warn i { background: #FFF1D6; color: #B7791F; } .d-att .t-bad i { background: #FCE4E1; color: var(--k-red); } .d-att .t-info i { background: #E6EEFB; color: #2F6BC4; }
.d-att a b { margin-left: auto; color: #9AA59F; }
.d-ok { display: flex; align-items: center; gap: 12px; background: var(--k-mint); border-radius: 18px; padding: 14px; color: var(--k-green); font-weight: 700; font-size: 14px; }
.d-ok i { width: 34px; height: 34px; border-radius: 50%; background: var(--k-green2); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.d-ok i svg { width: 17px; height: 17px; }
.d-ok small { display: block; font-weight: 500; color: #3f566b; font-size: 12.5px; }
.d-promo { display: flex; gap: 12px; align-items: center; background: #F6F7F6; border-radius: 20px; padding: 12px; text-decoration: none; color: var(--ink); }
.d-promo img, .d-promo-ph { width: 72px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.d-promo-ph { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFE7CF, #F6C08D); color: #B05A12; }
.d-promo > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.d-promo b { font-size: 13.5px; line-height: 1.35; }
.d-promo small { color: var(--muted); font-size: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-lst { display: flex; flex-direction: column; gap: 12px; }
.d-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.d-row > span:first-child { min-width: 0; }
.d-row small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.d-row b { white-space: nowrap; } .d-row .in { color: #134b80; } .d-row .out { color: var(--k-red); }
.d-prog { height: 8px; border-radius: 99px; background: #eef0f2; overflow: hidden; margin-top: 6px; }
.d-prog.big { height: 12px; margin: 16px 0 8px; }
.d-prog i { display: block; height: 100%; background: var(--k-green2); border-radius: 99px; }
.d-prog i.near { background: #E0A43A; } .d-prog i.over { background: var(--k-red); }
.d-note { margin: 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.d-row .d-note { text-align: right; }
.d-approve { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EEF1EF; font-size: 13.5px; }
.d-approve:last-child { border-bottom: 0; }
.d-approve small { display: block; color: var(--muted); font-size: 12px; }
.d-mb { display: flex; gap: 6px; flex: none; }
.d-mb button { border: 0; border-radius: 99px; padding: 7px 12px; font: inherit; font-weight: 700; font-size: 12.5px; cursor: pointer; }
.d-mb .y { background: var(--k-green); color: #fff; } .d-mb .n { background: var(--k-soft); color: var(--ink); }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.d-two div { background: #F6F7F6; border-radius: 14px; padding: 10px 12px; }
.d-two small { display: block; color: var(--muted); font-size: 12px; }
.d-two b { font-size: 16px; } .d-two .in { color: #134b80; } .d-two .out { color: var(--k-red); }
.d-donut { display: flex; gap: 16px; align-items: center; }
.d-donut svg { flex: none; }
.d-leg { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; flex: 1; min-width: 0; }
.d-leg div { display: flex; align-items: center; gap: 8px; }
.d-leg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.d-leg-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.d-leg b { margin-left: auto; }
.d-roas { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.d-roas b { font-size: 26px; letter-spacing: -.02em; color: var(--k-green); white-space: nowrap; }
.d-roas span { color: var(--muted); font-size: 13px; }
.d-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 22px 12px; color: var(--muted); font-size: 13.5px; border: 2px dashed #E1E6E3; border-radius: 20px; min-height: 140px; }
.d-empty b { color: var(--ink); font-size: 14.5px; }
.d-empty .d-pill { min-height: 38px; font-size: 13px; margin-top: 4px; }
.announce { border-radius: 20px !important; }
@media (max-width: 1180px) {
  .d-grid, .d-hero.no-chart { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .d-spark { flex: none; }
  .d-col { display: contents; }
  .d-chart { grid-column: span 2; order: -1; }
  .d-sp2 { grid-column: span 2; }
}
@media (max-width: 900px) {
  .d-grid, .d-hero.no-chart, .d-second.no-trx { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
  .d-sp2, .d-chart { grid-column: auto; }
  .d-chart { order: 0; }
  .d-main2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
  .d-main2 > .d-grid, .d-main2 .d-col { display: contents; }
  [data-o] { order: var(--o, 0); }
  .d-att-card { order: -1 !important; }
  .d-acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .d-acts .d-pill { justify-content: center; padding: 0 10px; font-size: 13px; }
  .d-hp { display: none; }
  .d-card { border-radius: 22px; padding: 16px; }
  .d-bars { min-height: 190px; gap: 6px; grid-template-columns: 38px repeat(7, minmax(0, 1fr)); }
  .d-gl { left: 44px; }
  .d-spark { width: calc(100% + 32px); margin: 4px -16px 0; }
}
.main .panel { border-radius: 22px; }

/* ---------- 3.3.1: bingkai di tengah, panel Info & Promo kanan, header HP solid ---------- */
.k-band { position: sticky; top: 0; z-index: 35; background: var(--app-bg); padding: 12px 18px 6px; }
.k-band .k-hdr { position: static; margin: 0 auto; max-width: 1600px; }
.app-v2 .shell { max-width: 1636px; margin: 0 auto; }
.app-v2 .main { max-width: none; }
.k-rail { top: 82px; }
.k-side { display: none; }
@media (min-width: 1500px) {
  .app-v2 .shell.has-side { grid-template-columns: 92px minmax(0, 1fr) 300px; }
  .k-side { display: block; padding: 22px 18px 40px 0; }
  .k-side-in { position: sticky; top: 82px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 100px); overflow-y: auto; }
  .has-side .d-promo-card { display: none; }
}
.k-side-h { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.k-side-h h2 { margin: 0; font-size: 15.5px; }
.k-side-h a { font-size: 12.5px; font-weight: 700; color: var(--k-green); text-decoration: none; }
.k-feat { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; flex: none; }
.k-feat-link { display: flex; color: var(--ink); text-decoration: none; }
.k-feat-link { flex-direction: column; }
.k-feat img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; background: #f4f6f7; }
.k-feat-ph { display: flex; width: 100%; aspect-ratio: 2 / 1; }
.k-feat-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FFE7CF, #F6C08D); color: #B05A12; }
.k-feat.k-kabar .k-feat-ph { background: linear-gradient(135deg, #E6F0FF, #CFE0FA); color: #2F6BC4; }
.k-feat.k-info .k-feat-ph { background: linear-gradient(135deg, #eaf0f6, #cddbe8); color: var(--k-green); }
.k-feat-b { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 4px; align-items: flex-start; }
.k-feat-b b { font-size: 15px; line-height: 1.35; }
.k-feat-b small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.k-feat-btn { display: flex; justify-content: center; margin: 8px 14px 14px; padding: 10px; border-radius: 12px; background: var(--k-green); color: #fff; font-weight: 700; font-size: 13.5px; text-decoration: none; }
.k-feat-link:only-child, .k-feat > .k-feat-link:last-of-type { padding-bottom: 10px; }
.k-kind { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #FFF0E3; color: #C2611A; }
.k-kabar .k-kind { background: #E6F0FF; color: #2F6BC4; }
.k-info .k-kind { background: var(--k-mint); color: var(--k-green); }
.k-new { position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--k-red); border: 2px solid #fff; z-index: 1; }
.k-hide { position: absolute; top: 8px; right: 8px; margin: 0; }
.k-hide button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #5A6560; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.k-hide button:hover { background: var(--k-soft); color: var(--ink); }
.k-hide svg { width: 14px; height: 14px; }
.k-side-f { margin: 0; padding: 0 6px; font-size: 11.5px; color: #8A948F; line-height: 1.45; }
@media (max-width: 900px) {
  .k-band { padding: 0; background: transparent; }
  .k-band .k-hdr { margin: 0; max-width: none; border-radius: 0; border-bottom: 1px solid var(--line); padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px 16px; box-shadow: 0 8px 24px -18px rgba(17, 24, 20, .45); }
}

/* 3.3.2: lompatan ke #bagian (misalnya #catat) tidak berhenti di bawah header yang menempel */
html { scroll-padding-top: 92px; }
@media (max-width: 900px) { html { scroll-padding-top: 76px; } }

/* ---------- Panel samping: kartu list ke bawah ---------- */
.k-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--k-green); }
.k-feat.k-promo .k-kind { color: #C2611A; }
.k-feat.k-kabar .k-kind { color: #2F6BC4; }
.k-new-tag { font-style: normal; padding: 2px 7px; border-radius: 99px; background: #C9412F; color: #fff; font-size: 10px; letter-spacing: .02em; }
.k-date { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.k-feat-link { padding-bottom: 10px; }
.k-feat-btn + .k-hide { top: 8px; }

/* ---------- Panduan Telegram ---------- */
.tg-guide { padding: 0; overflow: hidden; }
.tg-guide > summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 800; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tg-guide > summary::-webkit-details-marker { display: none; }
.tg-guide > summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--green); }
.tg-guide[open] > summary::after { content: '\2212'; }
.tg-guide-body { padding: 0 22px 22px; }
.tg-guide-body > p.lead { margin: 0 0 14px; }
.tg-steps { list-style: none; counter-reset: tg; margin: 0; padding: 0; display: grid; gap: 14px; }
.tg-steps > li { counter-increment: tg; position: relative; padding-left: 44px; line-height: 1.6; min-width: 0; }
.tg-steps > li::before { content: counter(tg); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tg-steps h3 { margin: 3px 0 4px; font-size: 15.5px; }
.tg-steps p { margin: 0 0 6px; }
.tg-code { display: block; margin: 6px 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; overflow-x: auto; white-space: nowrap; }
.tg-steps ul { margin: 4px 0 0; padding-left: 18px; }
.tg-note { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F3D9A4; color: #6B4A0C; font-size: 14px; line-height: 1.55; }
.tg-note + .tg-note { margin-top: 10px; }
.tg-note.tg-warn { background: #FDECEA; border-color: #F2B8B0; color: #8A2A1E; }

/* ---------- 3.4: chat admin (edit/hapus dan tanda dibaca) ---------- */
.amsg { position: relative; }
.amsg .meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 11px; color: var(--muted); }
.amsg.admin .meta { justify-content: flex-end; }
.amsg .ed { font-style: italic; }
.amsg .ed::before { content: '· '; font-style: normal; }
.amsg p.del { background: transparent !important; border: 1px dashed var(--line-strong) !important; color: var(--muted) !important; font-style: italic; }
.amsg .tick { font-size: 12px; letter-spacing: -2px; color: #8A948F; font-weight: 700; }
.amsg .tick.read { color: #1E88E5; }
.amsg .mact { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 8px; cursor: pointer; }
.amsg .mact:hover, .amsg .mact:focus-visible { background: var(--bg); color: var(--ink); }
.amsg .mmenu { position: absolute; z-index: 5; right: 0; top: calc(100% - 4px); display: flex; flex-direction: column; min-width: 120px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; box-shadow: 0 16px 30px -18px rgba(17, 24, 20, .45); }
.amsg .mmenu button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; text-align: left; padding: 9px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.amsg .mmenu button:hover { background: var(--bg); }
.amsg .mmenu .danger { color: var(--danger, #B3392B); }
.amsg .edit-box { display: flex; flex-direction: column; gap: 6px; min-width: min(320px, 70vw); }
.amsg .edit-box textarea { font: inherit; font-size: 14.5px; border: 1.5px solid var(--green-2); border-radius: 12px; padding: 9px 11px; resize: vertical; }
.amsg .edit-acts { display: flex; justify-content: flex-end; gap: 6px; }
.amsg .edit-acts button { border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; background: var(--bg); color: var(--ink); }
.amsg .edit-acts .e-save { background: var(--green); color: #fff; }
.admin-log .amsg:last-child .mmenu, .chat-log .msg:last-child .mmenu { top: auto; bottom: calc(100% - 4px); }

/* ---------- 3.4: Saran & Kritik ---------- */
.fb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fb-form h2, .fb-list h2 { margin: 0 0 14px; font-size: 17px; }
.fb-kinds { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-kinds legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.fb-kind { position: relative; cursor: pointer; font-weight: 400; margin: 0; }
.fb-kind input { position: absolute; opacity: 0; pointer-events: none; }
.fb-kind-b { display: flex; gap: 10px; align-items: flex-start; height: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); transition: border-color .15s, background .15s; }
.fb-kind-b b { display: block; font-size: 14px; }
.fb-kind-b small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.fb-kind-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); }
.fb-kind-ic svg { width: 18px; height: 18px; }
.fb-kind-ic.k-perbaikan { background: #FCE4E1; color: #B3392B; }
.fb-kind-ic.k-kritik { background: #FFF1D6; color: #9A6412; }
.fb-kind-ic.k-lainnya { background: #EDF0EE; color: #4A5550; }
.fb-kind:hover .fb-kind-b { border-color: var(--line-strong); }
.fb-kind:has(input:checked) .fb-kind-b { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: #f4f7fa; }
.fb-kind:has(input:focus-visible) .fb-kind-b { outline: 3px solid #4f7aa3; outline-offset: 2px; }
.fb-form .btn { align-self: flex-start; }
.fb-chat { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.fb-chat a { font-weight: 700; color: var(--green); }
.fb-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 12px; border: 2px dashed var(--line); border-radius: 18px; }
.fb-empty > span { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; justify-content: center; }
.fb-empty p { margin: 0; max-width: 34ch; }
.fb-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.fb-item { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.fb-item.is-new { border-color: var(--green-2); box-shadow: 0 0 0 1px var(--green-2); }
.fb-item-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fb-chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); }
.fb-chip.k-perbaikan { background: #FCE4E1; color: #B3392B; }
.fb-chip.k-kritik { background: #FFF1D6; color: #8A5A10; }
.fb-chip.k-lainnya { background: #EDF0EE; color: #4A5550; }
.fb-new { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: #C9412F; color: #fff; }
.fb-title { font-size: 15px; }
.fb-text { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.fb-reply { margin-top: 6px; background: #f4f7fa; border-left: 3px solid var(--green-2); border-radius: 0 12px 12px 0; padding: 10px 12px; }
.fb-reply-h { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--green); }
.fb-reply-h svg { width: 15px; height: 15px; }
.fb-reply p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.pill-info { background: #E6EEFB; color: #24508F; }
.pill-bad { background: #FCE4E1; color: #A12A12; }
@media (max-width: 900px) {
  .fb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .fb-kinds { grid-template-columns: 1fr; }
}
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.fb-admin { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.fb-rows li { padding: 0; }
.fb-row { flex: 1; width: 100%; box-sizing: border-box; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.fb-row:hover, .fb-row.on { background: var(--bg); }
.fb-row > span:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; align-items: flex-start; }
.fb-row b { font-size: 14px; }
.fb-row small { color: var(--muted); font-size: 12.5px; }
.fb-body { background: var(--bg); border-radius: 14px; padding: 12px 14px; }
@media (max-width: 900px) { .fb-admin { grid-template-columns: 1fr; } }

/* 3.4.1: pilihan yang tidak tersedia di Paket Free */
.choice.is-off { cursor: not-allowed; }
.choice.is-off .choice-body { opacity: .62; background: var(--bg); }
.choice.is-off .choice-body small a { color: var(--green); font-weight: 700; }
.plan-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; }
.plan-note.full { border-color: #F1DFB8; background: #FFF9EE; }
.plan-note a { font-weight: 700; color: var(--green); }

/* ---------- 3.4.1: kartu Upgrade ke Pro dan halaman Paket Pro ---------- */
.k-pro { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 22px; text-decoration: none; color: #fff;
  background: radial-gradient(240px 160px at 100% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%), linear-gradient(150deg, #155896 0%, #0b345a 70%); box-shadow: 0 18px 36px -26px rgba(11, 90, 58, .9); }
.k-pro:hover { transform: translateY(-1px); }
.k-pro-top { display: flex; justify-content: space-between; align-items: center; }
.k-pro-ic { width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; }
.k-pro-ic svg { width: 19px; height: 19px; }
.k-pro-soon { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: #F2C94C; color: #3D2E00; }
.k-pro b { font-size: 17px; letter-spacing: -.01em; }
.k-pro-txt { font-size: 13px; line-height: 1.5; color: #d5e1ec; }
.k-pro-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 4px; padding: 10px; border-radius: 12px; background: #fff; color: var(--k-green, #0b345a); font-weight: 700; font-size: 13.5px; }
.k-pro-btn svg { width: 15px; height: 15px; }
.k-acct-menu .k-acct-pro svg { color: #B7791F; }
.pro-hero { display: flex; justify-content: space-between; gap: 18px; align-items: center; color: #fff; border-radius: 24px; padding: 26px 28px; margin-bottom: 18px;
  background: radial-gradient(420px 240px at 100% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%), linear-gradient(150deg, #155896 0%, #0b345a 70%); }
.pro-hero h2 { margin: 10px 0 6px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.02em; color: #fff; }
.pro-hero p { margin: 0; color: #d5e1ec; max-width: 60ch; line-height: 1.6; }
.pro-soon { display: inline-block; font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 99px; background: #F2C94C; color: #3D2E00; }
.pro-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.pro-acts form { margin: 0; }
.btn-white { background: #fff; color: var(--green); border-color: #fff; }
.btn-white:hover { background: var(--green-soft); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost-light:hover { border-color: #fff; }
.pro-done { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); padding: 10px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
.pro-done svg { width: 17px; height: 17px; }
.pro-hero-i { flex: none; width: 92px; height: 92px; border-radius: 28px; background: rgba(255, 255, 255, .12); display: inline-flex; align-items: center; justify-content: center; }
.pro-hero-i svg { width: 46px; height: 46px; }
.plan-table td:nth-child(2), .plan-table td:nth-child(3), .plan-table th:nth-child(2), .plan-table th:nth-child(3) { width: 26%; }
@media (max-width: 640px) { .pro-hero { padding: 20px; } .pro-hero-i { display: none; } .pro-acts .btn, .pro-acts form { width: 100%; } .pro-acts form .btn { width: 100%; } }
.pro-acts .btn-ghost-light, .pro-acts .btn-ghost-light:visited { color: #fff !important; }

/* ---------- 3.5.1: kartu Upgrade ringkas (Ringkasan dan Menu) saat panel samping tidak tampil ---------- */
.k-pro-m { position: relative; margin: 0 0 16px; }
.k-pro-m > a, .k-pro-menu { display: flex; align-items: center; gap: 12px; padding: 12px 48px 12px 12px; border-radius: 18px; text-decoration: none; color: #fff;
  background: radial-gradient(220px 120px at 100% 0%, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%), linear-gradient(150deg, #155896 0%, #0b345a 75%); box-shadow: 0 14px 28px -24px rgba(11, 90, 58, .9); }
.k-pro-m-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .16); display: inline-flex; align-items: center; justify-content: center; }
.k-pro-m-ic svg { width: 18px; height: 18px; }
.k-pro-m-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.k-pro-m-t b { font-size: 14.5px; }
.k-pro-m-t small { font-size: 12px; color: #d5e1ec; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-pro-m .k-pro-soon { flex: none; }
.k-pro-m-x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.k-pro-m-x:hover { background: rgba(255, 255, 255, .24); }
.k-pro-m-x svg { width: 16px; height: 16px; }
.k-pro-menu { margin: 0 0 12px; padding-right: 14px; }
.k-pro-menu > svg { flex: none; width: 16px; height: 16px; opacity: .85; }
@media (max-width: 380px) { .k-pro-m .k-pro-soon { display: none; } }
@media (min-width: 1500px) { .k-pro-m, .k-pro-menu { display: none; } }

/* ---------- 3.6.0: menu per modul (kotak berwarna), tab halaman, draf otomatis ---------- */
.k-mod-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--k-green, #0a2b4a); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.k-mod-ic svg { width: 20px; height: 20px; }
/* Popover modul (laptop/PC) */
.k-pop { position: fixed; z-index: 70; left: 100px; top: 88px; width: min(560px, calc(100vw - 130px)); max-height: calc(100vh - 104px); overflow: auto; background: #fff; border-radius: 22px; padding: 16px 18px 18px; box-shadow: 0 30px 70px -30px rgba(10, 40, 30, .55), 0 0 0 1px var(--line); }
.k-pop[hidden] { display: none; }
.k-pop-h { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--green-soft); }
.k-pop-h > div { flex: 1; min-width: 0; }
.k-pop-h h2 { margin: 0; font-size: 17px; }
.k-pop-h p { margin: 0; font-size: 13px; color: var(--muted); }
.k-pop-x { flex: none; border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 11px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.k-rail .k-ri.is-open { background: var(--k-soft); box-shadow: inset 0 0 0 2px var(--k-green, #0a2b4a); }
/* Lembar "Semua menu" di HP: modul berisi kotak */
.k-sm-home { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin: 4px 0 6px; border-radius: 14px; background: var(--k-soft); color: var(--ink); font-weight: 700; text-decoration: none; }
.k-sm-home.on { background: var(--k-green, #0a2b4a); color: #fff; }
.k-sm { padding: 10px 0 14px; border-top: 1px solid var(--line); }
.k-sm-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 15px; }
.k-sm-h .k-mod-ic { width: 30px; height: 30px; border-radius: 10px; }
.k-sm-h .k-mod-ic svg { width: 17px; height: 17px; }
.app-v2 .sidebar { flex-direction: column; }
/* Tab halaman yang sudah dibuka (laptop/PC) */
.k-ptabs { display: flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 6px; background: #fff; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.k-ptabs::-webkit-scrollbar { display: none; }
.k-ptabs[hidden] { display: none; }
.k-pt { flex: none; display: inline-flex; align-items: center; gap: 4px; max-width: 220px; padding: 7px 6px 7px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; background: var(--bg); }
.k-pt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-pt.pin { padding-right: 14px; }
.k-pt:hover { background: #e7eaec; color: var(--ink); }
.k-pt.on { background: var(--k-green, #0a2b4a); color: #fff; }
.k-pt-x { flex: none; border: 0; background: transparent; color: inherit; opacity: .6; font-size: 17px; line-height: 1; width: 24px; height: 24px; border-radius: 7px; cursor: pointer; padding: 0; font-family: inherit; }
.k-pt-x:hover { opacity: 1; background: rgba(0, 0, 0, .08); }
.k-pt.on .k-pt-x:hover { background: rgba(255, 255, 255, .2); }
/* Draf otomatis */
.draft-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #FFF9E8; border: 1px solid #F0D58C; color: #5C4306; border-radius: 12px; padding: 9px 12px; margin: 0 0 14px; font-size: 13.5px; }
.draft-note button { border: 0; background: transparent; color: var(--danger); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 900px) {
  .k-pop, .k-ptabs { display: none !important; }
}
.panel > .chip-row { margin: -4px 0 12px; }
/* Diskon di form penjualan */
.dgrp { display: flex; align-items: stretch; margin-top: 6px; }
.dgrp input { flex: 1; min-width: 0; margin: 0 !important; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.dgrp select { order: 2; flex: none; width: auto !important; min-width: 64px; margin: 0 !important; border-left: 0 !important; border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; background-color: var(--green-soft); font-weight: 700; color: var(--green); }
.item-row .disc-field { flex: 1 1 170px; }
.item-foot { display: flex; align-items: center; gap: 14px; margin-left: auto; padding: 6px 0; }
.item-foot [data-disc-open] { font-weight: 700; white-space: nowrap; }
.item-sub { min-width: 96px; text-align: right; white-space: nowrap; }
.sale-sum { margin: 16px 0 14px auto; max-width: 380px; background: var(--bg); border-radius: 14px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.sale-sum > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.sale-sum .minus b { color: var(--out); font-weight: 700; }
.sale-sum .sale-total { margin: 0; padding: 8px 0 0; border-top: 1.5px solid var(--line-strong); background: none; font-size: 16px; }
.sale-sum .sale-total b { font-size: 20px; font-weight: 800; }
.sale-sum.plain .sale-total { border-top: 0; padding-top: 0; }
.sum-warn { margin: 4px 0 0; background: #FDECE8; color: #8A2A1E; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.pill-retur { background: #FDECE8; color: #8A2A1E; }
.link-retur { color: var(--out); }
@media (max-width: 640px) {
  .item-foot { flex: 1 1 100%; padding: 0; }
  .item-foot .item-sub { margin-left: auto; min-width: 0; }
  .sale-sum { max-width: none; }
}
.sl-lbl { display: none; }
/* Riwayat penjualan jadi kartu di HP supaya tombol Nota, Retur, dan Batalkan langsung terlihat */
@media (max-width: 640px) {
  .sale-list thead { display: none; }
  .sale-list, .sale-list tbody, .sale-list tr, .sale-list td { display: block; width: 100%; }
  .sale-list tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #eaecee; }
  .sale-list td { border: 0; padding: 0 !important; width: auto; }
  .sale-list .sl-date { grid-column: 1; grid-row: 1; }
  .sale-list .sl-total { grid-column: 2; grid-row: 1; text-align: right; font-weight: 800; }
  .sale-list .sl-items { grid-column: 1 / -1; font-size: 14px; }
  .sale-list .sl-ch { grid-column: 1; font-size: 13.5px; }
  .sale-list .sl-laba { grid-column: 2; text-align: right; font-size: 13.5px; }
  .sale-list .sl-lbl { display: inline; font-weight: 500; color: var(--muted); }
  .sale-list td.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 6px !important; white-space: normal; }
  .sale-list td.actions details.void { flex-basis: 100%; }
  .sale-list td.actions details.void:not([open]) { flex-basis: auto; }
}
@media (max-width: 640px) { .sale-list td.actions details.void[open] { position: static; left: auto; right: auto; min-width: 0; width: 100%; box-shadow: none; } }
/* Retur */
.rt { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.rt-h, .rt-r { display: grid; grid-template-columns: minmax(0, 2.2fr) .7fr 1.2fr 1fr 1.1fr; gap: 10px; align-items: center; padding: 10px 14px; }
.rt-h { background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rt-r { border-top: 1px solid #eaecee; font-size: 14.5px; }
.rt-r .n { font-weight: 600; display: flex; flex-direction: column; min-width: 0; }
.rt-r .n small { font-weight: 500; color: var(--muted); font-size: 12px; }
.rt-r input { width: 80px; text-align: center; margin: 0; padding: 8px; }
.seg-legend { font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; width: 100%; }
.rt-sum { max-width: 320px; }
.rt-effect { background: var(--bg); border-radius: 14px; padding: 14px 16px; margin: 4px 0 16px; font-size: 14px; }
.rt-effect ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.rt-items { display: block; }
.rt-search { margin-bottom: 8px; }
.rt-search .grow { flex: 1; }
@media (max-width: 640px) {
  .rt-h { display: none; }
  .rt-r { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .rt-r .n { grid-column: 1 / -1; }
  .rt-r [data-l]::before { content: attr(data-l) ' '; color: var(--muted); font-size: 12.5px; }
  .rt-r > span:nth-child(2) { text-align: left; }
  .rt-r > span:nth-child(3) { text-align: right; }
  .rt-r .rt-q { text-align: left; display: flex; align-items: center; gap: 8px; }
  .rt-r > span:last-child { align-self: center; font-size: 15px; }
  .rt-sum { max-width: none; }
}
/* ---------- 3.6.0: nota dengan diskon & retur, faktur A4 ---------- */
.nota-disc td { color: #555; font-size: .94em; }
.nota-line { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.nota-items + .nota-line { padding-top: 8px; }
.nota-save { text-align: center; font-size: 12.5px; background: #f0f2f3; border-radius: 6px; padding: 4px; margin: 0 0 8px; }
.nota-ret { border-top: 1px dashed #999; padding-top: 8px; margin-top: 4px; color: #8A2A1E; }
.nota-ret > b { display: block; margin-bottom: 2px; }
.nota-ret .nota-total { color: #111; }
.nota-seg { display: inline-flex; gap: 4px; background: #fff; border-radius: 999px; padding: 4px; }
.nota-seg a { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.nota-seg a.on { background: var(--ink); color: #fff; }
.nota-pay { max-width: 760px; margin: 0 auto 14px; background: #fff; border: 1.5px solid #cfd9e3; border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.nota-pay[hidden] { display: none; }
.nota-pay-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 8px; }
.nota-pay-f label { flex: 1 1 180px; }
.nota-rets { max-width: 760px; margin: 18px auto 0; background: #fff; border-radius: 14px; padding: 14px 16px; }
.nota-rets h2 { font-size: 15px; margin: 0 0 8px; }
.nota-rets ul { list-style: none; margin: 0; padding: 0; }
.nota-rets li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid #eaecee; font-size: 14px; }
.nota-rets li small { display: block; color: var(--muted); }
.nota-rets form { margin: 0; flex: none; }
.faktur { page: a4; position: relative; background: #fff; max-width: 794px; margin: 0 auto; padding: 44px 48px 30px; border-radius: 6px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .45); color: #1d2124; font-size: 13.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.fk-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 3px solid var(--green); }
.fk-shop { display: flex; gap: 14px; align-items: center; }
.fk-shop > div { display: flex; flex-direction: column; }
.fk-shop b { font-size: 18px; }
.fk-shop span { color: #5a645f; font-size: 12.5px; }
.fk-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--green); color: #fff; font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fk-title { text-align: right; }
.fk-title h1 { margin: 0; font-size: 26px; letter-spacing: .12em; color: var(--green); }
.fk-info { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; flex-wrap: wrap; }
.fk-to { display: flex; flex-direction: column; }
.fk-info small { color: #6b746f; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; }
.fk-to b { font-size: 15px; }
.fk-to span { color: #4a5550; }
.fk-dates { display: flex; gap: 22px; flex-wrap: wrap; }
.fk-dates span { display: flex; flex-direction: column; }
.fk-late { color: var(--warn-ink); }
.fk-table-wrap { overflow-x: auto; }
.fk-table { width: 100%; border-collapse: collapse; }
.fk-table th { background: #f1f3f4; text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #4f5a55; padding: 9px 10px; }
.fk-table td { padding: 9px 10px; border-bottom: 1px solid #eaecee; vertical-align: top; }
.fk-table .r, .fk-table th.r { text-align: right; white-space: nowrap; }
.fk-table small { color: #5a645f; }
.fk-ret td { color: #8A2A1E; font-style: italic; }
.fk-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.fk-left { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.fk-bank { display: flex; flex-direction: column; background: #f6f7f8; border-radius: 10px; padding: 12px 14px; min-width: 220px; }
.fk-bank small { color: #6b746f; font-size: 11.5px; }
.fk-stamp { margin-left: 20px; transform: rotate(-8deg); border: 3px solid; font-weight: 800; letter-spacing: .14em; padding: 6px 14px; border-radius: 8px; opacity: .6; font-size: 16px; }
.fk-stamp.due { color: #C2611A; } .fk-stamp.ok { color: #00519c; } .fk-stamp.void { color: #A12A12; }
.fk-sum { min-width: 270px; display: flex; flex-direction: column; gap: 4px; }
.fk-sum > div { display: flex; justify-content: space-between; gap: 16px; }
.fk-total { border-top: 1.5px solid #1d2124; padding-top: 6px; margin-top: 2px; font-size: 15px; }
.fk-sisa { background: #FFF3E0; color: var(--warn-ink); border-radius: 8px; padding: 6px 10px; margin-top: 4px; font-size: 15px; }
.fk-sisa.ok { background: var(--green-soft); color: var(--green); }
.fk-hist { margin-top: 22px; }
.fk-sm { margin-top: 8px; font-size: 13px; }
.fk-note { margin: 18px 0 0; color: #5a645f; font-size: 12.5px; }
.fk-sign { display: flex; justify-content: space-between; gap: 30px; margin-top: 34px; }
.fk-sign > div { display: flex; flex-direction: column; align-items: center; min-width: 170px; }
.fk-sign small { color: #6b746f; }
.fk-line { height: 58px; }
.fk-by { text-align: center; color: #8a948f; font-size: 11.5px; margin: 26px 0 0; }
.is-a4 .nota-bar, .is-a4 .nota-hint, .is-a4 .alert { max-width: 794px; }
@page a4 { size: A4; margin: 12mm; }
@media print {
  .faktur { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .fk-table th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) {
  .nota-bar { flex-direction: column; align-items: stretch; }
  .nota-seg { align-self: flex-start; }
  .nota-actions .btn { flex: 1 1 auto; justify-content: center; }
  .faktur { padding: 22px 16px 20px; font-size: 13px; border-radius: 12px; }
  .fk-head { flex-direction: column; gap: 10px; }
  .fk-title { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .fk-title h1 { font-size: 20px; }
  .fk-dates { gap: 14px; }
  .fk-table th, .fk-table td { padding: 8px 6px; }
  .fk-table .fk-no { display: none; }
  .fk-sum, .fk-bank, .fk-left { min-width: 0; width: 100%; }
  .fk-sign > div { min-width: 0; }
  .nota-rets li { flex-direction: column; align-items: flex-start; }
}
.pl-break { max-width: 420px; display: flex; flex-direction: column; margin: 0 0 14px; }
.pl-break > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.pl-break .minus { color: var(--muted); }
.pl-break .minus b { color: var(--out); font-weight: 600; }
.pl-break .sub { border-top: 1px solid var(--line); font-weight: 700; }

/* Isi modul: tombol aksi cepat + daftar menu berketerangan (gaya Kasnera sendiri) */
.km-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.km-act { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px 0 7px; border-radius: 999px; background: var(--k-green, #0a2b4a); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.km-act:hover { color: #fff; box-shadow: 0 8px 18px -10px rgba(10, 74, 51, .7); }
.km-act i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; }
.km-act i svg { width: 16px; height: 16px; }
.km-act + .km-act { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.km-act + .km-act i { background: var(--k-soft); color: var(--k-green, #0a2b4a); }
.km-act + .km-act:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--k-green, #0a2b4a); }
.km-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; }
.km-it { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.km-it:hover { background: var(--k-soft); color: var(--ink); }
.km-it:focus-visible, .km-act:focus-visible { outline: 3px solid var(--k-green, #0a2b4a); outline-offset: 2px; }
.km-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--k-soft); color: var(--k-green, #0a2b4a); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.km-ic svg { width: 19px; height: 19px; }
.km-t { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.km-t b { font-size: 14px; }
.km-t small { color: var(--muted); font-size: 12.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.km-go { color: #A7B0AB; font-size: 20px; line-height: 1; flex: none; }
.km-n { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--k-red, #D64545); color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }
.k-pop { width: min(660px, calc(100vw - 130px)); }
.k-sm .km-list { grid-template-columns: 1fr; gap: 0; }
.k-sm .km-it { padding: 8px 6px; }
.k-sm .km-acts { display: grid; grid-template-columns: 1fr 1fr; }
.k-sm .km-act { justify-content: flex-start; padding-right: 10px; font-size: 13.5px; white-space: normal; line-height: 1.2; }
.fk-shop .fk-logo { color: #fff; font-size: 18px; }
/* Daftar transaksi jadi kartu di HP */
@media (max-width: 640px) {
  .trx-list thead { display: none; }
  .trx-list, .trx-list tbody, .trx-list tr, .trx-list td { display: block; width: 100%; }
  .trx-list tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid #eaecee; }
  .trx-list td { border: 0; padding: 0 !important; width: auto; min-width: 0 !important; }
  .trx-list td:nth-child(2) { grid-column: 1; grid-row: 1; }
  .trx-list td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .trx-list td:nth-child(1) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--muted); }
  .trx-list td:nth-child(3) { grid-column: 1; grid-row: 3; font-size: 12.5px; color: var(--muted); }
  .trx-list td:nth-child(5) { grid-column: 2; grid-row: 2 / span 2; text-align: right; align-self: start; }
  .trx-list td.actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 6px !important; white-space: normal; position: static; }
  .trx-list td.actions details.void[open] { position: static; left: auto; right: auto; min-width: 0; width: 100%; box-shadow: none; flex-basis: 100%; }
}
.staf-perm { margin: 2px 0 0; }
.staf-akses { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.staf-akses .check { align-items: flex-start; }
.chg-opts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chg-rows { display: flex; flex-direction: column; gap: 6px; }
.chg-rows:empty { display: none; }
.chg-rows > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.chg-rows b { font-weight: 700; }
.set-row { border-top: 1px solid var(--line); padding: 10px 0; }
.set-row > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.set-row > summary::-webkit-details-marker { display: none; }
.set-row > summary > span:first-child { display: flex; flex-direction: column; }
.set-row.add > summary { color: var(--green); }
.set-row[open] { padding-bottom: 14px; }
.set-form { margin: 12px 0 8px; }
