/* /fitur/stok */
.st-legend { margin-top: 22px; }
.st-stage { padding-bottom: 46px; }
.st-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-red { color: var(--danger); }
.st-alert { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 10px 12px; border-radius: 12px; background: #fdf1f1; border: 1px solid #f6d5d5; font-size: 12px; }
.st-alert > [data-lucide] { width: 17px; height: 17px; color: var(--danger); }
.st-alert b { display: block; }
.st-alert > span:nth-child(2) { flex: 1; min-width: 0; color: var(--ink-2); }
.st-btn { flex: none; padding: 6px 10px; border-radius: 8px; background: var(--orange-600); color: #fff; font-weight: 700; font-size: 11px; }
.st-row { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.st-row:last-child { border-bottom: 0; }
.st-row .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row b { min-width: 58px; text-align: right; }
.meter { display: block; height: 7px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.st-row.low .meter i { background: var(--danger); }
.st-row.low b { color: var(--danger); }
.st-fn { left: -24px; bottom: 0; }
.st-stage .mock { position: relative; z-index: 1; }

/* resep */
.st-recipe { max-width: 480px; margin: 0 auto; }
.st-rh { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.st-rh small { display: block; color: var(--muted); font-size: 11.5px; }
.st-rh b { font-size: 16px; }
.st-tbl > div { display: grid; grid-template-columns: 1fr 64px 76px; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.st-tbl > div > span:not(:first-child) { text-align: right; }
.st-tbl .h { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.st-tbl .t { font-weight: 800; border-bottom: 0; }
.st-tbl.u > div { grid-template-columns: 1fr 70px 96px; }
.st-hpp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.st-hpp > div { padding: 10px; border-radius: 10px; background: var(--bg-soft); }
.st-hpp small { display: block; color: var(--muted); font-size: 11px; }
.st-hpp b { font-size: 16px; }
.st-hpp .ok { background: var(--ok-50); }
.st-hpp .ok b { color: var(--ok); }

/* opname HP */
.st-ph-wrap { display: flex; justify-content: center; }
.st-phone { width: 290px; }
.st-op { padding: 14px 12px 16px; font-size: 12px; }
.st-op-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.st-op-h b { font-size: 13.5px; }
.st-op-r { display: grid; grid-template-columns: 1fr 58px 44px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.st-op-r b { display: block; font-size: 12px; }
.st-op-r small { color: var(--muted); font-size: 10.5px; }
.st-op-r .in { padding: 6px 4px; border: 1.5px solid var(--teal-100); border-radius: 8px; text-align: center; font-weight: 700; }
.st-op-r em { font-style: normal; text-align: right; font-weight: 700; font-size: 11px; }
.st-op-r em.neg { color: var(--danger); }
.st-op-r em.ok { color: var(--ok); }
.st-op-sum { display: flex; justify-content: space-between; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: #fdf1f1; color: var(--danger); }
.st-op-btn { margin-top: 10px; padding: 11px; border-radius: 10px; background: var(--teal-700); color: #fff; text-align: center; font-weight: 800; }

/* supplier */
.st-po-h { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0 10px; border-bottom: 1px solid var(--line-2); }
.st-po-h span { color: var(--muted); }
.st-po-h b { font-size: 18px; }
.st-po-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.st-po-r:last-child { border-bottom: 0; }
.st-po-r > div { min-width: 0; }
.st-po-r b { display: block; }
.st-po-r small { color: var(--muted); font-size: 11.5px; }
.st-po-r .mock-pill { flex: none; }

/* tab jenis usaha */
.st-tab { gap: 48px; }
.st-tab h3 { font-size: 22px; }
.st-tab .fx-copy > p.muted { margin-top: 10px; }
.st-tab .checks { margin: 18px 0; }
.st-matrix { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.st-matrix span { display: grid; place-items: center; padding: 8px 4px; border-radius: 8px; background: var(--bg-soft); font-weight: 700; }
.st-matrix .h { background: none; color: var(--muted); font-size: 11px; padding: 2px; }
.st-matrix .c { display: flex; justify-content: flex-start; gap: 6px; background: none; font-weight: 600; }
.st-matrix .z { background: #fdecec; color: var(--danger); }
.st-matrix .sw { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); flex: none; }
.st-mt { margin-top: 12px; }

@media (max-width: 640px) {
  .st-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .st-kpis .mock-kpi { padding: 8px; }
  .st-kpis .mock-kpi b { font-size: 15px; }
  .st-alert { flex-wrap: wrap; }
  .st-row { grid-template-columns: 1fr 70px auto; gap: 8px; }
  .st-tbl > div { grid-template-columns: 1fr 52px 70px; font-size: 12px; }
  .st-tbl.u > div { grid-template-columns: 1fr 56px 84px; }
  .st-hpp b { font-size: 14px; }
  .st-po-r { flex-wrap: wrap; }
  .st-phone { width: 100%; max-width: 290px; }
}

/* cara hitung stok (3 pilihan per outlet) */
.st-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-mode { position: relative; padding: 24px; border: 1.5px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.st-mode.on { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-50); }
.st-mode-h { display: flex; justify-content: space-between; align-items: flex-start; }
.st-mode h3 { margin-top: 16px; font-size: 20px; }
.st-mode-s { display: block; margin-top: 2px; color: var(--teal-700); font-size: 13px; font-weight: 700; }
.st-mode p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.st-mode .checks { margin-top: 14px; font-size: 14.5px; }
.st-radio { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.on > .st-mode-h .st-radio, .st-c-o.on .st-radio { border-color: var(--teal); box-shadow: inset 0 0 0 4px #fff; background: var(--teal); }
.st-cap { margin-top: 18px; }
.st-of { margin-top: 44px; }

/* resep: sakelar */
.st-sw { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; padding: 8px 10px; border-radius: 10px; background: var(--teal-50); color: var(--teal-900); font-weight: 700; font-size: 12.5px; }
.st-tog { width: 34px; height: 20px; border-radius: 99px; background: var(--teal); position: relative; flex: none; }
.st-tog i { position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

/* dapur: kasir dengan lencana bahan + batal pesanan */
.st-dp { position: relative; max-width: 560px; margin: 0 auto; padding-bottom: 214px; }
.st-k { width: 86%; font-size: 12px; }
.st-k-b { padding: 12px; }
.st-k-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.st-kt { position: relative; border-radius: 10px; padding: 9px; min-height: 68px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.st-kt b { font-size: 11.5px; line-height: 1.25; }
.st-kt small { font-size: 10.5px; opacity: .85; margin-top: 2px; }
.st-kt em { position: absolute; top: 6px; left: 6px; padding: 2px 6px; border-radius: 6px; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .04em; }
.st-kt em.w { background: #fff3e0; color: #b45309; }
.st-kt em.x { background: #fdecec; color: #b91c1c; }
.st-kt.t1 { background: #2f8796; } .st-kt.t2 { background: #c2560a; } .st-kt.t3 { background: #1b5c67; }
.st-kt.t4 { background: #5d7a2a; } .st-kt.t5 { background: #a64808; } .st-kt.t6 { background: #23707d; }
.st-k-cart { margin-top: 12px; padding-top: 4px; border-top: 1px solid #223135; }
.st-k-cart .mock-row { border-color: #2a3a3e; color: #d5e2e4; }
.st-k-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(245, 137, 30, .14); color: #f8c48a; font-size: 11px; line-height: 1.45; }
.st-k-warn [data-lucide] { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.st-cancel { position: absolute; right: 0; bottom: 0; width: 280px; z-index: 2; font-size: 12.5px; }
.st-c-t { display: block; font-size: 14px; margin-bottom: 8px; }
.st-c-o { display: flex; gap: 10px; align-items: center; padding: 9px 10px; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 10px; }
.st-c-o.on { border-color: var(--teal); background: var(--teal-50); }
.st-c-o b { display: block; font-size: 12.5px; }
.st-c-o small { color: var(--muted); font-size: 11px; }
.st-c-pin { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding: 9px 10px; border-radius: 10px; background: var(--bg-soft); font-weight: 700; }
.st-dots { display: flex; gap: 6px; }
.st-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }

/* mode Lengkap: pengaruh opsi + produksi */
.st-lk { display: grid; gap: 16px; max-width: 480px; margin: 0 auto; width: 100%; }
.st-fx { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.st-fx:last-child { border-bottom: 0; }
.st-fx > span:first-child { font-weight: 700; }
.st-fx > span:last-child { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.st-fx em { font-style: normal; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.st-fx em.m { background: #fdecec; color: var(--danger); }
.st-fx em.p { background: var(--ok-50); color: var(--ok); }
.st-tbl.p > div { grid-template-columns: 1fr 64px 80px; }

@media (max-width: 960px) {
  .st-modes { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .st-mode { padding: 20px; }
  .st-of { margin-top: 32px; }
  .st-dp { padding-bottom: 0; display: grid; gap: 16px; }
  .st-k { width: 100%; }
  .st-k-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-kt { min-height: 60px; padding: 7px; }
  .st-kt b { font-size: 10.5px; }
  .st-kt em { font-size: 8px; padding: 2px 4px; }
  .st-cancel { position: static; width: 100%; }
  .st-fx { flex-wrap: wrap; }
  .st-tbl.p > div { grid-template-columns: 1fr 56px 72px; }
}

/* 18 Okt: terima barang */
.st-tbl.r > div { grid-template-columns: 1fr 40px 40px 62px; }
.st-tbl .st-w { color: #b45309; font-weight: 800; }
.st-k-warn.st-lt { background: var(--orange-50); color: var(--orange-700); margin-top: 10px; }
@media (max-width: 640px) { .st-tbl.r > div { grid-template-columns: 1fr 32px 32px 56px; } }
/* 18 Okt — HP: ilustrasi pendamping disembunyikan (satu ilustrasi per bagian tetap) */
@media (max-width: 640px) {
  .st-k, .st-prod { display: none; }
  .st-modes.m-slide { max-width: none; margin-inline: calc(-1 * var(--gutter)); }
}
