.word-heading.history-heading > .word-heading-title { align-items: center; gap: 4px; }
.word-heading-title > .panel-header-title { flex: 0 1 auto; }
.word-heading.history-heading .word-heading-title > h2 { flex: 0 1 auto; }
.word-heading { gap: var(--panel-action-gap); }
.word-scroll { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
/* Vòng tải danh sách mẫu nằm giữa thân panel, trên nền app. */
.word-scroll > .panel-loading-layer { background: var(--canvas); }
.word-form { display: grid; min-width: 0; gap: var(--section-content-gap); }
.word-scroll > .word-form { gap: var(--section-gap); padding: var(--panel-content-gap) 1px; }
.word-scroll > #wordExportForm { gap: var(--section-content-gap); }
.word-field > .product-form-field-heading { overflow-wrap: anywhere; }
.word-field > .app-dropdown-control { grid-column: 2; grid-row: 1; }
.word-field > .app-dropdown-control, .word-field > .app-date-control { border-left: 0; }
.word-field > .app-dropdown-control > button { border-left: 1px solid var(--line); }
.word-field > :is(input, textarea), .word-search > input { margin: 0; }
.word-field > textarea { height: var(--form-row-height); resize: none; }
.word-field > textarea:focus { resize: vertical; }
.word-field.word-content { grid-template-columns: minmax(0, 1fr); }
.word-field.word-content > .product-form-field-heading { border-radius: 9px 9px 0 0; }
.word-field.word-content > textarea { min-height: 126px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; resize: vertical; }
.word-field:focus-within { border-color: var(--brand); }
.word-period { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); }
.word-period > .app-dropdown-control + .app-dropdown-control { border-left: 1px solid var(--line); }
.word-search { position: relative; min-width: 0; }
.word-search > input {
  width: 100%; height: 100%; min-height: var(--form-row-height); padding: 5px 10px;
  border: 0; border-radius: inherit; background: transparent; font-size: var(--form-value-size);
}

.word-sheet :is(#wordNewTemplate, .word-footer .primary-button) svg {
  flex: 0 0 16px; width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.word-disclosure { min-width: 0; border: 1px solid var(--line); border-radius: var(--card-radius); background: var(--surface); }
.word-disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 7px 12px; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer;
}
.word-disclosure > summary::-webkit-details-marker { display: none; }
.word-disclosure > summary::after {
  content: ""; flex: 0 0 7px; height: 7px; margin: 0 3px 3px 0;
  border: solid var(--brand-dark); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.word-disclosure[open] > summary::after { margin-block: 3px 0; transform: rotate(225deg); }
.word-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.word-disclosure > .word-form { padding: 10px; }
.word-disclosure .word-form:empty { display: none; }
/* Mặt hàng tính doanh thu/chiết khấu: danh sách đánh dấu cuộn bên trong, khung cố định để không nhảy bố cục khi tải. */
.word-products-summary { margin-left: auto; color: var(--muted); font-weight: 600; white-space: nowrap; }
.word-products-body { display: grid; align-content: start; max-height: 280px; overflow-y: auto; scrollbar-width: none; }
/* Danh sách dài (từ 6 mặt hàng) có ô tìm; khung danh sách cao cố định để lọc không làm form nhảy. */
.word-products-search { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.word-products-search > input { width: 100%; margin: 0; }
.word-products-search:not(.hidden) + .word-products-body { height: 280px; }
.word-products-body > .word-product { padding: 9px 12px; border-bottom: 1px solid #edf2ef; cursor: pointer; }
.word-products-body > .word-product:last-child { padding-bottom: 9px; border-bottom: 0; }
.word-product.is-all .sales-discount-product-name { font-weight: 700; }
.word-product > input { width: 18px; height: 18px; margin: 0 4px 0 0; accent-color: var(--brand); cursor: pointer; }
.word-products-state { display: grid; place-items: center; min-height: 80px; padding: 10px 12px; color: var(--muted); font-size: 13px; text-align: center; }
.word-products-state.is-error { color: var(--danger, #b42318); }
.word-editor-modal { z-index: 105; inset: 0; background: var(--canvas); align-items: stretch; }
.word-editor-modal > .backdrop { display: none; }
.word-editor-modal > .word-editor-sheet {
  display: flex; flex-direction: column; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 0; border-radius: 0; overflow: hidden; background: var(--canvas); box-shadow: none;
}
.word-editor-sheet > .history-heading {
  padding: calc(6px + var(--safe-top)) var(--page-gutter) 6px; background: var(--canvas);
}
.word-editor-sheet > .history-heading .panel-header-actions { flex: 0 0 auto; }
.word-editor-sheet #wordKeepTemplate:not(:disabled) { background: var(--button-brand); border-color: var(--button-brand); color: #fff; }
.word-editor-sheet #wordKeepTemplate:not(:disabled):hover { background: var(--button-brand-hover); border-color: var(--button-brand-hover); }
.word-native-editor { flex: 1; min-height: 0; background: var(--canvas); }
.word-native-editor .word-native-frame {
  height: 100%; min-width: 0; display: flex; flex-direction: column;
  --doc-accent: var(--brand); --doc-primary: var(--brand); --doc-primary-hover: var(--brand-dark);
  --doc-primary-light: var(--brand-light); --doc-toggle-active-bg: var(--brand-dark);
  --doc-surface: var(--surface); --doc-border: var(--control-border);
  --doc-text: var(--ink); --doc-text-muted: var(--muted); --doc-bg-hover: var(--brand-light);
  --doc-scrollbar-thumb: var(--switch-disabled-on); --doc-scrollbar-track: var(--canvas);
}
.word-native-editor .word-native-toolbar {
  flex: none; width: 100%; min-width: 0; margin: 0; border-radius: 0; overflow: visible;
  --word-tool-width: 28px;
  padding: 4px min(var(--page-gutter),12px); background: var(--surface-soft); border-bottom: 1px solid var(--control-border);
}
.word-native-toolbar .docx-toolbar__separator { margin-inline: 3px; }
.word-native-toolbar .docx-toolbar__font-family-trigger { width: 142px; min-width: 0; }
.word-native-toolbar .docx-toolbar__button:not(:disabled) { color: var(--brand-dark); }
.word-native-toolbar .docx-toolbar__button:is([data-active],[aria-expanded="true"]):not(:disabled) {
  color: var(--on-brand); background: var(--brand-dark);
}
.word-native-toolbar .word-table-button { width: auto; padding-inline: 6px; }
.word-insert-table {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 12px; font-weight: 650;
}
.word-tool-anchor { position: relative; display: inline-flex; flex: none; }
.word-native-toolbar .word-toolbar-popup {
  position: absolute; z-index: 5; top: calc(100% + 4px); width: max-content;
  max-width: calc(100vw - 16px); overflow: auto; border: 1px solid var(--action-border);
  border-radius: var(--control-radius); background: var(--surface); box-shadow: var(--popover-shadow);
}
.word-native-toolbar .word-tools { display: contents; }
.word-native-toolbar :is(.word-tool-icon,.word-more-tools) { width: var(--word-tool-width); }
:is(.word-tool-icon,.word-tool-list) svg {
  width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
}
.word-native-toolbar .word-tool-trigger { border: 1px solid var(--line); background: var(--surface); }
.word-native-toolbar .word-zoom-trigger { width: 59px; gap: 4px; font-size: 12px; font-weight: 650; }
.word-native-toolbar .word-more-tools { font-size: 16px; font-weight: 750; }
.word-native-toolbar [data-slot="image.insert"] svg { width: 16px; height: 16px; }
.word-tool-list { min-width: 146px; padding: 4px; }
.word-tool-list > button {
  display: flex; align-items: center; width: 100%; min-height: 33px;
  padding: 6px 9px; gap: 12px; border: 0; border-radius: 6px; box-shadow: none;
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 650; white-space: nowrap;
  text-align: left;
}
.word-tool-list > button > span { flex: 1; }
.word-tool-list > button:is(:hover, :focus-visible, [aria-checked="true"]):not(:disabled) {
  color: var(--brand-dark); background: var(--brand-light);
}
.word-tool-list > button:disabled { color: var(--text-disabled); opacity: .65; }
.word-tool-list > hr { margin: 4px 2px; border: 0; border-top: 1px solid var(--line); }
.word-tool-list kbd { color: var(--muted); font: inherit; font-size: 11px; }
.word-native-toolbar { position: relative; z-index: 1; }
.word-search-tools {
  position: fixed; z-index: 6; inset: var(--word-editor-gap, 0px) 0 0;
  width: min(342px,calc(100vw - 16px)); height: max-content; margin: auto;
  display: grid; gap: 6px; padding: 7px; border: 1px solid var(--action-border); border-radius: var(--control-radius);
  background: var(--surface); box-shadow: var(--popover-shadow);
}
.word-search-tool-row { display: flex; min-width: 0; align-items: center; gap: 4px; }
.word-search-tool-row > input { flex: 1; min-width: 0; width: auto; height: 32px; margin: 0; padding: 5px 8px; }
.word-search-tool-row > button { position: static; flex: none; height: 32px; min-height: 32px; padding: 3px 7px; font-size: 12px; }
.word-search-tool-row > .close-button { width: 26px; font-size: 17px; }
.word-search-count { min-width: 31px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.2; }
body:has(#wordEditorModal:not(.hidden)) .docx-dialog {
  --doc-primary: var(--brand); --doc-primary-hover: var(--brand-dark);
  --doc-border: var(--line); --doc-border-input: var(--control-border);
  --doc-dialog-padding: 16px; --doc-dialog-control-radius: 8px; --doc-dialog-gap: 8px;
  inset: var(--word-editor-gap, 0px) 0 0;
  width: min(480px,calc(100vw - 24px)); border-color: var(--line); border-radius: var(--card-radius);
}
body:has(#wordEditorModal:not(.hidden)) .docx-dialog :is(input,select) { accent-color: var(--brand); }
body:has(#wordEditorModal:not(.hidden)) .docx-dialog::backdrop { background: var(--overlay-tint,rgba(11,28,25,.58)); }
.word-native-frame .word-link-popup[data-mode="editing"] {
  position: fixed; inset: var(--word-editor-gap, 0px) 0 0 !important;
  width: min(360px,calc(100vw - 24px)); height: max-content; margin: auto;
  padding: 14px; border-radius: var(--card-radius); box-shadow: var(--popover-shadow);
}
.word-native-frame .word-color-dialog { width: min(320px,calc(100vw - 24px)); }
.word-color-dialog > form { padding: 16px; }
.word-color-dialog h3 { margin: 0 0 12px; font-size: 16px; }
.word-color-palette { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.word-color-swatch { height: 30px; border: 1px solid var(--control-border); border-radius: 6px; }
.word-color-custom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.word-color-custom > input { width: 112px; margin: 0; }
.word-color-dialog .confirm-actions { margin-top: 12px; }
.word-native-toolbar .word-table-picker .docx-menubar__grid-cell[data-filled] {
  background: var(--brand-light); border-color: var(--action-border);
}
:is(.word-insert-table,.word-insert-data,.word-align-table) svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.word-native-frame .docx-selection-overlay-rect, .word-native-frame .docx-cell-selection-rect {
  background-color: color-mix(in srgb, var(--brand) 24%, transparent);
}
.word-native-frame .docx-content-control-chrome[data-tag^="solidviet:"] .docx-content-control-label { display: none; }
.word-native-frame .docx-content-control-chrome[data-tag^="solidviet:"]:not([data-tag^="solidviet:#"],[data-tag^="solidviet:/"]) .docx-content-control-boundary {
  opacity: 1; border-color: color-mix(in srgb, var(--brand) 54%, transparent); border-radius: 5px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}
.word-context-menu.docx-contextmenu {
  min-width: min(196px, 100vw - 16px); overflow: visible;
}
.word-context-menu.docx-contextmenu[data-word-caret-anchor] {
  left: var(--word-context-left) !important;
  top: var(--word-context-top) !important;
}
.word-context-menu.docx-contextmenu, .word-context-menu .docx-menubar__submenu-panel {
  padding: 5px; border: 1px solid var(--action-border); border-radius: var(--control-radius);
  color: var(--ink); background: var(--surface); box-shadow: var(--popover-shadow);
}
.word-context-menu .docx-menubar__submenu-panel { min-width: min(198px, 100vw - 16px); max-height: calc(100dvh - 16px); overflow: auto; }
.word-context-menu .docx-menubar__item { min-height: 33px; gap: 8px; padding: 5px 9px; border-radius: 6px; font-weight: 600; }
.word-context-menu .docx-menubar__item[aria-disabled="true"] { background: transparent; color: var(--text-disabled); opacity: .6; }
.word-context-menu .docx-menubar__item:not([aria-disabled="true"]):is(:hover,:focus-visible,[data-open]) { background: var(--brand-light); color: var(--brand-dark); }
.word-context-menu .docx-menubar__item-icon { color: var(--brand-dark); }
.word-context-menu .docx-menubar__item-shortcut { margin-inline-start: 10px; }
.word-context-menu .word-insert-data:not([aria-disabled="true"]) { background: var(--brand-light); color: var(--brand-dark); font-weight: 750; }
.word-context-menu .word-insert-data:not([aria-disabled="true"]):is(:hover,:focus-visible) { background: var(--brand-dark); color: var(--on-brand); }
.word-context-menu .word-insert-data .docx-menubar__item-icon { color: inherit; }
.word-native-editor[data-word-caret-canvas] [data-docx-caret] {
  background: transparent;
  box-shadow: none;
}
.word-editor-modal > .word-caret-indicator {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
/* Keep the typing indicator active under the app's reduced-motion reset. */
.word-native-editor:not([data-word-caret-canvas]) [data-docx-caret]:not(.docx-editor-one-surface__caret--steady),
.word-editor-modal > .word-caret-indicator:not([data-steady]) {
  animation: word-caret-blink 1.1s step-end infinite !important;
}
@keyframes word-caret-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.word-native-editor .word-native-viewport { flex: 1; min-height: 0; overscroll-behavior: contain; }
.word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup) {
  scrollbar-width: auto; scrollbar-color: auto;
}
.word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup)::-webkit-scrollbar {
  display: block; width: 9px; height: 9px;
}
.word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup)::-webkit-scrollbar-button {
  display: none; width: 0; height: 0;
}
.word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup)::-webkit-scrollbar-track {
  border: 4px solid transparent; background: rgba(15, 118, 110, .14); background-clip: padding-box;
}
.word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup)::-webkit-scrollbar-thumb {
  min-width: 36px; min-height: 36px; border: 3px solid transparent; border-radius: 999px;
  background: var(--button-brand); background-clip: padding-box;
}
.word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup)::-webkit-scrollbar-thumb:hover {
  border-width: 2px; background-color: var(--brand);
}
.word-native-editor .word-native-frame .word-native-viewport::-webkit-scrollbar-corner { background: var(--canvas); }
@supports (-moz-appearance: none) {
  .word-native-editor .word-native-frame :is(.word-native-viewport,.word-toolbar-popup) {
    scrollbar-width: thin; scrollbar-color: var(--button-brand) transparent;
  }
}
.word-data-anchor { position: fixed; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.word-data-anchor .app-dropdown-button { width: 1px; height: 1px; min-height: 1px; padding: 0; }
/* Menu Chèn dữ liệu to hơn menu chọn thường để dễ đọc và bấm khi soạn (chủ dự án 29/11/2026): rộng 360px, cao tối đa 480px. */
.app-dropdown-picker.word-field-picker { padding: 8px; gap: 8px; border-radius: 13px; }
.word-field-picker .app-dropdown-search { flex-basis: 44px; min-height: 44px; padding: 8px 12px; border-radius: 9px; font-size: 15px; }
.word-field-picker .app-dropdown-tree-branch { min-height: 42px; padding: 8px 10px; font-size: 15px; font-weight: 750; }
.word-field-picker .workflow-assignment-option { min-height: 44px; padding: 10px 12px; font-size: 14.5px; font-weight: 650; }
.word-field-picker .app-dropdown-tree-children { margin-left: 17px; padding-left: 14px; }
.word-field-picker .app-dropdown-tree-children > button::before { left: -14px; top: 22px; width: 14px; }
.word-field-picker .app-dropdown-actions { padding-top: 8px; }
.word-field-picker .app-dropdown-action { min-height: 44px; font-size: 14px; }
.word-editor-footer {
  position: absolute; z-index: 2; inset: auto var(--page-gutter) calc(8px + var(--safe-bottom));
  pointer-events: none;
}
.word-editor-footer > .word-status-row {
  height: 34px; padding: 0 8px; border: 0;
}
.word-editor-footer > .word-status-row:has(#wordEditorStatus:not(:empty), #wordEditorRetry:not(.hidden), #wordEditorSpinner:not(.hidden)) {
  pointer-events: auto; border: 1px solid var(--line); border-radius: var(--control-radius);
  background: var(--surface); box-shadow: var(--card-shadow);
}

/* Danh sách mẫu và thư mục (chủ dự án 29/11/2026): điện thoại là một danh sách khung viền, desktop là lưới hai cột (desktop.css).
   Mỗi thẻ: biểu tượng, tên, dòng phụ nhạt (loại số liệu hoặc số mẫu), nút ⋮ mở menu thao tác. */
.word-library-groups { display: grid; gap: 16px; }
.word-library-group { display: grid; gap: 8px; min-width: 0; }
/* Tiêu đề nhóm kiểu thư mục máy tính: chữ nhỏ nhạt, số lượng, đường kẻ chạy hết hàng. */
.word-library-heading { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 2px; color: var(--muted); font-size: 12.5px; font-weight: 750; }
.word-library-heading small { min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #dfeae7; color: var(--brand-dark); font-size: 11.5px; font-weight: 700; text-align: center; }
.word-library-heading::after { content: ""; flex: 1; border-top: 1px solid #c5d5d1; }
.word-library { display: grid; overflow: hidden; border: 1px solid #c5d5d1; border-radius: 13px; background: var(--surface); }
.word-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 58px;
  border-bottom: 1px solid var(--line); background: var(--surface); }
.word-card:last-child { border-bottom: 0; }
.word-card-open { min-width: 0; height: 100%; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 11px;
  padding: 9px 4px 9px 12px; border: 0; border-radius: 0; background: transparent; color: var(--ink); box-shadow: none; text-align: left; }
.word-card:has(> .word-card-open:not(:disabled):hover) { background: var(--surface-selected); }
.word-card-open:disabled { opacity: .55; }
.word-card-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #e6f2f0; color: var(--brand-dark); }
.word-card[data-kind="folder"] .word-card-icon { background: #fdf1d8; color: #a8660b; }
.word-card-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.word-card-text { min-width: 0; display: grid; gap: 2px; }
.word-card-text strong { overflow: hidden; font-size: 14px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.word-card-text small { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.word-card-menu { width: 32px; height: 36px; display: grid; place-items: center; margin-right: 10px; padding: 0; border: 1px solid #a9c9c4;
  border-radius: 9px; background: #edf6f4; color: var(--brand-dark); box-shadow: none; }
.word-card-menu svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.word-card-menu[aria-expanded="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.word-card[draggable="true"] { cursor: grab; }
.word-card.is-dragging { opacity: .45; }
.word-library-groups.is-dragging .word-card[data-kind="folder"] { box-shadow: inset 0 0 0 1px #e2c07a; }
.word-card.is-drop-target { background: #fff8e8; box-shadow: inset 0 0 0 2px #d99a2b; }
.word-item-menu { position: fixed; z-index: 30; right: auto; bottom: auto; }
#wordNewFolder svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.word-move-list { display: grid; max-height: min(320px, 50dvh); overflow-y: auto; margin-bottom: 12px; border: 1px solid #c5d5d1; border-radius: 12px; }
.word-move-option { min-height: 48px; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 7px 12px;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--ink); box-shadow: none;
  font-size: 14px; font-weight: 650; text-align: left; }
.word-move-option:last-child { border-bottom: 0; }
.word-move-option:not(:disabled):hover { background: var(--surface-selected); }
.word-move-option.is-current { color: var(--muted); }
.word-move-option .word-card-icon { width: 30px; height: 30px; border-radius: 8px; }
.word-move-option .word-card-icon svg { width: 17px; height: 17px; }
.word-move-option > span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.word-footer { flex: none; }
.word-status-row {
  height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 2px;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.4;
}
.word-status-row:has(#wordStatus:empty) { border-color: transparent; }
.word-status-row .history-spinner { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; }
:is(#wordStatus, #wordEditorStatus) { flex: 1; max-height: 100%; overflow: auto; }
:is(#wordStatus, #wordEditorStatus).is-error { color: var(--danger); }
:is(#wordRetry, #wordEditorRetry) { flex: none; min-height: 28px; padding: 3px 9px; white-space: nowrap; }
.word-footer .confirm-actions { margin: 0; }
.word-footer .primary-button { display: flex; align-items: center; justify-content: center; gap: 8px; }

@media (max-width: 360px) {
  .word-sheet #wordNewTemplate svg { display: none; }
  .word-heading .panel-header-command { padding-inline: 7px; }
  .word-editor-sheet > .history-heading { padding-inline: 8px; gap: 5px; }
  .word-native-editor .word-native-toolbar { padding-inline: 6px; }
  .word-native-toolbar .docx-toolbar__separator, .word-insert-table > span { display: none; }
  .word-native-toolbar .word-table-button { width: var(--word-tool-width); padding-inline: 0; }
}
@media (max-width: 300px) {
  .word-native-toolbar .docx-toolbar__font-size > button { display: none; }
  .word-native-toolbar .docx-toolbar__font-family-trigger { width: 120px; }
}
