/* ================= KAELA POS — tema & layout kasir ================= */
:root{
  --brand:#0f766e; --brand-d:#0b5a53; --brand-l:#14b8a6;
  --bg:#f1f5f9; --surface:#ffffff; --ink:#0f172a; --muted:#64748b;
  --line:#e2e8f0; --danger:#dc2626; --ok:#16a34a; --warn:#d97706;
  --radius:12px; --shadow:0 1px 3px rgba(0,0,0,.08),0 4px 16px rgba(0,0,0,.04);
}
*{box-sizing:border-box}
.hidden{display:none !important}   /* utility generic — dipakai toggle pelanggan/quickCash/payCash dll */
html,body{height:100%}
body{
  margin:0; font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  background:var(--bg); color:var(--ink); display:flex; flex-direction:column;
  height:100vh; overflow:hidden;
}

/* ---------- Top bar ---------- */
.topbar{
  display:flex; align-items:center; gap:16px; padding:10px 16px;
  background:var(--brand); color:#fff; box-shadow:var(--shadow); z-index:5;
}
.brand{display:flex; align-items:baseline; gap:6px; font-weight:800}
.brand-mark{background:#fff; color:var(--brand); padding:2px 8px; border-radius:8px; font-size:15px}
.brand-name{font-size:18px; opacity:.95}
.scanbox{
  flex:1; display:flex; align-items:center; gap:8px; background:#fff;
  border-radius:10px; padding:0 12px; max-width:720px;
}
.scan-ico{color:var(--muted); font-size:18px}
#scan{flex:1; border:0; outline:0; padding:12px 4px; font-size:15px; color:var(--ink); background:transparent}
.scan-cam-btn{border:0; background:var(--brand-l); color:#fff; width:34px; height:34px; border-radius:8px; cursor:pointer; font-size:17px; line-height:1; flex:0 0 auto}
.scan-cam-btn:hover{background:var(--brand)}

/* Overlay scanner kamera */
.scancam{position:fixed; inset:0; background:rgba(15,23,42,.8); display:flex; align-items:center; justify-content:center; z-index:70; padding:16px}
.scancam.hidden{display:none}
.scancam-box{background:#0b1220; border-radius:16px; overflow:hidden; width:100%; max-width:440px; box-shadow:0 20px 60px rgba(0,0,0,.5)}
.scancam-head{display:flex; align-items:center; justify-content:space-between; padding:12px 16px; color:#fff; font-weight:700}
.scancam-head .btn-ghost{color:#fff; border-color:rgba(255,255,255,.3)}
.scancam-view{position:relative; aspect-ratio:4/3; background:#000}
.scancam-view video{width:100%; height:100%; object-fit:cover}
.scancam-line{position:absolute; left:8%; right:8%; top:50%; height:2px; background:var(--brand-l); box-shadow:0 0 12px var(--brand-l); animation:scanmove 1.8s ease-in-out infinite}
@keyframes scanmove{0%,100%{top:28%}50%{top:72%}}
.scancam-msg{padding:12px 16px; color:#cbd5e1; font-size:13px; text-align:center; min-height:20px}
.topbar-right{display:flex; align-items:center; gap:14px; font-size:13px}
.nav-link{color:#fff; text-decoration:none; background:rgba(255,255,255,.15); padding:7px 12px; border-radius:8px; font-weight:600; white-space:nowrap}
.nav-link:hover{background:rgba(255,255,255,.28)}
.chip-net{font-size:12px; color:#86efac}
.chip-net.off{color:#fca5a5}
.kasir b{font-weight:700}

/* ---------- Layout ---------- */
.layout{flex:1; display:flex; min-height:0}
.catalog{flex:1; display:flex; flex-direction:column; min-width:0; padding:14px}
.cart{
  width:380px; background:var(--surface); border-left:1px solid var(--line);
  display:flex; flex-direction:column; box-shadow:-4px 0 16px rgba(0,0,0,.03);
}

/* ---------- Kategori chips ---------- */
.chips{display:flex; gap:8px; overflow-x:auto; padding-bottom:12px}
.chip{
  flex:0 0 auto; padding:8px 16px; border-radius:999px; border:1px solid var(--line);
  background:#fff; color:var(--muted); font-size:13px; cursor:pointer; white-space:nowrap;
  transition:.15s;
}
.chip.active{background:var(--brand); color:#fff; border-color:var(--brand)}

/* ---------- Grid produk ---------- */
.grid{
  flex:1; overflow-y:auto; display:grid; gap:12px; align-content:start;
  grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
}
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:12px; cursor:pointer; display:flex; flex-direction:column; gap:6px;
  transition:.12s; box-shadow:var(--shadow); user-select:none;
}
.card:hover{transform:translateY(-2px); border-color:var(--brand-l)}
.card:active{transform:scale(.98)}
.card .nm{font-weight:600; font-size:13px; line-height:1.3; min-height:34px}
.card .pr{color:var(--brand); font-weight:800; font-size:15px}
.card .st{font-size:11px; color:var(--muted)}
.card.low .st{color:var(--warn); font-weight:700}
.card.habis{border-color:#fecaca}
.card.habis .st{color:var(--danger); font-weight:700}
.card-img{aspect-ratio:1/1; background:#f1f5f9; border-radius:8px; display:flex; align-items:center; justify-content:center; margin-bottom:6px; overflow:hidden}
.card-img img{width:100%; height:100%; object-fit:cover}
.img-ph{font-size:30px; opacity:.35}

/* ---------- Toggle tampilan Grid/Baris ---------- */
.catalog-top{display:flex; gap:10px; align-items:center; margin-bottom:12px}
.catalog-top .chips{flex:1; padding-bottom:0; margin:0}
.view-toggle{flex:0 0 auto; display:flex; gap:2px; background:#fff; border:1px solid var(--line); border-radius:8px; padding:2px}
.vt-btn{border:0; background:transparent; width:34px; height:30px; border-radius:6px; cursor:pointer; font-size:16px; color:var(--muted)}
.vt-btn.active{background:var(--brand); color:#fff}

/* ---------- Mode BARIS (daftar) ---------- */
.list{flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:4px; align-content:start}
.lrow{display:flex; align-items:center; gap:10px; padding:7px 10px; background:var(--surface); border:1px solid var(--line); border-radius:8px; cursor:pointer; user-select:none}
.lrow:hover{border-color:var(--brand-l)}
.lrow:active{transform:scale(.995)}
.lrow.habis{border-color:#fecaca}
.lthumb{flex:0 0 auto; width:32px; height:32px; border-radius:6px; background:#f1f5f9; display:flex; align-items:center; justify-content:center; overflow:hidden}
.lthumb img{width:100%; height:100%; object-fit:cover}
.lnm{flex:1; font-weight:600; font-size:13px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lpr{color:var(--brand); font-weight:800; font-size:13px; white-space:nowrap}
.lst{font-size:11px; color:var(--muted); flex:0 0 auto; min-width:60px; text-align:right}
.lst.bad{color:var(--danger); font-weight:700} .lst.warnt{color:var(--warn); font-weight:700}

/* sorot item (navigasi panah ↑/↓) */
.card.hl{border-color:var(--brand); box-shadow:0 0 0 2px var(--brand-l)}
.lrow.hl{border-color:var(--brand); background:#ecfdf5}

/* input & form (modal tambah cepat / pelanggan) */
.inp{width:100%; padding:10px 12px; border:1px solid var(--line); border-radius:8px; font-size:14px; outline:none; font-family:inherit}
.inp:focus{border-color:var(--brand-l)}
.tc-grid{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:12px 0}
.tc-grid label{font-size:12px; color:var(--muted); display:flex; flex-direction:column; gap:4px}

/* ---------- Keranjang ---------- */
.cart-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--line)}
.cart-head h2{margin:0; font-size:17px}
.btn-ghost{background:transparent; border:1px solid var(--line); border-radius:8px; padding:6px 10px; cursor:pointer; font-size:14px}
.cart-items{flex:1; overflow-y:auto; padding:8px 12px}
.cart-empty{color:var(--muted); text-align:center; margin-top:40px; font-size:14px}
.citem{display:flex; gap:8px; padding:10px 6px; border-bottom:1px dashed var(--line)}
.citem .ci-main{flex:1; min-width:0}
.citem .ci-nm{font-weight:600; font-size:13px}
.citem .ci-pr{font-size:12px; color:var(--muted)}
.citem .ci-sub{font-weight:700; color:var(--brand); font-size:13px; white-space:nowrap}
.qty{display:flex; align-items:center; gap:6px; margin-top:4px}
.qty button{width:26px; height:26px; border:1px solid var(--line); background:#fff; border-radius:6px; cursor:pointer; font-size:15px; line-height:1}
.qty span{min-width:26px; text-align:center; font-weight:700; font-size:13px}
.qty span[data-act="set"]{cursor:pointer; border-bottom:1px dotted var(--muted)}
.ci-right{display:flex; flex-direction:column; align-items:flex-end; gap:6px; flex:0 0 auto}
.ci-del{border:1px solid #fecaca; background:#fff; color:var(--danger); width:24px; height:24px; border-radius:6px; cursor:pointer; font-size:12px; line-height:1}
.ci-del:hover{background:#fef2f2}

/* ---------- Footer keranjang ---------- */
.cart-foot{border-top:1px solid var(--line); padding:14px 16px; background:#fafafa}
.sum-row{display:flex; justify-content:space-between; align-items:center; font-size:14px; margin-bottom:8px; color:var(--muted)}
/* Diskon per barang (20 Okt): klik barang → popup; diskon bawah = jumlah otomatis */
#sumDisc.ada{color:var(--danger); font-weight:700}
.citem{cursor:pointer}
.citem:hover{background:#f8fafc}
.ci-dk{color:var(--danger); font-weight:700; white-space:nowrap}
.ci-dk-ajak{color:var(--muted); opacity:0; font-size:11px; transition:opacity .15s}
.citem:hover .ci-dk-ajak{opacity:.9}
.ci-kotor{display:block; color:var(--muted); font-weight:500; font-size:11px; text-align:right}
.sk-dk{font-size:12px}
.dk-warn{color:var(--danger); font-weight:700}
#diskonModal .quick-cash{margin-bottom:4px}
.sum-total{font-size:20px; font-weight:800; color:var(--ink); margin:12px 0}
.btn-pay{
  width:100%; padding:16px; border:0; border-radius:12px; background:var(--brand);
  color:#fff; font-size:17px; font-weight:800; cursor:pointer; letter-spacing:.3px;
}
.btn-pay:hover{background:var(--brand-d)}
.btn-pay:disabled{background:#cbd5e1; cursor:not-allowed}

/* ---------- Modal ---------- */
.modal{position:fixed; inset:0; background:rgba(15,23,42,.5); display:flex; align-items:center; justify-content:center; z-index:50; padding:16px}
.modal.hidden{display:none}
.modal-card{background:#fff; border-radius:16px; padding:22px; width:100%; max-width:420px; box-shadow:0 20px 60px rgba(0,0,0,.3)}
.modal-card h3{margin:0 0 12px}
.pay-total{font-size:16px; margin-bottom:14px}
.pay-total b{color:var(--brand); font-size:20px}
.pay-methods{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px}
.method{flex:1 1 auto; min-width:92px; padding:10px 8px; border:1px solid var(--line); background:#fff; border-radius:10px; cursor:pointer; font-weight:600; font-size:13px}
.method kbd{margin-left:2px}
.method.active{background:var(--brand); color:#fff; border-color:var(--brand)}
.pay-label{font-size:13px; color:var(--muted)}
.pay-cash{width:100%; padding:14px; font-size:22px; font-weight:800; text-align:right; border:2px solid var(--line); border-radius:10px; margin:6px 0 10px}
.quick-cash{display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-bottom:14px}
.quick-cash button{padding:10px; border:1px solid var(--line); background:#f8fafc; border-radius:8px; cursor:pointer; font-weight:600; font-size:13px}
.quick-cash button:hover{border-color:var(--brand-l)}
.pay-change{font-size:16px; margin-bottom:16px}
.pay-change b{color:var(--ok); font-size:20px}
.modal-actions{display:flex; gap:10px}
.modal-actions .btn-ghost{flex:0 0 110px; padding:16px}
.modal-actions .btn-pay{flex:1}

/* ---------- Kas / shift ---------- */
.kas-sum{border:1px solid var(--line); border-radius:10px; padding:12px; margin-bottom:12px}
.kas-list{max-height:200px; overflow:auto; margin-bottom:12px}
.kas-row{display:flex; justify-content:space-between; gap:10px; padding:7px 4px; border-bottom:1px dashed var(--line); font-size:13px}
.kas-act{display:flex; gap:8px; flex-wrap:wrap}
.kas-act .btn-ghost{flex:1; min-width:120px}
.kas-act .btn-pay{flex:1 1 100%; margin-top:4px}

/* ---------- Struk / nota ---------- */
.struk-card{max-width:360px}
.struk{font-family:ui-monospace,"Courier New",monospace; color:#000; background:#fff; padding:6px 10px; font-size:13px}
.sk-head{text-align:center; border-bottom:1px dashed #000; padding-bottom:8px; margin-bottom:8px}
.sk-toko{font-weight:800; font-size:16px}
.sk-sub{font-size:11px; color:#333}
.sk-items{display:flex; flex-direction:column; gap:4px}
.sk-item .sk-nm{font-weight:600}
.sk-ln{display:flex; justify-content:space-between; gap:8px}
.sk-tot{border-top:1px dashed #000; margin-top:8px; padding-top:8px}
.sk-big{font-weight:800; font-size:15px; margin:4px 0}
.sk-foot{text-align:center; margin-top:10px; font-size:12px}

@media print {
  body.printing{background:#fff}
  body.printing > *:not(#strukModal):not(#jualModal){display:none !important}
  body.printing #strukModal, body.printing #jualModal{position:static; inset:auto; background:none; display:block !important; padding:0}
  body.printing #strukModal.hidden, body.printing #jualModal.hidden{display:none !important}
  body.printing .struk-card{box-shadow:none; max-width:none; padding:0; width:58mm}
  body.printing .modal-actions{display:none}
  /* cetak = struk saja: tombol ubah bayar & petunjuk keyboard jangan ikut (Olan 20 Okt) */
  .struk-metode, .struk-card .hintbar, #jualModal .hintbar{display:none !important}
}

/* ---------- Hint bar (petunjuk keyboard) ---------- */
.hintbar{flex:0 0 auto; padding:7px 10px; margin-top:10px; font-size:12px; color:var(--muted); text-align:center; background:#f8fafc; border:1px solid var(--line); border-radius:8px; line-height:1.8}
.catalog .hintbar{margin-top:8px}
/* hint shortcut: kecil & tipis, nggak nutupin tombol */
kbd{display:inline-block; background:var(--line); color:var(--muted); border-radius:3px; padding:0 4px; font-size:9px; font-weight:700; font-family:inherit; line-height:1.7; margin-left:4px; vertical-align:middle; opacity:.9}
.btn-pay kbd, .method.active kbd{background:rgba(255,255,255,.22); color:rgba(255,255,255,.92)}
.hintbar kbd{font-size:10px; background:var(--ink); color:#fff; opacity:1}
.hint-qty{color:var(--warn)}

/* ---------- Toast ---------- */
.toast{position:fixed; bottom:24px; left:50%; transform:translateX(-50%); background:var(--ink); color:#fff; padding:12px 20px; border-radius:10px; font-size:14px; z-index:80; box-shadow:0 10px 30px rgba(0,0,0,.3)}
.toast.hidden{display:none}
.toast.ok{background:var(--ok)} .toast.err{background:var(--danger)}

/* ---------- Responsif (HP) ---------- */
@media(max-width:820px){
  .layout{flex-direction:column}
  .cart{width:100%; max-height:46%}
  .scanbox{max-width:none}
  .brand-name{display:none}
}

/* ===== Popup MULTI-SATUAN (↑/↓ pilih, ketik jumlah, Enter) ===== */
.sat-list{display:flex; flex-direction:column; gap:6px; margin:12px 0}
.sat-opt{display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid var(--line); border-radius:8px; cursor:pointer; user-select:none; background:var(--surface)}
.sat-opt:hover{border-color:var(--brand-l)}
.sat-opt.hl{border-color:var(--brand); background:#ecfdf5; box-shadow:0 0 0 2px var(--brand-l)}
.sat-nm{font-weight:700; flex:0 0 auto; min-width:70px}
.sat-isi{flex:1; font-size:12px; color:var(--muted)}
.sat-pr{font-weight:700; flex:0 0 auto}
.sat-sub{font-size:13px; color:var(--muted); margin-top:6px; text-align:right}
.ci-sat{font-size:11px; font-weight:700; color:var(--brand); background:#ecfdf5; border-radius:4px; padding:1px 5px; margin-left:4px}
.lst small.lok{color:var(--muted); font-weight:400}   /* rincian stok per lokasi di mode baris (20 Okt) */
/* Ubah cara bayar di struk (20 Okt) */
.struk-metode{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 2px}
.struk-metode:empty{display:none}
.struk-metode .sm-lbl{font-size:12px;color:var(--muted)}
.struk-metode .sm-btn{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 10px;font-size:12px;cursor:pointer}
.struk-metode .sm-btn.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.struk-metode .sm-btn kbd{font-size:10px;opacity:.7}

/* ---- Menu samping kiri ala BC Game (Olan 20 Okt): sempit = ikon saja, klik ☰ = lebar + nama.
   HP (≤820px): sembunyi total, ☰ = laci menimpa layar. ---- */
.topbar .topbar-right{margin-left:auto}
.menu-btn{background:transparent; border:0; color:#fff; font-size:22px; line-height:1; width:38px; height:38px; border-radius:8px; cursor:pointer; flex:0 0 auto}
.menu-btn:hover{background:rgba(255,255,255,.14)}
.sidenav{flex:0 0 60px; width:60px; display:flex; flex-direction:column; gap:2px; padding:8px; background:#fff; border-right:1px solid var(--line); overflow-y:auto; overflow-x:hidden; transition:width .18s, flex-basis .18s}
.tab{display:flex; text-decoration:none; align-items:center; gap:12px; background:transparent; border:0; color:var(--muted); padding:9px 10px; border-radius:8px; cursor:pointer; font-size:14px; font-weight:600; white-space:nowrap; text-align:left; width:100%}
.tab .ti{flex:0 0 24px; font-size:18px; text-align:center}
.tab .tl{display:none}
.tab:hover{background:var(--bg); color:var(--ink)}
.tab.active{background:var(--brand); color:#fff}
body.menu-buka .sidenav{flex-basis:200px; width:200px}
body.menu-buka .tab .tl{display:inline}
.menu-tirai{display:none}
@media(max-width:820px){
  .sidenav, .sidenav.laci{position:fixed; top:0; bottom:0; left:0; z-index:40; width:230px; flex:none; transform:translateX(-100%); transition:transform .2s; box-shadow:var(--shadow); padding-top:14px}
  .tab .tl{display:inline}
  body.menu-buka .sidenav{transform:none; width:230px}
  .menu-grup .tl{display:inline}
  body.menu-buka .menu-tirai{display:block; position:fixed; inset:0; background:rgba(15,23,42,.35); z-index:39}
}
/* Kasir: menu selalu LACI tersembunyi (layar kasir butuh lebar), ☰ = muncul menimpa, klik luar / Esc = tutup */
.sidenav.laci{position:fixed; top:0; bottom:0; left:0; z-index:40; width:230px; flex:none; transform:translateX(-100%); transition:transform .2s; box-shadow:var(--shadow); padding-top:14px}
.sidenav.laci .tab .tl{display:inline}
body.menu-buka .sidenav.laci{transform:none; width:230px; flex-basis:auto}
body.menu-buka .sidenav.laci ~ .menu-tirai{display:block; position:fixed; inset:0; background:rgba(15,23,42,.35); z-index:39}
.sidenav .menu-isi{flex:1 1 auto; min-height:8px}
/* judul grup menu: kelihatan saat lebar/laci; mode rel ikon = garis tipis saja */
.menu-grup{font-size:10.5px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--muted); padding:10px 10px 3px; white-space:nowrap}
.menu-grup .tl{display:none}
.sidenav .menu-grup{border-top:1px solid var(--line); margin-top:4px; padding-top:6px}
body.menu-buka .menu-grup .tl, .sidenav.laci .menu-grup .tl{display:inline}
.sidenav .tab{padding:7px 10px}
.sidenav .tab-keluar{position:sticky; bottom:-8px; background:#fff}
.sidenav .tab-keluar{color:var(--danger); border-top:1px solid var(--line); border-radius:0 0 8px 8px; margin-top:4px}
.sidenav .tab-keluar:hover{background:#fef2f2; color:var(--danger)}
.sidenav .tab-tentang{position:sticky; bottom:34px; background:#fff}
/* ---- Tentang (menu › ℹ️) ---- */
.tentang-card{max-width:340px; text-align:center}
.tt-logo{width:72px; height:72px; margin:0 auto 8px; border-radius:18px; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:24px; overflow:hidden}
.tt-logo img{width:100%; height:100%; object-fit:contain; background:#fff}
.tentang-card h3{margin:4px 0 2px}
.tt-sub{color:var(--muted); font-size:13px}
.tt-versi{display:inline-block; margin:12px 0 8px; padding:4px 12px; border-radius:999px; background:var(--bg); font-weight:700; font-size:13px; cursor:default; user-select:none}
.tt-baris{font-size:14px; margin:4px 0}
.tt-kode{font-size:10px; color:var(--muted); letter-spacing:1px; margin:-4px 0 8px}
.tt-kecil{font-size:12px; color:var(--muted)}
.tt-rahasia{margin:8px 0 0; font-size:8px; font-weight:600; letter-spacing:2px; color:var(--muted); opacity:.35}   /* samar, hampir tak terlihat (Olan) */
.tt-hak{margin-top:2px}
.tt-olz{display:block; color:#fff; font-size:11px; font-weight:700; margin-top:12px; letter-spacing:3px; user-select:text}   /* putih di kartu putih: baru kelihatan kalau di-blok/drag (Olan) */
.tt-olz::selection{color:var(--ink); background:#cbd5e1}

/* ---- Struk: kop (nama + alamat ≤3 baris) + No/Tanggal/Kasir + kebijakan (js/struk.js) ---- */
.sk-alamat{font-size:11px; line-height:1.35}
.sk-info{font-size:12px; border-bottom:1px dashed #000; padding-bottom:6px; margin-bottom:6px}
.sk-judul{text-align:center; font-weight:800; letter-spacing:1px; margin-top:6px}
.sk-kebijakan{font-size:10.5px; line-height:1.35; margin-top:6px; font-style:italic}
.sk-alasan{font-size:11px; margin-top:6px}
.struk-pratinjau{max-width:300px; margin:0 auto; border:1px dashed var(--line); padding:12px; background:#fff}
.sk-al{margin-bottom:6px}
.sk-logo{display:block; max-width:110px; max-height:70px; margin:0 auto 4px; object-fit:contain}
.brand-logo{height:30px; width:auto; max-width:60px; object-fit:contain; background:#fff; border-radius:8px; padding:2px; align-self:center}
.brand{align-items:center}
.sk-logo-atur{display:flex; gap:12px; align-items:center; margin-bottom:6px}
.sk-logo-kotak{width:72px; height:72px; border:1px dashed var(--line); border-radius:10px; display:flex; align-items:center; justify-content:center; background:#fff; overflow:hidden; flex:0 0 auto}
.sk-logo-kotak img{max-width:100%; max-height:100%; object-fit:contain}
@media print{ .sk-logo{filter:grayscale(1) contrast(1.2)} }

/* ---- Retur & kredit tukar (20 Okt) ---- */
.retur-card{max-width:640px}
.retur-card .rt-qty{width:72px; padding:5px 7px; text-align:right}
.rt-cek{display:flex; align-items:center; gap:6px; font-size:13px; margin:8px 0}
.kredit-ada{padding:6px 10px; border-top:1px dashed var(--line); background:#f0fdf4}
.kredit-ada-row{display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px; padding:3px 0}
.kredit-ada .mini{border:1px solid var(--brand); background:#fff; color:var(--brand); border-radius:6px; padding:3px 10px; cursor:pointer; font-size:12px; font-weight:700}
.sum-kredit{color:var(--brand); font-weight:700}
/* jam berjalan di bar atas */
.jam-bar{display:flex; flex-direction:column; align-items:flex-end; line-height:1.15; color:#fff; white-space:nowrap; padding:0 4px}
.jam-j{font-size:17px; font-variant-numeric:tabular-nums; letter-spacing:.5px}
.jam-t{font-size:11px; opacity:.85}
@media(max-width:820px){ .jam-t{display:none} .jam-j{font-size:14px} }
/* jumlah data belum terupload di tombol Sinkron */
.sync-n{display:inline-block; min-width:18px; margin-left:6px; padding:0 5px; border-radius:9px; background:#fbbf24; color:#1f2937; font-size:11px; font-weight:800; line-height:18px; text-align:center}
.sync-n:empty{display:none}
.sum-kredit .ci-del{width:20px; height:20px; font-size:10px; margin-left:4px}
@media print{ .sidenav, .menu-tirai{display:none !important} }

/* harga bertingkat (21 Okt) */
.ci-grosir{background:#e6f6ec;color:#1a8a4a;border-radius:4px;padding:0 5px;font-size:.8em;font-weight:700;margin-left:4px}
