/* Kuasir — token "Kontras tegas": huruf besar, kontras tinggi, tanpa gestur wajib. */
:root {
  --biru: #2f6fd1;
  --biru-tua: #1d4ea3;
  --coklat: #b98a52;
  --hitam: #16181c;
  --bg: #ffffff;
  --bg-alt: #f2f4f7;
  --teks: #16181c;
  --merah: #c0322c;
  --hijau: #1e7a3c;
  --garis: #16181c;
  --radius: 14px;
  --fs-base: 20px;
  --fs-besar: 24px;
  --fs-judul: 30px;
}
[data-font="sangat_besar"] { --fs-base: 24px; --fs-besar: 30px; --fs-judul: 36px; }
[data-theme="gelap"] {
  --bg: #121417; --bg-alt: #1b1e23; --teks: #f3f4f6; --garis: #f3f4f6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Archivo", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: var(--fs-base);
  color: var(--teks);
  background: var(--bg-alt);
  -webkit-tap-highlight-color: transparent;
}
#app { min-height: 100dvh; display: flex; flex-direction: column; }
h1, h2, h3 { margin: 0 0 .5em; }
h1 { font-size: var(--fs-judul); }
h2 { font-size: var(--fs-besar); }
button, input, select {
  font: inherit;
  color: inherit;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 20px; border-radius: var(--radius);
  border: 3px solid var(--garis); background: var(--bg);
  font-weight: 700; font-size: var(--fs-base);
  cursor: pointer; min-height: 56px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--biru); color: #fff; border-color: var(--biru-tua); }
.btn-ok { background: var(--hijau); color: #fff; border-color: #0f4d24; }
.btn-danger { background: var(--merah); color: #fff; border-color: #7a211d; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; }
.btn-lg { padding: 20px 24px; font-size: var(--fs-besar); min-height: 72px; }
input[type=text], input[type=number], input[type=password], input[type=tel], select, textarea {
  padding: 14px 16px; border-radius: var(--radius); border: 3px solid var(--garis);
  background: var(--bg); width: 100%; min-height: 56px;
}
.card {
  background: var(--bg); border: 3px solid var(--garis); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--bg); border-bottom: 3px solid var(--garis); position: sticky; top: 0; z-index: 5;
}
.topbar img { height: 36px; width: auto; }
.topbar .spacer { flex: 1; }
.tabbar {
  display: flex; border-top: 3px solid var(--garis); background: var(--bg);
  position: sticky; bottom: 0; z-index: 5;
}
.tabbar a {
  flex: 1; text-align: center; padding: 10px 4px; text-decoration: none; color: var(--teks);
  font-weight: 700; font-size: 15px; border-right: 1px solid #0002;
}
.tabbar a:last-child { border-right: none; }
.tabbar a.active { background: var(--biru); color: #fff; }
main { flex: 1; padding: 14px; max-width: 760px; margin: 0 auto; width: 100%; }
.grid { display: grid; gap: 12px; }
.grid-produk { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.produk-tile {
  border: 3px solid var(--garis); border-radius: var(--radius); padding: 10px;
  background: var(--bg); text-align: left; cursor: pointer; min-height: 92px;
}
.produk-tile .nama { font-weight: 700; display: block; margin-bottom: 4px; }
.produk-tile .harga { color: var(--biru-tua); font-weight: 700; }
.produk-tile .stok-habis { color: var(--merah); font-size: 14px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.cart-line { display: flex; align-items: center; gap: 10px; border-bottom: 2px solid #0002; padding: 10px 0; }
.cart-line .nama { flex: 1; font-weight: 700; }
.qty-stepper { display: flex; align-items: center; gap: 6px; }
.qty-stepper button { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--garis); background: var(--bg); font-size: 20px; font-weight: 700; }
.qty-stepper span { min-width: 32px; text-align: center; font-weight: 700; }
.total-bar {
  position: sticky; bottom: 0; background: var(--biru); color: #fff; padding: 16px;
  border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: var(--fs-besar);
}
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.keypad button { padding: 18px 0; font-size: 22px; font-weight: 700; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--garis); font-size: 14px; font-weight: 700; }
.pill-ok { background: #e4f6ea; color: var(--hijau); border-color: var(--hijau); }
.pill-warn { background: #fdeceb; color: var(--merah); border-color: var(--merah); }
.muted { opacity: .7; font-size: 15px; }
.err { color: var(--merah); font-weight: 700; margin: 8px 0; }
.ok { color: var(--hijau); font-weight: 700; margin: 8px 0; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }
label { font-weight: 700; display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 2px solid #0002; }
.login-wrap { min-height: 100dvh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); padding: 20px; }
.login-card { max-width: 420px; width: 100%; background: var(--bg); border: 3px solid var(--garis); border-radius: var(--radius); padding: 28px; }
.login-card img { display: block; margin: 0 auto 16px; height: 90px; }
