.pdf-viewer-container { display: flex; flex-direction: column; height: 100%; width: 100%; background: #f5f5f5; flex: 1; min-height: 0; } .pdf-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid #e8e8e8; flex-shrink: 0; } .pdf-content { flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 20px; } .pdf-content .react-pdf__Document { display: flex; justify-content: center; } .pdf-content .react-pdf__Page { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); margin-bottom: 20px; background: #fff; } .pdf-content .react-pdf__Page canvas { max-width: 100%; height: auto !important; } .pdf-loading { display: flex; justify-content: center; align-items: center; min-height: 200px; color: #999; font-size: 14px; } .pdf-error { display: flex; justify-content: center; align-items: center; min-height: 200px; color: #f5222d; font-size: 14px; }