.ct-model2 .modal{max-width:1180px;width:100%;background:transparent;box-shadow:none}
.ct-model2 .m-head{justify-content:flex-start;flex-wrap:wrap;gap:16px;background:white;border:1px solid var(--line);border-radius:12px;padding:14px 18px}
.ct-model2 .m-head h3{order:2}.ct-model2 #ct-body{display:flex;flex-direction:column;gap:14px;overflow:visible;padding:18px 0}
.ct-model2 .ctm2-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0;padding:18px}
.ctm2-summary>div{min-width:0;overflow-wrap:anywhere}.ctm2-summary>div+div{border-left:1px solid var(--line);padding-left:18px}
.ctm2-summary h4{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-400);margin:0 0 12px}
.ctm2-summary .ct-emitente{border:0;padding:0;margin:0}.ctm2-summary .card{box-shadow:none;padding:10px;margin-top:12px}.ctm2-summary p{margin:8px 0;line-height:1.5}
.ct-model2 .ctm2-legacy-hide{display:none!important}.ct-model2 #ct-pend{display:none}
.ctm2-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin:0;padding:14px 18px}.ctm2-modes,.ctm2-zoom{display:flex;gap:6px;align-items:center}.ctm2-zoom [data-zoom]{min-width:46px;text-align:center}
.ctm2-stage{display:flex;justify-content:center;min-width:0;padding:14px 0}
.ct-model2 #ct-doc{box-sizing:border-box;width:100%;max-width:840px;margin:0 auto;background:white;border:1px solid var(--line);border-radius:4px;box-shadow:0 2px 10px #17211d14;padding:44px 52px;font-size:14px;line-height:1.75;overflow-wrap:anywhere;min-width:0}
.ct-model2 #ct-doc.ctm2-z80{font-size:11.2px}.ct-model2 #ct-doc.ctm2-z90{font-size:12.6px}.ct-model2 #ct-doc.ctm2-z110{font-size:15.4px}.ct-model2 #ct-doc.ctm2-z120{font-size:16.8px}
.ct-model2 .ctm2-footer{display:flex;gap:16px;align-items:center;flex-wrap:wrap;background:white;border:1px solid var(--line);border-radius:12px;padding:14px 18px}.ctm2-footer .ctm2-close{margin-right:0}
@media(max-width:760px){.ct-model2 .ctm2-summary{grid-template-columns:1fr;padding:16px}.ctm2-summary>div+div{border-left:0;border-top:1px solid var(--line);padding-left:0;padding-top:16px}.ct-model2 #ct-doc{padding:22px 18px;max-width:100%}.ct-model2 .m-head{padding:14px}.ctm2-toolbar>p{flex-basis:100%;order:3}.ctm2-footer .ctm2-close{flex-basis:auto;margin-right:0}.ctm2-footer .btn{min-height:44px;white-space:normal;flex:1 1 auto}}
.ctm2-summary [data-emit]{display:flex;flex-direction:column;align-items:stretch}
.ctm2-summary [data-emit]>h4{order:0}
.ctm2-summary [data-emit]>.ct-emitente{order:1}
.ctm2-summary [data-emit]>p{order:2}
.ctm2-summary .ct-emitente:not(:has(#ct-emit-form))>p:first-child>strong:first-child{display:none}

.ct-model2 .ctm2-footer{position:sticky;bottom:0;z-index:25;justify-content:flex-end;box-shadow:0 -4px 16px #17211d12;gap:10px}
.ctm2-footer .ctm2-modes{margin-right:auto}
.ctm2-summary #ct-emit-form{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.ctm2-summary #ct-emit-form label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;min-width:0}
.ctm2-summary #ct-emit-form input{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;padding:10px;font:inherit;background:var(--surface,#fff);color:var(--ink-800,#17241e)}
.ctm2-summary #ct-emit-form #ct-emit-erro{grid-column:1/-1;margin:0}
.ctm2-summary #ct-emit-form .btn{min-height:42px;white-space:normal}
@media(max-width:760px){.ct-model2 .ctm2-footer{padding:12px;gap:8px}.ctm2-footer .ctm2-modes{flex:1 1 100%;margin:0}.ctm2-footer .ctm2-modes .btn{flex:1}.ctm2-footer .btn{flex:1 1 auto}.ctm2-summary #ct-emit-form{grid-template-columns:1fr}}

.ct-model2 .ctm2-footer{flex-wrap:wrap}.ct-model2 .ctm2-footer #ct-fechar{order:2}.ct-model2 .ctm2-footer #ct-salvar{order:3}.ctm2-decision{grid-column:1/-1;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:12px}.ctm2-decision .btn{width:auto!important;flex:0 1 auto!important}

.ct-model2 .ctm2-save-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end;gap:12px;margin-left:auto}.ct-model2 .ctm2-save-actions .btn{flex:0 1 auto!important;width:auto!important;min-width:0;white-space:normal}

.ct-panel-actions{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-end;gap:12px}.ct-panel-actions>.btn{flex:0 1 auto!important;width:auto!important;white-space:normal}

/* Approved 02/11: end actions, no overlay, original identity. Saved text is untouched. */
.ct-model2 #ct-foot,.ct-model2 .ctm2-footer{position:static!important;inset:auto!important;z-index:auto;box-shadow:none;margin-top:22px}
.ct-model2 #ct-doc{font-family:'Arial Narrow','Liberation Sans Narrow',Arial,sans-serif;font-size:11.04pt;line-height:1.35;max-width:816px;padding:32px 70px 60px;border-radius:0;min-height:900px}
.ct-original-letterhead{text-align:center;margin:0 0 34px}.ct-original-letterhead img{display:block;width:265px;max-width:65%;height:auto;margin:0 auto}
.ct-version-item{border-top:1px solid var(--line);padding:20px 0}.ct-version-item h3{margin:0 0 8px}.ct-version-item p{line-height:1.6}.ct-version-item .ct-panel-actions{flex-wrap:wrap!important}
@media(max-width:760px){.ct-model2 #ct-doc{font-size:15px;line-height:1.6;padding:26px 20px;min-height:0}.ct-original-letterhead img{width:220px;max-width:90%}}
