/* Editor and saved document content only: no global page-width overrides. */
.itda-editor{--ck-z-default:100;--ck-z-panel:10050;min-width:0;max-width:100%;text-align:left}
.itda-editor .ck-editor__editable_inline{min-height:360px;max-height:70vh;padding:24px;line-height:1.7;overflow:auto}
.itda-editor-status{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:9px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-top:0;font-size:12px;color:#64748b}
.itda-editor-recovery{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;background:#eff6ff;border:1px solid #bfdbfe;color:#1e40af;font-size:13px}
.itda-editor-recovery[hidden]{display:none}
.itda-editor-recovery button{border:1px solid #93c5fd;border-radius:6px;background:white;padding:6px 10px;color:#1e40af}
.ck-fullscreen__main-wrapper{z-index:10000!important}
.ck-fullscreen__main-wrapper .ck-editor__editable_inline{max-height:none;min-height:75vh}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .image{display:table;clear:both;text-align:center;margin:1em auto;max-width:100%}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .image img{display:block;max-width:100%;height:auto;margin:0 auto}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .image-style-side{float:right;clear:none;margin-left:1.5em;max-width:50%}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .image.image_resized{display:block;box-sizing:border-box}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .image.image_resized img{width:100%}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) figcaption{text-align:center;padding:6px;background:#f8fafc;font-size:12px}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .table{display:table;max-width:100%;margin:1em auto}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .table table{width:100%;border-collapse:collapse}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .todo-list{list-style:none;padding-left:0}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .todo-list input{pointer-events:none;width:auto;margin-right:8px}
:is(.document,.document-detail,.draft-modal-document,.forms-preview) .page-break{border-top:1px dashed #cbd5e1;clear:both;margin:20px 0}
@media(max-width:760px){.itda-editor .ck-editor__editable_inline{min-height:280px;padding:14px}.itda-editor-status{font-size:11px}.itda-editor .ck-toolbar{max-width:100%}}
@media print{.page-break{break-after:page;border:0!important}.itda-editor-status,.itda-editor-recovery{display:none}}

/* One native CKEditor toolbar: automatic overflow uses the available editor width. */
.itda-editor .ck-editor__main{padding:0;background:transparent}
.itda-editor .ck-editor__editable_inline{box-sizing:border-box;width:100%;margin:0;background:white;box-shadow:none;min-height:360px;padding:20px}
.itda-editor .ck-editor__top .ck.ck-toolbar{padding:5px;border-color:#d7e0eb;background:#f7f9fc}
.itda-editor .ck-editor__top .ck-toolbar__items{gap:2px}
.itda-editor .ck-editor__top .ck.ck-button{min-height:32px;min-width:30px;border-radius:4px}
.itda-editor .ck-editor__top .ck.ck-button .ck-icon{width:17px;height:17px}
.itda-editor .ck-editor__top .ck.ck-button.itda-font-button{min-width:105px;max-width:140px;background:white;border:1px solid #d4deeb}
.itda-editor .ck-editor__top .itda-font-button .ck-button__label{max-width:96px!important;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.itda-editor .ck-editor__top .ck.ck-button.itda-size-button{min-width:48px;background:white;border:1px solid #d4deeb}
.itda-editor .ck-editor__top .ck-toolbar__separator{margin:0 4px;background:#d7e0eb}
@media(max-width:760px){
  .itda-editor .ck-editor__top .ck.ck-toolbar{padding:4px}
  .itda-editor .ck-editor__top .ck.ck-button{min-height:36px;min-width:34px}
  .itda-editor .ck-editor__top .ck.ck-button.itda-font-button{min-width:95px;max-width:110px}
  .itda-editor .ck-editor__top .itda-font-button .ck-button__label{max-width:70px!important}
  .itda-editor .ck-editor__top .ck.ck-button.itda-size-button{min-width:46px}
  .itda-editor .ck-editor__editable_inline{min-height:280px;padding:14px;max-height:65vh}
}
