/* Atribut hidden harus selalu menang atas display:flex/inline-flex milik .btn */
[hidden] { display: none !important; }

/* ==========================================================================
   GCO — GapaiCita Commerce OS
   Palet diekstrak dari referensi desain: navy #002a54 · putih · cyan #88d8e7
   ========================================================================== */

:root {
  --navy:        #002a54;
  --navy-900:    #011c3a;
  --navy-800:    #012243;
  --navy-700:    #01254b;
  --navy-600:    #033358;
  --teal:        #237699;
  --cyan:        #88d8e7;
  --cyan-soft:   #d9f2f7;
  --gold:        #ffcf50;
  --gold-soft:   #f0e0be;
  --white:       #ffffff;
  --bg:          #f6f7f8;
  --line:        #e6eaee;
  --ink:         #0d1b2a;
  --ink-2:       #4a5b6d;
  --ink-3:       #8595a6;
  --ok:          #12805c;
  --ok-soft:     #dcf5ec;
  --warn:        #b26a00;
  --warn-soft:   #fff2d6;
  --bad:         #b42318;
  --bad-soft:    #fde8e6;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 1px 2px rgba(0,42,84,.06), 0 8px 24px -12px rgba(0,42,84,.18);
  --font:        'Plus Jakarta Sans', 'Inter', -apple-system, 'Segoe UI', Roboto,
                 'Liberation Sans', sans-serif;
  --mono:        'JetBrains Mono', ui-monospace, 'DejaVu Sans Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Kerangka ───────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sidebar {
  background: var(--navy);
  color: #cfe0ee;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  /* height 100vh + overflow-y auto: latar navy selalu penuh setinggi layar.
     Sebelumnya tanpa overflow, menu yang jumlahnya sudah lebih banyak dari
     tinggi layar (Pengguna/Langganan/Audit Log) meluber KELUAR dari latar biru
     sehingga teksnya tampak pudar di atas latar putih — laporan Abi Fitrah,
     27 Okt 2026. Sekarang sidebar yang bergulir sendiri, latarnya tetap utuh. */
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

/* Gulir tipis di dalam sidebar — jangan sampai memakan lebar menu. */
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.22);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.34); }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 6px 22px; }
.brand-text { min-width: 0; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(140deg, var(--cyan), var(--teal));
  display: grid; place-items: center;
  color: var(--navy); font-weight: 800; font-size: 16px;
  box-shadow: 0 4px 14px -4px rgba(136,216,231,.6);
  flex-shrink: 0;
}
.brand-text strong { color: #fff; font-size: 15px; display: block; letter-spacing: -.2px; }
.brand-text span { font-size: 10.5px; color: #7fa3c0; letter-spacing: .5px; text-transform: uppercase; }

.nav-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .9px;
  color: #6b8dad; padding: 16px 10px 7px; font-weight: 700;
  flex-shrink: 0;
}

.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--radius-sm);
  color: #b9cfe2; text-decoration: none; font-size: 13.5px;
  transition: background .16s, color .16s;
}
.nav a svg { width: 17px; height: 17px; stroke-width: 1.8; flex-shrink: 0; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active {
  background: rgba(136,216,231,.15);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--cyan);
}
.nav a.active svg { opacity: 1; color: var(--cyan); }
.nav .badge-count {
  margin-left: auto; background: var(--gold); color: var(--navy);
  font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 20px;
}

/* Modul yang belum termasuk paket: tetap terlihat, tapi ditandai. */
.nav a.terkunci { color: #7f9ab3; }
.nav a.terkunci svg { opacity: .55; }
.nav a.terkunci:hover { color: #d7e6f2; }
.nav a .nav-kunci {
  margin-left: auto; font-style: normal; font-size: 9.5px; font-weight: 800;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--navy); background: rgba(136,216,231,.85);
  padding: 1px 6px; border-radius: 20px;
}

.sidebar-foot {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex; align-items: center; gap: 10px;
  /* Saat isi sidebar bergulir, footer ini butuh jeda dari tepi bawah layar. */
  padding-bottom: 4px;
  flex-shrink: 0;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.sidebar-foot small { display: block; color: #7fa3c0; font-size: 10.5px; }
.sidebar-foot b { color: #fff; font-size: 12.5px; font-weight: 600; }

/* ── Area utama ─────────────────────────────────────────────────────────── */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 26px;
  height: 62px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 12px; color: var(--ink-3); }
.crumb b { color: var(--ink); font-weight: 600; }
.crumb i { font-style: normal; margin: 0 6px; opacity: .5; }

.topbar-spacer { flex: 1; }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; padding: 7px 12px; width: 260px;
}
.search svg { width: 15px; height: 15px; color: var(--ink-3); }
.search input { border: 0; background: none; outline: none; font: inherit; font-size: 13px; width: 100%; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center;
  cursor: pointer; color: var(--ink-2); position: relative;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn .dot {
  position: absolute; top: 7px; right: 8px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--bad); border: 1.5px solid #fff;
}

.content { padding: 24px 26px 48px; }

/* ── Kepala halaman ─────────────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: -.4px; }
.page-head p { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.page-head .actions { margin-left: auto; display: flex; gap: 9px; }

/* ── Tombol ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: filter .15s, background .15s;
}
.btn svg { width: 15px; height: 15px; stroke-width: 2; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { filter: brightness(1.18); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg); }
.btn-sm { padding: 6px 11px; font-size: 12px; }

/* ── Kartu statistik ────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }

.stat {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 18px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: var(--cyan); opacity: 0;
}
.stat.is-gold::after  { background: var(--gold);  opacity: 1; }
.stat.is-cyan::after  { background: var(--cyan);  opacity: 1; }
.stat.is-ok::after    { background: var(--ok);    opacity: 1; }
.stat.is-warn::after  { background: var(--warn);  opacity: 1; }

.stat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.stat-ico {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--cyan-soft); color: var(--teal); flex-shrink: 0;
}
.stat-ico svg { width: 16px; height: 16px; stroke-width: 2; }
.stat.is-gold .stat-ico { background: #fff4d6; color: #a97a00; }
.stat.is-ok   .stat-ico { background: var(--ok-soft); color: var(--ok); }
.stat.is-warn .stat-ico { background: var(--warn-soft); color: var(--warn); }
.stat-label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.stat-value { font-size: 22px; font-weight: 700; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }

/* ── Kartu panel ────────────────────────────────────────────────────────── */
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 16px;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.panel-head h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; }
.panel-head p { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.panel-head .actions { margin-left: auto; display: flex; gap: 8px; }
.panel-body { padding: 18px; }
/* Tabel lebar di layar sempit: bergulir di dalam panel, bukan terpotong.
   Padding kiri-kanan ditaruh di WADAH (bukan di sel) supaya latar kepala tabel
   dan garis baris tidak menempel ke tepi kartu. Sel pertama & terakhir dibuat
   rata sisi dalam agar teks tetap sejajar dengan judul panel di atasnya
   (18px), bukan menjorok dua kali. */
.panel-body.flush { padding: 0 18px; overflow-x: auto; }
.panel-body.flush .tbl > thead > tr > th:first-child,
.panel-body.flush .tbl > tbody > tr > td:first-child { padding-left: 0; }
.panel-body.flush .tbl > thead > tr > th:last-child,
.panel-body.flush .tbl > tbody > tr > td:last-child { padding-right: 0; }

/* ── Tabel ──────────────────────────────────────────────────────────────── */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl thead th {
  text-align: left; padding: 11px 18px; background: #fafbfc;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--ink-3); font-weight: 700; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl tbody td { padding: 12px 18px; border-bottom: 1px solid #f0f3f5; vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fbfcfd; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .mono { font-family: var(--mono); font-size: 12.5px; }
.tbl .strong { font-weight: 600; }

/* Tabel polos `class="tabel"` (riwayat pembayaran, akuntansi). Tanpa aturan
   ini tabelnya memakai gaya bawaan browser: kolom berdesakan dan header tidak
   sejajar dengan isinya. */
.tabel { width: 100%; border-collapse: collapse; font-size: 13px; }
.tabel thead th {
  text-align: left; padding: 10px 14px; background: #fafbfc;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px;
  color: var(--ink-3); font-weight: 700; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tabel tbody td { padding: 11px 14px; border-bottom: 1px solid #f0f3f5; vertical-align: middle; }
.tabel tbody tr:last-child td { border-bottom: 0; }
.tabel tbody tr:hover { background: #fbfcfd; }
.tabel-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabel-scroll .tabel { min-width: 520px; }
@media (max-width: 700px) {
  .tabel thead th, .tabel tbody td { padding: 9px 11px; }
}

.kode-pill {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: #fff4d6; color: #8a6200; padding: 2px 8px; border-radius: 6px;
  border: 1px solid #f3dfa8;
}

/* ── Lencana status ─────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
  white-space: nowrap;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pill-ok   { background: var(--ok-soft);   color: var(--ok); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad  { background: var(--bad-soft);  color: var(--bad); }
.pill-info { background: var(--cyan-soft); color: var(--teal); }
.pill-mute { background: #eef1f4; color: var(--ink-2); }

/* Lencana status yang sekaligus jadi pemilih (gabungan kolom STATUS + UBAH).
   Bentuknya harus tetap terbaca sebagai lencana, bukan kotak dropdown, supaya
   baris tabel tidak berubah jadi deretan kontrol. */
.pilih-status {
  position: relative; display: inline-flex; align-items: center;
  border-radius: 20px; padding: 0;
}
.pilih-status::before {
  content: ''; position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  pointer-events: none;
}
.pilih-status::after {
  content: ''; position: absolute; right: 9px; top: 50%;
  width: 4px; height: 4px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .65; pointer-events: none;
}
.pilih-status select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 11.5px; font-weight: 600;
  padding: 3px 20px 3px 20px; border-radius: 20px;
  cursor: pointer; max-width: 150px;
}
.pilih-status select:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.pilih-status:hover { filter: brightness(.97); }
/* Cadangan untuk peramban tanpa :has — lencana batal tetap abu, tidak mencolok */
.pilih-status.pill-mute select { color: var(--ink-2); }

/* ── Kotak info ─────────────────────────────────────────────────────────── */
.note {
  display: flex; gap: 11px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--cyan-soft); border: 1px solid #bfe6ef; color: #0d4d5e;
  font-size: 12.5px; line-height: 1.6;
}
.note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; stroke-width: 2; }
.note.is-warn { background: var(--warn-soft); border-color: #f3dfa8; color: #7a4a00; }

/* Peringatan yang punya tombol tindakan (mis. "4 produk stoknya habis" →
   Lihat). Tombolnya didorong ke kanan pada layar lebar, dan turun jadi selebar
   kotak di HP supaya teks peringatan tidak terhimpit. */
.note-aksi { flex-wrap: wrap; align-items: center; }
.note-aksi > div { flex: 1 1 240px; min-width: 0; }
.note-aksi > .btn { flex: 0 0 auto; margin-left: auto; }
/* Tombol bernada peringatan: senada dengan kotak kuningnya, bukan biru tua —
   supaya terbaca sebagai bagian dari peringatan, bukan aksi utama halaman. */
.btn-warn {
  background: #fff; border-color: #e2c07a; color: #7a4a00;
}
.btn-warn:hover { background: #fffaf0; }
@media (max-width: 560px) {
  .note-aksi > .btn { margin-left: 0; width: 100%; justify-content: center; }
}
.note b { font-weight: 700; }

/* ── Kotak rekening transfer ────────────────────────────────────────────── */
.rek {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  border-radius: var(--radius); padding: 20px; color: #fff;
  position: relative; overflow: hidden;
}
.rek::after {
  content: ''; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(136,216,231,.28), transparent 68%);
  top: -70px; right: -50px;
}
.rek-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--cyan); font-weight: 700; }
.rek-bank { font-size: 13px; color: #b9cfe2; margin-top: 9px; }
.rek-nomor { font-family: var(--mono); font-size: 23px; font-weight: 700; letter-spacing: 1.2px; margin: 3px 0 2px; }
.rek-atas { font-size: 12.5px; color: #b9cfe2; }
.rek-total {
  margin-top: 16px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.rek-total small { font-size: 11px; color: #9dbdd8; display: block; }
.rek-total strong { font-size: 26px; font-weight: 800; letter-spacing: -.8px; color: var(--gold); }
.rek-total .kode { text-align: right; }
.rek-total .kode b {
  display: block; font-family: var(--mono); font-size: 19px; color: var(--cyan); font-weight: 700;
}

/* ── Dua kolom ──────────────────────────────────────────────────────────── */
.cols { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }

/* ── Baris rincian ──────────────────────────────────────────────────────── */
.rows { font-size: 13px; }
.rows > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed #eef1f4;
}
.rows > div:last-child { border-bottom: 0; }
.rows span { color: var(--ink-2); }
.rows b { font-variant-numeric: tabular-nums; font-weight: 600; }
.rows .total { border-top: 2px solid var(--navy); border-bottom: 0; margin-top: 5px; padding-top: 11px; font-size: 15px; }
.rows .total b { font-weight: 800; color: var(--navy); }

/* ── Kosong ─────────────────────────────────────────────────────────────── */
.empty { text-align: center; padding: 46px 20px; color: var(--ink-3); }
.empty svg { width: 38px; height: 38px; stroke-width: 1.4; margin-bottom: 10px; opacity: .45; }
.empty b { display: block; color: var(--ink-2); font-size: 13.5px; margin-bottom: 3px; }
.empty span { font-size: 12.5px; }

/* ── Formulir ───────────────────────────────────────────────────────────── */
.field { margin-bottom: 13px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 13px; background: var(--white); color: var(--ink); outline: none;
}
/* Textarea tanpa aturan ini jatuh ke gaya bawaan browser: huruf monospace dan
   lebar sempit. Dulu kolom "kalimat penjelas" jadi tidak terbaca. */
.field textarea {
  min-height: 74px; line-height: 1.6; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,118,153,.12);
}

/* ── Formulir modul Member ────────────────────────────────────────────────
   Kelas .bidang dipakai 22× di page_member.php (tab Diskon, Banner, Inbox,
   Greeting) tetapi TIDAK PERNAH didefinisikan di CSS mana pun. Akibatnya
   label menempel langsung di samping kotak isian, kolom memakai gaya bawaan
   peramban (huruf & tinggi tidak seragam), dan formulir terlihat berantakan
   — laporan Abi Fitrah, 10 Nov 2026. Bentuknya disamakan dengan .field
   supaya seluruh dasbor memakai satu rupa. */
.bidang { display: block; margin-bottom: 13px; }
.bidang > span {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 5px;
}
.bidang input:not([type="checkbox"]):not([type="radio"]),
.bidang select,
.bidang textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 9px; font: inherit; font-size: 13px;
  background: var(--white); color: var(--ink); outline: none;
}
.bidang textarea { min-height: 74px; line-height: 1.6; resize: vertical; }
.bidang input:focus, .bidang select:focus, .bidang textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,118,153,.12);
}
/* Pitfall: aturan width:100% di atas membuat kotak centang melebar penuh. */
.bidang input[type="checkbox"] {
  width: 16px; height: 16px; flex: 0 0 auto; margin: 0;
}

/* Teks bantuan di bawah kolom (dipakai di semua tab Member). */
.bantuan {
  margin: 8px 0 0; font-size: 12px; color: var(--ink-3); line-height: 1.6;
}

/* Lencana status Aktif / Mati di tabel Member & Banner. */
.lencana {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: #eef1f5; color: #5b6b80; white-space: nowrap;
}
.lencana-ok { background: #e7f6ec; color: #1d6b3f; }

/* Keterangan kecil di bawah kolom isian (dipakai formulir Member). */
.bidang small {
  display: block; font-size: 11.5px; color: var(--ink-3);
  margin-top: 5px; line-height: 1.55;
}

/* Kotak syarat & masa berlaku pada formulir diskon member. Diberi latar
   berbeda supaya jelas bahwa ini pengaturan TAMBAHAN, bukan kolom utama. */
.syarat-kotak {
  border: 1px solid #e4e7ec; border-radius: 12px;
  padding: 14px 16px 12px; margin: 4px 0 16px; background: #fbfcfe;
}
.syarat-judul { display: block; font-size: 13px; color: var(--ink); margin-bottom: 3px; }
.syarat-catatan {
  display: block; font-size: 11.5px; color: var(--ink-3);
  line-height: 1.6; margin-top: 10px;
}

/* Kolom "Diskon" pada tabel Daftar member. Diberi lebar minimum supaya
   lencana + keterangan singkat tidak berdesakan; keterangan dibuat satu baris
   agar baris tabel tidak meninggi (laporan tampilan 10 Nov 2026). */
.kolom-diskon { min-width: 132px; white-space: nowrap; }
.kolom-diskon .lencana { margin-right: 4px; }
.kolom-diskon .ket-diskon {
  display: inline-block; font-size: 11px; color: #667085; line-height: 1.4;
}
.kolom-diskon form { margin-top: 4px; }

/* ── Responsif ──────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cols  { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { padding: 0 16px; height: 56px; }
  .search { display: none; }
  .content { padding: 16px; min-width: 0; }
  .page-head { flex-wrap: wrap; }
  .page-head .actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .page-head .actions > * { min-width: 0; }
  .page-head .actions form { flex-wrap: wrap; }
  .panel-head { flex-wrap: wrap; }
  .panel-head .actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .tbl { font-size: 12px; }
  .tbl thead th, .tbl tbody td { padding: 9px 12px; }
  .panel-body.flush { padding: 0 12px; }
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-scroll .tbl { min-width: 620px; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat-value { font-size: 20px; }
}

/* ==========================================================================
   Halaman autentikasi (masuk / setup Owner)
   ========================================================================== */

.auth-body {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
}

.auth-wrap {
  display: grid;
  grid-template-columns: 460px 1fr;
  width: 100%;
  min-height: 100vh;
}

/* ── Panel kiri: navy ─────────────────────────────────────────────────── */
.auth-side {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(136,216,231,.16), transparent 60%),
    radial-gradient(700px 380px at 100% 100%, rgba(255,207,80,.10), transparent 62%),
    linear-gradient(168deg, var(--navy) 0%, var(--navy-900) 100%);
  color: #eaf2f9;
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  right: -90px; bottom: -110px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(136,216,231,.22);
  box-shadow: 0 0 0 34px rgba(136,216,231,.05), 0 0 0 70px rgba(136,216,231,.03);
}

.auth-brand { display: flex; align-items: center; gap: 14px; }
.auth-brand .brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  box-shadow: 0 6px 18px -6px rgba(136,216,231,.6);
}
.auth-brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
/* Kunci anti-tumpuk: teks brand tidak boleh menabrak logo */
.auth-brand .brand-text strong,
.auth-brand .brand-text span { white-space: nowrap; }
.auth-brand .brand-mark { flex: 0 0 auto; }
.auth-brand strong { font-size: 17px; letter-spacing: .04em; color: #fff; }
.auth-brand span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(234,242,249,.62); }

.auth-pitch { margin-top: auto; margin-bottom: auto; padding: 46px 0 30px; }
.auth-pitch h2 {
  font-size: 32px; line-height: 1.22; font-weight: 800;
  letter-spacing: -.02em; color: #fff; margin-bottom: 16px;
}
.auth-pitch p { font-size: 13.5px; line-height: 1.72; color: rgba(234,242,249,.76); max-width: 330px; }

.auth-points { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.auth-points li {
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px; color: rgba(234,242,249,.88);
}
.auth-points li span {
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(136,216,231,.16);
  border: 1px solid rgba(136,216,231,.42);
  flex-shrink: 0;
  position: relative;
}
.auth-points li span::after {
  content: "";
  position: absolute; inset: 0;
  margin: auto; width: 7px; height: 4px;
  border-left: 1.6px solid var(--cyan);
  border-bottom: 1.6px solid var(--cyan);
  transform: rotate(-45deg) translate(0, -1px);
}

.auth-side-foot {
  font-size: 11px; letter-spacing: .05em;
  color: rgba(234,242,249,.42);
  border-top: 1px solid rgba(136,216,231,.14);
  padding-top: 16px;
}

/* ── Panel kanan: formulir ────────────────────────────────────────────── */
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--bg);
}

.auth-box {
  width: 100%;
  max-width: 386px;
}

.auth-eyebrow {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
  background: var(--cyan-soft);
  padding: 5px 10px; border-radius: 999px;
  margin-bottom: 14px;
}

.auth-box h1 {
  font-size: 25px; font-weight: 800; letter-spacing: -.02em;
  color: var(--navy); margin-bottom: 8px;
}

.auth-sub {
  font-size: 13px; line-height: 1.66; color: var(--ink-2);
  margin-bottom: 24px;
}
.auth-sub b { color: var(--navy); }

.auth-alert {
  display: flex; gap: 9px; align-items: flex-start;
  background: var(--bad-soft);
  border: 1px solid #f6c9c4;
  color: var(--bad);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 12.5px; line-height: 1.55;
  margin-bottom: 18px;
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }
.auth-alert.is-ok {
  background: var(--ok-soft); border-color: #b8e6d4; color: var(--ok);
}

.auth-field { display: block; margin-bottom: 15px; }
.auth-field > span {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--navy); margin-bottom: 6px;
  letter-spacing: .01em;
}
.auth-field input {
  width: 100%;
  font: inherit; font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  transition: border-color .14s, box-shadow .14s;
}
.auth-field input::placeholder { color: var(--ink-3); font-size: 12.5px; }
.auth-field input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(35,118,153,.13);
}
.auth-field small {
  display: block;
  font-size: 11px; line-height: 1.55;
  color: var(--ink-3); margin-top: 6px;
}

.auth-pass { position: relative; }
.auth-pass input { padding-right: 44px; }
.auth-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer;
  color: var(--ink-3); border-radius: 8px;
}
.auth-eye:hover { color: var(--teal); background: var(--cyan-soft); }

.auth-submit {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 13.5px; font-weight: 700;
  color: var(--navy);
  background: linear-gradient(180deg, #ffd96e, var(--gold));
  border: 1px solid #e8bb42;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(255,207,80,.9);
  transition: transform .12s, box-shadow .14s, filter .14s;
}
.auth-submit:hover { filter: brightness(1.03); box-shadow: 0 10px 24px -10px rgba(255,207,80,1); }
.auth-submit:active { transform: translateY(1px); }

.auth-help {
  font-size: 11.5px; color: var(--ink-3);
  text-align: center; margin-top: 20px; line-height: 1.6;
}

@media (max-width: 900px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-main { padding: 32px 20px; align-content: center; }
  .auth-box { max-width: 400px; }
}

/* ── Pengguna di sidebar ──────────────────────────────────────────────── */
.sidebar-user { min-width: 0; flex: 1; }
.sidebar-user b,
.sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user b { color: #fff; font-size: 12.5px; font-weight: 600; }
.sidebar-user small { color: #7fa3c0; font-size: 10.5px; }

.sidebar-out {
  display: grid; place-items: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 8px;
  color: #7fa3c0;
  transition: background .14s, color .14s;
}
.sidebar-out svg { width: 16px; height: 16px; }
.sidebar-out:hover { background: rgba(255,255,255,.1); color: var(--cyan); }

/* Tombol keluar di topbar (terlihat di semua ukuran, penting untuk HP) */
.topbar-out {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff;
  color: var(--ink-2); flex-shrink: 0;
  transition: background .14s, color .14s, border-color .14s;
}
.topbar-out svg { width: 16px; height: 16px; }
.topbar-out:hover { background: var(--bad-soft); color: var(--bad); border-color: #f6c9c4; }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,42,84,.44);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: 14px;
  width: 100%; max-width: 430px;
  box-shadow: 0 24px 60px rgba(0,32,64,.28);
  overflow: hidden;
  /* Form yang makin panjang (mis. kolom barcode) tidak boleh mendorong tombol
     Simpan keluar layar: badan modal yang bergulir, kepala & kaki tetap. */
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  animation: modalIn .16s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 14.5px; font-weight: 700; color: var(--navy); }
.modal-body { padding: 18px 20px 4px; overflow-y: auto; min-height: 0; }
.modal-foot {
  display: flex; gap: 9px; justify-content: flex-end;
  padding: 14px 20px 18px;
}
.modal-foot .btn { padding: 8px 16px; font-size: 12.5px; }

/* ==========================================================================
   Navigasi HP — hamburger + drawer geser
   Desktop: tombol & latar disembunyikan, sidebar tetap menempel.
   ========================================================================== */

.hamburger {
  display: none;
  width: 38px; height: 38px; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); color: var(--navy);
  place-items: center; cursor: pointer; margin-right: 2px;
  transition: background .15s, border-color .15s;
}
.hamburger:hover  { background: var(--bg); border-color: #cfdae5; }
.hamburger:active { transform: scale(.96); }
.hamburger svg    { width: 20px; height: 20px; stroke-width: 2; }
.hamburger:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.nav-bg {
  display: none;
  position: fixed; inset: 0; z-index: 70;
  background: rgba(0, 42, 84, .46);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 0; padding: 0; cursor: pointer;
}

@media (max-width: 820px) {
  .hamburger { display: grid; }

  /* Drawer */
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 274px; max-width: 84vw; height: 100%;
    flex-direction: column; align-items: stretch;
    padding: 18px 14px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(-104%);
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    z-index: 80;
    box-shadow: 0 0 44px rgba(0, 0, 0, .34);
  }
  .sidebar .brand { padding: 0 6px 18px; }
  .sidebar .brand-text { display: block; }
  .sidebar .nav { display: block; }
  .sidebar .nav-label { display: block; padding-top: 14px; }
  .sidebar .nav a { padding: 10px 11px; font-size: 14px; }
  .sidebar .nav a span { display: inline; }
  .sidebar .nav a svg { width: 18px; height: 18px; }
  .sidebar-foot { display: flex; margin-top: auto; padding-top: 16px; }

  /* Status terbuka */
  body.nav-buka { overflow: hidden; }
  body.nav-buka .sidebar { transform: translateX(0); }
  body.nav-buka .nav-bg  { display: block; }

  /* Topbar: sisakan hamburger + judul halaman saja */
  .topbar .avatar,
  .topbar-out,
  .topbar .icon-btn { display: none; }
  .crumb { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-spacer { flex: 1; min-width: 0; }
}

@media (max-width: 380px) {
  .sidebar { width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ==========================================================================
   Rekening penerima — form edit
   ========================================================================== */

.field-hint {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 5px; line-height: 1.5;
}

.field-err {
  font-size: 11.5px; color: var(--bad); font-weight: 600;
  margin-top: 5px; display: flex; align-items: flex-start; gap: 4px;
}
.field-err::before { content: "⚠"; font-size: 12px; line-height: 1.35; }

.field input.is-bad,
.field select.is-bad {
  border-color: var(--bad);
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, .09);
}

/* Pratinjau di dalam modal */
.rek-preview {
  margin-top: 6px; padding: 14px 16px;
  border: 1px dashed #c9d6e2; border-radius: var(--radius-sm);
  background: var(--bg);
}
.rek-preview-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .8px;
  font-weight: 700; color: var(--ink-3); margin-bottom: 8px;
}

/* Info "terakhir diubah" di kartu rekening */
.rek-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3);
}
.rek-meta b { color: var(--ink-2); font-weight: 600; }

/* Tombol Edit di kepala panel */
.panel-head .actions { display: flex; gap: 8px; margin-left: auto; }

@media (max-width: 560px) {
  .modal { max-height: 92vh; }
  .rek-nomor { font-size: 18px; letter-spacing: .5px; }
  .panel-head .actions { margin-left: 0; width: 100%; }
  .panel-head .actions .btn { width: 100%; justify-content: center; }
}

/* ==========================================================================
   Daftar saran (pengganti datalist — datalist tidak tampil di banyak HP)
   ========================================================================== */

.saran-wrap { position: relative; }
.saran-wrap input { padding-right: 38px; }

.saran-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-3); border-radius: 7px;
  transition: background .15s, color .15s;
}
.saran-toggle:hover { background: var(--bg); color: var(--navy); }
.saran-toggle svg { width: 16px; height: 16px; stroke-width: 2; }

.saran {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(15, 32, 39, .13);
  max-height: 210px; overflow-y: auto; padding: 5px;
  animation: saranIn .13s ease-out;
}
@keyframes saranIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.saran[hidden] { display: none; }

.saran-item {
  display: block; width: 100%; text-align: left;
  padding: 8px 10px; border: 0; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--ink);
  border-radius: 7px; cursor: pointer;
  transition: background .1s;
}
.saran-item:hover,
.saran-item.aktif { background: var(--bg); color: var(--navy); font-weight: 600; }
.saran-item[hidden] { display: none; }

.saran-kosong {
  padding: 10px; font-size: 12px; color: var(--ink-3); text-align: center;
}
.saran-kosong[hidden] { display: none; }

/* Scrollbar tipis di daftar saran */
.saran::-webkit-scrollbar { width: 7px; }
.saran::-webkit-scrollbar-thumb {
  background: #cfd8e0; border-radius: 4px;
}
.saran::-webkit-scrollbar-thumb:hover { background: #b8c4cf; }

/* ==========================================================================
   Bukti transfer & ubah status manual
   ========================================================================== */

/* Baris filter status — bisa digulir mendatar di HP */
.filter-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar .btn { flex: 0 0 auto; white-space: nowrap; }

/* Pilih status cepat di dalam tabel */
.form-cepat { margin: 0; display: inline-block; }
.pilih-cepat {
  font: inherit;
  font-size: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  max-width: 150px;
}
.pilih-cepat:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* Form ubah status di halaman detail */
.form-status .field + .field { margin-top: 12px; }
.hint-teks { font-weight: 400; color: var(--ink-3); font-size: 11px; }

/* Daftar bukti transfer */
.bukti-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.bukti-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf7;
}
.bukti-thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 74px;
  border-radius: 9px;
  overflow: hidden;
  background: #efece4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--line);
}
.bukti-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bukti-pdf {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em;
}
.bukti-isi { min-width: 0; flex: 1 1 auto; }
.bukti-atas {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; margin-bottom: 3px;
}
.bukti-atas b {
  font-weight: 600; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.bukti-meta { font-size: 11px; color: var(--ink-3); }
.bukti-catatan {
  margin-top: 6px; font-size: 12px; color: var(--ink-2);
  background: #fff5e6; border-left: 3px solid var(--gold);
  padding: 5px 8px; border-radius: 0 6px 6px 0;
}
.bukti-aksi { display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.bukti-aksi form { margin: 0; }

/* Kolom alasan penolakan */
.form-tolak { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.form-tolak input[type="text"] {
  flex: 1 1 160px; min-width: 0;
  font: inherit; font-size: 12px;
  padding: 7px 9px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.btn-tolak-pasti {
  background: #fdeaea; color: #a52121; border: 1px solid #f3c9c9;
}
.btn-tolak-pasti:hover { background: #fbdede; }

/* Kotak unggah bukti */
.form-unggah { margin: 0; }
.unggah-kotak {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 18px 14px;
  border: 2px dashed #d8d2c4;
  border-radius: 12px;
  background: #fdfcf9;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.unggah-kotak:hover { border-color: var(--gold); background: #fffdf6; }
.unggah-kotak svg { width: 22px; height: 22px; color: var(--ink-3); margin-bottom: 2px; }
.unggah-kotak b { font-size: 13px; color: var(--ink); }
.unggah-kotak span { font-size: 11px; color: var(--ink-3); }
.unggah-nama {
  margin: 8px 0;
  font-size: 12px;
  color: var(--ink-2);
  background: #eef4ea;
  border-radius: 8px;
  padding: 7px 10px;
  word-break: break-all;
}
.form-unggah .btn { margin-top: 8px; }

@media (max-width: 620px) {
  .bukti-item { flex-direction: column; }
  .bukti-thumb { width: 100%; height: 130px; }
  .filter-bar { padding: 10px 12px; }
}

/* ═══ Gudang ══════════════════════════════════════════════════════════════ */
.baris-atas {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}

.kecil { font-size: 11.5px; color: var(--ink-2); }
.tbl .kecil { display: block; }

.wajib { color: var(--bad); font-weight: 700; }
.opsional { color: var(--ink-2); font-weight: 400; font-size: 11px; }

.dua-kolom { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .dua-kolom { grid-template-columns: 1fr; } }

.cari-inline { display: flex; gap: 6px; align-items: center; flex: 1 1 240px; }
/* Ikon kaca pembesar: kecil & rapi. Tanpa aturan ini SVG-nya membengkak
   memenuhi tinggi kotak (pernah 95 px) — Abi minta normal kecil. */
.cari-inline > svg {
  width: 15px; height: 15px; flex: 0 0 auto;
  color: var(--ink-3); stroke-width: 2;
}
.cari-inline input[type="search"] {
  flex: 1 1 auto; min-width: 0;
  padding: 7px 11px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
}
.cari-inline input[type="search"]:focus {
  outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,118,153,.12);
}

.btn-xs { padding: 4px 8px; font-size: 11.5px; border-radius: 6px; }
.btn-xs svg { width: 13px; height: 13px; }

.aksi-baris { display: flex; gap: 4px; justify-content: flex-end; }

/* Saldo stok besar di halaman detail */
.stok-besar {
  display: flex; align-items: baseline; gap: 8px;
  padding: 16px 18px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(180deg, #f7fbfd, #fff);
}
.stok-besar b {
  font-family: var(--mono); font-size: 34px; font-weight: 700;
  line-height: 1; color: var(--navy);
}
.stok-besar span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.stok-besar.is-warn { background: var(--warn-soft); border-color: #f3dfa8; }
.stok-besar.is-warn b { color: var(--warn); }
.stok-besar.is-bad { background: var(--bad-soft); border-color: #f2c9c9; }
.stok-besar.is-bad b { color: var(--bad); }

/* Pemilih jenis pergerakan stok */
.pilih-jenis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-bottom: 14px;
}
.pilih-jenis label { position: relative; cursor: pointer; }
.pilih-jenis input { position: absolute; opacity: 0; pointer-events: none; }
.pilih-jenis span {
  display: block; text-align: center;
  padding: 8px 6px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink-2);
  transition: background .12s, border-color .12s, color .12s;
}
.pilih-jenis input:checked + span {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.pilih-jenis input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(35,118,153,.18);
}

/* Angka naik/turun di riwayat stok */
.is-tambah { color: var(--ok); }
.is-kurang { color: var(--bad); }

.modal.modal-sm { max-width: 420px; }

@media (max-width: 640px) {
  .aksi-baris { flex-wrap: wrap; justify-content: flex-start; }
  .stok-besar b { font-size: 28px; }
  .cari-inline { flex: 1 1 100%; }
}

/* ── Atribut toko online (produk) ───────────────────────────────────────── */
.bagian-toko {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.bagian-judul {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}
.bagian-catatan { margin-bottom: 12px; }
.tiga-kolom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.tiga-kolom .field { margin-bottom: 12px; }
.bagian-toko textarea {
  width: 100%;
  resize: vertical;
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.bagian-toko textarea:focus {
  outline: 2px solid rgba(35,118,153,.15);
  outline-offset: 1px;
  border-color: var(--teal);
}

.toko-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.toko-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.toko-desk {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
}

@media (max-width: 520px) {
  .tiga-kolom { grid-template-columns: 1fr 1fr; }
  .tiga-kolom .field:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   KASIR (POS)
   Layar kerja kasir: katalog di kiri, keranjang di kanan.
   Di HP keranjang jadi panel bawah yang dibuka lewat bar total.
   ========================================================================== */

.kasir-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 16px;
  align-items: start;
}
.kasir-kiri { display: grid; gap: 16px; min-width: 0; }
.kasir-kanan { position: sticky; top: 84px; }

/* ── Kartu produk ────────────────────────────────────────────────────────── */
.kartu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
}
.kartu-produk {
  display: flex; flex-direction: column; gap: 5px;
  text-align: left; font: inherit; cursor: pointer;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  transition: border-color .12s, box-shadow .12s, transform .08s;
  min-height: 92px;
}
.kartu-produk:hover { border-color: var(--teal); box-shadow: 0 2px 10px -4px rgba(0,42,84,.28); }
.kartu-produk:active { transform: scale(.985); }
.kartu-produk:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.kp-sku {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .2px;
  color: var(--teal); font-weight: 600;
}
.kp-nama {
  font-size: 12.8px; font-weight: 600; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.kp-kaki {
  margin-top: auto; display: flex; align-items: baseline;
  justify-content: space-between; gap: 6px;
}
.kp-kaki b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kp-kaki small { font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kp-kaki small.is-tipis { color: var(--warn); font-weight: 600; }

/* ── Keranjang ───────────────────────────────────────────────────────────── */
.keranjang-isi { max-height: 306px; overflow-y: auto; }
.kj-baris {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center; gap: 8px;
  padding: 9px 16px; border-bottom: 1px solid #f0f3f5;
}
.kj-baris:last-child { border-bottom: 0; }
.kj-info { min-width: 0; }
.kj-info b {
  display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kj-info small { font-size: 10.8px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kj-qty { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kj-qty button {
  width: 24px; height: 26px; border: 0; background: var(--bg); cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink-2); font-family: inherit;
}
.kj-qty button:hover { background: var(--cyan-soft); color: var(--navy); }
.kj-qty input {
  width: 32px; height: 26px; border: 0; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); text-align: center; font: inherit;
  font-size: 12px; font-variant-numeric: tabular-nums; padding: 0;
}
.kj-sub {
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  min-width: 66px; text-align: right;
}
.kj-hapus {
  width: 20px; height: 20px; border: 0; border-radius: 6px; cursor: pointer;
  background: none; color: var(--ink-3); font-size: 15px; line-height: 1;
  font-family: inherit;
}
.kj-hapus:hover { background: var(--bad-soft); color: var(--bad); }

.keranjang-total { padding: 15px 16px 16px; border-top: 1px solid var(--line); background: #fbfcfd; }
.keranjang-total .rows > div { padding: 6px 0; }
.keranjang-total .rows .total { font-size: 14.5px; }

.uang-cepat { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 11px; }
.uang-cepat .btn { flex: 1 1 auto; justify-content: center; padding: 5px 8px; font-size: 11.5px; }

.kembalian {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--ok-soft); color: var(--ok);
}
.kembalian span { font-size: 12px; font-weight: 600; }
.kembalian b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kembalian.is-kurang { background: var(--bad-soft); color: var(--bad); }

/* Tombol & bar khusus HP — disembunyikan di desktop */
.tutup-sheet { display: none; }
.kasir-bar { display: none; }

@media (max-width: 1080px) {
  .kasir-grid { grid-template-columns: minmax(0, 1fr) 336px; }
}

@media (max-width: 900px) {
  .kasir-grid { grid-template-columns: minmax(0, 1fr); }
  .kasir-kanan {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    transform: translateY(calc(100% + 8px));
    /* visibility ikut disembunyikan: panel di luar layar masih bisa dijangkau
       Tab & pembaca layar kalau hanya digeser dengan transform. */
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
    max-height: 88vh; overflow-y: auto;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px -12px rgba(0,42,84,.35);
    padding: 0 10px 10px;
    background: var(--bg);
  }
  .kasir-kanan.buka {
    transform: translateY(0);
    visibility: visible;
    transition: transform .22s ease, visibility 0s linear 0s;
  }
  .kasir-kanan .panel { border-radius: 14px; }
  .keranjang-isi { max-height: none; }
  .tutup-sheet { display: inline-flex; }

  .kasir-bar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
    display: flex; align-items: center; gap: 10px;
    padding: 11px 15px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--navy); color: #fff; font: inherit; font-size: 12.5px;
    box-shadow: 0 10px 28px -10px rgba(0,42,84,.65);
  }
  .kb-kiri { display: inline-flex; align-items: center; gap: 6px; }
  .kb-kiri svg { width: 15px; height: 15px; stroke-width: 2; }
  .kb-total { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
  .kb-aksi { color: var(--cyan); font-size: 11.5px; font-weight: 600; }
}

@media (max-width: 560px) {
  .kartu-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 8px; }
  .kartu-produk { min-height: 86px; padding: 9px 10px; }
  .kj-baris { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; padding: 9px 12px; }
  .kj-sub { min-width: 58px; font-size: 11.5px; }
}

/* ══ KASIR: scan barcode, diskon %, struk cetak ═══════════════════════════ */

/* Jalur scan: scanner USB mengetik kode + Enter ke kolom ini. */
.pindai-baris { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.pindai-input {
  position: relative; flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
  background: var(--surface-2, #f4f5f7); border: 1px solid var(--line);
  border-radius: 10px; padding: 0 11px; transition: border-color .15s, box-shadow .15s;
}
.pindai-input svg { width: 17px; height: 17px; color: var(--ink-3); flex: 0 0 auto; }
.pindai-input input {
  border: 0; background: transparent; outline: none; width: 100%; padding: 9px 0;
  font: inherit; color: var(--ink); letter-spacing: .4px;
}
.pindai-input:focus-within {
  border-color: var(--accent, #1f6feb);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}
.pindai-info {
  margin: 0 0 12px; padding: 8px 11px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.45;
  background: #eef2ff; color: #1e3a8a; border: 1px solid #dbe3ff;
}
.pindai-info.is-ok  { background: #e9f8ef; color: #0f6b3a; border-color: #c8ecd7; }
.pindai-info.is-bad { background: #fdecec; color: #8f1d1d; border-color: #f7d3d3; }
.pindai-video {
  width: 100%; max-width: 420px; border-radius: 12px; margin-bottom: 12px;
  background: #000; display: block;
}

/* Diskon: pilih Rp atau % */
.diskon-baris { display: flex; gap: 8px; align-items: center; }
.diskon-baris input { flex: 1 1 auto; min-width: 0; }
.seg {
  display: inline-flex; border: 1px solid var(--line); border-radius: 9px;
  overflow: hidden; flex: 0 0 auto;
}
.seg-btn {
  border: 0; background: transparent; padding: 8px 11px; font: inherit;
  font-size: 12.5px; font-weight: 600; color: var(--ink-3); cursor: pointer;
  transition: background .12s, color .12s;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn.is-on { background: var(--ink, #1c2333); color: #fff; }
.seg-btn:hover:not(.is-on) { background: var(--surface-2, #f4f5f7); }
.diskon-hasil {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--ink-2);
  min-width: 78px; text-align: right;
}

/* Struk pelanggan — lebar kertas termal 80 mm */
.struk-cetak {
  width: 300px; max-width: 100%; margin: 0 auto; background: #fff; color: #111;
  border: 1px solid var(--line); border-radius: 8px; padding: 16px 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Courier New", monospace;
  font-size: 11.5px; line-height: 1.5;
}
.sc-toko {
  text-align: center; font-size: 14px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
}
.sc-kecil { font-size: 10.5px; color: #444; }
.sc-tengah { text-align: center; margin-top: 8px; }
.sc-garis { border-top: 1px dashed #999; margin: 8px 0; }
.sc-baris { display: flex; justify-content: space-between; gap: 10px; }
.sc-baris span:last-child { text-align: right; white-space: nowrap; }
.sc-item { margin-top: 4px; word-break: break-word; }
.sc-total { font-weight: 700; font-size: 12.5px; margin-top: 2px; }
.sc-batal { text-align: center; font-weight: 700; margin-top: 6px; }

/* Cetak: hanya struk yang tampil, sisanya disembunyikan.
   Teknik visibility dipakai karena tata letak panel bertingkat — kalau pakai
   display:none pada induknya, struk di dalamnya ikut hilang. */
/* ── Laporan ────────────────────────────────────────────────────────────── */
.lap-kontrol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.lap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lap-chip {
  font-size: 12px; font-weight: 600; padding: 6px 11px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.lap-chip:hover { background: var(--bg); }
.lap-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }

.lap-tanggal { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lap-tanggal input[type="date"] {
  padding: 6px 9px; font-size: 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  font-family: inherit;
}
.lap-tanggal span { font-size: 12px; color: var(--ink-3); }
.lap-aksi { margin-left: auto; display: flex; gap: 8px; }

.lap-judul {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.lap-judul h2 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; }
.lap-judul p { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.lap-judul-kanan { text-align: right; font-size: 11.5px; color: var(--ink-3); }
.lap-judul-kanan span { display: block; }

.lap-grafik {
  display: flex; align-items: flex-end; gap: 3px;
  height: 168px; padding-top: 6px;
}
.lap-batang {
  flex: 1 1 0; min-width: 0; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
}
.lap-batang-isi {
  background: var(--navy); border-radius: 3px 3px 0 0; min-height: 2px;
  transition: filter .12s;
}
.lap-batang:hover .lap-batang-isi { filter: brightness(1.35); }
/* Hari tanpa penjualan tetap kelihatan sebagai garis tipis abu-abu, supaya
   lubang di grafik terbaca sebagai "tidak ada omzet", bukan data hilang. */
.lap-batang-isi.is-kosong { background: #e6eaee; min-height: 3px; }
.lap-batang-label {
  display: block; font-size: 10px; color: var(--ink-3); text-align: center;
  margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: clip;
}
/* Periode panjang: label tiap batang terlalu rapat, sembunyikan separuh. */
@media (max-width: 720px) {
  .lap-batang:nth-child(even) .lap-batang-label { visibility: hidden; }
}

.lap-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .lap-dua { grid-template-columns: 1fr; } }

.lap-baris { margin-bottom: 14px; }
.lap-baris:last-child { margin-bottom: 0; }
.lap-baris-kepala {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; margin-bottom: 5px;
}
.lap-baris-kepala b { font-variant-numeric: tabular-nums; }
.lap-track { height: 7px; background: #eef1f4; border-radius: 20px; overflow: hidden; }
.lap-isi { height: 100%; background: var(--teal); border-radius: 20px; }
.lap-baris-kaki { font-size: 11px; color: var(--ink-3); margin-top: 4px; }

.lap-jam { display: flex; align-items: flex-end; gap: 2px; height: 96px; }
.lap-jam-batang { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.lap-jam-isi { width: 100%; background: var(--gold); border-radius: 2px 2px 0 0; }
.lap-jam-isi.is-kosong { background: #eef1f4; }
.lap-jam-label {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--ink-3); margin-top: 5px;
}

.lap-nomor { color: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* Hanya muncul di kertas (cap waktu cetak). Dipasangkan dengan
   `.lap-judul-kanan span` yang menang spesifisitas, jadi perlu selektor penuh. */
.hanya-cetak { display: none; }
.lap-judul-kanan .hanya-cetak { display: none; }
.lap-sku { font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 1px; }
.lap-angka { font-variant-numeric: tabular-nums; }
.lap-angka.is-minus { color: var(--bad); }
.lap-kosong { font-size: 12.5px; color: var(--ink-3); }

/* Rincian kinerja kasir — dibuka dari tabel "Kinerja kasir". */
.lap-kasir {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--navy); font-weight: 600; text-decoration: none;
}
.lap-kasir:hover { text-decoration: underline; }
.lap-kasir-ico { display: inline-flex; color: var(--ink-3); }
.lap-kasir:hover .lap-kasir-ico { color: var(--navy); }
.tbl tr.is-pilih { background: var(--bg); }
.tbl tr.is-pilih .lap-kasir { text-decoration: underline; }
.lap-rinci {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.lap-rinci-kotak {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: var(--bg);
}
.lap-rinci-kotak span {
  display: block; font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .4px; margin-bottom: 3px;
}
.lap-rinci-kotak b {
  font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink);
}
.lap-lencana { display: flex; flex-wrap: wrap; gap: 6px; }
.lap-lencana-item {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; font-size: 12px; background: var(--card);
}
.lap-lencana-item b { color: var(--navy); font-variant-numeric: tabular-nums; }

/* ── Notifikasi pelanggan ─────────────────────────────────────────────────── */
.notif-kanal { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.notif-kartu {
  border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  background: var(--card); display: flex; flex-direction: column; gap: 10px;
}
.notif-kartu.is-on { border-color: var(--ok, #16a34a); box-shadow: 0 0 0 1px var(--ok, #16a34a) inset; }
.notif-kartu-kepala { display: flex; align-items: center; gap: 9px; }
.notif-kartu-kepala b { font-size: 13.5px; }
.notif-kartu-kepala span { font-size: 11.5px; color: var(--ink-3); }
.notif-saklar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
/* Satu blok = satu kejadian. Ditumpuk ke bawah (bukan grid berkolom):
   isi pesan butuh lebar penuh supaya enak dibaca dan ditulis. */
.notif-kejadian {
  display: grid; gap: 10px; grid-template-columns: 1fr;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: var(--card);
  margin-bottom: 10px;
}
.notif-kejadian:last-child { margin-bottom: 0; }
.notif-kejadian-head b { font-size: 13px; }
.notif-kejadian-head span { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.notif-kejadian textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.notif-kejadian .dua { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.notif-kejadian .sakelar { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.notif-baris {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: var(--bg);
}
.notif-baris-teks { flex: 1; min-width: 0; }
.notif-baris-teks b { display: block; font-size: 12.5px; }
.notif-baris-teks span { font-size: 11.5px; color: var(--ink-3); }
.notif-tpl { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.notif-tpl button {
  font-family: var(--mono); font-size: 11px; cursor: pointer;
  border: 1px dashed var(--line); border-radius: 6px;
  padding: 2px 7px; background: var(--card); color: var(--ink-2);
}
.notif-tpl button:hover { border-color: var(--navy); color: var(--navy); border-style: solid; }
.notif-log { font-size: 12px; }
.notif-log .gagal { color: var(--bad); }
.notif-log .ok { color: var(--ok, #16a34a); }
.notif-catatan { font-size: 11.5px; color: var(--ink-3); line-height: 1.6; margin-top: 8px; }

/* Panduan onboarding: dilipat, terbuka sendiri selama kanal belum siap. */
.notif-panduan { margin-bottom: 16px; }
.notif-panduan > summary {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; cursor: pointer; list-style: none;
  border-radius: inherit;
}
.notif-panduan > summary::-webkit-details-marker { display: none; }
.notif-panduan > summary svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; stroke-width: 2; color: var(--teal); }
.notif-panduan > summary span { display: block; min-width: 0; }
.notif-panduan > summary b { font-size: 13.5px; }
.notif-panduan > summary em {
  display: block; font-style: normal; font-size: 11.5px;
  color: var(--ink-3); margin-top: 2px; line-height: 1.5;
}
.notif-panduan[open] > summary { border-bottom: 1px solid var(--line); }
.notif-langkah {
  margin: 0; padding: 0; list-style: none; counter-reset: nlangkah;
  display: grid; gap: 11px;
}
.notif-langkah li {
  counter-increment: nlangkah; position: relative;
  padding-left: 32px; font-size: 12.5px; line-height: 1.65; color: var(--ink-2);
}
.notif-langkah li::before {
  content: counter(nlangkah);
  position: absolute; left: 0; top: 1px;
  width: 21px; height: 21px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: rgba(15,32,39,.08); color: var(--navy);
}
.notif-langkah li b { color: var(--ink); }
.notif-tabel {
  width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12px;
}
.notif-tabel th {
  text-align: left; font-size: 10.5px; letter-spacing: .4px; text-transform: uppercase;
  color: var(--ink-3); font-weight: 700; padding: 7px 9px;
  border-bottom: 1px solid var(--line);
}
.notif-tabel td { padding: 7px 9px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.notif-tabel tr:last-child td { border-bottom: 0; }
.notif-tabel code {
  font-size: 11.5px; background: rgba(15,32,39,.05);
  padding: 1px 5px; border-radius: 4px;
}
@media (max-width: 640px) {
  .notif-tabel { display: block; overflow-x: auto; white-space: nowrap; }
}
.notif-badge-paket {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  border-radius: 999px; padding: 3px 9px;
  background: rgba(201,162,39,.14); color: #8a6d10;
}
.lap-catatan {
  font-size: 11.5px; color: var(--ink-3); line-height: 1.65;
  margin: 2px 2px 18px; max-width: 78ch;
}

/* ── Cetak ────────────────────────────────────────────────────────────────
   Dua mode cetak, dipilih lewat kelas di <body> supaya tidak saling ganggu:
     body.cetak-struk   → struk pelanggan 80 mm (kasir)
     body.cetak-laporan → laporan A4 (halaman laporan)
   Kelas dipasang tombolnya masing-masing tepat sebelum window.print(). */
@page struk   { size: 80mm auto; margin: 4mm; }
@page laporan { size: A4 portrait; margin: 12mm; }

@media print {
  /* ── Struk 80 mm: hanya struk yang terlihat ── */
  body.cetak-struk * { visibility: hidden !important; }
  body.cetak-struk .struk-cetak,
  body.cetak-struk .struk-cetak * { visibility: visible !important; }
  body.cetak-struk .struk-cetak {
    position: absolute; left: 0; top: 0; width: 80mm; max-width: 80mm;
    border: 0; border-radius: 0; padding: 0; margin: 0; font-size: 11px;
    page: struk;
  }

  /* ── Laporan A4: menu & tombol dibuang, isi mengalir penuh ── */
  body.cetak-laporan { background: #fff; }
  /* .shell adalah grid 252px + 1fr; kalau kolomnya tidak dilepas, isi laporan
     terjepit di kolom kanan walau sidebar sudah display:none. */
  body.cetak-laporan .shell { display: block !important; }
  body.cetak-laporan .sidebar,
  body.cetak-laporan .topbar,
  body.cetak-laporan .lap-kontrol,
  body.cetak-laporan .tanpa-cetak { display: none !important; }
  body.cetak-laporan .main {
    margin: 0 !important; padding: 0 !important; width: 100% !important;
  }
  body.cetak-laporan .content { padding: 0 !important; max-width: none !important; }
  body.cetak-laporan .lap-cetak { page: laporan; width: 100% !important; }
  body.cetak-laporan .panel,
  body.cetak-laporan .stat {
    box-shadow: none; border-color: #cfd6dc; break-inside: avoid;
  }
  body.cetak-laporan .panel { margin-bottom: 10px; }
  body.cetak-laporan .lap-grafik { height: 120px; }
  body.cetak-laporan .stats { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  body.cetak-laporan .stat-value { font-size: 16px; }
  body.cetak-laporan .lap-dua { grid-template-columns: 1fr 1fr; }
  body.cetak-laporan .hanya-cetak { display: block !important; }

  .tanpa-cetak { display: none !important; }
}

/* ── Halaman Data Toko ──────────────────────────────────────────────────── */

/* Tombol unggah foto: input asli disembunyikan supaya teks bawaan browser
   ("No file chosen") tidak terpotong di kolom tabel yang sempit. */
.unggah-asli {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.unggah-tombol {
  display: inline-block;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--navy, #0B203E);
  background: #fff;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.unggah-tombol:hover { border-color: var(--navy, #0B203E); }

/* Nama berkas yang dipilih, ditempel di bawah tombol oleh JS kecil di halaman. */
.unggah-nama {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #6b7785;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Nama kelas bersama (dipakai halaman Data Toko & Akuntansi) ──────────── */
/* Halaman Data Toko memakai nama kelas ini; sebelumnya belum ada di CSS
   sehingga kartunya tampil polos tanpa bingkai. Disamakan dengan .panel. */
.kartu {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 16px;
}
.kartu-kepala {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.kartu-judul { font-size: 14.5px; font-weight: 700; letter-spacing: -.2px; }
/* Status di kepala kartu selalu menempel di kanan, bukan mengambang di
   tengah setelah judul. */
.kartu-kepala > .chip { margin-left: auto; }
.teks-redup { color: var(--ink-3); font-size: 12.5px; line-height: 1.55; }
.stat-angka { font-size: 22px; font-weight: 700; letter-spacing: -.7px; font-variant-numeric: tabular-nums; }
.baris-tombol { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-utama { background: var(--navy); color: #fff; }
.btn-utama:hover { filter: brightness(1.18); }

/* Tombol bergaris: aksi sekunder yang tetap terlihat bisa ditekan.
   Sebelumnya kelas ini dipakai di banyak halaman TANPA definisi CSS,
   sehingga tampil sebagai tombol bawaan peramban (abu-abu, seperti mati). */
.btn-garis {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-2, #CBD5E1);
}
.btn-garis:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--white);
}
.kosong-dalam { padding: 26px 18px; text-align: center; color: var(--ink-3); font-size: 12.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.5;
  background: #eef1f4; color: var(--ink-2); white-space: nowrap;
}
.chip-ok   { background: var(--ok-soft);   color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad  { background: var(--bad-soft);  color: var(--bad); }
.chip-mati { background: #eef1f4; color: var(--ink-3); }
.chip-debit  { background: #e7f0fb; color: #1c4f8a; }
.chip-kredit { background: #f2e9fb; color: #6b3fa0; }

/* ── Metode pembayaran & QRIS (Dewi, 28 Okt 2026) ────────────────────────── */
.daftar-metode-dash { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.metode-dash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.metode-dash:hover { border-color: #c9d2de; }
.metode-dash.is-mati { background: #fafbfc; cursor: not-allowed; }
.metode-dash input[type="checkbox"] {
  flex: 0 0 auto; width: 16px; height: 16px; margin: 2px 0 0;
}
.metode-dash b { display: block; font-size: 13.5px; }
.metode-dash small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.metode-kurang { display: block; font-style: normal; font-size: 11.5px; color: var(--warn); margin-top: 4px; }

.qris-dash { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.qris-dash-gambar {
  width: 132px; height: 132px; object-fit: contain;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px;
}
.qris-dash-teks b { display: block; font-size: 13px; }
.qris-dash-teks .teks-redup { display: block; margin-top: 2px; }

/* Diskon: penanda baris Potongan Penjualan di jurnal & kolom Diskon pesanan */
.chip-diskon { background: #fdeee6; color: #a3541f; }
.num-diskon  { color: #a3541f; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Bagan akun (Akuntansi) ──────────────────────────────────────────────── */
.aku-kelompok + .aku-kelompok { border-top: 1px solid var(--line); }
.aku-kepala {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 18px; background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
.aku-kepala h3 { font-size: 12.5px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; color: var(--ink-2); }
.aku-kepala .aku-awalan {
  font-size: 10.5px; font-weight: 700; color: var(--ink-3);
  background: #eef1f4; border-radius: 6px; padding: 2px 6px;
}
.aku-kepala .aku-jumlah { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.aku-kode { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.aku-nama { font-weight: 600; }
.aku-catatan { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.aku-aksi { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.aku-nonaktif .aku-nama, .aku-nonaktif .aku-kode { color: var(--ink-3); font-weight: 500; }
.aku-nonaktif td { background: #fcfcfd; }

.aku-form { display: grid; grid-template-columns: 130px 1fr 160px 130px; gap: 12px; align-items: end; }
.aku-form .field { margin: 0; }
.aku-form .field label { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.aku-form .field .petunjuk { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.aku-form .field.is-salah input, .aku-form .field.is-salah select { border-color: var(--bad); }
.aku-form .field .galat { font-size: 11px; color: var(--bad); margin-top: 4px; }
.aku-form-aksi { display: flex; gap: 8px; align-items: center; margin-top: 14px; }

@media (max-width: 860px) {
  .aku-form { grid-template-columns: 1fr 1fr; }
  .aku-form .field.is-lebar { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .aku-form { grid-template-columns: 1fr; }
  .aku-aksi { justify-content: flex-start; }
}

/* ── Tab modul Akuntansi ─────────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}
.tab-item {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 0;
  min-width: 132px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.tab-item:hover { background: #F6F8FB; }
.tab-item .tab-ikon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: #EEF2F8;
  color: var(--ink-2);
}
.tab-item .tab-ikon svg { width: 17px; height: 17px; }
.tab-item .tab-teks { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.tab-item .tab-teks b { font-size: 14px; font-weight: 600; }
.tab-item .tab-teks small {
  font-size: 11.5px;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tab-item.is-on { background: var(--navy); color: #fff; }
.tab-item.is-on .tab-ikon { background: rgba(255, 255, 255, .16); color: #fff; }
.tab-item.is-on .tab-teks small { color: rgba(255, 255, 255, .74); }

/* Kotak centang "akun kas/bank" di form bagan akun */
.aku-centang {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #FAFBFD;
  cursor: pointer;
}
.aku-centang input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--navy); }
.aku-centang span { display: flex; flex-direction: column; gap: 2px; }
.aku-centang b { font-size: 13.5px; }
.aku-centang small { font-size: 12px; color: var(--ink-3); line-height: 1.45; }

@media (max-width: 640px) {
  .tab-nav { gap: 6px; padding: 5px; }
  .tab-item { min-width: 0; padding: 9px 10px; gap: 7px; }
  .tab-item .tab-ikon { width: 28px; height: 28px; flex: 0 0 28px; }
  .tab-item .tab-teks b { font-size: 13px; }
  .tab-item .tab-teks small { font-size: 10.5px; }
}

/* ── Pemesanan Stok (PO) ─────────────────────────────────────────────────── */
.po-invoice { border: 1px solid #e3e7ef; }
.po-aksi-atas { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.po-kepala {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 18px;
  margin: 14px 0 6px;
  padding: 14px 16px;
  background: #f7f8fa;
  border-radius: 10px;
}
.po-kepala span {
  display: block;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #7b8598;
  margin-bottom: 2px;
}
.po-kepala b { font-size: 14px; color: #14213d; }
.po-catatan { margin: 12px 0 0; font-size: 13.5px; color: #46506a; }
.po-aksi { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.po-aksi form { display: flex; gap: 8px; align-items: center; margin: 0; }
.po-tolak input[type="text"] {
  padding: 8px 11px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  min-width: 200px;
}
.po-setuju button { min-width: 96px; }

/* Bukti transfer */
.po-bukti {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #d8dce5;
}
.po-bukti h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 14px;
  color: #14213d;
}
.po-berkas { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.po-berkas li {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: #f7f8fa;
  border-radius: 8px;
  font-size: 13px;
}
.po-berkas a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #14213d; }
.po-berkas small { color: #7b8598; }
.po-berkas form { margin: 0 0 0 auto; }
.po-unggah { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.po-berkas-pilih input[type="file"] { display: none; }
.po-berkas-pilih span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px dashed #b9c0cf;
  border-radius: 9px;
  font-size: 13px;
  color: #46506a;
  cursor: pointer;
  background: #fff;
}
.po-berkas-pilih span:hover { border-color: #14213d; color: #14213d; }
.po-bantuan { font-size: 12.5px; color: #7b8598; }

/* Form invoice */
.po-form { margin-top: 4px; }
.po-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 16px;
  margin-bottom: 18px;
}
.po-f { display: flex; flex-direction: column; gap: 5px; font-size: 13px; }
.po-f > span { color: #46506a; font-weight: 600; }
.po-f > span b { color: #c0392b; }
.po-f input, .po-f textarea {
  padding: 9px 11px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
}
.po-f input:focus, .po-f textarea:focus { outline: 2px solid #c7d2fe; border-color: #14213d; }
.po-f-full { margin-top: 14px; }
.po-sub { margin: 0 0 8px; font-size: 13.5px; color: #14213d; }
.po-tabel select, .po-tabel input {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #d8dce5;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  background: #fff;
}
.po-tabel .po-subtotal { font-weight: 600; white-space: nowrap; }
.po-hapus-baris {
  width: 28px;
  height: 28px;
  border: 1px solid #e3e7ef;
  background: #fff;
  border-radius: 7px;
  color: #97a0b3;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.po-hapus-baris:hover { border-color: #c0392b; color: #c0392b; }
.po-galat { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.po-kecil { display: block; font-size: 11.5px; color: #8b93a5; }
.po-saring { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.po-saring input, .po-saring select {
  padding: 8px 10px;
  border: 1px solid #d8dce5;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

@media (max-width: 640px) {
  .po-saring { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  /* Kolom pencarian selebar baris pertama supaya placeholder tidak terpotong;
     dropdown status + tombol Saring berbagi baris kedua. */
  .po-saring input[type="search"] { grid-column: 1 / -1; width: 100%; min-width: 0; }
  .po-saring select { min-width: 0; width: 100%; }
  .po-tolak { width: 100%; }
  .po-tolak input[type="text"] { flex: 1; min-width: 0; }
  .po-aksi-atas { width: 100%; margin-left: 0; }
}


/* ── Data Toko: daftar ringkas + form sunting + editor berformat ──────────
   Revisi Abi: daftar produk cukup nama + tombol Edit. Semua isian pindah ke
   form satu produk supaya kolomnya lega, termasuk di layar HP. */

.dt-daftar { list-style: none; margin: 0; padding: 0; }

.dt-baris {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.dt-baris:last-child { border-bottom: 0; }

.dt-tanda {
  width: 8px; height: 8px; border-radius: 50%;
  flex: 0 0 auto; background: var(--line);
}
.dt-tanda.is-siap { background: var(--ok); }
.dt-tanda.is-kurang { background: #E8A33D; }

.dt-nama {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dt-chip { display: flex; gap: 4px; flex-wrap: wrap; flex: 0 0 auto; }
.dt-edit { flex: 0 0 auto; }

@media (max-width: 640px) {
  .dt-chip { display: none; }
}

/* Form sunting satu produk */
.sunting-grid {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
}
@media (max-width: 760px) {
  .sunting-grid { grid-template-columns: minmax(0, 1fr); }
}

.foto-kotak {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #FAFBFC;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.foto-kotak img { width: 100%; height: 100%; object-fit: cover; }
.foto-kosong { font-size: 12px; color: var(--ink-3, #8A94A6); }

.foto-hapus {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2); margin-top: 6px; cursor: pointer;
}

.dua-kolom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .dua-kolom { grid-template-columns: minmax(0, 1fr); }
}

/* Editor deskripsi — lebar seperti kolom blog, bukan kotak sempit */
.rte {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rte:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(35,118,153,.12); }

.rte-bilah {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  background: #F7F9FB;
  border-bottom: 1px solid var(--line);
}

.rte-tombol {
  font: inherit;
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.rte-tombol:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.rte-tombol:active { background: #EEF3F8; }

.rte-pisah {
  width: 1px; height: 18px;
  background: var(--line);
  margin: 0 4px;
}

.rte-isi {
  min-height: 320px;
  max-height: 640px;
  overflow-y: auto;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  outline: none;
}
.rte-isi:empty::before {
  content: attr(data-kosong);
  color: #9AA5B4;
  pointer-events: none;
}
.rte-isi.is-kosong::before {
  content: attr(data-kosong);
  color: #9AA5B4;
  pointer-events: none;
}
.rte-isi h2 { font-size: 19px; margin: 18px 0 8px; }
.rte-isi h3 { font-size: 16px; margin: 16px 0 6px; }
.rte-isi p { margin: 0 0 12px; }
.rte-isi ul, .rte-isi ol { margin: 0 0 12px; padding-left: 22px; }
.rte-isi li { margin-bottom: 5px; }
.rte-isi blockquote {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-left: 3px solid var(--teal);
  background: #F7F9FB;
  color: var(--ink-2);
}
.rte-isi a { color: var(--teal); text-decoration: underline; }

/* Atur tampilan */
.tema-warna {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.warna-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.warna-isian { display: flex; align-items: center; gap: 8px; }
.warna-isian input[type="color"] {
  width: 56px; height: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
  flex: 0 0 auto;
}
.warna-isian input[type="color"]:hover { border-color: var(--teal); }
.warna-kode {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 12px;
  color: var(--ink-2);
}

.blok-daftar { display: flex; flex-direction: column; gap: 8px; }

.blok-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: grab;
}
.blok-item:active { cursor: grabbing; }
.blok-item.is-seret { opacity: .45; border-style: dashed; }

.blok-grip { color: #A8B3C2; font-size: 12px; letter-spacing: -2px; flex: 0 0 auto; }
.blok-nama { flex: 1 1 auto; font-size: 14px; font-weight: 600; color: var(--ink); }
.blok-centang {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2); flex: 0 0 auto; cursor: pointer;
}

/* ── Napas di dalam kartu ─────────────────────────────────────────────────
   Sebagian isi kartu dipasang langsung di bawah kepala kartu tanpa pembungkus
   .panel-body / .kartu-isi — misalnya formulir pemesanan stok, daftar produk
   Data Toko, dan keadaan kosong. Tanpa aturan ini isinya menempel ke tepi
   kartu, dan di layar HP kolom paling kanan ikut terpotong.

   Yang dikecualikan: kepala kartu (sudah punya padding sendiri) dan
   .panel-body (pembungkus resmi, padding-nya sudah diatur di atas). */
.panel > *:not(.panel-head):not(.panel-body):not(table),
.kartu > *:not(.kartu-kepala):not(.kartu-isi) {
  padding-left: 18px;
  padding-right: 18px;
}
/* Beri napas di tepi bawah kartu. Tanpa ini, elemen terakhir menempel
   1 px dari tepi (terukur pada kartu "Toko online", 4 Nov 2026). */
.kartu > *:last-child:not(.kartu-kepala) { padding-bottom: 16px; }

/* Badan kartu: satu wadah dengan padding penuh, supaya isi kartu tidak
   perlu menempelkan padding sendiri-sendiri di setiap elemen. */
.kartu-isi { padding: 16px 18px; }
.kartu-isi > *:first-child { margin-top: 0; }
.kartu-isi > *:last-child { margin-bottom: 0; }

/* Baris pilihan (checkbox) yang bisa ditekan dengan nyaman di HP.
   Kotak centang bawaan hanya 13x13 px — terlalu kecil untuk jari. */
.pilih-baris {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px; border: 1px solid var(--line);
  border-radius: var(--radius-sm, 8px);
  font-size: 13px; line-height: 1.5; cursor: pointer;
  background: var(--white);
  transition: border-color .12s, background .12s;
}
.pilih-baris:hover { border-color: var(--teal); background: #F7FBFF; }
.pilih-baris input[type="checkbox"] {
  width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 auto;
  accent-color: var(--teal); cursor: pointer;
}
.pilih-baris b { font-weight: 600; }
.pilih-baris .pilih-jml { color: var(--ink-3); font-size: 11.5px; }
.pilih-kisi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

/* Keadaan kosong: sebelumnya kelas .kosong tidak punya gaya sama sekali,
   jadi ikon dan teksnya menempel ke sudut kartu. */
.kosong {
  padding: 34px 18px;
  text-align: center;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.6;
}
.kosong b { display: block; margin-bottom: 4px; color: var(--ink-2); font-size: 13px; }
.kosong-ikon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 auto 10px;
  border-radius: 50%; background: #f1f4f7; color: var(--ink-3);
}

/* Baris daftar produk: 2px terlalu mepet, jadikan 14px di dalam kartu. */
.dt-baris { padding: 12px 14px; }

@media (max-width: 640px) {
  .panel > *:not(.panel-head):not(.panel-body):not(table),
  .kartu > *:not(.kartu-kepala):not(.kartu-isi) {
    padding-left: 14px;
    padding-right: 14px;
  }
  .panel-head, .kartu-kepala { padding: 14px; }
  .panel-body { padding: 14px; }
  .panel, .kartu { margin-bottom: 12px; }
  .dt-baris { padding: 11px 12px; }
  .kosong { padding: 28px 14px; }
}


/* ── Pesan kilat (alert) — dipakai banyak halaman ───────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 0 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: .92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.alert-ok  { background: #e9f7ef; color: #14532d; border-color: #bfe5cd; }
.alert-err { background: #fdecec; color: #7f1d1d; border-color: #f5c2c2; }
@media (max-width: 640px) {
  .alert { padding: 11px 14px; font-size: .88rem; }
}


/* ── Pencarian daerah Biteship (setelan ekspedisi) ───────────────────────── */
.daftar-daerah {
  list-style: none;
  margin: 8px 0 0;
  padding: 6px;
  border: 1px solid #E4D9C8;
  border-radius: 12px;
  background: #fff;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 10px 26px rgba(11, 32, 62, .08);
}
.daftar-daerah li {
  padding: 9px 11px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.daftar-daerah li b { font-size: 13.5px; line-height: 1.35; }
.daftar-daerah li span { font-size: 12px; color: #6B7280; }
.daftar-daerah li:hover, .daftar-daerah li:focus-visible { background: #F3EFE7; outline: none; }

/* ── Kotak QRIS di halaman Langganan ─────────────────────────────────────── */
.qris-kotak {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid #E3DCCD;
  border-radius: 12px;
  background: #FBF8F2;
}
.qris-kotak img {
  display: block;
  width: 240px;
  height: 240px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #E3DCCD;
  border-radius: 10px;
  padding: 8px;
  flex: 0 0 auto;
}
.qris-kotak .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
@media (max-width: 720px) {
  .qris-kotak { flex-direction: column; align-items: center; text-align: center; }
  .qris-kotak img { width: 220px; height: 220px; }
}

/* Naik paket: berdampingan di layar lebar, bertumpuk penuh di HP supaya
   tombol tidak terpotong di layar 360px. */
.naik-paket { display: flex; gap: 8px; flex-wrap: wrap; }
.naik-paket select { flex: 1 1 180px; min-width: 0; }
.naik-paket .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .naik-paket { flex-direction: column; }
  .naik-paket .btn { width: 100%; }
}

/* ── Kartu tagihan langganan ───────────────────────────────────────────────
   Sebelumnya tagihan disajikan sebagai tabel 6 kolom. Nomor tagihan yang
   panjang (TAG-202610-SLUG-418) mendorong kolom lain sampai berdesakan, dan
   input berkas bawaan browser ("Pilih File / Tidak ada berkas") ikut meluber.
   Sekarang satu tagihan = satu kartu: angka penting di kiri, aksi di kanan,
   dan di HP kartunya menumpuk sendiri tanpa perlu tabel. */
.tagih-daftar { display: grid; gap: 12px; }

.tagih {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.tagih-kiri { min-width: 0; }

.tagih-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tagih-periode { font-size: 12px; font-weight: 600; color: var(--ink-2); }

.tagih-total {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 4px;
}

.tagih-rinci { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }

.tagih-nomor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  min-width: 0;
  font-size: 11.5px;
  color: var(--ink-2);
}
.tagih-nomor > span { flex: 0 0 auto; font-weight: 600; }
.tagih-nomor code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  /* Nomor tagihan lama bisa sangat panjang; beri izin putus di mana saja
     supaya tidak mendorong kartu melebar keluar layar. */
  overflow-wrap: anywhere;
  min-width: 0;
}

.tagih-kanan { display: grid; gap: 6px; justify-items: end; }
.tagih-aksi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tagih-catatan {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: right;
  max-width: 260px;
}
.tagih-catatan svg { flex: 0 0 auto; }

/* Input berkas disembunyikan; label inilah tombolnya. */
.pilih-berkas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px dashed #c6d2dc;
  border-radius: 8px;
  background: #fbfcfd;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  max-width: 230px;
  transition: border-color .15s, background .15s, color .15s;
}
.pilih-berkas:hover { border-color: var(--teal); color: var(--teal); background: #f2fafc; }
.pilih-berkas:focus-within { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pilih-berkas.is-ada { border-style: solid; border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.pilih-berkas input[type="file"] {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.pilih-berkas > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.pilih-berkas svg { flex: 0 0 auto; }

@media (max-width: 700px) {
  .tagih { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 13px 14px; }
  .tagih-total { font-size: 20px; }
  .tagih-kanan { justify-items: stretch; }
  .tagih-aksi { justify-content: stretch; }
  .tagih-aksi .btn { flex: 1 1 auto; }
  .pilih-berkas { max-width: none; flex: 1 1 100%; justify-content: center; }
  .tagih-catatan { max-width: none; text-align: left; }
}

/* ---- Logo GCO di sidebar & halaman masuk (Dewi 2026-10-22) ---- */
.brand-mark { padding: 0; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }

/* ── Centang kurir (Dewi 27 Okt 2026) ─────────────────────────────────────── */
.pilih-kurir {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.pilih-kurir-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--garis, #e3e7ee);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pilih-kurir-item:hover { border-color: #c9d2e0; }
.pilih-kurir-item:has(input:checked) {
  border-color: #c9a227;
  background: #fffdf4;
  font-weight: 600;
}
.pilih-kurir-item input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #c9a227;
  flex: 0 0 auto;
}
@media (max-width: 520px) {
  .pilih-kurir { grid-template-columns: repeat(2, 1fr); }
}

/* ── Meta Ads (30 Okt 2026) ─────────────────────────────────────────────────
   Halaman /meta-ads: kartu angka, grafik batang belanja harian, dan panel
   pengaturan laporan pagi. Semua kelas berawalan "meta-" supaya tidak
   bertabrakan dengan modul lain. */

.meta-akun {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  justify-content: space-between;
  background: #f6f8fb; border: 1px solid #e3e9f1; border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}
.meta-akun b { display: block; font-size: 15px; color: var(--ink-1, #12233d); }
.meta-akun span { font-size: 12px; color: var(--ink-2, #48586e); }
.meta-akun-status { display: flex; gap: 8px; }

.meta-pilih-hari {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; font-size: 12px; color: var(--ink-2, #48586e);
}
.meta-hari {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid #dbe2ec; background: #fff; color: var(--ink-2, #48586e);
  text-decoration: none; font-size: 12px; font-weight: 600;
}
.meta-hari.aktif { background: #12233d; border-color: #12233d; color: #fff; }

/* Kartu angka ringkasan */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px;
}
.stat {
  border: 1px solid #e3e9f1; border-radius: 10px; padding: 14px 16px; background: #fff;
}
.stat-label { display: block; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: #6b7a90; font-weight: 700; }
.stat-num { display: block; font-size: 21px; font-weight: 800; color: #12233d;
  margin: 6px 0 2px; line-height: 1.2; }
.stat-sub { display: block; font-size: 11px; color: #7a8899; }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.meta-biaya {
  display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: #6b7a90;
  padding: 0 4px 4px;
}
.meta-biaya b { color: #12233d; }

.meta-sub { font-size: 14px; font-weight: 700; color: #12233d; margin: 22px 0 10px; }

/* Grafik batang belanja harian — tanpa pustaka luar, cukup div berketinggian */
.meta-grafik {
  display: flex; align-items: flex-end; gap: 4px; height: 120px;
  padding: 10px 12px; background: #f6f8fb; border: 1px solid #e3e9f1;
  border-radius: 10px; margin-bottom: 6px;
}
.meta-batang {
  flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; height: 100%; position: relative;
}
.meta-batang-isi {
  width: 100%; max-width: 26px; background: linear-gradient(180deg, #2f6fd0, #12233d);
  border-radius: 4px 4px 0 0; min-height: 3px;
}
.meta-batang-label { font-size: 10px; color: #7a8899; margin-top: 4px; line-height: 1; }

.meta-chip {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px;
  border-radius: 999px; background: #eaf1fb; color: #2f6fd0; margin-left: 4px;
  vertical-align: middle;
}

.meta-panduan {
  background: #f6f8fb; border: 1px solid #e3e9f1; border-radius: 10px;
  padding: 16px 20px; margin-top: 4px;
}
.meta-panduan h3 { font-size: 14px; margin: 0 0 10px; color: #12233d; }
.meta-panduan ol { margin: 0 0 10px; padding-left: 20px; font-size: 13px;
  color: #48586e; line-height: 1.75; }
.meta-panduan li { margin-bottom: 4px; }
.meta-catatan { font-size: 12px; color: #7a8899; line-height: 1.65; margin: 0; }

.meta-pratinjau { margin: 16px 0; border: 1px solid #e3e9f1; border-radius: 10px; padding: 12px 16px; }
.meta-pratinjau summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #12233d; }
.meta-pre {
  white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.7;
  background: #f6f8fb; border-radius: 8px; padding: 12px 14px; margin: 10px 0 0;
  color: #12233d; font-family: inherit;
}

/* Formulir pengaturan */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid .field-lebar { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field > span {
  display: block; font-size: 12px; font-weight: 600; color: #48586e; margin-bottom: 5px;
}
.field small { display: block; font-size: 11px; color: #7a8899; margin-top: 4px; line-height: 1.5; }
.field .cek { display: flex; align-items: center; gap: 8px; font-size: 13px;
  font-weight: 500; color: #12233d; margin: 6px 0; cursor: pointer; }
/* Pitfall: aturan global input{width:100%} membuat checkbox melebar penuh. */
.field .cek input[type="checkbox"] { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; }

.btn-bahaya { color: #b42318; border-color: #f2c9c4; }
.btn-bahaya:hover { background: #fdecec; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

.tabel td.num, .tabel th.num { text-align: right; white-space: nowrap; }
.tabel-bungkus { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Formulir penyambungan akun (keadaan belum tersambung) */
.meta-form-sambung {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid #e3e9f1;
}
.meta-form-sambung .wajib {
  display: inline-block; font-style: normal; font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: #b42318;
  background: #fdecec; border-radius: 999px; padding: 1px 6px; margin-left: 6px;
  vertical-align: middle;
}
.meta-form-aksi {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 4px;
}
.meta-form-aksi .meta-catatan { margin: 0; }
/* ── Retur & Tukar (30 Okt 2026) ─────────────────────────────────────────── */

.retur-cari {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 4px;
}
.retur-cari .field { margin-bottom: 0; }
.retur-cari .btn { margin-bottom: 1px; }

.retur-asal {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; background: #f6f8fb; border: 1px solid #e3e9f1;
  border-radius: 10px; padding: 13px 16px; margin-bottom: 14px;
}
.retur-asal b { display: block; font-size: 15px; color: #12233d; }
.retur-asal span { font-size: 12px; color: #6b7a90; }

.retur-sku {
  display: inline-block; font-size: 10px; font-weight: 700; color: #7a8899;
  background: #f0f3f7; border-radius: 4px; padding: 1px 5px; margin-left: 5px;
  vertical-align: middle; letter-spacing: .02em;
}

.tabel tr.retur-habis td { opacity: .5; }
.retur-jumlah { width: 84px; text-align: right; padding: 6px 8px; }
.retur-sisa { display: block; font-size: 10px; color: #7a8899; margin-top: 2px; }

.retur-opsi { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e9f1; }
.retur-opsi .field-lebar { grid-column: 1 / -1; }
/* ── Stok Opname (30 Okt 2026) ───────────────────────────────────────────── */

.op-kepala {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; background: #f6f8fb; border: 1px solid #e3e9f1;
  border-radius: 10px; padding: 13px 16px; margin-bottom: 14px;
}
.op-kepala b { display: block; font-size: 15px; color: #12233d; }
.op-kepala span { font-size: 12px; color: #6b7a90; }

.op-ringkas {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px;
}
.op-ringkas > div {
  border: 1px solid #e3e9f1; border-radius: 9px; padding: 10px 12px; background: #fff;
}
.op-ringkas span { display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; color: #7a8899; font-weight: 700; }
.op-ringkas b { display: block; font-size: 16px; color: #12233d; margin-top: 3px; }
@media (max-width: 760px) { .op-ringkas { grid-template-columns: repeat(2, 1fr); } }

.op-minus { color: #b42318; }
.op-plus  { color: #0a7c53; }

.op-cari {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px;
}
.op-cari input[type="text"] {
  flex: 1 1 240px; min-width: 180px; padding: 8px 12px; border: 1px solid #dbe2ec;
  border-radius: 8px; font-size: 13px;
}
.op-cek { display: flex; align-items: center; gap: 7px; font-size: 12px;
  color: #48586e; font-weight: 600; cursor: pointer; margin: 0; }
.op-cek input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 auto; margin: 0; }

/* Tabel panjang: batasi tinggi supaya tombol Sahkan tetap terjangkau */
.op-tabel { max-height: 62vh; overflow-y: auto; }
.op-tabel thead th { position: sticky; top: 0; background: #f6f8fb; z-index: 1; }
.op-input { width: 92px; text-align: right; padding: 6px 8px; font-size: 13px; }
.op-baris.op-kurang { background: #fef6f5; }
.op-baris.op-lebih  { background: #f2fbf7; }
.op-sama { font-size: 11px; color: #9aa7b6; }

.op-aksi {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 0;
}
.op-aksi .meta-catatan, .op-sah .meta-catatan { margin: 0; }
.op-sah {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 16px; border-top: 2px solid #e3e9f1;
}
.op-batal { margin-top: 10px; }
/* ── Cadangan & Pemulihan (30 Okt 2026) ──────────────────────────────────── */

.cad-info {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px;
}
.cad-info > div {
  border: 1px solid #e3e9f1; border-radius: 9px; padding: 12px 14px; background: #f8fafc;
}
.cad-info span { display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; color: #7a8899; font-weight: 700; }
.cad-info b { display: block; font-size: 17px; color: #12233d; margin-top: 3px; }
@media (max-width: 640px) { .cad-info { grid-template-columns: 1fr; } }

.cad-terbaru {
  display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: #0a7c53; background: #e6f6ee; border-radius: 999px;
  padding: 1px 7px; margin-left: 7px; vertical-align: middle;
}
.cad-aksi { white-space: nowrap; }
.cad-aksi .btn { margin-left: 4px; }

.cad-pulih-panel { border: 2px solid #f2c9c4; }
.cad-pulih-form { margin-top: 10px; }
.cad-pulih-form p { font-size: 13px; color: #48586e; margin: 0 0 12px; }
.cad-pulih-form .field { max-width: 460px; }
.cad-pulih-form .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; }
/* ── Pajak / PPN (30 Okt 2026) ───────────────────────────────────────────── */

.pajak-tenang {
  background: #f2f9f5; border: 1px solid #cfe9db; border-radius: 10px;
  padding: 14px 18px; margin-bottom: 18px;
}
.pajak-tenang b { display: block; font-size: 14px; color: #0a6b48; margin-bottom: 4px; }
.pajak-tenang span { font-size: 12.5px; color: #3d6555; line-height: 1.65; }

.pajak-form { margin-top: 4px; }

.pajak-form .pajak-saklar {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid #e3e9f1; border-radius: 10px; padding: 13px 16px; background: #f8fafc;
}
.pajak-form .pajak-saklar input[type="checkbox"] {
  width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px;
}
.pajak-form .pajak-saklar b { display: block; font-size: 13.5px; color: #12233d; margin-bottom: 2px; }
.pajak-form .pajak-saklar small { display: block; font-size: 11.5px; color: #6b7a90; line-height: 1.55; }

.pajak-contoh { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pajak-contoh > div {
  border: 1px solid #e3e9f1; border-radius: 10px; padding: 14px 16px; background: #fff;
}
.pajak-contoh span { display: block; font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; color: #7a8899; font-weight: 700; }
.pajak-contoh b { display: block; font-size: 16px; color: #12233d; margin: 5px 0 4px; }
.pajak-contoh small { font-size: 12px; color: #5b6b80; line-height: 1.6; }
@media (max-width: 700px) { .pajak-contoh { grid-template-columns: 1fr; } }
/* ── Ulasan pembeli (30 Okt 2026) ────────────────────────────────────────── */

.ul-tab {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px;
  border-bottom: 1px solid #e3e9f1; padding-bottom: 0;
}
.ul-tab-item {
  display: inline-block; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  color: #6b7a90; text-decoration: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ul-tab-item b {
  display: inline-block; background: #eef1f6; color: #48586e; border-radius: 999px;
  padding: 0 6px; font-size: 10.5px; margin-left: 3px; min-width: 16px; text-align: center;
}
.ul-tab-item.aktif { color: #12233d; border-bottom-color: #c9a227; }
.ul-tab-item.aktif b { background: #fdf3d4; color: #8a6d09; }

.ul-daftar { display: flex; flex-direction: column; gap: 12px; }
.ul-kartu {
  border: 1px solid #e3e9f1; border-radius: 10px; padding: 14px 16px; background: #fff;
}
.ul-kepala {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.ul-kepala b { font-size: 14px; color: #12233d; margin-right: 8px; }
.ul-bintang { color: #d69e00; font-size: 13px; letter-spacing: 1px; margin-right: 8px; }
.ul-waktu { font-size: 11px; color: #9aa7b6; }
.ul-produk { font-size: 12px; color: #48586e; margin-bottom: 8px; font-weight: 600; }
.ul-sumber {
  font-size: 10px; color: #7a8899; background: #f2f5f9; border-radius: 4px;
  padding: 1px 6px; margin-left: 6px; font-weight: 500;
}
.ul-isi {
  font-size: 13px; color: #2c3b50; line-height: 1.7; margin: 0 0 10px;
  background: #fafbfd; border-left: 3px solid #e3e9f1; padding: 8px 12px; border-radius: 0 6px 6px 0;
}
.ul-balasan {
  background: #f2f9f5; border-radius: 8px; padding: 9px 13px; margin-bottom: 10px;
  font-size: 12.5px; color: #245040; line-height: 1.65;
}
.ul-balasan b { display: block; font-size: 11px; color: #0a6b48; margin-bottom: 2px; }
.ul-aksi { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ul-balas { margin-top: 10px; }
.ul-balas summary {
  cursor: pointer; font-size: 12px; font-weight: 600; color: #2f6fd0; padding: 3px 0;
}
.ul-balas form { margin-top: 8px; }
.ul-balas textarea {
  width: 100%; border: 1px solid #dbe2ec; border-radius: 8px; padding: 9px 12px;
  font-size: 13px; font-family: inherit; resize: vertical; margin-bottom: 8px;
}
/* ═══════════════════════════════════════════════════════════════════════════
   Penyusun Halaman (30 Okt 2026)
   Bagian 1: panel penyusun (halaman /halaman)
   Bagian 2: gaya section — DIPAKAI BERSAMA etalase publik
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Penyusun ─────────────────────────────────────────────────────────── */

.hl-builder {
  display: grid; grid-template-columns: 380px 1fr; gap: 0;
  min-height: calc(100vh - 120px); background: #eef1f6;
  border: 1px solid #dde3ec; border-radius: 12px; overflow: hidden;
}
@media (max-width: 1100px) { .hl-builder { grid-template-columns: 1fr; } }

.hl-panel {
  background: #fff; border-right: 1px solid #dde3ec;
  display: flex; flex-direction: column; max-height: calc(100vh - 120px);
}
@media (max-width: 1100px) { .hl-panel { max-height: none; border-right: 0; border-bottom: 1px solid #dde3ec; } }

.hl-panel-kepala {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid #eef1f6;
}
.hl-panel-kepala b { font-size: 14px; color: #12233d; }
.hl-tbl { padding: 5px 12px !important; font-size: 12px !important; }

.hl-tab {
  display: flex; gap: 2px; padding: 0 10px; border-bottom: 1px solid #e3e9f1;
  overflow-x: auto;
}
.hl-tab-item {
  padding: 10px 11px; font-size: 12px; font-weight: 600; color: #6b7a90;
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap;
}
.hl-tab-item.aktif { color: #12233d; border-bottom-color: #c9a227; }

.hl-panel-isi { padding: 14px 16px 20px; overflow-y: auto; flex: 1; }
.hl-alert { font-size: 12px !important; padding: 9px 12px !important; margin-bottom: 12px !important; }
.hl-petunjuk { font-size: 11.5px; color: #7a8899; margin: 0 0 10px; }

/* Daftar section */
.hl-daftar { list-style: none; margin: 0 0 12px; padding: 0; }
.hl-item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 6px;
  background: #fff; border: 1px solid #e3e9f1; border-radius: 8px; cursor: grab;
  transition: box-shadow .15s, border-color .15s;
}
.hl-item:hover { border-color: #c9d4e3; box-shadow: 0 2px 8px rgba(18,35,61,.06); }
.hl-item.hl-diseret { opacity: .45; border-style: dashed; cursor: grabbing; }
.hl-item.hl-item-mati { opacity: .55; background: #fafbfc; }
.hl-gagang { color: #b7c2d0; font-size: 14px; letter-spacing: -1px; cursor: grab; user-select: none; }
.hl-item-ikon { display: flex; color: #7a8899; }
.hl-item-ikon svg { width: 16px; height: 16px; }
.hl-item-nama { flex: 1; font-size: 12.5px; font-weight: 600; color: #12233d; line-height: 1.35; }
.hl-item-nama small { display: block; font-weight: 400; font-size: 10.5px; color: #8f9daf; }
.hl-item-aksi { display: flex; align-items: center; gap: 2px; }
.hl-ikon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 0; background: none; border-radius: 6px;
  color: #7a8899; cursor: pointer; padding: 0;
}
.hl-ikon svg { width: 15px; height: 15px; }
.hl-ikon:hover { background: #eef1f6; color: #12233d; }
.hl-ikon-bahaya:hover { background: #fdecec; color: #b42318; }
.hl-simpan-urutan { width: 100%; margin-bottom: 16px; }

/* Tambah bagian */
.hl-tambah { border-top: 1px solid #eef1f6; padding-top: 12px; }
.hl-tambah > b { font-size: 12.5px; color: #12233d; display: block; margin-bottom: 9px; }
.hl-tambah-grup { margin-bottom: 11px; }
.hl-tambah-grup > span {
  display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em;
  color: #9aa7b6; font-weight: 800; margin-bottom: 5px;
}
.hl-tambah-butir { display: flex; flex-wrap: wrap; gap: 5px; }
.hl-tambah-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px;
  font-size: 11.5px; font-weight: 600; color: #2c3b50; background: #f6f8fb;
  border: 1px solid #e3e9f1; border-radius: 7px; cursor: pointer;
}
.hl-tambah-btn span { display: flex; color: #7a8899; }
.hl-tambah-btn svg { width: 13px; height: 13px; }
.hl-tambah-btn:hover { background: #fff; border-color: #c9a227; color: #12233d; }

/* Formulir */
.hl-form { display: flex; flex-direction: column; gap: 12px; }
.hl-medan { display: block; }
.hl-medan > span {
  display: block; font-size: 11px; font-weight: 700; color: #48586e; margin-bottom: 4px;
}
.hl-medan input[type="text"], .hl-medan input[type="number"],
.hl-medan select, .hl-medan textarea {
  width: 100%; padding: 8px 11px; font-size: 12.5px; font-family: inherit;
  border: 1px solid #dbe2ec; border-radius: 7px; background: #fff;
}
.hl-medan textarea { resize: vertical; line-height: 1.55; }
.hl-medan small { display: block; font-size: 10.5px; color: #8f9daf; margin-top: 3px; line-height: 1.5; }
.hl-medan code { background: #f2f5f9; padding: 0 4px; border-radius: 3px; font-size: 10px; }
.hl-warna { display: flex; align-items: center; gap: 8px; }
.hl-warna input[type="color"] {
  width: 42px; height: 30px; padding: 2px; border: 1px solid #dbe2ec;
  border-radius: 7px; background: #fff; cursor: pointer;
}
.hl-warna code { font-size: 11px; color: #48586e; }
.hl-form-aksi { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }

.hl-sunting-kepala { margin-bottom: 12px; }
.hl-kembali { font-size: 11.5px; color: #2f6fd0; text-decoration: none; display: inline-block; margin-bottom: 6px; }
.hl-sunting-kepala b { display: block; font-size: 14px; color: #12233d; }

.hl-kosong-panel {
  text-align: center; padding: 26px 16px; background: #f8fafc;
  border: 1px dashed #dbe2ec; border-radius: 10px;
}
.hl-kosong-panel b { display: block; font-size: 13px; color: #12233d; margin-bottom: 5px; }
.hl-kosong-panel span { display: block; font-size: 11.5px; color: #7a8899; line-height: 1.6; margin-bottom: 12px; }

/* Riwayat */
.hl-riwayat { list-style: none; margin: 12px 0 0; padding: 0; }
.hl-riwayat li {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid #eef1f6;
}
.hl-riwayat b { display: block; font-size: 11.5px; color: #12233d; }
.hl-riwayat small { font-size: 10.5px; color: #8f9daf; }

/* ── Pratinjau ───────────────────────────────────────────────────────────── */

.hl-pratinjau { display: flex; flex-direction: column; min-width: 0; background: #eef1f6; }
.hl-bilah {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 14px; background: #fff; border-bottom: 1px solid #dde3ec;
}
.hl-alat { display: flex; gap: 3px; background: #f2f5f9; border-radius: 8px; padding: 3px; }
.hl-alat-btn {
  padding: 5px 12px; font-size: 11.5px; font-weight: 600; color: #6b7a90;
  background: none; border: 0; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.hl-alat-btn.aktif { background: #fff; color: #12233d; box-shadow: 0 1px 3px rgba(18,35,61,.12); }

.hl-kanvas { flex: 1; overflow: auto; padding: 20px; display: flex; justify-content: center; align-items: flex-start; }
.hl-bingkai {
  width: 100%; background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 6px 24px rgba(18,35,61,.10); transition: width .2s ease, max-width .2s ease;
  margin: 0 auto;
}
.hl-lebar-desktop { max-width: 100%; }
.hl-lebar-tablet  { max-width: 768px; }
.hl-lebar-hp      { max-width: 390px; }

.hl-preview-kosong {
  padding: 70px 24px; text-align: center; background: #fafbfd;
}
.hl-preview-kosong b { display: block; font-size: 14px; color: #12233d; margin-bottom: 6px; }
.hl-preview-kosong span { font-size: 12px; color: #7a8899; }

/* ═══ 2. Gaya section — dipakai BERSAMA etalase publik & pratinjau ═════════ */

.hl-halaman {
  --hl-utama: #c9a227; --hl-kedua: #12233d;
  background: #fff; color: #17212f; overflow-x: hidden;
}
.hl-font-modern { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Arial, sans-serif; }
.hl-font-klasik { font-family: Georgia, 'Times New Roman', serif; }

.hl-wadah { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hl-wadah-penuh { width: 100%; }
.hl-bagian { padding: 44px 0; }
.hl-judul { font-size: 22px; font-weight: 800; color: var(--hl-kedua); margin: 0 0 18px; }
.hl-tengah { text-align: center; }
.hl-kosong { font-size: 13px; color: #8f9daf; margin: 0; }

/* Navigasi */
.hl-nav { width: 100%; }
.hl-nav-isi { display: flex; align-items: center; gap: 16px; padding: 13px 20px; }
.hl-nav-merek { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; font-weight: 800; font-size: 15px; }
.hl-nav-merek img { height: 30px; width: auto; display: block; }
.hl-nav-menu { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }
.hl-nav-menu a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.hl-nav-menu a:hover { color: #fff; }
.hl-nav-tombol {
  padding: 7px 15px; background: var(--hl-utama); color: var(--hl-kedua);
  border-radius: 8px; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
@media (max-width: 640px) {
  .hl-nav-isi { flex-wrap: wrap; gap: 10px; }
  .hl-nav-menu { order: 3; width: 100%; margin-left: 0; gap: 12px; }
  .hl-nav-menu a { font-size: 12px; }
}

/* Hero */
.hl-hero { display: flex; align-items: center; padding: 0 20px; }
.hl-hero-kecil { min-height: 240px; }
.hl-hero-sedang { min-height: 380px; }
.hl-hero-besar { min-height: 520px; }
.hl-hero-tengah { text-align: center; }
.hl-hero-kiri { text-align: left; }
.hl-hero h1 { font-size: 38px; line-height: 1.15; margin: 0 0 12px; font-weight: 800; }
.hl-hero p { font-size: 15px; line-height: 1.7; margin: 0 0 20px; opacity: .92; max-width: 620px; }
.hl-hero-tengah p { margin-left: auto; margin-right: auto; }
@media (max-width: 640px) {
  .hl-hero h1 { font-size: 26px; }
  .hl-hero-sedang { min-height: 300px; }
  .hl-hero-besar { min-height: 380px; }
}
.hl-tombol {
  display: inline-block; padding: 11px 24px; background: var(--hl-utama); color: var(--hl-kedua);
  border-radius: 8px; font-size: 13.5px; font-weight: 800; text-decoration: none;
}
.hl-tombol-garis { background: transparent; border: 2px solid currentColor; color: inherit; }

/* Teks */
.hl-teks p { font-size: 14.5px; line-height: 1.8; color: #3a4a5e; margin: 0; max-width: 780px; }
.hl-teks.hl-tengah p { margin-left: auto; margin-right: auto; }

/* Gambar */
.hl-gambar img { display: block; width: 100%; height: auto; }
.hl-gambar-kotak img { border-radius: 12px; }
.hl-gambar .hl-wadah-penuh { max-height: 520px; overflow: hidden; }

/* Produk — kartu */
.hl-grid { display: grid; gap: 16px; }
.hl-grid-2 { grid-template-columns: repeat(2, 1fr); }
.hl-grid-3 { grid-template-columns: repeat(3, 1fr); }
.hl-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .hl-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .hl-grid-3, .hl-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .hl-grid-2 { grid-template-columns: 1fr; }
}

.hl-kartu {
  display: block; text-decoration: none; color: inherit; background: #fff;
  border: 1px solid #e8edf3; overflow: hidden; transition: box-shadow .16s, transform .16s;
}
.hl-kartu:hover { box-shadow: 0 8px 22px rgba(18,35,61,.10); transform: translateY(-2px); }
.hl-lengkung-tajam { border-radius: 0; }
.hl-lengkung-sedang { border-radius: 10px; }
.hl-lengkung-bulat  { border-radius: 18px; }
.hl-kartu-foto { aspect-ratio: 3 / 4; background: #f2f5f9; overflow: hidden; }
.hl-kartu-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hl-kartu-isi { padding: 10px 12px 12px; }
.hl-kartu-nama {
  display: block; font-size: 12.5px; font-weight: 700; line-height: 1.4; color: #17212f;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hl-kartu-harga { margin-top: 5px; font-size: 13px; font-weight: 800; color: var(--hl-kedua); }
.hl-kartu-harga s { font-size: 11px; color: #9aa7b6; font-weight: 500; margin-left: 6px; }

/* Produk — daftar baris */
.hl-baris-daftar { display: flex; flex-direction: column; gap: 8px; }
.hl-baris {
  display: flex; align-items: center; gap: 12px; padding: 9px 13px; text-decoration: none;
  color: inherit; background: #fff; border: 1px solid #e8edf3;
}
.hl-baris:hover { border-color: #c9d4e3; }
.hl-baris img { width: 42px; height: 56px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; }
.hl-baris-nama { flex: 1; font-size: 12.5px; font-weight: 600; }
.hl-baris-harga { font-size: 12.5px; font-weight: 800; color: var(--hl-kedua); white-space: nowrap; }

/* Kategori */
.hl-chip-baris { display: flex; flex-wrap: wrap; gap: 8px; }
.hl-chip {
  display: inline-block; padding: 7px 14px; background: #fff; border: 1px solid #e3e9f1;
  border-radius: 999px; font-size: 12px; font-weight: 600; color: #3a4a5e; text-decoration: none;
}
.hl-chip b { color: #9aa7b6; font-weight: 700; font-size: 10.5px; margin-left: 3px; }
.hl-chip:hover { border-color: var(--hl-utama); }
.hl-kategori-kartu {
  display: block; padding: 16px; background: #fff; border: 1px solid #e8edf3; text-decoration: none; color: inherit;
}
.hl-kategori-kartu b { display: block; font-size: 13px; color: #17212f; margin-bottom: 3px; }
.hl-kategori-kartu span { font-size: 11px; color: #8f9daf; }

/* Keunggulan & testimoni */
.hl-unggul .hl-butir, .hl-testi .hl-butir {
  padding: 16px 18px; background: #fff; border: 1px solid #e8edf3;
}
.hl-butir b { display: block; font-size: 13px; color: var(--hl-kedua); margin-bottom: 6px; }
.hl-butir p { font-size: 12.5px; line-height: 1.7; color: #5b6b80; margin: 0; }
.hl-testi .hl-butir { border-left: 3px solid var(--hl-utama); }

/* Ajakan */
.hl-ajakan { padding: 46px 0; }
.hl-ajakan-isi { text-align: center; }
.hl-ajakan h2 { font-size: 24px; margin: 0 0 10px; font-weight: 800; }
.hl-ajakan p { font-size: 14px; line-height: 1.7; margin: 0 0 18px; opacity: .9; max-width: 640px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .hl-ajakan h2 { font-size: 19px; } }

/* Ruang & footer */
.hl-ruang { display: block; }
.hl-footer { padding: 32px 0; }
.hl-footer-isi { font-size: 12.5px; line-height: 1.8; }
.hl-footer p { margin: 0 0 6px; opacity: .9; }
.hl-footer-kontak { font-weight: 700; }
.hl-footer-menu { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.hl-footer-menu a { color: inherit; opacity: .8; text-decoration: none; font-size: 12px; }
.hl-footer-menu a:hover { opacity: 1; }

/* Tombol WhatsApp bulat */
.hl-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 999px; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,.42); text-decoration: none;
}
.hl-wa:hover { background: #1fb954; }

/* ── Unggah gambar di panel penyusun (30 Okt 2026) ───────────────────────── */

.hl-gambar-medan { display: flex; flex-direction: column; gap: 8px; }

.hl-gambar-kotak {
  border: 1px solid #e3e9f1; border-radius: 8px; padding: 8px; background: #f8fafc;
  display: flex; align-items: center; gap: 10px;
}
.hl-gambar-kotak img {
  width: 96px; height: 64px; object-fit: cover; border-radius: 6px;
  border: 1px solid #e3e9f1; background: #fff; flex: 0 0 auto;
}
.hl-gambar-kotak code {
  font-size: 10.5px; color: #6b7a90; word-break: break-all; line-height: 1.4;
}
.hl-gambar-hilang {
  display: inline-flex; align-items: center; justify-content: center;
  width: 96px; height: 64px; border-radius: 6px; background: #fdecec;
  color: #b42318; font-size: 10px; text-align: center; padding: 4px; flex: 0 0 auto;
}

/* Tombol pilih berkas: input asli disembunyikan, label jadi tombol */
.hl-unggah { display: block; }
.hl-unggah input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hl-unggah > span {
  display: inline-block; padding: 8px 16px; background: #12233d; color: #fff;
  border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .15s;
}
.hl-unggah > span:hover { background: #1c3556; }
.hl-unggah input[type="file"]:focus-visible + span { outline: 2px solid #c9a227; outline-offset: 2px; }

.hl-unggah-form { display: none; }


/* ── Impor & Ekspor (Bassam, 3 Nov 2026) ─────────────────────────────────── */
.impor-dua{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}
@media (max-width:900px){.impor-dua{grid-template-columns:1fr}}
.impor-kartu{border:1px solid #e5e7eb;border-radius:14px;padding:18px;background:#fff}
.impor-kartu h3{margin:0 0 4px;font-size:16px}
.impor-sub{color:#64748b;font-size:13px;margin:0 0 14px;line-height:1.5}
.impor-baris{display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:10px 0;border-top:1px solid #f1f5f9}
.impor-baris:first-of-type{border-top:0}
.impor-baris b{display:block;font-size:14px}
.impor-baris span{color:#64748b;font-size:12px}
.impor-form{display:flex;flex-direction:column;gap:12px}
.impor-lbl{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#334155}
.impor-lbl select,.impor-lbl input[type=file]{font-weight:400;padding:9px 10px;
  border:1px solid #cbd5e1;border-radius:9px;background:#fff;font-size:14px}
.impor-aksi{display:flex;gap:10px;flex-wrap:wrap;margin-top:4px}

/* Tombol "Unduh contoh berkas" — diberi latar lembut supaya terbaca sebagai
   langkah pertama sebelum mengunggah, bukan tombol aksi utama (10 Nov 2026). */
.impor-contoh{width:100%;justify-content:center;background:#f1f5f9;border-color:#dbe3ec}
.impor-contoh:hover{background:#e8eef6}
.impor-catatan{color:#64748b;font-size:12px;line-height:1.55;margin:8px 0 16px}
.impor-tips{margin-top:16px;padding:12px 14px;border-radius:12px;background:#f8fafc;
  border:1px dashed #cbd5e1;font-size:12.5px;color:#475569}
.impor-tips b{display:block;margin-bottom:6px;color:#0f172a}
.impor-tips ul{margin:0;padding-left:18px}
.impor-tips li{margin-bottom:4px;line-height:1.5}
.impor-laporan{border:1px solid #e5e7eb;border-radius:14px;padding:18px;background:#fff}
.impor-laporan h3{margin:0 0 14px;font-size:16px;display:flex;align-items:center;gap:10px}
.impor-tanda{font-size:11px;font-weight:700;letter-spacing:.5px;padding:3px 9px;border-radius:999px}
.impor-tanda.uji{background:#fef3c7;color:#92400e}
.impor-tanda.ok{background:#dcfce7;color:#166534}
.impor-angka{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px}
@media (max-width:700px){.impor-angka{grid-template-columns:repeat(2,1fr)}}
.impor-angka div{background:#f8fafc;border-radius:10px;padding:10px 12px}
.impor-angka span{display:block;font-size:11.5px;color:#64748b}
.impor-angka b{font-size:20px}
.impor-daftar{margin-top:12px;font-size:13px}
.impor-daftar ul{margin:6px 0 0;padding-left:20px;max-height:320px;overflow:auto}
.impor-daftar li{margin-bottom:4px;line-height:1.5;color:#475569}
.impor-daftar.err{border-top:1px solid #f1f5f9;padding-top:12px}
.impor-daftar.err b{color:#b91c1c}

/* ── Sub-menu sumber laporan: Kasir | Online (Bassam, 3 Nov 2026) ────────── */
.lap-submenu {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.lap-sub {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 11px; font-size: 13.5px; font-weight: 700;
  background: var(--white); border: 1px solid var(--line); color: var(--ink-2);
  text-decoration: none; transition: background .15s, color .15s, border-color .15s;
}
.lap-sub svg { width: 16px; height: 16px; }
.lap-sub:hover { background: var(--bg); color: var(--ink); }
.lap-sub.is-on {
  background: var(--navy); border-color: var(--navy); color: #fff;
  box-shadow: 0 2px 8px rgba(15, 27, 38, .18);
}
.lap-sub-ket { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
@media (max-width: 720px) {
  .lap-sub-ket { margin-left: 0; flex-basis: 100%; }
  .lap-sub { flex: 1 1 0; justify-content: center; }
}
/* Batang status yang belum jadi omzet (menunggu bayar dsb.) */
.lap-isi.is-mute { background: #cbd5e1; }

/* ── Pengaturan kategori: satu baris per kategori, tiga pilihan ────────────
   Sebelumnya hanya kotak centang 13x13 px — terlalu kecil untuk jari dan
   pertanyaannya ambigu ("dicentang = apa?"). Sekarang tiap kategori punya
   tiga tombol pilihan: Terbuka / Pelanggan & agen / Agen saja. */
.kategori-atur {
  display: flex; flex-direction: column; gap: 8px;
}
.kategori-baris {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  background: var(--white);
}
.kategori-nama {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; min-width: 0;
}
.kategori-nama b { font-weight: 600; }
.kategori-nama .pilih-jml { color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }

.kategori-pilih { display: flex; gap: 6px; flex-wrap: wrap; }

.pilih-pil {
  position: relative; cursor: pointer;
  display: inline-flex; align-items: center;
  padding: 7px 12px; min-height: 34px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white);
  font-size: 12px; font-weight: 500; color: var(--ink-3);
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
/* Radio asli disembunyikan secara visual, tetapi tetap ada supaya papan
   tikar dan pembaca layar tetap bisa memakainya. */
.pilih-pil input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
}
.pilih-pil:hover { border-color: var(--teal); color: var(--teal); }
.pilih-pil.is-on {
  border-color: var(--teal); background: #EAF6FB;
  color: var(--teal); font-weight: 700;
}
.pilih-pil.is-on::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); margin-left: 6px;
}
.pilih-pil:has(input:focus-visible) {
  outline: 2px solid var(--teal); outline-offset: 2px;
}

@media (max-width: 620px) {
  /* Di HP: nama kategori di atas, tiga pilihan di bawahnya. Pilihan TIDAK
     dipaksa selebar baris — kalau dipaksa, tiap kategori jadi tiga baris
     tombol dan kartunya memanjang tanpa guna. Dibiar membungkus alami:
     "Terbuka + Pelanggan & agen" satu baris, "Agen saja" di bawahnya. */
  .kategori-baris { align-items: flex-start; padding: 11px 12px; }
  .kategori-pilih {
    width: 100%;
    gap: 6px;
    margin-top: 2px;
  }
  .pilih-pil {
    flex: 0 1 auto;
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11.5px;
  }
  .kategori-nama { width: 100%; justify-content: space-between; }
}

/* ── Bar pemilihan label (halaman Pesanan) ──────────────────────────────────
   Muncul di atas tabel: pilih semua, jumlah terpilih, ukuran kertas, tombol
   cetak. Sengaja menempel di atas tabel supaya tetap terlihat saat daftar
   pesanan panjang dan digulir. */
.bar-label {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #F8FAFC;
}
.bar-label-pilih {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--ink);
}
.bar-label-pilih input[type="checkbox"] {
  width: 16px; height: 16px; margin: 0; accent-color: var(--teal); cursor: pointer;
}
.bar-label-info {
  font-size: 12px; color: var(--ink-3);
}
.bar-label-info.ada { color: var(--teal); font-weight: 600; }
/* Keterangan kenapa sebagian pesanan tidak bisa dicentang. */
.bar-label-ket {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; line-height: 1.35; color: #92400e;
  background: #fffbeb; border: 1px solid #fcd34d;
  padding: 4px 9px; border-radius: 999px;
}
.bar-label-ket svg { flex: 0 0 auto; }
.bar-label-kunci { display: inline-flex; vertical-align: -3px; }
.bar-label-kunci svg { width: 12px; height: 12px; }
/* Gembok pengganti kotak centang untuk pesanan yang resinya belum terbit.
   Sengaja ikon, bukan checkbox disabled: kotak mati terbaca sebagai rusak. */
.label-terkunci {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; color: #9aa4b2; cursor: help;
}
.label-terkunci svg { width: 15px; height: 15px; }
/* Tombol hapus pesanan — sengaja merah supaya tidak tertukar dengan tombol
   cetak di sebelahnya. */
.btn-hapus {
  color: #b42318; background: #fff; border: 1px solid #f3b4ae;
}
.btn-hapus:hover:not(:disabled) { background: #fef3f2; border-color: #e8837a; }
.btn-hapus:disabled { opacity: .45; cursor: not-allowed; }
.panel-bahaya { border: 1px solid #f3b4ae; }
.panel-bahaya .panel-head { background: #fef3f2; border-bottom-color: #f3b4ae; }
.panel-bahaya .panel-head h2 { color: #b42318; }
.bar-label-kanan {
  margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.bar-label-kanan select {
  font: inherit; font-size: 12.5px; padding: 7px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm, 10px);
  background: var(--white); color: var(--ink);
}
.pilih-label { width: 16px; height: 16px; margin: 0; accent-color: var(--teal); cursor: pointer; }

@media (max-width: 620px) {
  .bar-label { padding: 10px 12px; gap: 8px; }
  .bar-label-kanan { width: 100%; margin-left: 0; }
  .bar-label-kanan select { flex: 1 1 auto; }
  .bar-label-kanan .btn { flex: 1 1 auto; justify-content: center; }
}
