/* ============================================================
   Sales Return Reader — theme
   ============================================================ */
:root {
  --bg: #eef1f6;
  --bg-glow: rgba(79, 70, 229, .10);
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef1f6;
  --border: #e4e7ec;
  --border-strong: #d3d8e0;
  --text: #101828;
  --text-soft: #475467;
  --text-mute: #98a2b3;

  --accent: #4f46e5;
  --accent-strong: #4338ca;
  --accent-ink: #ffffff;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;

  --ok: #067647;
  --ok-soft: #ecfdf3;
  --ok-border: #abefc6;
  --err: #b42318;
  --err-soft: #fef3f2;
  --err-border: #fecdca;
  --warn: #b54708;
  --warn-soft: #fffaeb;
  --warn-border: #fedf89;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 1px 3px rgba(16, 24, 40, .06), 0 14px 34px -12px rgba(16, 24, 40, .18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* lapisan di atas foto background supaya UI tetap terbaca */
  --veil: linear-gradient(180deg,
            rgba(238, 241, 246, .70) 0%,
            rgba(238, 241, 246, .52) 42%,
            rgba(238, 241, 246, .82) 100%);
  --headline-shadow: 0 1px 3px rgba(255, 255, 255, .75);
  --card-ring: 0 0 0 1px rgba(255, 255, 255, .55);
}

/* Dark palette — applied by system preference (unless user forced light)
   or explicitly via [data-theme="dark"]. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; }
}
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d16;
    --bg-glow: rgba(99, 102, 241, .16);
    --surface: #12151f;
    --surface-2: #171b27;
    --surface-3: #1e2330;
    --border: #262b3a;
    --border-strong: #333a4d;
    --text: #f2f4f8;
    --text-soft: #aeb6c6;
    --text-mute: #6b7386;
    --accent: #6366f1;
    --accent-strong: #818cf8;
    --accent-ink: #ffffff;
    --accent-soft: rgba(99, 102, 241, .14);
    --accent-border: rgba(99, 102, 241, .38);
    --ok: #75e0a7;
    --ok-soft: rgba(16, 185, 129, .12);
    --ok-border: rgba(16, 185, 129, .34);
    --err: #fda29b;
    --err-soft: rgba(240, 68, 56, .12);
    --err-border: rgba(240, 68, 56, .34);
    --warn: #fec84b;
    --warn-soft: rgba(247, 144, 9, .12);
    --warn-border: rgba(247, 144, 9, .32);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, .4), 0 22px 48px -16px rgba(0, 0, 0, .6);
    --veil: linear-gradient(180deg,
              rgba(6, 9, 16, .78) 0%,
              rgba(6, 9, 16, .62) 44%,
              rgba(6, 9, 16, .92) 100%);
    --headline-shadow: 0 1px 6px rgba(0, 0, 0, .7);
    --card-ring: 0 0 0 1px rgba(255, 255, 255, .06);
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d16;
  --bg-glow: rgba(99, 102, 241, .16);
  --surface: #12151f;
  --surface-2: #171b27;
  --surface-3: #1e2330;
  --border: #262b3a;
  --border-strong: #333a4d;
  --text: #f2f4f8;
  --text-soft: #aeb6c6;
  --text-mute: #6b7386;
  --accent: #6366f1;
  --accent-strong: #818cf8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(99, 102, 241, .14);
  --accent-border: rgba(99, 102, 241, .38);
  --ok: #75e0a7;
  --ok-soft: rgba(16, 185, 129, .12);
  --ok-border: rgba(16, 185, 129, .34);
  --err: #fda29b;
  --err-soft: rgba(240, 68, 56, .12);
  --err-border: rgba(240, 68, 56, .34);
  --warn: #fec84b;
  --warn-soft: rgba(247, 144, 9, .12);
  --warn-border: rgba(247, 144, 9, .32);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 1px 3px rgba(0, 0, 0, .4), 0 22px 48px -16px rgba(0, 0, 0, .6);
  --veil: linear-gradient(180deg,
            rgba(6, 9, 16, .82) 0%,
            rgba(6, 9, 16, .70) 44%,
            rgba(6, 9, 16, .93) 100%);
  --headline-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  --card-ring: 0 0 0 1px rgba(255, 255, 255, .06);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  /* hanya boleh scroll — pinch-zoom & double-tap-zoom dimatikan */
  touch-action: pan-x pan-y;
}
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  background: transparent;
  touch-action: pan-x pan-y;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* Foto background — fixed, tidak ikut scroll (aman di iOS, tanpa background-attachment) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--bg) url("/img/bg.jpg") center center / cover no-repeat;
}
/* Lapisan tint sesuai tema supaya teks & card tetap kontras */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--veil);
}

button, input, a { touch-action: manipulation; }

.app {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(10px, env(safe-area-inset-bottom));

  /* sticky footer: footer selalu di bawah walau konten pendek */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.brand__text { min-width: 0; }
.brand__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.theme-toggle {
  width: 34px; height: 34px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-toggle:hover { color: var(--accent-strong); border-color: var(--accent-border); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}

.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }

/* Logo BTSA dalam "chip" putih supaya jelas di tema light/dark & di atas foto */
.brand__mark {
  display: flex;
  align-items: center;
  flex: none;
  padding: 7px 11px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow-sm), inset 0 0 0 1px rgba(16, 24, 40, .06);
}
.brand__mark img {
  display: block;
  height: 24px;
  width: auto;
}

.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: -.01em;
  text-shadow: var(--headline-shadow);
}
.brand__tag {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  text-shadow: var(--headline-shadow);
}

/* ---------- Layout ---------- */
.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
/* 2 kolom hanya di layar yang cukup lebar DAN tinggi (HP landscape tetap 1 kolom) */
@media (min-width: 800px) and (min-height: 560px) {
  .layout { grid-template-columns: 1fr 1fr; align-items: start; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-ring), var(--shadow-md);
  padding: 12px;
}

.panel__head { margin-bottom: 9px; }
.panel__title {
  margin: 0;
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* ---------- Scanner ---------- */
.scanner {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    linear-gradient(180deg, #0b1220, #060a14);
  border: 1px solid var(--border-strong);
}
/* Ukuran placeholder saat kamera mati */
.scanner:not(.is-active) { height: 196px; }

.scanner__view { display: block; width: 100%; line-height: 0; }
.scanner:not(.is-active) .scanner__view { position: absolute; inset: 0; }

/* Saat kamera hidup, video menentukan tinggi kotak (tidak dipotong) */
.scanner__view video,
.scanner__view img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 78vh;
  object-fit: cover;
}
/* library injected bits */
#reader { border: 0 !important; line-height: 0; }
#reader__scan_region { background: transparent !important; min-height: 0 !important; }
#reader__scan_region > img:only-child { display: none !important; } /* ikon placeholder bawaan library */
#reader__dashboard { display: none !important; }

.scanner__idle {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #64748b;
}
.scanner__idle svg { width: 30px; height: 30px; opacity: .7; }
.scanner__idle p { margin: 0; font-size: .8rem; font-weight: 500; letter-spacing: .02em; }
.scanner.is-active .scanner__idle { display: none; }

.scanner__overlay { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.scanner.is-active .scanner__overlay { opacity: 1; }

.scanner__corner {
  position: absolute;
  width: 30px; height: 30px;
  border: 3px solid rgba(255, 255, 255, .92);
  filter: drop-shadow(0 0 6px rgba(79, 70, 229, .55));
}
.scanner__corner--tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.scanner__corner--tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; border-top-right-radius: 6px; }
.scanner__corner--bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; border-bottom-left-radius: 6px; }
.scanner__corner--br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

.scanner__laser {
  position: absolute;
  left: 14px; right: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-strong), transparent);
  box-shadow: 0 0 14px 2px rgba(99, 102, 241, .7);
  animation: sweep 2.4s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes sweep {
  0%, 100% { top: 12%; }
  50% { top: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .scanner__laser { animation: none; top: 50%; }
}

/* ---------- Controls ---------- */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font: 600 .83rem/1 var(--font);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--primary {
  background: linear-gradient(150deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary:hover:not(:disabled) { box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .5); }

.btn--subtle { background: var(--surface-2); }
.btn--ghost { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-strong); }

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 8px;
  color: var(--text-mute);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Manual input ---------- */
.manual { display: flex; gap: 8px; }
.manual input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 500 .86rem/1 var(--font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.manual input::placeholder { color: var(--text-mute); }
.manual input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}

.hint {
  margin: 8px 0 0;
  font-size: .76rem;
  color: var(--text-soft);
  word-break: break-all;
  padding: 6px 10px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}
.hint b { color: var(--text); font-weight: 600; }

/* ---------- Feedback ---------- */
.feedback {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
}
.feedback__icon {
  width: 17px; height: 17px; flex: none;
  border-radius: 50%;
  position: relative;
}
.feedback[data-state="idle"] .feedback__icon { background: var(--text-mute); mask: none; }
.feedback[data-state="loading"] {
  background: var(--warn-soft); border-color: var(--warn-border); color: var(--warn);
}
.feedback[data-state="loading"] .feedback__icon {
  background: transparent;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.feedback[data-state="ok"] {
  background: var(--ok-soft); border-color: var(--ok-border); color: var(--ok);
}
.feedback[data-state="error"] {
  background: var(--err-soft); border-color: var(--err-border); color: var(--err);
}
.feedback[data-state="ok"] .feedback__icon,
.feedback[data-state="error"] .feedback__icon { background: currentColor; }
.feedback[data-state="ok"] .feedback__icon::after {
  content: ""; position: absolute; left: 5px; top: 3px;
  width: 5px; height: 9px;
  border: solid var(--surface); border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.feedback[data-state="error"] .feedback__icon::after {
  content: ""; position: absolute; left: 8px; top: 4px;
  width: 2px; height: 10px; background: var(--surface); border-radius: 1px;
  box-shadow: 0 12px 0 0 var(--surface);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Skeleton ---------- */
.skeleton { margin-top: 9px; display: grid; gap: 7px; }
.skeleton__row {
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { to { background-position: -120% 0; } }

/* ---------- Record ---------- */
.record { margin: 9px 0 0; display: grid; gap: 6px; }
.record__field {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  animation: rise .28s ease both;
}
.record__field:nth-child(2) { animation-delay: .04s; }
.record__field:nth-child(3) { animation-delay: .08s; }
.record__field:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: .35; transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .record__field { animation: none; } }

.record__field--top { align-items: start; }
.record__field--top .record__icon { margin-top: 1px; }

.record__icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-border);
  flex: none;
}
.record__icon svg { width: 16px; height: 16px; }

.record__body { min-width: 0; }
.record__body dt {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1px;
}
.record__body dd {
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.01em;
  word-break: break-word;
}
.record__body dd.is-mono { letter-spacing: .01em; }

/* daftar item pada baris Item Name */
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.item-list li {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 11px;
  position: relative;
}
.item-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-strong);
}
.item-list li:only-child { padding-left: 0; }
.item-list li:only-child::before { display: none; }

.item-list__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.item-list__name { font-size: .9rem; font-weight: 600; color: var(--text); line-height: 1.3; }
.item-list__qty {
  flex: none;
  font-size: .72rem;
  font-weight: 600;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 0 6px;
  white-space: nowrap;
}
.item-list__code {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-mute);
}

.record__copy {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.record__copy svg { width: 15px; height: 15px; }
.record__copy:hover { color: var(--accent-strong); border-color: var(--accent-border); background: var(--accent-soft); }
.record__copy.is-done { color: var(--ok); border-color: var(--ok-border); background: var(--ok-soft); }

.result__update {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 9px 14px;
  animation: rise .28s ease both;
  animation-delay: .14s;
}
.result__update .ico-check { display: none; }
.result__update.is-done .ico-sync { display: none; }
.result__update.is-done .ico-check { display: block; }
.result__update.is-done,
.result__update.is-done:disabled {
  opacity: 1;
  cursor: default;
  transform: none;
  background: var(--ok-soft);
  border-color: var(--ok-border);
  color: var(--ok);
  box-shadow: none;
}

/* ---------- Footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;          /* dorong ke bawah kalau konten pendek */
  padding-top: 14px;         /* jarak minimum dari konten */
  font-size: .72rem;
  color: var(--text-soft);
  letter-spacing: .01em;
  text-shadow: var(--headline-shadow);
}

/* ============================================================
   Mobile / HP  (≤ 560px)
   ============================================================ */
@media (max-width: 560px) {
  body { font-size: 14px; }

  .app {
    padding: max(10px, env(safe-area-inset-top)) max(13px, env(safe-area-inset-right))
             max(14px, env(safe-area-inset-bottom)) max(13px, env(safe-area-inset-left));
  }

  .topbar { gap: 8px 12px; margin-bottom: 14px; }
  .brand { gap: 10px; }
  .brand__mark { padding: 7px 10px; }
  .brand__mark img { height: 22px; }
  .brand__name { font-size: 1rem; }
  .theme-toggle { width: 38px; height: 38px; }

  .layout { gap: 14px; }
  .panel { padding: 15px 14px; border-radius: 14px; }
  .panel__head { margin-bottom: 11px; }
  .panel__title { font-size: 1.08rem; }

  /* kotak scan lebih besar biar gampang di-scan */
  .scanner:not(.is-active) { height: min(64vw, 300px); }

  /* tombol: target sentuh ≥ 44px, teks lebih jelas */
  .controls { gap: 8px; margin-top: 12px; }
  .controls .btn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: .9rem;
    border-radius: 11px;
    justify-content: center;
  }
  .controls .btn svg { width: 18px; height: 18px; }
  /* baris 1: Start (isi sisa) + Stop ; baris 2: Upload full-width */
  #btnStart { flex: 1 1 auto; }
  #btnStop { flex: 0 1 auto; }
  .controls label[for="fileInput"] { flex: 1 1 100%; }

  .divider { margin: 14px 0 12px; font-size: .74rem; }

  .manual { gap: 8px; }
  /* font 16px = iOS TIDAK auto-zoom saat fokus input */
  .manual input { font-size: 16px; padding: 11px 13px; }
  .manual .btn { min-height: 44px; padding: 10px 18px; font-size: .9rem; }

  .hint { font-size: .82rem; padding: 9px 11px; margin-top: 12px; }

  .feedback { font-size: .9rem; padding: 11px 13px; gap: 10px; }
  .feedback__icon { width: 18px; height: 18px; }

  .skeleton { gap: 8px; margin-top: 11px; }
  .skeleton__row { height: 52px; }

  .record { gap: 8px; margin-top: 11px; }
  .record__field { padding: 11px 12px; gap: 11px; grid-template-columns: 36px minmax(0, 1fr) auto; }
  .record__icon { width: 36px; height: 36px; }
  .record__icon svg { width: 18px; height: 18px; }
  .record__body dt { font-size: .68rem; }
  .record__body dd { font-size: 1rem; }

  .item-list { gap: 9px; }
  .item-list__name { font-size: .98rem; }
  .item-list__qty { font-size: .78rem; padding: 2px 8px; }
  .item-list__code { font-size: .74rem; }

  .record__copy { width: 34px; height: 34px; }

  .result__update { min-height: 46px; padding: 12px 16px; font-size: .95rem; margin-top: 10px; }

  .foot { font-size: .76rem; padding-top: 16px; }
}

/* HP kecil banget (≤ 340px) — rapatkan lagi sedikit */
@media (max-width: 340px) {
  .brand__name { font-size: .95rem; }
  .brand__mark img { height: 20px; }
  .brand__tag { display: none; }
  #btnStart, #btnStop { flex: 1 1 100%; }
}
