@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,sans-serif;color:#172f42;background:#f4f7fa;font-synthesis:none;--green:#075f9e;--muted:#738292;--line:#dce5ed}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;touch-action:manipulation;min-height:44px;border:0}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4a93c5;outline-offset:3px}button:hover{filter:brightness(.96)}#app{display:flex;min-height:100dvh}aside{width:214px;flex-shrink:0;background:var(--green);color:#fff;padding:34px 19px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.brand{color:white;text-decoration:none;display:flex;align-items:center;gap:9px;font-weight:800;letter-spacing:2px;font-size:17px;line-height:1.1}.nation{display:block;font-size:22px;letter-spacing:3px}.window{font-size:45px;line-height:1;color:#d4e3b6}.branch{margin:26px 0 42px;border-top:1px solid #ffffff22;padding:17px 7px 0;font-size:10px;letter-spacing:1.3px;color:#d4e5f1}.branch span{display:block;color:#8fafc7;margin-top:7px;font-size:9px}.navlabel{font-size:9px;color:#91b5d0;letter-spacing:1.5px;margin:0 13px 12px}nav{display:grid;gap:7px}nav button{display:flex;align-items:center;gap:11px;text-align:left;background:transparent;color:#c1d8e8;border-radius:7px;padding:13px 12px;font-size:13px}nav button span{font-size:21px;width:24px}nav button.active{background:#d9ecfa;color:#074c7a;font-weight:700}nav small{margin-left:auto;background:#ffffff19;padding:3px 6px;border-radius:4px}.sidebottom{margin-top:auto;padding:24px 10px 0}.demobadge{font-size:12px;display:flex;gap:7px;align-items:center}.demobadge i,.status i{width:6px;height:6px;background:#8fc9f2;border-radius:100%;display:inline-block}.sidebottom p{font-size:11px;color:#9bb5c9;line-height:1.7}.subtle{background:transparent;text-align:left;color:inherit;font-size:12px}.sidebottom button{display:block;color:#c5d9e7}main{flex:1;min-width:0;padding:0 32px}header{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{font-size:10px;font-weight:600;color:#738497;letter-spacing:1px}.breadcrumb span{padding:0 12px;color:#adc0cf}.topright{display:flex;align-items:center;gap:15px}.device{font-size:11px;color:var(--muted)}.avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#dfebf5;font-weight:700;font-size:11px}.pagehead{padding:31px 0 27px;display:flex;justify-content:space-between;align-items:center;gap:16px}.eyebrow{color:#6888a2;font-size:9px;letter-spacing:1.8px;font-weight:700;margin-bottom:9px}h1,h2,h3{font-family:Manrope,system-ui,sans-serif}h1{font-size:32px;letter-spacing:-1.3px;margin:0 0 8px;font-weight:800}.pagehead p{margin:0;font-size:12px;color:var(--muted)}.primary{background:var(--green);color:#fff;padding:14px 23px;border-radius:7px;font-size:13px;font-weight:600;white-space:nowrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.stat{display:flex;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:9px;padding:19px 20px;text-align:left;background:#fff}.stat.chosen{border-color:#5f9bc5;background:#edf6fc;box-shadow:0 0 0 1px #5f9bc5}.statlabel{font-size:11px;color:#607b92}.stat strong{display:block;font-size:32px;line-height:1.3;font-weight:600}.stat strong small{font-size:10px;font-weight:400;color:#8197a9;margin-left:9px}.statpic{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;font-size:26px;background:#deedf8;color:#176699}.statpic.out{background:#e7edf2;color:#6b8194}.statpic.returned{background:#f3e9dc;color:#aa8553}.toolbar{display:flex;gap:13px;margin:26px 0 22px}.search{flex:1;display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:0 15px}.search span{font-size:26px;color:#6f899e}.search input{border:0;background:transparent;padding:14px 0;width:100%;font-size:12px;color:var(--green);min-height:46px}.search input:focus{outline:0}.search:focus-within{outline:2px solid #4a93c5}.toolbar select{background:#fff;border:1px solid var(--line);border-radius:7px;padding:0 12px;color:#617d92;font-size:11px}.sectiontitle{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.sectiontitle h2{margin:0;font-size:14px}.sectiontitle h2 span{margin-left:8px;background:#dfedf8;padding:3px 7px;border-radius:5px;font-size:10px;color:#5a819e}.sectiontitle>span{font-size:10px;color:#8093a2}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:22px;align-items:start}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.jobcard{display:block;min-width:0;border:1px solid var(--line);border-radius:9px;background:white;padding:17px;text-align:left;color:inherit}.jobcard.selected{border-color:#5996c2;box-shadow:0 0 0 1px #5996c2;background:#f6fbff}.cardtop{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:5px}.particon{font-size:25px;color:#5684a7;background:#eaf2f8;border-radius:7px;width:38px;height:38px;display:grid;place-items:center}.status{display:inline-flex;align-items:center;gap:6px;border-radius:4px;background:#e4f2fd;color:#176697;padding:5px 7px;font-size:9px;font-weight:600;white-space:nowrap}.status i{background:#3085bd}.status.out{background:#eaf0f5;color:#6b8295}.status.out i{background:#7a96ac}.status.returned{background:#f8eddf;color:#aa824d}.status.returned i{background:#bd955e}.jobcard h3{font-size:17px;margin:0 0 5px;letter-spacing:-.4px}code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:10px;color:#87917d;overflow-wrap:anywhere}.parttext{font-size:12px;line-height:1.7;min-height:40px;margin:14px 0;color:#5d768a}.cardfoot{display:flex;justify-content:space-between;border-top:1px solid #eaf0f5;padding-top:12px;font-size:9px;color:#7f94a5;gap:5px}.cardfoot span:last-child{color:#176697;font-weight:600}.detail{background:white;border:1px solid var(--line);padding:23px;border-radius:9px;position:sticky;top:20px}.detailheading{display:flex;justify-content:space-between;font-size:9px;letter-spacing:1.3px;color:#8298aa;margin-bottom:18px}.detail h2{font-size:24px;margin:0 0 5px;letter-spacing:-.8px}.detailmeta{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:17px 0 25px;font-size:9px;color:#8095a6}h4{font-size:9px;letter-spacing:1.2px;color:#8096a8;margin:23px 0 12px}.detailparts>div{display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:11px 0;border-bottom:1px solid #eaf0f5}.detailparts strong{font-size:17px}.detailparts strong small{display:block;font-size:8px;font-weight:400;color:#859bab;text-align:center}.wide{width:100%;margin-top:22px}.hint{font-size:10px;color:#8195a4;line-height:1.6;margin:9px 0}.timeline>div{position:relative;border-left:1px solid #dce7ef;margin-left:4px;padding:0 0 19px 17px}.timeline i{position:absolute;left:-4px;top:4px;width:7px;height:7px;background:#6599bf;border-radius:50%;outline:3px solid white}.timeline strong{display:block;font-size:11px;font-weight:600}.timeline span{display:block;font-size:9px;color:#8399aa;margin-top:4px}.timeline p{font-size:10px;color:#647f95;margin:6px 0 0}footer{display:flex;justify-content:space-between;margin:27px 0 20px;padding-top:15px;border-top:1px solid var(--line);font-size:9px;color:#8fa1af}footer span:first-child{letter-spacing:1.4px}.empty{grid-column:1/-1;padding:50px 20px;text-align:center;color:#7d96a8;font-size:13px}.empty button{background:#e1eef8;color:var(--green);border-radius:6px;padding:0 15px}.activitylist{background:white;border:1px solid var(--line);border-radius:9px;padding:0 20px}.activitylist article{display:flex;align-items:center;gap:18px;padding:20px 0;border-bottom:1px solid var(--line)}.activitylist article:last-child{border:0}.activitylist article>div{flex:1}.activitylist strong{font-size:13px}.activitylist p{font-size:11px;color:var(--muted);margin:5px 0 0}.activitylist time{text-align:right;font-size:10px;color:var(--muted);line-height:1.6}.eventicon{width:34px;height:34px;display:grid;place-items:center;background:#e7f1f8;border-radius:7px}.initialbadge{font-size:10px;background:#e3eef7;padding:8px;border-radius:5px}dialog{width:min(570px,calc(100vw - 36px));max-height:90dvh;overflow:auto;border:1px solid #dbe5ef;padding:32px;border-radius:13px;color:var(--green);box-shadow:0 20px 100px #0b271d33}dialog::backdrop{background:#0d261b70;backdrop-filter:blur(3px)}dialog h2{margin:5px 0 12px;font-size:27px;letter-spacing:-.8px}dialog>p{color:#738a9e;font-size:12px;line-height:1.7}.close{position:absolute;right:15px;top:12px;width:40px;background:transparent;font-size:25px;color:#728b9e}.summary{background:#eff5fa;padding:18px;border-radius:7px;margin:20px 0;font-size:13px}.summary strong{display:block}.summary code{display:block;margin-top:7px}.summary p{margin-bottom:0}form label{display:grid;gap:7px;font-size:11px;font-weight:600;margin:15px 0}form input,form textarea{border:1px solid #d7e4ee;background:#fff;border-radius:6px;padding:12px;font-size:14px;min-height:46px;width:100%;color:var(--green)}form textarea{resize:vertical;min-height:80px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.partrow{display:grid;grid-template-columns:90px 1fr 34px;gap:10px;align-items:end}.partrow label{margin:8px 0}.remove{background:transparent;font-size:23px;color:#849aaa;margin-bottom:8px}.addpart{color:#256e9f;padding:8px 0}.formactions{display:flex;justify-content:flex-end;gap:12px;margin-top:22px}.formactions>button:not(.primary){background:#e9f2f8;color:#52758f;border-radius:6px;padding:12px 17px;font-size:12px}.error{color:#ad4935;font-size:12px;line-height:1.5}.duplicate:not(:empty){background:#e9f4fc;border:1px solid #c8e1f3;border-radius:6px;padding:12px;font-size:11px;line-height:1.6}.notice{padding:12px;background:#f9eadb;font-size:12px;margin-bottom:15px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:#075f9e;color:white;border-radius:8px;padding:16px 24px;box-shadow:0 7px 25px #142b2422;font-size:13px;transition:transform .2s;z-index:10}#toast.visible{transform:translateX(-50%) translateY(0)}
@media(min-width:1450px){main{padding:0 48px}.workspace{grid-template-columns:1fr 350px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:1100px){aside{width:180px;padding:29px 13px}.brand{font-size:14px}.nation{font-size:19px}.window{font-size:36px}main{padding:0 23px}.workspace{gap:15px;grid-template-columns:minmax(0,1fr) 275px}.jobcard{padding:13px}.detail{padding:18px}.cardfoot{flex-wrap:wrap}.stat{padding:15px}.pagehead{padding:25px 0}h1{font-size:29px}.device{display:none}}@media(max-width:850px){aside{width:150px}.brand{font-size:12px;letter-spacing:1px}.nation{font-size:15px}.window{font-size:31px}nav button{font-size:11px;padding:12px 7px;gap:6px}main{padding:0 17px}.cards{grid-template-columns:1fr}.workspace{grid-template-columns:1fr 260px}.statpic{width:32px;height:32px;font-size:21px}.stats{gap:8px}.stat{padding:12px}.stat strong{font-size:25px}}@media(max-width:650px){#app{display:block}aside{position:static;width:100%;height:auto;padding:14px 18px}.brand{font-size:14px}.nation{display:inline;margin-left:5px}.branch,.navlabel,.sidebottom{display:none}nav{display:flex;overflow-x:auto;margin-top:15px}nav button{white-space:nowrap;flex:1;padding:9px 7px;font-size:10px}nav button span{width:auto;font-size:17px}header{height:55px}.breadcrumb{font-size:8px}.pagehead{align-items:flex-start}.eyebrow{font-size:8px}h1{font-size:25px}.pagehead p{font-size:11px;line-height:1.5}.pagehead .primary{font-size:11px;padding:12px}.stats{gap:7px}.statpic{display:none}.statlabel{font-size:10px}.stat strong small{margin-left:4px;font-size:9px}.workspace{grid-template-columns:1fr}.cards{grid-template-columns:1fr 1fr}.detail{position:static}.sectiontitle>span{display:none}.toolbar{flex-wrap:wrap}.search{flex-basis:100%}.toolbar select{min-height:44px}.activitylist article{gap:9px;flex-wrap:wrap}.activitylist code{display:none}.formgrid{grid-template-columns:1fr;gap:0}.formactions{gap:6px}.formactions button{padding:12px!important}.jobcard h3{font-size:15px}}

.workspace:not(.with-detail){grid-template-columns:1fr}.workspace:not(.with-detail) .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.detailheading button{min-height:44px;width:44px;margin:-14px -12px -10px 0;background:transparent;color:#6e8ba1;font-size:23px}.pickupcheck{border:0;padding:0;margin:22px 0}.pickupcheck legend{font-size:10px;letter-spacing:1px;color:#6487a2;font-weight:700}.pickupcheck label{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #d4e3ee;border-radius:7px;min-height:52px;margin:8px 0;background:#f4f9fd;cursor:pointer;font-size:14px}.pickupcheck input{width:23px;height:23px;min-height:23px;accent-color:#075f9e;flex-shrink:0}.pickupcheck small{color:#7693a9;margin-left:6px}.pickupcheck label:has(input:checked){background:#e4f2fd;border-color:#5c9bc7}input:disabled{background:#ecf1f5;color:#99acba}button:disabled{opacity:.4;cursor:not-allowed}button:disabled:hover{filter:none}@media(max-width:850px){.workspace:not(.with-detail) .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}

.company-logo{display:block;width:100%;height:auto}.brand{display:block;background:white;border-radius:7px;overflow:hidden}.sidebottom .demobadge i{background:#81c8f6}aside{background:#112e46}.pickupcheck input{accent-color:#075f9e}@media(max-width:650px){.brand{width:170px}}

.returnsearch{margin:22px 0 16px}.returnchoice{display:flex;width:100%;align-items:center;justify-content:space-between;gap:15px;text-align:left;padding:17px;margin:10px 0;border:1px solid #d6e3ed;background:#f5f9fc;border-radius:8px;color:#183b55}.returnchoice strong{font-size:15px}.returnchoice code{display:block;margin-top:6px}.returnchoice p{font-size:12px;margin:9px 0}.returnchoice small{font-size:10px;color:#718b9f}.returnchoice>span{font-size:12px;color:#075f9e;white-space:nowrap}

.headeractions{display:flex;gap:12px;align-items:center}.returnaction{background:#fff;border:1px solid #b9d2e5;color:#075f9e;padding:14px 23px;border-radius:7px;font-size:13px;font-weight:600;white-space:nowrap}@media(max-width:850px){.pagehead{flex-wrap:wrap}.headeractions{gap:8px}.returnaction{padding:12px 16px}}

.stats{grid-template-columns:repeat(2,minmax(0,1fr))}
.company-logo{transform:translateX(-4px)}
.oldstockbar{display:flex;align-items:center;gap:15px;margin-top:20px}.oldstockbar button{padding:10px 15px;background:#fff3df;border:1px solid #e5c895;color:#8d611a;border-radius:7px;font-size:12px}.oldstockbar button.on{background:#f8dca9}.oldstockbar strong{margin-left:8px}.oldstockbar>span{font-size:10px;color:#8092a1}.oldflag{display:inline-block;background:#fff0d5;color:#98681b;border-radius:4px;font-size:10px;padding:5px 7px;margin-top:8px}.correctbutton{margin-top:12px;color:#075f9e}.auditdiff{font-size:10px;margin:8px 0;padding:8px;background:#f2f6fa;border-radius:5px}.auditdiff strong{display:block}.auditdiff del,.auditdiff ins{display:block;overflow-wrap:anywhere;margin-top:4px}.auditdiff del{color:#985a4e}.auditdiff ins{color:#297159;text-decoration:none}.rulestext{min-height:240px;line-height:1.6}.photoreceive{background:#edf6fc;border:1px dashed #8eb9d7;border-radius:8px;padding:16px;margin:18px 0}.photobutton{color:#075f9e;font-weight:600;cursor:pointer}.photobutton input{font-size:12px;cursor:pointer}.photoreceive p{font-size:11px;line-height:1.6;color:#657f94}.photoreceive img{max-width:100%;max-height:200px;object-fit:contain;display:block;margin:12px auto}.photoreceive img[hidden]{display:none}@media(max-width:650px){.oldstockbar{flex-wrap:wrap}}

.photopaste{margin-top:12px;padding:16px;border:1px dashed #8eb9d7;border-radius:7px;background:#fff;color:#075f9e;cursor:text;min-height:48px;font-size:13px}.photopaste:focus{outline:2px solid #075f9e;outline-offset:2px}.photopaste[aria-busy="true"]{opacity:.6}

.learningpanel{padding:12px 16px;background:#edf6fc;border:1px solid #c8dfef;border-radius:8px;margin:14px 0}.learningpanel p{font-size:12px;line-height:1.5}.learningpanel h4{margin-top:0}

/* Landscape receiving workspace */
dialog.batch-modal{width:min(1060px,calc(100vw - 32px));padding:28px;max-height:94dvh}
.batchintro{font-size:13px;color:#687f91}.batchtools{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#edf6fc;border:1px dashed #8eb9d7;border-radius:8px;padding:12px 16px}.batchtools label{margin:0;flex:1;min-width:160px}.batchtools input{font-size:12px;padding:8px}.batchtools .photopaste{flex-basis:100%;margin-top:0;padding:12px}.batchlayout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px;align-items:start}.batchlayout[hidden],.batchtools[hidden]{display:none}.batchphoto{display:flex;gap:9px;padding:14px 0;border-bottom:1px solid #dce5ed;font-size:12px}.batchphoto strong{display:block;overflow-wrap:anywhere;line-height:1.5}.batchphoto p{font-size:11px;line-height:1.5;color:#607b92;margin:4px 0}.batchnumber{display:grid;place-items:center;background:#dfedf8;border-radius:50%;width:25px;height:25px;flex-shrink:0;font-size:11px}.batchlabel{padding:16px 18px;margin-bottom:14px;border:1px solid #bdd5e8;border-radius:9px;background:#fff}.batchlabel.excluded{background:#f1f4f7;border-color:#dce5ed}.batchlabelhead{display:flex;align-items:center;justify-content:space-between;gap:16px}.batchlabelhead label{display:flex;gap:9px;align-items:center;margin:0;font-size:14px;white-space:nowrap;min-height:44px}.batchlabelhead input{width:22px;height:22px;min-height:22px;accent-color:#075f9e;padding:0}.batchlabelhead>span{font-size:10px;color:#738a9e;overflow-wrap:anywhere;text-align:right}.batchlabel fieldset{border:0;padding:0;margin:0;min-width:0}.batchlabel .duplicate{font-size:12px}.batchwarning{font-size:11px;line-height:1.6;color:#91651e;background:#fff6e7;padding:9px;border-radius:6px}.batchpreview summary{cursor:pointer;font-size:11px;padding:12px 0;min-height:44px}.batchpreview img{max-width:100%;max-height:340px;object-fit:contain}.batchactions{position:sticky;bottom:-28px;background:#fff;border-top:1px solid #dce5ed;padding:16px 0;margin-top:18px;align-items:center}.batchactions>span{margin-right:auto;font-size:12px;color:#648098}#batchstatus{font-size:12px;line-height:1.7;padding:6px 0}#batchinitials{max-width:260px}#batchsummary .summary strong{font-size:17px}@media(max-width:750px){dialog.batch-modal{padding:20px}.batchlayout{grid-template-columns:1fr}#batchphotos{display:flex;overflow:auto;gap:14px}.batchphoto{min-width:155px;max-width:220px}.batchactions{bottom:-20px;flex-wrap:wrap}.batchlabelhead>span{max-width:50%}}

/* Compact, touch-friendly photo controls shared by receiving and batches. */
.photoreceive,.batchtools{display:block;padding:16px;background:#f3f8fc;border:1px solid #d7e6f1;border-radius:10px}
.photoheading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-6px 0 8px}.photoheading strong{font-size:13px;font-weight:600;color:#244e6b}.photoheading button{color:#567e9b;font-size:11px;padding:0 2px}
.photoactions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.photoactions .photoaction{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:48px;margin:0;padding:12px;border:1px solid #b7d0e2;border-radius:7px;background:white;color:#075f9e;font-size:13px;font-weight:600;cursor:pointer;overflow:hidden}.photoactions .upload-action{color:white;background:#075f9e;border-color:#075f9e}.photoaction svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.photoaction input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;cursor:pointer}.photoaction:focus-within{outline:3px solid #4a93c5;outline-offset:3px}.photoaction:hover{filter:brightness(.96)}
.photoreceive .photopaste,.batchtools .photopaste{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 0;min-height:44px;padding:11px 13px;background:transparent;border:1px dashed #b5ccdd;font-size:12px;color:#577d98}.photopaste span{font-size:10px;color:#8298aa;white-space:nowrap;pointer-events:none}.photoreceive .photohelp,.batchtools .photohelp{margin:10px 0 0;font-size:11px;line-height:1.5;color:#728b9e}.batchtools .photoactions{max-width:470px}.batchtools .photopaste{max-width:470px}@media(max-width:400px){.photoactions{gap:7px}.photoactions .photoaction{font-size:12px;padding:10px 7px}.photopaste span{display:none}.photoheading button{font-size:10px}}

/* Job cards open in a centered, scrollable detail dialog. */
dialog.job-modal{width:min(620px,calc(100vw - 36px));padding:30px;max-height:90dvh}.job-modal .detail{position:static;padding:0;border:0;border-radius:0;background:transparent}.job-modal .detailheading{margin:0 44px 14px 0}.job-modal .detail h2{font-size:28px;margin:0 35px 6px 0}.job-modal .detail>code{font-size:12px}.job-modal .detailmeta{font-size:11px;margin:20px 0}.job-modal .status{font-size:11px;padding:7px 10px}.job-modal .detailparts{padding:0 16px 10px;background:#f3f8fc;border:1px solid #dce8f1;border-radius:9px}.job-modal .detailparts h4{margin-top:16px}.job-modal .detailparts>div{font-size:14px;padding:13px 0}.job-modal .detailparts>div:last-child{border-bottom:0}.job-modal .detailparts strong{font-size:21px}.job-modal .detailparts strong small{font-size:10px}.job-modal .hint{font-size:11px}.job-modal .correctbutton{margin-top:2px}.job-modal .timeline strong{font-size:12px}.job-modal .timeline span,.job-modal .timeline p{font-size:11px}.job-modal h4{font-size:10px}@media(max-width:500px){dialog.job-modal{padding:24px}.job-modal .detail h2{font-size:25px}}

button,a,input,label,[role=button]{-webkit-tap-highlight-color:transparent}
button:focus:not(:focus-visible){outline:none}
dialog:focus{outline:none}
dialog[open]{animation:dialog-appear 180ms ease-out}
dialog[open]::backdrop{animation:backdrop-appear 180ms ease-out}
@keyframes dialog-appear{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes backdrop-appear{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){dialog[open],dialog[open]::backdrop{animation:none}}
.initials-hint{margin-top:-6px;max-width:380px}

/* Keep the inventory still while the native dialog traps focus and interaction. */
html.modal-open{overflow:hidden;overscroll-behavior:none}
body.modal-open{position:fixed;left:0;right:0;width:100%;overflow:hidden;overscroll-behavior:none}
dialog{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

dialog[open].closing{animation:dialog-disappear 160ms ease-in forwards;pointer-events:none}
dialog[open].closing::backdrop{animation:backdrop-disappear 160ms ease-in forwards}
@keyframes dialog-disappear{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(6px) scale(.985)}}
@keyframes backdrop-disappear{from{opacity:1}to{opacity:0}}
@media(prefers-reduced-motion:reduce){dialog[open].closing,dialog[open].closing::backdrop{animation:none}}
.deletebutton{display:block;margin-top:24px}.primary.danger{background:#a32929}.delete-summary{padding:16px;background:#f7f9fb;border:1px solid #d6e2eb;border-radius:12px}.delete-summary code{display:block;margin-top:6px}.deleteconfirm{display:flex;align-items:center;gap:12px}.deleteconfirm input{width:22px;height:22px;flex:none}
.part-balance{display:block;font-size:12px;color:#78909f;margin-top:5px}.returncheck{border:1px solid #d6e2eb;border-radius:12px;padding:16px;margin:20px 0}.returncheck legend{font-size:11px;letter-spacing:1.5px;color:#78909f}.returnrow{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid #e2ebf1}.returnrow>label:first-child{display:flex;align-items:center;gap:12px;margin:0}.returnrow input[type=checkbox]{width:24px;height:24px;flex:none}.returnrow small{display:block;color:#78909f;font-size:12px;margin-top:5px}.returnqty{width:90px;flex:none;margin:0}.returnqty input{margin-top:5px}.status.partial{color:#9c6515;background:#fff4df}
button.avatar{min-width:40px;width:auto;padding:0 8px;cursor:pointer;font-size:12px;letter-spacing:0}
header{position:sticky;top:0;z-index:2;background:#f4f7fa}
.connection-indicator{display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border-radius:20px;font-size:11px;white-space:nowrap;background:#e8f4ed;color:#286845}.connection-indicator i{width:7px;height:7px;border-radius:50%;background:#32935d;flex:none}.connection-indicator.offline{background:#fff1df;color:#946019}.connection-indicator.offline i{background:#c4852f}
@media(min-width:651px){body.modal-open aside{position:relative;top:var(--background-scroll-y,0px)}}
body.modal-open header{position:relative;top:var(--background-scroll-y,0px)}
@media(max-width:650px){.connection-indicator{font-size:10px;padding:6px 8px}.topright{gap:8px}.breadcrumb{letter-spacing:0}}
.part-picker{position:relative;min-width:0}.part-picker>input{padding-right:42px}.part-picker-toggle{position:absolute;right:1px;top:1px;width:38px;height:44px;min-height:44px;border-radius:5px;background:transparent;color:#52758f;font-size:20px}.part-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:6;max-height:220px;overflow-y:auto;overscroll-behavior:contain;padding:5px;border:1px solid #b9d2e5;border-radius:9px;background:white;box-shadow:0 8px 24px #172f4226}.part-suggestions[hidden]{display:none}.part-suggestions button{display:block;width:100%;padding:12px;text-align:left;background:white;border-radius:6px;font-size:13px;color:#075f9e;white-space:normal}.part-suggestions button:hover,.part-suggestions button[aria-selected=true]{background:#eaf4fb}.part-suggestions p{font-size:12px;color:#738292;font-weight:400;padding:8px;margin:0}

/* Outline part icons and the device's remembered appearance. */
:root{color-scheme:light}.particons{display:flex;gap:6px;flex-wrap:wrap}.particon{width:38px;height:38px;flex:none}.particon svg{width:25px;height:25px}.theme-toggle{display:grid;place-items:center;width:44px;height:44px;flex:none;background:#e5eef6;color:#176697;border-radius:10px}.theme-toggle svg{width:22px;height:22px}
:root[data-theme=dark]{color-scheme:dark;color:#dce9f4;background:#111e2a;--green:#8dccf6;--muted:#a4b7c7;--line:#354858}
[data-theme=dark] aside{background:#0b2336}
[data-theme=dark] header{background:#111e2a}
[data-theme=dark] .jobcard,[data-theme=dark] .stat,[data-theme=dark] .detail,[data-theme=dark] .activitylist,[data-theme=dark] dialog,[data-theme=dark] .batchlabel,[data-theme=dark] .batchactions,[data-theme=dark] .part-suggestions{background:#1b2d3c;border-color:#354858;color:#dce9f4}
[data-theme=dark] .jobcard.selected,[data-theme=dark] .stat.chosen{background:#223f54;border-color:#6baedb;box-shadow:0 0 0 1px #6baedb}
[data-theme=dark] .search,[data-theme=dark] .toolbar select,[data-theme=dark] form input,[data-theme=dark] form textarea,[data-theme=dark] .photopaste,[data-theme=dark] .photoactions .photoaction,[data-theme=dark] .part-suggestions button{background:#142635;color:#dce9f4;border-color:#405769}
[data-theme=dark] .primary,[data-theme=dark] .photoactions .upload-action{background:#126fa9;color:#fff}
[data-theme=dark] .primary.danger{background:#a32929;color:#fff}
[data-theme=dark] .theme-toggle,[data-theme=dark] .avatar,[data-theme=dark] .particon,[data-theme=dark] .statpic,[data-theme=dark] .eventicon,[data-theme=dark] .initialbadge,[data-theme=dark] .sectiontitle h2 span,[data-theme=dark] .batchnumber{background:#29475d;color:#a3d6f8}
[data-theme=dark] .status{background:#234a63;color:#a9daf9}[data-theme=dark] .status.out,[data-theme=dark] .statpic.out{background:#334655;color:#b6ccdc}
[data-theme=dark] .status.partial,[data-theme=dark] .oldflag,[data-theme=dark] .oldstockbar button,[data-theme=dark] .batchwarning,[data-theme=dark] .notice{background:#4a3822;color:#f1cf94;border-color:#856538}
[data-theme=dark] .oldstockbar button.on{background:#654923}
[data-theme=dark] .returnaction,[data-theme=dark] .returnchoice,[data-theme=dark] .summary,[data-theme=dark] .delete-summary,[data-theme=dark] .photoreceive,[data-theme=dark] .batchtools,[data-theme=dark] .learningpanel,[data-theme=dark] .auditdiff,[data-theme=dark] .duplicate:not(:empty),[data-theme=dark] .pickupcheck label{background:#223b4e;color:#dce9f4;border-color:#405c72}
[data-theme=dark] .pickupcheck label:has(input:checked),[data-theme=dark] .part-suggestions button:hover,[data-theme=dark] .part-suggestions button[aria-selected=true]{background:#30536d;border-color:#74b8e7}
[data-theme=dark] .batchlabel.excluded,[data-theme=dark] input:disabled{background:#25333e;color:#91a7b9}
[data-theme=dark] .formactions>button:not(.primary),[data-theme=dark] .empty button{background:#29475d;color:#c6e3f6}
[data-theme=dark] .breadcrumb,[data-theme=dark] .eyebrow,[data-theme=dark] .statlabel,[data-theme=dark] .stat strong small,[data-theme=dark] .sectiontitle>span,[data-theme=dark] .parttext,[data-theme=dark] .cardfoot,[data-theme=dark] .detailheading,[data-theme=dark] .detailmeta,[data-theme=dark] h4,[data-theme=dark] .hint,[data-theme=dark] .timeline span,[data-theme=dark] .timeline p,[data-theme=dark] footer,[data-theme=dark] dialog>p,[data-theme=dark] .oldstockbar>span,[data-theme=dark] .photoreceive p,[data-theme=dark] .batchintro,[data-theme=dark] .batchphoto p,[data-theme=dark] .batchlabelhead>span,[data-theme=dark] .batchactions>span,[data-theme=dark] .part-balance,[data-theme=dark] .returncheck legend,[data-theme=dark] .returnrow small,[data-theme=dark] .part-suggestions p,[data-theme=dark] .returnchoice small{color:#a4b7c7}
[data-theme=dark] code{color:#b2c9d9}
[data-theme=dark] .close,[data-theme=dark] .remove,[data-theme=dark] .part-picker-toggle,[data-theme=dark] .correctbutton,[data-theme=dark] .addpart,[data-theme=dark] .photoheading button,[data-theme=dark] .photoheading strong,[data-theme=dark] .cardfoot span:last-child,[data-theme=dark] .returnchoice>span,[data-theme=dark] .pickupcheck legend{color:#8dccf6}
[data-theme=dark] .cardfoot,[data-theme=dark] .detailparts>div,[data-theme=dark] .timeline>div,[data-theme=dark] .batchphoto,[data-theme=dark] .returnrow,[data-theme=dark] .returncheck{border-color:#354858}
[data-theme=dark] .timeline i{outline-color:#1b2d3c}
[data-theme=dark] .error,[data-theme=dark] .auditdiff del{color:#ffab9c}[data-theme=dark] .auditdiff ins{color:#91dfba}
[data-theme=dark] .connection-indicator{background:#214735;color:#a7e3be}[data-theme=dark] .connection-indicator.offline{background:#4a3822;color:#f1cf94}
[data-theme=dark] dialog::backdrop{background:#030b13b3}
@media(max-width:650px){.topright{gap:6px}.theme-toggle{width:44px}.breadcrumb{max-width:120px}.particon{width:32px;height:32px}.particons{gap:4px}}

[data-theme=dark] .job-modal .detail{background:transparent}
[data-theme=dark] .job-modal .detailparts{background:#142635;border-color:#405769;color:#dce9f4}
[data-theme=dark] .job-modal .detailparts strong small{color:#a4b7c7}

.mobile-tools{display:none}.mobile-tool-list{display:grid;gap:12px;margin-top:24px}.mobile-tool-list button{background:#edf6fc;color:#075f9e;border:1px solid var(--line);border-radius:8px;padding:14px 16px;text-align:left;font-size:16px}
[data-theme=dark] .mobile-tool-list button{background:#223b4e;color:#dce9f4}
/* Phone layout: one readable job per row, full-width touch controls, scrollable sheets. */
@media(max-width:650px){
 #app{min-height:100dvh}aside{display:flex;flex-direction:row;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) 10px max(14px,env(safe-area-inset-left));height:auto}
 .brand{width:94px;flex:none;border-radius:6px}.company-logo{transform:translateX(-2px)}nav{margin:0;flex:1;gap:6px;overflow:visible}nav button{justify-content:center;gap:5px;padding:8px 6px;font-size:12px;white-space:normal;line-height:1.25}nav button span{font-size:19px}
 main{padding:0 max(14px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left))}
 header{height:60px}.breadcrumb{display:none}.topright{width:100%;gap:8px}.connection-indicator{order:-1;margin-right:auto;font-size:12px;padding:8px 10px}.mobile-tools{display:grid;place-items:center;width:44px;height:44px;border-radius:10px;background:#e5eef6;color:#176697;font-size:26px}.avatar{height:44px;min-height:44px}
 .pagehead{display:block;padding:18px 0 20px}.pagehead .eyebrow{display:none}h1{font-size:27px;margin-bottom:8px}.pagehead p{font-size:14px;line-height:1.5}.headeractions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.headeractions .primary,.headeractions .returnaction{width:100%;min-height:50px;padding:12px 8px;font-size:14px}
 .stats{gap:10px}.stat{min-height:88px;padding:12px 16px}.statlabel{font-size:13px}.stat strong{font-size:28px}.stat strong small{font-size:12px;margin-left:7px}.oldstockbar{margin-top:16px;gap:8px}.oldstockbar button{font-size:13px;min-height:44px}.oldstockbar>span{display:none}
 .toolbar{margin:16px 0;gap:8px}.search{min-width:0;padding:0 12px}.search input{font-size:16px;min-height:50px;padding:12px 0}.toolbar select{width:100%;font-size:16px;height:46px}.sectiontitle h2{font-size:16px}.sectiontitle h2 span{font-size:12px}
 .workspace:not(.with-detail) .cards,.cards{grid-template-columns:minmax(0,1fr);gap:12px}.jobcard{padding:16px}.cardtop{margin-bottom:10px}.particon{width:36px;height:36px}.particons{gap:6px}.status{font-size:11px;padding:7px 9px}.jobcard h3{font-size:21px;overflow-wrap:anywhere}.jobcard code{font-size:12px}.parttext{font-size:15px;min-height:0;line-height:1.5;margin:12px 0}.cardfoot{font-size:12px;gap:8px}.oldflag{font-size:12px}
 footer{font-size:11px;line-height:1.5;gap:16px}footer span:last-child{text-align:right}
 dialog,dialog.job-modal,dialog.batch-modal{width:calc(100vw - 16px);max-width:600px;max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:20px 16px calc(20px + env(safe-area-inset-bottom));margin:auto;border-radius:16px}
 dialog .close{position:sticky;top:0;float:right;z-index:8;margin:-10px -5px 0 0;border-radius:8px;background:#fff;min-height:44px;width:44px}dialog h2{font-size:26px;margin-right:36px;overflow-wrap:anywhere}dialog>p,.batchintro{font-size:14px}.eyebrow{font-size:10px}
 form label{font-size:14px;min-width:0}form input,form textarea,form select,.part-picker>input{font-size:16px;min-width:0}input[type=checkbox]{min-height:24px}.formgrid{grid-template-columns:minmax(0,1fr);gap:0}.partrow{grid-template-columns:64px minmax(0,1fr) 44px;gap:8px}.remove{width:44px;margin-bottom:8px}.part-picker-toggle{height:46px}.part-suggestions button{font-size:16px}.addpart{font-size:14px;min-height:48px}.hint,.initials-hint{font-size:12px;line-height:1.6}.error,.duplicate:not(:empty){font-size:14px}
 .formactions{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));z-index:7;background:#fff;border-top:1px solid var(--line);padding:12px 0 calc(12px + env(safe-area-inset-bottom));margin-top:20px;gap:8px;flex-wrap:wrap}.formactions>button{flex:1;min-height:48px;font-size:14px}.formactions>button.primary{flex:2;white-space:normal}.batchactions>span{flex-basis:100%}
 .photoheading{align-items:center;gap:8px}.photoheading strong{font-size:14px}.photoheading button{font-size:12px;max-width:120px}.photoreceive,.batchtools{padding:12px}.photoactions .photoaction{font-size:14px;min-height:52px;padding:10px 6px}.photoactions .photoaction svg{flex:none;width:18px}.photoreceive .photopaste,.batchtools .photopaste{font-size:14px;min-height:48px}.photoreceive .photohelp,.batchtools .photohelp{font-size:12px}
 .job-modal .detail h2{font-size:26px}.job-modal .detailparts{padding:0 12px 8px}.job-modal .detailparts>div{font-size:16px;gap:14px;align-items:flex-start}.detailparts>div>span{min-width:0;overflow-wrap:anywhere}.detailparts strong{flex:none}.part-balance{font-size:12px;line-height:1.5}.job-modal .detailmeta{font-size:12px;flex-wrap:wrap}.job-modal .timeline strong{font-size:14px}.job-modal .timeline span,.job-modal .timeline p{font-size:12px;line-height:1.5}.wide{font-size:16px;min-height:50px}.correctbutton{font-size:14px}
 .pickupcheck label{font-size:16px;align-items:flex-start}.pickupcheck label>span{min-width:0;overflow-wrap:anywhere}.pickupcheck legend,.returncheck legend{font-size:12px;letter-spacing:.5px}.returncheck{padding:12px}.returnrow{gap:10px}.returnrow>label:first-child{min-width:0}.returnrow>label:first-child>span{min-width:0;overflow-wrap:anywhere}.returnqty{width:72px}.returnrow small{font-size:12px}.returnchoice{padding:14px;gap:10px}.returnchoice>div{min-width:0}.returnchoice strong{font-size:17px;overflow-wrap:anywhere}.returnchoice code,.returnchoice small{font-size:12px}.returnchoice p{font-size:14px}.returnchoice>span{font-size:12px}
 .batchlabel{padding:12px}.batchlabelhead{flex-wrap:wrap;gap:4px}.batchlabelhead>span{max-width:100%;text-align:left}.batchlabelhead label{white-space:normal}.batchwarning{font-size:12px}.batchpreview summary{font-size:14px}#batchinitials{max-width:none}#batchphotos{gap:10px}.batchphoto{min-width:130px}.batchphoto p{font-size:12px}.batchphoto strong{font-size:13px}.activitylist{padding:0 14px}.activitylist strong{font-size:16px}.activitylist p{font-size:13px;line-height:1.5}.activitylist article>div{min-width:0;flex-basis:calc(100% - 45px);overflow-wrap:anywhere}.activitylist time{font-size:12px}.activitylist .initialbadge{margin-left:43px}.auditdiff{font-size:12px}
 #toast{width:calc(100vw - 32px);text-align:center;bottom:calc(16px + env(safe-area-inset-bottom));padding:14px 16px;font-size:14px}
 [data-theme=dark] .mobile-tools{background:#29475d;color:#a3d6f8}[data-theme=dark] dialog .close,[data-theme=dark] .formactions{background:#1b2d3c}
}
@media(max-width:360px){nav button{font-size:11px}.brand{width:82px}.headeractions .primary,.headeractions .returnaction{font-size:13px}.stat{padding:12px}.connection-indicator{font-size:11px}.partrow{grid-template-columns:58px minmax(0,1fr) 44px;gap:6px}}

/* Extend the sticky header's opaque surface through the page gutters. */
main{--header-gutter-left:32px;--header-gutter-right:32px}
header{border-bottom:1px solid var(--line)}
header::before{content:"";position:absolute;top:-1px;bottom:0;left:calc(-1 * var(--header-gutter-left));right:calc(-1 * var(--header-gutter-right));background:inherit;z-index:-1;pointer-events:none}
@media(min-width:1450px){main{--header-gutter-left:48px;--header-gutter-right:48px}}
@media(max-width:1100px){main{--header-gutter-left:23px;--header-gutter-right:23px}}
@media(max-width:850px){main{--header-gutter-left:17px;--header-gutter-right:17px}}
@media(max-width:650px){main{--header-gutter-left:max(14px,env(safe-area-inset-left));--header-gutter-right:max(14px,env(safe-area-inset-right))}}
