:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263747;background:#f5f7fa;font-size:16px;--green:#174f73;--lime:#f36b42;--muted:#718294;--line:#e2e8ee;--ink:#18394f}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--green)}.boot{padding:4rem;color:var(--muted)}.shell{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#133b57;color:#bdd0dd;padding:30px 18px;position:fixed;inset:0 auto 0 0;width:238px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;color:white;font-size:27px;font-weight:750;letter-spacing:-1.2px;padding:0 12px 30px}.brand img{width:34px}.brand small{font-size:11px;letter-spacing:2px;font-weight:500;color:#aec6d7;display:block;margin-top:4px}.navlabel{font-size:11px;letter-spacing:1.5px;margin:16px 14px 10px;color:#8eadc2;font-weight:650}.navbutton{width:100%;text-align:left;display:flex;align-items:center;gap:12px;border:0;background:none;color:inherit;padding:12px 14px;border-radius:9px;font-size:14px;margin:3px 0}.navbutton:hover{background:#ffffff0c;color:white}.navbutton.active{background:#f36b42;color:#ffffff;font-weight:650}.navbutton .count{margin-left:auto;font-size:12px;background:#0001;padding:2px 7px;border-radius:5px}.icon{width:19px;height:19px;stroke:currentColor;stroke-width:1.7;fill:none;flex-shrink:0}.sidebar-bottom{margin-top:auto;padding-top:24px}.shift{border:1px solid #ffffff20;border-radius:10px;padding:14px;margin:10px 4px 22px;font-size:13px;line-height:1.7}.shift b{display:block;color:#fff;font-weight:550}.shift span{color:#bed0c9}.usercard{display:flex;gap:10px;align-items:center;padding:0 8px}.avatar{height:36px;width:36px;border-radius:50%;background:#e8eef5;display:grid;place-items:center;color:#466d8b;font-size:12px;font-weight:700;flex-shrink:0}.usercard .avatar{background:#254f6e;color:#f36b42}.usercard strong{font-size:14px;color:white;display:block}.usercard small{text-transform:capitalize;color:#a4b9b2;font-size:12px}.logout{margin-left:auto;background:none;color:#acc7d8;border:0;padding:6px}.main{grid-column:2;min-width:0}.topbar{height:77px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;gap:15px}.breadcrumb{font-size:14px;color:#84918b;display:flex;align-items:center;gap:12px}.breadcrumb strong{color:#3d514b;font-weight:500}.top-actions{display:flex;gap:18px;align-items:center;font-size:13px;color:#6a7d74}.live{display:flex;align-items:center;gap:7px}.live:before{content:'';width:7px;height:7px;background:#4a8f64;border-radius:50%}.iconbutton{background:none;border:1px solid var(--line);border-radius:8px;width:35px;height:35px;display:grid;place-items:center;color:#708078}.mobile-menu{display:none}.content{padding:30px 36px 40px;max-width:1600px;margin:0 auto}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:12px;font-weight:650;color:#5f786e;letter-spacing:1.6px;text-transform:uppercase;margin-bottom:8px}h1{font-size:30px;letter-spacing:-1px;font-weight:650;line-height:1.2;margin:0 0 8px}h2{font-size:17px;letter-spacing:-.3px;margin:0;font-weight:650}h3{font-size:15px;margin:0 0 10px}.subtitle{font-size:14px;line-height:1.5;color:var(--muted);margin:0}.btn{border:1px solid #dae2dc;background:#fff;padding:10px 15px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:550;color:#33483f;text-decoration:none;white-space:nowrap}.btn.primary{background:#174f73;border-color:#174f73;color:#fff}.btn.primary:hover{background:#103e5d}.btn.danger{background:#fff2ef;color:#a14332;border-color:#f0d3ca}.btn.small{font-size:13px;padding:7px 10px}.btn.ghost{border:0;background:none;color:#416d56;padding:5px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.metric{border:1px solid var(--line);background:white;padding:20px 21px;border-radius:12px;position:relative}.metric-icon{position:absolute;right:20px;top:19px;color:#7a9388;background:#f0f4f8;border-radius:8px;padding:7px;display:flex}.metric label{font-size:13px;color:#6c7d73;display:block;margin-bottom:16px}.metric .value{font-size:32px;letter-spacing:-1.3px;font-weight:650;line-height:1}.metric .foot{font-size:12px;color:#839188;margin-top:12px}.metric .foot.warn{color:#b77528}.metric.highlight{background:#eaf1f7;border-color:#dce5ef}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:22px}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px;border-bottom:1px solid var(--line)}.panel-head p{font-size:13px;color:var(--muted);margin:6px 0 0}.filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding:16px 20px;border-bottom:1px solid var(--line)}.tabs{display:flex;gap:4px}.tab{border:0;background:none;border-radius:6px;padding:7px 11px;color:#79867f;font-size:13px}.tab.active{background:#eaf1f8;color:#174f73;font-weight:600}.search{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);padding:8px 10px;border-radius:7px;margin-left:auto;color:#89958f}.search input{border:0;background:none;outline:none;width:175px;font-size:13px;color:var(--ink)}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-size:11px;text-transform:uppercase;font-weight:600;letter-spacing:.8px;color:#86928a;background:#fafbf9;padding:13px 20px;border-bottom:1px solid var(--line)}td{padding:18px 20px;font-size:14px;border-bottom:1px solid #eef1ed;color:#53665b}tr:last-child td{border:0}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:#f8faf6}.job-title{font-weight:600;color:#293d32;display:block;margin-bottom:5px}.metadata{font-size:12px;color:#88938c;display:block}.badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:5px;font-size:12px;font-weight:500;background:#eef2f6;color:#657567;white-space:nowrap}.badge.green{background:#e8f3e9;color:#3b7b4d}.badge.orange{background:#fff2df;color:#b47e2a}.badge.red{background:#faeae7;color:#a85949}.badge.blue{background:#e8f0f8;color:#5078a6}.badge.purple{background:#f0edf7;color:#7b63a5}.due.late{color:#b96b3c}.priority{display:flex;align-items:center;gap:7px;font-size:12px}.priority:before{content:'';width:6px;height:6px;background:#98ad9a;border-radius:2px}.priority.urgent:before{background:#cf7759}.priority.high:before{background:#c8a44d}.progress{width:100%;height:5px;background:#edf1f5;border-radius:5px;overflow:hidden;margin:9px 0 0}.progress i{display:block;height:100%;background:#578aad;border-radius:5px}.tablefoot{padding:15px 20px;display:flex;justify-content:space-between;font-size:12px;color:#92a096}.rightcol{display:grid;gap:20px;align-content:start}.attention{padding:0 20px}.attention-item{padding:17px 0;border-bottom:1px solid var(--line);display:flex;gap:11px;align-items:start;cursor:pointer}.attention-item:last-child{border:0}.attention-icon{color:#be8d46;background:#fcf3e5;padding:8px;border-radius:8px;display:flex}.attention-icon.red{background:#fbeeea;color:#b57560}.attention-item b{display:block;font-size:13px;color:#3d5142;font-weight:600}.attention-item p{font-size:12px;color:#889389;line-height:1.5;margin:5px 0 0}.machine-list{padding:4px 20px 15px}.machine{padding:13px 0;border-bottom:1px solid #eff2ee}.machine:last-child{border:0}.machine-line{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#415644}.machine small{display:block;font-size:12px;color:#96a293;margin-top:6px}.machine-meter{height:4px;background:#edf1f5;border-radius:3px;margin-top:9px}.machine-meter i{display:block;height:100%;background:#6199c0;border-radius:3px}.next-day{background:#174f73;color:#cfddd3;padding:21px;border-radius:12px}.next-day h2{color:#edf2e8}.next-day p{font-size:13px;line-height:1.6;color:#c3d2c6}.next-day button{color:#f36b42;border-color:#ffffff30;background:#ffffff09}.board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:18px;overflow:auto;padding-bottom:15px}.board-column{background:#eef2f6;border-radius:10px;padding:14px;min-height:390px}.column-head{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:600;margin:3px 3px 16px}.column-head span{background:white;border-radius:5px;padding:3px 7px;color:#809080}.board-card{background:white;border:1px solid #e1e8df;border-radius:9px;padding:17px;margin-bottom:12px;cursor:pointer;box-shadow:0 2px 3px #142e2110}.board-card h3{margin:10px 0 6px;font-size:14px}.board-card p{font-size:12px;color:#849180;margin:0 0 14px}.card-bottom{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#849180;border-top:1px solid #eef1eb;padding-top:12px}.empty{padding:42px 24px;text-align:center;color:#869388;font-size:14px;line-height:1.7}.empty b{display:block;font-size:16px;color:#506548;margin-bottom:5px}.banner{border-radius:10px;background:#fff4e6;color:#a77032;padding:14px 18px;margin-bottom:20px;font-size:14px;line-height:1.5}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:20px}.list-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.contact-card{padding:22px}.contact-card h2{margin:12px 0 9px}.contact-card p{font-size:14px;color:#849180;line-height:1.7;margin:5px 0}.section{margin-top:25px}.role-note{font-size:13px;color:#85907e;margin:0 0 20px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-aside{padding:60px;background:#164e73;color:#d3e3cf;display:flex;flex-direction:column;justify-content:center}.auth-aside .brand{padding:0;margin-bottom:65px}.auth-aside h1{font-size:52px;color:#f1f7eb;line-height:1.12;max-width:480px;letter-spacing:-2px}.auth-aside h1 em{font-style:normal;color:#f36b42}.auth-aside p{max-width:400px;color:#a5beaa;line-height:1.8;font-size:16px}.auth-aside .auth-route{display:flex;gap:15px;align-items:center;margin-top:45px;font-size:13px;border-top:1px solid #ffffff20;padding-top:30px}.auth-main{display:flex;align-items:center;justify-content:center;padding:35px}.auth-card{width:100%;max-width:390px}.auth-card h1{font-size:29px;margin-bottom:12px}.auth-card p{font-size:14px;color:#85917f;line-height:1.6;margin-bottom:28px}.auth-card .btn{width:100%;margin-top:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:2px}.field.full{grid-column:1/-1}label{font-size:13px;font-weight:550;color:#5a6e5c}input,select,textarea{width:100%;background:#fff;border:1px solid #dbe3d8;border-radius:7px;padding:11px 12px;color:#2c4030;font-size:14px;min-height:43px}input:focus,select:focus,textarea:focus{border-color:#588ab0;outline:2px solid #e4eef7}textarea{min-height:86px;resize:vertical}input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--green)}.checklabel{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.6}.hint{font-size:12px;color:#85917d;line-height:1.5}.error{background:#fbeee8;border-radius:6px;color:#ad5f47;font-size:13px;padding:12px;margin:12px 0;line-height:1.5}.error:empty{display:none}dialog{border:0;padding:0;border-radius:14px;width:min(820px,calc(100vw - 32px));max-height:92vh;background:#fff;color:var(--ink);box-shadow:0 25px 100px #0b231c50}dialog::backdrop{background:#0e281b70;backdrop-filter:blur(3px)}.modalhead{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;background:white;z-index:2}.modalhead h2{font-size:20px}.modalhead p{font-size:13px;color:#87927e;margin:6px 0 0}.modalbody{padding:25px 26px}.modalfoot{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding:18px 26px;background:#f8fafc}.modalbody h3{margin-top:22px}.modalbody h3:first-child{margin-top:0}.detail-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px;flex-wrap:wrap}.details-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:19px;background:#f6f8fb;border-radius:9px}.details-grid label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#8c9684;margin-bottom:8px}.details-grid b{font-size:14px;font-weight:550;overflow-wrap:anywhere}.note{font-size:14px;line-height:1.7;color:#64755e;white-space:pre-wrap}.stage-row{display:flex;gap:13px;align-items:center;padding:17px 0;border-bottom:1px solid var(--line)}.stage-number{border-radius:50%;width:32px;height:32px;display:grid;place-items:center;font-size:13px;background:#eef2e8;color:#879778;flex-shrink:0}.stage-number.done{background:#e4efdf;color:#4b7954}.stage-info{flex:1;min-width:0}.stage-info b{font-size:14px;display:block}.stage-info small{color:#8b9682;font-size:12px;display:block;margin-top:5px}.stage-row .actions{justify-content:flex-end}.artwork-row{display:flex;gap:12px;align-items:center;padding:15px;background:#f6f8fb;border-radius:8px;margin:8px 0;flex-wrap:wrap}.artwork-row .artwork-info{flex:1;min-width:150px}.artwork-row b{font-size:14px}.artwork-row small{display:block;font-size:12px;color:#8d9683;margin-top:5px}.route-row{display:grid;grid-template-columns:1fr 1fr 32px;gap:8px;margin-bottom:8px}.route-row button{padding:0}.route-row input{font-size:13px}.modal-footer-note{font-size:12px;color:#8a9680;margin-top:20px}.qc-item{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px;display:flex;align-items:center;gap:10px}.qc-item small{color:#909986;display:block;margin-top:4px}.qc-item div{flex:1}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;border-radius:9px;background:#174f73;color:#fff;font-size:14px;box-shadow:0 5px 25px #0002;z-index:100;display:none;max-width:90vw}#toast.show{display:block}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px}.toolbar select{width:auto}.report-stat{padding:24px;font-size:32px;font-weight:600}.report-stat small{display:block;color:#8a9681;font-size:13px;font-weight:400;margin-top:12px}.print-only{display:none}@media(min-width:1500px){.content{padding-top:40px}.overview-grid{grid-template-columns:1fr 340px}td{padding-top:21px;padding-bottom:21px}}@media(max-width:1200px){.shell{grid-template-columns:205px 1fr}.sidebar{width:205px;padding-left:12px;padding-right:12px}.content{padding:25px}.topbar{padding:0 25px}.overview-grid{grid-template-columns:1fr}.rightcol{grid-template-columns:1fr 1fr}.next-day{grid-column:1/-1}.metrics{gap:10px}.metric{padding:17px}.list-cards{grid-template-columns:1fr 1fr}}@media(max-width:760px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s}.shell.menu-open .sidebar{transform:translateX(0);box-shadow:20px 0 70px #0005}.main{width:100%}.mobile-menu{display:grid}.topbar{padding:0 17px;height:64px}.breadcrumb{gap:8px}.top-actions .live,.top-actions .date{display:none}.content{padding:22px 16px}.pagehead{align-items:flex-start;gap:12px}.pagehead h1{font-size:25px}.pagehead .subtitle{max-width:230px}.pagehead>.actions{gap:5px}.metrics{grid-template-columns:1fr 1fr}.metric .value{font-size:28px}.rightcol{grid-template-columns:1fr}.filters{padding:12px}.tabs{flex-wrap:wrap}.search{width:100%;margin:5px 0 0}.search input{width:100%}.list-cards,.grid2{grid-template-columns:1fr}.board{grid-template-columns:repeat(4,260px)}.auth-layout{grid-template-columns:1fr}.auth-aside{display:none}.auth-main{min-height:100vh}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.details-grid{grid-template-columns:1fr 1fr}.modalbody{padding:20px}.modalhead{padding:20px}.stage-row{flex-wrap:wrap}.stage-row .actions{width:100%;justify-content:flex-start;padding-left:45px}.route-row{grid-template-columns:1fr 32px}.route-row input:nth-child(2){grid-column:1}.route-row button{grid-row:1/3;grid-column:2}.top-actions{gap:8px}.toolbar{flex-wrap:wrap}.badge{white-space:normal}}
@media print{body{background:white}.shell,.modalhead,.modalfoot,#toast{display:none!important}dialog{position:static;display:block!important;max-height:none;width:100%;box-shadow:none;border-radius:0}.modalbody{padding:0}.modalbody button,.modalbody input,.modalbody select,.modalbody .actions,.artwork-row .btn{display:none!important}.print-only{display:block;font-size:28px;font-weight:700;padding:0 0 20px}.stage-row,.details-grid,.artwork-row{break-inside:avoid}.modalbody a{color:black;text-decoration:none}}
.metric label{padding-right:32px;min-height:32px;line-height:1.5;font-size:14px}
.sidebar{overflow:hidden}
@media(max-width:760px){.sidebar{visibility:hidden}.shell.menu-open .sidebar{visibility:visible}.pagehead{flex-direction:column}.pagehead .subtitle{max-width:none}.pagehead>.actions{width:100%;justify-content:flex-start}.metric label{min-height:42px}.metric-icon{right:14px}.topbar .icon{width:17px}.topbar .breadcrumb{font-size:13px}.metric .foot{line-height:1.5}}
/* Pixel's supplied blue/orange identity. Original logo files are preserved. */
:root{--green:#174f73;--lime:#f36b42;--muted:#748394;--line:#e2e8ee;--ink:#18394f}
.brand{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:0 7px 22px;letter-spacing:normal;flex-shrink:0}
.brand .pixel-wordmark{width:187px;height:53px;object-fit:cover;object-position:center;background:#fff;border-radius:8px}
.brand small{display:block;font-size:10px;font-weight:600;letter-spacing:1.8px;margin:4px 0 0 9px;color:#b0c5d4}
.black-wordmark{width:210px!important;height:auto}.auth-wordmark{width:180px;height:auto;margin:0 0 32px}
.auth-aside .brand .pixel-wordmark{width:235px;height:64px;border-radius:9px}.auth-aside .brand{margin-bottom:55px}
.auth-aside h1{color:#fff}.auth-aside h1 em{color:#ff916e}.auth-aside p{color:#c2d4e2}.auth-aside .auth-route{color:#d8e5ed}
.navbutton.active{color:#fff;background:#ee704b}.sidebar nav{overflow-y:auto;min-height:0;flex:1;scrollbar-width:thin;scrollbar-color:#52738a transparent}.sidebar-bottom{flex-shrink:0;padding-top:15px}
.shift span{color:#b9cdda}.usercard .avatar{background:#315c78;color:#ffe5d7}.next-day{background:#164e73}.next-day h2{color:#fff}.next-day p{color:#c6d8e5}.next-day button{color:#fff;border-color:#ffffff40}.btn.ghost{color:#235f86}.eyebrow{color:#58768f}
.machine-summary{display:flex;gap:25px;margin:0 0 25px;color:#6b8398;font-size:14px}.machine-summary span:first-child{color:#174f73;font-weight:600}
.machine-card{padding:22px}.machine-card h2{font-size:20px;margin:17px 0 20px}.machine-card-top{display:flex;align-items:center;justify-content:space-between}.machine-pictogram{background:#ebf2f8;color:#174f73;border-radius:10px;padding:11px;display:flex}.machine-pictogram .icon{width:25px;height:25px}
.machine-head{display:flex;align-items:center;gap:10px;padding:15px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.machine-head>div:nth-child(2){flex:1}.machine-head strong{display:block;font-size:14px;font-weight:600;margin-top:5px}.machine-head .metadata{font-size:12px}.machine-current{padding:17px 0;min-height:100px}.machine-current>.metadata{margin-bottom:9px}.machine-job{display:block;border:0;background:#f2f6fa;width:100%;text-align:left;padding:11px;border-radius:7px;margin:7px 0;color:#2d526d}.machine-job b{display:block;font-size:13px;font-weight:550}.machine-job span{display:block;font-size:13px;color:#8091a1;margin-top:5px}.machine-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:14px;font-size:13px;color:#8092a0}.machine-note{font-size:13px;line-height:1.6;background:#fff3ed;color:#9c5c3a;padding:12px;border-radius:7px;margin-bottom:0}
.template-list{padding:0 22px}.template-item{padding:22px 0;border-bottom:1px solid var(--line)}.template-item:last-child{border:0}.template-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:16px}.template-heading h3{font-size:16px;margin-bottom:7px}.route-preview{display:flex;gap:8px;flex-wrap:wrap}.route-preview>span{display:inline-flex;align-items:center;gap:7px;font-size:13px;background:#f0f4f8;border:1px solid #e2e8ee;padding:8px 11px;border-radius:7px}.route-preview em{font-style:normal;color:#7c95a9;font-size:12px}.route-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.route-editor-heading h3{margin:0}.order-section{grid-column:1/-1;display:flex;align-items:center;gap:9px;font-size:15px;font-weight:600;color:#174f73;padding:4px 0 10px}.order-section span{border-radius:50%;background:#eaf1f7;color:#174f73;width:28px;height:28px;display:grid;place-items:center;font-size:13px}
.route-step{border:1px solid #dce5ee;border-radius:9px;background:#f8fafd;padding:14px;margin:12px 0}.route-step-top{display:flex;align-items:center;gap:10px}.route-step-number{border-radius:7px;background:#e5edf6;color:#386c91;width:30px;height:30px;display:grid;place-items:center;font-size:14px;font-weight:600;flex-shrink:0}.route-operation-field{flex:1;min-width:0}.route-operation-field>span,.route-step-bottom label>span{display:block;margin-bottom:6px}.route-step-actions{display:flex;gap:5px;align-self:flex-end;margin-bottom:4px}.route-step-actions button{background:white;font-size:15px}.route-other{padding-top:12px}.hidden{display:none!important}.route-step-bottom{display:grid;grid-template-columns:1fr;gap:16px;margin-top:13px;padding-left:40px}.route-editor>.hint{line-height:1.7}.print-logo{width:150px;height:auto}
@media(max-height:880px){.shift{display:none}.brand{padding-bottom:15px}.navbutton{padding-top:10px;padding-bottom:10px}.sidebar{padding-top:22px;padding-bottom:20px}.sidebar-bottom{padding-top:15px}}
@media(max-width:1200px){.brand .pixel-wordmark{width:167px;height:48px}}
@media(max-width:760px){.machine-summary{gap:13px;flex-wrap:wrap}.template-heading{align-items:flex-start;flex-direction:column}.route-step-top{flex-wrap:wrap}.route-operation-field{min-width:220px}.route-step-actions{width:100%;justify-content:flex-end}.route-step-bottom{grid-template-columns:1fr;padding-left:0;gap:10px}.route-editor-heading{align-items:flex-start;flex-direction:column}.machine-card{padding:20px}.sidebar{padding-top:22px;padding-bottom:18px}.brand .pixel-wordmark{width:165px;height:48px}}

.next-step{background:#edf4f8;border:1px solid #c9dce8;border-left:4px solid #f26943;border-radius:12px;padding:18px;margin:22px 0;display:flex;align-items:center;justify-content:space-between;gap:16px}.next-step p{margin:8px 0 0;line-height:1.5}.approval-card{background:#f2f8f4;border-radius:10px;padding:14px;margin:12px 0}.approval-card p{line-height:1.6}.action-feedback:not(:empty){padding:15px;border:1px solid #edb6b6;background:#fff1f1;border-radius:10px;margin-bottom:16px}.board-help{margin:0 0 18px;color:var(--muted);font-size:13px}.board{grid-template-columns:repeat(5,minmax(220px,1fr));overflow-x:auto;padding-bottom:14px}.board-column{min-width:0}@media(max-width:700px){.next-step{align-items:stretch;flex-direction:column}.board{grid-template-columns:repeat(5,260px)}}



/* Top workspace navigation */
.shell{display:block;min-height:100vh}.main{width:100%;min-width:0}.workspace-header{background:#fff;border-bottom:1px solid var(--line)}.header-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 36px}.header-brand img{display:block;width:150px;height:43px;object-fit:cover}.header-actions{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:13px}.header-user{display:flex;align-items:center;gap:9px}.header-user strong{display:block;color:var(--ink);font-size:13px}.header-user small{display:block;margin-top:3px;text-transform:capitalize;font-size:12px}.header-menu{display:flex;gap:6px;padding:0 36px 12px;overflow-x:auto}.header-link{display:flex;align-items:center;gap:8px;flex-shrink:0;background:none;border:0;border-radius:8px;padding:11px 13px;color:#587084;font-size:13px;white-space:nowrap}.header-link:hover{background:#eef4f8;color:#174f73}.header-link.active{background:#174f73;color:#fff;font-weight:600}.header-link .count{padding:2px 6px;border-radius:4px;background:#ffffff24;font-size:11px}.header-link:not(.active) .count{background:#eaf1f7}.header-link .icon{width:17px;height:17px}@media(max-width:760px){.header-top{padding:12px 16px;gap:12px}.header-brand img{width:120px;height:35px}.header-actions{gap:8px}.header-user small{display:none}.header-menu{padding:0 16px 10px;gap:4px}.header-link{padding:10px 12px;font-size:12px}}

/* Unified header and Admin menu */
.header-top{gap:18px}.header-brand{flex-shrink:0}.header-menu{padding:0;overflow:visible;align-items:center;flex:1;min-width:0}.header-actions{flex-shrink:0;margin-left:auto}.admin-menu{position:relative;flex-shrink:0}.admin-menu summary{list-style:none;cursor:pointer}.admin-menu summary::-webkit-details-marker{display:none}.admin-menu summary>.icon{width:14px;transform:rotate(90deg)}.admin-menu[open] summary>.icon{transform:rotate(-90deg)}.admin-dropdown{position:absolute;right:0;top:calc(100% + 10px);z-index:20;width:230px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 12px 30px #18394f20}.admin-dropdown .header-link{width:100%;text-align:left}.header-brand img{width:120px;height:35px}@media(max-width:1100px){.header-top{padding:14px 20px;gap:12px}.header-link{padding:10px 9px;font-size:12px}.header-menu{gap:2px}.header-user{display:none}}@media(max-width:760px){.header-top{padding:12px 16px;flex-wrap:wrap}.header-menu{order:3;flex-basis:100%;flex-wrap:wrap;padding:0;gap:4px}.header-actions{margin-left:auto}.admin-dropdown{right:0}.header-menu>.header-link{font-size:12px}}

/* Compact contextual heading help */
.title-with-help{display:flex;align-items:center;gap:9px;min-width:0}.title-with-help h1{margin:0}.section-title{margin-bottom:18px}.help-tip{position:relative;display:inline-flex;flex-shrink:0}.help-trigger{width:20px;height:20px;display:grid;place-items:center;padding:0;border:1px solid #c6d3df;border-radius:50%;background:transparent;color:#718294;font-size:12px;font-weight:600}.help-trigger:hover,.help-trigger:focus-visible{background:#eaf1f7;color:#174f73}.help-text{display:none;position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%);width:220px;max-width:calc(100vw - 32px);padding:9px 11px;border-radius:7px;background:#18394f;color:#fff;font-size:12px;font-weight:400;line-height:1.5;box-shadow:0 5px 16px #18394f20;z-index:30}.help-tip:hover .help-text,.help-tip:focus-within .help-text{display:block}@media(max-width:760px){.help-text{left:auto;right:0;transform:none}}
/* Guided job execution and material planning */
.btn.danger{background:#a83232;color:#fff;border-color:#a83232}.btn.danger:hover{background:#8d2525}
.material-editor{border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0}.material-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.material-editor-head h3{margin:0}.material-plan-row{display:grid;grid-template-columns:minmax(0,1fr) 140px 60px 35px;gap:10px;align-items:end;margin:12px 0}.material-plan-row .field{min-width:0}.material-plan-row .material-unit{font-size:12px;color:var(--muted);padding-bottom:14px;overflow-wrap:anywhere}.material-plan-row .iconbutton{margin-bottom:4px}.material-editor .hint{margin:12px 0 0}.job-instructions{margin:20px 0}.job-instructions .note{margin-bottom:0}.job-material-panel{border:1px solid var(--line);border-radius:10px;padding:16px;margin-top:18px}.job-material-table{white-space:normal}.job-material-table td,.job-material-table th{padding:12px 10px}.job-material-table td:first-child{width:45%;color:var(--ink)}.job-material-table td{font-size:13px}.next-step h3{margin:0}.next-step.held{background:#fff4ef;border-color:#edc8bc}.job-problem{display:flex;justify-content:flex-end;margin:-4px 0 20px}.job-section{border:1px solid var(--line);border-radius:9px;margin:12px 0;overflow:hidden}.job-section>summary{cursor:pointer;padding:15px 16px;font-size:14px;font-weight:600;color:var(--ink)}.job-section>summary span{float:right;font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.job-section[open]>summary{border-bottom:1px solid var(--line);background:#f7f9fb}.job-section-body{padding:4px 16px 14px}.job-more{position:relative;flex-shrink:0}.job-more>summary{list-style:none;cursor:pointer}.job-more>summary::-webkit-details-marker{display:none}.job-more-items{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:grid;gap:5px;padding:7px;min-width:200px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 10px 24px #18394f20}.job-more-items .btn{justify-content:flex-start;border:0}.job-more-items .btn:hover{background:#edf4f8}.details-grid b{overflow-wrap:anywhere}.modalbody .detail-top{align-items:flex-start}.job-section .artwork-row{flex-wrap:wrap}
@media(max-width:760px){.material-plan-row{grid-template-columns:minmax(0,1fr) 55px 35px;gap:8px}.material-plan-row .field:first-child{grid-column:1/-1}.material-plan-row .field:nth-child(2){grid-column:1}.material-editor,.job-material-panel{padding:12px}.material-editor-head{flex-wrap:wrap}.job-material-table td,.job-material-table th{padding:10px 5px;font-size:12px}.job-section>summary{padding:13px 12px}.job-section>summary span{float:none;display:block;margin:5px 0 0 16px}.next-step .actions .btn{width:100%}.details-grid{gap:14px;padding:15px}.details-grid b{font-size:13px}.job-more-items{min-width:185px}.job-section-body{padding:4px 12px 12px}}
@media print{.job-more,.job-problem,.next-step .actions{display:none!important}.job-section{overflow:visible;border:0;border-radius:0}.job-section>summary{list-style:none;border-bottom:1px solid #ddd!important;background:white!important;padding:12px 0}.job-section>summary::-webkit-details-marker{display:none}.job-section-body{padding:0}.job-material-panel{break-inside:auto}.job-material-table tr{break-inside:avoid}.tablewrap{overflow:visible}.job-section .stage-row{break-inside:avoid}.details-grid{background:white}.job-section .qc-item{break-inside:avoid}}

/* Simple owner and manager workspace */
:root{--ink:#16384f;--muted:#697c8c;--line:#e1e8ee;background:#f4f7fa}
body{background:#f4f7fa}.content{max-width:1680px}.pagehead{margin-bottom:20px}.pagehead h1{font-size:29px;letter-spacing:-.8px}
.header-link{font-weight:500}.header-link.active{background:#e7f0f7;color:#174f73}.header-link.active .count{background:#ccdeec}.header-top{padding-top:18px;padding-bottom:18px}.banner{font-size:12px}
.btn{min-height:40px;border-color:#d5dfe8;color:#234760;transition:background .15s,box-shadow .15s}.btn.primary{background:#174f73}.btn.primary:hover{background:#103e5d;box-shadow:0 3px 10px #174f7320}.btn.danger{background:#fff1f0;color:#a72f32;border-color:#f0cbcb}.btn.danger:hover{background:#ffe4e1}.btn.small{min-height:32px}
.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#8c9baa;flex-shrink:0}.dot.red{background:#d94a4a}.dot.orange{background:#e39a26}.dot.blue{background:#3784c5}.dot.green{background:#369a72}.dot.purple{background:#9270c3}.dot.slate{background:#8c9baa}
.text-red{color:#ba3636!important}.text-orange{color:#b77415!important}
.board-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.board-intro .eyebrow{font-size:10px;letter-spacing:1.5px}.board-intro p{margin:5px 0 0;font-size:13px;color:var(--muted)}.board-legend{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.board-legend .dot:not(:first-child){margin-left:10px}
.board-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.board-metric{display:flex;align-items:center;gap:12px;position:relative;border:1px solid var(--line);background:#fff;border-radius:11px;padding:18px 20px;color:var(--ink);text-align:left}.board-metric strong{font-size:27px;font-weight:650;min-width:34px}.board-metric span{font-size:13px}.board-metric>.icon{margin-left:auto;opacity:.35;width:16px}.board-metric.red strong{color:#bd3a3a}.board-metric.orange strong{color:#b47a1f}.board-metric.blue strong{color:#2876b4}.board-metric.chosen{border-color:#98b5cd;box-shadow:0 0 0 2px #e2edf6}.board-metric:hover{background:#fafcff}
.board-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.board-tools .tabs{flex-wrap:wrap}.search{min-height:41px}.search input{min-height:20px;padding:0}
.modern-board{grid-template-columns:repeat(5,minmax(230px,1fr));gap:15px;align-items:start;padding-bottom:15px}
.modern-board .board-column{background:#eaf0f5;border:1px solid #e0e8ef;padding:12px;border-radius:12px;min-height:360px}.column-head{font-size:13px;font-weight:650;padding:3px 3px 0;display:flex;justify-content:space-between;align-items:center}.column-head>span:first-child{display:flex;align-items:center;gap:8px}.column-head>span:last-child{padding:2px 6px;border-radius:5px;font-size:11px;background:#fff;color:#708596}.column-hint{font-size:10px;color:#7f909e;margin:7px 3px 15px;min-height:13px}
.compact-job{background:#fff;border:1px solid #dfe7ee;border-radius:9px;margin-bottom:10px;padding:15px 13px;box-shadow:0 2px 3px #18394f03;transition:transform .15s,box-shadow .15s}.compact-job:hover{transform:translateY(-2px);box-shadow:0 5px 15px #18394f0c}.compact-job.attention{border-left:3px solid #d55656}.job-card-code{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:10px;color:#8596a2;letter-spacing:.4px;margin-bottom:8px}.job-card-code .badge{padding:3px 5px;font-size:9px;letter-spacing:0}.compact-job h3{font-size:15px;line-height:1.35;margin:0 0 5px;font-weight:650;color:var(--ink)}.compact-job .card-customer{margin:0 0 13px;font-size:11px;color:#728493}.card-order-line{display:flex;justify-content:space-between;gap:6px;align-items:center;font-size:10px;border-bottom:1px solid #eef2f5;padding-bottom:12px}.card-order-line strong{font-weight:600;font-size:11px}.card-order-line>span{color:#6c8090}.card-step{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;margin-top:12px}.card-step>span{font-weight:550;min-width:0}.card-step small{font-size:9px;color:#93a1ad;white-space:nowrap}.step-bars{display:flex;gap:3px;margin:7px 0 11px}.step-bars i{height:4px;border-radius:3px;flex:1;background:#e9eef3}.step-bars i.done{background:#59a68a}.step-bars i.current{background:#5e9bc5}.card-alerts{display:flex;gap:4px;flex-wrap:wrap;margin:7px 0}.card-alerts .badge{font-size:9px;padding:4px 6px}.compact-job .card-note{font-size:10px;line-height:1.45;margin:8px 0;color:#8c6d3a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.compact-job .card-bottom{margin-top:13px;padding-top:10px;border-top:1px solid #eff3f6;font-size:10px;color:#80929e;gap:5px}.card-bottom>span:last-child{display:flex;align-items:center;gap:4px;color:#477592}.card-bottom .icon{width:12px;height:12px}.column-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:150px;color:#93a4b1;font-size:12px}.column-empty .icon{width:23px;height:23px}
.job-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;background:#f3f7fa;border-radius:10px;padding:17px}.job-summary span{font-size:10px;color:#7f94a4;display:block;margin-bottom:6px}.job-summary strong{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.job-step-strip{display:flex;gap:8px;overflow-x:auto;margin:20px 0;padding-bottom:5px}.job-step-strip>span{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px;color:#8a9dab;border:1px solid #e1e8ee;padding:6px 9px;border-radius:20px}.job-step-strip i{font-style:normal;font-size:9px}.job-step-strip .done{color:#347f64;background:#f0f8f4;border-color:#cee8db}.job-step-strip .current{color:#246798;background:#eaf3fa;border-color:#bad6eb}
.material-alert{display:flex;align-items:center;gap:10px;font-size:12px;color:#946719;border:1px solid #efdbaf;background:#fff9ec;padding:12px;border-radius:9px}.material-alert .icon{width:17px}.next-step{margin:16px 0;padding:17px}.next-step h3{font-size:15px}.next-step p{font-size:13px;max-width:470px}.next-step .btn{font-size:13px}
.followup-panel{border:1px solid #e0e8f0;border-radius:10px;padding:16px;margin:18px 0;background:#fbfdff}.followup-panel h3{font-size:14px}.followup-panel p{font-size:13px;margin:8px 0}.followup-panel .note{color:#536b7e;white-space:pre-wrap}.followup-meta{font-size:10px;color:#8a9bac;display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:12px}.followup-meta .badge{font-size:10px}.followup-panel details{margin-top:14px;font-size:12px}.followup-panel summary{cursor:pointer;color:#7a8c9b}.followup-history{padding:12px 0;border-bottom:1px solid #e8edf2}.followup-history small{color:#8798a5}
.job-instructions h3,.job-material-panel h3{font-size:14px}.job-instructions .note{font-size:13px;color:#506a7c}.material-job-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #edf1f4}.material-job-row:last-child{border:0}.material-job-row>div:first-child{min-width:0}.material-job-row strong{font-size:13px}.material-job-row .metadata{margin:4px 0;font-size:10px}.material-job-row small{font-size:11px;color:#7f93a1}.material-job-row .actions{justify-content:flex-end;max-width:310px}.material-job-row .badge{font-size:10px}.material-job-row .btn{font-size:11px;padding:6px 9px;min-height:29px}
.wizard-progress{display:flex;align-items:center;gap:9px;justify-content:space-between;border-bottom:1px solid #e8edf2;padding-bottom:24px;margin-bottom:24px}.wizard-progress>span{display:flex;align-items:center;gap:7px;font-size:12px;color:#9aa9b5}.wizard-progress i{font-style:normal;border:1px solid #dce5ed;background:white;border-radius:50%;width:24px;height:24px;display:grid;place-items:center;font-size:11px}.wizard-progress .current{color:#174f73;font-weight:600}.wizard-progress .current i{background:#174f73;color:#fff;border-color:#174f73}.wizard-progress .done{color:#438f74}.wizard-progress .done i{background:#eff8f3;color:#438f74;border-color:#d3e9dc}.wizard-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.wizard-heading h3{font-size:21px;margin:0}.wizard-heading span{font-size:11px;color:#8fa0ad}.wizard-help{font-size:13px;color:#7890a2;line-height:1.7;margin-top:0}.wizard-footer{display:flex;justify-content:space-between;gap:15px;position:sticky;bottom:0;background:#fff;border-top:1px solid #e6edf3;padding:18px 0 6px;margin-top:30px;z-index:2}.quick-add{background:#f5f8fb;border:1px dashed #cad9e5;border-radius:9px;padding:14px;margin-top:18px}.quick-add summary{font-size:12px;color:#477691;cursor:pointer}.quick-add[open] summary{margin-bottom:14px}.quick-add .btn{margin-top:14px}.wizard-material-row{background:#f8fafc;border:1px solid #e0e8f0;border-radius:10px;padding:16px;margin-bottom:12px}.wizard-material-row .form-grid{gap:13px}.wizard-material-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;border-top:1px solid #e5ecf2;margin-top:15px;padding-top:10px}.wizard-stock{font-size:11px;color:#748d9e}.wizard-material-foot .btn{font-size:10px;min-height:27px}.review-header{padding:20px;background:#edf5fa;border-radius:11px;margin-bottom:16px}.review-header h3{font-size:22px;margin:8px 0}.review-header p{font-size:13px;color:#5d7a90;margin:0}.review-header .eyebrow{font-size:10px}.review-details{display:flex;gap:30px;font-size:12px;color:#7c8e9c;margin:18px 0 27px}.review-details b{display:block;font-weight:550;color:#23485f;margin-top:5px}.review-steps{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 25px}.review-steps>span{font-size:12px;display:flex;align-items:center;gap:5px;border:1px solid #dce7ef;border-radius:6px;background:#f7fafc;padding:8px 10px}.review-steps i{font-style:normal;color:#97a9b6;font-size:10px}.review-material{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #e8edf2;font-size:13px}.review-material>div span{display:block;margin-top:4px;color:#8b9dab;font-size:11px}.review-material .badge{font-size:11px}
.inventory-summary{display:flex;gap:25px;margin-bottom:22px;font-size:13px;color:#7890a1}.inventory-summary span:first-child{font-weight:600;color:#174f73}.scanner-search input{width:235px}.material-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.material-card{padding:23px;border-bottom:1px solid #e6edf2;border-right:1px solid #e6edf2}.material-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.material-code{font-size:10px;color:#7f97a9;letter-spacing:.5px}.material-card-head .badge{font-size:10px}.material-card h2{font-size:17px;margin:0 0 6px}.material-card>p:not(.metadata){font-size:12px;color:#859aaa;min-height:32px;line-height:1.5;margin:0}.material-count{display:flex;align-items:baseline;gap:9px;margin:20px 0 12px}.material-count strong{font-size:29px;color:#234e6b;font-weight:600}.material-count span{font-size:11px;color:#91a3b1}.material-demand{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#8195a5;margin-bottom:15px}.material-demand b{font-weight:550}.material-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}.material-actions .btn{font-size:11px;min-height:31px;padding:6px 9px}
.purchase-list{padding:0 22px}.purchase-item{width:100%;display:flex;align-items:center;gap:16px;text-align:left;border:0;background:#fff;padding:17px 0;border-bottom:1px solid #e9eef3;color:var(--ink)}.purchase-item>div{flex:1;min-width:0}.purchase-item strong{display:block;font-size:13px}.purchase-item span:not(.badge){display:block;color:#8196a6;font-size:11px;margin-top:5px}.purchase-item .badge{font-size:11px}.stock-history summary{padding:19px 22px;font-size:13px;cursor:pointer;color:#668295}.stock-history[open] summary{border-bottom:1px solid #e8edf2}
.barcode-label{background:#fff;text-align:center;border:1px solid #d5dfe7;border-radius:8px;padding:20px;margin:0 auto 22px;width:min(420px,100%)}.barcode-label>img{width:100px;margin-bottom:16px}.barcode-label h3{margin:0;font-size:17px}.barcode-label p{font-size:12px;color:#586e7e;margin:7px 0}.barcode-label svg{max-width:100%;height:auto}
.material-plan-row{border:1px solid #e0e8ef;border-radius:9px;padding:12px}.material-plan-row .supply-field{grid-column:span 2}
@media(max-width:1150px){.board-legend{display:none}.modern-board{grid-template-columns:repeat(5,250px)}.board-metric{padding:14px;gap:8px}.board-metric strong{font-size:24px}.material-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.content{padding:22px 16px}.pagehead h1{font-size:25px}.board-metrics{grid-template-columns:repeat(2,1fr);gap:8px}.board-metric{padding:13px}.board-metric span{font-size:11px}.board-metric>.icon{display:none}.board-tools{flex-direction:column;align-items:stretch}.board-tools .search{margin-left:0}.board-intro{margin-bottom:15px}.modern-board{grid-template-columns:repeat(5,260px)}.board-column{min-height:260px}.job-summary{grid-template-columns:repeat(2,1fr);gap:15px}.material-job-row{align-items:flex-start;flex-direction:column;gap:10px}.material-job-row .actions{max-width:none;justify-content:flex-start}.material-cards{grid-template-columns:1fr}.material-card{padding:20px}.inventory-summary{font-size:11px;gap:12px;flex-wrap:wrap}.wizard-progress{gap:5px;padding-bottom:18px}.wizard-progress>span{flex-direction:column;font-size:9px;gap:7px;flex:1}.wizard-heading h3{font-size:20px}.wizard-footer{bottom:0;padding-top:14px}.wizard-material-row{padding:12px}.wizard-material-foot{gap:6px}.scanner-search input{width:100%}.review-header h3{font-size:20px}.review-details{gap:20px}.purchase-list{padding:0 15px}.purchase-item{flex-wrap:wrap;gap:9px}.purchase-item>div{flex-basis:60%}.material-plan-row .supply-field{grid-column:1/-1}}
@media print{.followup-panel .btn,.material-alert{display:none!important}.job-summary{background:#f3f3f3;border:1px solid #ddd}.job-step-strip{flex-wrap:wrap}.barcode-label{width:85mm;border:1px solid #ddd;border-radius:0;break-inside:avoid}.barcode-label svg{width:75mm}.material-job-row{break-inside:avoid}.modalbody:has(.barcode-label){padding:0}}
/* Step status and template checklists. */
.modern-board{grid-template-columns:repeat(4,minmax(245px,1fr))}
.simple-step-panel{padding:20px;border:1px solid #bfd5e6;background:#f8fbfe;border-radius:12px;margin:18px 0}
.simple-step-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.simple-step-head .eyebrow{font-size:10px;color:#7890a1}.simple-step-head h3{font-size:20px;margin:7px 0 0}.simple-step-head .badge{font-size:11px}
#step-update-form>.field{margin:15px 0}#step-update-form>.field:first-child{max-width:300px}.step-checks{display:flex;flex-direction:column;gap:9px;margin:18px 0}.step-checks>.hint{margin:0 0 3px}.step-checks .checklabel{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid #dce7ef;border-radius:7px;background:white;font-size:13px;line-height:1.5}.step-checks input{width:17px;height:17px;flex-shrink:0;accent-color:#174f73;margin-top:2px}.step-checks .checklabel:has(input:checked){border-color:#b6decb;background:#f4faf7}.step-save-actions{justify-content:flex-end}.step-save-actions .btn{min-width:140px}
.route-operation-field input{width:100%;min-height:40px;border:1px solid #dce5ec;border-radius:6px;padding:9px;font:inherit;color:#174f73;background:#fff}.step-checklist-editor{display:flex;flex-direction:column;gap:8px;margin:13px 0 0 38px}.step-checklist-editor>span{font-size:12px;color:#526f84}.step-checklist-editor textarea{width:100%;padding:11px;border:1px solid #dce5ec;border-radius:7px;resize:vertical;min-height:76px;line-height:1.7;font:inherit;font-size:13px;background:white;color:#234e6b}.step-checklist-editor small{font-size:10px;color:#8196a6}.route-step-top{align-items:center}.route-step-actions .iconbutton{flex-shrink:0}.route-preview small,.review-steps small{font-size:10px;color:#8298a8;margin-left:5px}.template-checks{font-size:12px;margin-top:15px;color:#526f84}.template-checks summary{cursor:pointer}.template-checks>div{padding:14px 0;border-bottom:1px solid #eef2f6}.template-checks ul{padding-left:18px;line-height:1.8;margin-bottom:0}.history-checks{list-style:none;padding:0;font-size:11px;color:#728b9f;line-height:1.8;margin:7px 0}
@media(max-width:1150px){.modern-board{grid-template-columns:repeat(4,250px)}}
@media(max-width:760px){.modern-board{grid-template-columns:repeat(4,260px)}.simple-step-panel{padding:15px}.step-checklist-editor{margin-left:0}.route-step-top{flex-wrap:wrap}.route-operation-field{min-width:130px}.route-step-actions{margin-left:auto}.simple-step-head h3{font-size:18px}.step-checks .checklabel{padding:10px}}
@media print{.simple-step-panel{border:1px solid #ccc;background:white}.step-save-actions,#step-update-error{display:none!important}.simple-step-panel input,.simple-step-panel select,.simple-step-panel textarea{color:#000;border-color:#ccc}.step-checks .checklabel{break-inside:avoid}.history-checks{color:#000}}
/* Production card controls keep quick changes on the board. */
.board-card[data-board-job]{cursor:default}.board-card[data-board-job]:hover{transform:none}.job-card-code .card-edit{border:0;background:none;padding:3px 0 3px 8px;color:#24698e;font-size:11px;text-decoration:underline;text-underline-offset:3px;min-height:24px}.card-edit:hover{color:#f36b42}.board-step-form{margin-top:12px;padding-top:11px;border-top:1px solid #e9eff4}.quick-status-label{display:block;font-size:10px;color:#738da0;margin-bottom:5px}.board-step-form select{padding:7px 8px;min-height:34px;font-size:11px;border-color:#d7e3ed;color:#234e6b}.quick-checklist{margin:10px 0}.quick-checklist summary{display:flex;align-items:center;justify-content:space-between;gap:5px;cursor:pointer;font-size:11px;font-weight:550;color:#426981;list-style:none}.quick-checklist summary:before{content:'▸';color:#8298a8}.quick-checklist[open] summary:before{content:'▾'}.quick-checklist [data-check-count]{font-size:10px;font-weight:400;color:#8196a6;margin-left:auto}.board-step-form .step-checks{gap:6px;margin:8px 0}.board-step-form .checklabel{font-size:11px;line-height:1.5;padding:6px;border-radius:5px;gap:7px}.board-step-form .checklabel input{width:15px;height:15px;min-height:15px}.quick-step-actions{display:flex;gap:6px;justify-content:flex-end;margin-top:12px}.board-step-form .quick-step-actions .btn{font-size:10px;padding:7px 8px;min-height:33px;flex:1}.step-feedback{font-size:11px;margin:9px 0;padding:9px}.step-feedback .btn{margin-top:6px}.compact-job .next-step-name{font-size:10px;line-height:1.5;color:#6e889c;margin:7px 0 0;overflow-wrap:anywhere}.quick-no-checks{margin:9px 0;font-size:10px}.quick-order-state{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:12px 0 0;font-size:11px;color:#7690a2}.quick-order-state>.btn{flex-basis:100%;margin-top:3px;font-size:11px}.full-step-form>.quick-status-label{font-size:12px}.full-step-form>select{max-width:300px}.full-step-form>.field{margin:14px 0}.full-step-form .next-step-name{font-size:12px;color:#7690a2}.full-step-form .step-feedback{font-size:13px}.full-step-form .quick-step-actions{margin-top:18px}.compact-job .card-bottom{display:block;color:#80929e;font-size:10px}.compact-job .card-bottom>span{color:#80929e;display:block;line-height:1.5}
@media print{.quick-step-actions,.step-feedback,.next-step-name{display:none!important}}
/* Production spreadsheet (BETA). */
.sheet-beta{font-size:9px;font-weight:700;letter-spacing:.6px;color:#9c6022;background:#fff0dd;border:1px solid #f3dab8;padding:3px 5px;border-radius:4px}.production-sheet{border:1px solid #d5e2ec;background:white;border-radius:11px;box-shadow:0 3px 14px #163c5505;min-width:0}.sheet-toolbar{padding:14px;display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;border-bottom:1px solid #e7eef4;border-radius:11px 11px 0 0;background:#fff}.sheet-search{display:flex;align-items:center;gap:9px;flex:1;min-width:220px;border:1px solid #d8e4ed;border-radius:6px;padding:9px 10px;color:#8b9fac;height:36px}.sheet-search .icon{height:16px;width:16px}.sheet-search input{border:0;min-width:0;width:100%;padding:0;min-height:0;background:transparent;font-size:12px;color:#234e6b}.sheet-search:focus-within{outline:2px solid #91bbd8;outline-offset:1px}.sheet-search input:focus{outline:0}.sheet-filter{display:flex;flex-direction:column;gap:5px;font-size:10px;color:#6f899c}.sheet-filter select{min-height:36px;padding:7px 26px 7px 9px;border:1px solid #d8e4ed;border-radius:6px;font-size:12px;color:#315f7a;background:#fff;max-width:180px}.sheet-tools{display:flex;gap:6px;align-items:center;margin-left:auto}.sheet-tools>.btn,.sheet-column-menu>summary{font-size:11px;min-height:36px;color:#3b637c;padding:7px 10px;border-color:#d8e4ed}.sheet-tools .icon{width:15px;height:15px}.sheet-column-menu{position:relative}.sheet-column-menu>summary{list-style:none;cursor:pointer}.sheet-column-menu>summary::-webkit-details-marker{display:none}.sheet-column-options{position:absolute;z-index:30;right:0;top:44px;width:220px;border:1px solid #ccdce7;border-radius:9px;background:white;padding:16px;box-shadow:0 8px 32px #183c5920;display:flex;flex-direction:column;gap:10px;font-size:12px;color:#3c6079}.sheet-column-options>strong{margin-bottom:4px}.sheet-column-options label{display:flex;align-items:center;gap:9px}.sheet-column-options input{accent-color:#174f73;width:15px;height:15px;min-height:15px;margin:0}.sheet-column-options p{font-size:10px;line-height:1.6;color:#8095a3;margin:4px 0}.sheet-summary{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 15px;font-size:11px;color:#70899c;background:#f8fbfe;border-bottom:1px solid #dce7f0}.sheet-summary b{color:#315c77}.sheet-summary button:not(.btn),.sheet-draft-state button:not(.btn){border:0;background:transparent;padding:0;font-size:inherit;color:#1b658f;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.sheet-draft-total{color:#9a681f}.sheet-tip{margin-left:auto;font-size:10px;color:#879cae}.sheet-scroll{max-height:calc(100dvh - 325px);min-height:210px;overflow:auto;overscroll-behavior:contain;scrollbar-color:#b4c8d8 #f3f7fb;scrollbar-width:auto;position:relative;isolation:isolate}.production-grid{table-layout:fixed;border-collapse:separate;border-spacing:0;text-align:left;color:#355c76;font-size:12px;white-space:normal}.production-grid th{position:sticky;top:0;z-index:5;background:#edf4fa;color:#52748c;font-size:10px;text-transform:none;letter-spacing:0;padding:0;height:42px;border-bottom:1px solid #cddfea;border-right:1px solid #dce7ef;vertical-align:middle}.production-grid th>button{width:100%;border:0;background:transparent;display:flex;justify-content:space-between;align-items:center;gap:7px;padding:12px;font-size:11px;font-weight:600;text-align:left;color:inherit;min-height:42px}.production-grid th>span:not(.sheet-resize){display:block;padding:12px;font-size:11px}.production-grid th[aria-sort=ascending],.production-grid th[aria-sort=descending]{background:#e2eef7;color:#174f73}.production-grid .sheet-sort-mark{color:#90a8b8;font-size:13px}.production-grid th[aria-sort=ascending] .sheet-sort-mark,.production-grid th[aria-sort=descending] .sheet-sort-mark{color:#276c97}.sheet-resize{position:absolute;right:-3px;top:0;bottom:0;width:8px;z-index:2;cursor:col-resize;touch-action:none}.sheet-resize:hover,.sheet-resize:focus{background:#6397bb66}.sheet-resizing,.sheet-resizing *{cursor:col-resize!important;user-select:none!important}.production-grid td{background:#fff;padding:12px;border-bottom:1px solid #e0eaf2;border-right:1px solid #e8eff5;font-size:12px;vertical-align:top;overflow-wrap:anywhere;line-height:1.5}.production-grid tbody tr:nth-child(even)>td{background:#fafcff}.production-grid tbody tr:hover>td{background:#f3f8fc}.production-grid td:focus-within{background:#f0f7fe;outline:2px solid #a0bed5;outline-offset:-2px}.production-grid .sheet-number{position:sticky;left:0;width:44px;min-width:44px;text-align:center;color:#a0b1be;font-size:10px;background:#f3f7fa;padding:14px 4px;z-index:3;border-right:1px solid #d7e5f0}.production-grid .sheet-col-order{position:sticky;left:44px;z-index:3;border-right:1px solid #cbdfeD;box-shadow:3px 0 5px #24496208}.production-grid .sheet-col-actions{position:sticky;right:0;z-index:3;border-left:1px solid #cbdfee;border-right:0;box-shadow:-4px 0 6px #24496208;padding-top:7px}.production-grid th.sheet-col-order,.production-grid th.sheet-col-actions,.production-grid th.sheet-number{z-index:8}.sheet-order-top{display:flex;align-items:center;gap:6px;margin:0 0 4px;font-size:10px;flex-wrap:wrap;color:#7595aa}.sheet-order-top b{font-weight:600;letter-spacing:.3px}.sheet-order-title{display:block;font-size:12px;font-weight:650;line-height:1.5;color:#234e6b}.sheet-sub{display:block;font-size:10px;color:#8b9faf;line-height:1.5;margin-top:4px}.production-grid .badge{white-space:normal;font-size:10px;padding:3px 7px;line-height:1.5;font-weight:550}.production-grid select{width:100%;min-height:33px;padding:6px 5px;border:1px solid #d5e3ee;border-radius:5px;font-size:11px;color:#2e6689;background:#f9fcff}.production-grid .sheet-col-step>strong{font-size:12px;font-weight:600}.sheet-progress{height:3px;border-radius:3px;background:#e6eef5;width:100%;margin-top:9px;overflow:hidden}.sheet-progress>span{display:block;height:100%;background:#52a88a;border-radius:3px}.sheet-steps-cell{display:flex;flex-direction:column;gap:5px;min-width:0}.sheet-steps-flow{display:flex;flex-wrap:wrap;align-items:center;gap:4px 3px;line-height:1.4}.sheet-step-item{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}.sheet-step{display:inline-flex;align-items:center;font-size:11px;line-height:1.3;padding:1px 6px;border-radius:4px;white-space:nowrap;max-width:100%;box-sizing:border-box}.sheet-step-done{color:#2a7547;background:#edf7f1;border:1px solid #cbe6d6;text-decoration:line-through;text-decoration-color:#2a7547;text-decoration-thickness:1.5px}.sheet-step-current{color:#11466a;font-weight:700;background:#e2edf6;border:1px solid #b2d0e6;box-shadow:0 1px 2px #103b5a12}.sheet-step-current.is-hold{color:#a82e2e;background:#fdeeee;border-color:#f5c4c4}.sheet-step-current.is-waiting{color:#9c6519;background:#fff3df;border-color:#fed9a8}.sheet-step-pending{color:#788d9e;font-weight:400;background:#f4f7fa;border:1px solid #e2eaf0}.sheet-step-sep{display:inline-flex;align-items:center;color:#9cb1c0;margin:0 1px;flex-shrink:0;user-select:none}.sheet-step-sep .icon{width:9px;height:9px;stroke-width:2.4}.sheet-step-meta{display:flex;align-items:center;gap:6px;margin-top:2px}.sheet-step-meta .badge{font-size:9px;padding:2px 6px;line-height:1.4}.sheet-step-meta .sheet-sub{margin-top:0;font-size:10px}.sheet-checklist{margin:4px 0}.sheet-checklist summary{font-size:11px;justify-content:flex-start;gap:7px;flex-wrap:wrap}.sheet-checklist [data-check-count]{font-size:10px}.sheet-checklist .step-checks{gap:5px;margin:10px 0 0}.sheet-checklist .checklabel{font-size:11px;padding:6px;border-radius:5px;gap:7px}.sheet-checklist input{width:14px;height:14px;min-height:14px;margin-top:1px}.sheet-edit{display:block;border:0;padding:0;margin:0 0 7px auto;color:#24698e;background:none;text-decoration:underline;text-underline-offset:3px;font-size:10px;min-height:20px}.sheet-save-actions{display:flex;gap:5px;flex-wrap:wrap}.sheet-save-actions .btn{font-size:10px;padding:6px 8px;min-height:29px;flex:1}.sheet-step-form .step-feedback{font-size:10px;padding:7px;margin:7px 0 0;white-space:normal}.sheet-step-form .step-feedback:empty{display:none}.sheet-draft-state{font-size:10px;color:#9b6a25;margin-top:5px;display:flex;gap:9px;align-items:center}.sheet-draft-state[hidden],.sheet-draft-total[hidden]{display:none}.production-grid tr.sheet-is-dirty>.sheet-number{background:#fff3de;color:#a57836}.production-grid tr.sheet-is-late>.sheet-col-order{border-left:3px solid #d97b69;padding-left:9px}.production-grid tr.sheet-is-stopped>.sheet-col-order{border-left:3px solid #c76868;padding-left:9px}.sheet-followup-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.production-grid .quick-order-state{margin:0;font-size:10px;gap:5px}.production-grid .quick-order-state>.btn{font-size:10px;padding:6px;margin-top:5px;min-height:29px}.sheet-footer{padding:12px 15px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:10px;color:#8ba0b0;border-radius:0 0 11px 11px;background:#f8fbfe;border-top:1px solid #dbe7f0}.sheet-footer span:first-child{font-weight:600;color:#5e829b}.production-grid .sheet-empty td{padding:50px 20px;text-align:center;color:#607e94}.sheet-empty strong,.sheet-empty span{display:block}.sheet-empty span{font-size:12px;margin-top:9px;color:#829aae}.density-comfortable .production-grid td{padding-top:21px;padding-bottom:21px}.density-comfortable .sheet-col-actions{padding-top:13px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.sheet-toolbar{gap:8px}.sheet-search{flex-basis:250px}.sheet-tools{margin-left:0}.sheet-tip{display:none}.sheet-scroll{max-height:calc(100dvh - 365px)}}
@media(max-width:760px){.sheet-toolbar{padding:10px}.sheet-search{flex-basis:100%}.sheet-filter{flex:1;min-width:95px}.sheet-filter select{width:100%;max-width:none;font-size:11px}.sheet-tools{flex-wrap:wrap;gap:5px}.sheet-summary{padding:9px 10px;gap:8px}.sheet-scroll{min-height:260px;max-height:55dvh}.production-grid .sheet-col-order{position:static;box-shadow:none}.production-grid .sheet-col-actions{position:static;box-shadow:none}.production-grid th.sheet-col-order,.production-grid th.sheet-col-actions{position:sticky;top:0;z-index:5}.production-grid .sheet-number{position:static}.production-grid th.sheet-number{position:sticky;top:0;z-index:5}.sheet-footer>span:last-child{display:none}}
@media print{.production-view-bar,.sheet-toolbar,.sheet-summary .sheet-tip,.sheet-summary button,.sheet-resize,.sheet-save-actions,.sheet-edit,.sheet-draft-state,.sheet-draft-total{display:none!important}.sheet-scroll{max-height:none;overflow:visible}.production-grid{width:100%!important;font-size:9px}.production-grid th,.production-grid td{position:static!important;padding:5px;font-size:9px}.production-grid .sheet-col-actions{display:none}.production-grid tr{break-inside:avoid}.production-grid col{width:auto!important}.sheet-footer>span:last-child{display:none}}
.sheet-pager{display:flex;align-items:center;gap:10px;color:#7895a9}.sheet-pager label{display:flex;align-items:center;gap:7px}.sheet-pager select{font-size:10px;border:1px solid #dbe6ef;border-radius:4px;padding:4px 6px;min-height:26px;color:#456e88;background:#fff}.sheet-pager button{border:1px solid #dbe6ef;border-radius:4px;background:white;color:#456e88;width:27px;min-height:26px;font-size:12px}.sheet-footer .sheet-pager span{font-weight:400}.production-grid .sheet-empty td{padding:0}.sheet-empty-content{position:sticky;left:0;width:calc(100cqw - 2px);padding:50px 20px;text-align:center}.production-grid:has(.sheet-empty) .sheet-number{background:#edf4fa}
@media(max-width:760px){.sheet-footer>.sheet-pager{display:flex}}
@media print{.sheet-pager{display:none!important}}

/* The spreadsheet is the only board and occupies all available space with compact controls. */
html:has(.production-content), body:has(.production-content){height:100%;overflow:hidden}
.shell:has(.production-content){height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
.shell:has(.production-content) .main{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.content.production-content{max-width:none;width:100%;margin:0;padding:0;flex:1;min-height:0;height:calc(100dvh - 65px);display:flex;flex-direction:column;box-sizing:border-box}
.production-content .production-sheet{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;container-type:inline-size;overflow:hidden;border:0;border-radius:0;background:#fff;box-shadow:none}
.production-content .production-grid{min-width:100%}
.production-content .sheet-toolbar{flex-shrink:0;padding:8px 16px;gap:8px;align-items:center;border-bottom:1px solid #e5edf4;border-radius:0;background:#fff}
.production-content .sheet-search{height:32px;min-height:32px;padding:6px 9px;min-width:200px}
.production-content .sheet-filter{gap:2px;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:#708b9e}
.production-content .sheet-filter select{min-height:30px;height:30px;padding:4px 24px 4px 8px;font-size:11px}
.production-content .sheet-tools{gap:5px}
.production-content .sheet-tools>.btn,.production-content .sheet-column-menu>summary{min-height:30px;height:30px;font-size:11px;padding:5px 9px;border-radius:6px}
.production-content .sheet-summary{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:6px 16px;font-size:11px;color:#678296;background:#f8fbfe;border-bottom:1px solid #dce7f0;min-height:38px}
.sheet-summary-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.sheet-summary-actions{display:inline-flex;align-items:center;gap:6px}
.sheet-more-filters>summary{list-style:none;font-size:11px;min-height:30px;padding:5px 9px;border-radius:6px;border-color:#d8e4ed;color:#3b637c;cursor:pointer;gap:4px}
.sheet-more-filters>summary::-webkit-details-marker{display:none}
.sheet-more-filters[open]{flex-basis:100%;order:2}
.sheet-more-filters[open]>summary{background:#edf4fa;color:var(--green)}
.sheet-extra-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:8px;padding:12px;background:#f8fbfe;border:1px solid #dce7f0;border-radius:6px}
.sheet-extra-filters .sheet-filter select{max-width:none;width:100%}
.sheet-filter-hint{grid-column:1/-1;margin:0;font-size:10px;line-height:1.5;color:#678296}
@media(max-width:760px){.sheet-extra-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}
@media print{.sheet-more-filters{display:none!important}}
.sheet-summary-btn{font-size:11px;font-weight:600;padding:4px 9px;min-height:27px;height:27px;border-radius:5px;gap:5px;display:inline-flex;align-items:center;text-decoration:none;box-sizing:border-box}
.sheet-summary-btn.primary{background:#174f73;border:1px solid #174f73;color:#fff;box-shadow:0 1px 2px #10395420}
.sheet-summary-btn.primary:hover{background:#103e5d;border-color:#103e5d}
.sheet-summary-btn:not(.primary){background:#fff;border:1px solid #c9dbe7;color:#2b5673}
.sheet-summary-btn:not(.primary):hover{background:#eef5fa;border-color:#b3cde0}
.sheet-summary-btn .icon{width:13px;height:13px}
.production-content .sheet-scroll{flex:1 1 0;min-height:0;max-height:none;overflow:auto}
.production-content .sheet-footer{flex-shrink:0;padding:8px 16px;border-radius:0}
@media(max-width:1100px){.production-content .sheet-toolbar{gap:6px}.production-content .sheet-summary{gap:6px}}
@media(max-width:760px){
  html:has(.production-content), body:has(.production-content){height:auto;overflow:visible}
  .shell:has(.production-content){height:auto;overflow:visible}
  .content.production-content{padding:0;height:auto}
  .production-content .production-sheet{height:auto}
  .production-content .sheet-scroll{min-height:280px;max-height:calc(100dvh - 190px)}
}
@media print{
  .content.production-content{padding:0;height:auto}
  .production-content .sheet-scroll{max-height:none;overflow:visible}
}
/* Checklist and step actions share one compact cell. */
.production-grid .sheet-checklist{margin:0}.sheet-check-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:10px;color:#809aac}.checklist-edit{border:0;background:none;color:#24698e;font-size:10px;padding:2px 0;min-height:20px;text-decoration:underline;text-underline-offset:3px}.sheet-check-head .checklist-edit{margin-left:auto}.sheet-inline-checks{gap:5px;margin:0 0 8px}.sheet-inline-checks .checklabel{border:0;border-radius:0;padding:0;background:transparent;font-size:11px;line-height:1.45;gap:7px}.sheet-inline-checks .checklabel:has(input:checked){background:none;border:0;color:#54836f}.sheet-inline-checks input{width:14px;height:14px;min-height:14px;margin:1px 0 0;flex-shrink:0}.sheet-checklist .sheet-save-actions{margin-top:8px;justify-content:flex-end}.sheet-checklist .sheet-save-actions .btn{flex:0 1 auto;padding:5px 9px;min-height:28px}.sheet-order-top .sheet-edit{margin:0 0 0 auto;display:inline-block;font-size:10px}.sheet-col-step>.badge{margin:5px 0}.sheet-col-checks>.sheet-checklist>.quick-order-state{margin-top:4px}.sheet-col-checks .quick-order-state>.btn{flex-basis:auto;margin-top:0}.sheet-inline-checks input:disabled{opacity:.6;cursor:not-allowed}.full-step-form>.checklist-edit{font-size:12px;margin-bottom:6px}
@media print{.checklist-edit,.sheet-checklist .sheet-save-actions{display:none!important}}
.density-compact .production-grid td{padding-top:8px;padding-bottom:8px}.production-grid .sheet-checklist .sheet-check-head{margin-bottom:0}.production-grid .sheet-checklist .step-checks{margin:4px 0 0;gap:3px}.production-grid .sheet-checklist .sheet-save-actions{margin-top:6px}.production-grid .sheet-checklist .checklabel{font-weight:400}
/* Order selection and history live on the production board. */
.production-grid .sheet-number input[type=checkbox]{display:block;width:14px;height:14px;min-height:14px;padding:0;margin:2px auto 0;accent-color:#174f73;cursor:pointer}.sheet-selection-tools{display:flex;align-items:center;gap:10px}.sheet-selection-tools[hidden]{display:none}.sheet-selection-tools>span{font-weight:600;color:#315d77}.sheet-selection-tools>.btn{font-size:10px;min-height:27px;padding:5px 9px}.sheet-selection-tools button[data-sheet-clear-selection]{font-size:10px}.production-grid tr:has([data-order-select]:checked)>td{background:#edf6fe}.production-grid tr:has([data-order-select]:checked)>.sheet-number{background:#dfedf9}
/* Multi-product Tree & Accordion styling for Production Sheet */
.production-grid tbody tr.sheet-row-parent>td{background:#e8f0f6;border-top:3px solid #b9cedd;border-bottom-color:#c6d8e5}
.production-grid tbody tr.sheet-row-parent:hover>td{background:#dfeaf3}
.production-grid tbody tr.sheet-row-parent>.sheet-number{border-left:3px solid var(--lime);color:var(--green)}
.production-grid tbody tr.sheet-row-parent.is-collapsed>td{border-bottom:3px solid #b9cedd}
.production-grid tbody tr.sheet-row-parent:has([data-order-select]:checked)>td{background:#dcebf7}
.sheet-row-parent .sheet-order-top{margin-bottom:3px}
.sheet-parent-index{display:flex;align-items:center;justify-content:center;gap:4px}
.sheet-accordion-bar{margin-top:6px}
.sheet-tree-toggle{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;min-height:28px;max-width:100%;flex-wrap:wrap;border-radius:5px;background:#fff;border:1px solid #c9dbe7;color:var(--green);font-size:11px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}
.sheet-tree-toggle:hover,.sheet-tree-toggle.is-open:hover{background:#eef5fa;border-color:#b3cde0}
.sheet-tree-toggle.is-open{background:#fff;border-color:#b3cde0;color:var(--green)}
.sheet-tree-arrow{font-size:9px;line-height:1}
.sheet-toggle-hint{font-size:10px;font-weight:400;color:#64879f}
.sheet-tree-summary{display:flex;flex-direction:column;gap:5px}
.sheet-tree-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sheet-inline-toggle{background:none;border:0;padding:0;font-size:10px;color:var(--green);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sheet-child-pills{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.sheet-mini-pill{display:inline-flex;align-items:center;gap:4px;font-size:10px;padding:2px 6px;border-radius:4px;background:#edf4f9;color:#33536b;border:1px solid #d5e4ee}
.sheet-mini-pill.pill-ready{background:#ecfdf5;color:#047857;border-color:#a7f3d0}
.sheet-mini-pill.pill-hold{background:#fef2f2;color:#b91c1c;border-color:#fecaca}
.sheet-parent-checks{display:flex;align-items:center}
.production-grid .btn.sheet-expand-btn{font-size:11px;font-weight:600;min-height:28px;max-width:100%;padding:5px 9px;gap:6px;border-radius:5px;white-space:normal;text-align:left;background:#fff;border:1px solid #c9dbe7;color:var(--green)}
.production-grid .btn.sheet-expand-btn:hover{background:#eef5fa;border-color:#b3cde0}

/* Nested Child Rows in Production Tree */
.production-grid tbody tr.sheet-row-child>td{background:#f3f7fb;border-bottom-color:#dce7ef}
.production-grid tbody tr.sheet-row-child:hover>td{background:#eaf2f8}
.production-grid tbody tr.sheet-row-child>.sheet-number{border-left:3px solid var(--lime);color:var(--green)}
.production-grid tbody tr.sheet-row-child.sheet-group-end>td{border-bottom:3px solid #b9cedd}
.production-grid tbody tr.sheet-row-child.sheet-is-dirty>.sheet-number{background:#fff3de;color:#a57836}
.production-grid tbody tr.sheet-row-parent>td:focus-within,.production-grid tbody tr.sheet-row-child>td:focus-within{background:#e4eff8;outline:2px solid #a0bed5;outline-offset:-2px}
.sheet-child-index-cell{display:flex;align-items:center;justify-content:center;gap:2px;font-size:10px;color:var(--green);font-weight:600}
.sheet-tree-branch{color:var(--green);font-weight:700;font-size:12px;margin-right:2px;display:inline-block}
.sheet-child-order{padding-left:2px}
.sheet-child-order .sheet-order-top{display:flex;align-items:center;gap:4px;margin-bottom:2px}

/* Multi-Product Order Creation Wizard */
.wizard-product-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:10px 0;padding:8px 12px;background:#f0f6fa;border:1px solid #dbe7f0;border-radius:8px}
.wizard-product-tabs{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.wizard-product-tab{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:6px;border:1px solid #cbdde9;background:#fff;font-size:11px;font-weight:500;color:#2e4a5d;cursor:pointer;transition:all .15s}
.wizard-product-tab:hover{background:#f8fbfe;border-color:#9cbdd4}
.wizard-product-tab.active{background:#174f73;border-color:#174f73;color:#fff;font-weight:600;box-shadow:0 1px 3px rgba(23,79,115,.25)}
.wizard-product-tab.active .badge{background:rgba(255,255,255,.2);color:#fff}
.wizard-product-tab .tab-index{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;font-size:9px;background:rgba(0,0,0,.08)}
.wizard-product-tab.active .tab-index{background:rgba(255,255,255,.25);color:#fff}
.wizard-product-actions{display:inline-flex;align-items:center;gap:6px}
.wizard-section-heading{display:flex;flex-direction:column;gap:2px;margin:16px 0 6px}
.wizard-section-heading h4{margin:0;font-size:13px;color:#164e73;font-weight:700}
.wizard-divider{height:1px;background:#e2ecf3;margin:16px 0 12px}
.wizard-product-form{padding:12px;background:#fcfdfe;border:1px solid #e1edf5;border-radius:8px;margin-bottom:12px}
.wizard-step-scope{padding:12px;background:#f8fbfe;border:1px solid #dbe7f0;border-radius:8px;margin-top:10px}
.wizard-step-scope-title{font-size:12px;color:#174f73;margin-bottom:8px;font-weight:600}
.review-products-list{display:flex;flex-direction:column;gap:12px;margin:14px 0}
.review-product-card{padding:12px;background:#f8fbfe;border:1px solid #dce8f1;border-radius:8px}
.review-product-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.review-product-spec{font-size:11px;color:#5a7b92;margin:4px 0 8px}

/* Production Spreadsheet: Priority & Materials Enhancement */
.sheet-col-priority{text-align:center;vertical-align:middle}
.badge.priority-urgent, .badge.red{background:#fee2e2;color:#b91c1c;border:1px solid #fca5a5;font-weight:600}
.badge.sub{background:#edf2f7;color:#4a6375;border:1px solid #d3e0ea}
.badge.orange{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.badge.green{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}
.badge.blue{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}
.sheet-col-materials{vertical-align:top}
.sheet-mat-list{display:flex;flex-direction:column;gap:6px;min-width:0}
.sheet-mat-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;padding:6px 8px;line-height:1.35;font-size:11px}
.sheet-mat-head{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:3px}
.sheet-mat-name{font-weight:600;font-size:11px;color:#1e3a52;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}
.sheet-mat-detail{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;color:#64748b}
.sheet-mat-detail b{color:#0f172a;font-weight:600}
.sheet-mat-spec{font-size:9.5px;color:#94a3b8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}
.sheet-mat-summary{display:flex;align-items:center;gap:6px}
.sheet-order-top .badge{font-size:9.5px;padding:2px 6px;line-height:1.2;font-weight:600}
