.word-toolbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 54px;
  padding: 7px 10px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.word-toolbar-group { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; padding-right: 6px; border-right: 1px solid var(--line); }
.word-toolbar-group:last-child { border-right: 0; padding-right: 0; }
.word-toolbar-end { margin-left: auto; }
.word-toolbar-selects select {
  width: auto;
  min-width: 74px;
  height: 34px;
  padding: 4px 26px 4px 8px;
  border-radius: 5px;
  font-size: 12px;
}
.word-toolbar-selects select:first-child { min-width: 116px; }
.word-tool, .word-color {
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #344054;
  cursor: pointer;
}
.word-tool:hover, .word-tool:focus-visible, .word-color:hover { background: #f2f4f7; border-color: var(--line); color: var(--primary); }
.word-color { position: relative; overflow: hidden; }
.word-color input { position: absolute; inset: auto 2px 2px; width: 30px; height: 6px; padding: 0; border: 0; opacity: .9; cursor: pointer; }
.word-toolbar output { min-width: 42px; text-align: center; color: var(--muted); font-size: 11px; font-weight: 800; }
.word-canvas {
  min-height: 1040px;
  padding: 28px;
  overflow: auto;
  background: #e9eef4;
}
.word-editor-page {
  --word-zoom: 1;
  width: 794px;
  min-height: 1123px;
  margin: 0 auto;
  padding: 58px 64px;
  transform: scale(var(--word-zoom));
  transform-origin: top center;
  background: #fff;
  color: #111827;
  border: 1px solid #d0d5dd;
  border-radius: 2px;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .13);
  font-family: Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.55;
  outline: none;
}
.word-editor-page:focus { border-color: #84adff; box-shadow: 0 16px 38px rgba(23, 32, 51, .13), 0 0 0 3px rgba(23, 92, 211, .12); }
.word-editor-page h1, .word-editor-page h2, .word-editor-page h3, .word-editor-page h4 { letter-spacing: 0; }
.word-editor-page table { width: 100%; min-width: 0; border-collapse: collapse; }
.word-editor-page th, .word-editor-page td { min-width: 52px; border: 1px solid #cfd8e3; padding: 7px; text-transform: none; background: transparent; font-size: inherit; }
.word-editor-page .word-report { max-width: 100%; }
.word-editor-page .word-report table { min-width: 0; }
.word-editor-page .word-report th, .word-editor-page .word-report td { min-width: 0; }
.word-editor-page .word-report-logo { object-fit: contain; }
.word-editor-page .word-qr { min-width: 0; table-layout: fixed; }
.word-editor-page .word-qr td { min-width: 3px; width: 3px; height: 3px; padding: 0; border: 0; }
.word-editor-page ul, .word-editor-page ol { padding-left: 28px; }
.word-editor-page blockquote { margin: 14px 0; padding-left: 14px; border-left: 3px solid #98a2b3; color: #475467; }
.word-statusbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 9px 12px 9px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}
.word-statusbar > span:first-child { margin-right: auto; font-weight: 800; }
.word-statusbar [data-state="dirty"] { color: var(--gold); }
.word-statusbar [data-state="saved"] { color: var(--green); }
.word-statusbar [data-state="error"] { color: var(--red); }
.word-editor-shell.is-locked .word-canvas { background: #f2f4f7; }
.word-editor-shell.is-locked .word-editor-page { cursor: default; }
.word-editor-fullscreen { position: fixed; inset: 0; z-index: 100; border: 0; border-radius: 0; }
.word-editor-fullscreen .word-toolbar { position: sticky; top: 0; }
.word-editor-fullscreen .word-canvas { height: calc(100vh - 112px); }
.word-editor-fullscreen .word-statusbar { position: fixed; inset: auto 0 0; z-index: 2; }
.compact-table { min-width: 0; font-size: 12px; }
.report-list .doc-section { overflow: auto; }

