/* style.css — mobile-first, sidebar di layar lebar, bottom-nav di HP. */
:root {
  /* TEMA D (2026-09-20, keputusan user): krem hangat + hijau tua, se-tema dengan vaynera.id & hub.vaynera.id.
     Tata letak tidak berubah — hanya warna & huruf. Angka uang tetap font sistem (lebih tegas), judul memakai Fraunces. */
  --bg: #f6f4ee; --card: #fff; --ink: #1b1a17; --muted: #6b6760; --line: #e4e0d6;
  --pri: #1b1a17; --pri-ink: #f6f4ee; --acc: #1f5a4b; --acc-soft: #e3efe9; --ok: #1f5a4b; --err: #a83a2a; --warn: #8a5a14;
  --sale: #e3efe9; --sale-ink: #1f5a4b; --buy: #e6e9ee; --buy-ink: #2f4858; --move: #f3ead6; --move-ink: #8a5a14;
  --ret: #f2e1dc; --ret-ink: #8a3a2a; --adj: #ece6f2; --adj-ink: #5b4a7a;
  --font: 'Instrument Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-num: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-head: 'Fraunces', Georgia, serif;
  --side: 260px; --top: 52px; --bottom: 58px; --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-tap-highlight-color: transparent; }
a { color: var(--acc); text-decoration: none; }
/* judul halaman & sub-judul: huruf yang sama dengan menu/isi (tema E, 2026-09-20) — Fraunces hanya di halaman depan */
h1.page-title { font-weight: 700; font-size: 24px; letter-spacing: -.01em; margin: 0 0 12px; }
h2 { font-weight: 700; font-size: 17px; margin: 18px 0 8px; }
h3 { font-size: 15px; margin: 12px 0 6px; }
p { margin: 6px 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.muted { color: var(--muted); } .small { font-size: 12.5px; } .center { text-align: center; padding: 14px; }
.neg { color: var(--err); } .pos { color: var(--ok); } .nowrap { white-space: nowrap; }
.link { font-weight: normal; font-size: 13px; margin-left: 8px; }
.hidden { display: none !important; }

/* layout */
#app { min-height: 100vh; }
.top { position: fixed; top: 0; left: 0; right: 0; height: var(--top); background: var(--pri); color: var(--pri-ink); display: flex; align-items: center; gap: 12px; padding: 0 14px; z-index: 20; }
.top .brand { font-weight: 800; letter-spacing: .5px; cursor: pointer; white-space: nowrap; }
.top .brand .muted { color: #9a958a; font-weight: 400; }
/* lebar select ikut ISI (bukan width:100% dari aturan form umum) — nama akun di kanan tidak boleh tertutup */
.top .biz { background: #2e2c28; color: #f6f4ee; border: 0; border-radius: 6px; padding: 5px 8px; font-size: 13px; width: auto; min-width: 120px; max-width: 260px; min-height: 30px; margin-top: 0; flex: 0 1 auto; }
.top .btn-add { background: #2e2c28; color: #f6f4ee; border: 0; border-radius: 6px; width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; }
.top .btn-add:hover { background: var(--acc); }
.row .btn.small { margin-top: 3px; min-height: 38px; }
.top .who { margin-left: auto; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 160px; max-width: 420px; text-align: right; }
.top .btn-lang svg { width: 14px; height: 14px; vertical-align: -2px; }
.top .who .muted { color: #9a958a; }
.side { display: none; }
main { padding: calc(var(--top) + 12px) 12px calc(var(--bottom) + 16px); max-width: 1100px; }
.bottom { position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottom); background: var(--card); border-top: 1px solid var(--line); display: flex; z-index: 20; padding-bottom: env(safe-area-inset-bottom); }
.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); gap: 2px; }
.bottom a span { font-size: 20px; line-height: 1; }
.bottom a.on { color: var(--acc); font-weight: 600; }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; position: fixed; top: var(--top); left: 0; bottom: 0; width: var(--side); background: var(--card); border-right: 1px solid var(--line); padding: 16px 16px; overflow-y: auto; }
  .side a { padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: 14px; }
  .side .menu-group ~ a { padding: 9px 14px 9px 26px; }   /* menu di bawah judul kategori menjorok; Beranda (sebelum kategori pertama) tidak */
  .side a:hover { background: var(--bg); } .side a.on { background: var(--acc-soft); color: var(--acc); font-weight: 600; }
  .side .menu-group { margin: 16px 4px 6px; padding: 12px 10px 0; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--ink); }
  /* isi halaman DITENGAHKAN di ruang sebelah kanan sidebar (bukan menempel kiri), lebar maks 1500px (pilihan user 2026-09-20; sebelumnya 1100) */
  main { margin-left: var(--side); max-width: none; padding: calc(var(--top) + 20px) 36px 30px; }
  main > .page-title, main > #view, main > .demo-bar { max-width: 1500px; margin-left: auto; margin-right: auto; }
  .bottom { display: none; }
}

/* cards, tiles, lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.card.err { border-color: var(--err); color: var(--err); } .card.warn { border-color: var(--warn); background: #fffbeb; } .card.ok { border-color: var(--ok); background: #f0fdf4; }
.card.warn ul { margin: 6px 0 0 18px; }
.scroll { overflow-x: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.tiles.small { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.tile .k { font-size: 12px; color: var(--muted); } .tile .v { font-family: var(--font-num); font-size: 20px; font-weight: 700; margin-top: 2px; } .tile .s { font-size: 12px; color: var(--muted); }
.tiles.small .tile .v { font-size: 17px; }
.list .li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list .li:last-child { border-bottom: 0; } .list .li:hover { background: #faf8f3; }
.li-main { flex: 1; min-width: 0; } .li-main > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-right { text-align: right; white-space: nowrap; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-sale { background: var(--sale); color: var(--sale-ink); } .tag-buy { background: var(--buy); color: var(--buy-ink); }
.tag-move { background: var(--move); color: var(--move-ink); } .tag-ret { background: var(--ret); color: var(--ret-ink); }
.tag-adj { background: var(--adj); color: var(--adj-ink); } .tag-void { background: #e9e5db; color: #4a4741; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.quick .q { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: var(--radius); font-size: 22px; color: var(--ink); }
.quick .q b { font-size: 12px; }
.q.sale { background: var(--sale); } .q.buy { background: var(--buy); } .q.move { background: var(--move); } .q.ret { background: var(--ret); }
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.menu-grid a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; background: var(--bg); border-radius: var(--radius); color: var(--ink); font-size: 13px; text-align: center; }
.menu-grid a span { font-size: 24px; }

/* forms */
.form label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.form label.chk, label.chk { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; }
input, select, textarea, button { font: inherit; }
input:not([type=checkbox]), select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; background: #fff; color: var(--ink); margin-top: 3px; min-height: 38px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bcd6cc; border-color: var(--acc); }
textarea { font-family: ui-monospace, monospace; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 10px; }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.row { display: flex; gap: 6px; align-items: center; } .row > input, .row > select { flex: 1; }
.row-btn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn { border: 1px solid #d1d5db; background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; cursor: pointer; min-height: 38px; }
.btn:hover { background: #faf8f3; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #fff; } .btn.primary:hover { background: #174538; }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.small { padding: 4px 9px; min-height: 30px; font-size: 13px; } .btn.big { padding: 12px 22px; font-size: 16px; font-weight: 700; }
.btn.wide { width: 100%; }
.btn-x { border: 0; background: transparent; color: var(--muted); font-size: 16px; cursor: pointer; padding: 4px 8px; }
.err-text { color: var(--err); font-size: 13px; margin-top: 8px; min-height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { border: 1px solid #d1d5db; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--pri); color: #fff; border-color: var(--pri); }
.range-custom { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.range-custom input { width: auto; }
.range-label { margin-bottom: 8px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.tbl .r { text-align: right; } .tbl tfoot th { color: var(--ink); font-size: 14px; }
.tbl tr[data-p], .tbl tr[data-trx] { cursor: pointer; } .tbl tr[data-p]:hover { background: #faf8f3; }
.tbl.sticky th:first-child, .tbl.sticky td:first-child { position: sticky; left: 0; background: var(--card); }
.tbl.lines input.n { width: 74px; text-align: right; padding: 5px 6px; min-height: 32px; margin: 0; }
.tbl.lines input.money { width: 100px; }
/* baris transaksi di HP / layar sempit: tabel → kartu bertumpuk */
@media (max-width: 860px) {
  .tbl.lines thead { display: none; }
  .tbl.lines, .tbl.lines tbody { display: block; }
  .tbl.lines tr { display: grid; grid-template-columns: 1fr 1fr auto; grid-template-areas: "barang barang del" "stok qty sub" "list harga diskon" "selisih selisih selisih"; gap: 6px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }
  .tbl.lines td.c-list { grid-area: list; } .tbl.lines td.c-selisih { grid-area: selisih; }
  .tbl.lines td.c-selisih::before { display: inline; margin-right: 6px; }
  .tbl.lines td { display: block; border: 0; padding: 0; text-align: left; }
  .tbl.lines td.c-barang { grid-area: barang; } .tbl.lines td.c-del { grid-area: del; }
  .tbl.lines td.c-stok { grid-area: stok; } .tbl.lines td.c-qty { grid-area: qty; } .tbl.lines td.c-sub { grid-area: sub; text-align: right; }
  .tbl.lines td.c-harga { grid-area: harga; } .tbl.lines td.c-diskon { grid-area: diskon; }
  .tbl.lines td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  .tbl.lines input.n, .tbl.lines input.money { width: 100%; }
  .qty input { width: 56px !important; }
  .top .who { display: none; } .top .biz { max-width: 140px; }
}
.qty { display: inline-flex; align-items: center; gap: 2px; }
.qty button { width: 30px; height: 32px; border: 1px solid #d1d5db; background: #fff; border-radius: 6px; cursor: pointer; font-size: 16px; }
.qty input { width: 54px !important; }

/* kasir */
.picker { position: relative; }
.picker-in { font-size: 16px; padding: 11px 12px; }
.picker-dd { position: absolute; left: 0; right: 0; top: 100%; z-index: 15; background: #fff; border: 1px solid #d1d5db; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.pk { padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.pk:last-child { border-bottom: 0; } .pk.on, .pk:hover { background: var(--acc-soft); }
.total-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.big { font-family: var(--font-num); font-size: 22px; font-weight: 800; }
.total-box { text-align: right; margin: 8px 0; } .total-box > div { padding: 2px 0; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 12px; margin-bottom: 10px; font-size: 14px; }
.kv > div > span { color: var(--muted); font-size: 12px; display: block; }

/* modal & toast */
.modal-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; display: flex; flex-direction: column; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 14px 16px; overflow-y: auto; }
@media (min-width: 700px) {
  .modal-wrap { align-items: center; }
  .modal { width: 520px; border-radius: 14px; } .modal.wide { width: 820px; max-width: 95vw; }
}
#toasts { position: fixed; top: calc(var(--top) + 8px); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--pri); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 14px; opacity: 0; transform: translateY(-6px); transition: .25s; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: none; } .toast.err { background: var(--err); } .toast.ok { background: var(--ok); }

/* login */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login .card { width: 100%; max-width: 360px; padding: 24px; }
.login h1 { margin: 0; letter-spacing: 1px; }

/* chart */
.chart { width: 100%; height: 150px; display: block; }
.chart rect { fill: var(--acc); } .chart text { font-size: 10px; fill: var(--muted); }

/* gambar produk */
.thumb { border-radius: 8px; object-fit: cover; flex: none; background: #e5e7eb; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.thumb-empty { color: #6b7280; font-weight: 700; letter-spacing: .5px; }
.pk { display: flex; align-items: center; gap: 10px; } .pk-main { min-width: 0; flex: 1; }
.img-row { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; }
.img-row .thumb { border-radius: 12px; }
/* header: bahasa */
.top .btn-lang { background: transparent; color: #cfcabf; border: 1px solid #4a4741; border-radius: 6px; padding: 4px 8px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.top .btn-lang:hover { color: #fff; border-color: #9a958a; }
/* pengeluaran & kas */
.q.exp { background: #f2e1dc; } .tag-exp { background: #f2e1dc; color: #8a3a2a; }
.tile.on { outline: 2px solid var(--acc); }
.quick { grid-template-columns: repeat(5, 1fr); }

/* pemilih tanggal sendiri */
input.dt { cursor: pointer; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h1v1h8V1h1v1h1.5A1.5 1.5 0 0 1 16 3.5v10A1.5 1.5 0 0 1 14.5 15h-13A1.5 1.5 0 0 1 0 13.5v-10A1.5 1.5 0 0 1 1.5 2H3zM1 5v8.5a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5V5z'/%3E%3C/svg%3E") no-repeat right 10px center; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.dp-dow { font-size: 11px; color: var(--muted); padding: 4px 0; }
.dp-day { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 8px 0; cursor: pointer; font-size: 15px; }
.dp-day:hover { background: var(--bg); } .dp-day.today { border-color: var(--acc); } .dp-day.on { background: var(--acc); color: #fff; font-weight: 700; }
.dp-time { display: flex; align-items: center; gap: 6px; margin: 12px 0 4px; } .dp-time span { color: var(--muted); font-size: 13px; margin-right: 4px; }
.dp-time select { width: auto; margin: 0; }

/* riwayat pembelian pembeli (retur / ongkir), tombol OK-Hapus qty, biaya bulanan */
.grid-span { grid-column: 1 / -1; margin-bottom: 8px; }
.list.hist { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; margin-top: 4px; }
.list.hist .li.on { background: var(--acc-soft); outline: 2px solid var(--acc); border-radius: 8px; }
.qty { flex-wrap: nowrap; } .tbl.lines td.c-qty { white-space: nowrap; }
.qty .btn.small { min-height: 32px; padding: 4px 8px; margin-left: 4px; white-space: nowrap; }

/* kelompok menu */
.menu-group { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); padding: 14px 16px 4px; }
.menu-grid .menu-group { grid-column: 1 / -1; padding: 8px 4px 0; }

.tbl.lines td.c-note input { min-width: 160px; margin: 0; }
@media (max-width: 860px) { .tbl.lines tr { grid-template-areas: "barang barang del" "stok qty sub" "list harga diskon" "selisih selisih selisih" "note note note"; } .tbl.lines td.c-note { grid-area: note; } }

/* ===== CETAK: pratinjau di modal + halaman cetak (#print-area) ===== */
.pv-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.pv-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; }
.pv-wrap { background: #d9dad6; padding: 14px; overflow: auto; max-height: 62vh; border-radius: 8px; }
.pv-paper { background: #fff; color: #151614; margin: 0 auto; box-shadow: 0 1px 2px rgba(0,0,0,.18), 0 10px 26px rgba(0,0,0,.14); }
.pv-paper.pa4 { width: 794px; min-height: 400px; padding: 40px 44px; }
.pv-paper.pland { width: 1123px; min-height: 300px; padding: 36px 44px; }
.pv-paper.pa5 { width: 559px; min-height: 300px; padding: 28px 30px; font-size: 12.5px; }
.pv-paper.pt80 { width: 302px; padding: 14px 12px; }
.pv-paper.pt58 { width: 219px; padding: 10px 8px; }
#print-area { display: none; }

/* dokumen (dipakai pratinjau DAN cetak) */
.p-doc { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; line-height: 1.4; color: #151614; font-variant-numeric: tabular-nums; page-break-after: always; break-after: page; position: relative; }
.p-doc:last-child { page-break-after: auto; break-after: auto; }
.p-doc .mono { font-family: ui-monospace, Consolas, monospace; }
.p-mute { color: #6a6c66; } .p-small { font-size: 11.5px; }
.p-kop { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid #151614; }
.p-usaha { font-size: 20px; font-weight: 800; letter-spacing: .06em; } .p-toko { color: #6a6c66; margin-top: 2px; }
.p-jenis { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: #6a6c66; text-align: right; }
.p-nota { font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; text-align: right; }
.p-tgl { font-size: 12px; color: #6a6c66; text-align: right; margin-top: 2px; }
.p-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid #c9cbc4; }
.p-meta > div { display: flex; flex-direction: column; } .p-meta b { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #6a6c66; font-weight: 600; }
.p-meta .p-void span { color: #b3261e; font-weight: 700; }
.p-tbl { width: 100%; border-collapse: collapse; margin-top: 10px; }
.p-tbl th, .p-tbl td { padding: 5px 7px; text-align: left; vertical-align: top; border-bottom: 1px solid #edeeea; }
.p-tbl th { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #6a6c66; border-bottom: 1.5px solid #151614; font-weight: 600; white-space: nowrap; }
.p-tbl .r { text-align: right; } .p-tbl .c { text-align: center; } .p-tbl .n { width: 30px; }
.p-tbl tr.tot td { font-weight: 700; border-top: 1.5px solid #151614; border-bottom: 0; }
.p-tbl.p-small { font-size: 11.5px; } .p-tbl.p-small th, .p-tbl.p-small td { padding: 4px 6px; }
.p-kaki { display: flex; justify-content: space-between; gap: 24px; margin-top: 6px; }
.p-cat { flex: 1; font-size: 12px; color: #6a6c66; } .p-cat b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 2px; }
.p-sum { width: 270px; border-collapse: collapse; } .p-sum td { padding: 3px 7px; } .p-sum .r { text-align: right; }
.p-sum tr.tot td { border-top: 1.5px solid #151614; font-weight: 700; font-size: 14px; padding-top: 6px; } .p-sum tr.bayar td { color: #6a6c66; font-size: 12px; }
.p-ttd { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.p-ttd div { border-top: 1px solid #c9cbc4; padding-top: 5px; font-size: 11px; color: #6a6c66; text-align: center; } .p-ttd div span { display: block; height: 40px; }
.p-ttd div.p-ttd-empty { visibility: hidden; }
.p-cetak { margin-top: 26px; padding-top: 6px; border-top: 1px solid #c9cbc4; font-size: 10.5px; color: #6a6c66; display: flex; justify-content: space-between; gap: 10px; }
.p-stempel::after { content: "DIBATALKAN"; position: absolute; right: 8px; top: 70px; transform: rotate(-12deg); border: 3px solid #b3261e; color: #b3261e; font-weight: 800; letter-spacing: .2em; padding: 5px 12px; font-size: 17px; opacity: .85; }
.p-bukti .p-kaki { margin-top: 14px; } .p-bukti .p-ttd { margin-top: 34px; }
.pa5 .p-usaha, .pt80 .p-usaha { font-size: 16px; } .pa5 .p-nota { font-size: 14px; } .pa5 .p-meta { grid-template-columns: repeat(2, 1fr); }
/* laporan */
.p-lapkop { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 10px; border-bottom: 2px solid #151614; }
.p-lapkop h2 { margin: 0; font-size: 18px; } .p-lapkop .p-usaha, .p-lapkop .p-toko { text-align: right; }
.p-lapmeta { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 8px 0 12px; font-size: 11.5px; color: #6a6c66; } .p-lapmeta b { color: #151614; font-weight: 500; }
.p-ringkas { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #c9cbc4; margin-bottom: 12px; }
.p-ringkas > div { padding: 7px 12px; border-right: 1px solid #c9cbc4; } .p-ringkas > div:last-child { border-right: 0; } .p-ringkas > div:nth-child(4n) { border-right: 0; } .p-ringkas > div:nth-child(n+5) { border-top: 1px solid #c9cbc4; }
.p-ringkas b { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: #6a6c66; font-weight: 600; } .p-ringkas span { font-family: ui-monospace, Consolas, monospace; font-size: 15px; font-weight: 700; }
.p-lap h3 { margin: 14px 0 4px; font-size: 13px; }
/* struk */
.s-doc { font-family: ui-monospace, "Courier New", monospace; font-size: 11.5px; line-height: 1.35; }
.s-doc.s-58 { font-size: 10px; line-height: 1.3; }
.s-kop { text-align: center; border-bottom: 1px dashed #151614; padding-bottom: 5px; margin-bottom: 5px; } .s-kop b { display: block; font-size: 14px; letter-spacing: .1em; } .s-58 .s-kop b { font-size: 12px; }
.s-row { display: flex; justify-content: space-between; gap: 8px; } .s-row span:last-child { white-space: nowrap; }
.s-sep { border-top: 1px dashed #151614; margin: 5px 0; } .s-item { margin: 3px 0; } .s-item .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tot { font-weight: 700; font-size: 13px; } .s-58 .s-tot { font-size: 11px; }
.s-foot { text-align: center; margin-top: 7px; } .s-mini { font-size: 9.5px; } .s-note { margin-top: 4px; font-style: italic; }
.s-void { text-align: center; font-weight: 700; margin: 4px 0; }

@media print {
  body > *:not(#print-area) { display: none !important; }
  #print-area { display: block !important; }
  html, body { background: #fff !important; }
  #print-area.pt80, #print-area.pt58 { width: auto; }
  .p-doc { color: #000; }
}
/* riwayat: kotak centang untuk cetak beberapa nota */
.list .li-sel { display: flex; align-items: center; gap: 4px; }
.list .li-sel > input.sel { width: 20px; height: 20px; margin: 0 4px 0 2px; flex: none; }
.list .li-sel > .li { flex: 1; min-width: 0; }

/* penjualan online */
.tag-online { background: #e0f2fe; color: #0369a1; }
.p-stempel.p-rev::after { content: "DIREVISI"; }

/* Master Produk: judul kolom yang bisa diurutkan + navigasi halaman */
.tbl th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.tbl th.sortable:hover { color: var(--accent, #2563eb); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 4px 4px 12px; }
.pager select { width: auto; padding: 3px 6px; font-size: 12.5px; }

/* ===== HALAMAN DEPAN hub.vaynera.id (views/landing.js) — tema D; tidak menyentuh tampilan sesudah login ===== */
.ld { max-width: 1248px; margin: 0 auto; padding: 0 20px 40px; }
.ld-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ld-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.ld-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--acc); color: #f6f4ee; display: inline-flex; align-items: center; justify-content: center; } .ld-mark svg { width: 16px; height: 16px; }
.ld-by { font-family: var(--font); font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 2px; }
.ld-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; } .ld-nav a { color: var(--ink); }
.ld-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 8px; border: 1px solid #c9c4b7; color: var(--ink); font-size: 15px; font-weight: 600; background: transparent; cursor: pointer; font-family: inherit; }
.ld-btn.dark { background: var(--ink); border-color: var(--ink); color: #f6f4ee; height: 42px; padding: 0 20px; }
.ld-btn.green { background: var(--acc); border-color: var(--acc); color: #f6f4ee; }
.ld-btn.light { background: #f6f4ee; border-color: #f6f4ee; color: var(--ink); }
.ld-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; padding: 64px 0 40px; }
.ld-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); margin-bottom: 18px; }
.ld-hero h1 { font-family: var(--font-head); font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 20px; }
.ld-hero p { font-size: 18px; line-height: 1.6; color: #4a4741; margin: 0 0 24px; max-width: 620px; }
.ld-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.ld-login { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 24px 60px rgba(27,26,23,.06); }
.ld-login h2 { margin: 0 0 4px; font-family: var(--font-head); font-weight: 600; font-size: 26px; } .ld-login form { margin-top: 10px; } .ld-login .btn.primary { margin-top: 4px; min-height: 46px; }
.ld-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--muted); font-size: 12px; } .ld-or::before, .ld-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ld-shotbox { position: relative; overflow: hidden; border: 1px solid #ddd8cc; border-radius: 14px; background: var(--bg); box-shadow: 0 24px 60px rgba(27,26,23,.08); }
.ld-shot { width: 1280px; height: 760px; position: absolute; top: 0; left: 0; transform-origin: top left; pointer-events: none; overflow: hidden; }
.ld-shot .top { position: absolute; }            /* di dalam kotak pratinjau, bar & sidebar menempel ke kotaknya, bukan ke layar */
.ld-shot .side { display: flex; position: absolute; overflow: hidden; }
.ld-shot main { margin-left: var(--side); padding: calc(var(--top) + 20px) 36px 30px; max-width: none; }
.ld-caption { text-align: center; font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.ld-sec { padding: 72px 0 0; }
.ld-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; margin-bottom: 28px; }
.ld-sechead h2 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 34px; letter-spacing: -.01em; }
.ld-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ld-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ld-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.ld-card b { font-size: 17px; } .ld-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #4a4741; }
.ld-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: #4a4741; }
.ld-card h2 { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 28px; letter-spacing: -.01em; }
.ld-card.dark { background: var(--ink); color: #f6f4ee; border-color: var(--ink); } .ld-card.dark p, .ld-card.dark ul { color: #cfcabf; } .ld-card.dark b { color: #f6f4ee; }
.ld-card .ld-btn { margin-top: auto; align-self: flex-start; }
.ld-ic { width: 24px; height: 24px; color: var(--acc); } .ld-ic svg { width: 24px; height: 24px; }
.ld-prinsip > div { display: flex; flex-direction: column; gap: 10px; } .ld-prinsip b { font-size: 18px; } .ld-prinsip p { margin: 0; font-size: 15px; line-height: 1.6; color: #4a4741; }
.ld-num { font-family: var(--font-head); font-size: 40px; font-weight: 500; color: var(--acc); line-height: 1; }
.ld-paket.hi { border: 2px solid var(--acc); } .ld-paket-head { display: flex; align-items: center; justify-content: space-between; } .ld-paket b { font-family: var(--font-head); font-size: 24px; }
.ld-pill { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); background: var(--acc-soft); padding: 5px 9px; border-radius: 999px; }
.ld-price { margin-top: auto; font-weight: 600; color: var(--muted); font-size: 15px; }
.ld-foot { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 0; margin-top: 72px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ld-foot nav { display: flex; gap: 22px; } .ld-foot a { color: var(--muted); }
@media (max-width: 900px) {
  .ld-hero { grid-template-columns: 1fr; padding-top: 36px; } .ld-grid3, .ld-grid2 { grid-template-columns: 1fr; }
  .ld-nav a:not(.ld-btn) { display: none; } .ld-by { display: none; } .ld-sec { padding-top: 48px; } .ld-foot { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* strip akun demo (hanya di entitas demo; bukan pop-up, tidak menutupi apa pun) */
.demo-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -8px 0 14px; padding: 8px 12px; background: #f3ead6; border: 1px solid #e6d7b3; border-radius: 8px; font-size: 13px; color: #6b4e14; }
.demo-bar .btn { margin-left: auto; background: #fff; color: #6b4e14; border-color: #d9c48f; font-weight: 600; }
