:root{--ink:#1c2927;--muted:#74817d;--line:#e4e9e6;--green:#146e5c;--bg:#f7f9f7;--yellow:#fffbec;--red:#fff0ed;--font:'Segoe UI',Arial,sans-serif}*{box-sizing:border-box}body{margin:0;font:14px/1.5 var(--font);color:var(--ink);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer;transition:background .12s,border-color .12s}button:disabled{opacity:.5;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #70b8a8;outline-offset:2px}button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:8px;padding:9px 15px;font-weight:600}button:hover{background:#f1f5f2}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#0d594a}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:white;border-right:1px solid var(--line);padding:29px 17px;display:flex;flex-direction:column}.brand{display:flex;gap:11px;align-items:center;margin:0 10px 43px}.brand img{width:39px;height:39px}.brand span{font-size:17px;font-weight:700;letter-spacing:-.4px}.brand small{display:block;font-size:11px;color:var(--muted);font-weight:400;letter-spacing:.3px;margin-top:1px}.workspace{font-size:9px;font-weight:700;letter-spacing:1.3px;color:#96a29b;margin:0 13px 13px}.nav{display:flex;align-items:center;width:100%;border:0;text-align:left;background:transparent;padding:12px 14px;font-weight:500;gap:12px;margin:3px 0}.nav span{font-size:20px;width:22px;line-height:22px;color:#819088}.nav.active{background:#e8f3ee;color:#125e4f;font-weight:650}.nav.active span{color:#146e5c}.nav b{margin-left:auto;min-width:22px;font-size:11px;background:#e8ece9;border-radius:5px;text-align:center;padding:1px 5px}.nav.active b{background:#cce4d8}.navline{border-top:1px solid var(--line);margin:20px 12px}.sidebottom{margin-top:auto}.account{margin:22px 9px 0;padding-top:20px;border-top:1px solid var(--line);display:flex;gap:10px;align-items:center}.avatar{background:#eaece6;color:#657163;width:35px;height:35px;border-radius:50%;display:grid;place-items:center;font-weight:700}.account strong{font-size:12px}.account small{display:block;color:var(--muted);font-size:10px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{margin-left:224px;padding:43px 40px 20px;max-width:1700px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:35px}h1{font-size:30px;letter-spacing:-.7px;margin:4px 0 5px;font-weight:650}header p{margin:0;color:var(--muted);font-size:13px}.eyebrow{font-size:10px;color:#728078;font-weight:650;letter-spacing:1.7px}.headtools{display:flex;gap:18px;align-items:center}.connection{font-size:11px;color:#66746d;white-space:nowrap}.connection i{display:inline-block;background:#329a70;width:6px;height:6px;border-radius:50%;margin-right:7px}.connection.off i{background:#d08e32}.toolbar{display:flex;align-items:center;gap:18px;margin-bottom:18px}.search{display:flex;gap:8px;align-items:center;border:1px solid var(--line);border-radius:8px;background:white;padding:8px 12px;width:330px}.search span{font-size:23px;color:#86938a;line-height:20px}.search input{border:0;outline:0;width:100%;font-size:12px;background:transparent;color:var(--ink)}.filters{display:flex;gap:3px;background:#eaf0eb;padding:3px;border-radius:7px}.filters button{border:0;background:transparent;font-size:11px;padding:5px 13px;font-weight:500}.filters button.selected{background:white;box-shadow:0 1px 3px #18352414}.muted{color:var(--muted);font-size:12px}#total{margin-left:auto}.iconbutton{padding:5px 11px;font-size:21px;background:transparent;border:0;color:#63746b}.tablewrap{background:white;border:1px solid var(--line);border-radius:11px;overflow:auto}table{border-collapse:collapse;width:100%;min-width:640px;text-align:left}th{font-size:10px;color:#78857d;font-weight:600;background:#fbfcfb;padding:14px 18px;border-bottom:1px solid var(--line);letter-spacing:.4px;white-space:nowrap}td{padding:19px 18px;border-bottom:1px solid #edf0ec;vertical-align:middle;font-size:12px}tbody tr:last-child td{border-bottom:0}tr.urgent{background:var(--red)}tr.queued{background:var(--yellow)}tr.urgent td:first-child{box-shadow:inset 3px 0 #d57768}tr.queued td:first-child{box-shadow:inset 3px 0 #dbc478}.productname{font-size:14px;font-weight:600;margin-bottom:5px}.productsub{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:10px}.priority{display:inline-block;border-radius:5px;font-size:10px;padding:2px 7px;font-weight:600}.priority.urgent{color:#ac493b;background:#fadcd6}.priority.normal{color:#8b7830;background:#f4edc8}.number{font-size:21px;font-weight:650;letter-spacing:-.4px}.number small{font-size:10px;font-weight:400;color:var(--muted);display:block;letter-spacing:0}.actioncell{text-align:right;white-space:nowrap}.actioncell button{font-size:12px;padding:7px 14px}.actioncell button+button{margin-left:6px}.mini{padding:5px 10px;font-size:11px}.empty{background:white;border:1px solid var(--line);border-radius:11px;text-align:center;padding:80px 20px;color:var(--muted)}.empty .emptyicon{font-size:32px;color:#a8bbae;margin-bottom:13px}.empty h2{color:var(--ink);font-size:18px;font-weight:600;margin:0 0 7px}.empty p{font-size:13px;margin:0 auto 23px;max-width:370px}.notice{padding:12px 17px;border-radius:8px;background:#fff1d8;color:#80602d;font-size:12px;margin-bottom:20px;display:flex;justify-content:space-between;gap:16px}.notice[hidden]{display:none}.notice button{padding:0;border:0;background:none;color:inherit;font-size:12px;text-decoration:underline}.reviewgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:16px}.reviewcard{background:white;border:1px solid var(--line);border-radius:11px;padding:23px;display:flex;flex-direction:column}.reviewcard .reason{color:#9b7035;font-size:12px;margin:10px 0}.reviewcard pre{font:13px/1.7 var(--font);white-space:pre-wrap;margin:8px 0 20px;max-height:130px;overflow:auto}.reviewcard .actions{margin-top:auto;display:flex;gap:8px}.reviewdate{color:var(--muted);font-size:10px}.pill{background:#f1f5f2;color:#687b6c;font-size:10px;padding:3px 8px;border-radius:4px}footer{display:flex;justify-content:space-between;margin-top:21px;color:#94a094;font-size:10px}dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:510px;max-width:95vw;max-height:90vh;color:var(--ink);box-shadow:0 25px 100px #16322626}dialog::backdrop{background:#13251d55;backdrop-filter:blur(3px)}.modalhead{padding:24px 27px 18px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line)}.modalhead h2{font-size:20px;margin:0;font-weight:650}.modalhead p{font-size:12px;color:var(--muted);margin:4px 0 0}.close{font-size:22px;border:0;padding:0 5px;color:var(--muted);background:none}.modalcontent{padding:22px 27px}.modalfoot{padding:17px 27px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:8px;background:#fafcf9;border-radius:0 0 15px 15px}.field{display:block;margin-bottom:17px;font-size:12px;font-weight:600}.field input:not([type=checkbox]),.field select,.field textarea{display:block;margin-top:7px;width:100%;padding:10px 11px;border:1px solid #d9e0d9;border-radius:7px;background:white;color:var(--ink);font-weight:400;min-width:0}.field textarea{resize:vertical;min-height:85px}.field small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin-top:5px}.field .largequantity{font-size:25px;text-align:center;width:110px!important}.checkfield{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#59695f;margin:14px 0}.checkfield input{margin-top:4px;accent-color:var(--green)}.fieldrow{display:flex;gap:17px}.fieldrow>.field{flex:1;min-width:0}.formerror{font-size:12px;background:#fff0ed;color:#a44334;padding:10px;border-radius:6px;margin:0 0 15px}.formerror:empty{display:none}.help{font-size:12px;color:var(--muted);line-height:1.7}.hintbox{background:#f2f6f2;padding:13px 15px;border-radius:7px;font-size:12px;margin-bottom:18px}.settingsnav{display:flex;gap:3px;border-bottom:1px solid var(--line);padding:0 24px}.settingsnav button{border:0;border-radius:0;font-size:12px;padding:13px 10px;background:none}.settingsnav button.active{box-shadow:inset 0 -2px var(--green);color:var(--green)}.links{display:flex;gap:8px;flex-wrap:wrap;margin-top:13px}.links button{font-size:11px;padding:7px 10px}details{margin:15px 0;font-size:12px;color:var(--muted)}details summary{cursor:pointer}.photos{display:flex;gap:10px;margin:10px 0 20px}.photos img{max-width:120px;max-height:160px;object-fit:contain;border:1px solid var(--line);border-radius:6px;cursor:zoom-in}.sourceblock{white-space:pre-wrap;background:#f7f9f5;padding:14px;border-radius:7px;font-size:12px;max-height:170px;overflow:auto;margin-bottom:20px}.listuser{display:flex;justify-content:space-between;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}#toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translateX(-50%);background:#244b3d;color:white;padding:12px 23px;border-radius:9px;box-shadow:0 8px 25px #17332322;font-size:13px;z-index:99}#toast.error{background:#963e32}.offlinebadge{color:#a97833}.secondarytext{font-size:11px;color:var(--muted)}.statsline{display:flex;align-items:center;gap:10px;margin-bottom:20px;font-size:12px;color:var(--muted)}@media(max-width:1100px){main{padding:30px 25px}.sidebar{width:200px}main{margin-left:200px}.headtools{flex-direction:column;align-items:flex-end;gap:10px}td,th{padding-left:13px;padding-right:13px}}@media(max-width:780px){.sidebar{width:66px;padding:20px 7px}.brand{margin:0 6px 35px}.brand img{width:36px}.brand span,.workspace,.nav b,.account,.navline{display:none}.nav{font-size:0;padding:12px 14px}.nav span{font-size:21px}main{margin-left:66px;padding:25px 18px}h1{font-size:25px}header{align-items:flex-start}.connection{display:none}.search{width:100%}.toolbar{flex-wrap:wrap;gap:10px}.filters{order:3}#total{font-size:10px}.primary{font-size:12px}.headtools{max-width:135px}.reviewgrid{grid-template-columns:1fr}.brand small{display:none}.fieldrow{gap:10px}.modalcontent{padding:20px}.tablewrap{border-radius:8px}}
.titlebutton{font-size:14px;font-weight:600;border:0;background:transparent;padding:0;text-align:left;margin-bottom:5px}.titlebutton:hover{background:none;text-decoration:underline}[hidden]{display:none!important}.photos.zoom{flex-direction:column}.settingsnav{overflow-x:auto}input[readonly]{background:#f2f5f2!important;color:#7c897e!important}
.profiletools{margin-top:23px;padding-top:17px;border-top:1px solid var(--line)}
.reviewcard .actions{flex-wrap:wrap}.settingsnav{padding:0 13px;gap:0}.settingsnav button{font-size:11px;padding:13px 9px;white-space:nowrap}
.selectcell{width:40px;padding-left:13px;padding-right:5px}.selectcell input{width:16px;height:16px;accent-color:var(--green);cursor:pointer}.bulkbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:#e8f3ee;border:1px solid #cde1d7;border-radius:9px;margin-bottom:14px;font-size:12px}.bulkbar button{font-size:12px;padding:7px 12px}.textbutton{border:0;background:transparent;color:var(--green)}.rownote{font-size:11px;color:#63746b;margin-top:7px;max-width:320px;white-space:pre-wrap}.actionmenu{display:flex;flex-direction:column;gap:10px}.actionmenu button{text-align:left;padding:13px 15px}.actionmenu strong,.actionmenu small{display:block}.actionmenu small{font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}.danger{color:#ab493b}.historyevent{padding:12px 0;border-bottom:1px solid var(--line);color:var(--ink)}.historyevent small{display:block;color:var(--muted);margin:3px 0 7px}.datefilter{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap;margin:0 0 18px}.datefilter label{font-size:11px;color:#66766b;display:flex;flex-direction:column;gap:5px}.datefilter select,.datefilter input{border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:7px 10px;font-size:12px;min-height:34px}#dateError{font-size:12px;color:#ab493b}.statsline{flex-wrap:wrap}.productsub{flex-wrap:wrap}
@media(max-width:600px){.sidebar{inset:auto 0 0;width:100%;height:74px;padding:3px 5px;display:flex;flex-direction:row;align-items:center;overflow-x:auto;z-index:20;border-top:1px solid var(--line)}.sidebar .brand,.sidebar .workspace,.sidebar .account,.sidebar .navline{display:none}.sidebar nav,.sidebar .sidebottom{display:contents}.sidebar .nav{display:flex;flex-direction:column;justify-content:center;gap:3px;font-size:9px;line-height:1.15;text-align:center;min-width:48px;flex:1;padding:7px 3px;margin:0;height:62px}.sidebar .nav span{font-size:19px;height:22px}.sidebar .nav b{display:none}main{margin-left:0;padding:23px 12px 95px}header{gap:8px;margin-bottom:24px}h1{font-size:25px}.headtools .primary{font-size:11px;padding:10px}.headtools{max-width:125px}.toolbar{gap:9px}.ordertable{min-width:0}.ordertable thead{display:none}.ordertable tbody tr{display:grid;grid-template-columns:1fr 75px;padding:14px 12px;border-bottom:1px solid var(--line);gap:7px 10px}.ordertable td{padding:0;border:0}.ordertable .orderinfo{grid-column:1;min-width:0}.ordertable .orderquantity{grid-column:2;text-align:right}.ordertable .orderproduction{grid-column:1 / 3}.ordertable .actioncell{grid-column:1 / 3;text-align:left;white-space:normal;margin-top:4px;display:flex;gap:6px;flex-wrap:wrap}.ordertable tr[data-layout=queue]{grid-template-columns:20px 1fr 65px}.ordertable tr[data-layout=queue] .selectcell{grid-column:1;grid-row:1;width:20px;box-shadow:none}.ordertable tr[data-layout=queue] .orderinfo{grid-column:2}.ordertable tr[data-layout=queue] .orderquantity{grid-column:3}.ordertable tr[data-layout=queue] .orderproduction,.ordertable tr[data-layout=queue] .actioncell{grid-column:2 / 4}.ordertable .actioncell button+button{margin-left:0}.titlebutton{font-size:13px}.productsub{font-size:10px;gap:5px}.datefilter{gap:8px}.datefilter label{max-width:48%}.bulkbar{gap:7px}.bulkbar button{font-size:11px}footer{gap:10px}#toast{left:50%;bottom:90px;max-width:90%;width:max-content}.settingsnav{padding:0 9px}.settingsnav button{font-size:11px;padding:13px 7px}}
.suggestionhint{font-size:12px;line-height:1.6;color:#315c4a;background:#edf5ef;border-radius:7px;padding:11px 13px;margin:0 0 15px}.suggestionchoices{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 17px}.suggestionchoices button{font-size:11px;padding:6px 9px;text-align:left}
.productionfilters{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 18px}.productionfilters[hidden]{display:none}.productionfilters label{display:flex;gap:8px;align-items:center;font-size:11px;color:var(--muted)}.productionfilters select{padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);max-width:230px}.productionbadges{display:flex;flex-wrap:wrap;gap:5px;margin:9px 0 4px}.specpill{display:inline-block;background:#e9f1ef;color:#285f52;border:1px solid #dce8e2;border-radius:5px;padding:2px 6px;font-size:10px}.specpill.large{background:#eaf0fc;border-color:#d9e2f2;color:#315882}.specpill.unspecified{background:#fff7e5;border-color:#eadfc4;color:#84662b}.partnote{font-size:10px;color:#74817d;margin:4px 0 7px}.productioneditor summary{color:#285f52;font-weight:600}.productioneditor>div:first-of-type{margin-top:15px}.stageitem{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.stageitem small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.stageitem button{font-size:11px;white-space:nowrap}.stageoverview{margin:18px 0;background:#f2f6f3;border-radius:8px;padding:14px;font-size:12px}.stageoverview>div{display:flex;justify-content:space-between;gap:10px;padding:5px 0}.stageoverview small{display:block;margin-top:10px;color:var(--muted)}.bulklist{padding-left:19px;font-size:12px;max-height:190px;overflow:auto}.toolbar{flex-wrap:wrap}@media(max-width:550px){.productionfilters{display:grid;grid-template-columns:1fr}.productionfilters label{justify-content:space-between}.stageitem{align-items:flex-start}.stageitem button{white-space:normal;max-width:125px}}
.salestools{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 18px}.salestools[hidden]{display:none}.salestools label{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}.salestools select{border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:8px 10px}.salestools button{font-size:11px}.salesconnection{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:9px;padding:11px 14px;border-radius:8px;background:#edf4ef;color:#526c60;font-size:12px;margin-bottom:15px}.salesconnection.warn{background:#fff4df;color:#8b642d}.salestable td{font-size:12px}.salestatus{display:inline-block;border-radius:6px;padding:4px 8px;background:#edf0ee;color:#53665a;font-size:11px}.salestatus.ready{background:#dcefe4;color:#1c6d4f}.salestatus.review,.salestatus.external_cancelled{background:#fff0da;color:#8f6522}.salestatus.production{background:#e8edf8;color:#4b618d}.salestatus.cancelled{background:#f7e3df;color:#9b5548}.salesinputline{border:1px solid var(--line);border-radius:9px;padding:14px;margin:12px 0}.salesdetailitem{padding:14px 0;border-bottom:1px solid var(--line);font-size:13px}.salequantities{display:flex;flex-wrap:wrap;gap:7px 13px;font-size:11px;color:var(--muted);margin:8px 0}.salesactions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.salestable .secondarytext{margin-top:5px}.sidebar .brand{margin-bottom:27px}.sidebar .nav{padding-top:10px;padding-bottom:10px}@media(max-height:780px){.sidebar{padding-top:18px;padding-bottom:18px}.sidebar .brand{margin-bottom:18px}.sidebar .workspace{margin-bottom:7px}.sidebar .nav{padding-top:8px;padding-bottom:8px}.sidebar .navline{margin-top:12px;margin-bottom:12px}.sidebar .account{margin-top:12px;padding-top:12px}}
.settingsnav{flex-wrap:wrap}.settingsnav button{white-space:nowrap}

.intakeline{border:1px solid var(--line);border-radius:10px;padding:16px;margin:16px 0;background:#fbfcfb}.intakelinehead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}.intakelinehead strong{font-size:13px;color:var(--green)}.intakeline .field:last-child{margin-bottom:0}.intakeline textarea{min-height:65px}.intakelinehead button{font-size:10px;padding:6px 8px}

.packagingeditor{border-top:1px solid var(--line,#dce5e1);margin-top:20px;padding-top:10px}.packagingbadges{display:flex;gap:6px;flex-wrap:wrap;margin:5px 0}.packagingbadges:empty{display:none}.fastenerrow{display:grid;grid-template-columns:minmax(0,1fr) 110px 36px;gap:8px;align-items:center}.fastenerrow .field{margin:8px 0}.fastenerrow button{margin-top:14px}.handoffhistory{margin-bottom:20px}.handoffbatch{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border-bottom:1px solid #dce5e1}.handoffbatch small{display:block;color:#71857f}.ordertable tr[data-layout=handedoff] td{background:#fff}.bulkbar{flex-wrap:wrap}@media(max-width:600px){.fastenerrow{grid-template-columns:minmax(0,1fr) 85px 32px}.handoffbatch{align-items:flex-start;flex-direction:column}.ordertable tr[data-layout=archive] .selectcell{display:block}}

@media(max-width:600px){.ordertable tr[data-layout=archive]:has(.selectcell){grid-template-columns:20px 1fr 65px}.ordertable tr[data-layout=archive] .selectcell{grid-column:1;grid-row:1;width:20px}.ordertable tr[data-layout=archive]:has(.selectcell) .orderinfo{grid-column:2}.ordertable tr[data-layout=archive]:has(.selectcell) .orderquantity{grid-column:3}.ordertable tr[data-layout=archive]:has(.selectcell) .orderproduction,.ordertable tr[data-layout=archive]:has(.selectcell) .actioncell{grid-column:2 / 4}}

.hardwarecell{min-width:200px;max-width:290px}.hardwarelist{display:flex;flex-direction:column;gap:8px;font-size:11px}.hardwarelist strong,.hardwarelist span{display:block}.hardwarelist span{margin-top:3px;color:#61756b}.settingsnav{overflow-x:auto;flex-wrap:nowrap}.settingsnav button{flex-shrink:0}@media(max-width:600px){.ordertable .hardwarecell{grid-column:1 / -1;max-width:none;min-width:0;border-top:1px solid #e2e9e5;padding-top:8px}.hardwarecell:before{content:'Крепёжные элементы';display:block;font-size:10px;color:#71857f;margin-bottom:6px}.ordertable tr[data-layout=cancelled]:has(.selectcell){grid-template-columns:20px 1fr 65px}.ordertable tr[data-layout=cancelled] .selectcell{grid-column:1;grid-row:1;width:20px}.ordertable tr[data-layout=cancelled]:has(.selectcell) .orderinfo{grid-column:2}.ordertable tr[data-layout=cancelled]:has(.selectcell) .orderquantity{grid-column:3}.ordertable tr[data-layout=cancelled]:has(.selectcell) .orderproduction,.ordertable tr[data-layout=cancelled]:has(.selectcell) .actioncell{grid-column:2 / 4}}

.producerbadge{display:flex;gap:6px;align-items:center;margin:6px 0;color:var(--producer-color);font-weight:600;font-size:11px}.producerbadge i{width:8px;height:8px;border-radius:50%;background:var(--producer-color)}.ordertable tr.otherproducer .orderinfo{border-left:3px solid var(--producer-color)}.permissionfields{border:1px solid #dce5e1;border-radius:8px;margin:18px 0;padding:14px}.permissionfields legend{padding:0 6px;font-weight:600;font-size:12px}.employeerow{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #dce5e1}.employeerow small{display:block;color:#71857f;font-size:11px;margin-top:4px}.employeerow button{font-size:11px;padding:6px 8px}.employeerow>div:last-child{display:flex;gap:6px;flex-wrap:wrap}@media(max-width:600px){.employeerow{align-items:flex-start;flex-direction:column}.permissionfields{padding:10px}}

/* Multi-product creation keeps each kit recipe next to its quantity. */
dialog.manualdialog{width:720px}.manualdialog fieldset{border:0;padding:0;margin:0;min-width:0}.manualpaste{margin:0 0 22px;padding:15px;background:#f2f6f2;border-radius:9px}.manualpaste summary{color:var(--green);font-weight:600}.manualitem{border:1px solid var(--line);border-radius:10px;padding:17px;margin-bottom:16px}.manualitemhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;font-size:13px}.manualsource{white-space:pre-wrap;font-size:12px;color:var(--muted);overflow-wrap:anywhere}.manualwarning{font-size:12px;color:#9b7035}.manualsuggestions{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:15px}.manualfoot{position:sticky;bottom:0;flex-wrap:wrap}.manualdialog button:disabled{opacity:.45;cursor:not-allowed}.manualitem .field:last-child{margin-bottom:0}.manualitem .productioneditor{margin:14px 0}
.fastenerrow{flex-wrap:wrap}.fastenerrow [data-fastener-select]{margin-bottom:8px}.fastenerrow .field span{display:block;margin-top:8px}.fastenerrow [data-fastener-save]{align-self:center;white-space:nowrap}

.fastenerrow{grid-template-columns:minmax(0,1fr) 95px 32px;align-items:start}.fastenerrow>label:first-child{grid-column:1;grid-row:1}.fastenerrow>label:nth-child(2){grid-column:2;grid-row:1}.fastenerrow>[data-fastener-remove]{grid-column:3;grid-row:1;align-self:center}.fastenerrow>[data-fastener-save]{grid-column:1 / 3;grid-row:2;justify-self:start;margin:0 0 12px}

/* Compact rows; keep kit counts next to each hardware name. */
.ordertable .titlebutton{margin-bottom:3px;line-height:1.3}.ordertable .ordermeta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px;margin-bottom:3px}.ordertable .ordermeta .productsub{flex-wrap:wrap;gap:5px 8px}.ordertable .ordermeta .producerbadge{margin:0}.ordertable .productionbadges{gap:4px;margin:3px 0}.ordertable .partnote{margin:2px 0 3px;line-height:1.35}.ordertable .packagingbadges{gap:4px;margin:3px 0 0}.ordertable .hardwarelist{gap:4px;font-size:11px;line-height:1.45}.ordertable .hardwarelist strong,.ordertable .hardwarelist span{display:inline;margin:0}.ordertable .hardwarelist>div{overflow-wrap:anywhere}.ordertable .hardwarelist span{white-space:nowrap}.ordertable .hardwarecell{min-width:0;max-width:none}.ordertable .number{font-size:18px;line-height:1.3}.ordertable .number small{margin-top:2px}
@media(min-width:601px){.ordertable{table-layout:fixed;min-width:760px}.ordertable td{padding:10px 12px;vertical-align:top;line-height:1.4}.ordertable th{padding:10px 12px;white-space:normal}.ordertable .selectcell{padding-left:10px;padding-right:6px;width:34px}.ordertable .selectcolumn{width:34px}.ordertable .quantitycolumn{width:88px}.ordertable .productioncolumn{width:175px}.ordertable .actioncolumn{width:250px}.ordertable .actioncell{white-space:normal}.ordertable .actioncell button{font-size:11px;padding:6px 10px;margin:0 0 4px 4px}.ordertable[data-table-view=archive]{min-width:860px}.ordertable[data-table-view=archive] .hardwarecolumn{width:36%}.ordertable[data-table-view=archive] .actioncolumn{width:96px}.ordertable[data-table-view=archive] .productioncolumn{width:150px}.ordertable[data-table-view=handedoff] .actioncolumn{width:290px}.ordertable[data-table-view=cancelled] .actioncolumn{width:205px}}
@media(min-width:601px) and (max-width:1100px){.ordertable .actioncolumn{width:210px}.ordertable .productioncolumn{width:155px}.ordertable .quantitycolumn{width:78px}}
@media(max-width:600px){.ordertable colgroup{display:none}.ordertable tbody tr{padding:10px;gap:5px 8px}.ordertable .hardwarecell{padding-top:6px}.ordertable .actioncell button{min-height:34px}}
