/* 🎁 Sampel ke customer (sja-samples.js, docs/SJA_SAMPLES.md). Compact on purpose (owner: no spacious layouts): clear main text,
   small gaps, every tap target >= 44px, the two ship-method buttons and Simpan 52px, no sideways scroll at 360-393px. Neutral
   colours; red only for an error, never for "SQL not run yet" (a calm grey line). The sheet scrolls in its own box. */
.smpl-ov { position: fixed; inset: 0; z-index: 150; display: flex; justify-content: center; background: rgba(16, 24, 40, .45); }
.smpl-sheet { display: flex; flex-direction: column; width: 100%; max-width: 720px; height: 100%; background: #EEF1F4; min-width: 0; }
.smpl-bar { display: flex; align-items: center; gap: .4rem; flex: 0 0 auto; padding: .3rem .45rem; padding-top: calc(.3rem + env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid var(--border); }
.smpl-back { min-height: 44px; padding: .25rem .65rem; border: 1px solid var(--border-input); border-radius: 10px; background: #fff; color: var(--dark); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.smpl-title { flex: 1; min-width: 0; font-weight: 800; font-size: 1rem; color: var(--dark); line-height: 1.2; overflow-wrap: anywhere; }
.smpl-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; overflow-anchor: none; padding: .4rem .45rem calc(1rem + env(safe-area-inset-bottom)); min-width: 0; }
.smpl-zh { display: block; font-size: .68em; font-weight: 400; color: var(--muted); line-height: 1.15; }
.smpl-title .smpl-zh { font-size: .7rem; }
.smpl-intro { font-size: .8rem; color: var(--ink2); margin: 0 .15rem .3rem; }
.smpl-intro .smpl-zh { display: inline; margin-left: .3rem; }
.smpl-quiet { font-size: .84rem; color: var(--muted); padding: .4rem .15rem; }
.smpl-calm { font-size: .95rem; font-weight: 700; color: var(--ink2); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .7rem .75rem; margin: .3rem 0; overflow-wrap: anywhere; }
.smpl-calm-s { font-size: .82rem; font-weight: 400; margin-top: .35rem; }
.smpl-note { font-size: .84rem; border-radius: 10px; padding: .45rem .6rem; margin: .3rem 0; overflow-wrap: anywhere; line-height: 1.4; }
.smpl-note-d { background: #FEF2F2; color: #991B1B; border-left: 4px solid var(--danger); }
.smpl-note-w { background: #FFFBEB; color: #92400E; border-left: 4px solid var(--warn); }
.smpl-link { min-height: 44px; padding: 0 .3rem; border: none; background: none; color: var(--p); font: inherit; font-weight: 700; font-size: .84rem; text-decoration: underline; cursor: pointer; }

.smpl-card { padding: .5rem .55rem .55rem; margin: 0 0 .5rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; box-shadow: var(--sh-sm); min-width: 0; }
.smpl-editing { border-color: var(--p); box-shadow: 0 0 0 2px rgba(37, 99, 235, .15); }
.smpl-h { font-weight: 800; font-size: .95rem; color: var(--dark); margin: 0 0 .3rem; }
.smpl-h .smpl-zh { display: inline; margin-left: .3rem; }
.smpl-g2 { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: .4rem; }
.smpl-f { display: block; margin: 0 0 .35rem; min-width: 0; }
.smpl-fl { display: block; font-size: .8rem; font-weight: 800; color: var(--dark); margin: 0 0 .12rem; line-height: 1.2; }
.smpl-fl small { font-weight: 400; color: var(--muted); }
.smpl-fl .smpl-zh { display: inline; margin-left: .25rem; font-size: .72rem; }
.smpl-in { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 0 .5rem; border: 1px solid var(--border-input); border-radius: 10px; background: #fff; color: var(--dark); font: inherit; font-size: 16px; }
select.smpl-in { padding-right: .2rem; text-overflow: ellipsis; }
.smpl-in:disabled { background: #F3F4F6; color: var(--ink2); }
.smpl-qrow { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.smpl-q { flex: 0 1 9rem; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.smpl-unit { font-weight: 800; font-size: .95rem; color: var(--ink2); white-space: nowrap; }
.smpl-echo { font-size: .86rem; font-weight: 800; color: var(--dark); margin-top: .15rem; font-variant-numeric: tabular-nums; }
.smpl-echo-bad { color: #B42318; font-weight: 700; }
.smpl-echo:empty { display: none; }
.smpl-ms { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.smpl-m { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 52px; padding: .25rem .4rem; border: 1.5px solid var(--border-input); border-radius: 12px; background: #fff; color: var(--dark); font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer; line-height: 1.15; text-align: left; }
.smpl-m .smpl-zh { font-size: .7rem; }
.smpl-mi { font-size: 1.35rem; }
.smpl-m.on { border-color: var(--p); background: #EFF4FF; box-shadow: inset 0 0 0 1px var(--p); }
.smpl-m:disabled { opacity: .6; cursor: default; }
.smpl-err { font-size: .86rem; font-weight: 700; color: #B42318; margin: .1rem 0 .3rem; overflow-wrap: anywhere; }
.smpl-err:empty { display: none; }
.smpl-acts { display: flex; gap: .4rem; }
.smpl-acts .smpl-btn { flex: 1 1 auto; }
.smpl-btn { min-height: 52px; padding: .3rem .9rem; border: none; border-radius: 12px; background: var(--p); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; line-height: 1.15; }
.smpl-btn .smpl-zh { color: rgba(255, 255, 255, .85); }
.smpl-btn:disabled { background: #C7CBD6; cursor: default; }
.smpl-btn-d { background: var(--danger); }
.smpl-btn2 { min-height: 44px; padding: .25rem .75rem; border: 1px solid var(--border-input); border-radius: 10px; background: #fff; color: var(--dark); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; line-height: 1.15; }
.smpl-btn2:disabled { color: var(--muted); cursor: default; }

.smpl-filt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .35rem; margin: .1rem 0 .35rem; align-items: center; }
.smpl-rng { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .45rem; align-items: center; }
.smpl-chip { min-height: 40px; padding: 0 .65rem; border: 1.5px solid #98A2B3; border-radius: 8px; background: #fff; color: var(--dark); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; }
.smpl-chip.on { background: var(--p); border-color: var(--p); color: #fff; }
.smpl-fm { flex: 1 1 8.6rem; width: auto; min-height: 40px; }
.smpl-fm.on { border-color: var(--p); box-shadow: inset 0 0 0 1px var(--p); }
.smpl-sum { font-size: .84rem; font-weight: 700; color: var(--muted); padding: .1rem .15rem .35rem; }
.smpl-empty { text-align: center; color: var(--muted); font-size: .9rem; padding: 1rem .5rem; }
.smpl-more { text-align: center; }

.smpl-grp { margin: 0 0 .45rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; min-width: 0; overflow: hidden; }
.smpl-gh { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; padding: .35rem .55rem; background: #F8FAFC; border-bottom: 1px solid var(--border); }
.smpl-gd { font-size: .78rem; font-weight: 700; color: var(--ink2); white-space: nowrap; }
.smpl-gc { font-size: .95rem; font-weight: 800; color: var(--dark); min-width: 0; overflow-wrap: anywhere; }
.smpl-r { padding: 0 .25rem 0 .55rem; border-top: 1px solid #F1F5F9; }
.smpl-r:first-of-type { border-top: none; }
.smpl-r-ed { background: #EFF4FF; }
.smpl-r1 { display: flex; align-items: center; gap: .2rem; min-height: 44px; min-width: 0; }
.smpl-pn { flex: 1 1 auto; min-width: 0; font-size: .92rem; font-weight: 700; color: var(--dark); overflow-wrap: anywhere; line-height: 1.25; padding: .2rem 0; }
.smpl-qt { flex: 0 0 auto; font-size: .95rem; font-weight: 800; color: var(--dark); white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: .3rem; }
.smpl-ib { flex: 0 0 auto; width: 44px; height: 44px; border: none; background: none; font-size: 1.05rem; cursor: pointer; border-radius: 10px; }
.smpl-ib:disabled { opacity: .35; cursor: default; }
.smpl-tag { display: inline-block; font-size: .66rem; font-weight: 800; border-radius: 6px; padding: .02rem .3rem; background: var(--p); color: #fff; vertical-align: middle; }
.smpl-line { display: flex; flex-wrap: wrap; gap: .1rem .6rem; padding: .25rem .55rem .35rem; font-size: .76rem; color: var(--muted); line-height: 1.3; }
.smpl-r .smpl-line { padding: 0 0 .3rem; }
.smpl-sm { min-width: 0; overflow-wrap: anywhere; }
.smpl-note-t { color: var(--ink2); font-weight: 700; }
.smpl-ask { margin: 0 .3rem .4rem 0; padding: .45rem .5rem; border: 1px solid var(--border-input); border-radius: 10px; background: var(--light); }
.smpl-ask-t { font-weight: 800; font-size: .9rem; color: var(--dark); }
.smpl-ask-b { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .35rem; }
.smpl-ask-b .smpl-btn, .smpl-ask-b .smpl-btn2 { min-height: 48px; width: 100%; }
