:root{--ink:#172e2c;--muted:#6e7e7b;--paper:#f5f7f4;--line:#e1e7e2;--green:#245b4b;--lime:#dcf3b9;--amber:#a16516;--red:#a93d39;--radius:16px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:var(--green)}button{border:1px solid var(--line);border-radius:9px;background:white;color:var(--ink);padding:10px 15px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center}button:hover{background:#edf3ec}.primary{background:var(--green);border-color:var(--green);color:white}.primary:hover{background:#174333}.danger{color:var(--red)}.ghost{background:transparent;border-color:transparent}.small{padding:6px 10px;font-size:12px}.icon{width:19px;height:19px;vertical-align:middle;flex-shrink:0}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{padding:32px 18px;background:#15352f;color:white;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;gap:10px;align-items:center;margin:4px 14px 40px}.brand-mark{height:36px;width:36px;background:var(--lime);color:#17362e;display:grid;place-items:center;border-radius:11px;font-size:21px;font-weight:800}.brand strong{font-size:21px;letter-spacing:-.5px}.brand small{display:block;color:#b2c9be;font-size:10px;letter-spacing:2px;margin-top:3px}.nav-label{color:#8baba0;font-size:10px;letter-spacing:1.8px;margin:23px 16px 12px;font-weight:600}.nav button{border:0;background:transparent;color:#bad0c7;width:100%;justify-content:flex-start;padding:12px 16px;margin-bottom:4px;font-weight:500}.nav button:hover{background:#23483f;color:white}.nav button.active{background:#2b5144;color:#e6f9ce}.side-foot{margin-top:auto;border-top:1px solid #355248;padding:20px 10px 0}.side-foot p{font-size:11px;color:#b8cdc3;line-height:1.6}.workspace{min-width:0}.topbar{height:72px;border-bottom:1px solid var(--line);padding:0 38px;display:flex;justify-content:space-between;align-items:center;background:#fff9}.pill{display:inline-flex;padding:5px 9px;border-radius:7px;background:#e7eee8;font-size:11px;font-weight:650;white-space:nowrap}.pill.available,.pill.confirmed{background:#e3f0df;color:#326339}.pill.quarantine,.pill.trial,.pill.prepared,.pill.warning{background:#fff0d9;color:#975918}.pill.customer,.pill.rnd{background:#e8ebf6;color:#556799}.pill.scrap{background:#f7e2de;color:var(--red)}.demo-tag{background:#fff1d6;color:#8e601a}.content{padding:32px 38px 48px;max-width:1800px;margin:auto}.eyebrow{text-transform:uppercase;font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}h1{font-size:30px;letter-spacing:-1px;margin:8px 0 9px;font-weight:650}h2{font-size:17px;margin:0}h3{font-size:15px;margin:0 0 14px}p{line-height:1.6}.muted,small{color:var(--muted)}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px}.page-head p{margin:0;color:var(--muted)}.flex{display:flex;gap:12px;align-items:center}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.grid{display:grid;gap:18px}.stats{grid-template-columns:repeat(4,1fr);margin:24px 0}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.metric{position:relative}.metric .value{font-size:34px;letter-spacing:-1px;font-weight:650;margin:18px 0 8px}.metric small{font-size:11px}.metric .icon{position:absolute;right:22px;top:23px;color:#879b8c}.hero{padding:30px 32px;border-radius:18px;background:#e7eddd;display:flex;align-items:center;justify-content:space-between;gap:25px;border:1px solid #dce5d1}.hero h2{font-size:25px;letter-spacing:-.7px;max-width:600px;margin-bottom:10px}.hero p{max-width:600px;margin:0;color:#65745c}.hero-visual{font-size:52px;display:grid;place-items:center;background:#d8e5c6;border-radius:50%;width:105px;height:105px}.hero-visual .icon{width:52px;height:52px}.two-col{grid-template-columns:1.65fr 1fr}.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.list-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #edf0eb}.list-row:last-child{border:0}.list-row small{display:block;margin-top:5px}.list-icon{width:38px;height:38px;border-radius:10px;background:#eef3eb;display:grid;place-items:center;flex-shrink:0}.list-body{flex:1}.empty{text-align:center;padding:40px 20px;color:var(--muted);line-height:1.6}.search{position:relative;display:flex;align-items:center;gap:10px}.search input{min-width:220px}.toolbar{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:20px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;font-weight:650;border-bottom:1px solid var(--line);padding:12px 12px}td{padding:15px 12px;border-bottom:1px solid #edf0eb;vertical-align:middle}tr:last-child td{border:0}td small{display:block;margin-top:4px;max-width:300px}.num{text-align:right;font-variant-numeric:tabular-nums}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.link{padding:0;border:0;background:none;color:var(--green);font-weight:650;text-align:left}.notice{background:#f0f4ec;border:1px solid #dfe7d6;border-radius:10px;padding:13px 16px;color:#52614e;line-height:1.55;font-size:12px;margin:16px 0}.notice.warn{background:#fff4e3;border-color:#f1dfc2;color:#885a23}.notice.error{background:#fceae6;border-color:#f0d4ce;color:var(--red)}.notice.success{background:#e5f4e5;color:#346239}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label{font-size:12px;font-weight:650}.field small{font-size:11px;line-height:1.5}input,select,textarea{width:100%;border:1px solid #d7e0d8;border-radius:8px;background:white;color:var(--ink);padding:11px 12px;min-height:42px}textarea{min-height:85px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:#527b5e;box-shadow:0 0 0 3px #eaf1e3;outline:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.full{grid-column:1/-1}.scan-panel{border:1px solid #9cb897;background:#f6f9f1;border-radius:13px;padding:20px;margin:20px 0}.scan-input{font-size:18px;padding:16px;letter-spacing:.5px;background:white}.scan-tip{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-top:10px}.steps{display:flex;gap:24px;font-size:12px;color:var(--muted);margin:20px 0}.steps span:first-child{color:var(--green);font-weight:700}.cart{min-height:170px}.cart input{max-width:140px;min-width:70px}.cart .serial-input{max-width:180px}.scan-layout{display:grid;grid-template-columns:1.65fr 1fr;gap:22px;align-items:start}.scan-layout .summary{position:sticky;top:20px}.summary-total{font-size:28px;font-weight:650;margin:10px 0 20px}.divider{height:1px;background:var(--line);margin:20px 0}.stack{display:grid;gap:15px}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.result{background:#e9f3e0;padding:18px;border-radius:12px;margin-bottom:20px}.tabs{display:flex;gap:5px;margin-bottom:20px;flex-wrap:wrap}.tabs button.active{background:var(--green);color:white}.chip{font-size:11px;padding:4px 6px;border-radius:5px;background:#eef0e9}dialog{border:0;border-radius:18px;padding:0;max-width:780px;width:calc(100% - 32px);box-shadow:0 24px 90px #122a3040;color:var(--ink)}dialog::backdrop{background:#14352d70;backdrop-filter:blur(3px)}.dialog-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:white;z-index:1}.dialog-body{padding:26px;max-height:78vh;overflow:auto}.dialog-foot{display:flex;gap:10px;justify-content:flex-end;margin-top:24px}.login{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-intro{background:#173e32;color:white;padding:70px;display:flex;flex-direction:column;justify-content:center}.login-intro h1{font-size:50px;line-height:1.12;max-width:470px;color:#e6f1d9;margin:40px 0 20px}.login-intro p{color:#b8cbb7;max-width:420px;font-size:16px}.login-form{display:grid;align-content:center;padding:60px;max-width:570px;width:100%;margin:auto}.login-form h1{font-size:28px}.login-form .brand{margin:0}.login-form .stack{margin-top:25px}.timeline{border-left:2px solid #e4eadd;padding-left:20px}.timeline section{margin-bottom:23px}.timeline small{display:block;margin:5px 0}.keyvals{display:grid;grid-template-columns:1fr 1fr;gap:18px}.keyvals small{display:block;margin-bottom:6px}.raw{white-space:pre-wrap;word-break:break-word;max-height:260px;overflow:auto;background:#f5f7f3;padding:14px;font-size:11px;border-radius:10px}#toast{position:fixed;bottom:24px;right:24px;background:#163d31;color:white;border-radius:12px;padding:16px 22px;box-shadow:0 8px 30px #142c3020;z-index:100;display:none;max-width:420px;line-height:1.5}#toast.show{display:block}#toast.error{background:#8e3431}.loading{padding:70px;color:var(--muted)}.hidden{display:none!important}.option-card{display:block;padding:22px;border:1px solid var(--line);border-radius:13px;background:#fff;margin-bottom:16px}.option-card h3{margin-bottom:9px}.download{display:inline-block;background:white;border:1px solid var(--line);padding:10px 14px;border-radius:9px;font-weight:600;text-decoration:none}.muted-number{color:#809087}.right{text-align:right}.login-demo{background:#edf2e9;padding:16px;border-radius:10px;margin-top:25px;font-size:12px}.progress-strip{display:flex;gap:6px;height:7px;margin:16px 0}.progress-strip span{border-radius:8px;background:#8aa46c;flex:1}.progress-strip span:last-child{background:#dae2d3;flex:.5}@media(min-width:1800px){.content{padding-top:45px}}@media(max-width:1100px){.shell{grid-template-columns:195px 1fr}.content{padding:25px}.sidebar{padding:25px 10px}.scan-layout,.two-col{grid-template-columns:1fr}.scan-layout .summary{position:static}.stats{grid-template-columns:1fr 1fr}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;height:auto;padding:15px}.brand{margin:0 10px 14px}.nav{display:flex;overflow:auto}.nav button{width:auto;white-space:nowrap}.nav-label,.side-foot{display:none}.topbar{padding:0 20px;height:55px}.content{padding:20px 15px}.page-head{align-items:flex-start}.page-head h1{font-size:26px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.hero{padding:22px}.hero-visual{display:none}.toolbar{align-items:stretch;flex-direction:column}.stats{gap:10px}.card{padding:18px}.metric .value{font-size:29px}.login{display:block}.login-intro{display:none}.login-form{padding:35px 25px}.steps{gap:12px;font-size:10px}.keyvals{grid-template-columns:1fr}.page-head .flex{flex-wrap:wrap;justify-content:flex-end}}@media print{.sidebar,.topbar,.page-head button,.actions,.dialog-head button,#toast{display:none!important}.shell{display:block}.content{padding:0}.card{break-inside:avoid}dialog{position:static;max-width:none;width:100%;box-shadow:none}.dialog-body{max-height:none;overflow:visible}body:has(dialog[open]) #app{display:none}}
#job-results:empty{display:none}#job-results{max-height:300px;overflow:auto;border:1px solid var(--line,#dce5d9);border-radius:10px;background:white}#job-results button{display:block;width:100%;text-align:left;border:0;border-radius:0;padding:12px}#job-results button:hover,#job-results button:focus{background:#eaf2e7}#job-results small{display:block;padding:4px 8px}#job-context .notice{overflow-wrap:anywhere;max-height:220px;overflow:auto}[hidden]{display:none!important}#bom-editor select{min-width:0}#identity-scanner{min-width:0;flex:1}#admin-search{max-width:360px}

/* Job directory: bounded scrolling and persistent search controls. */
.directory-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.directory-filters label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600}.directory-filters button{align-self:end}.directory-scroll{max-height:60vh;min-height:180px;overscroll-behavior:contain}.directory-scroll th{position:sticky;top:0;background:#f3f6f1;z-index:1}.directory-scroll td:first-child{min-width:220px;max-width:480px}.pill.active{background:#e2f2e9;color:#17603b}.pill.closed{background:#f3e5e7;color:#853c49}@media(max-width:700px){.directory-filters{grid-template-columns:1fr}.directory-scroll{max-height:65vh}}

.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}.passport-job{padding:16px;background:#f3f6f1;border-radius:12px;margin:16px 0}#device-lookup-form{flex-wrap:wrap;margin-bottom:10px}#device-lookup-form input{flex:1;min-width:180px}
