#documentTiptapEditor{--doc-table-primary: #2563eb;--doc-table-primary-light: #eff6ff;--doc-table-border: #cbd5e1;--doc-table-text: #334155;--doc-table-background: #ffffff;--doc-table-selected: rgba(37, 99, 235, .14);position:relative;width:100%}#documentTiptapEditor .ProseMirror,#documentTiptapEditor.ProseMirror{position:relative;min-height:500px;width:100%;outline:none;overflow-wrap:break-word}#documentTiptapEditor .tableWrapper{position:relative;width:100%;max-width:100%;margin:14px 0;overflow-x:auto}#documentTiptapEditor table{width:100%;max-width:100%;margin:0;border-collapse:collapse;table-layout:fixed;background:var(--doc-table-background)}#documentTiptapEditor table tr{min-height:24px}#documentTiptapEditor table td,#documentTiptapEditor table th{position:relative;box-sizing:border-box;min-width:40px;min-height:24px;padding:8px 10px;border:1px solid var(--doc-table-border);vertical-align:top;overflow-wrap:anywhere;word-break:normal;background-clip:padding-box}#documentTiptapEditor table th{font-weight:600;background-color:#f8fafc;color:#0f172a}#documentTiptapEditor table td p,#documentTiptapEditor table th p{margin:0;min-height:1.25em}#documentTiptapEditor table td p+p,#documentTiptapEditor table th p+p{margin-top:6px}#documentTiptapEditor table td:hover,#documentTiptapEditor table th:hover{outline:1px solid rgba(37,99,235,.24);outline-offset:-1px}#documentTiptapEditor table .selectedCell{position:relative;background-color:var(--doc-table-selected)}#documentTiptapEditor table .selectedCell:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:#2563eb14;pointer-events:none;z-index:1}#documentTiptapEditor table .selectedCell p{position:relative;z-index:2}#documentTiptapEditor .column-resize-handle{position:absolute;top:0;bottom:0;right:-4px;width:8px;background:var(--doc-table-primary);opacity:.85;pointer-events:none;z-index:5}#documentTiptapEditor .resize-cursor,#documentTiptapEditor.resize-cursor,#documentTiptapEditor .resize-cursor td,#documentTiptapEditor .resize-cursor th{cursor:col-resize!important}#documentTiptapEditor table tr[data-row-resizing=true],#documentTiptapEditor table td[data-row-resizing=true],#documentTiptapEditor table th[data-row-resizing=true]{transition:none!important}#documentTiptapEditor.document-table-row-resize-hover,#documentTiptapEditor.document-table-row-resize-hover td,#documentTiptapEditor.document-table-row-resize-hover th{cursor:row-resize}body>.doc-table-row-resize-handle{position:fixed!important;display:block;height:10px;padding:0;margin:0;border:0;background:transparent;cursor:row-resize!important;touch-action:none;-webkit-user-select:none;user-select:none;pointer-events:auto;z-index:10000}body>.doc-table-row-resize-handle:hover,body>.doc-table-row-resize-handle.is-active{background:#2563eb1f}body>.doc-table-row-resize-handle:after{content:"";position:absolute;left:0;right:0;top:4px;height:2px;background:var(--doc-table-primary);opacity:0;pointer-events:none}body>.doc-table-row-resize-handle:hover:after,body>.doc-table-row-resize-handle.is-active:after{opacity:1}.doc-table-hover-button,.document-table-hover-button{position:fixed;display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;box-shadow:0 4px 12px #0f172a26;font-family:inherit;font-size:20px;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;z-index:10001;transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}.doc-table-hover-button:hover,.document-table-hover-button:hover{background:#eff6ff;color:#1d4ed8;border-color:#93c5fd;box-shadow:0 5px 16px #2563eb2e}.doc-table-hover-button:focus-visible,.document-table-hover-button:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.doc-table-menu,.document-table-dropdown{position:fixed;width:235px;max-width:calc(100vw - 16px);max-height:75vh;overflow-y:auto;padding:7px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 18px 45px #0f172a2e;color:#334155;font-family:inherit;font-size:13px;z-index:10002;overscroll-behavior:contain}.doc-table-menu button,.document-table-dropdown button{display:block;width:100%;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:#334155;font-family:inherit;font-size:13px;font-weight:500;line-height:1.4;text-align:left;cursor:pointer;transition:background-color .15s ease,color .15s ease}.doc-table-menu button:hover:not(:disabled),.document-table-dropdown button:hover:not(:disabled){background:#eff6ff;color:#1d4ed8}.doc-table-menu button:disabled,.document-table-dropdown button:disabled{opacity:.4;cursor:not-allowed}.doc-table-menu button:focus-visible,.document-table-dropdown button:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.doc-table-menu::-webkit-scrollbar,.document-table-dropdown::-webkit-scrollbar{width:6px}.doc-table-menu::-webkit-scrollbar-thumb,.document-table-dropdown::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}.document-table-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:8px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;box-shadow:0 10px 30px #0f172a1f;z-index:10000}.document-table-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;padding:6px 9px;border:1px solid transparent;border-radius:7px;background:transparent;color:#475569;font-size:13px;cursor:pointer}.document-table-toolbar button:hover{background:#eff6ff;color:#2563eb}.document-table-toolbar button.is-active{background:#dbeafe;color:#1d4ed8;border-color:#bfdbfe}.document-table-border-panel{display:flex;flex-direction:column;gap:12px;width:280px;max-width:calc(100vw - 24px);padding:14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;box-shadow:0 16px 40px #0f172a26}.document-table-border-panel label{display:block;margin-bottom:5px;color:#475569;font-size:12px;font-weight:600}.document-table-border-panel select,.document-table-border-panel input[type=number]{width:100%;min-height:36px;padding:7px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#0f172a;font-size:13px;outline:none}.document-table-border-panel select:focus,.document-table-border-panel input[type=number]:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.document-table-border-panel input[type=color]{width:42px;height:36px;padding:3px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;cursor:pointer}.document-table-border-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.document-table-border-options button{display:flex;align-items:center;justify-content:center;min-height:36px;padding:7px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;color:#475569;cursor:pointer}.document-table-border-options button:hover{border-color:#93c5fd;background:#eff6ff;color:#2563eb}.document-table-border-options button.is-active{border-color:#2563eb;background:#dbeafe;color:#1d4ed8}.document-table-drag-handle{position:absolute;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#64748b;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;z-index:10}.document-table-drag-handle:hover{background:#eff6ff;color:#2563eb;border-color:#93c5fd}.document-table-drag-handle:active{cursor:grabbing}.document-table-is-dragging{opacity:.85}.document-table-is-resizing,.document-table-is-resizing *{-webkit-user-select:none!important;user-select:none!important}.document-table-is-resizing{cursor:row-resize!important}#documentTiptapEditor .ProseMirror img{max-width:100%;cursor:pointer}@media(max-width:640px){#documentTiptapEditor table td,#documentTiptapEditor table th{padding:6px;font-size:12px}.doc-table-menu,.document-table-dropdown{width:215px;max-height:65vh}.document-table-toolbar{gap:4px;padding:6px}.document-table-toolbar button{min-width:30px;height:30px;padding:5px}}@media print{.doc-table-hover-button,.document-table-hover-button,.doc-table-menu,.document-table-dropdown,.document-table-toolbar,.document-table-border-panel,.document-table-drag-handle,.doc-table-row-resize-handle,body>.doc-table-row-resize-handle,#documentTiptapEditor .column-resize-handle{display:none!important}#documentTiptapEditor table{border-collapse:collapse;break-inside:auto}#documentTiptapEditor table tr{break-inside:avoid}#documentTiptapEditor table td,#documentTiptapEditor table th{outline:none!important}#documentTiptapEditor table .selectedCell{background-color:transparent}#documentTiptapEditor table .selectedCell:after{display:none}}#documentTiptapEditor table td[data-row-resize-hover=true],#documentTiptapEditor table th[data-row-resize-hover=true]{cursor:row-resize!important}#documentTiptapEditor.document-table-row-is-resizing,#documentTiptapEditor.document-table-row-is-resizing *{cursor:row-resize!important;-webkit-user-select:none!important;user-select:none!important}#documentTiptapEditor table td,#documentTiptapEditor table th{box-sizing:border-box}#documentTiptapEditor .resize-cursor,#documentTiptapEditor .resize-cursor td,#documentTiptapEditor .resize-cursor th{cursor:col-resize!important}
