-.png wins over .png; only PNG.
+async function montarRead(code,size){
+ const dir=await FOLDER.handle.getDirectoryHandle('Estampas',{create:true});
+ for(const name of [code+'-'+size.letter+'.png',code+'.png']){
+ let handle;
+ try{handle=await dir.getFileHandle(name);}
+ catch(e){if(e.name==='NotFoundError')continue;throw e;}
+ const file=await handle.getFile(),url=URL.createObjectURL(file);
+ try{const dim=await montarPicture(url);return {code,letter:size.letter,widthCm:Number(size.width_cm),file,name,url,width:dim.width,height:dim.height};}
+ catch(e){URL.revokeObjectURL(url);throw e;}
+ }
+ return null;
+}
+function montarPicture(url){
+ return new Promise((ok,fail)=>{
+ const img=new Image();
+ img.onload=()=>ok({width:img.naturalWidth,height:img.naturalHeight});
+ img.onerror=()=>fail(new Error('A estampa não pôde ser lida.'));
+ img.src=url;
+ });
+}
+
+function montarDropPreview(){
+ if(MONTAR.preview)URL.revokeObjectURL(MONTAR.preview.url);
+ MONTAR.preview=null;
+}
+function montarPaintPreview(found){
+ montarDropPreview();
+ MONTAR.preview=found;
+ const words=node('span',undefined,'montar-stampinfo');
+ words.append(node('b',found.code),
+ node('span',cm(found.widthCm)+' cm de largura · '+cm(montarHeight(found))+' cm de altura · '+Math.floor(montarDpi(found))+' DPI'));
+ const img=node('img');img.src=found.url;img.alt='Estampa '+found.code;
+ const wrap=node('div',undefined,'montar-stamp');wrap.append(img,words);
+ $('montar-preview').replaceChildren(wrap);
+}
+function montarPaintNotFound(){
+ montarDropPreview();
+ $('montar-preview').replaceChildren(node('p','Código não existe em Estampas/.','montar-missing'));
+}
+function montarPaintHint(){
+ montarDropPreview();
+ $('montar-preview').replaceChildren(node('p','Digite o código e escolha o tamanho para ver a estampa.','montar-hint'));
+}
+
+async function montarPreview(){
+ const token=++MONTAR.token;
+ const code=$('montar-code').value.trim(),size=montarSelected();
+ if(!montarFolderReady())return;
+ if(!code){montarPaintHint();return;}
+ if(!MONTAR_CODE.test(code)||!size){montarDropPreview();$('montar-preview').replaceChildren();return;}
+ let found;
+ try{found=await montarRead(code,size);}
+ catch(e){if(token===MONTAR.token&&!montarFolderError(e))say(e.message,true);return;}
+ if(token!==MONTAR.token){if(found)URL.revokeObjectURL(found.url);return;}
+ if(found)montarPaintPreview(found);else montarPaintNotFound();
+}
+function montarQueuePreview(){
+ clearTimeout(MONTAR.timer);
+ MONTAR.timer=setTimeout(()=>montarPreview().catch(e=>say(e.message,true)),250);
+}
+
+function montarEstimate(){
+ if(!MONTAR.lines.length)return 0;
+ let total=0;
+ for(const line of MONTAR.lines){
+ const perRow=Math.max(1,Math.floor((MONTAR_FILM_CM-MONTAR_GAP_CM)/(line.widthCm+MONTAR_GAP_CM)));
+ const rows=Math.ceil(line.qty/perRow);
+ total+=rows*(line.heightCm+MONTAR_GAP_CM);
+ }
+ return (MONTAR_GAP_CM+total)/100;
+}
+function montarPaintTotals(){
+ const done=MONTAR.layout&&!MONTAR.layoutPending;
+ $('montar-total').textContent=done
+ ? 'Montagem: '+metres(MONTAR.layout.altura/100)
+ : 'Estimativa: '+metres(montarEstimate())+(MONTAR.layoutPending?' · montando…':'');
+ $('montar-count').textContent=MONTAR.lines.length?plural(MONTAR.lines.length,'estampa','estampas'):'';
+ $('montar-clear').disabled=!MONTAR.lines.length;
+ $('montar-warning').hidden=!(MONTAR.lines.length>20||MONTAR.lines.some(line=>line.qty>200));
+ montarPaintActions();
+}
+// The line's image, loaded once and kept for the packing and the preview.
+function montarStampImage(url){
+ const img=new Image();
+ const loading=new Promise(ok=>{img.onload=()=>ok(img);img.onerror=()=>ok(null);});
+ img.src=url;
+ return {img,loading};
+}
+// Every list change shows the estimate at once and schedules the real packing,
+// 300 ms later; a run that finishes after a newer change is thrown away.
+function montarChanged(){
+ MONTAR.layoutToken+=1;
+ MONTAR.layout=null;
+ MONTAR.layoutPending=true;
+ MONTAR.requestKey=null;
+ montarPaintLines();
+ if(!MONTAR.lines.length)montarDrawPreview(null);
+ clearTimeout(MONTAR.layoutTimer);
+ MONTAR.layoutTimer=setTimeout(()=>montarLayout(MONTAR.layoutToken).catch(e=>say(e.message,true)),300);
+}
+async function montarLayout(token){
+ if(token!==MONTAR.layoutToken)return;
+ const lines=[...MONTAR.lines];
+ if(!lines.length){MONTAR.layout=null;MONTAR.layoutPending=false;montarPaintTotals();montarDrawPreview(null);return;}
+ const images=await Promise.all(lines.map(line=>line.loading));
+ if(token!==MONTAR.layoutToken)return;
+ if(images.some(image=>!image)){
+ MONTAR.layoutPending=false;montarPaintTotals();
+ say('A estampa não pôde ser lida.',true);return;
+ }
+ const cargas=lines.flatMap((line,sourceIndex)=>Array.from({length:line.qty},(_,copyIndex)=>({
+ a:{sourceIndex,giro:0,esp:false},img:line.img,copyIndex,w:line.widthCm,h:line.heightCm,travado:false})));
+ let enc;
+ try{enc=encaixar(cargas,MONTAR_FILM_CM);}
+ catch(e){
+ if(token!==MONTAR.layoutToken)return;
+ MONTAR.layoutPending=false;montarPaintTotals();say(e.message,true);return;
+ }
+ if(token!==MONTAR.layoutToken)return;
+ MONTAR.layout={token,altura:enc.altura,pos:enc.pos};
+ MONTAR.layoutPending=false;
+ montarPaintTotals();
+ montarDrawPreview(MONTAR.layout);
+}
+// The sheet's preview: 57 cm across the panel, white film and the outline.
+function montarDrawPreview(layout){
+ const box=$('montar-layout'),canvas=$('montar-canvas');
+ if(!layout){box.hidden=true;return;}
+ box.hidden=false;
+ const width=box.clientWidth-24; // the box's padding
+ if(width<60)return;
+ const px=width/MONTAR_FILM_CM;
+ const height=Math.max(20,layout.altura*px);
+ const dpr=Math.min(2,window.devicePixelRatio||1);
+ canvas.width=Math.round(width*dpr);canvas.height=Math.round(height*dpr);
+ canvas.style.width=width+'px';canvas.style.height=height+'px';
+ const ctx=canvas.getContext('2d');
+ ctx.setTransform(dpr,0,0,dpr,0,0);
+ ctx.fillStyle='#fff';ctx.fillRect(0,0,width,height);
+ ctx.strokeStyle='#B4BAC5';ctx.lineWidth=1;
+ ctx.strokeRect(.5,.5,width-1,height-1);
+ for(const p of layout.pos){
+ const c=p.ref;
+ const giro=(p.rot===90?90:0)+(c.a&&c.a.giro?90:0);
+ ctx.save();
+ ctx.translate((p.x+p.w/2)*px,(p.y+p.h/2)*px);
+ ctx.rotate(giro*Math.PI/180);
+ if(c.a&&c.a.esp)ctx.scale(-1,1);
+ const dw=((giro%180===90)?p.h:p.w)*px, dh=((giro%180===90)?p.w:p.h)*px;
+ if(c.img)ctx.drawImage(c.img,-dw/2,-dh/2,dw,dh);
+ else{ctx.fillStyle='#E7E7E3';ctx.fillRect(-dw/2,-dh/2,dw,dh);}
+ ctx.restore();
+ }
+}
+// ---- Criar o pedido -------------------------------------------------------
+// The typed customer, as the Site's own Customer model validates it.
+const MONTAR_CUSTOMER=['montar-name','montar-doc','montar-zap','montar-mail'];
+function montarCustomer(){
+ return {name:$('montar-name').value.trim(),cnpj:$('montar-doc').value.trim(),
+ zap:$('montar-zap').value.trim(),mail:$('montar-mail').value.trim()};
+}
+const montarCustomerFilled=()=>MONTAR_CUSTOMER.every(id=>$(id).value.trim());
+function montarClearCustomer(){
+ for(const id of MONTAR_CUSTOMER)$(id).value='';
+ MONTAR.requestKey=null;
+}
+// Montar is the real thing now: a sheet, its layout and the customer.
+function montarPaintActions(){
+ const build=$('montar-build');
+ const ready=!!(MONTAR.lines.length&&MONTAR.layout&&!MONTAR.layoutPending&&
+ montarCustomerFilled()&&!MONTAR.creating);
+ build.disabled=!ready;
+ build.title=ready?'':(MONTAR.lines.length?'Aguarde a montagem e preencha o cliente.':'Monte a folha primeiro.');
+}
+// The Site's grade for loose art (web/site-quality.js): each stamp's DPI over
+// the ideal 200, from 6 to 100; the item's is the average of its stamps'.
+const montarGrade=dpi=>Math.max(6,Math.min(100,Math.round(dpi/200*100)));
+function montarItem(sources){
+ const cargas=[];
+ sources.forEach((source,sourceIndex)=>{
+ for(let copyIndex=0;copyIndexmontarGrade(source.line.dpi));
+ const warning=sources.some(source=>source.line.dpisum+n,0)/grades.length),
+ uploads:sources.map(source=>source.uploadId),
+ production:{version:3,film_width_cm:MONTAR_FILM_CM,height_cm:height,
+ sources:sources.map(source=>({upload_id:source.uploadId,kind:'artwork',
+ width_cm:source.line.widthCm,length_cm:+source.line.heightCm.toFixed(4),
+ copies:source.copies,rotation_degrees:0,mirrored:false,measurement:'file'})),
+ placements:placementsDe(enc.pos)},
+ quality_status:warning?'warning':'ok',quality_acknowledged:warning,residue_accepted:0};
+}
+// 20 sources and 4000 copies per item; a stamp above 200 copies becomes
+// several sources of the same upload, 200 each; items in list order.
+function montarItems(lines,uploads){
+ const pool=[];
+ for(const line of lines){
+ const uploadId=uploads.get(line.id);
+ for(let left=line.qty;left>0;left-=200)
+ pool.push({line,uploadId,copies:Math.min(200,left)});
+ }
+ const groups=[];let current=null;
+ for(const source of pool){
+ if(!current||current.sources.length>=20||current.copies+source.copies>4000){
+ current={sources:[],copies:0};groups.push(current);
+ }
+ current.sources.push(source);current.copies+=source.copies;
+ }
+ return groups.map(group=>montarItem(group.sources));
+}
+async function montarCreate(){
+ if(MONTAR.creating)return;
+ const customer=montarCustomer();
+ if(!montarCustomerFilled())return say('Preencha os dados do cliente.',true);
+ if(!MONTAR.lines.length)return say('Monte a folha primeiro.',true);
+ if(!MONTAR.layout||MONTAR.layoutPending)return say('A montagem ainda está sendo calculada.',true);
+ const lines=[...MONTAR.lines];
+ if(!await ask('Criar pedido','Criar o pedido com '+plural(lines.reduce((t,line)=>t+line.qty,0),'estampa','estampas')+
+ ', '+metres(MONTAR.layout.altura/100)+', para '+customer.name+'?','Criar pedido'))return;
+ MONTAR.creating=true;montarPaintActions();
+ try{
+ const uploads=new Map();
+ for(let index=0;index{});
+ }catch(e){say(e.message,true);}
+ finally{MONTAR.creating=false;montarPaintActions();}
+}
+
+function montarLine(line){
+ const row=node('div',undefined,'montar-line');
+ const img=node('img',undefined,'montar-thumb');img.src=line.url;img.alt='';
+ const words=node('span',undefined,'montar-linemeta');
+ words.append(node('b',line.code),node('span',line.letter+' · '+cm(line.widthCm)+' cm'));
+ const qty=node('input',undefined,'montar-qty');qty.type='number';qty.min='1';qty.max='9999';qty.step='1';
+ qty.value=String(line.qty);qty.setAttribute('aria-label','Quantidade de '+line.code+' '+line.letter);
+ qty.onchange=()=>{
+ const value=Math.round(Number(qty.value));
+ if(!Number.isInteger(value)||value<1||value>9999){qty.value=String(line.qty);return;}
+ line.qty=value;qty.value=String(value);montarChanged();
+ };
+ const dpi=node('span',undefined,'montar-dpi');
+ if(line.dpimontarRemoveLine(line)));
+ return row;
+}
+function montarPaintLines(){
+ const box=$('montar-lines');
+ box.replaceChildren(...(MONTAR.lines.length?MONTAR.lines.map(montarLine)
+ :[emptyState(IC.box,'Nenhuma estampa na folha','Digite o código, escolha o tamanho e Adicionar.')]));
+ montarPaintTotals();
+}
+function montarRemoveLine(line){
+ URL.revokeObjectURL(line.url);
+ MONTAR.lines=MONTAR.lines.filter(other=>other!==line);
+ montarChanged();
+}
+function montarClear(){
+ for(const line of MONTAR.lines)URL.revokeObjectURL(line.url);
+ MONTAR.lines=[];
+ montarChanged();
+}
+
+async function montarAdd(){
+ const code=$('montar-code').value.trim(),size=montarSelected();
+ if(!MONTAR_CODE.test(code))return say('Código inválido: use letras, números, hífen ou sublinhado, até 40.',true);
+ if(!size)return say('Nenhum tamanho na tabela. Peça à Gestão para cadastrar.',true);
+ const qty=Number($('montar-qty').value);
+ if(!Number.isInteger(qty)||qty<1||qty>9999)return say('A quantidade vai de 1 a 9999.',true);
+ if(!montarFolderReady())return;
+ let found;
+ try{found=await montarRead(code,size);}
+ catch(e){if(!montarFolderError(e))say(e.message,true);return;}
+ if(!found){montarPaintNotFound();return say('Código não existe em Estampas/.',true);}
+ montarPaintPreview(found);
+ if(found.widthCm>56)return say('A estampa tem '+cm(found.widthCm)+' cm de largura: o máximo é 56 cm.',true);
+ const dpi=montarDpi(found);
+ if(dpiline.code===code&&line.letter===size.letter);
+ if(existing){existing.qty=Math.min(9999,existing.qty+qty);montarChanged();return;}
+ const url=URL.createObjectURL(found.file),picture=montarStampImage(url);
+ MONTAR.lines.push({id:++MONTAR.seq,code,letter:size.letter,widthCm:found.widthCm,qty,
+ heightCm:montarHeight(found),dpi,url,img:picture.img,loading:picture.loading,file:found.file});
+ montarChanged();
+}
+
+function montarPaintSelect(){
+ const select=$('montar-size'),current=select.value;
+ select.replaceChildren(...MONTAR.sizes.map(size=>{
+ const option=node('option',size.letter+' · '+cm(size.width_cm)+' cm');option.value=size.letter;return option;
+ }));
+ select.disabled=!MONTAR.sizes.length;
+ select.value=MONTAR.sizes.some(size=>size.letter===current)?current:(MONTAR.sizes[0]?.letter||'');
+}
+// A row of the table: the letter and its width in centimetres.
+function montarSizeRow(size){
+ const row=node('div',undefined,'montar-size-row');
+ const letter=node('input',undefined,'montar-letter');letter.value=size?.letter||'';letter.maxLength=2;
+ letter.autocomplete='off';letter.setAttribute('aria-label','Letra do tamanho');
+ letter.oninput=()=>{letter.value=letter.value.toUpperCase().replace(/[^A-Z]/g,'');MONTAR.dirty=true;};
+ const width=node('input',undefined,'montar-width');width.type='number';width.min='0.01';width.max='56';width.step='0.01';
+ width.value=size?Number(size.width_cm):'';width.setAttribute('aria-label','Largura em centímetros');
+ width.oninput=()=>{MONTAR.dirty=true;};
+ const remove=iconButton(IC.close,'Remover tamanho',()=>{row.remove();MONTAR.dirty=true;});
+ row.append(letter,width,remove);
+ return row;
+}
+function montarPaintSizeEditor(){
+ const panel=$('montar-sizes-panel');
+ if(!may('manage')){panel.hidden=true;return;}
+ panel.hidden=false;
+ const head=node('div',undefined,'montar-size-head');
+ head.append(node('span','Letra'),node('span','Largura (cm)'),node('span'));
+ $('montar-sizes').replaceChildren(head,...MONTAR.sizes.map(montarSizeRow));
+}
+async function montarSaveSizes(){
+ const rows=[...$('montar-sizes').querySelectorAll('.montar-size-row')];
+ const sizes=[],seen=new Set();
+ for(const row of rows){
+ const letter=row.querySelector('.montar-letter').value.trim().toUpperCase();
+ const width=Number(row.querySelector('.montar-width').value);
+ if(!/^[A-Z]{1,2}$/.test(letter))return say('Cada tamanho precisa de uma letra de A a ZZ.',true);
+ if(seen.has(letter))return say('A letra '+letter+' aparece mais de uma vez.',true);
+ if(!(width>0&&width<=56))return say('A largura de '+letter+' vai de 0,01 a 56 cm.',true);
+ seen.add(letter);sizes.push({letter,width_cm:Number(width.toFixed(2))});
+ }
+ if(!sizes.length)return say('A tabela precisa de pelo menos um tamanho.',true);
+ await api('/stamp-sizes',{sizes});
+ MONTAR.dirty=false;
+ say('Tamanhos salvos.');
+ await montarLoadSizes(true);
+ montarQueuePreview();
+}
+async function montarLoadSizes(repaint){
+ MONTAR.sizes=(await api('/stamp-sizes')).sizes||[];
+ montarPaintSelect();
+ if(repaint||!MONTAR.dirty)montarPaintSizeEditor();
+}
+async function loadMontador(){
+ montarPaintFolder();
+ try{await montarLoadSizes(false);}
+ catch(e){say(e.message,true);return;}
+ if(montarFolderReady()){
+ if($('montar-code').value.trim()){if(!MONTAR.preview)montarQueuePreview();}
+ else montarPaintHint();
+ }
+ montarPaintLines();
+ if(MONTAR.layout)montarDrawPreview(MONTAR.layout);
+}
+
+// 2b splits an order that passes these limits into more than one sheet; from
+// now on it only warns, it does not block.
+const montarWarning=node('p','O pedido será dividido em mais de uma folha.','montar-warn');
+montarWarning.id='montar-warning';montarWarning.hidden=true;
+$('montar-sheet').insertBefore(montarWarning,$('montar-lines'));
+
+let montarResize=null;
+addEventListener('resize',()=>{
+ clearTimeout(montarResize);
+ montarResize=setTimeout(()=>{if(MONTAR.layout)montarDrawPreview(MONTAR.layout);},200);
+});
+
+$('montar-code').addEventListener('input',montarQueuePreview);
+$('montar-size').addEventListener('change',()=>montarPreview().catch(e=>say(e.message,true)));
+$('montar-qty').addEventListener('keydown',event=>{
+ if(event.key==='Enter'){event.preventDefault();$('montar-add').click();}
+});
+$('montar-add').onclick=async()=>{
+ $('montar-add').disabled=true;
+ try{await montarAdd();}catch(e){say(e.message,true);}finally{$('montar-add').disabled=false;}
+};
+$('montar-clear').onclick=()=>montarClear();
+$('montar-build').onclick=()=>montarCreate();
+for(const id of MONTAR_CUSTOMER)$(id).addEventListener('input',()=>{MONTAR.requestKey=null;montarPaintActions();});
+$('montar-size-add').onclick=()=>{MONTAR.dirty=true;$('montar-sizes').append(montarSizeRow(null));};
+$('montar-size-save').onclick=async()=>{
+ $('montar-size-save').disabled=true;
+ try{await montarSaveSizes();}catch(e){say(e.message,true);}finally{$('montar-size-save').disabled=false;}
+};
diff --git a/web/kanban.css b/web/kanban.css
index 4d4f18b..0f09485 100644
--- a/web/kanban.css
+++ b/web/kanban.css
@@ -1245,3 +1245,60 @@ dialog.viewer::backdrop{background:var(--scrim)}
background:var(--sf);border:1px solid var(--ln2);font-size:13px;color:var(--tx2);max-width:min(560px,calc(100% - 32px))}
.vnote:empty{display:none}
@media(max-width:700px){.vname{max-width:100%;flex-basis:100%}.vwhere{display:none}}
+
+/* Montador (Fase 2, front 7): the stamp by its code, the sheet's list and the
+ table of sizes. The lookup reads Estampas/ from the folder of Integrações. */
+#tab-montar .montar-add{display:grid;grid-template-columns:minmax(160px,1fr) minmax(130px,200px) 110px auto;gap:12px;align-items:end;padding:16px 18px 0}
+#tab-montar .montar-add>.btn{height:42px}
+#tab-montar .montar-preview{padding:16px 18px}
+#tab-montar .montar-preview:empty{display:none}
+#tab-montar .montar-stamp{display:flex;align-items:center;gap:14px;min-width:0}
+#tab-montar .montar-stamp img{width:64px;height:64px;object-fit:contain;padding:4px;border-radius:9px;border:1px solid var(--ln2);background:var(--bg);flex:none}
+#tab-montar .montar-stampinfo{display:flex;flex-direction:column;gap:3px;min-width:0}
+#tab-montar .montar-stampinfo b{font-size:15px;font-weight:650}
+#tab-montar .montar-stampinfo span{font-size:13px;color:var(--tx2)}
+#tab-montar .montar-missing{margin:0;font-size:13.5px;color:var(--bad)}
+#tab-montar .montar-hint{margin:0;font-size:13.5px;color:var(--tx3)}
+#tab-montar .montar-total{margin-left:auto;font-size:13.5px;font-weight:650}
+#tab-montar .montar-line{display:grid;grid-template-columns:56px minmax(110px,1fr) 82px auto 70px 36px;gap:12px;align-items:center;padding:10px 18px;border-bottom:1px solid var(--ln)}
+#tab-montar .montar-line:last-child{border-bottom:0}
+#tab-montar .montar-thumb{width:56px;height:56px;object-fit:contain;padding:4px;border-radius:9px;border:1px solid var(--ln2);background:var(--bg)}
+#tab-montar .montar-linemeta{display:flex;flex-direction:column;gap:2px;min-width:0}
+#tab-montar .montar-linemeta b{font-size:14px;font-weight:650}
+#tab-montar .montar-linemeta span{font-size:12.5px;color:var(--tx3)}
+#tab-montar .montar-qty{width:82px;height:36px;padding:0 8px;border-radius:9px;border:1px solid var(--ln2);background:var(--bg);color:var(--tx);text-align:right}
+#tab-montar .montar-dpi{display:flex;justify-content:flex-end}
+#tab-montar .montar-height{font-size:13px;color:var(--tx2);text-align:right;white-space:nowrap}
+#tab-montar #montar-lines .emptystate{padding:28px 18px}
+#tab-montar .montar-customer{border-top:1px solid var(--ln);padding:14px 18px}
+#tab-montar .montar-customer h3{margin:0 0 10px;font-size:13px;font-weight:650;color:var(--tx2)}
+#tab-montar .montar-customer-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
+@media (max-width:1100px){#tab-montar .montar-customer-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
+#tab-montar .montar-actions{display:flex;justify-content:flex-end;gap:10px;padding:12px 18px;border-top:1px solid var(--ln)}
+#tab-montar .montar-warn{margin:0;padding:10px 18px;border-bottom:1px solid var(--ln);font-size:13px;font-weight:600;color:var(--warn)}
+#tab-montar .montar-layout{height:340px;overflow:auto;scrollbar-gutter:stable;border-top:1px solid var(--ln);background:var(--sf2);padding:12px}
+#tab-montar .montar-layout canvas{display:block;margin:0 auto;background:#fff;box-shadow:0 0 0 1px var(--ln2)}
+#tab-montar .montar-sizes{display:flex;flex-direction:column;padding:8px 0}
+#tab-montar .montar-size-head,#tab-montar .montar-size-row{display:grid;grid-template-columns:90px 160px 36px;gap:12px;align-items:center;padding:6px 18px}
+#tab-montar .montar-size-head{font-size:12.5px;color:var(--tx3)}
+#tab-montar .montar-size-row input{height:36px;padding:0 10px;border-radius:9px;border:1px solid var(--ln2);background:var(--bg);color:var(--tx)}
+#tab-montar .montar-size-row input:focus{border-color:var(--acc)}
+@media (max-width:700px){
+ #tab-montar .montar-add{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:14px 14px 0}
+ #tab-montar .montar-add>.btn{grid-column:1/-1}
+ #tab-montar .montar-preview{padding:14px}
+ #tab-montar .montar-line{grid-template-columns:48px minmax(0,1fr) auto auto;grid-template-areas:"thumb meta qty remove" "thumb meta dpi height";gap:8px 10px;padding:10px 14px}
+ #tab-montar .montar-thumb{grid-area:thumb;width:48px;height:48px}
+ #tab-montar .montar-linemeta{grid-area:meta}
+ #tab-montar .montar-qty{grid-area:qty}
+ #tab-montar .montar-dpi{grid-area:dpi}
+ #tab-montar .montar-height{grid-area:height}
+ #tab-montar .montar-line>.btn{grid-area:remove}
+ #tab-montar .montar-actions{flex-wrap:wrap;padding:12px 14px}
+ #tab-montar .montar-actions .btn{flex:1}
+ #tab-montar .montar-customer{padding:12px 14px}
+ #tab-montar .montar-customer-fields{grid-template-columns:minmax(0,1fr)}
+ #tab-montar .montar-warn{padding:10px 14px}
+ #tab-montar .montar-layout{height:260px;padding:8px}
+ #tab-montar .montar-size-head,#tab-montar .montar-size-row{grid-template-columns:70px minmax(0,1fr) 36px;padding:6px 14px}
+}
diff --git a/web/kanban.html b/web/kanban.html
index c08d32a..1b523b0 100644
--- a/web/kanban.html
+++ b/web/kanban.html
@@ -38,6 +38,7 @@
+
@@ -115,6 +116,45 @@
+
+
+ Estampas
+ Para ler as estampas, escolha a pasta dos pedidos em Integrações neste computador.
+
+
+
+
+
+
+
+
+
+ Folha
+
+
+
+ Cliente
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tamanhos
Cada letra com a largura em centímetros.
+
+
+
+
+
+
+
@@ -201,4 +241,4 @@
-