/* src/components/FilePreviewModal/DocxPreview.css */
.docx-document {
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px 20px !important;
  margin-bottom: 0px !important;
  height: 100% !important;
  box-shadow: none !important;
  overflow-x: auto !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.docx-document * {
  max-width: 100% !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}


.docx-document h1,
.docx-document h2,
.docx-document h3,
.docx-document h4,
.docx-document h5,
.docx-document h6 {
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4 !important;
  margin: 0.8em 0 !important;
}

.docx-document p {
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.4 !important;
}

/* 确保表格内容也能正确换行 */
.docx-document table {
  table-layout: fixed;
  width: 100%;
}

.docx-document table td,
.docx-document table th {
  word-wrap: break-word;
}

.docx-document-wrapper {
  padding: 0 !important;
}