O01: one card short, handoff unconfirmed
HTML for this example
Select the code and use your copy shortcut. Changes in this preview are temporary.
<!doctype html><html lang="en-US"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>O01: one card short, handoff unconfirmed</title><style>*{box-sizing:border-box}:root{--ink:#26353e;--muted:#526771;--accent:#285f77;--line:#d0dade;--soft:#edf3f5;color-scheme:light}body{margin:0;background:#f2f5f5;color:var(--ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}main{max-width:1120px;margin:auto;padding:28px 32px 64px}header{margin-bottom:20px}h1{font-size:clamp(1.5rem,3vw,2.1rem);line-height:1.2;letter-spacing:-.035em;margin:0 0 8px}header p{margin:0}h2{font-size:1.2rem;line-height:1.3;margin:0 0 16px}h3{font-size:1rem;margin:0 0 8px}p{margin:9px 0 16px}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:24px}.grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.below{margin-top:24px}.muted,small{color:var(--muted)}.big{font-size:clamp(2rem,5vw,3.6rem);font-weight:750;line-height:1.14;letter-spacing:-.04em;margin:9px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.subresult{font-size:1.2rem;font-weight:700}.formula{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}label{display:block;font-size:.9rem;font-weight:650}input,select,textarea,button{font:inherit}input,select,textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:10px 12px;border:1px solid #879da8;border-radius:6px;background:white;color:var(--ink)}input,select{min-height:46px}textarea{line-height:1.6;resize:vertical}button{min-height:44px;padding:9px 15px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:white;font-weight:650;cursor:pointer}button.secondary{background:white;color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}:focus-visible{outline:3px solid #bf6a22;outline-offset:3px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}.check{display:flex;align-items:flex-start;gap:10px;font-weight:500}.check input{width:20px;height:20px;min-height:20px;margin:2px 0 0;flex:none;accent-color:var(--accent)}.badge{display:inline-block;background:var(--soft);color:var(--accent);font-size:.78rem;font-weight:700;padding:4px 9px;border-radius:24px}.error{min-height:24px;color:#a52f29;font-weight:650;margin:8px 0 0}.status{font-size:.88rem;color:var(--muted)}.note{background:#fff3de;border-left:3px solid #b47e3d;padding:12px 16px;color:#63491f}.rule{border-top:1px solid var(--line);margin:18px 0}table{border-collapse:collapse;width:100%;font-size:.92rem}th{font-size:.82rem;color:var(--muted);text-align:left}th,td{border-bottom:1px solid var(--line);padding:10px 8px;vertical-align:top}th:first-child,td:first-child{padding-left:0}details{border-top:1px solid var(--line);padding:16px 0}summary{font-weight:650;cursor:pointer}svg{display:block;width:100%;height:auto}figure{margin:0}figcaption{font-size:.84rem;color:var(--muted);margin-top:10px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:.86rem/1.6 ui-monospace,Consolas,monospace;background:#eaf0f3;border-radius:6px;padding:18px}ol{padding-left:24px}li{margin:7px 0}[hidden]{display:none!important}@media(max-width:720px){main{padding:22px 20px 44px}.grid{grid-template-columns:1fr;gap:18px}.panel{padding:20px}}@media(max-width:400px){main{padding:18px 16px 36px}.panel{padding:16px}.big{font-size:2.3rem}.fields{gap:12px}th,td{padding:8px 5px}}@media print{body{background:white}main{padding:0;max-width:none}.actions,button{display:none}.panel{break-inside:avoid}details>*{display:block}}:root{--accent:#806039}body{background:#f4f1eb}.warehouse-summary{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;padding:25px;background:white;border-top:6px solid #af873f}.warehouse-summary h2{margin:8px 0 20px;color:#7d5729}.quantity-line{display:flex;gap:28px}.quantity-line>b{font-size:2rem}.quantity-line small{display:block;font-size:.8rem;font-weight:500}.handoff{align-self:center;border-left:1px solid var(--line);padding-left:24px}.handoff p{font-size:.9rem;margin-bottom:0}.sop-steps li{padding:12px 0;border-bottom:1px solid var(--line)}.sop-steps p{margin:4px 0 0}@media(max-width:600px){.warehouse-summary{grid-template-columns:1fr;padding:20px}.handoff{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}.quantity-line{gap:24px}.quantity-line>b{font-size:1.7rem}}</style></head><body><main><header><h1>O01: one card short, handoff unconfirmed</h1><p>Trace a fictional short pick through its decision gate, parcel contents, and evidence.</p></header>
<section class="warehouse-summary"><div><span>Baseline order O01</span><h2 id="gate">Hold · release decision not supplied</h2><div class="quantity-line"><b>5 <small>ordered pieces</small></b><b>4 <small>picked pieces</small></b><b>1 <small>card short</small></b></div></div><div class="handoff"><b>Carrier handoff not confirmed</b><p>H01 timestamp and carrier acknowledgement are blank.</p></div></section>
<section class="panel below"><div class="fields"><label for="scenario">Review scenario<select id="scenario"><option value="baseline">Baseline hold · no decision</option><option value="partial">Conditional illustration · D01 assumed</option></select></label><label for="view">Inspect record<select id="view"><option value="order">Order and pick lines</option><option value="exception">Short-pick decision query</option><option value="parcel">Conditional parcel and label</option></select></label></div><p id="scenarioStatus" class="status" role="status"></p><div id="orderView" class="below"><table><tr><th>O01 line · piece</th><th>Ordered</th><th>Picked</th><th>Short</th></tr><tr><td>SKU-N · notebook</td><td>3</td><td>3</td><td>0</td></tr><tr><td>SKU-C · card</td><td>2</td><td>1</td><td>1</td></tr></table><p>Source locations and actual authorized order/hold references: TO CONFIRM.</p></div><div id="exceptionView" class="below" hidden><h2>Draft query · not sent</h2><p id="query">O01 requires SKU-N three pieces and SKU-C two pieces. The pick record contains SKU-N three and SKU-C one, leaving one card short. Please provide the authorized decision and its reference before parcel contents are released for packing.</p><p>Actual reviewer / recipient: ____________________</p><p>Decision / reference / response: ____________________</p></div><div id="parcelView" class="below" hidden><h2 id="parcelTitle"></h2><p id="parcelContents"></p><p id="labelRecord"></p><p>Actual packed-count evidence: ____________________</p><p>H01 timestamp / carrier acknowledgement: ____________________</p></div></section>
<section class="panel below"><h2>Six-step work instruction</h2><ol class="sop-steps"><li><b>Verify order and hold</b><p>Authorized order reviewer checks O01 and current hold status. Record the order/hold reference; unresolved authority stays on hold.</p></li><li><b>Record the pick</b><p>Picker records SKU, source location, unit, and actual count. Keep ordered N3/C2 separate from picked N3/C1; do not substitute or adjust stock here.</p></li><li><b>Route the short pick</b><p>Authorized reviewer supplies a decision and reference. One card remains short; the draft query is not an approval.</p></li><li><b>Check authorized packing</b><p>Packer records actual parcel quantities against the decision. Only the conditional D01 illustration permits N3/C1 in P01, with C1 outstanding.</p></li><li><b>Match parcel and label references</b><p>Check P01/O01/decision/content references against proposed LAB01. Actual address, service, materials, and carrier requirements remain TO CONFIRM.</p></li><li><b>Stage, then record real handoff</b><p>Dispatch records actual H01 time and carrier acknowledgement through the maintained workflow. A staged parcel or label is not carrier receipt or delivery.</p></li></ol></section><details class="below"><summary>Scope and maintained records</summary><p>All records are fictional. Scenario selection never approves D01, packs a parcel, changes inventory, generates a label, or confirms shipment. One parcel is a package count; four pieces are item quantities. Preserve outstanding SKU-C evidence until its own reconciliation. No WMS, scanning, label purchase, carrier contact, machinery, regulated-goods rules, or saved edits.</p></details></main><script>const $=id=>document.getElementById(id),put=(id,s)=>{$(id).textContent=s};
function esc(s){return String(s).replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));}
function gcd(a,b){a=a<0n?-a:a;b=b<0n?-b:b;while(b){[a,b]=[b,a%b]}return a||1n;}
function R(n,d=1n){n=BigInt(n);d=BigInt(d);if(d===0n)throw Error('Undefined denominator.');if(d<0n){n=-n;d=-d}const g=gcd(n,d);return {n:n/g,d:d/g};}
function mul(a,b){return R(a.n*b.n,a.d*b.d)}function div(a,b){return R(a.n*b.d,a.d*b.n)}function add(a,b){return R(a.n*b.d+b.n*a.d,a.d*b.d)}function sub(a,b){return R(a.n*b.d-b.n*a.d,a.d*b.d)}function cmp(a,b){const x=a.n*b.d-b.n*a.d;return x<0n?-1:x>0n?1:0}
function parse(s,{max=1000000,positive=false,places=6}={}){const t=String(s).trim();if(!t)throw Error('Enter a value; blank is not zero.');const re=new RegExp('^[0-9]+(?:\.[0-9]{1,'+places+'})?$');if(!re.test(t))throw Error('Use digits and a US decimal point, up to '+places+' places; no signs, commas, or exponents.');const v=Number(t);if(!Number.isFinite(v)||v>max||(positive&&v===0))throw Error('Value must be '+(positive?'greater than zero':'nonnegative')+' and at most '+max+'.');const [a,b='']=t.split('.');return R(BigInt(a+b),10n**BigInt(b.length));}
function format(a,places=6){const neg=a.n<0n,n=neg?-a.n:a.n,scale=10n**BigInt(places),v=n*scale,q=v/a.d,rem=v%a.d,k=q+(rem*2n>=a.d?1n:0n);const f=(k%scale).toString().padStart(places,'0').replace(/0+$/,'');return {text:(neg&&k!==0n?'-':'')+(k/scale)+(f?'.'+f:''),approx:rem!==0n};}
function exact(a){let d=a.d;while(d%2n===0n)d/=2n;while(d%5n===0n)d/=5n;if(d!==1n)return a.n+'/'+a.d;let places=0,p=1n;while(p%a.d!==0n&&places<40){p*=10n;places++}return format(a,places).text;}
function display(a,places=6){if(a.n>0n&&cmp(a,R(1n,10n**BigInt(places)))<0)return '< '+format(R(1n,10n**BigInt(places)),places).text;const f=format(a,places);return (f.approx?'≈ ':'')+f.text;}
function listen(ids,fn){ids.forEach(id=>{ $(id).addEventListener('input',fn);$(id).addEventListener('change',fn); });}
function state(scenario){if(!['baseline','partial'].includes(scenario))throw Error('Unsupported review scenario.');return {hold:scenario==='baseline',packed:scenario==='partial'?4:null,outstanding:1,order:5,picked:4,handoff:false};}
function update(){const s=state($('scenario').value),view=$('view').value;put('gate',s.hold?'Hold · release decision not supplied':'Conditional partial-pack illustration · not an actual release');put('scenarioStatus',s.hold?'Baseline: no D01 approval or actual packed record exists.':'Assumption for this illustration only: D01 authorizes N3/C1 partial packing. Actual approval remains unrecorded.');for(const key of ['order','exception','parcel'])$(key+'View').hidden=view!==key;put('parcelTitle',s.hold?'Packing gate remains closed':'Conditional P01 · four pieces, one card outstanding');put('parcelContents',s.hold?'No parcel contents are established from the pick record alone.':'If D01 authorizes it, P01 would contain SKU-N 3 pieces + SKU-C 1 piece. The five-piece order is still incomplete.');put('labelRecord',s.hold?'LAB01 is only a proposed reference; it establishes no carrier receipt.':'Proposed LAB01 links P01 and O01. Address/service TO CONFIRM. One parcel is not one item piece.');}
listen(['scenario','view'],update);globalThis.Tool={state,update};update();</script></body></html>