:root {
  --bg: #0f1115;
  --bg-soft: #161a22;
  --bg-elev: #1c212b;
  --border: #2a3140;
  --text: #e6e9ef;
  --text-dim: #9aa4b5;
  --accent: #4f8cff;
  --accent-hover: #6ba0ff;
  --success: #3ddc97;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2.5rem 1.25rem;
  background: radial-gradient(1200px 600px at 50% -10%, #1a2130 0%, var(--bg) 60%);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.kasir {
  width: 100%;
  max-width: 720px;
}

.kasir__header h1 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.kasir__sub {
  margin: 0 0 1.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.tabel {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tabel th,
.tabel td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.tabel thead th {
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tabel tbody tr:hover {
  background: rgba(79, 140, 255, 0.06);
}

.tabel tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}

.col-harga,
.col-qty,
.col-total {
  text-align: right;
  white-space: nowrap;
}

.col-harga {
  color: var(--text-dim);
}

.col-total {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.qty {
  width: 76px;
  padding: 0.45rem 0.6rem;
  text-align: right;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qty:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.22);
}

.tabel tfoot td {
  background: var(--bg-elev);
  border-bottom: none;
  font-weight: 700;
}

.label-grand {
  text-align: right;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.col-grand {
  text-align: right;
  font-size: 1.15rem;
  color: var(--success);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.aksi {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
}

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.status {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  text-align: right;
  font-size: 0.9rem;
  color: var(--success);
}

@media (max-width: 520px) {
  body {
    padding: 1.5rem 0.75rem;
  }

  .tabel th,
  .tabel td {
    padding: 0.7rem 0.6rem;
  }

  .col-harga {
    display: none;
  }

  .aksi {
    flex-direction: column-reverse;
  }

  .btn {
    width: 100%;
  }
}
