/* NEST Track — halaman pelacakan untuk pelanggan toko (HP dulu). */
:root {
  --bg: #f4f5f7; --card: #ffffff; --ink: #15171a; --soft: #5d636c; --line: #e4e6ea;
  --ok: #157347; --ok-bg: #e5f6ec; --warn: #8a5300; --warn-bg: #fdf1d8; --bad: #b42318; --bad-bg: #fde8e6;
  --info: #1d4ed8; --info-bg: #e7eefe; --muted-bg: #eef0f3;
  --accent-soft: color-mix(in oklch, var(--accent) 12%, var(--card));
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1114; --card: #181b20; --ink: #eceef1; --soft: #9aa1ab; --line: #2a2e35;
    --ok: #5fd39a; --ok-bg: #12301f; --warn: #f2bf62; --warn-bg: #352712; --bad: #ff8a80; --bad-bg: #3a1714;
    --info: #8fb0ff; --info-bg: #17223d; --muted-bg: #22262c;
    --accent-soft: color-mix(in oklch, var(--accent) 22%, var(--card));
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 640px; margin: 0 auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.wrap.narrow { max-width: 480px; padding-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ic { width: 18px; height: 18px; flex-shrink: 0; }
.muted { color: var(--soft); }
.small { font-size: 13px; }

/* toko */
.shop { display: flex; align-items: center; gap: 12px; padding: 4px 2px; }
.logo { width: 44px; height: 44px; border-radius: 12px; object-fit: contain; background: var(--card); border: 1px solid var(--line); flex-shrink: 0; }
.logo.mono { display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 20px; border: 0; }
.shop-txt { min-width: 0; flex: 1; }
.shop-name { font-weight: 750; font-size: 16px; line-height: 1.25; }
.shop-meta { color: var(--soft); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: #1fa855; color: #fff;
  text-decoration: none; font-weight: 650; font-size: 13.5px; flex-shrink: 0;
}
.btn-wa .ic { width: 16px; height: 16px; }

/* status */
.status { border-top: 4px solid var(--accent); }
.status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.docno { font-size: 22px; font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.cust { display: flex; flex-wrap: wrap; gap: 4px 12px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 11px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.badge .ic { width: 15px; height: 15px; }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.muted { background: var(--muted-bg); color: var(--soft); }

.steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.steps li:last-child { padding-bottom: 0; }
.steps li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: var(--line); }
.steps li.done:not(:last-child)::before { background: var(--accent); }
.mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 2px solid var(--line); background: var(--card); }
.mark .ic { width: 14px; height: 14px; }
.done .mark { background: var(--accent); border-color: var(--accent); color: #fff; }
.current .mark { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.st-txt { display: flex; flex-direction: column; padding-top: 1px; }
.st-label { font-weight: 600; }
.todo .st-label { color: var(--soft); font-weight: 500; }
.current .st-label { color: var(--accent); font-weight: 750; }
.st-at { font-size: 12.5px; color: var(--soft); }

/* bagian */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
h1 { font-size: 20px; margin: 0; line-height: 1.3; }
h2 { font-size: 15.5px; margin: 0; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--soft); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--soft); font-weight: 600; font-size: 12.5px; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl .n { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.tbl tfoot td { border-bottom: 0; font-weight: 800; font-size: 15px; padding-top: 10px; }
.note { margin: 0; padding: 10px 12px; background: var(--muted-bg); border-radius: 10px; font-size: 14px; }

/* foto */
.ph-group { display: flex; flex-direction: column; gap: 8px; }
.ph-title { font-size: 12.5px; font-weight: 700; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-grid figure { margin: 0; min-width: 0; }
.ph { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--muted-bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-grid figcaption { font-size: 12px; color: var(--soft); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; z-index: 10; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox p { color: #fff; margin: 0; text-align: center; font-size: 14px; }

.contact-note { text-align: center; color: var(--soft); font-size: 13.5px; margin: 2px 8px; }
.updated { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--soft); font-size: 12.5px; margin: 4px 0; }
.updated .ic { width: 14px; height: 14px; }
.foot { text-align: center; color: var(--soft); font-size: 12px; padding: 12px 16px 28px; }

/* pesan & beranda */
.msg { align-items: center; text-align: center; padding: 28px 20px; }
.msg-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.msg-ic .ic { width: 26px; height: 26px; }
.msg p, .hero p { margin: 0; }
.hero { gap: 14px; }
.hero .badge { align-self: flex-start; }
.code-form { display: flex; gap: 8px; }
.code-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); letter-spacing: .04em;
}
.code-form button { font: inherit; font-weight: 700; padding: 11px 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; cursor: pointer; }

@media (max-width: 380px) {
  .btn-wa span { display: none; }
  .ph-grid { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
}
