/* Shared PDF viewer styles extracted from detail views */
.pdf-viewer-container { margin: 20px 0; }
.mobile-pdf-container, .tablet-pdf-container, .desktop-pdf-container { width: 100%; }
.pdf-embed-container { box-shadow: 0 4px 6px rgba(0,0,0,0.1); background: #fff; border-radius: 8px; }
.pdf-fallback, .mobile-pdf-fallback { margin: 20px 0; padding: 24px; border-radius: 8px; background: #f8f9fa; border: 2px dashed #dee2e6; }
.pdf-error { margin: 20px 0; padding: 20px; border-radius: 8px; background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; }
.pdf-toolbar { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 6px; padding: 8px; }
.pdf-canvas-container { position: relative; text-align: center; background: #fff; }
#pdfCanvas { max-width: 100%; height: auto; display: block; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 4px; }
.pdf-zoom-controls { margin-top: 12px; }
.pdf-loading { text-align: center; padding: 40px 20px; color: #6c757d; }
.pdf-loading .spinner-border { width: 2.5rem; height: 2.5rem; }
.btn-sm { min-height: 36px; min-width: 44px; }
.badge { font-size: 0.9em; padding: 6px 10px; }
.alert { border-radius: 8px; }
.pdf-toolbar .btn { padding: 6px 10px; }
.pdf-toolbar-overlay { position: absolute; top: 8px; right: 8px; z-index: 20; }
.debug-pdf-strategy { position: absolute; top: 8px; left: 8px; z-index: 30; background: rgba(0,0,0,0.6); color: #fff; padding: 6px 8px; border-radius: 4px; font-size: 12px; }

@media (max-width: 768px) {
    .mobile-pdf-container iframe { min-height: 420px; }
    .pdf-toolbar { font-size: 14px; }
    #pdfCanvas { border-radius: 4px; }
}

/* Mobile Top Toolbar for pdf.js viewer */
.pdfjs-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e9ecef;
}
.pdfjs-mobile-topbar .left, .pdfjs-mobile-topbar .right { display: flex; align-items: center; gap: 8px; }
.pdfjs-mobile-topbar .title { font-weight: 600; font-size: 14px; color: #212529; }
.pdfjs-mobile-topbar .control-btn { border: 1px solid #dee2e6; background: #fff; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.pdfjs-mobile-topbar .control-btn:active { transform: translateY(1px); }
.pdfjs-mobile-topbar .zoom-display { min-width: 56px; text-align: center; }
.pdf-toolbar-placeholder { height: 52px; }


@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-pdf-container iframe { height: 700px; }
    .desktop-pdf-container object { height: 700px; }
}

@media (min-width: 1025px) {
    .desktop-pdf-container object { height: 800px; }
}
