 /* Enhanced PDF Viewer Styles */
                .pdf-preview-container {
                    position: relative;
                    border: 1px solid #dee2e6;
                    border-radius: 8px;
                    overflow: auto;
                    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
                    min-height: 600px;
                    max-height: 700px;
                    padding: 12px;
                    scroll-behavior: smooth;
                    overscroll-behavior: contain;
                }

                .document-viewer-container .pdf-preview-container {
                    display: block;
                    justify-content: initial;
                    align-items: initial;
                }

                #process-pdf-preview-container {
                    position: relative;
                    display: block;
                    width: 100%;
                    overflow: auto;
                    overflow-x: auto;
                    overflow-y: auto;
                    scrollbar-gutter: stable both-edges;
                }

                #process-pdf-preview-container::-webkit-scrollbar:horizontal {
                    height: 10px;
                }

                #process-pdf-preview-container::-webkit-scrollbar:vertical {
                    width: 10px;
                }

                #process-pdf-preview-container.adobe-mode {
                    padding: 0;
                    background: #fff;
                }

                #process-adobe-viewer-host {
                    width: 100%;
                    min-height: 640px;
                    height: 100%;
                    background: #fff;
                }

                #process-adobe-viewer-host iframe {
                    width: 100%;
                    min-height: 640px;
                    border: 0;
                }

                #process-document-view-modal .process-document-viewer-dialog {
                    max-width: min(92vw, 1600px);
                    width: min(92vw, 1600px);
                    height: 90vh;
                    margin: 0;
                    position: fixed;
                    left: 0;
                    top: 0;
                    transform: none !important;
                }

                .process-document-viewer-content {
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                }

                #process-document-view-modal .modal-header {
                    cursor: move;
                    user-select: none;
                }

                #process-document-view-modal .modal-footer {
                    cursor: move;
                    user-select: none;
                }

                #process-document-view-modal .modal-header .btn,
                #process-document-view-modal .modal-header .btn-close,
                #process-document-view-modal .modal-footer .btn {
                    cursor: pointer;
                }

                #process-document-view-modal .process-document-viewer-dialog.is-dragging {
                    transition: none;
                }

                body.no-select {
                    user-select: none !important;
                    -webkit-user-select: none !important;
                }

                .process-selection-drag-chip {
                    position: fixed;
                    z-index: 2100;
                    left: 16px;
                    top: 16px;
                    padding: 6px 12px;
                    background: #0d6efd;
                    color: #fff;
                    border-radius: 999px;
                    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.35);
                    font-size: 12px;
                    font-weight: 600;
                    cursor: grab;
                    user-select: none;
                    display: inline-flex;
                    align-items: center;
                    gap: 6px;
                }

                .process-selection-drag-chip:active {
                    cursor: grabbing;
                }

                .drop-target {
                    outline: 2px dashed rgba(13, 110, 253, 0.6);
                    background: rgba(13, 110, 253, 0.08);
                }

                .process-document-viewer-body {
                    flex: 1;
                    padding: 0;
                    background: #f5f6f8;
                }

                .process-document-viewer-wrapper {
                    position: relative;
                    width: 100%;
                    height: 100%;
                }

                .process-document-viewer-host,
                .process-document-viewer-frame {
                    width: 100%;
                    height: 100%;
                    min-height: 70vh;
                    border: 0;
                    background: #fff;
                }

                .process-document-viewer-host {
                    display: none;
                }

                .pdf-page-layer {
                    position: relative;
                    margin: 0 auto;
                    display: block;
                    transition: width 0.15s ease, height 0.15s ease;
                    transform-origin: top left;
                }
                
                #process-pdf-preview {
                    display: block;
                    margin: 0;
                    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
                    position: relative;
                    z-index: 1;
                    max-width: none;
                    width: auto;
                    height: auto;
                }
                
                .text-layer {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 100%;
                    height: 100%;
                    overflow: hidden;
                    line-height: 1;
                    z-index: 2;
                    cursor: text;
                    pointer-events: auto;
                    user-select: text;
                    -webkit-user-select: text;
                }

                .text-layer.disabled {
                    pointer-events: none;
                }

                .text-layer span,
                .text-layer br,
                .text-span {
                    position: absolute;
                    color: transparent;
                    white-space: pre;
                    transform-origin: 0% 0%;
                    cursor: text;
                    user-select: text;
                    -webkit-user-select: text;
                }

                .text-layer ::selection,
                .text-span::selection {
                    background: rgba(0, 123, 255, 0.55);
                }

                .text-layer ::-moz-selection,
                .text-span::-moz-selection {
                    background: rgba(0, 123, 255, 0.55);
                }
                
                /* PDF Tools */
                .pdf-tools {
                    display: flex;
                    gap: 8px;
                    margin-bottom: 1px;
                    padding: 2px;
                    background: #f8f9fa;
                    border-radius: 6px;
                    border: 1px solid #dee2e6;
                }
                
                .pdf-tool-btn {
                    padding: 4px 8px;
                    border: 1px solid #dee2e6;
                    background: white;
                    border-radius: 4px;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    gap: 2px;
                    transition: all 0.2s;
                }
                
                .pdf-tool-btn:hover {
                    background: #e9ecef;
                    border-color: #adb5bd;
                }
                
                .pdf-tool-btn.active {
                    background: #007bff;
                    color: white;
                    border-color: #0056b3;
                }
                
                /* Context Menu */
                .pdf-context-menu {
                    position: fixed;
                    background: white;
                    border: 1px solid #dee2e6;
                    border-radius: 8px;
                    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
                    z-index: 1000;
                    min-width: 280px;
                    max-width: 350px;
                    display: none;
                    overflow: hidden;
                }
                
                .context-menu-header {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    padding: 12px 15px;
                    background: #f8f9fa;
                    border-bottom: 1px solid #dee2e6;
                }
                
                .context-menu-header h6 {
                    margin: 0;
                    font-size: 14px;
                    font-weight: 600;
                    color: #495057;
                }
                
                .btn-close-menu {
                    background: none;
                    border: none;
                    color: #6c757d;
                    cursor: pointer;
                    padding: 4px;
                    font-size: 12px;
                }
                
                .btn-close-menu:hover {
                    color: #dc3545;
                }
                
                .context-menu-text {
                    padding: 15px;
                    border-bottom: 1px solid #dee2e6;
                    max-height: 120px;
                    overflow-y: auto;
                }
                
                .selected-text-preview {
                    font-size: 13px;
                    line-height: 1.4;
                    color: #495057;
                    background: #f8f9fa;
                    padding: 8px;
                    border-radius: 4px;
                    border: 1px solid #e9ecef;
                    white-space: pre-wrap;
                    word-break: break-word;
                }
                
                .context-menu-options {
                    padding: 10px;
                }
                
                .context-menu-options h6 {
                    font-size: 12px;
                    color: #6c757d;
                    margin-bottom: 8px;
                    text-transform: uppercase;
                    letter-spacing: 0.5px;
                }
                
                .option-list {
                    display: flex;
                    flex-direction: column;
                    gap: 4px;
                }
                
                .context-menu-item {
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    padding: 8px 12px;
                    border: none;
                    background: none;
                    text-align: left;
                    cursor: pointer;
                    border-radius: 4px;
                    font-size: 14px;
                    color: #495057;
                    transition: all 0.2s;
                }
                
                .context-menu-item:hover {
                    background: #f8f9fa;
                    color: #007bff;
                }
                
                .context-menu-item i {
                    width: 16px;
                    text-align: center;
                }
                
                /* Toast Notifications */
                .pdf-toast {
                    position: fixed;
                    bottom: 20px;
                    right: 20px;
                    background: #17a2b8;
                    color: white;
                    padding: 12px 20px;
                    border-radius: 6px;
                    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                    display: flex;
                    align-items: center;
                    gap: 10px;
                    z-index: 1001;
                    opacity: 0;
                    transform: translateY(20px);
                    transition: all 0.3s ease;
                }
                
                .pdf-toast.show {
                    opacity: 1;
                    transform: translateY(0);
                }
                
                .pdf-toast i {
                    font-size: 18px;
                }
                
                /* Tooltip */
                .pdf-tooltip {
                    position: fixed;
                    background: rgba(0,0,0,0.8);
                    color: white;
                    padding: 8px 12px;
                    border-radius: 4px;
                    font-size: 12px;
                    z-index: 1000;
                    pointer-events: none;
                    max-width: 250px;
                }
                
                /* Zoom and Page Controls */
                .preview-controls {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 8px;
                    padding: 8px 10px;
                    background: white;
                    border: 1px solid #dee2e6;
                    border-radius: 6px;
                    margin-bottom: 15px;
                }
                
                .zoom-controls, .page-navigation {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    gap: 10px;
                }

                .page-navigation {
                    margin-left: auto;
                }
                
                .zoom-level, .page-info {
                    font-size: 14px;
                    font-weight: 500;
                    color: #495057;
                    min-width: 60px;
                    text-align: center;
                }
                
                /* Enhanced Field Editor */
                .default-field.editable {
                    background-color: #fff8e1 !important;
                    border-color: #ffc107 !important;
                    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
                }
                
                .field-actions {
                    display: flex;
                    gap: 8px;
                    margin-top: 8px;
                }
                
                .field-actions .btn-sm {
                    padding: 4px 12px;
                    font-size: 12px;
                }
                
                /* Annotation Mode Indicator */
                .annotation-mode-indicator {
                    position: absolute;
                    top: 10px;
                    right: 10px;
                    background: rgba(0,0,0,0.7);
                    color: white;
                    padding: 6px 12px;
                    border-radius: 4px;
                    font-size: 12px;
                    z-index: 120;
                    display: none;
                }
                
                .annotation-mode-indicator.active {
                    display: block;
                }
