/* ---- Menu bar (File / Insert / Format / View) — its own row, directly
   underneath the title row. ------------------------------------------- */
.docx-editor-menu-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 8px;
  background: var(--de-surface);
  border-bottom: 1px solid var(--de-toolbar-border);
  flex-shrink: 0;
  height: 30px;
  position: relative;
  z-index: 60; /* above toolbar (50) so its dropdowns overlay it */
}

.docx-editor-menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.docx-editor-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 10px;
  border: none;
  background: transparent;
  color: var(--de-text);
  font-size: 13px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 80ms ease;
}
.docx-editor-menu-trigger:hover,
.docx-editor-menu-trigger[data-open="true"] {
  background: var(--de-toolbar-button-bg-hover);
}
.docx-editor-menu-trigger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.docx-editor-menu-trigger[data-open="true"] {
  background: var(--de-toolbar-button-bg-hover);
}

.docx-editor-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--de-border-raw);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 4px;
  z-index: 1000;
  margin-top: 2px;
}

.docx-editor-menu-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--de-text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 60ms ease;
}
.docx-editor-menu-dropdown-item:hover:not(:disabled) {
  background: var(--de-toolbar-button-bg-hover);
}
.docx-editor-menu-dropdown-item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.docx-editor-menu-dropdown-item[data-active="true"] {
  background: var(--de-toolbar-button-bg-active);
  color: var(--de-toolbar-button-fg-active);
}
.docx-editor-menu-dropdown-item__shortcut {
  font-size: 11px;
  color: var(--de-text-muted);
  margin-left: auto;
}
.docx-editor-menu-dropdown-separator {
  height: 1px;
  background: var(--de-toolbar-border);
  margin: 4px 0;
}
.docx-editor-menu-dropdown-label {
  padding: 4px 10px 2px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--de-text-muted);
  font-weight: 600;
}
