/* ===== Design tokens: Kasir Toko ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #16211D;
  --ink-soft: #52605A;
  --bg: #F4F6F4;
  --surface: #FFFFFF;
  --border: #E1E6E2;
  --primary: #163832;      /* deep teal green */
  --primary-light: #1F4E45;
  --accent: #E1963A;       /* warm amber */
  --accent-soft: #FBEBD4;
  --success: #2E8B57;
  --success-soft: #E4F3EA;
  --danger: #C1432E;
  --danger-soft: #FBE7E2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(22, 33, 29, 0.08), 0 1px 2px rgba(22, 33, 29, 0.06);
  --shadow-lg: 0 10px 30px rgba(22, 33, 29, 0.14);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; border: none; }
input, select { font-family: inherit; }

.num { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* Scrollbar tipis */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px;
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-accent { background: var(--accent); color: #2A1B04; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--border); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-accent { background: var(--accent-soft); color: #8A5A16; }

.toast-wrap {
  position: fixed; top: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; max-width: 320px;
  animation: slideIn .2s ease;
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(22,33,29,0.55); display: flex; align-items: center; justify-content: center;
  z-index: 998; padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 480px; width: 100%;
  max-height: 88vh; overflow-y: auto;
}

label.field-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px;
}
input.field, select.field {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 15px; color: var(--ink); background: #fff;
}
input.field:focus, select.field:focus { outline: none; border-color: var(--primary); }
