@font-face{font-family:StudioCentury;src:url('/api/template-studio/font/regular') format('truetype');font-weight:400}@font-face{font-family:StudioCentury;src:url('/api/template-studio/font/bold') format('truetype');font-weight:700}
.studio-draft-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;margin:15px 0 26px}.studio-draft-list article{display:flex;align-items:flex-start;gap:10px;flex-direction:column;padding:18px;background:white;border:1px solid #e4e9ef;border-radius:4px}.studio-draft-list strong{color:var(--blue)}
dialog.template-studio-dialog{width:calc(100vw - 24px);max-width:none;height:calc(100vh - 24px);max-height:none;padding:0;overflow:hidden}dialog.template-studio-dialog[open]{display:flex;flex-direction:column}.template-studio-dialog .dialog-header{flex:none;padding:14px 20px}.template-studio-dialog .dialog-body{position:relative;display:flex;flex:1;flex-direction:column;min-height:0;padding:0;overflow:hidden}.studio-top{display:flex;align-items:center;gap:12px;padding:12px 20px;border-bottom:1px solid #e7edf3;flex:none}.studio-top label{display:flex;align-items:center;gap:10px;font-size:12px;flex:1}.studio-top input{min-width:160px;max-width:450px;flex:1;padding:8px;border:1px solid #d1dae3;border-radius:3px;font-family:inherit;color:#003a8c}.studio-workspace{display:grid;grid-template-columns:175px minmax(250px,1fr) 290px;flex:1;min-height:0}.studio-palette{background:#f6f9fc;padding:15px 12px;overflow:auto;border-right:1px solid #e4eaf0}.studio-palette h3{margin:0 0 10px;color:var(--blue);font-size:14px}.studio-palette p{font-size:11px;color:#6d7d8c;line-height:1.6}.studio-palette-item{display:flex;gap:8px;align-items:center;width:100%;padding:11px 8px;border:1px solid #dce6ed;background:white;margin-bottom:7px;text-align:left;font-family:inherit;font-size:12px;color:#21446a;border-radius:3px;cursor:pointer}.studio-palette-item:hover{background:#eaf5f4;border-color:#6bb097}.studio-palette-item svg{width:16px;height:16px;flex:none}.studio-layer{display:block;width:100%;padding:8px 6px;border:0;border-left:3px solid transparent;background:transparent;text-align:left;font:inherit;font-size:11px;cursor:pointer;color:#61778c}.studio-layer.selected{border-color:#1b8a4b;background:#e7f1ef;color:#003a8c}.studio-center{min-width:0;min-height:0;display:flex;flex-direction:column;background:#e6ebf1}.studio-toolbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px 12px;background:#f8fafc;flex:none;border-bottom:1px solid #d9e2eb}.studio-toolbar .document-kind-tabs{margin:0;gap:3px}.studio-toolbar .btn{min-height:28px;font-size:11px;padding:5px 8px}.studio-toolbar .icon-btn{width:28px;height:28px;font-size:18px}.studio-toolbar select{font:inherit;font-size:11px;border:1px solid #cfd9e4;padding:6px;max-width:145px}.studio-page-tabs{display:flex;gap:6px;align-items:center;min-height:38px;padding:6px 14px;background:#f4f7fb;font-size:11px}.studio-page-tabs .btn{font-size:11px;padding:4px 12px;min-height:26px}.studio-hint{font-size:10px;color:#60738a;margin:5px 14px}.studio-viewport{overflow:auto;flex:1;min-height:0;padding:16px 24px}.studio-paper-wrap{position:relative;margin:0 auto 20px;flex:none}.studio-paper{position:absolute;left:0;top:0;transform-origin:top left;background:white;box-shadow:0 3px 15px #20324826;font-family:StudioCentury,Arial,sans-serif;line-height:1.25;color:#333}.studio-paper-background{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.studio-document-block{cursor:pointer;position:relative;outline:1.5px dashed transparent;white-space:normal;overflow-wrap:anywhere;touch-action:none;user-select:none}.studio-document-block:hover{outline-color:#83b7d6}.studio-document-block.selected{outline:2px dashed #1689cf;z-index:2}.studio-document-block>img{width:100%;height:100%;object-fit:contain;pointer-events:none}.studio-document-block .studio-image-placeholder{display:flex;align-items:center;justify-content:center;height:100%;border:1px dashed #aabfc9;color:#617b8d;font-size:10pt;background:#f4f8fa}.studio-qr-placeholder{display:flex;height:100%;flex-direction:column;align-items:center;justify-content:center;color:#183954;background:#f1f4f6;font-size:45pt}.studio-qr-placeholder small{font:8pt Arial}.studio-inspector{overflow:auto;padding:18px 16px;background:white;border-left:1px solid #d8e2ed}.studio-inspector h3{font-size:15px;color:var(--blue);margin:0 0 14px}.studio-inspector .field{margin-bottom:13px;font-size:12px}.studio-inspector input,.studio-inspector select,.studio-inspector textarea{min-height:32px;font-size:12px}.studio-inspector textarea{height:150px;line-height:1.6}.studio-inspector .check{font-size:12px;padding:8px 0}.studio-measures{display:grid;grid-template-columns:1fr 1fr;gap:8px}.studio-measures .field{min-width:0}.studio-block-actions{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:15px}.studio-block-actions .btn{font-size:10px;padding:4px 7px;min-height:28px}.studio-tag-choices{max-height:180px;overflow:auto;background:#f7f9fc;border:1px solid #e5eaf0;margin-bottom:14px;padding:6px}.studio-tag-choices label{display:flex;gap:7px;align-items:flex-start;padding:6px;font-size:11px;cursor:pointer}.studio-tag-choices label[hidden]{display:none}.studio-tag-choices input{min-height:0;margin-top:3px}.studio-tag-choices code{display:block;color:#42719a;font-size:10px}.studio-selection-empty{padding:35px 4px;color:#72859b;text-align:center;font-size:12px;line-height:1.7}.studio-selection-empty svg{width:38px;height:38px;color:#8aa0b7}.studio-bottom{display:flex;gap:10px;align-items:center;flex:none;padding:12px 18px;border-top:1px solid #dde5ee;background:white}.studio-bottom>span{flex:1;font-size:11px;color:#63768a}.studio-bottom .form-error{max-width:350px;font-size:11px}.studio-bottom .btn{font-size:12px}.studio-official-panel{position:absolute;inset:0;background:white;z-index:10;padding:15px 20px;display:flex;flex-direction:column;min-height:0}.studio-official-panel[hidden]{display:none}.studio-official-heading{display:flex;justify-content:space-between;align-items:center;flex:none}.studio-official-heading h3{color:var(--blue)}.studio-official-panel>.review-document{flex:1;min-height:0}.studio-official-panel #review-preview{min-height:0}.studio-report-body{position:absolute;left:20mm;right:20mm;top:39.76mm;bottom:32.51mm;font-size:10pt;line-height:1.15;text-align:justify}.studio-report-body h1,.studio-report-cover h1{font-size:20pt;color:#2d569e;line-height:1.15;margin:0 0 6pt;text-align:left}.studio-report-body h2{font-size:14pt;color:#2d569e;margin:12pt 0 6pt;text-align:left}.studio-report-body h3,.studio-report-cover h3{font-size:12pt;color:#1a8a4a;margin:0 0 6pt}.studio-report-meta{font-size:8.5pt;color:#666}.studio-report-body .studio-document-block>div{line-height:1.15;margin-bottom:6pt}.studio-report-body table{border-collapse:collapse;width:100%;font-size:8.5pt}.studio-report-body th{background:#2d569e;color:white;text-align:left}.studio-report-body td,.studio-report-body th{border:1px solid #bfc8d6;padding:5pt}.studio-report-cover{position:absolute;left:20mm;right:20mm;top:39.76mm;bottom:32.51mm;text-align:center;font-size:10pt}.studio-report-cover h1{text-align:center}.studio-cover-title{margin:40mm 0 42mm}.studio-report-cover>p:last-child{margin-top:22mm;font-size:8.5pt;color:#666}.studio-report-closing p{line-height:1.6}.studio-report-signature{text-align:center;margin-top:18mm}.studio-report-signature>span{display:block;font-size:9pt;color:#72889b;margin-bottom:7mm}.studio-report-signature p{margin:5pt}.studio-report-signature small{font-size:8.5pt;color:#666}.studio-closing-date{margin-top:15mm;text-align:center}.verification-page{max-width:760px;margin:40px auto;background:white;padding:35px}.verification-page>img{width:220px;margin-bottom:25px}.verification-page h1{color:#003a8c}.verification-page p{line-height:1.6}
@media(min-width:1500px){.studio-workspace{grid-template-columns:210px minmax(350px,1fr) 330px}}
@media(max-width:950px){.studio-workspace{grid-template-columns:135px minmax(230px,1fr) 245px}.studio-top .tag{display:none}.studio-top{padding:8px}.studio-top label{font-size:10px}.studio-top .btn{font-size:10px;padding:6px}.studio-inspector{padding:12px}.studio-palette{padding:10px}.studio-toolbar{gap:3px}.studio-bottom{padding:8px}.studio-bottom .btn{font-size:10px}}@media(max-width:700px){dialog.template-studio-dialog{width:100vw;height:100vh;max-height:100vh}.studio-workspace{grid-template-columns:110px minmax(220px,1fr);overflow:auto}.studio-inspector{grid-column:1/-1;max-height:300px}.studio-center{min-height:480px}.studio-top{flex-wrap:wrap}.studio-top label{flex-basis:100%}.studio-bottom{flex-wrap:wrap}.studio-bottom>span{flex-basis:100%}}
.studio-page-number{position:absolute;right:19.5mm;bottom:34.3mm;min-width:20mm;text-align:right;background:white;font-family:StudioCentury,Arial,sans-serif;font-size:10pt;padding:1mm 0}
.model-list-toolbar{display:flex;align-items:flex-end;gap:24px;margin:25px 0 14px;flex-wrap:wrap}.model-document-filter{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#666;min-width:240px}.model-document-filter select{height:34px;border:1px solid #c6cdd3;background:white;padding:5px 12px;font:inherit;color:#465866}.model-active-filter{display:flex;align-items:center;gap:8px;min-height:34px;font-size:12px;color:#66717b}.model-active-filter input{width:15px;height:15px;accent-color:#29896f}.model-list-toolbar>.primary{background:#27816d;border-color:#27816d;border-radius:3px;min-height:34px;padding:7px 18px;font-size:12px}.model-list-settings{background:none;border:0;color:#657b86;font:inherit;font-size:11px;padding:9px;cursor:pointer}.model-list{width:100%;border-collapse:collapse;table-layout:auto}.model-list th{text-transform:uppercase;background:white;color:#5b6269;font-size:11px;font-weight:600;padding:13px 12px;border-bottom:1px solid #eee;text-align:left}.model-list td{height:53px;padding:9px 12px;color:#676c72;font-size:12px;border-bottom:1px solid #eceef0}.model-list tbody tr:nth-child(odd){background:#fafafa}.model-list td:first-child{width:42%;min-width:210px}.model-name-input{width:100%;min-width:180px;padding:7px 0;border:1px solid transparent;background:transparent;color:inherit;font:inherit;outline:none}.model-name-input:focus{border-bottom-color:#3e9cd3;background:white}.model-list th:nth-child(4),.model-list th:nth-child(5),.model-list td:nth-child(4),.model-list td:nth-child(5){text-align:center;width:65px}.model-row-actions{display:flex;gap:12px;align-items:center;justify-content:flex-start;min-width:115px}.model-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:27px;border:0;padding:2px;background:none;color:#238bcb;cursor:pointer}.model-icon svg{width:18px;height:18px}.model-icon.danger{color:#e96065}.model-icon:disabled{opacity:.3;cursor:not-allowed}.model-switch{display:inline-flex;align-items:center;width:30px;height:17px;border:0;border-radius:12px;padding:2px;background:#c9cfd4;cursor:pointer;transition:background .15s}.model-switch span{height:13px;width:13px;border-radius:50%;background:white;box-shadow:0 1px 2px #0002;transition:transform .15s}.model-switch[aria-checked=true]{background:#51bda7}.model-switch[aria-checked=true] span{transform:translateX(13px)}.model-switch:disabled{opacity:.55;cursor:not-allowed}.model-list-empty{text-align:center!important;padding:35px!important}.model-drafts{margin:15px 0;padding:12px;background:#f6f9fb;font-size:12px}.model-drafts summary{cursor:pointer;color:#2d569e}.model-drafts table{width:100%;margin-top:10px}@media(max-width:900px){.model-list-toolbar{gap:12px}.model-list{min-width:760px}.model-list-toolbar>.primary{margin-left:0}}
.studio-tag-choices input[type=checkbox],.studio-inspector .check input[type=checkbox]{width:14px;height:14px;min-height:0;flex:none;accent-color:#168b54}.studio-tag-choices label>span{flex:1;min-width:0}

.certificate-art-preview{display:flex;flex-direction:column;gap:5px;margin:12px 0 4px;width:230px;max-width:100%;font-size:11px}.certificate-art-preview img{display:block;width:100%;height:180px;object-fit:contain;background:#f0f3f7;border:1px solid #dce4ed}.studio-original-art img{display:block;max-width:none;object-fit:fill}

@font-face{font-family:'Century Gothic';src:url('/api/template-studio/fonts/CenturyGothic/regular') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Century Gothic';src:url('/api/template-studio/fonts/CenturyGothic/bold') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Century Gothic';src:url('/api/template-studio/fonts/CenturyGothic/italic') format('truetype');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'Century Gothic';src:url('/api/template-studio/fonts/CenturyGothic/boldItalic') format('truetype');font-weight:700;font-style:italic;font-display:swap;}
@font-face{font-family:'Liberation Sans';src:url('/api/template-studio/fonts/LiberationSans/regular') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Liberation Sans';src:url('/api/template-studio/fonts/LiberationSans/bold') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Liberation Sans';src:url('/api/template-studio/fonts/LiberationSans/italic') format('truetype');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'Liberation Sans';src:url('/api/template-studio/fonts/LiberationSans/boldItalic') format('truetype');font-weight:700;font-style:italic;font-display:swap;}
@font-face{font-family:'Liberation Serif';src:url('/api/template-studio/fonts/LiberationSerif/regular') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Liberation Serif';src:url('/api/template-studio/fonts/LiberationSerif/bold') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Liberation Serif';src:url('/api/template-studio/fonts/LiberationSerif/italic') format('truetype');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'Liberation Serif';src:url('/api/template-studio/fonts/LiberationSerif/boldItalic') format('truetype');font-weight:700;font-style:italic;font-display:swap;}
@font-face{font-family:'Liberation Mono';src:url('/api/template-studio/fonts/LiberationMono/regular') format('truetype');font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:'Liberation Mono';src:url('/api/template-studio/fonts/LiberationMono/bold') format('truetype');font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:'Liberation Mono';src:url('/api/template-studio/fonts/LiberationMono/italic') format('truetype');font-weight:400;font-style:italic;font-display:swap;}
@font-face{font-family:'Liberation Mono';src:url('/api/template-studio/fonts/LiberationMono/boldItalic') format('truetype');font-weight:700;font-style:italic;font-display:swap;}
.studio-text-options{display:flex;gap:8px;flex-wrap:wrap}.studio-photo-list figure{margin:12px 0;padding:8px;border:1px solid #d8e0e9}.studio-photo-list img{width:100%;max-height:140px;object-fit:contain}.studio-report-photo{margin:8mm 0;break-inside:avoid}.studio-report-photo img{display:block;width:100%;max-height:106mm;object-fit:contain}.studio-report-photo figcaption{margin-top:3mm}.studio-report-body h1,.studio-report-body h2,.studio-report-body h3{text-align:left;font-family:inherit}.studio-report-body table{width:100%;table-layout:fixed}.studio-report-body td{overflow-wrap:anywhere}

.review-photos figure{margin:15px 0;padding:10px;border:1px solid #dce4ed}.review-photos img{width:100%;max-height:180px;object-fit:contain}.review-photos textarea{height:65px}.studio-report-body .studio-document-block>div{line-height:inherit}

.studio-report-body table{font-size:inherit}
/* Paleta em cartões (mesmo formato do editor de modelos Geomais): ícone em círculo + nome do bloco. */
.studio-workspace{grid-template-columns:268px minmax(250px,1fr) 300px}
@media(min-width:1500px){.studio-workspace{grid-template-columns:330px minmax(350px,1fr) 330px}}
@media(max-width:950px){.studio-workspace{grid-template-columns:150px minmax(230px,1fr) 245px}.studio-block-grid{grid-template-columns:1fr}}
.studio-block-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:8px;margin-bottom:16px}
.studio-block-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;min-height:96px;padding:10px 5px 8px;border:1px solid #e1e8ef;border-radius:8px;background:#fff;box-shadow:0 1px 4px #0b2d5212;font:inherit;font-size:11px;line-height:1.25;color:#21446a;text-align:center;cursor:pointer}
.studio-block-card:hover,.studio-block-card:focus-visible{border-color:#6bb097;box-shadow:0 3px 10px #0b2d5222;outline:none}
.studio-block-icon{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:#e8f0fb;color:#0b4ea2;flex:none}
.studio-block-icon svg{width:22px;height:22px}
.studio-block-label{overflow-wrap:anywhere;hyphens:auto}
/* Arte de fundo da frente/verso */
.studio-paper-art{position:absolute;inset:0;z-index:0;pointer-events:auto}
.studio-paper-art img{width:100%;height:100%;object-fit:fill;display:block;pointer-events:none}
.studio-paper-art.selected{outline:2px dashed #1b8a4b;outline-offset:-2px}
.studio-paper .studio-document-block{z-index:1}
.studio-bg-row{display:flex;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #eef2f6}
.studio-bg-row strong{display:block;font-size:12px;color:#21446a}.studio-bg-row .small{display:block}
.studio-bg-thumb{display:inline-flex;align-items:center;justify-content:center;width:64px;height:45px;flex:none;border:1px solid #dce6ed;border-radius:4px;background:#f6f9fc;color:#8aa0b5;overflow:hidden}
.studio-bg-thumb img{width:100%;height:100%;object-fit:cover}.studio-bg-thumb svg{width:22px;height:22px}
.studio-bg-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.studio-bg-actions .btn{font-size:11px;padding:5px 9px}
.studio-bg-preview{border:1px solid #dce6ed;border-radius:4px;background:#f6f9fc;margin:8px 0;aspect-ratio:297/210;overflow:hidden}.studio-bg-preview img{width:100%;height:100%;object-fit:fill}
/* Selos da lista de modelos (mesmo padrão do editor modelos_de_relatorios) */
.model-name-cell{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.model-name-cell .model-name-input{flex:1;min-width:180px}
.selo-sis,.selo-alt{font-size:9.5px;line-height:15px;font-weight:700;padding:1px 7px;border-radius:99px;white-space:nowrap}
.selo-sis{color:#003a8c;background:#e8f0fb;border:1px solid #c9dbf2}.selo-alt{color:#8a5a00;background:#fff3d6;border:1px solid #f0d49a}
.model-icon:disabled{opacity:.35;cursor:not-allowed}
/* Barra de ações do bloco selecionado: mesmos botões 32 px do editor modelos_de_relatorios (Geomais template_2). */
.studio-block-actions-bar{position:fixed;left:0;top:0;width:0;height:0;z-index:30;pointer-events:none}
.studio-block-action-group{position:fixed;display:flex;gap:0;pointer-events:auto}
.studio-block-action{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;padding:0;border:1px solid #3aab85;border-radius:0;background:#003a8c;color:#fff;cursor:pointer;opacity:.92}
.studio-block-action:hover,.studio-block-action:focus-visible{background:#0050a4;opacity:1}
.studio-block-action:focus-visible{outline:2px solid #1890ff;outline-offset:2px}
.studio-block-action[data-block-toolbar="remover"]:hover{background:#ff4d4f}
.studio-block-action[data-block-toolbar="mover"]{cursor:grab;touch-action:none}
.studio-block-action svg{width:14px;height:14px;fill:currentColor}
.studio-document-block.selected{outline:1px dashed rgba(0,58,140,.85)}
.studio-crest-placeholder{flex-direction:column;gap:2px;text-align:center;font-size:8pt;line-height:1.2}.studio-crest-placeholder small{font-size:6pt;color:#8193a5}
@keyframes studio-flash{from{box-shadow:inset 0 0 0 3px #3aab85}to{box-shadow:inset 0 0 0 3px transparent}}.studio-inspector-flash{animation:studio-flash 1s ease-out}
/* Painel Arte de fundo / marca d'água (frente e verso, A4 exato) */
.studio-bg-slot{border:1px solid #e1e8ef;border-radius:6px;padding:10px;margin:0 0 12px;background:#fbfcfe}
.studio-bg-slot-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.studio-bg-slot-head strong{color:#21446a;font-size:13px}.studio-bg-slot-head .check{padding:0}
.studio-bg-a4{aspect-ratio:297/210;border:1px dashed #b8cddc;border-radius:3px;background:#f2f6fa;overflow:hidden;display:flex;align-items:center;justify-content:center}
.studio-bg-a4 img{width:100%;height:100%;object-fit:fill;display:block}
.studio-bg-a4 span{display:flex;flex-direction:column;align-items:center;gap:4px;color:#8aa0b5;font-size:11px}.studio-bg-a4 svg{width:28px;height:28px}
.studio-bg-warning{font-size:11px;color:#8a5a00;background:#fff3d6;border:1px solid #f0d49a;border-radius:3px;padding:5px 7px;margin:6px 0 0}
.studio-bg-opacity{margin:8px 0 0}.studio-bg-opacity>div{display:flex;align-items:center;gap:6px}.studio-bg-opacity input[type=range]{flex:1;min-height:0}.studio-bg-opacity input[type=number]{width:62px}
