:root{
  --gold:#b99448;--gold-dark:#957322;--ink:#1c2940;--muted:#6d7890;--line:#dfe6f1;--bg:#f5f6fa;--panel:#fff;
  --zoom:.72;--labelW:26mm;--labelH:15mm;--pageW:210mm;--pageH:297mm;--designerW:338px;--designerH:195px;--gridSize:13px;
}
*{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:linear-gradient(135deg,#fffaf0 0,#f7f8fb 38%,#edf2f8 100%)}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);background:#fff;border-radius:8px;padding:6px 8px;font-weight:800;color:var(--ink);cursor:pointer;font-size:12px}button:hover{border-color:var(--gold);box-shadow:0 0 0 3px rgba(185,148,72,.11)}.primary{background:linear-gradient(135deg,var(--gold),var(--gold-dark));color:#fff;border:0;border-radius:14px;padding:8px 10px;box-shadow:0 8px 18px rgba(185,148,72,.20);font-size:10.5px;min-width:96px;line-height:1.15}
.app{height:100vh;display:grid;grid-template-columns:252px minmax(0,1fr);gap:8px;padding:8px;max-width:1680px;margin:0 auto}.side{background:rgba(255,255,255,.96);border:1px solid rgba(185,148,72,.22);border-radius:14px;padding:9px;box-shadow:0 12px 28px rgba(31,43,63,.08);overflow:auto;scrollbar-width:thin}.brand{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:11px}.brand h1{font-size:14px;line-height:1.06;margin:0 0 4px;letter-spacing:-.35px}.brand p{margin:0;color:var(--muted);line-height:1.22;font-size:10px}.tabs{display:flex;gap:7px;margin:10px 0}.tab{flex:1;padding:7px 6px;font-size:10.5px}.tab.active{background:var(--ink);color:#fff;border-color:var(--ink)}.tab-panel{display:none}.tab-panel.active{display:block}.grid{display:grid;gap:8px}.grid.two{grid-template-columns:1fr 1fr}label{display:flex;flex-direction:column;font-weight:800;font-size:10.5px;gap:3px}input,select,textarea{border:1px solid #d2dbe9;border-radius:9px;padding:6px 7px;background:#fff;color:#101928;min-width:0;font-size:10.5px;height:27px}input:focus,select:focus,textarea:focus{outline:2px solid rgba(185,148,72,.22);border-color:var(--gold)}textarea{height:auto;min-height:90px;resize:vertical}.hint{color:var(--muted);font-size:12px}.section{border-top:1px solid var(--line);padding-top:12px}details{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}summary{font-size:13px;font-weight:900;cursor:pointer}.component-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.component-list button{font-size:10.5px;padding:6px 5px}.tools-row{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.tools-row button,.filebtn{font-size:10.5px;padding:7px 8px}.filebtn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:10px;font-weight:800;background:#fff;cursor:pointer}.filebtn input{display:none}h3{margin:9px 0 5px;font-size:12.5px}.props{border:1px dashed var(--line);border-radius:12px;padding:9px;background:#fbfcff}.props.empty{color:var(--muted);font-size:12px}.prop-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.prop-grid label{font-size:10px}.prop-grid input,.prop-grid select{padding:6px 7px;border-radius:8px;height:27px}.layers{display:flex;flex-direction:column;gap:5px}.layer{display:grid;grid-template-columns:22px 1fr 22px;align-items:center;gap:6px;padding:6px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px}.layer.active{border-color:var(--gold);box-shadow:0 0 0 2px rgba(185,148,72,.15)}.layer button{padding:2px;border:0;background:transparent}
.workspace{min-width:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}.topbar{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 4px}.topbar strong{font-size:14px}.zoomBtns{display:flex;gap:6px}.zoomBtns button{min-width:54px;padding:7px 9px}.split{height:calc(100vh - 58px);display:grid;grid-template-columns:minmax(520px,1fr) 300px;gap:10px;min-height:0}.designer-card,.preview-card{background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.9);border-radius:16px;padding:10px;min-width:0;min-height:0;box-shadow:inset 0 1px #fff,0 12px 30px rgba(31,43,63,.07)}.designer-card{display:flex;flex-direction:column}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.card-head strong{font-size:15px}.card-head span{font-size:12px;color:var(--muted)}
.designer-wrap{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:34px 16px 18px 36px;background:linear-gradient(135deg,#f7f2e8,#edf3fa);border-radius:16px;overflow:hidden}.label-shell{position:relative;width:var(--designerW);height:var(--designerH);margin:auto}.label-canvas{position:relative;width:100%;height:100%;background:#fff;border:1.5px solid var(--gold);box-shadow:0 16px 30px rgba(31,43,63,.15);overflow:hidden;background-image:linear-gradient(to right,rgba(185,148,72,.12) 1px,transparent 1px),linear-gradient(to bottom,rgba(185,148,72,.12) 1px,transparent 1px);background-size:calc(var(--gridSize) / 2) calc(var(--gridSize) / 2)}.label-canvas:before{content:'ÁREA REAL DA ETIQUETA';position:absolute;left:8px;bottom:6px;font-size:9px;font-weight:900;color:rgba(185,148,72,.42);letter-spacing:.07em;pointer-events:none}.label-size-badge{position:absolute;right:6px;top:-31px;background:var(--ink);color:#fff;border-radius:999px;padding:6px 10px;font-weight:900;font-size:10px;box-shadow:0 6px 14px rgba(31,43,63,.16)}.safe-area{position:absolute;inset:7px;border:1px dashed rgba(185,148,72,.5);pointer-events:none}.ruler-x,.ruler-y{position:absolute;background:#fff;color:#64748b;font-size:10px;font-weight:800;border:1px solid var(--line);box-shadow:0 4px 10px rgba(31,43,63,.05)}.designer-wrap>.ruler-x{left:40px;top:10px;height:20px;width:var(--designerW);border-radius:7px}.designer-wrap>.ruler-y{left:10px;top:40px;width:20px;height:var(--designerH);border-radius:7px}.tick{position:absolute}.tick:before{content:'';position:absolute;background:#94a3b8}.designer-wrap .tick.x{top:2px;transform:translateX(-1px)}.designer-wrap .tick.x:before{left:0;top:14px;width:1px;height:8px}.designer-wrap .tick.y{left:3px;transform:translateY(-1px)}.designer-wrap .tick.y:before{left:18px;top:0;width:7px;height:1px}
.obj{position:absolute;min-width:8px;min-height:4px;display:flex;align-items:center;justify-content:center;user-select:none;cursor:move;overflow:hidden}.obj.selected{outline:1.5px solid #2563eb;outline-offset:1px;background:rgba(37,99,235,.025)}.obj.locked{cursor:not-allowed;opacity:.7}.obj .handle{position:absolute;right:-4px;bottom:-4px;width:10px;height:10px;background:#2563eb;border-radius:50%;border:2px solid #fff;cursor:nwse-resize}.obj.barcode{flex-direction:column;align-items:stretch;justify-content:flex-start;padding:0!important}.obj.barcode svg{display:block;width:100%!important;flex:1 1 auto;min-height:0}.obj svg{width:100%;height:100%;display:block}.obj.text{white-space:pre-wrap}.barcodeText{font-size:4.2pt;letter-spacing:.6pt;text-align:center;width:100%;line-height:1.05;position:absolute;bottom:0;left:0}.preview-card{overflow:hidden}.preview-scroll{height:calc(100% - 30px);overflow:auto;padding:12px;background:#e9eef5;border-radius:14px}.sheet-stage{width:calc(var(--pageW) * var(--zoom));height:calc(var(--pageH) * var(--zoom));transform-origin:top left}.sheet{position:relative;width:var(--pageW);height:var(--pageH);background:#fff;box-shadow:0 14px 28px rgba(0,0,0,.12);transform:scale(var(--zoom));transform-origin:top left}.slot{position:absolute;width:var(--labelW);height:var(--labelH);overflow:hidden}.sheet .obj{pointer-events:none}.colmark,.rowmark{position:absolute;color:#64748b;font-weight:800;font-size:7pt}.colmark{top:2mm;transform:translateX(-50%)}.rowmark{left:2mm;transform:translateY(-50%)}.qrbox{border:1px solid #000;font-size:5pt;text-align:center;line-height:1.1}.status-pill{display:inline-flex;align-items:center;gap:8px;background:#fff8e8;border:1px solid rgba(185,148,72,.35);border-radius:999px;padding:7px 10px;color:#765918;font-weight:850;font-size:12px}.side::-webkit-scrollbar,.preview-scroll::-webkit-scrollbar{width:8px;height:8px}.side::-webkit-scrollbar-thumb,.preview-scroll::-webkit-scrollbar-thumb{background:#c8ced8;border-radius:99px}
@media(max-width:1450px){.app{grid-template-columns:285px 1fr}.split{grid-template-columns:minmax(540px,1fr) 320px}.brand{flex-direction:column}.primary{width:100%}.brand h1{font-size:17px}.topbar strong{font-size:15px}}
@media(max-width:1180px){html,body{overflow:auto}.app{height:auto;grid-template-columns:1fr}.side{height:auto}.split{height:auto;grid-template-columns:1fr}.designer-card{height:560px}.preview-card{height:620px}}
@media print{html,body{overflow:visible;background:#fff}.no-print{display:none!important}.app{display:block;padding:0}.workspace,.split,.preview-card,.preview-scroll{display:block;height:auto;padding:0;background:#fff;box-shadow:none;border:0}.sheet-stage{width:210mm!important;height:297mm!important}.sheet{transform:none!important;box-shadow:none}.sheet .slot{outline:0!important}@page{size:A4;margin:0}}

/* V7 auditoria visual: interface menor e barcode vetorial BWIP-JS */
.side{max-width:276px}.brand{gap:8px}.grid{gap:7px}.grid.two{column-gap:7px}.tools-row button,.filebtn{font-size:10.5px;padding:6px 7px}.zoomBtns button{min-width:48px;padding:6px 8px}.split{height:calc(100vh - 52px)}
.designer-wrap>.ruler-x{left:42px;top:12px;height:22px}.designer-wrap>.ruler-y{left:12px;top:42px;width:22px}.ruler-x,.ruler-y{font-size:9px}.label-size-badge{font-size:10px;padding:5px 9px;top:-28px}.safe-area{inset:8px}.label-canvas:before{font-size:8px;bottom:4px;left:6px}.preview-scroll{padding:10px}.card-head strong{font-size:14px}.card-head span{font-size:10px}.prop-grid{gap:6px}.prop-grid input,.prop-grid select{height:28px;font-size:10px}.layer{font-size:10px;padding:5px}.obj.barcode{background:transparent!important;align-items:center;justify-content:center}.barcodeSvg{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.obj.barcode.has-number .barcodeSvg{height:78%;position:absolute;left:0;top:0}.obj.barcode svg{width:100%!important;height:100%!important;display:block}.barcodeText{font-size:3.6pt;letter-spacing:.15pt;font-weight:500;text-align:center;width:100%;line-height:1;position:absolute;bottom:.2mm;left:0;color:#000}.sheet .barcodeText{font-size:2.8pt;bottom:.1mm}.sheet .obj.barcode.has-number .barcodeSvg{height:76%}
@media(max-width:1450px){.app{grid-template-columns:260px 1fr}.split{grid-template-columns:minmax(500px,1fr) 300px}.side{max-width:260px}}

.side{overflow-y:auto;overflow-x:hidden}input,select,textarea{width:100%}.brand{min-width:0}.brand>*{min-width:0}.component-list,.grid.two{min-width:0}.preview-card{max-width:300px}


/* V8 - editor vetorial e escala compacta */
.app{grid-template-columns:252px minmax(0,1fr)}
.side{max-width:252px;padding:9px}
.brand h1{font-size:14px}.brand p{font-size:10px}.primary{min-width:82px;font-size:10px;padding:7px 8px;border-radius:12px}
.tab{padding:6px 5px;font-size:10.5px}label{font-size:9.8px}input,select,textarea{height:27px;font-size:10.5px;padding:5px 7px}.grid{gap:6px}.tabs{gap:6px;margin:9px 0}
.split{grid-template-columns:minmax(520px,1fr) 300px;gap:8px;height:calc(100vh - 48px)}.designer-card,.preview-card{border-radius:14px;padding:9px}.preview-card{max-width:300px}.topbar strong{font-size:13px}.zoomBtns{gap:5px}.zoomBtns button{min-width:42px;padding:5px 7px;font-size:10.5px}.card-head{margin-bottom:6px}.card-head strong{font-size:13px}
.designer-wrap{padding:34px 16px 18px 36px}.label-shell{transform:translateY(-3px)}
.label-canvas{display:block;width:100%;height:100%;background:#fff;border:1.5px solid var(--gold);box-shadow:0 14px 28px rgba(31,43,63,.13);overflow:visible}
.label-bg{fill:#fff}.label-grid-minor{stroke:rgba(185,148,72,.13);stroke-width:.035}.label-grid-major{stroke:rgba(185,148,72,.23);stroke-width:.05}.label-border{fill:none;stroke:var(--gold);stroke-width:.08}.label-safe{fill:none;stroke:rgba(185,148,72,.55);stroke-width:.06;stroke-dasharray:.35 .25}.svg-obj{cursor:move}.svg-select{fill:none;stroke:#2563eb;stroke-width:.06;pointer-events:none}.svg-handle{fill:#2563eb;stroke:#fff;stroke-width:.08;cursor:nwse-resize}.svg-text{font-family:Arial, Helvetica, sans-serif;dominant-baseline:middle}.svg-line{stroke:#000;stroke-width:.08}.svg-rect{fill:none;stroke:#000;stroke-width:.12}.designer-wrap>.ruler-x{left:40px;top:10px;height:20px}.designer-wrap>.ruler-y{left:10px;top:40px;width:20px}.ruler-x,.ruler-y{font-size:8.5px}.label-size-badge{font-size:9.5px;padding:4px 8px;top:-26px}.designer-wrap .tick.x:before{top:12px;height:7px}.designer-wrap .tick.y:before{left:14px;width:6px}.barcodeSvg svg{width:auto!important;max-width:100%;height:100%!important}.obj.barcode svg{width:auto!important;max-width:100%;height:100%!important}.obj.barcode .barcodeSvg{justify-content:center}.barcodeText{font-size:3.2pt}.sheet .barcodeText{font-size:2.4pt}
@media(max-width:1450px){.app{grid-template-columns:244px 1fr}.side{max-width:244px}.split{grid-template-columns:minmax(500px,1fr) 286px}.preview-card{max-width:286px}}

/* V9 - revisão de arquitetura visual: editor + toolbar + inspetor direito */
:root{--leftW:248px;--rightW:318px;--canvasMax:16px}
.app{grid-template-columns:var(--leftW) minmax(0,1fr);padding:7px;gap:8px;background:linear-gradient(135deg,#fbfaf7 0%,#eef3f8 100%)}
.side{max-width:var(--leftW);width:var(--leftW);border-radius:14px;padding:9px}
.brand{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid var(--line)}
.brand h1{font-size:13px;line-height:1.05}.brand p{font-size:9.5px;line-height:1.2}.primary{height:42px;min-width:78px;border-radius:12px;font-size:10px;line-height:1.1}
.section{margin-bottom:8px}.tabs{margin:7px 0;gap:6px}.tab{height:31px;border-radius:10px;font-size:10px;padding:5px}
.grid.two{grid-template-columns:1fr 1fr;gap:6px 7px}label{font-size:9.4px;gap:3px}input,select,textarea{height:25px;border-radius:8px;font-size:10px;padding:4px 7px}.component-list{gap:5px}.component-list button{height:27px;border-radius:8px;font-size:9.8px}.tools-row{gap:5px;margin:5px 0}.tools-row button,.filebtn{height:27px;border-radius:8px;font-size:9.5px;padding:5px 6px}details{margin-top:7px}summary{font-size:12px}.hint{font-size:10px}.v9-hint{padding:8px;border:1px dashed var(--line);border-radius:10px;background:#fff;color:var(--muted)}
.workspace{gap:6px}.topbar{height:30px;padding:0 2px}.topbar strong{font-size:13px;letter-spacing:-.01em}.zoomBtns{gap:4px}.zoomBtns button{min-width:38px;height:27px;border-radius:8px;font-size:10px;padding:4px 6px}.zoomBtns button[data-zoom="fit"]{min-width:48px}
.split{height:calc(100vh - 46px);grid-template-columns:minmax(560px,1fr) var(--rightW);gap:8px}.designer-card,.preview-card,.inspector-card{border-radius:14px;padding:8px;background:rgba(255,255,255,.86);border:1px solid rgba(230,219,198,.72);box-shadow:inset 0 1px #fff,0 10px 22px rgba(31,43,63,.055)}.designer-card{display:flex;flex-direction:column}.card-head{height:22px;margin-bottom:5px}.card-head strong{font-size:13px}.card-head span{font-size:10px}
.editor-toolbar{height:36px;display:flex;align-items:center;gap:4px;padding:4px 6px;margin-bottom:7px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(31,43,63,.035);overflow:hidden}.editor-toolbar .tool{height:26px;min-width:45px;padding:4px 6px;border:1px solid transparent;border-radius:8px;background:#fff;font-size:9.6px;font-weight:800;color:var(--ink);box-shadow:none}.editor-toolbar .tool:hover,.editor-toolbar .tool.active{border-color:rgba(185,148,72,.45);background:#fff8e8;color:#7d5e18}.toolbar-sep{width:1px;height:20px;background:var(--line);margin:0 3px;flex:0 0 auto}
.designer-wrap{padding:38px 20px 18px 42px;align-items:center;justify-content:center;background:linear-gradient(135deg,#f7f3eb,#edf4fa);border-radius:14px}.label-shell{transform:none}.label-canvas{border-width:1.25px;box-shadow:0 14px 26px rgba(31,43,63,.12)}.label-size-badge{top:-25px;right:4px;font-size:9px;padding:4px 8px}.designer-wrap>.ruler-x{left:42px;top:12px;height:18px;border-radius:6px}.designer-wrap>.ruler-y{left:12px;top:42px;width:18px;border-radius:6px}.ruler-x,.ruler-y{font-size:8px}.designer-wrap .tick.x:before{top:11px;height:7px}.designer-wrap .tick.y:before{left:13px;width:6px}.label-grid-minor{stroke:rgba(185,148,72,.10);stroke-width:.03}.label-grid-major{stroke:rgba(185,148,72,.22);stroke-width:.045}.label-border{stroke-width:.065}.label-safe{stroke-width:.045;stroke-dasharray:.28 .22}.svg-select{stroke:#2563eb;stroke-width:.045}.svg-handle{width:.36px;height:.36px}
.right-panel{min-width:0;display:grid;grid-template-rows:minmax(300px,1fr) auto minmax(95px,150px);gap:8px;overflow:hidden}.right-panel .preview-card{max-width:none;min-height:0;overflow:hidden}.preview-scroll{height:calc(100% - 27px);padding:10px;border-radius:12px;background:#e8edf4}.inspector-card{min-height:0}.inspector-card .props{max-height:210px;overflow:auto}.layers-card{overflow:hidden}.layers{max-height:100%;overflow:auto;gap:4px}.layer{border-radius:8px;padding:5px;font-size:10px}.prop-grid{grid-template-columns:1fr 1fr;gap:5px}.prop-grid input,.prop-grid select{height:25px;border-radius:7px;font-size:9.6px;padding:3px 6px}.props.empty{font-size:11px;padding:18px 10px;color:var(--muted);text-align:center;background:#fff;border:1px dashed var(--line);border-radius:10px}
.barcodeSvg svg{width:100%!important;max-width:100%!important;height:100%!important}.obj.barcode svg{width:100%!important;max-width:100%!important;height:100%!important}.barcodeText{font-size:3pt;letter-spacing:.05pt}.sheet .barcodeText{font-size:2.2pt}
@media(max-width:1450px){:root{--leftW:236px;--rightW:292px}.split{grid-template-columns:minmax(500px,1fr) var(--rightW)}.brand h1{font-size:12.5px}.topbar strong{font-size:12px}.zoomBtns button{min-width:34px;font-size:9.5px}.editor-toolbar .tool{min-width:38px;font-size:9px;padding:3px 5px}.right-panel{grid-template-rows:minmax(280px,1fr) auto 115px}.inspector-card .props{max-height:160px}}
@media(max-width:1180px){.right-panel{grid-template-rows:480px auto 150px}.split{grid-template-columns:1fr}.designer-card{height:520px}}


/* V10 - auditoria final UI/UX: canvas mais útil, toolbar com ícones, propriedades agrupadas e smart guides */
:root{--leftW:232px;--rightW:300px;--gold-soft:#fff8ea;--toolbarH:34px}
.app{grid-template-columns:var(--leftW) minmax(0,1fr);gap:7px;padding:6px;max-width:1920px}
.side{width:var(--leftW);max-width:var(--leftW);padding:8px;border-radius:13px}.brand h1{font-size:12.5px}.brand p{font-size:9px}.primary{height:38px;min-width:72px;font-size:9.4px;border-radius:11px}.tab{height:29px;font-size:9.7px;border-radius:9px}label{font-size:9px}input,select,textarea{height:24px;font-size:9.5px;padding:3px 6px;border-radius:7px}.grid.two{gap:5px 6px}.component-list button{height:25px;font-size:9.2px}.tools-row button,.filebtn{height:25px;font-size:9.1px}.topbar{height:32px}.topbar strong{font-size:12.5px}.top-actions{display:flex;align-items:center;gap:5px}.top-actions>button{height:26px;min-width:30px;padding:4px 7px;font-size:9px}.top-actions>button.active{background:var(--gold-soft);border-color:rgba(185,148,72,.45);color:#7d5e18}.zoomBtns button{height:26px;min-width:36px;font-size:9.3px;padding:4px 6px}.split{grid-template-columns:minmax(650px,1fr) var(--rightW);gap:7px;height:calc(100vh - 45px)}.designer-card,.preview-card,.inspector-card{border-radius:13px;padding:7px}.card-head{height:20px}.card-head strong{font-size:12.5px}.card-head span{font-size:9.3px}.editor-toolbar{height:var(--toolbarH);padding:3px 5px;gap:3px;border-radius:9px}.editor-toolbar .tool{height:25px;min-width:31px;padding:3px 6px;font-size:10px;display:inline-flex;align-items:center;gap:5px}.editor-toolbar .tool span{font-size:9px}.toolbar-sep{height:18px}.designer-wrap{padding:38px 22px 18px 42px;background:linear-gradient(135deg,#f8f4eb,#ecf3f9);}.designer-wrap>.ruler-x{left:42px;top:11px;height:18px;background:#f8fafc;border-color:#d8e0ec}.designer-wrap>.ruler-y{left:12px;top:42px;width:18px;background:#f8fafc;border-color:#d8e0ec}.ruler-x,.ruler-y{font-size:8px}.label-shell{filter:drop-shadow(0 18px 32px rgba(31,43,63,.12))}.label-canvas{box-shadow:none;border-width:1.2px}.label-size-badge{top:-25px;right:5px}.label-bg{fill:#fff}.label-grid-minor{stroke:rgba(185,148,72,.09);stroke-width:.026}.label-grid-major{stroke:rgba(185,148,72,.20);stroke-width:.04}.label-border{stroke-width:.06}.label-safe{stroke-width:.04;stroke-dasharray:.26 .22}.smart-guide{stroke:#2f7df6;stroke-width:.055;stroke-dasharray:.22 .12;pointer-events:none}.svg-select{stroke-width:.043;stroke:#2f7df6}.svg-handle{fill:#2f7df6}.right-panel{grid-template-rows:minmax(285px,.95fr) minmax(185px,235px) minmax(90px,135px);gap:7px}.preview-scroll{padding:9px}.inspector-card .props{max-height:185px}.props{padding:7px}.prop-grid{display:block}.prop-grid label{margin-bottom:5px}.prop-grid label:nth-child(1)::before{content:'Geral';display:block;margin:0 0 5px;padding:4px 6px;border-radius:7px;background:#fbf7ee;color:#7d5e18;font-size:9px;font-weight:900;text-transform:uppercase}.prop-grid label:nth-child(3)::before{content:'Transformação';display:block;margin:5px 0;padding:4px 6px;border-radius:7px;background:#f5f7fb;color:#475569;font-size:9px;font-weight:900;text-transform:uppercase}.prop-grid label:nth-child(9)::before{content:'Conteúdo';display:block;margin:5px 0;padding:4px 6px;border-radius:7px;background:#f5f7fb;color:#475569;font-size:9px;font-weight:900;text-transform:uppercase}.prop-grid input,.prop-grid select{height:24px}.layer{grid-template-columns:20px 1fr 20px;height:28px;font-size:9.4px}.barcodeSvg svg{shape-rendering:crispEdges}.sheet .slot .obj.barcode svg{shape-rendering:crispEdges}.barcodeText{font-size:2.9pt}.sheet .barcodeText{font-size:2.1pt}
@media(max-width:1450px){:root{--leftW:220px;--rightW:280px}.split{grid-template-columns:minmax(580px,1fr) var(--rightW)}.top-actions>button:nth-child(n+4){display:none}.editor-toolbar .tool span{display:none}.editor-toolbar .tool{min-width:28px}.brand h1{font-size:12px}.primary{min-width:68px}}


/* V11 - Auditoria UX: editor vetorial com área de trabalho profissional */
:root{--stage:#e9edf3;--stage-deep:#dce3ed;--gold-soft:#f7f0dd;--leftW:268px;--rightW:344px;--designerW:520px;--designerH:300px;}
.app{grid-template-columns:var(--leftW) minmax(0,1fr);gap:10px;padding:10px;max-width:none;background:linear-gradient(135deg,#fffdf8 0,#f6f7fb 42%,#ecf2f8 100%)}
.side{max-width:none;border-radius:15px;padding:10px;border-color:rgba(185,148,72,.26)}
.brand h1{font-size:15px}.brand p{font-size:10.5px}.primary{min-width:100px;height:42px;border-radius:16px;font-size:11px}
.tabs{padding-top:8px;border-top:1px solid var(--line)}.tab{font-size:11px;height:34px;border-radius:11px}.tab.active{background:#17243a;color:#fff;box-shadow:inset 0 -2px 0 rgba(255,255,255,.08)}
.grid.two{grid-template-columns:1fr 1fr;gap:8px}label{font-size:10.5px}input,select{height:30px;font-size:11px;border-radius:9px;padding:6px 8px}.component-list{gap:7px}.component-list button{height:31px;border-radius:10px;text-align:left;padding-left:10px}.tools-row button{height:30px;border-radius:10px}
.workspace{gap:8px}.topbar{height:38px;gap:12px;padding:0 4px}.topbar strong{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions{display:flex;align-items:center;gap:8px}.file-menu{display:flex;gap:6px;align-items:center}.file-menu button,.top-actions>button,.zoomBtns button{height:30px;border-radius:9px;font-size:11px;padding:6px 9px}.top-actions button.active{background:#fff7e8;border-color:#c59b3d;color:#765918}.zoomBtns{gap:5px}.zoomBtns button{min-width:42px}.split{height:calc(100vh - 62px);grid-template-columns:minmax(620px,1fr) var(--rightW);gap:10px}.designer-card{border-radius:16px;padding:8px;background:#fff;border:1px solid rgba(185,148,72,.18)}.right-panel{display:grid;grid-template-rows:330px minmax(0,1fr) 150px;gap:10px;min-height:0}.preview-card,.inspector-card{border-radius:15px;background:#fff;border:1px solid rgba(185,148,72,.18);box-shadow:0 8px 20px rgba(31,43,63,.06);padding:9px;overflow:hidden}.card-head{margin-bottom:6px}.card-head strong{font-size:14px}.card-head span{font-size:10.5px}.editor-toolbar{height:40px;border:1px solid var(--line);border-radius:12px;padding:4px 6px;display:flex;gap:4px;align-items:center;background:#fff;box-shadow:inset 0 1px #fff}.editor-toolbar .tool{height:30px;border:0;border-radius:9px;padding:4px 8px;display:inline-flex;align-items:center;gap:5px;font-size:11px;background:transparent}.editor-toolbar .tool.active,.editor-toolbar .tool:hover{background:#fff8e8;color:#785918;box-shadow:inset 0 0 0 1px rgba(185,148,72,.45)}.toolbar-sep{height:22px;width:1px;background:var(--line);margin:0 5px}
.document-stage{position:relative;flex:1;min-height:0;background:linear-gradient(135deg,var(--stage),#f4f6f9);border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:46px 40px 34px;box-shadow:inset 0 1px #fff}.designer-wrap{position:relative;width:min(92%,980px);height:min(88%,620px);display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.72),rgba(255,255,255,.22) 48%,rgba(214,223,235,.28));border:1px solid rgba(255,255,255,.5);border-radius:18px;overflow:visible;padding:0}.label-shell{width:var(--designerW);height:var(--designerH);box-shadow:0 22px 46px rgba(31,43,63,.18)}.label-canvas{display:block;width:100%;height:100%;border:2px solid var(--gold);background:#fff;box-shadow:none}.ruler-x,.ruler-y{background:#f8fafc;border-color:#cbd5e1;border-radius:0;box-shadow:none;font-size:10px}.designer-wrap>.ruler-x{left:calc(50% - (var(--designerW) / 2));top:20px;width:var(--designerW);height:22px}.designer-wrap>.ruler-y{left:calc(50% - (var(--designerW) / 2) - 28px);top:calc(50% - (var(--designerH) / 2));height:var(--designerH);width:22px}.tick.x:before{background:#64748b;height:8px}.tick.y:before{background:#64748b;width:8px}.label-size-badge{right:-4px;top:-34px;background:#17243a}.preview-scroll{height:calc(100% - 24px);padding:12px;background:#e8eef5}.sheet{box-shadow:0 10px 18px rgba(31,43,63,.13)}.inspector-card{min-height:0}.props{border:0;background:transparent;padding:0;overflow:auto;max-height:100%}.prop-section{border:1px solid var(--line);border-radius:12px;background:#fbfcff;margin-bottom:8px;overflow:hidden}.prop-section h4{margin:0;padding:7px 9px;background:#f8f0df;color:#80601b;font-size:10px;text-transform:uppercase;letter-spacing:.04em}.prop-section .prop-grid{padding:8px}.layers{overflow:auto;max-height:104px}.layer{grid-template-columns:24px 24px 1fr 24px;border-radius:10px;font-size:11px;padding:6px}.layer.active{border-color:#bd943c;background:#fffaf0}.layer .drag{color:#94a3b8}.smart-guide{stroke:#1d9bf0!important;stroke-width:.06!important;stroke-dasharray:.18 .12!important}.svg-select{stroke:#1d4ed8;stroke-width:.07;fill:none}.svg-handle{fill:#1d4ed8}.label-grid-minor{stroke:rgba(185,148,72,.12);stroke-width:.025}.label-grid-major{stroke:rgba(185,148,72,.22);stroke-width:.035}.label-border{stroke:#b99448;stroke-width:.08;fill:none}.label-safe{stroke:rgba(185,148,72,.55);stroke-width:.045;fill:none;stroke-dasharray:.25 .2}.barcodeSvg svg rect,.barcodeSvg svg path{shape-rendering:crispEdges}.svg-text{dominant-baseline:middle}.rowmark,.colmark{font-size:6pt;color:#64748b}.preview-scroll::-webkit-scrollbar,.side::-webkit-scrollbar,.props::-webkit-scrollbar,.layers::-webkit-scrollbar{width:7px;height:7px}.preview-scroll::-webkit-scrollbar-thumb,.side::-webkit-scrollbar-thumb,.props::-webkit-scrollbar-thumb,.layers::-webkit-scrollbar-thumb{background:#bdc7d4;border-radius:99px}
@media(max-width:1450px){:root{--leftW:258px;--rightW:320px}.split{grid-template-columns:minmax(540px,1fr) var(--rightW)}.editor-toolbar .tool span{display:none}.brand h1{font-size:13px}.primary{height:38px}}
@media(max-height:820px){.right-panel{grid-template-rows:300px minmax(0,1fr) 128px}.topbar{height:34px}.split{height:calc(100vh - 56px)}.editor-toolbar{height:36px}.editor-toolbar .tool{height:27px}.document-stage{padding:38px 32px 24px}.side{padding:8px}.brand{padding-bottom:8px}.tabs{margin:8px 0}.grid.two{gap:6px}input,select{height:27px}.component-list button{height:29px}}


/* V12 - Produtividade: barra unificada, componentes drag/drop e barcode recalibrado */
:root{--leftW:250px;--rightW:330px;--stage:#edf1f6;--designerW:600px;--designerH:346px}
body{background:linear-gradient(135deg,#fffdf9 0,#f7f8fb 45%,#eef4fa 100%)}
.brand p::after{content:' · V12';color:#b99448;font-weight:900}.brand{align-items:center}.primary{box-shadow:0 8px 18px rgba(185,148,72,.22)}
.topbar{height:42px;border-bottom:1px solid rgba(185,148,72,.18);background:rgba(255,255,255,.72);backdrop-filter:blur(8px);border-radius:12px;padding:0 8px}.unified-actions{display:flex;align-items:center;gap:5px}.top-file{display:inline-flex;align-items:center;justify-content:center;height:30px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:6px 9px;font-size:11px;font-weight:900;cursor:pointer}.top-file:hover{border-color:var(--gold);box-shadow:0 0 0 3px rgba(185,148,72,.11)}.top-file input{display:none}.top-actions{gap:6px}.top-actions>button,.zoomBtns button,.file-menu button{font-size:10.5px}.zoomBtns{padding-left:6px;border-left:1px solid var(--line)}
.component-library{grid-template-columns:1fr 1fr}.component-card{display:flex!important;align-items:center;gap:7px;text-align:left!important}.component-card span{width:18px;height:18px;border-radius:6px;background:#fff7e8;color:#765918;display:inline-flex;align-items:center;justify-content:center;font-weight:900}.component-card:active{cursor:grabbing}.model-library{display:grid;grid-template-columns:1fr;gap:6px;margin-bottom:8px}.model-library button{text-align:left;background:#fffaf0;border-color:#ead6aa}.model-library button:hover{background:#fff3d9}
.editor-toolbar{height:42px;gap:5px}.editor-toolbar .tool{min-width:36px}.editor-toolbar .tool span{font-size:9.5px}.document-stage{background:linear-gradient(135deg,#e7ecf3,#f5f7fa);padding:34px}.designer-wrap{background:#e9eef5;border:1px solid #dce4ee}.label-shell{box-shadow:0 16px 32px rgba(31,43,63,.15)}.label-canvas{border-width:1.5px}.label-size-badge{background:#162237;box-shadow:0 8px 18px rgba(31,43,63,.22)}.ruler-x,.ruler-y{background:#f8fafc;color:#475569}.tick.x:before,.tick.y:before{background:#64748b}.label-grid-minor{stroke:rgba(185,148,72,.08)}.label-grid-major{stroke:rgba(185,148,72,.18)}.smart-guide{stroke:#0ea5e9!important;stroke-width:.07!important;stroke-dasharray:none!important}.svg-select{stroke:#2563eb;stroke-width:.055}.svg-handle{fill:#2563eb}
.props .prop-section h4{display:flex;align-items:center;justify-content:space-between}.props .prop-section h4::after{content:'▾';font-size:10px;color:#9ca3af}.prop-section{box-shadow:0 1px 0 rgba(255,255,255,.8)}.layers .layer button{font-size:11px}.layers .layer .drag{cursor:grab}.barcodeText{font-size:3.2pt;letter-spacing:.25pt}.sheet .barcodeText{font-size:2.3pt}.barcodeSvg{height:100%;min-width:0}.barcodeSvg svg{shape-rendering:crispEdges!important}.preview-scroll{background:#e8eef6}.right-panel{grid-template-rows:310px minmax(0,1fr) 150px}
@media(max-height:820px){:root{--designerW:560px;--designerH:323px}.topbar{height:38px}.split{height:calc(100vh - 58px)}.right-panel{grid-template-rows:285px minmax(0,1fr) 130px}.document-stage{padding:26px}}
@media(max-width:1450px){:root{--leftW:235px;--rightW:310px;--designerW:540px;--designerH:312px}.zoomBtns button{min-width:34px}.top-file span,.file-menu button{font-size:10px}.topbar strong{font-size:13px}}


/* V13 - Produção: busca produto, lote CSV e modelos reutilizáveis */
.brand p::after{content:' · V13';color:#b99448;font-weight:900}
.bling-box{border:1px solid rgba(185,148,72,.25);background:#fffaf0;border-radius:10px;padding:6px;margin:8px 0}
.search-row{display:grid;grid-template-columns:1fr 64px;gap:6px;margin:6px 0}
.search-row button,.wide-btn,#sampleCsvBtn,#clearCsvBtn{height:26px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:900;font-size:9.5px;cursor:pointer}
.search-row button:hover,.wide-btn:hover,#sampleCsvBtn:hover,#clearCsvBtn:hover{border-color:var(--gold);background:#fff8e8}
#productResults{height:72px;font-size:9.4px;margin-bottom:6px}
.wide-btn{width:100%}
.batch-status{margin-top:6px;border:1px solid rgba(185,148,72,.24);background:#fff8e8;border-radius:9px;padding:6px;font-size:9.5px;color:#765918;font-weight:800;line-height:1.25}
.model-library button:nth-last-child(-n+2){background:#f8fbff;border-color:#dbe7f5}


/* V14 - Auditoria UX final: editor maior, painel compacto, fundo neutro, régua CAD e seleção premium */
:root{
  --leftW:232px;
  --rightW:300px;
  --stage:#f4f5f7;
  --gold:#b9902e;
  --gold2:#d8be76;
}
.brand p::after{content:' · V14';color:#b99448;font-weight:900}
body{background:#f4f5f7!important}
.app{gap:8px;padding:8px}
.side{width:var(--leftW);border-radius:13px;padding:8px 10px}
.brand{gap:8px;padding-bottom:8px}
.brand h1{font-size:13px;line-height:1.05}.brand p{font-size:9.6px}.primary{width:86px;height:36px;border-radius:14px;font-size:10px}
.tabs{gap:6px;margin:8px 0}.tab{height:30px;font-size:10.5px;border-radius:10px}
.grid.two{gap:6px}.grid.two label{font-size:9.5px}input,select,textarea{height:27px!important;font-size:10px!important;border-radius:8px!important;padding:4px 7px!important}.hint{font-size:9px}.bling-box{padding:5px}.search-row{grid-template-columns:1fr 52px}.search-row button,.wide-btn,#sampleCsvBtn,#clearCsvBtn{height:24px;font-size:9px}.component-card{height:28px!important;font-size:9.6px!important}.model-library button,.tools-row button{height:27px;font-size:9.6px}
.workspace{gap:7px}.topbar{height:34px;border-radius:10px;padding:0 5px}.topbar strong{font-size:13px}.file-menu button,.top-file,.top-actions>button,.zoomBtns button{height:26px;border-radius:8px;font-size:9.8px;padding:4px 7px}.zoomBtns button{min-width:35px}.zoomBtns button[data-zoom="fit"]{min-width:44px}
.split{grid-template-columns:minmax(720px,1fr) var(--rightW);gap:8px;height:calc(100vh - 50px)}.designer-card{padding:7px;border-radius:14px}.card-head{height:22px;margin-bottom:5px}.card-head strong{font-size:13px}.card-head span{font-size:10px}
.editor-toolbar{height:36px;padding:3px 5px;border-radius:10px}.editor-toolbar .tool{height:28px;min-width:28px;border-radius:8px;padding:4px 7px;font-size:10px}.editor-toolbar .tool span{font-size:9px}.toolbar-sep{height:20px}
.document-stage{background:#f4f5f7!important;border:1px solid #e2e8f0;border-radius:14px;padding:22px 26px 18px;box-shadow:inset 0 1px #fff}.designer-wrap{width:100%;height:100%;background:#f4f5f7!important;border:0;box-shadow:none;padding:0}.label-shell{box-shadow:0 16px 30px rgba(31,43,63,.16);background:#fff}.label-canvas{border:1.5px solid var(--gold);background:#fff}
.ruler-x,.ruler-y{background:#eef1f5;color:#334155;border-color:#cbd5e1;border-radius:0;box-shadow:none;font-size:8.5px}.designer-wrap>.ruler-x{height:20px;top:14px}.designer-wrap>.ruler-y{width:20px}.tick.x.minor:before{height:4px}.tick.x.mid:before{height:8px}.tick.x.major:before{height:11px}.tick.y.minor:before{width:4px}.tick.y.mid:before{width:8px}.tick.y.major:before{width:11px}.tick.x:before,.tick.y:before{background:#64748b}.tick.x{top:0}.tick.y{left:0}.label-size-badge{background:#17243a;color:#fff;right:-2px;top:-31px;border-radius:11px;font-size:10px;padding:5px 9px}
.svg-select{stroke:var(--gold)!important;stroke-width:.055!important;rx:.16;filter:drop-shadow(0 0 .08mm rgba(185,144,46,.45))}.svg-handle{fill:var(--gold)!important;stroke:#fff;stroke-width:.035;width:.34px;height:.34px}.smart-guide{stroke:#d4a83f!important;stroke-width:.055!important;stroke-dasharray:none!important}.svg-image-box{fill:#f8fafc;stroke:#94a3b8;stroke-width:.05;stroke-dasharray:.25 .18}.svg-rect{fill:none;stroke:#111827;stroke-width:.06}.svg-line{stroke:#111827;stroke-width:.08}
.label-grid-minor{stroke:rgba(185,148,72,.06)}.label-grid-major{stroke:rgba(185,148,72,.18)}.label-safe{stroke:rgba(185,148,72,.52);stroke-width:.045;stroke-dasharray:.25 .18}.barcodeText{font-size:2.9pt;letter-spacing:.18pt}.sheet .barcodeText{font-size:2.1pt}
.right-panel{grid-template-rows:260px minmax(0,1fr) 128px;gap:8px}.preview-card,.inspector-card{border-radius:13px;padding:8px}.preview-scroll{height:calc(100% - 22px);background:#edf2f7;padding:8px}.props{font-size:10px}.prop-section{margin-bottom:6px;border-radius:10px}.prop-section h4{padding:6px 8px;font-size:9.4px}.prop-section .prop-grid{padding:7px;gap:6px}.layers{max-height:82px}.layer{font-size:10px;padding:5px;border-radius:8px;grid-template-columns:20px 20px 1fr 20px}
@media(max-width:1450px){:root{--leftW:220px;--rightW:286px}.split{grid-template-columns:minmax(620px,1fr) var(--rightW)}.editor-toolbar .tool span{display:none}.topbar strong{font-size:12px}.file-menu button,.top-file,.top-actions>button,.zoomBtns button{font-size:9px;min-width:auto}}
@media(max-height:820px){.split{height:calc(100vh - 44px)}.topbar{height:30px}.right-panel{grid-template-rows:230px minmax(0,1fr) 112px}.document-stage{padding:18px 22px}.editor-toolbar{height:32px}.editor-toolbar .tool{height:25px}input,select{height:25px!important}.tab{height:28px}.brand h1{font-size:12px}}


/* Patch V15 - pesos visuais e edição direta no canvas */
.brand p::after{content:' · V15'!important;color:#b99448;font-weight:900}
label,
.prop-grid label,
summary,
.card-head strong,
.inspector-card h3,
.preview-card h3{
  font-weight:850;
}
input,
select,
textarea,
option,
#productResults,
.prop-grid input,
.prop-grid select,
.search-row input,
.layer span,
.batch-status{
  font-weight:400!important;
}
input::placeholder,
textarea::placeholder{font-weight:400!important;color:#7c8799}
.inline-editor{
  position:absolute;
  z-index:50;
  margin:0;
  padding:0 4px!important;
  border:1.5px solid #2563eb!important;
  border-radius:4px!important;
  background:rgba(255,255,255,.97)!important;
  color:#111827!important;
  font-family:Arial,sans-serif!important;
  font-weight:400!important;
  line-height:1!important;
  box-shadow:0 4px 12px rgba(37,99,235,.18);
  outline:none!important;
}
.inline-editor:focus{box-shadow:0 0 0 3px rgba(37,99,235,.14),0 4px 12px rgba(37,99,235,.18)!important}

/* Patch V16 - barra completa de edição visual de texto */
.brand p::after{content:' · V16'!important;color:#b99448;font-weight:900}
.inline-text-toolbar{
  position:absolute;
  z-index:60;
  display:flex;
  align-items:center;
  gap:5px;
  padding:5px 6px;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(185,144,46,.45);
  border-radius:9px;
  box-shadow:0 10px 24px rgba(31,43,63,.16),0 0 0 3px rgba(185,144,46,.08);
  font-family:Arial,sans-serif;
}
.inline-text-toolbar select,
.inline-text-toolbar input{
  height:26px!important;
  min-height:26px!important;
  font-size:10px!important;
  font-weight:400!important;
  border:1px solid #d7e1ee!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#162237!important;
  padding:3px 6px!important;
}
.inline-text-toolbar select{width:118px!important}
.inline-text-toolbar input{width:54px!important;text-align:center!important}
.inline-text-toolbar button{
  height:26px;
  min-width:28px;
  border:1px solid #d7e1ee;
  border-radius:7px;
  background:#fff;
  color:#162237;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}
.inline-text-toolbar button:hover,
.inline-text-toolbar button.active{
  border-color:var(--gold);
  background:#fff7e5;
  color:#765918;
}
.inline-text-toolbar .apply{
  min-width:34px;
  background:var(--gold);
  border-color:var(--gold);
  color:#fff;
}
.inline-text-toolbar .mini-sep{
  width:1px;
  height:20px;
  background:#e2e8f0;
  margin:0 2px;
}
.inline-editor{
  font-family:inherit!important;
}

/* Patch V17 - edição visual de texto maior e funcional */
.brand p::after{content:' · V17'!important;color:#b99448;font-weight:900}
.inline-editor{
  min-height:30px!important;
  padding:4px 10px!important;
  border:1.5px solid #2563eb!important;
  border-radius:8px!important;
  background:rgba(255,255,255,.98)!important;
  color:#111827!important;
  line-height:1.08!important;
  box-shadow:0 0 0 3px rgba(37,99,235,.10),0 8px 18px rgba(31,43,63,.16)!important;
}
.inline-text-toolbar{
  flex-direction:column!important;
  align-items:stretch!important;
  gap:8px!important;
  padding:10px!important;
  background:rgba(255,255,255,.985)!important;
  border:1px solid rgba(185,144,46,.62)!important;
  border-radius:13px!important;
  box-shadow:0 14px 34px rgba(31,43,63,.18),0 0 0 4px rgba(185,144,46,.08)!important;
}
.inline-toolbar-row{display:flex;align-items:center;gap:8px;width:100%}
.inline-toolbar-main{flex-wrap:nowrap}
.inline-text-toolbar select,
.inline-text-toolbar input{
  height:34px!important;
  min-height:34px!important;
  font-size:13px!important;
  font-weight:400!important;
  border:1px solid #cfd9e6!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#162237!important;
  padding:6px 9px!important;
}
.inline-text-toolbar select{width:158px!important;min-width:158px!important}
.inline-text-toolbar .inline-size-label{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  height:34px!important;
  margin:0!important;
  font-size:11px!important;
  font-weight:800!important;
  color:#334155!important;
  white-space:nowrap!important;
}
.inline-text-toolbar .inline-size-label input{width:68px!important;text-align:center!important}
.inline-text-toolbar button{
  height:34px!important;
  min-width:36px!important;
  border:1px solid #cfd9e6!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#162237!important;
  font-size:13px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.inline-text-toolbar button:hover,
.inline-text-toolbar button.active{
  border-color:var(--gold)!important;
  background:#fff7e5!important;
  color:#765918!important;
}
.inline-text-toolbar .apply{
  margin-left:auto!important;
  min-width:54px!important;
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
.inline-text-toolbar .mini-sep{height:26px!important;background:#e2e8f0!important}
.inline-toolbar-text{
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  font-size:16px!important;
  font-weight:400!important;
  text-align:left!important;
}


/* Patch V18 - edição WYSIWYG direta na etiqueta, sem modal */
.brand p::after{content:' · V18'!important;color:#b99448;font-weight:900}
.editor-toolbar{position:relative;gap:6px!important;flex-wrap:nowrap!important;overflow:visible!important}
.inline-text-toolbar.inline-dock{
  position:static!important;
  z-index:20!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:5px!important;
  width:auto!important;
  max-width:none!important;
  margin-left:auto!important;
  padding:2px 5px!important;
  background:#fffaf0!important;
  border:1px solid rgba(185,144,46,.35)!important;
  border-radius:9px!important;
  box-shadow:none!important;
  font-family:Arial,sans-serif!important;
}
.inline-dock-title{font-size:9px;font-weight:900;color:#765918;text-transform:uppercase;letter-spacing:.03em;margin:0 2px 0 0}
.inline-text-toolbar.inline-dock select,
.inline-text-toolbar.inline-dock input{
  height:24px!important;
  min-height:24px!important;
  font-size:10px!important;
  font-weight:400!important;
  border:1px solid #d7e1ee!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#162237!important;
  padding:2px 6px!important;
}
.inline-text-toolbar.inline-dock select{width:108px!important;min-width:108px!important}
.inline-text-toolbar.inline-dock input{width:46px!important;min-width:46px!important;text-align:center!important}
.inline-text-toolbar.inline-dock button{
  height:24px!important;
  min-width:26px!important;
  border:1px solid #d7e1ee!important;
  border-radius:7px!important;
  background:#fff!important;
  color:#162237!important;
  font-size:11px!important;
  font-weight:900!important;
  padding:2px 5px!important;
  cursor:pointer!important;
}
.inline-text-toolbar.inline-dock button:hover,
.inline-text-toolbar.inline-dock button.active{
  border-color:var(--gold)!important;
  background:#fff7e5!important;
  color:#765918!important;
}
.inline-text-toolbar.inline-dock .apply{
  min-width:28px!important;
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
.inline-editor.wysiwyg-inline{
  position:absolute!important;
  z-index:58!important;
  display:flex!important;
  align-items:center!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 2px!important;
  min-height:0!important;
  border:1px solid #2563eb!important;
  border-radius:3px!important;
  background:rgba(255,255,255,.10)!important;
  color:#111827!important;
  line-height:1!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.10)!important;
  outline:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  font-family:Arial,sans-serif!important;
}
.inline-editor.wysiwyg-inline:focus{
  background:rgba(255,255,255,.20)!important;
  box-shadow:0 0 0 2px rgba(37,99,235,.16)!important;
}
.inline-editor.wysiwyg-inline::selection{background:#2563eb;color:#fff}
.inline-toolbar-row,.inline-toolbar-main,.inline-toolbar-text,.inline-size-label,.mini-sep{all:unset}
@media(max-width:1500px){.inline-dock-title{display:none}.inline-text-toolbar.inline-dock select{width:92px!important;min-width:92px!important}.inline-text-toolbar.inline-dock button{min-width:24px!important}.inline-text-toolbar.inline-dock{gap:3px!important}}

/* V19 - edição visual WYSIWYG real: toolbar presa ao elemento e texto no tamanho de impressão */
.inline-text-toolbar.floating-text-toolbar{
  position:absolute!important;
  z-index:80!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  width:auto!important;
  max-width:none!important;
  height:36px!important;
  min-height:36px!important;
  padding:5px 7px!important;
  border:1px solid rgba(185,148,72,.65)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 30px rgba(31,43,63,.18),0 0 0 1px rgba(255,255,255,.7) inset!important;
  backdrop-filter:blur(8px)!important;
  transform:none!important;
  margin:0!important;
}
.inline-text-toolbar.floating-text-toolbar::after{
  content:'';
  position:absolute;
  left:var(--arrow-left,50%);
  bottom:-7px;
  width:12px;
  height:12px;
  transform:translateX(-50%) rotate(45deg);
  background:rgba(255,255,255,.96);
  border-right:1px solid rgba(185,148,72,.65);
  border-bottom:1px solid rgba(185,148,72,.65);
}
.inline-text-toolbar.floating-text-toolbar select,
.inline-text-toolbar.floating-text-toolbar input{
  height:26px!important;
  min-height:26px!important;
  border:1px solid #d7e1ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#162237!important;
  font-size:11px!important;
  font-weight:400!important;
  padding:3px 8px!important;
  box-sizing:border-box!important;
  outline:none!important;
}
.inline-text-toolbar.floating-text-toolbar select{width:132px!important;min-width:132px!important}
.inline-text-toolbar.floating-text-toolbar .font-stepper{display:flex!important;align-items:center!important;gap:3px!important}
.inline-text-toolbar.floating-text-toolbar .font-stepper input{width:46px!important;min-width:46px!important;text-align:center!important;padding:3px!important}
.inline-text-toolbar.floating-text-toolbar button{
  height:26px!important;
  min-width:28px!important;
  border:1px solid #d7e1ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#162237!important;
  font-size:12px!important;
  font-weight:900!important;
  padding:2px 7px!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
}
.inline-text-toolbar.floating-text-toolbar button:hover,
.inline-text-toolbar.floating-text-toolbar button.active{
  border-color:var(--gold)!important;
  background:#fff7e5!important;
  color:#765918!important;
}
.inline-text-toolbar.floating-text-toolbar .apply{
  min-width:30px!important;
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
.inline-text-toolbar.floating-text-toolbar .cancel{
  min-width:26px!important;
  color:#64748b!important;
  background:#fff!important;
}
.inline-editor.wysiwyg-inline{
  position:absolute!important;
  z-index:70!important;
  display:flex!important;
  align-items:center!important;
  box-sizing:border-box!important;
  margin:0!important;
  padding:0 1px!important;
  min-height:0!important;
  border:1px solid #2f7df6!important;
  border-radius:3px!important;
  background:rgba(255,255,255,.04)!important;
  color:#111827!important;
  line-height:1!important;
  box-shadow:0 0 0 2px rgba(47,125,246,.10)!important;
  outline:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  transform:none!important;
}
.inline-editor.wysiwyg-inline:focus{background:rgba(255,255,255,.08)!important;box-shadow:0 0 0 2px rgba(47,125,246,.16)!important}
.inline-editor.wysiwyg-inline::selection{background:#2563eb;color:#fff}
@media(max-width:1500px){.inline-text-toolbar.floating-text-toolbar{gap:3px!important;padding:4px 5px!important}.inline-text-toolbar.floating-text-toolbar select{width:105px!important;min-width:105px!important}.inline-text-toolbar.floating-text-toolbar button{min-width:24px!important;padding:2px 5px!important}}

/* Patch V19 */
.brand p::after{content:' · V19'!important;color:#b99448;font-weight:900}

/* Patch V20 - barra de edição visual horizontal e limpa */
.brand p::after{content:' · V20'!important;color:#b99448;font-weight:900}
.inline-text-toolbar.floating-text-toolbar{
  position:absolute!important;
  z-index:120!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:none!important;
  height:48px!important;
  min-height:48px!important;
  padding:7px 10px!important;
  border:1px solid rgba(185,148,72,.72)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.985)!important;
  box-shadow:0 12px 30px rgba(31,43,63,.18),0 0 0 1px rgba(255,255,255,.8) inset!important;
  backdrop-filter:blur(8px)!important;
  white-space:nowrap!important;
  transform:none!important;
  margin:0!important;
}
.inline-text-toolbar.floating-text-toolbar select,
.inline-text-toolbar.floating-text-toolbar input{
  display:inline-flex!important;
  flex:0 0 auto!important;
  height:34px!important;
  min-height:34px!important;
  border:1px solid #d7e1ee!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#162237!important;
  font-size:13px!important;
  font-weight:400!important;
  padding:5px 10px!important;
  box-sizing:border-box!important;
  outline:none!important;
}
.inline-text-toolbar.floating-text-toolbar select{width:150px!important;min-width:150px!important}
.inline-text-toolbar.floating-text-toolbar .font-stepper{
  display:inline-flex!important;
  flex:0 0 auto!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  height:34px!important;
}
.inline-text-toolbar.floating-text-toolbar .font-stepper input{
  width:58px!important;
  min-width:58px!important;
  height:34px!important;
  text-align:center!important;
  padding:4px!important;
}
.inline-text-toolbar.floating-text-toolbar button{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  height:34px!important;
  min-width:34px!important;
  border:1px solid #d7e1ee!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#162237!important;
  font-size:14px!important;
  font-weight:900!important;
  padding:4px 9px!important;
  cursor:pointer!important;
  box-sizing:border-box!important;
  line-height:1!important;
}
.inline-text-toolbar.floating-text-toolbar button:hover,
.inline-text-toolbar.floating-text-toolbar button.active{
  border-color:var(--gold)!important;
  background:#fff7e5!important;
  color:#765918!important;
}
.inline-text-toolbar.floating-text-toolbar .apply{
  min-width:38px!important;
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
.inline-text-toolbar.floating-text-toolbar .cancel{
  min-width:34px!important;
  color:#64748b!important;
  background:#fff!important;
}
.inline-text-toolbar.floating-text-toolbar::after{
  content:''!important;
  position:absolute!important;
  left:var(--arrow-left,50%)!important;
  bottom:-7px!important;
  width:12px!important;
  height:12px!important;
  transform:translateX(-50%) rotate(45deg)!important;
  background:rgba(255,255,255,.985)!important;
  border-right:1px solid rgba(185,148,72,.72)!important;
  border-bottom:1px solid rgba(185,148,72,.72)!important;
}
.inline-editor.wysiwyg-inline{
  z-index:95!important;
}
@media(max-width:1500px){
  .inline-text-toolbar.floating-text-toolbar{gap:5px!important;padding:6px 8px!important;height:44px!important;min-height:44px!important}
  .inline-text-toolbar.floating-text-toolbar select{width:122px!important;min-width:122px!important}
  .inline-text-toolbar.floating-text-toolbar .font-stepper input{width:48px!important;min-width:48px!important}
  .inline-text-toolbar.floating-text-toolbar button{min-width:30px!important;padding:3px 7px!important}
}

/* Patch V21 - barra sempre acima do texto, fontes ampliadas e tamanho funcional */
.brand p::after{content:' · V21'!important;color:#b99448;font-weight:900}
.inline-text-toolbar.floating-text-toolbar{
  position:absolute!important;
  z-index:140!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  min-width:max-content!important;
  max-width:none!important;
  height:46px!important;
  min-height:46px!important;
  padding:6px 9px!important;
  border:1px solid rgba(185,148,72,.72)!important;
  border-radius:12px!important;
  background:rgba(255,255,255,.99)!important;
  box-shadow:0 12px 30px rgba(31,43,63,.18),0 0 0 1px rgba(255,255,255,.8) inset!important;
  white-space:nowrap!important;
  transform:none!important;
  margin:0!important;
}
.inline-text-toolbar.floating-text-toolbar select{
  width:165px!important;
  min-width:165px!important;
  max-width:165px!important;
  height:32px!important;
  min-height:32px!important;
  font-size:13px!important;
  font-weight:400!important;
  padding:4px 9px!important;
}
.inline-text-toolbar.floating-text-toolbar .font-stepper{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  height:32px!important;
}
.inline-text-toolbar.floating-text-toolbar .font-stepper input{
  width:54px!important;
  min-width:54px!important;
  height:32px!important;
  min-height:32px!important;
  text-align:center!important;
  font-size:13px!important;
  font-weight:400!important;
}
.inline-text-toolbar.floating-text-toolbar button{
  height:32px!important;
  min-width:32px!important;
  font-size:13px!important;
  border-radius:9px!important;
  padding:3px 8px!important;
}
.inline-text-toolbar.floating-text-toolbar .apply{min-width:36px!important;background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
.inline-text-toolbar.floating-text-toolbar::after{
  content:''!important;
  position:absolute!important;
  left:var(--arrow-left,50%)!important;
  bottom:-7px!important;
  width:12px!important;
  height:12px!important;
  transform:translateX(-50%) rotate(45deg)!important;
  background:rgba(255,255,255,.99)!important;
  border-right:1px solid rgba(185,148,72,.72)!important;
  border-bottom:1px solid rgba(185,148,72,.72)!important;
}
.inline-editor.wysiwyg-inline{
  font-weight:400;
  line-height:1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center;
  min-height:0!important;
  overflow:hidden!important;
}
@media(max-width:1500px){
  .inline-text-toolbar.floating-text-toolbar{gap:5px!important;padding:5px 7px!important;height:42px!important;min-height:42px!important}
  .inline-text-toolbar.floating-text-toolbar select{width:138px!important;min-width:138px!important}
  .inline-text-toolbar.floating-text-toolbar button{min-width:29px!important;padding:3px 6px!important}
}


/* V22 - correção real da edição visual de texto */
.inline-text-toolbar.floating-text-toolbar select,
.inline-text-toolbar.floating-text-toolbar input,
.inline-text-toolbar.floating-text-toolbar button{
  pointer-events:auto!important;
  user-select:auto!important;
}
.inline-text-toolbar.floating-text-toolbar{
  pointer-events:auto!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  max-width:none!important;
  z-index:999!important;
}
.inline-text-toolbar.floating-text-toolbar select{
  font-weight:400!important;
}
.inline-text-toolbar.floating-text-toolbar .font-stepper input{
  font-weight:400!important;
}
.inline-editor.wysiwyg-inline{
  transform:none!important;
  letter-spacing:normal!important;
  word-spacing:normal!important;
  white-space:nowrap!important;
}


/* V24 - tamanho da fonte em tempo real, topo fixo e crescimento para baixo */
.brand p::after{content:' · V24'!important;color:#b99448;font-weight:900}
.inline-editor.wysiwyg-inline{
  align-items:flex-start!important;
  justify-content:center!important;
  padding-top:0!important;
  padding-bottom:0!important;
  overflow:visible!important;
  box-sizing:border-box!important;
  line-height:1.08!important;
  transform-origin:top center!important;
}
.inline-text-toolbar.floating-text-toolbar{
  user-select:none!important;
}
.inline-text-toolbar.floating-text-toolbar input[type=number]{
  -moz-appearance:textfield;
}
.inline-text-toolbar.floating-text-toolbar .font-stepper button{
  font-size:16px!important;
  line-height:1!important;
}


/* V25 - correção definitiva do tamanho/fonte na edição visual */
.brand p::after{content:' · V25'!important;color:#b99448;font-weight:900}
.inline-text-toolbar.floating-text-toolbar,
.inline-text-toolbar.floating-text-toolbar *{
  pointer-events:auto!important;
}
.inline-text-toolbar.floating-text-toolbar input[data-text-tool="fontSize"]{
  width:64px!important;
  min-width:64px!important;
}
.inline-editor.wysiwyg-inline{
  transform-origin:top center!important;
  align-items:flex-start!important;
  justify-content:center!important;
  overflow:visible!important;
}

/* V26 - auditoria real da edição visual: eventos dos controles liberados e fonte/tamanho persistentes */
.brand p::after{content:' · V26'!important;color:#b99448;font-weight:900}
.inline-text-toolbar.floating-text-toolbar,
.inline-text-toolbar.floating-text-toolbar *{pointer-events:auto!important}
.inline-text-toolbar.floating-text-toolbar button,
.inline-text-toolbar.floating-text-toolbar select,
.inline-text-toolbar.floating-text-toolbar input{touch-action:manipulation!important}
.inline-editor.wysiwyg-inline{transform-origin:top center!important;align-items:flex-start!important;overflow:visible!important}

/* V27 - barra de edição de texto fixa no topo do editor */
.brand p::after{content:' · V27'!important;color:#b99448;font-weight:900}
.inline-text-toolbar.fixed-text-toolbar{
  position:relative!important;
  left:auto!important;
  top:auto!important;
  width:100%!important;
  min-height:34px!important;
  margin:0 0 7px 0!important;
  padding:5px 7px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  border:1px solid rgba(185,148,72,.28)!important;
  border-radius:10px!important;
  background:#fffaf0!important;
  box-shadow:inset 0 1px #fff,0 2px 8px rgba(31,43,63,.05)!important;
  z-index:20!important;
  transform:none!important;
}
.fixed-text-toolbar::before,.fixed-text-toolbar::after{display:none!important}
.fixed-text-toolbar .text-toolbar-title{
  font-size:10px!important;
  font-weight:900!important;
  color:#7d5e18!important;
  text-transform:uppercase!important;
  letter-spacing:.03em!important;
  white-space:nowrap!important;
  margin-right:3px!important;
}
.fixed-text-toolbar select{
  width:132px!important;
  height:26px!important;
  font-size:10px!important;
  font-weight:400!important;
}
.fixed-text-toolbar .font-stepper{display:inline-flex!important;align-items:center!important;gap:3px!important}
.fixed-text-toolbar input[data-text-tool="fontSize"]{
  width:54px!important;
  height:26px!important;
  font-size:10px!important;
  font-weight:400!important;
}
.fixed-text-toolbar button{
  height:26px!important;
  min-width:28px!important;
  padding:3px 7px!important;
  font-size:10px!important;
  line-height:1!important;
  border-radius:7px!important;
}
.fixed-text-toolbar button.apply{
  min-width:40px!important;
  background:#162237!important;
  color:#fff!important;
  border-color:#162237!important;
}
.fixed-text-toolbar button.cancel{
  min-width:28px!important;
}
.inline-editor.wysiwyg-inline{
  z-index:25!important;
}

/* V28 - barra de texto realmente fixa, horizontal e permanente no topo do editor */
.brand p::after{content:' · V28'!important;color:#b99448;font-weight:900}
#inlineTextToolbar.fixed-text-toolbar{
  position:sticky!important;
  top:0!important;
  left:auto!important;
  right:auto!important;
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:6px 0 8px 0!important;
  padding:4px 8px!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:6px!important;
  border:1px solid rgba(185,148,72,.22)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-shadow:0 1px 6px rgba(17,24,39,.05)!important;
  transform:none!important;
  z-index:90!important;
  pointer-events:auto!important;
}
#inlineTextToolbar.fixed-text-toolbar::before,
#inlineTextToolbar.fixed-text-toolbar::after{display:none!important;content:none!important}
#inlineTextToolbar.fixed-text-toolbar .text-toolbar-title{
  display:inline-flex!important;
  align-items:center!important;
  height:28px!important;
  margin:0 4px 0 0!important;
  padding:0 8px!important;
  border-radius:7px!important;
  background:#fff8e8!important;
  color:#7b5b16!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-transform:uppercase!important;
}
#inlineTextToolbar.fixed-text-toolbar select,
#inlineTextToolbar.fixed-text-toolbar input,
#inlineTextToolbar.fixed-text-toolbar button{
  position:static!important;
  float:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  border-radius:7px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:400!important;
  pointer-events:auto!important;
}
#inlineTextToolbar.fixed-text-toolbar select{
  width:140px!important;
  min-width:140px!important;
  padding:0 8px!important;
}
#inlineTextToolbar.fixed-text-toolbar .font-stepper{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  height:28px!important;
  margin:0!important;
  padding:0!important;
}
#inlineTextToolbar.fixed-text-toolbar input[data-text-tool="fontSize"]{
  width:54px!important;
  min-width:54px!important;
  padding:0 4px!important;
  text-align:center!important;
}
#inlineTextToolbar.fixed-text-toolbar button{
  min-width:28px!important;
  padding:0 8px!important;
  background:#fff!important;
  border:1px solid #dbe3ef!important;
  color:#132033!important;
}
#inlineTextToolbar.fixed-text-toolbar button.active{
  background:#b98b22!important;
  border-color:#b98b22!important;
  color:#fff!important;
}
#inlineTextToolbar.fixed-text-toolbar button:disabled,
#inlineTextToolbar.fixed-text-toolbar select:disabled,
#inlineTextToolbar.fixed-text-toolbar input:disabled{
  opacity:.45!important;
  cursor:not-allowed!important;
}
#inlineTextToolbar.fixed-text-toolbar .toolbar-hint{
  margin-left:auto!important;
  color:#7b8799!important;
  font-size:11px!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.fixed-text-toolbar.disabled .toolbar-hint{display:inline-flex!important}
#inlineTextToolbar.fixed-text-toolbar:not(.disabled) .toolbar-hint{display:inline-flex!important;color:#b98b22!important;font-weight:700!important}
@media(max-width:1500px){
  #inlineTextToolbar.fixed-text-toolbar{gap:4px!important;padding:4px 6px!important}
  #inlineTextToolbar.fixed-text-toolbar .text-toolbar-title{padding:0 6px!important}
  #inlineTextToolbar.fixed-text-toolbar select{width:110px!important;min-width:110px!important}
  #inlineTextToolbar.fixed-text-toolbar button{min-width:25px!important;padding:0 6px!important}
  #inlineTextToolbar.fixed-text-toolbar .toolbar-hint{display:none!important}
}

/* V30 - acabamento profissional e barra contextual inteligente */
.brand p::after{content:' • V30';color:#b78628;font-weight:800}
.inline-text-toolbar.fixed-text-toolbar{
  min-height:42px!important;
  height:42px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding:5px 9px!important;
  overflow:hidden!important;
  background:#fffdf8!important;
  border:1px solid #ead9b6!important;
  box-shadow:0 1px 0 rgba(255,255,255,.95),0 8px 18px rgba(31,43,63,.06)!important;
}
.inline-text-toolbar .toolbar-group{display:flex;align-items:center;gap:6px;min-width:0}
.inline-text-toolbar .barcode-controls{display:none!important}
.inline-text-toolbar.mode-barcode .barcode-controls{display:flex!important}
.inline-text-toolbar.mode-barcode .text-toolbar-title{background:#eef6ff;color:#1d4ed8;border-color:#bfdbfe}
.inline-text-toolbar.mode-none .text-controls,.inline-text-toolbar.mode-none .barcode-controls{opacity:.45}
.inline-text-toolbar.mode-none .toolbar-hint{margin-left:auto;color:#64748b}
.inline-text-toolbar select{height:30px!important;border-radius:8px!important;font-weight:500!important}
.inline-text-toolbar input{height:30px!important;border-radius:8px!important;font-weight:500!important}
.inline-text-toolbar button{height:30px!important;min-width:30px!important;border-radius:8px!important;font-weight:800!important}
.inline-text-toolbar .color-chip{display:inline-flex;align-items:center;height:30px;border:1px solid var(--line);border-radius:8px;padding:2px;background:#fff;overflow:hidden}
.inline-text-toolbar .color-chip input{width:28px!important;height:24px!important;border:0!important;padding:0!important;background:transparent!important}
.inline-text-toolbar .compact-label{display:inline-flex!important;align-items:center!important;gap:5px!important;height:30px!important;font-size:10px!important;font-weight:700!important;color:#475569!important}
.inline-text-toolbar .compact-label input{width:52px!important;text-align:center!important}
.inline-text-toolbar .compact-check{display:inline-flex!important;align-items:center!important;gap:4px!important;font-size:10px!important;font-weight:700!important;color:#475569!important;white-space:nowrap!important}
.inline-text-toolbar .compact-check input{width:14px!important;height:14px!important}
.props-v30 .prop-section h4{background:linear-gradient(90deg,#fff6df,#f8fafc);color:#7a5b16;letter-spacing:.06em}
.props-v30 .prop-grid{grid-template-columns:1fr 1fr!important}
.props-v30 .prop-grid .wide{grid-column:1/-1}
.svg-select{stroke:#2563eb!important;stroke-width:.045!important;filter:none!important;rx:.12!important}
.svg-handle{fill:#2563eb!important;stroke:#fff!important;stroke-width:.035!important;cursor:nwse-resize!important}
.svg-rotate-handle{fill:#fff!important;stroke:#2563eb!important;stroke-width:.045!important;cursor:grab!important}
.label-grid-minor{stroke:rgba(148,163,184,.12)!important;stroke-width:.018!important}
.label-grid-major{stroke:rgba(185,148,72,.22)!important;stroke-width:.032!important}
.smart-guide{stroke:#0ea5e9!important;stroke-width:.06!important;stroke-dasharray:none!important}
.preview-card{min-width:0}
.preview-scroll{padding:6px!important}
@media(max-width:1500px){.inline-text-toolbar .toolbar-hint{display:none}.inline-text-toolbar select{max-width:120px}.inline-text-toolbar .compact-check{display:none!important}}


/* V31 - auditoria estrutural do editor */
.brand p::after{content:' • V31'!important;color:#b78628;font-weight:800}
.inline-text-toolbar.mode-barcode .text-controls{display:none!important}
.inline-text-toolbar.mode-text .barcode-controls{display:none!important}
.inline-text-toolbar.mode-shape .text-controls,
.inline-text-toolbar.mode-shape .barcode-controls,
.inline-text-toolbar.mode-image .text-controls,
.inline-text-toolbar.mode-image .barcode-controls{display:none!important}
.inline-text-toolbar.mode-barcode .barcode-controls{display:flex!important;flex-wrap:nowrap!important}
.inline-text-toolbar.mode-barcode .toolbar-hint::before{content:'Código de barras • ';font-weight:800;color:#7d5e18}
.inline-text-toolbar.mode-text .toolbar-hint::before{content:'Texto • ';font-weight:800;color:#7d5e18}
.inline-text-toolbar .compact-label input{width:46px!important;min-width:46px!important}
.inline-text-toolbar.mode-barcode select[data-text-tool="barcodeType"]{width:132px!important;min-width:132px!important}
.svg-handle-n{cursor:ns-resize!important}.svg-handle-s{cursor:ns-resize!important}
.svg-handle-e{cursor:ew-resize!important}.svg-handle-w{cursor:ew-resize!important}
.svg-handle-ne,.svg-handle-sw{cursor:nesw-resize!important}.svg-handle-nw,.svg-handle-se{cursor:nwse-resize!important}
.svg-rotate-handle{r:.18;filter:drop-shadow(0 0 .06mm rgba(37,99,235,.35))}
.props-v30 .prop-section{border-color:#e6edf6!important;background:#fff!important}
.props-v30 .prop-section h4{background:#fff7e8!important;border-bottom:1px solid #f0dfb8!important}
.props-v30 input,.props-v30 select{font-weight:500!important}
.ruler-x,.ruler-y{background:#fbfdff!important;border:1px solid #d7e0ec!important;color:#334155!important}
.tick.major:before{background:#0f172a!important}.tick.mid:before{background:#475569!important}.tick.minor:before{background:#94a3b8!important;opacity:.65}
.label-grid-minor{stroke:rgba(148,163,184,.10)!important;stroke-width:.016!important}
.label-grid-major{stroke:rgba(185,148,72,.18)!important;stroke-width:.028!important}
.layer button[data-vis],.layer button[data-lock]{border:0;background:transparent;cursor:pointer;opacity:.9}
.layer button[data-vis]:hover,.layer button[data-lock]:hover{opacity:1;transform:scale(1.05)}
@media(max-width:1500px){.inline-text-toolbar.mode-barcode .compact-label{font-size:0!important}.inline-text-toolbar.mode-barcode .compact-label input{font-size:10px!important}.inline-text-toolbar.mode-barcode select[data-text-tool="barcodeType"]{width:106px!important;min-width:106px!important}}


/* V32 - barras de edição revisadas: sem itens ocultos e visual profissional */
.brand p::after{content:' • V32'!important;color:#b78628;font-weight:800}
#inlineTextToolbar.fixed-text-toolbar{
  height:auto!important;
  min-height:48px!important;
  max-height:none!important;
  overflow:visible!important;
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  align-content:center!important;
  gap:7px!important;
  padding:7px 9px!important;
  margin:7px 0 8px!important;
  border:1px solid rgba(185,148,72,.36)!important;
  border-radius:12px!important;
  background:linear-gradient(180deg,#fffdf8,#fffaf1)!important;
  box-shadow:0 2px 9px rgba(31,43,63,.055)!important;
}
#inlineTextToolbar.fixed-text-toolbar .text-toolbar-title{
  height:30px!important;
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 10px!important;
  margin:0!important;
  border:1px solid rgba(185,148,72,.22)!important;
  border-radius:9px!important;
  background:#fff6df!important;
  color:#7a5b16!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.fixed-text-toolbar .toolbar-group{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  flex:0 1 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar .barcode-controls{
  flex:1 1 560px!important;
  max-width:100%!important;
}
#inlineTextToolbar.fixed-text-toolbar .text-controls{
  flex:1 1 520px!important;
  max-width:100%!important;
}
#inlineTextToolbar.fixed-text-toolbar select,
#inlineTextToolbar.fixed-text-toolbar input,
#inlineTextToolbar.fixed-text-toolbar button{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  line-height:1!important;
  border-radius:8px!important;
  font-size:10.5px!important;
  font-weight:500!important;
  box-sizing:border-box!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar select{
  width:136px!important;
  min-width:136px!important;
  padding:0 8px!important;
}
#inlineTextToolbar.fixed-text-toolbar button{
  min-width:30px!important;
  padding:0 8px!important;
  border:1px solid #dbe3ef!important;
  background:#fff!important;
  color:#172033!important;
}
#inlineTextToolbar.fixed-text-toolbar button.active{
  border-color:#b98b22!important;
  background:#b98b22!important;
  color:#fff!important;
}
#inlineTextToolbar.fixed-text-toolbar .font-stepper{
  display:inline-flex!important;
  flex:0 0 auto!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  height:30px!important;
  margin:0!important;
  padding:0!important;
}
#inlineTextToolbar.fixed-text-toolbar input[data-text-tool="fontSize"]{
  width:58px!important;
  min-width:58px!important;
  text-align:center!important;
}
#inlineTextToolbar.fixed-text-toolbar .color-chip{
  height:30px!important;
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  border:1px solid #dbe3ef!important;
  border-radius:8px!important;
  padding:2px!important;
  background:#fff!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar .color-chip input{
  width:26px!important;
  min-width:26px!important;
  height:24px!important;
  border:0!important;
  padding:0!important;
}
#inlineTextToolbar.fixed-text-toolbar .compact-label{
  height:30px!important;
  min-height:30px!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:5px!important;
  margin:0!important;
  padding:0 7px!important;
  border:1px solid #dbe3ef!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar .compact-label input{
  width:46px!important;
  min-width:46px!important;
  height:24px!important;
  min-height:24px!important;
  border:0!important;
  border-left:1px solid #e5edf7!important;
  border-radius:0!important;
  padding:0 0 0 5px!important;
  text-align:center!important;
  background:transparent!important;
  color:#172033!important;
  font-weight:500!important;
}
#inlineTextToolbar.fixed-text-toolbar .compact-check{
  height:30px!important;
  min-height:30px!important;
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  margin:0!important;
  padding:0 8px!important;
  border:1px solid #dbe3ef!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar .compact-check input{
  width:14px!important;
  min-width:14px!important;
  height:14px!important;
  min-height:14px!important;
}
#inlineTextToolbar.fixed-text-toolbar .toolbar-hint{
  height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  margin-left:auto!important;
  padding:0 8px!important;
  color:#b78628!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar.mode-barcode .text-controls,
#inlineTextToolbar.fixed-text-toolbar.mode-text .barcode-controls{
  display:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.mode-barcode .barcode-controls,
#inlineTextToolbar.fixed-text-toolbar.mode-text .text-controls{
  display:flex!important;
}
#inlineTextToolbar.fixed-text-toolbar.disabled .toolbar-hint{
  color:#64748b!important;
  font-weight:600!important;
}
@media(max-width:1500px){
  #inlineTextToolbar.fixed-text-toolbar{gap:5px!important;padding:6px!important}
  #inlineTextToolbar.fixed-text-toolbar .toolbar-hint{display:none!important}
  #inlineTextToolbar.fixed-text-toolbar .barcode-controls,
  #inlineTextToolbar.fixed-text-toolbar .text-controls{flex:1 1 100%!important}
  #inlineTextToolbar.fixed-text-toolbar select{width:116px!important;min-width:116px!important}
  #inlineTextToolbar.fixed-text-toolbar .compact-label{font-size:9.5px!important;padding:0 5px!important}
  #inlineTextToolbar.fixed-text-toolbar .compact-label input{width:40px!important;min-width:40px!important}
}

/* V33 - barra contextual profissional em grupos, sem itens ocultos */
.brand p::after{content:' • V33';color:#b78628;font-weight:800}
#inlineTextToolbar.professional-contextbar{
  height:auto!important;
  min-height:70px!important;
  max-height:none!important;
  overflow:visible!important;
  display:grid!important;
  grid-template-columns:auto 1fr!important;
  align-items:stretch!important;
  gap:10px!important;
  padding:9px 10px!important;
  background:#fffdf8!important;
  border:1px solid #ead7aa!important;
  border-radius:14px!important;
  box-shadow:0 8px 22px rgba(19,32,51,.06)!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-head{
  min-width:145px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:5px!important;
  padding:5px 8px!important;
  border-right:1px solid #eadfca!important;
}
#inlineTextToolbar.professional-contextbar .text-toolbar-title{
  margin:0!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  border:0!important;
  background:transparent!important;
  padding:0!important;
  color:#8a6418!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.1!important;
  letter-spacing:.04em!important;
  text-transform:uppercase!important;
}
#inlineTextToolbar.professional-contextbar.mode-barcode .text-toolbar-title{color:#8a6418!important;background:transparent!important;border:0!important}
#inlineTextToolbar.professional-contextbar .toolbar-hint{
  margin:0!important;
  height:auto!important;
  min-height:0!important;
  display:block!important;
  padding:0!important;
  color:#b78628!important;
  font-size:10px!important;
  line-height:1.15!important;
  font-weight:700!important;
}
#inlineTextToolbar.professional-contextbar.disabled .toolbar-hint{color:#8190a5!important}
#inlineTextToolbar.professional-contextbar .contextbar-controls{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  align-content:center!important;
  gap:8px!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .text-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .text-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-image .text-controls,
#inlineTextToolbar.professional-contextbar.mode-image .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.mode-none .barcode-controls{
  display:none!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .barcode-controls{
  display:flex!important;
}
#inlineTextToolbar.professional-contextbar .tool-field{
  min-height:50px!important;
  height:50px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  gap:5px!important;
  padding:6px 8px!important;
  margin:0!important;
  border:1px solid #e5edf7!important;
  border-radius:12px!important;
  background:#fff!important;
  box-sizing:border-box!important;
  color:#243044!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.professional-contextbar .tool-field>span:first-child{
  display:block!important;
  color:#6d7890!important;
  font-size:9px!important;
  font-weight:900!important;
  text-transform:uppercase!important;
  letter-spacing:.04em!important;
  line-height:1!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.professional-contextbar .field-font{width:172px!important}
#inlineTextToolbar.professional-contextbar .field-size{width:132px!important}
#inlineTextToolbar.professional-contextbar .field-style{width:86px!important}
#inlineTextToolbar.professional-contextbar .field-align{width:126px!important}
#inlineTextToolbar.professional-contextbar .field-color{width:56px!important}
#inlineTextToolbar.professional-contextbar .field-type{width:172px!important}
#inlineTextToolbar.professional-contextbar .field-number{width:118px!important}
#inlineTextToolbar.professional-contextbar .field-rotation{width:86px!important}
#inlineTextToolbar.professional-contextbar .field-check{width:100px!important}
#inlineTextToolbar.professional-contextbar select,
#inlineTextToolbar.professional-contextbar input,
#inlineTextToolbar.professional-contextbar button{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1!important;
  box-sizing:border-box!important;
  margin:0!important;
}
#inlineTextToolbar.professional-contextbar select{
  width:100%!important;
  min-width:0!important;
  padding:0 8px!important;
  background:#fff!important;
}
#inlineTextToolbar.professional-contextbar input[type="number"]{
  width:52px!important;
  min-width:52px!important;
  padding:0 4px!important;
  text-align:center!important;
}
#inlineTextToolbar.professional-contextbar .button-group,
#inlineTextToolbar.professional-contextbar .font-stepper,
#inlineTextToolbar.professional-contextbar .mini-stepper{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
  height:30px!important;
}
#inlineTextToolbar.professional-contextbar .button-group button,
#inlineTextToolbar.professional-contextbar .font-stepper button,
#inlineTextToolbar.professional-contextbar .mini-stepper button{
  min-width:30px!important;
  width:30px!important;
  padding:0!important;
  border:1px solid #dbe3ef!important;
  background:#fff!important;
  color:#132033!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#inlineTextToolbar.professional-contextbar .button-group button.active,
#inlineTextToolbar.professional-contextbar .font-stepper button.active,
#inlineTextToolbar.professional-contextbar .mini-stepper button.active{
  background:#b98b22!important;
  border-color:#b98b22!important;
  color:#fff!important;
}
#inlineTextToolbar.professional-contextbar .color-chip{
  width:34px!important;
  min-width:34px!important;
  height:30px!important;
  min-height:30px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  padding:2px!important;
  background:#fff!important;
}
#inlineTextToolbar.professional-contextbar .color-chip input{
  width:26px!important;
  height:22px!important;
  border:0!important;
  padding:0!important;
}
#inlineTextToolbar.professional-contextbar .compact-check{
  height:30px!important;
  min-height:30px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  padding:0 7px!important;
  border:1px solid #dbe3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#243044!important;
  font-size:11px!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.professional-contextbar .compact-check input{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important}
#inlineTextToolbar.professional-contextbar select:disabled,
#inlineTextToolbar.professional-contextbar input:disabled,
#inlineTextToolbar.professional-contextbar button:disabled,
#inlineTextToolbar.professional-contextbar .compact-check:has(input:disabled){
  opacity:.42!important;
  cursor:not-allowed!important;
}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar{grid-template-columns:1fr!important;gap:7px!important;min-height:0!important}
  #inlineTextToolbar.professional-contextbar .contextbar-head{border-right:0!important;border-bottom:1px solid #eadfca!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;padding:0 4px 6px!important}
  #inlineTextToolbar.professional-contextbar .field-font{width:150px!important}
  #inlineTextToolbar.professional-contextbar .field-type{width:150px!important}
  #inlineTextToolbar.professional-contextbar .field-number{width:104px!important}
}

/* V34 - barra contextual discreta em linha, no mesmo padrão da barra do editor */
.brand p::after{content:' • V34'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.professional-contextbar{
  display:flex!important;
  grid-template-columns:none!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  min-height:42px!important;
  height:auto!important;
  padding:6px 8px!important;
  margin:6px 0 8px!important;
  border:1px solid rgba(185,148,72,.30)!important;
  border-radius:12px!important;
  background:#fffdf8!important;
  box-shadow:0 4px 12px rgba(19,32,51,.045)!important;
  overflow:visible!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-head{
  min-width:auto!important;
  width:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 10px!important;
  border-right:1px solid #eadfca!important;
  border-bottom:0!important;
  height:30px!important;
}
#inlineTextToolbar.professional-contextbar .text-toolbar-title{
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1!important;
  letter-spacing:.02em!important;
  color:#8a6418!important;
}
#inlineTextToolbar.professional-contextbar .toolbar-hint{
  display:none!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-controls{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  align-content:center!important;
  gap:6px!important;
  min-width:0!important;
  overflow:visible!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .text-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .text-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-image .text-controls,
#inlineTextToolbar.professional-contextbar.mode-image .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.mode-none .barcode-controls{display:none!important}
#inlineTextToolbar.professional-contextbar.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .barcode-controls{display:flex!important}
#inlineTextToolbar.professional-contextbar .tool-field{
  height:30px!important;
  min-height:30px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.professional-contextbar .tool-field:not(:last-child)::after{
  content:'';
  display:block;
  width:1px;
  height:22px;
  margin-left:2px;
  background:#e5edf7;
}
#inlineTextToolbar.professional-contextbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  color:#8a6418!important;
  font-size:10px!important;
  font-weight:800!important;
  text-transform:none!important;
  letter-spacing:0!important;
  line-height:1!important;
}
#inlineTextToolbar.professional-contextbar .field-font{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-size{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-style{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-align{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-color{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-type{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-number{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-rotation{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar .field-check{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar select,
#inlineTextToolbar.professional-contextbar input,
#inlineTextToolbar.professional-contextbar button{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:8px!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1!important;
}
#inlineTextToolbar.professional-contextbar select{
  width:auto!important;
  min-width:90px!important;
  max-width:150px!important;
  padding:0 22px 0 8px!important;
}
#inlineTextToolbar.professional-contextbar .field-font select{min-width:132px!important;max-width:160px!important}
#inlineTextToolbar.professional-contextbar .field-type select{min-width:128px!important;max-width:145px!important}
#inlineTextToolbar.professional-contextbar .field-rotation select{min-width:68px!important;max-width:76px!important}
#inlineTextToolbar.professional-contextbar input[type="number"]{
  width:46px!important;
  min-width:46px!important;
  padding:0 4px!important;
  text-align:center!important;
}
#inlineTextToolbar.professional-contextbar .button-group,
#inlineTextToolbar.professional-contextbar .font-stepper,
#inlineTextToolbar.professional-contextbar .mini-stepper{
  height:30px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:3px!important;
}
#inlineTextToolbar.professional-contextbar .button-group button,
#inlineTextToolbar.professional-contextbar .font-stepper button,
#inlineTextToolbar.professional-contextbar .mini-stepper button{
  width:30px!important;
  min-width:30px!important;
  padding:0!important;
}
#inlineTextToolbar.professional-contextbar .compact-check{
  height:30px!important;
  min-height:30px!important;
  padding:0 8px!important;
  font-size:10.5px!important;
  font-weight:700!important;
}
#inlineTextToolbar.professional-contextbar .color-chip{height:30px!important;min-height:30px!important;width:32px!important;min-width:32px!important}
#inlineTextToolbar.professional-contextbar .color-chip input{width:24px!important;height:22px!important}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar{gap:5px!important;padding:5px 6px!important}
  #inlineTextToolbar.professional-contextbar .contextbar-head{padding:0 7px!important}
  #inlineTextToolbar.professional-contextbar .tool-field{gap:4px!important}
  #inlineTextToolbar.professional-contextbar .tool-field>span:first-child{font-size:9px!important}
  #inlineTextToolbar.professional-contextbar select{min-width:76px!important;max-width:120px!important}
  #inlineTextToolbar.professional-contextbar .field-font select{min-width:115px!important;max-width:135px!important}
  #inlineTextToolbar.professional-contextbar .field-type select{min-width:110px!important;max-width:125px!important}
  #inlineTextToolbar.professional-contextbar input[type="number"]{width:40px!important;min-width:40px!important}
  #inlineTextToolbar.professional-contextbar .button-group button,
  #inlineTextToolbar.professional-contextbar .font-stepper button,
  #inlineTextToolbar.professional-contextbar .mini-stepper button{width:28px!important;min-width:28px!important}
}

/* V35 - Configuração de código de barras somente no botão Código (popup discreto) */
.brand p::after{content:' • V35'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.professional-contextbar.mode-barcode,
#inlineTextToolbar.professional-contextbar.mode-shape,
#inlineTextToolbar.professional-contextbar.mode-image,
#inlineTextToolbar.professional-contextbar.mode-none{
  display:none!important;
}
#inlineTextToolbar.professional-contextbar .barcode-controls{
  display:none!important;
}
.editor-toolbar .tool[data-add="barcode"].has-popover,
.editor-toolbar .tool[data-add="barcode"].active-popover{
  position:relative;
}
.editor-toolbar .tool[data-add="barcode"].active-popover{
  background:#fff8e8!important;
  border-color:rgba(185,148,72,.55)!important;
  color:#7d5e18!important;
  box-shadow:0 4px 12px rgba(185,148,72,.14)!important;
}
.barcode-popover-v35{
  position:fixed;
  z-index:99999;
  width:min(430px,calc(100vw - 28px));
  background:#fff;
  border:1px solid rgba(185,148,72,.42);
  border-radius:14px;
  box-shadow:0 18px 42px rgba(19,32,51,.16);
  padding:10px;
  display:none;
  color:#0f1f36;
}
.barcode-popover-v35.open{display:block;}
.barcode-popover-v35::before{
  content:'';
  position:absolute;
  top:-7px;
  left:var(--arrow-left,32px);
  width:12px;height:12px;
  background:#fff;
  border-left:1px solid rgba(185,148,72,.42);
  border-top:1px solid rgba(185,148,72,.42);
  transform:rotate(45deg);
}
.barcode-popover-v35 .pop-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:2px 2px 8px;
  border-bottom:1px solid #edf1f7;
  margin-bottom:8px;
}
.barcode-popover-v35 .pop-title{
  font-size:12px;font-weight:900;color:#8a6418;letter-spacing:.02em;
}
.barcode-popover-v35 .pop-close{
  width:26px;height:26px;border-radius:8px;border:1px solid #dbe4f0;background:#fff;cursor:pointer;
  color:#64748b;font-weight:900;
}
.barcode-popover-v35 .pop-grid{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:8px;
}
.barcode-popover-v35 label{
  display:flex;flex-direction:column;gap:4px;
  font-size:9px;font-weight:900;color:#6b7a90;text-transform:uppercase;letter-spacing:.04em;
  margin:0!important;
}
.barcode-popover-v35 select,
.barcode-popover-v35 input{
  height:31px!important;
  min-height:31px!important;
  border-radius:9px!important;
  border:1px solid #d7e1ee!important;
  background:#fff!important;
  color:#0f1f36!important;
  font-size:11px!important;
  font-weight:500!important;
  padding:0 8px!important;
}
.barcode-popover-v35 .stepper{
  display:grid;grid-template-columns:28px 1fr 28px;gap:4px;
}
.barcode-popover-v35 .stepper button{
  height:31px;border-radius:9px;border:1px solid #d7e1ee;background:#fff;cursor:pointer;font-weight:900;color:#0f1f36;
}
.barcode-popover-v35 .check-row{
  flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;
  min-height:31px;padding:0 8px;border:1px solid #d7e1ee;border-radius:9px;background:#fff;
  text-transform:none!important;font-size:11px!important;color:#0f1f36!important;letter-spacing:0!important;
}
.barcode-popover-v35 .check-row input{width:14px!important;height:14px!important;min-height:14px!important;padding:0!important}
.barcode-popover-v35 .pop-note{
  margin-top:8px;padding:7px 8px;border-radius:9px;background:#fff8e8;color:#8a6418;font-size:10px;font-weight:700;
}
@media(max-width:1300px){
  .barcode-popover-v35{width:min(360px,calc(100vw - 24px))}
  .barcode-popover-v35 .pop-grid{grid-template-columns:1fr 1fr}
}

/* V36 - Smart Guides profissionais */
.brand p::after{content:' • V36'!important;color:#b78628!important;font-weight:800!important}
.smart-guide{stroke:#e11d48!important;stroke-width:.065!important;stroke-dasharray:none!important;pointer-events:none!important;filter:drop-shadow(0 0 .06mm rgba(225,29,72,.35))}
.smart-guide-label{font-size:.55px;font-family:Arial, sans-serif;font-weight:700;fill:#be123c;paint-order:stroke;stroke:#fff;stroke-width:.08;pointer-events:none}
.svg-handle{rx:.06!important;fill:#2563eb!important;stroke:#fff!important;stroke-width:.04!important}
.svg-select{stroke:#2563eb!important;stroke-width:.05!important;fill:rgba(37,99,235,.025)!important}
.svg-rotate-handle{fill:#fff!important;stroke:#2563eb!important;stroke-width:.05!important;cursor:grab!important}
#guidesBtn.active,#snapBtn.active{background:#fff7e6!important;border-color:#b78628!important;color:#7d5e18!important}


/* V37 - Barra de ferramentas permanente: texto e código sempre visíveis */
.brand p::after{content:' • V37'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:8px!important;
  width:100%!important;
  height:auto!important;
  min-height:44px!important;
  max-height:none!important;
  margin:6px 0 8px!important;
  padding:6px 8px!important;
  overflow:visible!important;
  border:1px solid rgba(185,148,72,.28)!important;
  border-radius:12px!important;
  background:#fffdf8!important;
  box-shadow:0 4px 12px rgba(19,32,51,.045)!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-head{
  height:30px!important;
  min-width:auto!important;
  width:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 10px!important;
  border-right:1px solid #eadfca!important;
  border-bottom:0!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-toolbar-title{
  white-space:nowrap!important;
  font-size:11px!important;
  line-height:1!important;
  color:#8a6418!important;
  font-weight:900!important;
  text-transform:uppercase!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .toolbar-hint{
  display:inline-flex!important;
  margin:0!important;
  font-size:10px!important;
  color:#7b8799!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-controls{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  max-width:none!important;
  opacity:1!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls{
  display:flex!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls{flex:0 1 auto!important;}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls{
  flex:1 1 auto!important;
  padding-left:8px!important;
  margin-left:2px!important;
  border-left:1px solid #eadfca!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field{
  height:30px!important;
  min-height:30px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field:not(:last-child)::after{
  content:'';
  display:block;
  width:1px;
  height:22px;
  margin-left:2px;
  background:#e5edf7;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  white-space:nowrap!important;
  color:#8a6418!important;
  font-size:10px!important;
  font-weight:800!important;
  text-transform:none!important;
  letter-spacing:0!important;
  line-height:1!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:8px!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select{
  width:auto!important;
  min-width:86px!important;
  max-width:150px!important;
  padding:0 22px 0 8px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-font select{min-width:122px!important;max-width:145px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-type select{min-width:116px!important;max-width:130px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-rotation select{min-width:64px!important;max-width:70px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input[type="number"]{width:42px!important;min-width:42px!important;text-align:center!important;padding:0 4px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper{display:flex!important;flex-direction:row!important;align-items:center!important;gap:3px!important;height:30px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper button{width:28px!important;min-width:28px!important;padding:0!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check{height:30px!important;min-height:30px!important;padding:0 6px!important;font-size:10.5px!important;font-weight:700!important;white-space:nowrap!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip{height:30px!important;min-height:30px!important;width:32px!important;min-width:32px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip input{width:24px!important;height:22px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field.disabled-field{opacity:.38!important;filter:grayscale(.1)}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button:disabled{cursor:not-allowed!important;opacity:.65!important}
#barcodePopoverV35{display:none!important}
@media(max-width:1500px){
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar{flex-wrap:wrap!important;gap:5px!important;padding:5px 6px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-head{width:100%!important;border-right:0!important;border-bottom:1px solid #eadfca!important;padding:0 2px 5px!important;justify-content:space-between!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls{border-left:0!important;padding-left:0!important;margin-left:0!important;flex-wrap:wrap!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls{flex-wrap:wrap!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar select{min-width:76px!important;max-width:120px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-font select{min-width:110px!important;max-width:130px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-type select{min-width:106px!important;max-width:120px!important}
}

/* V38 - Barra permanente no mesmo padrão visual da barra do Editor da etiqueta */
.brand p::after{content:' • V38'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:4px!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:4px 5px!important;
  margin:5px 0 7px!important;
  border:1px solid #d8e0ec!important;
  border-radius:10px!important;
  background:#ffffff!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-head{
  display:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-controls{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  gap:4px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls{
  display:flex!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls{
  border-left:1px solid #e6edf5!important;
  margin-left:4px!important;
  padding-left:7px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field{
  height:28px!important;
  min-height:28px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field::after{
  display:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  height:28px!important;
  color:#8a6418!important;
  font-size:9.3px!important;
  font-weight:850!important;
  letter-spacing:0!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-transform:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-style>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-align>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-color>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-check>span:first-child{
  display:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check{
  height:27px!important;
  min-height:27px!important;
  max-height:27px!important;
  border-radius:8px!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1!important;
  background:#fff!important;
  border:1px solid #d8e0ec!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select{
  min-width:84px!important;
  max-width:128px!important;
  padding:0 20px 0 7px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-font select{min-width:116px!important;max-width:135px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-type select{min-width:104px!important;max-width:120px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-rotation select{min-width:58px!important;max-width:68px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input[type="number"]{
  width:39px!important;
  min-width:39px!important;
  padding:0 3px!important;
  text-align:center!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper{
  height:27px!important;
  gap:2px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper button{
  width:27px!important;
  min-width:27px!important;
  padding:0!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group button.active,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper button.active,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper button.active{
  background:#b78628!important;
  border-color:#b78628!important;
  color:#fff!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:0 7px!important;
  white-space:nowrap!important;
  color:#102033!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check input{
  width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip{
  width:28px!important;
  min-width:28px!important;
  height:27px!important;
  min-height:27px!important;
  border-radius:8px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip input{width:22px!important;height:20px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field.disabled-field{opacity:.42!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check:has(input:disabled){
  opacity:.42!important;
  cursor:not-allowed!important;
}
@media(max-width:1500px){
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar{gap:3px!important;padding:4px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls{border-left:0!important;margin-left:0!important;padding-left:0!important;border-top:1px solid #edf1f6!important;padding-top:4px!important;width:100%!important}
}

/* V39 - Barra permanente compacta no mesmo padrão visual do Editor da etiqueta */
.brand p::after{content:' • V39'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  gap:5px!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  padding:7px 9px!important;
  margin:8px 0 10px!important;
  background:#fff!important;
  border:1px solid #dbe4ef!important;
  border-radius:14px!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-head{display:none!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-controls{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:6px!important;
  width:100%!important;
  height:32px!important;
  min-height:32px!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-barcode .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-text .barcode-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-none .barcode-controls{
  display:flex!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-barcode .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-text .barcode-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-none .barcode-controls{
  opacity:.38!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-barcode .barcode-controls,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.mode-text .text-controls{
  opacity:1!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls::before,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:28px!important;
  min-width:72px!important;
  padding:0 10px!important;
  border-radius:10px!important;
  background:#fff8e8!important;
  border:1px solid #f0d7a6!important;
  color:#8a6418!important;
  font-size:11px!important;
  font-weight:850!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls::before{content:'Texto'}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls::before{content:'Código'}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  border-radius:0!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .tool-field>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-style>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-align>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-color>span:first-child,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-check>span:first-child{
  display:none!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:10px!important;
  background:#fff!important;
  border:1px solid #d8e0ec!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:600!important;
  line-height:1!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select{
  min-width:116px!important;
  max-width:155px!important;
  padding:0 26px 0 10px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-font select{width:150px!important;min-width:150px!important;max-width:150px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-type select{width:135px!important;min-width:135px!important;max-width:135px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-rotation select{width:72px!important;min-width:72px!important;max-width:72px!important}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input[type="number"]{
  width:46px!important;
  min-width:46px!important;
  padding:0 4px!important;
  text-align:center!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper{
  display:flex!important;
  align-items:center!important;
  gap:3px!important;
  height:30px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper button,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper button{
  width:30px!important;
  min-width:30px!important;
  padding:0!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button.active,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .button-group button.active,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .font-stepper button.active,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .mini-stepper button.active{
  background:#b78628!important;
  border-color:#b78628!important;
  color:#fff!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip{
  width:34px!important;
  min-width:34px!important;
  padding:2px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .color-chip input{
  width:26px!important;
  height:24px!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  padding:0 9px!important;
  white-space:nowrap!important;
  color:#102033!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check input{
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
}
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar select:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar input:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar button:disabled,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar .compact-check:has(input:disabled){
  opacity:.45!important;
  cursor:not-allowed!important;
}
@media(max-width:1500px){
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar{gap:4px!important;padding:6px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .contextbar-controls{gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:1px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .text-controls::before,
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .barcode-controls::before{min-width:58px!important;padding:0 7px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-font select{width:118px!important;min-width:118px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar .field-type select{width:112px!important;min-width:112px!important}
  #inlineTextToolbar.fixed-text-toolbar.professional-contextbar input[type="number"]{width:40px!important;min-width:40px!important}
}


/* V40 - barra permanente estável em grupos, sem troca de layout */
#inlineTextToolbar.professional-contextbar{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  min-height:58px!important;
  height:auto!important;
  padding:8px 12px!important;
  margin:8px 0 10px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-head{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-width:148px!important;
  max-width:180px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
#inlineTextToolbar.professional-contextbar .text-toolbar-title{
  display:inline-flex!important;
  align-items:center!important;
  height:32px!important;
  padding:0 12px!important;
  border:1px solid rgba(184,134,11,.28)!important;
  border-radius:10px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:12px!important;
  font-weight:900!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.professional-contextbar .toolbar-hint{
  display:none!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-controls{
  display:flex!important;
  flex:0 1 auto!important;
  align-items:center!important;
  gap:6px!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar .text-controls,
#inlineTextToolbar.professional-contextbar .barcode-controls{
  display:flex!important;
  flex-wrap:nowrap!important;
}
#inlineTextToolbar.professional-contextbar .text-controls::after{
  content:'';
  display:block;
  width:1px;
  height:28px;
  margin-left:6px;
  background:#e6edf5;
}
#inlineTextToolbar.professional-contextbar .tool-field{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  height:34px!important;
  margin:0!important;
  padding:0!important;
  white-space:nowrap!important;
  color:#7d5e18!important;
  font-size:11px!important;
  font-weight:800!important;
}
#inlineTextToolbar.professional-contextbar .tool-field>span:first-child{
  font-size:10px!important;
  font-weight:850!important;
  color:#8a6a22!important;
  line-height:1!important;
  margin:0!important;
}
#inlineTextToolbar.professional-contextbar select,
#inlineTextToolbar.professional-contextbar input:not([type="checkbox"]):not([type="color"]){
  height:32px!important;
  min-height:32px!important;
  border:1px solid #d9e3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#102033!important;
  font-size:12px!important;
  font-weight:500!important;
  padding:0 10px!important;
  box-shadow:none!important;
}
#inlineTextToolbar.professional-contextbar select[data-text-tool="fontFamily"]{width:132px!important;min-width:132px!important;}
#inlineTextToolbar.professional-contextbar select[data-text-tool="barcodeType"]{width:112px!important;min-width:112px!important;}
#inlineTextToolbar.professional-contextbar select[data-text-tool="rotation"]{width:72px!important;min-width:72px!important;}
#inlineTextToolbar.professional-contextbar input[data-text-tool="fontSize"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="barcodeHeight"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="barWidth"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="quietZone"]{
  width:48px!important;
  min-width:48px!important;
  text-align:center!important;
  padding:0 4px!important;
}
#inlineTextToolbar.professional-contextbar .button-group,
#inlineTextToolbar.professional-contextbar .mini-stepper,
#inlineTextToolbar.professional-contextbar .professional-stepper{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  height:32px!important;
}
#inlineTextToolbar.professional-contextbar button{
  height:32px!important;
  min-width:32px!important;
  padding:0 9px!important;
  border:1px solid #d9e3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#102033!important;
  font-size:12px!important;
  font-weight:850!important;
  box-shadow:none!important;
}
#inlineTextToolbar.professional-contextbar button:hover:not(:disabled){
  border-color:rgba(184,134,11,.45)!important;
  background:#fff8e8!important;
}
#inlineTextToolbar.professional-contextbar button.active:not(:disabled){
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
#inlineTextToolbar.professional-contextbar .color-chip{
  width:34px!important;
  height:32px!important;
  padding:3px!important;
  border:1px solid #d9e3ef!important;
  border-radius:9px!important;
  background:#fff!important;
}
#inlineTextToolbar.professional-contextbar .color-chip input{width:26px!important;height:24px!important;}
#inlineTextToolbar.professional-contextbar .compact-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  height:32px!important;
  padding:0 10px!important;
  border:1px solid #d9e3ef!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#102033!important;
  font-size:12px!important;
  font-weight:750!important;
}
#inlineTextToolbar.professional-contextbar .compact-check input{
  width:15px!important;
  height:15px!important;
}
#inlineTextToolbar.professional-contextbar :disabled,
#inlineTextToolbar.professional-contextbar .tool-field:has(:disabled){
  opacity:.48!important;
  cursor:not-allowed!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .barcode-controls{
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .text-controls,
#inlineTextToolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.mode-none .barcode-controls{
  display:flex!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .text-toolbar-title{color:#7d5e18!important;background:#fff8e8!important;border-color:rgba(184,134,11,.28)!important;}
#inlineTextToolbar.professional-contextbar.mode-barcode .text-toolbar-title{color:#7d5e18!important;background:#fff8e8!important;border-color:rgba(184,134,11,.28)!important;}
#inlineTextToolbar.professional-contextbar.mode-none .text-toolbar-title{background:#f8fafc!important;color:#64748b!important;border-color:#dbe5ef!important;}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar{gap:7px!important;padding:7px 9px!important}
  #inlineTextToolbar.professional-contextbar .contextbar-head{min-width:118px!important;max-width:130px!important}
  #inlineTextToolbar.professional-contextbar select[data-text-tool="fontFamily"]{width:105px!important;min-width:105px!important}
  #inlineTextToolbar.professional-contextbar select[data-text-tool="barcodeType"]{width:100px!important;min-width:100px!important}
  #inlineTextToolbar.professional-contextbar .tool-field>span:first-child{display:none!important}
}

/* V41 - Barra única contextual: mostra apenas os controles do objeto selecionado */
.brand p::after{content:' • V41'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.professional-contextbar{
  min-height:44px!important;
  height:auto!important;
  padding:6px 10px!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  background:#fff!important;
  border:1px solid #dbe4ef!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-head{
  min-width:116px!important;
  max-width:150px!important;
  height:32px!important;
  padding:0!important;
  border:0!important;
}
#inlineTextToolbar.professional-contextbar .text-toolbar-title{
  height:32px!important;
  min-width:102px!important;
  justify-content:center!important;
  padding:0 12px!important;
  border-radius:10px!important;
  background:#fff8e8!important;
  border:1px solid rgba(184,134,11,.30)!important;
  color:#7d5e18!important;
  font-size:12px!important;
  font-weight:900!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
#inlineTextToolbar.professional-contextbar .toolbar-hint{display:none!important}
#inlineTextToolbar.professional-contextbar .text-controls,
#inlineTextToolbar.professional-contextbar .barcode-controls{
  display:none!important;
  flex:1 1 auto!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  min-width:0!important;
}
#inlineTextToolbar.professional-contextbar.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .barcode-controls{
  display:flex!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.mode-none .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .text-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-image .text-controls,
#inlineTextToolbar.professional-contextbar.mode-image .barcode-controls{
  display:none!important;
}
#inlineTextToolbar.professional-contextbar .text-controls::after{display:none!important;content:none!important}
#inlineTextToolbar.professional-contextbar .tool-field{
  height:32px!important;
  min-height:32px!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar.professional-contextbar .tool-field>span:first-child{
  color:#8a6a22!important;
  font-size:10px!important;
  font-weight:850!important;
  margin-right:2px!important;
}
#inlineTextToolbar.professional-contextbar select,
#inlineTextToolbar.professional-contextbar input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar.professional-contextbar button,
#inlineTextToolbar.professional-contextbar .compact-check,
#inlineTextToolbar.professional-contextbar .color-chip{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:9px!important;
}
#inlineTextToolbar.professional-contextbar select[data-text-tool="fontFamily"]{width:150px!important;min-width:150px!important}
#inlineTextToolbar.professional-contextbar select[data-text-tool="barcodeType"]{width:136px!important;min-width:136px!important}
#inlineTextToolbar.professional-contextbar select[data-text-tool="rotation"]{width:76px!important;min-width:76px!important}
#inlineTextToolbar.professional-contextbar input[data-text-tool="fontSize"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="barcodeHeight"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="barWidth"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="quietZone"]{
  width:48px!important;
  min-width:48px!important;
}
#inlineTextToolbar.professional-contextbar.mode-none .text-toolbar-title{
  background:#f8fafc!important;
  border-color:#dbe5ef!important;
  color:#64748b!important;
}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar{flex-wrap:wrap!important;gap:5px!important}
  #inlineTextToolbar.professional-contextbar .contextbar-head{min-width:100%!important;max-width:100%!important;height:28px!important}
  #inlineTextToolbar.professional-contextbar .text-toolbar-title{height:28px!important;min-width:88px!important}
  #inlineTextToolbar.professional-contextbar.mode-text .text-controls,
  #inlineTextToolbar.professional-contextbar.mode-barcode .barcode-controls{width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:1px!important}
}


/* V42 - barra fixa completa: texto e código sempre visíveis, mesmo estilo da toolbar */
.brand p::after{content:' • V42'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.professional-contextbar{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:6px!important;
  min-height:82px!important;
  height:auto!important;
  padding:7px 10px!important;
  margin:8px 0 10px!important;
  background:#fff!important;
  border:1px solid #dbe4ef!important;
  border-radius:12px!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#inlineTextToolbar.professional-contextbar .contextbar-head{
  display:none!important;
}
#inlineTextToolbar.professional-contextbar .text-controls,
#inlineTextToolbar.professional-contextbar .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.mode-text .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .text-controls,
#inlineTextToolbar.professional-contextbar.mode-barcode .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.mode-none .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .text-controls,
#inlineTextToolbar.professional-contextbar.mode-shape .barcode-controls,
#inlineTextToolbar.professional-contextbar.mode-image .text-controls,
#inlineTextToolbar.professional-contextbar.mode-image .barcode-controls{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  min-height:32px!important;
  width:100%!important;
  opacity:1!important;
  overflow:visible!important;
  padding:0!important;
  margin:0!important;
}
#inlineTextToolbar.professional-contextbar .text-controls::before,
#inlineTextToolbar.professional-contextbar .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 86px!important;
  width:86px!important;
  height:30px!important;
  border:1px solid rgba(184,134,11,.30)!important;
  border-radius:9px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
  content:'';
}
#inlineTextToolbar.professional-contextbar .text-controls::before{content:'Texto'!important;}
#inlineTextToolbar.professional-contextbar .barcode-controls::before{content:'Código'!important;}
#inlineTextToolbar.professional-contextbar .text-controls::after,
#inlineTextToolbar.professional-contextbar .barcode-controls::after{
  display:none!important;
  content:none!important;
}
#inlineTextToolbar.professional-contextbar .tool-field{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  height:30px!important;
  min-height:30px!important;
  flex:0 0 auto!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.professional-contextbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  color:#8a6a22!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1!important;
  margin:0 1px 0 0!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar select,
#inlineTextToolbar.professional-contextbar input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar.professional-contextbar button,
#inlineTextToolbar.professional-contextbar .compact-check,
#inlineTextToolbar.professional-contextbar .color-chip{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1!important;
}
#inlineTextToolbar.professional-contextbar select[data-text-tool="fontFamily"]{width:150px!important;min-width:150px!important;}
#inlineTextToolbar.professional-contextbar select[data-text-tool="barcodeType"]{width:136px!important;min-width:136px!important;}
#inlineTextToolbar.professional-contextbar select[data-text-tool="rotation"]{width:76px!important;min-width:76px!important;}
#inlineTextToolbar.professional-contextbar input[data-text-tool="fontSize"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="barcodeHeight"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="barWidth"],
#inlineTextToolbar.professional-contextbar input[data-text-tool="quietZone"]{
  width:48px!important;
  min-width:48px!important;
  text-align:center!important;
}
#inlineTextToolbar.professional-contextbar .button-group,
#inlineTextToolbar.professional-contextbar .font-stepper,
#inlineTextToolbar.professional-contextbar .mini-stepper{
  display:inline-flex!important;
  align-items:center!important;
  gap:4px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
}
#inlineTextToolbar.professional-contextbar .button-group button,
#inlineTextToolbar.professional-contextbar .font-stepper button,
#inlineTextToolbar.professional-contextbar .mini-stepper button{
  width:30px!important;
  min-width:30px!important;
  padding:0!important;
}
#inlineTextToolbar.professional-contextbar .color-chip{
  width:34px!important;
  min-width:34px!important;
  padding:3px!important;
}
#inlineTextToolbar.professional-contextbar .compact-check{
  padding:0 10px!important;
  gap:6px!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.professional-contextbar select:disabled,
#inlineTextToolbar.professional-contextbar input:disabled,
#inlineTextToolbar.professional-contextbar button:disabled,
#inlineTextToolbar.professional-contextbar .compact-check:has(input:disabled),
#inlineTextToolbar.professional-contextbar .tool-field:has(:disabled){
  opacity:1!important;
  cursor:not-allowed!important;
}
#inlineTextToolbar.professional-contextbar select:disabled,
#inlineTextToolbar.professional-contextbar input:disabled,
#inlineTextToolbar.professional-contextbar button:disabled,
#inlineTextToolbar.professional-contextbar .compact-check:has(input:disabled){
  background:#f8fafc!important;
  border-color:#e3ebf4!important;
  color:#6b7890!important;
}
#inlineTextToolbar.professional-contextbar button.active:disabled,
#inlineTextToolbar.professional-contextbar button.active:not(:disabled){
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
#inlineTextToolbar.professional-contextbar .tool-field:has(:disabled)>span:first-child{color:#b38f56!important;}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar{min-height:0!important;gap:5px!important;padding:6px 8px!important;overflow-x:auto!important;}
  #inlineTextToolbar.professional-contextbar .text-controls,
  #inlineTextToolbar.professional-contextbar .barcode-controls{width:max-content!important;min-width:100%!important;}
  #inlineTextToolbar.professional-contextbar .text-controls::before,
  #inlineTextToolbar.professional-contextbar .barcode-controls::before{flex-basis:78px!important;width:78px!important;}
  #inlineTextToolbar.professional-contextbar .tool-field>span:first-child{display:none!important;}
}

/* V43 - Auditoria final da barra fixa: texto e código sempre aparentes, sem apagados/ocultos */
.brand p::after{content:' • V43'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  padding:7px 10px!important;
  margin:8px 0 10px!important;
  min-height:82px!important;
  background:#fff!important;
  border:1px solid #dbe4ef!important;
  border-radius:12px!important;
  box-shadow:none!important;
  overflow:visible!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar .contextbar-head{display:none!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar .barcode-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-none .barcode-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-text .barcode-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-barcode .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-barcode .barcode-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-shape .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-shape .barcode-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-image .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar.mode-image .barcode-controls{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  min-height:32px!important;
  width:100%!important;
  opacity:1!important;
  visibility:visible!important;
  overflow:visible!important;
  pointer-events:auto!important;
  padding:0!important;
  margin:0!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar .text-controls::before,
#inlineTextToolbar.professional-contextbar.v43-toolbar .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 86px!important;
  width:86px!important;
  height:30px!important;
  border:1px solid rgba(184,134,11,.34)!important;
  border-radius:9px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar .text-controls::before{content:'Texto'!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .barcode-controls::before{content:'Código'!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .tool-field{
  display:inline-flex!important;
  align-items:center!important;
  flex-direction:row!important;
  gap:5px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  color:#8a6a22!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar select,
#inlineTextToolbar.professional-contextbar.v43-toolbar input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar.professional-contextbar.v43-toolbar button,
#inlineTextToolbar.professional-contextbar.v43-toolbar .compact-check,
#inlineTextToolbar.professional-contextbar.v43-toolbar .color-chip{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1!important;
  opacity:1!important;
  pointer-events:auto!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar select:disabled,
#inlineTextToolbar.professional-contextbar.v43-toolbar input:disabled,
#inlineTextToolbar.professional-contextbar.v43-toolbar button:disabled,
#inlineTextToolbar.professional-contextbar.v43-toolbar .compact-check:has(input:disabled){
  opacity:1!important;
  filter:none!important;
  cursor:default!important;
  color:inherit!important;
  background:#fff!important;
  border-color:#cfdbea!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar .text-controls,
#inlineTextToolbar.professional-contextbar.v43-toolbar .barcode-controls{border-bottom:0!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar.selected-text .text-controls::before,
#inlineTextToolbar.professional-contextbar.v43-toolbar.selected-barcode .barcode-controls::before{
  background:#fff1cc!important;
  border-color:#c49429!important;
  color:#5c4210!important;
}
#inlineTextToolbar.professional-contextbar.v43-toolbar select[data-text-tool="fontFamily"]{width:150px!important;min-width:150px!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar select[data-text-tool="barcodeType"]{width:136px!important;min-width:136px!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar select[data-text-tool="rotation"]{width:76px!important;min-width:76px!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar input[data-text-tool="fontSize"],
#inlineTextToolbar.professional-contextbar.v43-toolbar input[data-text-tool="barcodeHeight"],
#inlineTextToolbar.professional-contextbar.v43-toolbar input[data-text-tool="barWidth"],
#inlineTextToolbar.professional-contextbar.v43-toolbar input[data-text-tool="quietZone"]{width:48px!important;min-width:48px!important;text-align:center!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .button-group,
#inlineTextToolbar.professional-contextbar.v43-toolbar .font-stepper,
#inlineTextToolbar.professional-contextbar.v43-toolbar .mini-stepper{display:inline-flex!important;align-items:center!important;gap:4px!important;height:30px!important;margin:0!important;padding:0!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .button-group button,
#inlineTextToolbar.professional-contextbar.v43-toolbar .font-stepper button,
#inlineTextToolbar.professional-contextbar.v43-toolbar .mini-stepper button{width:30px!important;min-width:30px!important;padding:0!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar button.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .color-chip{width:34px!important;min-width:34px!important;padding:3px!important;background:#fff!important}
#inlineTextToolbar.professional-contextbar.v43-toolbar .compact-check{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:0 10px!important;background:#fff!important;border:1px solid #cfdbea!important}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar.v43-toolbar{overflow-x:auto!important;min-height:0!important}
  #inlineTextToolbar.professional-contextbar.v43-toolbar .text-controls,
  #inlineTextToolbar.professional-contextbar.v43-toolbar .barcode-controls{width:max-content!important;min-width:100%!important}
  #inlineTextToolbar.professional-contextbar.v43-toolbar .text-controls::before,
  #inlineTextToolbar.professional-contextbar.v43-toolbar .barcode-controls::before{flex-basis:78px!important;width:78px!important}
  #inlineTextToolbar.professional-contextbar.v43-toolbar .tool-field>span:first-child{display:none!important}
}


/* V44 - Auditoria estrutural final da barra fixa: inspector permanente, sempre visível e sem estados apagados */
.brand p::after{content:' • V44'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.professional-contextbar.v44-inspector{
  display:flex!important;
  flex-direction:column!important;
  gap:4px!important;
  padding:7px 10px!important;
  margin:8px 0 10px!important;
  min-height:76px!important;
  background:#fff!important;
  border:1px solid #dbe4ef!important;
  border-radius:12px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector .contextbar-head{display:none!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .text-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector .barcode-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-none .text-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-none .barcode-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-text .text-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-text .barcode-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-barcode .text-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-barcode .barcode-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-shape .text-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-shape .barcode-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-image .text-controls,
#inlineTextToolbar.professional-contextbar.v44-inspector.mode-image .barcode-controls{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  width:100%!important;
  min-height:32px!important;
  height:32px!important;
  padding:0!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  overflow:visible!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector .text-controls::before,
#inlineTextToolbar.professional-contextbar.v44-inspector .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 88px!important;
  width:88px!important;
  height:30px!important;
  border:1px solid rgba(184,134,11,.32)!important;
  border-radius:9px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector .text-controls::before{content:'Texto'!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .barcode-controls::before{content:'Código'!important}
#inlineTextToolbar.professional-contextbar.v44-inspector.selected-text .text-controls::before,
#inlineTextToolbar.professional-contextbar.v44-inspector.selected-barcode .barcode-controls::before{
  background:#fff1cc!important;
  border-color:#c49429!important;
  color:#4e3810!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector .tool-field{
  display:inline-flex!important;
  align-items:center!important;
  flex-direction:row!important;
  gap:5px!important;
  height:30px!important;
  min-height:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
  color:#8a6a22!important;
  font-size:10px!important;
  font-weight:850!important;
  line-height:1!important;
  opacity:1!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector select,
#inlineTextToolbar.professional-contextbar.v44-inspector input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar.professional-contextbar.v44-inspector button,
#inlineTextToolbar.professional-contextbar.v44-inspector .compact-check,
#inlineTextToolbar.professional-contextbar.v44-inspector .color-chip{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  border-radius:9px!important;
  font-size:12px!important;
  font-weight:500!important;
  line-height:1!important;
  opacity:1!important;
  filter:none!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  color:#0f1f35!important;
  background:#fff!important;
  border-color:#cfdbea!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector select:disabled,
#inlineTextToolbar.professional-contextbar.v44-inspector input:disabled,
#inlineTextToolbar.professional-contextbar.v44-inspector button:disabled,
#inlineTextToolbar.professional-contextbar.v44-inspector .compact-check:has(input:disabled),
#inlineTextToolbar.professional-contextbar.v44-inspector .tool-field:has(:disabled){
  opacity:1!important;
  filter:none!important;
  color:#0f1f35!important;
  background:transparent!important;
  cursor:pointer!important;
}
#inlineTextToolbar.professional-contextbar.v44-inspector .field-font{width:auto!important;min-width:0!important}
#inlineTextToolbar.professional-contextbar.v44-inspector select[data-text-tool="fontFamily"]{width:150px!important;min-width:150px!important}
#inlineTextToolbar.professional-contextbar.v44-inspector select[data-text-tool="barcodeType"]{width:136px!important;min-width:136px!important}
#inlineTextToolbar.professional-contextbar.v44-inspector select[data-text-tool="rotation"]{width:76px!important;min-width:76px!important}
#inlineTextToolbar.professional-contextbar.v44-inspector input[data-text-tool="fontSize"],
#inlineTextToolbar.professional-contextbar.v44-inspector input[data-text-tool="barcodeHeight"],
#inlineTextToolbar.professional-contextbar.v44-inspector input[data-text-tool="barWidth"],
#inlineTextToolbar.professional-contextbar.v44-inspector input[data-text-tool="quietZone"]{width:48px!important;min-width:48px!important;text-align:center!important;padding:0 6px!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .button-group,
#inlineTextToolbar.professional-contextbar.v44-inspector .font-stepper,
#inlineTextToolbar.professional-contextbar.v44-inspector .mini-stepper{display:inline-flex!important;align-items:center!important;gap:4px!important;height:30px!important;margin:0!important;padding:0!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .button-group button,
#inlineTextToolbar.professional-contextbar.v44-inspector .font-stepper button,
#inlineTextToolbar.professional-contextbar.v44-inspector .mini-stepper button{width:30px!important;min-width:30px!important;padding:0!important}
#inlineTextToolbar.professional-contextbar.v44-inspector button.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .color-chip{width:34px!important;min-width:34px!important;padding:3px!important;background:#fff!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .compact-check{display:inline-flex!important;align-items:center!important;gap:6px!important;padding:0 10px!important;background:#fff!important;border:1px solid #cfdbea!important}
#inlineTextToolbar.professional-contextbar.v44-inspector .text-controls::after{content:'';width:1px;height:24px;background:#e5edf6;margin-left:3px;flex:0 0 1px}
@media(max-width:1500px){
  #inlineTextToolbar.professional-contextbar.v44-inspector{overflow-x:auto!important;min-height:0!important}
  #inlineTextToolbar.professional-contextbar.v44-inspector .text-controls,
  #inlineTextToolbar.professional-contextbar.v44-inspector .barcode-controls{width:max-content!important;min-width:100%!important}
  #inlineTextToolbar.professional-contextbar.v44-inspector .text-controls::before,
  #inlineTextToolbar.professional-contextbar.v44-inspector .barcode-controls::before{flex-basis:78px!important;width:78px!important}
  #inlineTextToolbar.professional-contextbar.v44-inspector .tool-field>span:first-child{display:none!important}
}


/* V47 - Barra permanente compacta: mesma altura visual da barra "Editor da etiqueta" */
.brand p::after{content:' • V47'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.v47-compact-toolbar,
#inlineTextToolbar.fixed-text-toolbar.professional-contextbar.v47-compact-toolbar{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  padding:4px 7px!important;
  margin:0 0 7px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:inset 0 1px #fff!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
#inlineTextToolbar.v47-compact-toolbar .contextbar-head{display:none!important}
#inlineTextToolbar.v47-compact-toolbar .text-controls,
#inlineTextToolbar.v47-compact-toolbar .barcode-controls{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:4px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  height:30px!important;
  min-height:30px!important;
  padding:0!important;
  margin:0!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  pointer-events:auto!important;
}
#inlineTextToolbar.v47-compact-toolbar .text-controls{flex:0 1 auto!important}
#inlineTextToolbar.v47-compact-toolbar .barcode-controls{flex:1 1 auto!important}
#inlineTextToolbar.v47-compact-toolbar .text-controls::before,
#inlineTextToolbar.v47-compact-toolbar .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:28px!important;
  min-width:54px!important;
  padding:0 8px!important;
  border-radius:9px!important;
  border:1px solid rgba(185,148,72,.34)!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  flex:0 0 auto!important;
  box-sizing:border-box!important;
}
#inlineTextToolbar.v47-compact-toolbar .text-controls::before{content:'Texto'!important}
#inlineTextToolbar.v47-compact-toolbar .barcode-controls::before{content:'Código'!important}
#inlineTextToolbar.v47-compact-toolbar .tool-field{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:auto!important;
  min-width:0!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  flex:0 0 auto!important;
  overflow:visible!important;
  opacity:1!important;
}
#inlineTextToolbar.v47-compact-toolbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  height:28px!important;
  margin:0 1px 0 0!important;
  color:#8a6418!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
  text-transform:none!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  opacity:1!important;
}
#inlineTextToolbar.v47-compact-toolbar .field-style>span:first-child,
#inlineTextToolbar.v47-compact-toolbar .field-align>span:first-child,
#inlineTextToolbar.v47-compact-toolbar .field-color>span:first-child{display:none!important}
#inlineTextToolbar.v47-compact-toolbar .tool-field:not(:last-child)::after{display:none!important}
#inlineTextToolbar.v47-compact-toolbar .text-controls::after{
  content:''!important;display:block!important;width:1px!important;height:22px!important;background:#e5edf7!important;margin:0 5px!important;flex:0 0 1px!important;
}
#inlineTextToolbar.v47-compact-toolbar select,
#inlineTextToolbar.v47-compact-toolbar input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar.v47-compact-toolbar button,
#inlineTextToolbar.v47-compact-toolbar .compact-check,
#inlineTextToolbar.v47-compact-toolbar .color-chip{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  border-radius:8px!important;
  font-size:10px!important;
  font-weight:650!important;
  line-height:1!important;
  color:#132033!important;
  background:#fff!important;
  border:1px solid #d7e1ee!important;
  opacity:1!important;
  filter:none!important;
  box-sizing:border-box!important;
}
#inlineTextToolbar.v47-compact-toolbar select{padding:0 20px 0 7px!important;width:auto!important;min-width:0!important;max-width:none!important}
#inlineTextToolbar.v47-compact-toolbar select[data-text-tool="fontFamily"]{width:120px!important;min-width:120px!important;max-width:120px!important}
#inlineTextToolbar.v47-compact-toolbar select[data-text-tool="barcodeType"]{width:112px!important;min-width:112px!important;max-width:112px!important}
#inlineTextToolbar.v47-compact-toolbar select[data-text-tool="rotation"]{width:64px!important;min-width:64px!important;max-width:64px!important}
#inlineTextToolbar.v47-compact-toolbar input[type="number"]{width:38px!important;min-width:38px!important;max-width:38px!important;text-align:center!important;padding:0 3px!important}
#inlineTextToolbar.v47-compact-toolbar .button-group,
#inlineTextToolbar.v47-compact-toolbar .font-stepper,
#inlineTextToolbar.v47-compact-toolbar .mini-stepper{display:inline-flex!important;align-items:center!important;gap:3px!important;height:28px!important;margin:0!important;padding:0!important}
#inlineTextToolbar.v47-compact-toolbar .button-group button,
#inlineTextToolbar.v47-compact-toolbar .font-stepper button,
#inlineTextToolbar.v47-compact-toolbar .mini-stepper button{width:28px!important;min-width:28px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
#inlineTextToolbar.v47-compact-toolbar button.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
#inlineTextToolbar.v47-compact-toolbar .color-chip{width:30px!important;min-width:30px!important;padding:2px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
#inlineTextToolbar.v47-compact-toolbar .color-chip input{width:23px!important;height:21px!important;border:0!important;padding:0!important}
#inlineTextToolbar.v47-compact-toolbar .compact-check{display:inline-flex!important;align-items:center!important;gap:4px!important;padding:0 7px!important;white-space:nowrap!important}
#inlineTextToolbar.v47-compact-toolbar .compact-check input{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important}
#inlineTextToolbar.v47-compact-toolbar select:disabled,
#inlineTextToolbar.v47-compact-toolbar input:disabled,
#inlineTextToolbar.v47-compact-toolbar button:disabled,
#inlineTextToolbar.v47-compact-toolbar .compact-check:has(input:disabled){opacity:1!important;cursor:pointer!important;color:#132033!important;background:#fff!important;filter:none!important}
@media(max-width:1500px){
  #inlineTextToolbar.v47-compact-toolbar{gap:4px!important;padding:4px 5px!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important}
  #inlineTextToolbar.v47-compact-toolbar .text-controls::before,
  #inlineTextToolbar.v47-compact-toolbar .barcode-controls::before{min-width:48px!important;padding:0 6px!important}
  #inlineTextToolbar.v47-compact-toolbar .tool-field>span:first-child{font-size:8.5px!important}
  #inlineTextToolbar.v47-compact-toolbar select[data-text-tool="fontFamily"]{width:98px!important;min-width:98px!important;max-width:98px!important}
  #inlineTextToolbar.v47-compact-toolbar select[data-text-tool="barcodeType"]{width:96px!important;min-width:96px!important;max-width:96px!important}
  #inlineTextToolbar.v47-compact-toolbar input[type="number"]{width:34px!important;min-width:34px!important;max-width:34px!important}
  #inlineTextToolbar.v47-compact-toolbar .button-group button,
  #inlineTextToolbar.v47-compact-toolbar .font-stepper button,
  #inlineTextToolbar.v47-compact-toolbar .mini-stepper button{width:24px!important;min-width:24px!important}
}


/* V48 - Auditoria visual definitiva da barra de edição
   Objetivo: mesma altura visual da toolbar "Editor da etiqueta", sem sobreposição,
   sem controles apagados/ocultos e sem invadir o canvas. */
.brand p::after{content:' • V48'!important;color:#b78628!important;font-weight:800!important}
.designer-card{display:flex!important;flex-direction:column!important;gap:8px!important;overflow:hidden!important;}
.editor-toolbar{height:42px!important;min-height:42px!important;max-height:42px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:6px 8px!important;box-sizing:border-box!important;overflow:hidden!important;}
#inlineTextToolbar,
#inlineTextToolbar.v47-compact-toolbar,
#inlineTextToolbar.fixed-text-toolbar,
#inlineTextToolbar.professional-contextbar{
  display:grid!important;
  grid-template-columns:minmax(410px,0.95fr) minmax(560px,1.25fr)!important;
  align-items:center!important;
  column-gap:10px!important;
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  padding:6px 8px!important;
  margin:0 0 8px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:inset 0 1px 0 #fff!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  opacity:1!important;
  transform:none!important;
}
#inlineTextToolbar .contextbar-head{display:none!important;}
#inlineTextToolbar .text-controls,
#inlineTextToolbar .barcode-controls{
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:5px!important;
  width:100%!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  filter:none!important;
  min-width:0!important;
}
#inlineTextToolbar .text-controls::before,
#inlineTextToolbar .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:28px!important;
  min-width:58px!important;
  max-width:58px!important;
  padding:0 8px!important;
  border:1px solid rgba(185,148,72,.38)!important;
  border-radius:9px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:11px!important;
  font-weight:900!important;
  line-height:1!important;
  flex:0 0 58px!important;
  box-sizing:border-box!important;
}
#inlineTextToolbar .text-controls::before{content:'Texto'!important;}
#inlineTextToolbar .barcode-controls::before{content:'Código'!important;}
#inlineTextToolbar .text-controls::after{display:none!important;content:none!important;}
#inlineTextToolbar .tool-field{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  width:auto!important;
  min-width:0!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  opacity:1!important;
  filter:none!important;
  flex:0 0 auto!important;
}
#inlineTextToolbar .tool-field>span:first-child{display:none!important;}
#inlineTextToolbar .tool-field:not(:last-child)::after{display:none!important;content:none!important;}
#inlineTextToolbar select,
#inlineTextToolbar input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar button,
#inlineTextToolbar .compact-check,
#inlineTextToolbar .color-chip{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  border:1px solid #d7e1ee!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#132033!important;
  font-size:11px!important;
  font-weight:650!important;
  line-height:1!important;
  opacity:1!important;
  filter:none!important;
  box-sizing:border-box!important;
}
#inlineTextToolbar select{padding:0 20px 0 8px!important;}
#inlineTextToolbar select[data-text-tool="fontFamily"]{width:122px!important;min-width:122px!important;max-width:122px!important;}
#inlineTextToolbar select[data-text-tool="barcodeType"]{width:116px!important;min-width:116px!important;max-width:116px!important;}
#inlineTextToolbar select[data-text-tool="rotation"]{width:62px!important;min-width:62px!important;max-width:62px!important;}
#inlineTextToolbar input[type="number"]{width:42px!important;min-width:42px!important;max-width:42px!important;text-align:center!important;padding:0 3px!important;}
#inlineTextToolbar .button-group,
#inlineTextToolbar .font-stepper,
#inlineTextToolbar .mini-stepper{display:inline-flex!important;align-items:center!important;gap:4px!important;height:28px!important;padding:0!important;margin:0!important;}
#inlineTextToolbar .button-group button,
#inlineTextToolbar .font-stepper button,
#inlineTextToolbar .mini-stepper button{width:28px!important;min-width:28px!important;max-width:28px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
#inlineTextToolbar button.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important;}
#inlineTextToolbar .color-chip{width:30px!important;min-width:30px!important;max-width:30px!important;padding:2px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;}
#inlineTextToolbar .color-chip input{width:22px!important;height:20px!important;border:0!important;padding:0!important;}
#inlineTextToolbar .compact-check{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;min-width:74px!important;max-width:74px!important;padding:0 7px!important;white-space:nowrap!important;}
#inlineTextToolbar .compact-check input{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;}
#inlineTextToolbar select:disabled,
#inlineTextToolbar input:disabled,
#inlineTextToolbar button:disabled,
#inlineTextToolbar .compact-check:has(input:disabled){opacity:1!important;cursor:pointer!important;color:#132033!important;background:#fff!important;filter:none!important;}
.document-stage{flex:1 1 auto!important;min-height:0!important;margin-top:0!important;position:relative!important;z-index:0!important;}
#inlineTextToolbar{position:relative!important;z-index:3!important;}
@media(max-width:1500px){
  #inlineTextToolbar{grid-template-columns:1fr!important;height:78px!important;min-height:78px!important;max-height:78px!important;row-gap:6px!important;overflow:hidden!important;}
  #inlineTextToolbar .text-controls,#inlineTextToolbar .barcode-controls{width:100%!important;}
  #inlineTextToolbar select[data-text-tool="fontFamily"]{width:110px!important;min-width:110px!important;max-width:110px!important;}
  #inlineTextToolbar select[data-text-tool="barcodeType"]{width:108px!important;min-width:108px!important;max-width:108px!important;}
}

/* V49 - correção definitiva da barra contextual: mesma altura/padrão da toolbar do editor */
.brand p::after{content:' • V49'!important;color:#b78628!important;font-weight:800!important}
#inlineTextToolbar.v49-toolbar{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  height:40px!important;
  min-height:40px!important;
  max-height:40px!important;
  margin:6px 0 8px!important;
  padding:4px 6px!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:inset 0 1px #fff!important;
  overflow:hidden!important;
  gap:6px!important;
}
#inlineTextToolbar.v49-toolbar .contextbar-head{display:none!important}
#inlineTextToolbar.v49-toolbar .contextbar-controls{
  height:30px!important;
  min-height:30px!important;
  display:none!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:5px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:hidden!important;
  opacity:1!important;
}
#inlineTextToolbar.v49-toolbar.mode-text .text-controls,
#inlineTextToolbar.v49-toolbar.mode-barcode .barcode-controls{display:flex!important}
#inlineTextToolbar.v49-toolbar.mode-none::before,
#inlineTextToolbar.v49-toolbar.mode-shape::before,
#inlineTextToolbar.v49-toolbar.mode-image::before{
  content:'Selecione um texto ou código para editar';
  display:inline-flex;
  align-items:center;
  height:30px;
  padding:0 10px;
  color:#64748b;
  font-size:11px;
  font-weight:700;
}
#inlineTextToolbar.v49-toolbar .text-controls::before,
#inlineTextToolbar.v49-toolbar .barcode-controls::before{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:28px!important;
  min-width:74px!important;
  padding:0 10px!important;
  border:1px solid rgba(185,148,72,.45)!important;
  border-radius:9px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:11px!important;
  font-weight:900!important;
  white-space:nowrap!important;
  line-height:1!important;
  margin-right:2px!important;
}
#inlineTextToolbar.v49-toolbar .text-controls::before{content:'Texto'!important}
#inlineTextToolbar.v49-toolbar .barcode-controls::before{content:'Código'!important}
#inlineTextToolbar.v49-toolbar .tool-field{
  display:inline-flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:4px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  white-space:nowrap!important;
  flex:0 0 auto!important;
  color:#7d5e18!important;
  font-size:10px!important;
  font-weight:850!important;
}
#inlineTextToolbar.v49-toolbar .tool-field>span:first-child{
  display:inline-flex!important;
  align-items:center!important;
  height:28px!important;
  margin:0 1px 0 0!important;
  padding:0!important;
  color:#8a6a22!important;
  font-size:9.5px!important;
  font-weight:850!important;
  line-height:1!important;
  text-transform:none!important;
  letter-spacing:0!important;
  opacity:1!important;
}
#inlineTextToolbar.v49-toolbar .field-style>span:first-child,
#inlineTextToolbar.v49-toolbar .field-align>span:first-child,
#inlineTextToolbar.v49-toolbar .field-color>span:first-child,
#inlineTextToolbar.v49-toolbar .field-check>span:first-child{display:none!important}
#inlineTextToolbar.v49-toolbar select,
#inlineTextToolbar.v49-toolbar input:not([type="checkbox"]):not([type="color"]),
#inlineTextToolbar.v49-toolbar button,
#inlineTextToolbar.v49-toolbar .compact-check,
#inlineTextToolbar.v49-toolbar .color-chip{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  border:1px solid #d8e0ec!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#102033!important;
  box-shadow:none!important;
  font-size:10.5px!important;
  font-weight:650!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
#inlineTextToolbar.v49-toolbar select{padding:0 22px 0 8px!important}
#inlineTextToolbar.v49-toolbar select[data-text-tool="fontFamily"]{width:150px!important;min-width:150px!important;max-width:150px!important}
#inlineTextToolbar.v49-toolbar select[data-text-tool="barcodeType"]{width:118px!important;min-width:118px!important;max-width:118px!important}
#inlineTextToolbar.v49-toolbar select[data-text-tool="rotation"]{width:62px!important;min-width:62px!important;max-width:62px!important}
#inlineTextToolbar.v49-toolbar input[data-text-tool="fontSize"],
#inlineTextToolbar.v49-toolbar input[data-text-tool="barcodeHeight"],
#inlineTextToolbar.v49-toolbar input[data-text-tool="barWidth"],
#inlineTextToolbar.v49-toolbar input[data-text-tool="quietZone"]{
  width:42px!important;
  min-width:42px!important;
  max-width:42px!important;
  text-align:center!important;
  padding:0 3px!important;
}
#inlineTextToolbar.v49-toolbar .button-group,
#inlineTextToolbar.v49-toolbar .font-stepper,
#inlineTextToolbar.v49-toolbar .mini-stepper{
  display:inline-flex!important;
  align-items:center!important;
  gap:3px!important;
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  padding:0!important;
}
#inlineTextToolbar.v49-toolbar .button-group button,
#inlineTextToolbar.v49-toolbar .font-stepper button,
#inlineTextToolbar.v49-toolbar .mini-stepper button{
  width:28px!important;
  min-width:28px!important;
  max-width:28px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#inlineTextToolbar.v49-toolbar button.active,
#inlineTextToolbar.v49-toolbar button.active:not(:disabled){
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
#inlineTextToolbar.v49-toolbar .color-chip{
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  padding:2px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
#inlineTextToolbar.v49-toolbar .color-chip input{width:24px!important;height:22px!important;border:0!important;padding:0!important;background:transparent!important}
#inlineTextToolbar.v49-toolbar .compact-check{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  padding:0 8px!important;
  white-space:nowrap!important;
}
#inlineTextToolbar.v49-toolbar .compact-check input{width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important}
#inlineTextToolbar.v49-toolbar :disabled{opacity:1!important;cursor:pointer!important}
#inlineTextToolbar.v49-toolbar .barcode-controls .tool-field:not(:last-child)::after,
#inlineTextToolbar.v49-toolbar .text-controls .tool-field:not(:last-child)::after{
  content:'';display:block;width:1px;height:20px;margin-left:2px;background:#e6edf5;
}
@media(max-width:1500px){
  #inlineTextToolbar.v49-toolbar{height:40px!important;min-height:40px!important;padding:4px 5px!important;gap:4px!important}
  #inlineTextToolbar.v49-toolbar .text-controls::before,
  #inlineTextToolbar.v49-toolbar .barcode-controls::before{min-width:58px!important;padding:0 7px!important;font-size:10px!important}
  #inlineTextToolbar.v49-toolbar .tool-field>span:first-child{font-size:0!important;width:0!important;margin:0!important;overflow:hidden!important}
  #inlineTextToolbar.v49-toolbar select[data-text-tool="fontFamily"]{width:118px!important;min-width:118px!important;max-width:118px!important}
  #inlineTextToolbar.v49-toolbar select[data-text-tool="barcodeType"]{width:100px!important;min-width:100px!important;max-width:100px!important}
  #inlineTextToolbar.v49-toolbar input[data-text-tool="fontSize"],
  #inlineTextToolbar.v49-toolbar input[data-text-tool="barcodeHeight"],
  #inlineTextToolbar.v49-toolbar input[data-text-tool="barWidth"],
  #inlineTextToolbar.v49-toolbar input[data-text-tool="quietZone"]{width:36px!important;min-width:36px!important;max-width:36px!important}
}

/* V50 — barra contextual única, compacta e sem sobreposição */
#inlineTextToolbar.contextual-property-toolbar{
  height:36px !important;
  min-height:36px !important;
  max-height:36px !important;
  margin:0 0 7px !important;
  padding:3px 6px !important;
  display:flex !important;
  align-items:center !important;
  border:1px solid var(--line) !important;
  border-radius:10px !important;
  background:#fff !important;
  box-shadow:0 2px 8px rgba(31,43,63,.035) !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  scrollbar-width:thin;
  box-sizing:border-box !important;
}
#inlineTextToolbar .contextual-property-inner{
  width:100%;
  min-width:max-content;
  height:28px;
  display:flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
#inlineTextToolbar .contextual-empty{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
  padding:0 6px;
}
#inlineTextToolbar .ctx-kind{
  height:26px;
  min-width:66px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 9px;
  border:1px solid rgba(185,148,72,.45);
  border-radius:8px;
  background:#fff8e8;
  color:#7d5e18;
  font-size:9.5px;
  font-weight:900;
}
#inlineTextToolbar .ctx-sep{width:1px;height:18px;background:var(--line);margin:0 2px;flex:0 0 auto}
#inlineTextToolbar .ctx-label{
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  gap:4px;
  height:26px;
  font-size:9px;
  font-weight:800;
  color:#64748b;
}
#inlineTextToolbar select,
#inlineTextToolbar input[type="number"]{
  height:26px !important;
  min-height:26px !important;
  border-radius:8px !important;
  padding:3px 7px !important;
  font-size:9.5px !important;
  font-weight:500 !important;
  color:var(--ink) !important;
  background:#fff !important;
}
#inlineTextToolbar .ctx-font{width:150px}
#inlineTextToolbar .ctx-type{width:132px}
#inlineTextToolbar .ctx-rotation{width:72px}
#inlineTextToolbar .ctx-num{width:48px;text-align:center}
#inlineTextToolbar .ctx-stepper{display:inline-flex;align-items:center;gap:3px;height:26px}
#inlineTextToolbar button{
  height:26px !important;
  min-width:28px !important;
  padding:3px 7px !important;
  border-radius:8px !important;
  font-size:9.5px !important;
  box-shadow:none !important;
}
#inlineTextToolbar button.active{
  background:var(--gold) !important;
  border-color:var(--gold) !important;
  color:#fff !important;
}
#inlineTextToolbar .ctx-color{
  width:28px !important;height:26px !important;padding:2px !important;border-radius:8px !important;
}
#inlineTextToolbar .ctx-check{
  height:26px;display:inline-flex;align-items:center;gap:5px;padding:0 8px;
  border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);
  font-size:9.5px;font-weight:700;
}
#inlineTextToolbar .ctx-check input{width:14px;height:14px;margin:0}
@media(max-width:1450px){
  #inlineTextToolbar.contextual-property-toolbar{height:34px !important;min-height:34px !important;max-height:34px !important;padding:3px 5px !important}
  #inlineTextToolbar .contextual-property-inner{height:26px;gap:4px}
  #inlineTextToolbar .ctx-kind,#inlineTextToolbar select,#inlineTextToolbar input[type="number"],#inlineTextToolbar button,#inlineTextToolbar .ctx-check{height:24px !important;min-height:24px !important}
  #inlineTextToolbar .ctx-font{width:125px}.ctx-type{width:118px}
}

/* V51 — barras Etiqueta, Texto e Código no mesmo bloco, sem espaçamento */
.designer-card>.card-head{display:none!important}
.editor-tools-stack{
  margin:0 0 8px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 2px 8px rgba(31,43,63,.035)!important;
}
.editor-tools-stack .editor-toolbar{
  margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;border-bottom:1px solid var(--line)!important;min-height:39px!important;height:39px!important;padding:4px 7px!important;
}
#inlineTextToolbar.permanent-editors-toolbar{
  display:block!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
}
#inlineTextToolbar .permanent-toolbar-row{
  width:100%!important;min-height:39px!important;height:39px!important;display:flex!important;align-items:center!important;gap:5px!important;padding:4px 7px!important;margin:0!important;box-sizing:border-box!important;white-space:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:thin!important;background:#fff!important;
}
#inlineTextToolbar .permanent-toolbar-row+ .permanent-toolbar-row{border-top:1px solid var(--line)!important}
#inlineTextToolbar .permanent-row-title{
  flex:0 0 74px!important;height:29px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid rgba(185,148,72,.48)!important;border-radius:8px!important;background:#fff8e8!important;color:#7d5e18!important;font-size:10.5px!important;font-weight:900!important;
}
#inlineTextToolbar label{height:29px!important;display:inline-flex!important;align-items:center!important;gap:4px!important;margin:0!important;color:#7d5e18!important;font-size:9.5px!important;font-weight:850!important;white-space:nowrap!important}
#inlineTextToolbar select,#inlineTextToolbar input[type="number"],#inlineTextToolbar button,#inlineTextToolbar .permanent-check{
  height:29px!important;min-height:29px!important;max-height:29px!important;border:1px solid #d8e0ec!important;border-radius:8px!important;background:#fff!important;color:#102033!important;box-shadow:none!important;font-size:10.5px!important;font-weight:650!important;box-sizing:border-box!important;
}
#inlineTextToolbar select{padding:0 23px 0 8px!important}
#inlineTextToolbar select[data-v51="fontFamily"]{width:155px!important}
#inlineTextToolbar select[data-v51="barcodeType"]{width:125px!important}
#inlineTextToolbar select[data-v51="rotation"]{width:65px!important}
#inlineTextToolbar input[type="number"]{width:45px!important;text-align:center!important;padding:0 4px!important}
#inlineTextToolbar button{width:30px!important;min-width:30px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important}
#inlineTextToolbar button.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
#inlineTextToolbar input[type="color"]{width:30px!important;height:29px!important;padding:2px!important;border:1px solid #d8e0ec!important;border-radius:8px!important;background:#fff!important}
#inlineTextToolbar .permanent-check{padding:0 8px!important;gap:5px!important}
#inlineTextToolbar .permanent-check input{width:14px!important;height:14px!important;margin:0!important}
.document-stage{margin-top:0!important}
@media(max-width:1450px){
  #inlineTextToolbar .permanent-row-title{flex-basis:60px!important}
  #inlineTextToolbar select[data-v51="fontFamily"]{width:125px!important}
  #inlineTextToolbar select[data-v51="barcodeType"]{width:105px!important}
  #inlineTextToolbar .permanent-toolbar-row{gap:4px!important;padding-left:5px!important;padding-right:5px!important}
}

/* V52 — toolbar profissional em CSS Grid: 3 linhas contíguas, sem quebra */
.editor-tools-stack{
  display:block!important;
  width:100%!important;
  margin:0 0 8px!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:11px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 2px 8px rgba(31,43,63,.035)!important;
}
.editor-tools-stack .editor-toolbar{
  width:100%!important;
  height:39px!important;
  min-height:39px!important;
  max-height:39px!important;
  margin:0!important;
  padding:4px 7px!important;
  border:0!important;
  border-bottom:1px solid var(--line)!important;
  border-radius:0!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  flex-wrap:nowrap!important;
}
#inlineTextToolbar.permanent-editors-toolbar{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
#inlineTextToolbar .permanent-toolbar-row{
  width:100%!important;
  height:39px!important;
  min-height:39px!important;
  max-height:39px!important;
  margin:0!important;
  padding:4px 7px!important;
  box-sizing:border-box!important;
  display:grid!important;
  align-items:center!important;
  column-gap:5px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  background:#fff!important;
}
#inlineTextToolbar .permanent-toolbar-row + .permanent-toolbar-row{
  border-top:1px solid var(--line)!important;
}
#inlineTextToolbar .text-toolbar-row{
  grid-template-columns:76px minmax(190px,1.35fr) 92px 30px 30px 30px 30px 30px 30px 30px 68px minmax(0,2fr)!important;
}
#inlineTextToolbar .barcode-toolbar-row{
  grid-template-columns:76px minmax(165px,1.25fr) 78px 30px 30px 92px 30px 30px 88px 30px 30px 105px 88px minmax(0,1fr)!important;
}
#inlineTextToolbar .permanent-row-title{
  width:auto!important;
  min-width:0!important;
  height:29px!important;
  margin:0!important;
  padding:0 9px!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(185,148,72,.48)!important;
  border-radius:8px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:10.5px!important;
  font-weight:900!important;
  line-height:1!important;
}
#inlineTextToolbar label{
  width:100%!important;
  min-width:0!important;
  height:29px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:center!important;
  gap:5px!important;
  color:#7d5e18!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
  overflow:hidden!important;
}
#inlineTextToolbar label.permanent-check{
  display:flex!important;
  justify-content:flex-start!important;
  padding:0 8px!important;
  border:1px solid #d8e0ec!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#102033!important;
  gap:5px!important;
  overflow:visible!important;
}
#inlineTextToolbar select,
#inlineTextToolbar input[type="number"],
#inlineTextToolbar input[type="color"],
#inlineTextToolbar button{
  min-width:0!important;
  max-width:100%!important;
  width:100%!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin:0!important;
  box-sizing:border-box!important;
  border:1px solid #d8e0ec!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#102033!important;
  box-shadow:none!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1!important;
}
#inlineTextToolbar select{padding:0 22px 0 7px!important}
#inlineTextToolbar input[type="number"]{padding:0 3px!important;text-align:center!important}
#inlineTextToolbar input[type="color"]{padding:2px!important}
#inlineTextToolbar button{
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}
#inlineTextToolbar button.active{
  background:var(--gold)!important;
  border-color:var(--gold)!important;
  color:#fff!important;
}
#inlineTextToolbar .permanent-check input{
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  max-width:14px!important;
  margin:0!important;
}
@media(max-width:1500px){
  #inlineTextToolbar .permanent-toolbar-row{column-gap:4px!important;padding-left:5px!important;padding-right:5px!important}
  #inlineTextToolbar .text-toolbar-row{grid-template-columns:62px minmax(150px,1.2fr) 78px repeat(6,28px) 58px minmax(0,1fr)!important}
  #inlineTextToolbar .barcode-toolbar-row{grid-template-columns:62px minmax(130px,1.1fr) 66px 28px 28px 76px 28px 28px 76px 28px 28px 86px 76px minmax(0,.5fr)!important}
  #inlineTextToolbar label{font-size:0!important;gap:0!important}
  #inlineTextToolbar label.permanent-check{font-size:9px!important;gap:4px!important}
  #inlineTextToolbar .permanent-row-title{font-size:9.5px!important;padding:0 6px!important}
}

/* V53 — seleção múltipla e janela de seleção */
.marquee-selection{
  fill:rgba(37,99,235,.12)!important;
  stroke:#2563eb!important;
  stroke-width:.055!important;
  stroke-dasharray:.24 .14!important;
  pointer-events:none!important;
}
.multi-selection-overlay{cursor:move}
.multi-select-box{
  fill:rgba(37,99,235,.025);
  stroke:#2563eb;
  stroke-width:.065;
  stroke-dasharray:.22 .12;
  pointer-events:all;
}
.multi-handle{
  fill:#2563eb;
  stroke:#fff;
  stroke-width:.045;
}
.multi-handle-n,.multi-handle-s{cursor:ns-resize}
.multi-handle-e,.multi-handle-w{cursor:ew-resize}
.multi-handle-ne,.multi-handle-sw{cursor:nesw-resize}
.multi-handle-nw,.multi-handle-se{cursor:nwse-resize}
.multi-selection-summary{
  display:flex;flex-direction:column;gap:4px;padding:10px;margin-bottom:8px;
  border:1px solid rgba(37,99,235,.25);border-radius:10px;background:rgba(37,99,235,.055)
}
.multi-selection-summary strong{font-size:11px;color:#1d4ed8}
.multi-selection-summary span{font-size:9px;color:#64748b}
.layer.active{outline:1px solid rgba(37,99,235,.5);background:#eff6ff!important;border-color:#93c5fd!important}

/* ============================================================
   V55 — CONSOLIDAÇÃO VISUAL PROFISSIONAL
   Um único bloco, três linhas estáveis, sem recorte/sobreposição.
   ============================================================ */
.editor-tools-stack{
  display:grid!important;
  grid-template-rows:38px 76px!important;
  gap:0!important;
  width:100%!important;
  margin:0 0 10px!important;
  padding:0!important;
  overflow:visible!important;
  border:1px solid #dce4ef!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:0 2px 10px rgba(31,43,63,.04)!important;
}
.editor-tools-stack>.editor-toolbar{
  grid-row:1!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:7px!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:4px 8px!important;
  border:0!important;
  border-bottom:1px solid #e3e9f1!important;
  border-radius:10px 10px 0 0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  box-sizing:border-box!important;
}
.editor-tools-stack>.editor-toolbar::-webkit-scrollbar{display:none!important}
#permanentEditorToolbar.permanent-editors-toolbar{
  grid-row:2!important;
  display:grid!important;
  grid-template-rows:38px 38px!important;
  width:100%!important;
  height:76px!important;
  min-height:76px!important;
  max-height:76px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0 0 10px 10px!important;
  background:#fff!important;
  overflow:visible!important;
  box-shadow:none!important;
  opacity:1!important;
  visibility:visible!important;
}
#permanentEditorToolbar .permanent-toolbar-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:6px!important;
  width:100%!important;
  height:38px!important;
  min-height:38px!important;
  max-height:38px!important;
  margin:0!important;
  padding:4px 8px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  white-space:nowrap!important;
}
#permanentEditorToolbar .permanent-toolbar-row::-webkit-scrollbar{display:none!important}
#permanentEditorToolbar .permanent-toolbar-row+.permanent-toolbar-row{border-top:1px solid #e3e9f1!important}
#permanentEditorToolbar .permanent-row-title{
  flex:0 0 74px!important;
  width:74px!important;
  height:28px!important;
  min-height:28px!important;
  margin:0!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(185,148,72,.48)!important;
  border-radius:8px!important;
  background:#fff8e8!important;
  color:#7d5e18!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
#permanentEditorToolbar label{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:28px!important;
  margin:0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  overflow:visible!important;
  color:#7d5e18!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
}
#permanentEditorToolbar select,
#permanentEditorToolbar input[type="number"],
#permanentEditorToolbar input[type="color"],
#permanentEditorToolbar button,
#permanentEditorToolbar .permanent-check{
  height:28px!important;
  min-height:28px!important;
  max-height:28px!important;
  margin:0!important;
  border:1px solid #d8e0ec!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#102033!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1!important;
  box-sizing:border-box!important;
  opacity:1!important;
  visibility:visible!important;
}
#permanentEditorToolbar select{width:150px!important;min-width:110px!important;padding:0 22px 0 7px!important}
#permanentEditorToolbar .barcode-toolbar-row select[data-v51="barcodeType"]{width:132px!important}
#permanentEditorToolbar .barcode-toolbar-row select[data-v51="rotation"]{width:68px!important}
#permanentEditorToolbar input[type="number"]{width:54px!important;padding:0 4px!important;text-align:center!important}
#permanentEditorToolbar input[type="color"]{width:36px!important;padding:2px!important}
#permanentEditorToolbar button{flex:0 0 28px!important;width:28px!important;min-width:28px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer!important}
#permanentEditorToolbar button.active{background:var(--gold)!important;border-color:var(--gold)!important;color:#fff!important}
#permanentEditorToolbar .permanent-check{padding:0 8px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;color:#102033!important}
#permanentEditorToolbar .permanent-check input{width:14px!important;height:14px!important;margin:0!important}
#permanentEditorToolbar :disabled{opacity:1!important;filter:none!important;color:#102033!important;background:#fff!important;cursor:default!important}
#permanentEditorToolbar.is-editing{box-shadow:inset 3px 0 0 var(--gold)!important}
.document-stage{min-height:0!important;margin-top:0!important;position:relative!important;z-index:1!important}
.inline-editor{z-index:30!important}

@media(max-width:1450px){
  #permanentEditorToolbar .permanent-toolbar-row{gap:4px!important;padding-left:5px!important;padding-right:5px!important}
  #permanentEditorToolbar .permanent-row-title{flex-basis:62px!important;width:62px!important;font-size:9px!important}
  #permanentEditorToolbar label{font-size:8px!important;gap:3px!important}
  #permanentEditorToolbar select{width:118px!important;min-width:92px!important}
  #permanentEditorToolbar input[type="number"]{width:44px!important}
}


/* V56 — acabamento estrutural profissional */
.editor-tools-stack{
  display:grid!important;
  grid-template-rows:auto auto!important;
  gap:0!important;
  border:1px solid #d9e2ef!important;
  border-radius:14px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
.editor-tools-stack>.editor-toolbar,
.editor-tools-stack>#permanentEditorToolbar{
  border:0!important;
  border-radius:0!important;
  margin:0!important;
  width:100%!important;
  max-width:100%!important;
  box-shadow:none!important;
}
.editor-tools-stack>.editor-toolbar{border-bottom:1px solid #e2e8f0!important}
#permanentEditorToolbar{
  display:grid!important;
  grid-template-rows:44px 44px!important;
  height:88px!important;
  min-height:88px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:thin!important;
}
#permanentEditorToolbar .permanent-toolbar-row{
  display:flex!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  gap:7px!important;
  min-width:max-content!important;
  height:44px!important;
  padding:5px 10px!important;
  border:0!important;
  border-bottom:1px solid #edf1f6!important;
  background:#fff!important;
}
#permanentEditorToolbar .permanent-toolbar-row:last-child{border-bottom:0!important}
#permanentEditorToolbar .permanent-row-title{
  width:88px!important;min-width:88px!important;height:32px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:1px solid #e4c778!important;border-radius:9px!important;
  background:#fff9e9!important;color:#8a5a00!important;font-weight:800!important;
}
#permanentEditorToolbar label{display:inline-flex!important;align-items:center!important;gap:5px!important;margin:0!important;white-space:nowrap!important;font-size:11px!important;font-weight:700!important;color:#7b570d!important}
#permanentEditorToolbar select,#permanentEditorToolbar input,#permanentEditorToolbar button{
  height:32px!important;min-height:32px!important;border-radius:9px!important;
  border:1px solid #d7e0ec!important;background:#fff!important;color:#122033!important;
  font-weight:500!important;box-shadow:none!important;
}
#permanentEditorToolbar button{min-width:32px!important;padding:0 9px!important;font-weight:800!important}
#permanentEditorToolbar button.active{background:#bd8b20!important;border-color:#bd8b20!important;color:#fff!important}
#permanentEditorToolbar select{min-width:140px!important;padding:0 30px 0 10px!important}
#permanentEditorToolbar input[type=number]{width:66px!important;text-align:center!important;padding:0 6px!important}
#permanentEditorToolbar input[type=color]{width:38px!important;padding:3px!important}
#permanentEditorToolbar input[type=checkbox]{width:16px!important;height:16px!important;min-height:16px!important}
#permanentEditorToolbar.has-multi-selection{box-shadow:inset 3px 0 0 #2f6fed!important}
.document-stage{min-height:0!important;position:relative!important;z-index:1!important}
#toolbarGroup,#toolbarUngroup{display:inline-flex!important}
@media(max-width:1450px){
  #permanentEditorToolbar .permanent-row-title{width:72px!important;min-width:72px!important}
  #permanentEditorToolbar select{min-width:118px!important}
  #permanentEditorToolbar .permanent-toolbar-row{gap:5px!important;padding-inline:7px!important}
}

/* ======================================================================
   V57 — CABEÇALHO PROFISSIONAL DEFINITIVO
   Um único bloco, três linhas fixas, sem recorte, sem sobreposição.
   ====================================================================== */
.editor-tools-stack{
  flex:0 0 auto!important;
  width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-rows:42px 84px!important;
  gap:0!important;
  overflow:hidden!important;
  border:1px solid #dbe3ee!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(31,43,63,.035)!important;
  box-sizing:border-box!important;
}
.editor-tools-stack>.editor-toolbar{
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:5px 8px!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  border:0!important;
  border-radius:0!important;
  border-bottom:1px solid #e3e9f1!important;
  background:#fff!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
  scrollbar-width:none!important;
}
.editor-tools-stack>.editor-toolbar::-webkit-scrollbar{display:none!important}
.editor-tools-stack>.editor-toolbar .tool{
  flex:0 0 auto!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  min-width:34px!important;
  margin:0!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  border:1px solid transparent!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#102033!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.editor-tools-stack>.editor-toolbar .tool:hover,
.editor-tools-stack>.editor-toolbar .tool.active{
  border-color:rgba(185,148,72,.48)!important;
  background:#fff8e8!important;
  color:#765918!important;
}
.editor-tools-stack>.editor-toolbar .toolbar-sep{
  flex:0 0 1px!important;
  width:1px!important;
  height:22px!important;
  margin:0 5px!important;
  background:#e3e9f1!important;
}
#permanentEditorToolbar.permanent-editors-toolbar{
  width:100%!important;
  height:84px!important;
  min-height:84px!important;
  max-height:84px!important;
  margin:0!important;
  padding:0!important;
  display:grid!important;
  grid-template-rows:42px 42px!important;
  gap:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  box-sizing:border-box!important;
}
#permanentEditorToolbar .permanent-toolbar-row{
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  max-height:42px!important;
  margin:0!important;
  padding:5px 8px!important;
  display:flex!important;
  align-items:center!important;
  align-content:center!important;
  gap:6px!important;
  flex-wrap:nowrap!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  white-space:nowrap!important;
  border:0!important;
  border-bottom:1px solid #e3e9f1!important;
  background:#fff!important;
  box-sizing:border-box!important;
  scrollbar-width:none!important;
}
#permanentEditorToolbar .permanent-toolbar-row::-webkit-scrollbar{display:none!important}
#permanentEditorToolbar .permanent-toolbar-row:last-child{border-bottom:0!important}
#permanentEditorToolbar .permanent-row-title{
  flex:0 0 86px!important;
  width:86px!important;
  min-width:86px!important;
  max-width:86px!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  margin:0!important;
  padding:0 10px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(185,148,72,.48)!important;
  border-radius:8px!important;
  background:#fff8e8!important;
  color:#765918!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
#permanentEditorToolbar label{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  margin:0!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:5px!important;
  overflow:visible!important;
  color:#765918!important;
  font-size:9px!important;
  font-weight:850!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
#permanentEditorToolbar select,
#permanentEditorToolbar input[type="number"],
#permanentEditorToolbar input[type="color"],
#permanentEditorToolbar button,
#permanentEditorToolbar .permanent-check{
  height:30px!important;
  min-height:30px!important;
  max-height:30px!important;
  margin:0!important;
  border:1px solid #d5deea!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#102033!important;
  box-shadow:none!important;
  font-size:10px!important;
  font-weight:650!important;
  line-height:1!important;
  box-sizing:border-box!important;
}
#permanentEditorToolbar select{
  flex:0 0 auto!important;
  width:150px!important;
  min-width:150px!important;
  max-width:150px!important;
  padding:0 25px 0 8px!important;
}
#permanentEditorToolbar .barcode-toolbar-row select[data-v51="barcodeType"]{
  width:132px!important;
  min-width:132px!important;
  max-width:132px!important;
}
#permanentEditorToolbar .barcode-toolbar-row select[data-v51="rotation"]{
  width:72px!important;
  min-width:72px!important;
  max-width:72px!important;
}
#permanentEditorToolbar input[type="number"]{
  flex:0 0 58px!important;
  width:58px!important;
  min-width:58px!important;
  max-width:58px!important;
  padding:0 5px!important;
  text-align:center!important;
}
#permanentEditorToolbar input[type="color"]{
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  padding:3px!important;
}
#permanentEditorToolbar button{
  flex:0 0 30px!important;
  width:30px!important;
  min-width:30px!important;
  max-width:30px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
}
#permanentEditorToolbar button.active{
  border-color:#bd8b20!important;
  background:#bd8b20!important;
  color:#fff!important;
}
#permanentEditorToolbar .permanent-check{
  flex:0 0 92px!important;
  width:92px!important;
  min-width:92px!important;
  max-width:92px!important;
  padding:0 9px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  color:#102033!important;
}
#permanentEditorToolbar .permanent-check input{
  flex:0 0 15px!important;
  width:15px!important;
  min-width:15px!important;
  height:15px!important;
  min-height:15px!important;
  margin:0!important;
}
#permanentEditorToolbar :disabled{
  opacity:1!important;
  filter:none!important;
  color:#102033!important;
  background:#fff!important;
}
.designer-card{
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  overflow:hidden!important;
}
.document-stage{
  flex:1 1 auto!important;
  min-height:0!important;
  margin:0!important;
  position:relative!important;
  z-index:1!important;
  overflow:hidden!important;
}
@media(max-width:1450px){
  #permanentEditorToolbar .permanent-row-title{flex-basis:72px!important;width:72px!important;min-width:72px!important;max-width:72px!important}
  #permanentEditorToolbar select{width:125px!important;min-width:125px!important;max-width:125px!important}
  #permanentEditorToolbar .barcode-toolbar-row select[data-v51="barcodeType"]{width:112px!important;min-width:112px!important;max-width:112px!important}
  #permanentEditorToolbar label{font-size:8.5px!important;gap:4px!important}
}


/* V58 — TOOLBAR PROFISSIONAL RECONSTRUÍDA DO ZERO
   Um único bloco, três linhas fixas, sem dependência dos estilos legados. */
#professionalEditorToolbar.pro-editor-toolbar{
  --pro-row-h:38px;
  width:100%;
  flex:0 0 auto;
  display:grid;
  grid-template-rows:repeat(3,var(--pro-row-h));
  margin:0;
  padding:0;
  overflow:hidden;
  border:1px solid #dbe3ee;
  border-radius:11px;
  background:#fff;
  box-shadow:0 2px 8px rgba(31,43,63,.035);
  box-sizing:border-box;
}
#professionalEditorToolbar .pro-toolbar-row{
  min-width:0;
  height:var(--pro-row-h);
  display:flex;
  align-items:center;
  gap:5px;
  margin:0;
  padding:4px 7px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  border:0;
  border-bottom:1px solid #e4eaf2;
  background:#fff;
  scrollbar-width:thin;
  box-sizing:border-box;
}
#professionalEditorToolbar .pro-toolbar-row:last-child{border-bottom:0}
#professionalEditorToolbar .pro-toolbar-row::-webkit-scrollbar{height:4px}
#professionalEditorToolbar .pro-toolbar-row::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:999px}
#professionalEditorToolbar button,
#professionalEditorToolbar select,
#professionalEditorToolbar input{
  margin:0;
  box-sizing:border-box;
  font-family:inherit;
}
#professionalEditorToolbar button{
  flex:0 0 auto;
  height:28px;
  min-width:29px;
  padding:0 7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid #d5deea;
  border-radius:8px;
  background:#fff;
  color:#102033;
  font-size:9.5px;
  font-weight:800;
  line-height:1;
  box-shadow:none;
  cursor:pointer;
}
#professionalEditorToolbar button:hover,
#professionalEditorToolbar button.active{
  border-color:rgba(185,148,72,.55);
  background:#fff8e8;
  color:#765918;
}
#professionalEditorToolbar .pro-toolbar-main .tool{border-color:transparent}
#professionalEditorToolbar .pro-toolbar-main .tool.active{border-color:rgba(185,148,72,.55)}
#professionalEditorToolbar .pro-row-label{
  flex:0 0 76px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(185,148,72,.48);
  border-radius:8px;
  background:#fff8e8;
  color:#765918;
  font-size:10px;
  font-weight:900;
}
#professionalEditorToolbar .pro-field{
  flex:0 0 auto;
  height:28px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#765918;
  font-size:8.5px;
  font-weight:900;
  line-height:1;
}
#professionalEditorToolbar .pro-field>span{flex:0 0 auto}
#professionalEditorToolbar select,
#professionalEditorToolbar input[type="number"]{
  height:28px;
  border:1px solid #d5deea;
  border-radius:8px;
  background:#fff;
  color:#102033;
  font-size:10px;
  font-weight:650;
  line-height:1;
  outline:none;
}
#professionalEditorToolbar select:focus,
#professionalEditorToolbar input:focus{border-color:#bd8b20;box-shadow:0 0 0 2px rgba(189,139,32,.14)}
#professionalEditorToolbar .pro-field-font select{width:150px;padding:0 24px 0 8px}
#professionalEditorToolbar .pro-field-type select{width:130px;padding:0 24px 0 8px}
#professionalEditorToolbar .pro-field-number input{width:55px;padding:0 6px;text-align:center}
#professionalEditorToolbar .pro-field-rotation select{width:72px;padding:0 22px 0 7px}
#professionalEditorToolbar .pro-field-color input{
  width:36px;height:28px;padding:3px;border:1px solid #d5deea;border-radius:8px;background:#fff;
}
#professionalEditorToolbar .pro-check{
  flex:0 0 auto;
  height:28px;
  display:inline-flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:5px;
  margin:0;
  padding:0 9px;
  border:1px solid #d5deea;
  border-radius:8px;
  background:#fff;
  color:#102033;
  font-size:9.5px;
  font-weight:800;
}
#professionalEditorToolbar .pro-check input{width:14px;height:14px;min-width:14px;margin:0;padding:0}
#professionalEditorToolbar .pro-toolbar-separator{flex:0 0 1px;width:1px;height:20px;margin:0 3px;background:#e2e8f0}
.designer-card{display:flex!important;flex-direction:column!important;gap:7px!important;overflow:hidden!important}
#professionalEditorToolbar + .document-stage{flex:1 1 auto!important;min-height:0!important;margin:0!important;overflow:hidden!important}
@media(max-width:1450px){
  #professionalEditorToolbar.pro-editor-toolbar{--pro-row-h:36px}
  #professionalEditorToolbar .pro-toolbar-row{padding:3px 5px;gap:4px}
  #professionalEditorToolbar button{height:27px;font-size:9px;padding:0 6px}
  #professionalEditorToolbar .pro-row-label{height:27px;flex-basis:66px;font-size:9.5px}
  #professionalEditorToolbar .pro-field{height:27px;font-size:8px}
  #professionalEditorToolbar select,#professionalEditorToolbar input[type="number"]{height:27px}
  #professionalEditorToolbar .pro-field-font select{width:125px}
  #professionalEditorToolbar .pro-field-type select{width:112px}
}


/* V59 - impressão isolada: somente páginas A4 geradas pelo motor de impressão */
.print-root{display:none}
@media print{
 @page{size:A4 portrait;margin:0!important}
 html,body{width:210mm!important;height:auto!important;margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
 body>.app,body .app{display:none!important}
 body>#printRoot.print-root{display:block!important;position:static!important;width:210mm!important;margin:0!important;padding:0!important;background:#fff!important}
 .print-page{display:block!important;position:relative!important;width:210mm!important;height:297mm!important;min-width:210mm!important;min-height:297mm!important;max-width:210mm!important;max-height:297mm!important;margin:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;box-shadow:none!important;border:0!important;break-after:page!important;page-break-after:always!important}
 .print-page:last-child{break-after:auto!important;page-break-after:auto!important}
 .print-slot{position:absolute!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important}
 .print-slot .obj{pointer-events:none!important;outline:0!important;box-shadow:none!important}
 .print-slot .obj.selected,.print-slot .obj.multi-selected{outline:0!important;background:transparent!important}
 .print-slot .svg-select,.print-slot .svg-handle,.print-slot .rotation-handle,.print-slot .smart-guide,.print-slot .marquee{display:none!important}
}

/* V60 - motor vetorial: uma SVG A4 por página, sem herança visual do editor */
.print-page-svg{display:block;width:210mm;height:297mm;margin:0;padding:0;background:#fff;overflow:hidden}
@media print{
 .print-page-svg{display:block!important;width:210mm!important;height:297mm!important;max-width:210mm!important;max-height:297mm!important;overflow:hidden!important}
}


/* V61 — Biblioteca interna de modelos */
.tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.tabs .tab{padding-left:3px!important;padding-right:3px!important;font-size:9.5px!important}
.library-panel{min-height:0;overflow:auto;padding-bottom:8px}
.library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px}
.library-head h3{margin:0 0 2px;font-size:12px;color:#18253a}.library-head .hint{margin:0;line-height:1.3}
.library-count{min-width:25px;height:25px;border-radius:9px;background:#17243a;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:900}
.library-primary{width:100%;height:31px!important;border:1px solid #b9902e!important;background:#b9902e!important;color:#fff!important;border-radius:9px!important;font-weight:900!important;cursor:pointer;margin-bottom:7px}
.library-primary:hover{filter:brightness(.96);box-shadow:0 5px 13px rgba(185,144,46,.2)}
.library-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:5px;margin-bottom:7px}
.library-toolbar input{min-width:0}.library-import{height:27px;display:flex;align-items:center;justify-content:center;border:1px solid #d7e0ec;background:#fff;border-radius:8px;font-size:9.5px;font-weight:900;cursor:pointer}.library-import:hover{border-color:#b9902e;background:#fffaf0}.library-import input{display:none}
.saved-library{display:grid;gap:6px}.saved-model-card{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr) 25px;align-items:center;gap:7px;border:1px solid #dce4ee;background:#fff;border-radius:10px;padding:7px;transition:.15s}.saved-model-card:hover{border-color:#d7b968;box-shadow:0 4px 12px rgba(31,43,63,.08)}
.saved-model-icon{width:30px;height:30px;border-radius:8px;background:#fff6df;color:#8a661c;display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:900}.saved-model-info{min-width:0;cursor:pointer}.saved-model-info strong,.saved-model-info span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.saved-model-info strong{font-size:10.5px;color:#17243a}.saved-model-info span{font-size:8.5px;color:#718096;margin-top:2px}
.model-more{width:25px!important;height:25px!important;padding:0!important;border-radius:7px!important;font-size:16px!important;line-height:1!important}.saved-model-actions{display:none;position:absolute;right:5px;top:35px;z-index:20;width:116px;padding:4px;background:#fff;border:1px solid #dce4ee;border-radius:9px;box-shadow:0 10px 25px rgba(31,43,63,.18)}.saved-model-card.actions-open .saved-model-actions{display:grid}.saved-model-actions button{height:25px!important;border:0!important;border-radius:6px!important;background:transparent!important;text-align:left!important;padding:4px 7px!important;font-size:9px!important}.saved-model-actions button:hover{background:#f4f7fb!important}.saved-model-actions .model-load{font-weight:900!important;color:#8a661c!important}.saved-model-actions .danger{color:#b42318!important}
.library-empty{border:1px dashed #d5deea;border-radius:10px;background:#f8fafc;padding:16px 10px;text-align:center;color:#65758b}.library-empty strong,.library-empty span{display:block}.library-empty strong{font-size:10.5px;color:#344258}.library-empty span{font-size:9px;margin-top:4px;line-height:1.35}.library-empty[hidden]{display:none}.library-note{font-size:8.5px;line-height:1.35;color:#7a8798;margin:8px 2px 0}.library-no-results{font-size:9.5px;text-align:center;color:#7a8798;padding:12px}
