/* src/components/FilePreviewModal/DocxPreview.css */
.docx-document {
  width: 100% !important;
  padding: 20px 20px !important;
  margin-bottom: 0px !important;
  height: 100% !important;
  box-shadow: none !important;
  overflow-x: auto !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;
  margin: 0.8em 0;
}

.docx-document p {
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.6;
}

/* 确保表格内容也能正确换行 */
.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;
}