@-webkit-keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size:12px;--rc-drag-handle-mobile-size:24px;--rc-drag-handle-bg-colour:rgba(0,0,0,.2);--rc-drag-bar-size:6px;--rc-border-color:rgba(255,255,255,.7);--rc-focus-color:#0088ff}.ReactCrop{position:relative;display:inline-block;cursor:crosshair;max-width:100%}.ReactCrop *,.ReactCrop :after,.ReactCrop :before{-webkit-box-sizing:border-box;box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{overflow:hidden;max-height:inherit}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{display:block;max-width:100%;max-height:inherit}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{-ms-touch-action:none;touch-action:none}.ReactCrop__crop-mask{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px)}.ReactCrop__crop-selection{position:absolute;top:0;left:0;-webkit-transform:translateZ(0);transform:translateZ(0);cursor:move}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";position:absolute;top:-1px;right:-1px;bottom:-1px;left:-1px;border:1px solid var(--rc-border-color);opacity:.3}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed white}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){-webkit-animation:marching-ants 1s;animation:marching-ants 1s;background-image:-webkit-gradient(linear,left top,right top,color-stop(50%,#fff),color-stop(50%,#444)),-webkit-gradient(linear,left top,right top,color-stop(50%,#fff),color-stop(50%,#444)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),color-stop(50%,#444)),-webkit-gradient(linear,left top,left bottom,color-stop(50%,#fff),color-stop(50%,#444));background-image:linear-gradient(90deg,#fff 50%,#444 0),linear-gradient(90deg,#fff 50%,#444 0),linear-gradient(180deg,#fff 50%,#444 0),linear-gradient(180deg,#fff 50%,#444 0);background-size:10px 1px,10px 1px,1px 10px,1px 10px;background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;color:#fff;-webkit-animation-play-state:running;animation-play-state:running;-webkit-animation-timing-function:linear;animation-timing-function:linear;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-hz:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-vt:before{content:"";display:block;position:absolute;background-color:#fff6}.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-vt:before{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333333333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6666666667%}.ReactCrop__rule-of-thirds-hz:after,.ReactCrop__rule-of-thirds-hz:before{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333333333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6666666667%}.ReactCrop__drag-handle{position:absolute;width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color)}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{left:0;cursor:nw-resize}.ReactCrop .ord-n,.ReactCrop .ord-nw{top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ReactCrop .ord-n{left:50%;cursor:n-resize}.ReactCrop .ord-ne{top:0;cursor:ne-resize}.ReactCrop .ord-e,.ReactCrop .ord-ne{right:0;-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.ReactCrop .ord-e{top:50%;cursor:e-resize}.ReactCrop .ord-se{bottom:0;right:0;-webkit-transform:translate(50%,50%);transform:translate(50%,50%);cursor:se-resize}.ReactCrop .ord-s{left:50%;cursor:s-resize}.ReactCrop .ord-s,.ReactCrop .ord-sw{bottom:0;-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.ReactCrop .ord-sw{left:0;cursor:sw-resize}.ReactCrop .ord-w{top:50%;left:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);cursor:w-resize}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{top:0;left:0;width:100%;height:var(--rc-drag-bar-size);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{right:0;top:0;width:var(--rc-drag-bar-size);height:100%;-webkit-transform:translate(50%);transform:translate(50%)}.ReactCrop__drag-bar.ord-s{bottom:0;left:0;width:100%;height:var(--rc-drag-bar-size);-webkit-transform:translateY(50%);transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{top:0;left:0;width:var(--rc-drag-bar-size);height:100%;-webkit-transform:translate(-50%);transform:translate(-50%)}.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w,.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle{display:none}@media (pointer:coarse){.ReactCrop .ord-e,.ReactCrop .ord-n,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}:root{--PhoneInput-color--focus:#03b2cb;--PhoneInputInternationalIconPhone-opacity:0.8;--PhoneInputInternationalIconGlobe-opacity:0.65;--PhoneInputCountrySelect-marginRight:0.35em;--PhoneInputCountrySelectArrow-width:0.3em;--PhoneInputCountrySelectArrow-marginLeft:var(--PhoneInputCountrySelect-marginRight);--PhoneInputCountrySelectArrow-borderWidth:1px;--PhoneInputCountrySelectArrow-opacity:0.45;--PhoneInputCountrySelectArrow-color:currentColor;--PhoneInputCountrySelectArrow-color--focus:var(--PhoneInput-color--focus);--PhoneInputCountrySelectArrow-transform:rotate(45deg);--PhoneInputCountryFlag-aspectRatio:1.5;--PhoneInputCountryFlag-height:1em;--PhoneInputCountryFlag-borderWidth:1px;--PhoneInputCountryFlag-borderColor:rgba(0,0,0,0.5);--PhoneInputCountryFlag-borderColor--focus:var(--PhoneInput-color--focus);--PhoneInputCountryFlag-backgroundColor--loading:rgba(0,0,0,0.1)}.PhoneInput{display:flex;align-items:center}.PhoneInputInput{flex:1;min-width:0}.PhoneInputCountryIcon{width:calc(var(--PhoneInputCountryFlag-height) * var(--PhoneInputCountryFlag-aspectRatio));height:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--square{width:var(--PhoneInputCountryFlag-height)}.PhoneInputCountryIcon--border{background-color:var(--PhoneInputCountryFlag-backgroundColor--loading);box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor)}.PhoneInputCountryIconImg{display:block;width:100%;height:100%}.PhoneInputInternationalIconPhone{opacity:var(--PhoneInputInternationalIconPhone-opacity)}.PhoneInputInternationalIconGlobe{opacity:var(--PhoneInputInternationalIconGlobe-opacity)}.PhoneInputCountry{position:relative;align-self:stretch;display:flex;align-items:center;margin-right:var(--PhoneInputCountrySelect-marginRight)}.PhoneInputCountrySelect{position:absolute;top:0;left:0;height:100%;width:100%;z-index:1;border:0;opacity:0;cursor:pointer}.PhoneInputCountrySelect[disabled],.PhoneInputCountrySelect[readonly]{cursor:default}.PhoneInputCountrySelectArrow{display:block;content:"";width:var(--PhoneInputCountrySelectArrow-width);height:var(--PhoneInputCountrySelectArrow-width);margin-left:var(--PhoneInputCountrySelectArrow-marginLeft);border-style:solid;border-color:var(--PhoneInputCountrySelectArrow-color);border-top-width:0;border-bottom-width:var(--PhoneInputCountrySelectArrow-borderWidth);border-left-width:0;border-right-width:var(--PhoneInputCountrySelectArrow-borderWidth);transform:var(--PhoneInputCountrySelectArrow-transform);opacity:var(--PhoneInputCountrySelectArrow-opacity)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon+.PhoneInputCountrySelectArrow{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon--border{box-shadow:0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus),inset 0 0 0 var(--PhoneInputCountryFlag-borderWidth) var(--PhoneInputCountryFlag-borderColor--focus)}.PhoneInputCountrySelect:focus+.PhoneInputCountryIcon .PhoneInputInternationalIconGlobe{opacity:1;color:var(--PhoneInputCountrySelectArrow-color--focus)}.contract-editor-wrapper{width:100%;display:flex;flex-direction:column;height:100%}.contract-editor-toolbar{position:relative;z-index:30;overflow:visible;margin-top:0;padding-top:0}.contract-editor-toolbar .relative{z-index:40}.contract-editor-toolbar .relative>div.absolute{z-index:60}.contract-menu-bar{position:relative;z-index:120}.contract-menu-dropdown{z-index:200}.toolbar-row{position:relative;overflow:visible}.toolbar-row-top{z-index:70;overflow-x:hidden;overflow-y:visible}.fullscreen .contract-editor-toolbar{position:sticky;top:0;z-index:100}.fullscreen .editor-main-area-root{flex:1;overflow:hidden}.toolbar-row-top .relative>div.absolute{z-index:90}.toolbar-row-bottom::-webkit-scrollbar,.toolbar-row-top::-webkit-scrollbar{width:0;height:0}.toolbar-row-top{scrollbar-width:none}.toolbar-row-bottom{scrollbar-width:thin}.layout-section{border:1px solid #1f2937;border-radius:10px;padding:.75rem;background:rgba(15,23,42,.35)}.layout-summary{font-size:.85rem;font-weight:600;color:#e5e7eb;cursor:pointer;list-style:none}.layout-summary::-webkit-details-marker{display:none}.layout-summary:after{content:"▾";float:right;opacity:.7}details[open] .layout-summary:after{content:"▴"}@media (prefers-color-scheme:light){.layout-section{border-color:#e5e7eb;background:#f8fafc}.layout-summary{color:#0f172a}}.text-style-button{border:1px solid rgba(148,163,184,.6);background:rgba(255,255,255,.85);color:#0f172a;border-radius:6px;padding:.2rem .5rem;font-size:.8rem;line-height:1.2;transition:all .15s ease;white-space:nowrap}.text-style-button:hover{border-color:#3b82f6;color:#1d4ed8;background:#eff6ff}.dark .text-style-button{background:rgba(15,23,42,.7);color:#e2e8f0;border-color:rgba(148,163,184,.4)}.dark .text-style-button:hover{background:rgba(30,64,175,.35);color:#bfdbfe;border-color:#60a5fa}.contract-menu-bar{background:linear-gradient(180deg,#f8fafc,#f1f5f9)}.dark .contract-menu-bar{background:linear-gradient(180deg,#1f2937,#111827)}.contract-menu-button{font-size:.85rem;padding:.35rem .6rem;border-radius:.375rem;color:#111827;transition:background .15s ease,color .15s ease}.dark .contract-menu-button{color:#e5e7eb}.contract-menu-button.is-active,.contract-menu-button:hover{background:#e2e8f0}.dark .contract-menu-button.is-active,.dark .contract-menu-button:hover{background:#374151}.contract-menu-dropdown{position:absolute;top:calc(100% + .25rem);left:0;min-width:220px;background:#ffffff;border:1px solid #e5e7eb;border-radius:.5rem;box-shadow:0 12px 24px rgba(15,23,42,.12);padding:.35rem;z-index:50}.dark .contract-menu-dropdown{background:#111827;border-color:#374151}.contract-menu-item{width:100%;display:flex;align-items:center;gap:.5rem;padding:.45rem .6rem;border-radius:.375rem;font-size:.85rem;color:#111827;transition:background .15s ease}.contract-menu-item:hover{background:#f1f5f9}.dark .contract-menu-item{color:#e5e7eb}.dark .contract-menu-item:hover{background:#1f2937}.contract-menu-item:disabled{opacity:.5;cursor:not-allowed}.contract-menu-divider{height:1px;margin:.35rem 0;background:#e5e7eb}.dark .contract-menu-divider{background:#374151}.contract-editor-content{line-height:1.6;word-break:break-word;white-space:pre-wrap;color:#000!important}.dark .contract-editor-content{color:#000!important}.page-editor-content{--typography-paragraph:#000!important;--typography-h1:#000!important;--typography-h2:#000!important;--typography-h3:#000!important;--typography-h4:#000!important;--typography-muted:#666!important}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror p,.ProseMirror span,.page-editor-content h1,.page-editor-content h2,.page-editor-content h3,.page-editor-content h4,.page-editor-content p,.page-editor-content span{color:#000!important}.contract-variable{display:inline-flex;align-items:center;padding:2px 8px;margin:0 2px;background-color:#e0f2fe;color:#0369a1;border:1px solid #7dd3fc;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875em;font-weight:500;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:all .2s}.dark .contract-variable{background-color:#0c4a6e;color:#bae6fd;border-color:#0369a1}.contract-variable:hover{background-color:#bae6fd;border-color:#0369a1;transform:scale(1.05)}.dark .contract-variable:hover{background-color:#075985;border-color:#0284c7}.contract-table{border-collapse:collapse;table-layout:fixed;width:100%;margin:1em 0;overflow:hidden;border:2px solid #cbd5e1!important}.dark .contract-table{border-color:#475569!important}.contract-table td,.contract-table th{min-width:1em;border:1px solid #cbd5e1!important;padding:8px 12px;vertical-align:top;box-sizing:border-box;position:relative;background-color:transparent}.dark .contract-table td,.dark .contract-table th{border-color:#475569!important;background-color:transparent}.contract-table th{font-weight:600;text-align:left}.contract-table th,.dark .contract-table th{background-color:transparent}.contract-table .selectedCell:after{z-index:2;position:absolute;content:"";left:0;right:0;top:0;bottom:0;background:rgba(59,130,246,.1);pointer-events:none}.contract-table tr.row-resize-active>td,.contract-table tr.row-resize-active>th{box-shadow:inset 0 -2px 0 #3b82f6}.contract-table .column-resize-handle{position:absolute;right:-2px;top:0;bottom:-2px;width:4px;background-color:#3b82f6;pointer-events:none}.contract-table p{margin:0}.ProseMirror table{border-collapse:collapse;table-layout:fixed;width:100%;margin:1em 0;overflow:hidden;border:2px solid #cbd5e1!important}.dark .ProseMirror table{border-color:#475569!important}.ProseMirror table td,.ProseMirror table th{min-width:1em;border:1px solid #cbd5e1!important;padding:8px 12px;vertical-align:top;box-sizing:border-box;position:relative;background-color:transparent}.ProseMirror table tr{height:auto}.ProseMirror table tr[style*=height] td,.ProseMirror table tr[style*=height] th{height:inherit}.dark .ProseMirror table td,.dark .ProseMirror table th{border-color:#475569!important;background-color:transparent}.ProseMirror table th{font-weight:600;text-align:left}.ProseMirror table th,.dark .ProseMirror table th{background-color:transparent}.table-style-grid{border:2px solid #0f172a!important}.table-style-grid td,.table-style-grid th{border-color:#0f172a!important}.dark .table-style-grid,.dark .table-style-grid td,.dark .table-style-grid th{border-color:#e2e8f0!important}.table-style-zebra tr:nth-child(2n) td{background-color:#f8fafc}.dark .table-style-zebra tr:nth-child(2n) td{background-color:#1f2937}.table-style-header th{background-color:#e2e8f0;font-weight:700;text-transform:uppercase;letter-spacing:.02em;font-size:.8em}.dark .table-style-header th{background-color:#1f2937;color:#e2e8f0}.contract-link{color:#3b82f6;text-decoration:underline;cursor:pointer}.contract-link:hover{color:#2563eb}.dark .contract-link{color:#60a5fa}.dark .contract-link:hover{color:#93c5fd}.ProseMirror p.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#9ca3af;pointer-events:none;height:0}.dark .ProseMirror p.is-editor-empty:first-child:before{color:#6b7280}.prose{max-width:none!important}.prose h1{font-size:2em;font-weight:700;margin-top:.67em;margin-bottom:.67em;line-height:1.2}.prose h2{font-size:1.5em;font-weight:600;margin-top:.83em;margin-bottom:.83em;line-height:1.3}.prose h3{font-size:1.25em}.prose h3,.prose h4{font-weight:600;margin-top:1em;margin-bottom:1em;line-height:1.4}.prose h4{font-size:1.1em}.prose h5{font-size:1em}.prose h5,.prose h6{font-weight:600;margin-top:1em;margin-bottom:1em;line-height:1.4}.prose h6{font-size:.9em}.prose p{margin-top:0;margin-bottom:.75em;line-height:1.6}.prose ol,.prose ul{padding-left:1.5em;margin-top:1em;margin-bottom:1em}.prose li{margin-top:.5em;margin-bottom:.5em}.prose strong{font-weight:600}.prose em{font-style:italic}.prose blockquote{border-left:4px solid #e5e7eb;padding-left:1em;font-style:italic;color:#6b7280;margin:1em 0}.dark .prose blockquote{border-left-color:#374151;color:#9ca3af}.prose code{background-color:#f3f4f6;padding:.2em .4em;border-radius:.25em;font-size:.875em;font-family:Monaco,Menlo,Ubuntu Mono,monospace}.dark .prose code{background-color:#374151}.ProseMirror [style*="text-align: left"]{text-align:left}.ProseMirror [style*="text-align: center"]{text-align:center}.ProseMirror [style*="text-align: right"]{text-align:right}.ProseMirror [style*="text-align: justify"]{text-align:justify}.ProseMirror mark{padding:.1em .2em;border-radius:.2em}@media print{.contract-editor-toolbar,.contract-editor-wrapper .sticky,.contract-editor-wrapper button,.contract-menu-bar,.custom-scrollbar,.page-preview-sidebar{display:none!important}.contract-editor-wrapper{background:white}.contract-table,table{page-break-inside:avoid;border:2px solid #000!important}.contract-table td,.contract-table th,table td,table th{page-break-inside:avoid;border:1px solid #000!important}.contract-footer,.contract-header,.contract-logo,.contract-qr{page-break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}}.contract-header{border-bottom:1px solid #e5e7eb;padding:1rem;margin-bottom:1rem;background-color:#f9fafb;display:flex;align-items:center;justify-content:space-between;gap:1rem}.dark .contract-header{border-bottom-color:#374151;background-color:#1f2937}.contract-footer{border-top:1px solid #e5e7eb;padding:1rem;margin-top:1rem;background-color:#f9fafb;display:flex;align-items:center;justify-content:space-between;gap:1rem}.dark .contract-footer{border-top-color:#374151;background-color:#1f2937}.contract-logo{-o-object-fit:contain;object-fit:contain;max-width:100%;height:auto}.contract-qr{display:block;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}.contract-footer-text,.contract-header-text{flex:1;min-width:0}@media (max-width:1024px){.contract-editor-wrapper{flex-direction:column}}.contract-editor-content::-webkit-scrollbar{width:8px}.contract-editor-content::-webkit-scrollbar-track{background:#f1f5f9}.contract-editor-content::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}.contract-editor-content::-webkit-scrollbar-thumb:hover{background:#94a3b8}.dark .contract-editor-content::-webkit-scrollbar-track{background:#1e293b}.dark .contract-editor-content::-webkit-scrollbar-thumb{background:#475569}.dark .contract-editor-content::-webkit-scrollbar-thumb:hover{background:#64748b}.contract-editor-wrapper.fullscreen{position:fixed;top:72px;left:0;width:100vw;height:calc(100vh - 72px);z-index:50;background-color:white;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 -4px 6px -1px rgba(0,0,0,.1)}.dark .contract-editor-wrapper.fullscreen{background-color:#111827}.contract-editor-wrapper.fullscreen .flex.flex-col.lg\:flex-row{flex:1;height:100%}.contract-editor-wrapper.fullscreen .flex-1.min-w-0{display:flex;flex-direction:column}.contract-editor-wrapper.fullscreen .rounded-lg.overflow-hidden{border-radius:0;border:none;flex:1;display:flex;flex-direction:column}.contract-editor-wrapper.fullscreen .overflow-y-auto{flex:1;max-height:none!important}.page-view-wrapper{background-color:#e5e7eb;padding:0 1.5rem 1.5rem;height:100%;flex:1;min-height:0;display:flex;gap:1.5rem;justify-content:center;align-items:flex-start;overflow-y:auto}.dark .page-view-wrapper{background-color:#111827}.page-container{background-color:transparent!important;color:black!important;width:auto;min-height:auto;padding:0;margin:0 auto 2rem;box-shadow:none;display:flex;flex-direction:column;align-items:center;gap:1.25rem;position:relative;box-sizing:border-box}.page-count-indicator{position:sticky;top:.5rem;align-self:flex-end;background:rgba(15,23,42,.85);color:#e2e8f0;font-size:.75rem;padding:.35rem .6rem;border-radius:999px;margin-bottom:.25rem;z-index:5}.page-container:after{content:none}.page-container .ProseMirror,.page-container .contract-footer,.page-container .contract-header,.page-editor-content .ProseMirror{color:black!important;background-color:transparent!important}.page-editor-content .ProseMirror>:first-child{margin-top:0!important}.contract-page{width:21cm;height:29.7cm;min-height:29.7cm;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.6;box-shadow:0 12px 24px rgba(15,23,42,.12);border:1px solid #cbd5e1;border-radius:6px;display:flex;flex-direction:column;position:relative;box-sizing:border-box;gap:0}.contract-page,.dark .contract-page{background:white;color:black}.contract-page-footer,.contract-page-header{padding:.2cm .6cm;display:flex;align-items:center;gap:.75rem;border-bottom:1px solid #e2e8f0}.contract-page-footer{border-top:1px solid #e2e8f0;border-bottom:none}.contract-page-body{flex:1;display:flex;flex-direction:column;overflow:hidden;cursor:text}.contract-page-content{width:100%;flex:1;display:flex;flex-direction:column}.contract-page-content>[contenteditable]{flex:1;outline:none}.contract-page-footer-text,.contract-page-header-text{flex:1;min-width:0;outline:none}.page-preview-sidebar{width:140px;flex-shrink:0;display:flex;flex-direction:column;gap:.75rem;position:sticky;top:1rem;max-height:calc(100vh - 6rem);overflow-y:auto;padding-right:.25rem}.page-preview-tile{background:transparent;border:none;text-align:left;color:#475569;font-size:.7rem;display:flex;flex-direction:column;gap:.35rem}.page-preview-tile.is-active .page-preview-inner{border-color:#3b82f6;box-shadow:0 0 0 2px rgba(59,130,246,.35)}.page-preview-inner{width:120px;height:160px;background:white;border:1px solid #cbd5f5;box-shadow:0 6px 10px rgba(15,23,42,.1);border-radius:4px;padding:6px;display:flex;flex-direction:column;gap:4px}.page-preview-footer,.page-preview-header{height:10px;background:#e2e8f0;border-radius:2px;overflow:hidden;position:relative}.page-preview-body{flex:1;background:#f8fafc;border-radius:2px;font-size:.55rem;color:#475569;padding:.2rem .25rem;overflow:hidden;line-height:1.2;position:relative}.contract-tooltip{background:#0b1220!important;color:#f8fafc!important;border:1px solid #1f2937!important;opacity:1!important;box-shadow:0 8px 20px rgba(2,6,23,.55)!important}.page-preview-scale{transform:scale(.14);transform-origin:top left;width:794px;color:inherit}.dark .page-preview-tile{color:#cbd5f5}.dark .page-preview-inner{background:#0f172a;border-color:#334155}.dark .page-preview-footer,.dark .page-preview-header{background:#1f2937}.dark .page-preview-body{background:#111827;color:#cbd5f5}.dark .page-container{background-color:white!important;color:black!important}.page-break{margin:1rem 0;position:relative;display:flex;align-items:center;justify-content:center;page-break-after:always;-moz-column-break-after:page;break-after:page;height:0;border-top:2px dashed #3b82f6;opacity:.5}.page-break:hover{opacity:1}.page-break:after{content:"Page Break";position:absolute;top:-10px;background-color:#eff6ff;color:#3b82f6;border:1px solid #bfdbfe;font-size:.75rem;padding:2px 8px;border-radius:9999px;font-weight:500}.dark .page-break{border-top-color:#60a5fa}.dark .page-break:after{background-color:#1e3a8a;color:#bfdbfe;border-color:#3b82f6}@media print{@page{size:A4;margin:0}body *{visibility:hidden!important}.contract-editor-wrapper,.contract-editor-wrapper *{visibility:visible!important}.contract-editor-wrapper{position:absolute;left:0;top:0;width:100%;height:auto!important;overflow:visible!important}.contract-editor-toolbar,.page-count-indicator,.page-preview-sidebar{display:none!important}.page-view-wrapper{padding:0;background:white}.page-container,.page-view-wrapper{height:auto!important;overflow:visible!important}.page-container{width:100%;box-shadow:none;background:transparent;min-height:auto;gap:0}.contract-page{width:21cm;height:29.7cm;box-shadow:none;border:none;page-break-after:always;-moz-column-break-after:page;break-after:page;page-break-inside:avoid;-moz-column-break-inside:avoid;break-inside:avoid}.page-break{border:none;margin:0;height:0;opacity:0;page-break-after:always!important;-moz-column-break-after:page!important;break-after:page!important}.page-break:after{display:none}}.dark .page-container{background-color:white;color:black}.resizable-image-node-wrapper{display:flex;margin-bottom:1rem}.resizable-image-node-wrapper.left{float:left;margin-right:1rem}.resizable-image-node-wrapper.right{float:right;margin-left:1rem}.resizable-image-node-wrapper.center{justify-content:center;margin-left:auto;margin-right:auto}.resizable-image-container{position:relative;display:inline-block;line-height:0}.resizable-image-container.ProseMirror-selectednode img{outline:2px solid #3b82f6;box-shadow:0 0 0 4px rgba(59,130,246,.3)}.ProseMirror p{clear:both}@media print{.resizable-image-node-wrapper{-moz-column-break-inside:avoid;break-inside:avoid}}.custom-scrollbar{overscroll-behavior:contain;overflow-y:auto}.custom-scrollbar::-webkit-scrollbar{width:6px}.custom-scrollbar::-webkit-scrollbar-track{background:transparent}.custom-scrollbar::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.dark .custom-scrollbar::-webkit-scrollbar-thumb{background:#475569}.custom-scrollbar::-webkit-scrollbar-thumb:hover{background:#94a3b8}.ProseMirror.rte-editor-content,.rte-editor-wrap .ProseMirror,.rte-editor-wrap .rte-editor-content.ProseMirror{color:var(--fallback-text,#111827)!important}.dark .ProseMirror.rte-editor-content,.dark .rte-editor-wrap .ProseMirror,.dark .rte-editor-wrap .rte-editor-content.ProseMirror{color:var(--fallback-text,#f1f5f9)!important}.ProseMirror.is-editor-empty:first-child:before{content:attr(data-placeholder);float:left;color:#9ca3af;pointer-events:none;height:0}.dark .ProseMirror.is-editor-empty:first-child:before{color:#9ca3af}.ProseMirror li,.ProseMirror p,.rte-editor-wrap .ProseMirror li,.rte-editor-wrap .ProseMirror p{color:inherit!important}.ProseMirror ol,.ProseMirror ul{margin-left:1.5rem;margin-top:.5rem;margin-bottom:.5rem;padding-left:1.5rem;list-style-position:outside}.ProseMirror ul{list-style-type:disc}.ProseMirror ol{list-style-type:decimal}.ProseMirror li{margin:.25rem 0;padding-left:.25rem;display:list-item;list-style:inherit}.ProseMirror blockquote{border-left:4px solid #e5e7eb;padding-left:1rem;margin:1rem 0;font-style:italic;color:#6b7280}.dark .ProseMirror blockquote{border-left-color:#4b5563;color:#9ca3af}.ProseMirror code{background-color:#f3f4f6;color:#dc2626;padding:.125rem .25rem;border-radius:.25rem;font-size:.875em;font-family:Courier New,monospace}.dark .ProseMirror code{background-color:#374151;color:#fca5a5}.ProseMirror h1,.ProseMirror h2,.ProseMirror h3,.ProseMirror h4,.ProseMirror h5,.ProseMirror h6,.rte-editor-wrap .ProseMirror h1,.rte-editor-wrap .ProseMirror h2,.rte-editor-wrap .ProseMirror h3,.rte-editor-wrap .ProseMirror h4,.rte-editor-wrap .ProseMirror h5,.rte-editor-wrap .ProseMirror h6{color:inherit!important}.ProseMirror h1{font-size:2em;font-weight:700;margin:.67em 0}.ProseMirror h2{font-size:1.5em;font-weight:700;margin:.75em 0}.ProseMirror h3{font-size:1.17em;font-weight:700;margin:.83em 0}.ProseMirror h4{font-size:1em;font-weight:700;margin:1.12em 0}.ProseMirror h5{font-size:.83em;font-weight:700;margin:1.5em 0}.ProseMirror h6{font-size:.67em;font-weight:700;margin:2.33em 0}.ProseMirror:focus{outline:none}