/* ---------- COLORS  ---------- */
/* Brand primary: black (replaces former blue #1864F2). */
/* ---------- FONTS  ---------- */
main.main-content:has(.word-template-edit) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 0;
  overflow: hidden;
}
main.main-content:has(.word-template-edit) > .main-content__layout {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.main-content__layout > .word-template-edit {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  max-width: none;
  min-height: 0;
  height: 100%;
}

@media only screen and (min-width: 921px) {
  main.main-content:has(.word-template-edit) {
    min-height: 0 !important;
    height: 100%;
    overflow: hidden;
  }
  main.main-content:has(.word-template-edit) > .main-content__layout {
    min-height: 0 !important;
    height: 100%;
    overflow: hidden;
  }
}
.word-template-edit {
  display: flex;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}
.word-template-edit__main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.word-template-edit__toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid #e3e7ec;
  background: #FFFFFF;
  flex: none;
  min-height: 56px;
  position: relative;
}
.word-template-edit__toolbar-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.word-template-edit__back {
  flex: none;
}
.word-template-edit__lead {
  flex: none;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  color: #6b7280;
  white-space: nowrap;
}
.word-template-edit__filename {
  flex: 1 1 220px;
  min-width: 140px;
  max-width: 560px;
  display: flex;
  align-items: center;
}
.word-template-edit__filename .input-message {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}
.word-template-edit__filename .input-wrap {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 420px;
  position: relative;
}
.word-template-edit__filename .input-wrap__clear-field {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  width: 16px;
  height: 16px;
}
.word-template-edit__filename .input-message__small-text {
  flex: 0 1 auto;
  margin-top: 0;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 12px;
}
.word-template-edit__filename-input,
.word-template-edit__filename .small-input,
.word-template-edit__filename input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 20px 0 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.2 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #131315 !important;
  width: 100%;
  white-space: nowrap;
}
.word-template-edit__filename-input:focus,
.word-template-edit__filename .small-input:focus,
.word-template-edit__filename input:focus {
  outline: none !important;
  box-shadow: none !important;
}
.word-template-edit__toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}
.word-template-edit__count {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
}
.word-template-edit .pdf-viewer.word-template-edit__editor, .word-template-edit__editor {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 0;
  width: 100%;
  max-height: 100%;
  margin: 0 0 10px !important;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #f0f2f4;
}
.word-template-edit__editor .e-de-ctn,
.word-template-edit__editor .e-documenteditor-container {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  flex: 1 1 auto;
  min-height: 0;
}
.word-template-edit__editor .e-de-ctn-toolbar {
  display: none !important;
}
.word-template-edit__editor .e-de-statusbar-pageweb {
  display: none !important;
}
.word-template-edit .e-de-status-bar .e-de-pagenumber-text,
.word-template-edit .e-de-pagenumber-text {
  width: auto !important;
  max-width: 36px !important;
  margin-top: -3px;
}
.word-template-edit .e-de-status-bar .e-de-pagenumber-input,
.word-template-edit .e-de-pagenumber-text .e-de-pagenumber-input,
.word-template-edit .e-de-pagenumber-input,
.word-template-edit .e-de-status-bar input.e-de-pagenumber-input {
  width: 32px !important;
  min-width: 28px !important;
  max-width: 36px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 4px !important;
  margin: -3px 0 0 !important;
  border-width: 1px !important;
  font-size: 12px !important;
  line-height: 20px !important;
  text-align: center;
  box-sizing: border-box !important;
}

.word-template-status-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  margin-right: 8px;
  height: 100%;
}
.word-template-status-actions__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #374151;
  cursor: pointer;
}
.word-template-status-actions__btn:hover, .word-template-status-actions__btn:focus-visible {
  background: #eef1f4;
  color: #131315;
  outline: none;
}
.word-template-status-actions__btn.is-active {
  background: #eef0ff;
  color: #4f46e5;
}
.word-template-status-actions__btn .e-icons {
  font-size: 14px;
}
.word-template-status-actions__text-icon {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-family: Inter, sans-serif;
}

.word-template-edit__panel-host {
  position: relative;
  flex: 0 0 320px;
  max-width: 360px;
  width: 320px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid #e3e7ec;
  background: #FFFFFF;
}
.word-template-edit__panel-host .word-merge-panel {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  border-left: none;
}

.word-merge-panel {
  flex: 0 0 320px;
  max-width: 360px;
  width: 320px;
  background: #FFFFFF;
  border-left: 1px solid #e3e7ec;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.word-merge-panel__head {
  padding: 16px 16px 10px;
  border-bottom: 1px solid #eef1f4;
}
.word-merge-panel__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #131315;
}
.word-merge-panel__sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #6b7280;
}
.word-merge-panel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 24px;
}
.word-merge-panel__section + .word-merge-panel__section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef1f4;
}
.word-merge-panel__label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}
.word-merge-panel__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: #eef1f4;
  color: #131315;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.word-merge-panel__select {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13.5px;
  background: #FFFFFF;
  color: #131315;
}
.word-merge-panel__empty {
  margin: 0;
  font-size: 12.5px;
  color: #9ca3af;
}
.word-merge-panel__catalog, .word-merge-panel__static, .word-merge-panel__fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.word-merge-panel__catalog-item, .word-merge-panel__static-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 8px 10px;
  cursor: pointer;
  color: #131315;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.word-merge-panel__field {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  background: #FFFFFF;
  padding: 0;
  color: #131315;
  transition: border-color 0.12s ease, background 0.12s ease;
  position: relative;
}
.word-merge-panel__field:hover {
  border-color: #131315;
  background: #f8fafc;
}
.word-merge-panel__field.is-active {
  border-color: #4f46e5;
  background: #eef0ff;
}
.word-merge-panel__field:hover .word-merge-panel__field-remove, .word-merge-panel__field:focus-within .word-merge-panel__field-remove {
  opacity: 1;
  pointer-events: auto;
}
.word-merge-panel__field-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  border: none;
  background: transparent;
  padding: 10px 8px 10px 10px;
  cursor: pointer;
  color: inherit;
}
.word-merge-panel__field-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
.word-merge-panel__glyph {
  flex: none;
  display: inline-flex;
  color: #6b7280;
}
.word-merge-panel__glyph--sm {
  color: inherit;
}
.word-merge-panel__field-name {
  font-size: 13.5px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.word-merge-panel__field-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-left: 24px;
  font-size: 11.5px;
  color: #6b7280;
}
.word-merge-panel__chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eef1f4;
  color: #374151;
  font-weight: 500;
}
.word-merge-panel__token {
  color: #4f46e5;
  font-weight: 500;
}
.word-merge-panel__nomap {
  color: #9ca3af;
  font-weight: 500;
}
.word-merge-panel__allpages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f3f4f6;
  color: #6b7280;
  font-weight: 500;
}
.word-merge-panel__field-remove {
  flex: none;
  align-self: center;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.word-merge-panel__field-remove:hover, .word-merge-panel__field-remove:focus-visible {
  color: #E2224D;
  background: #fef2f4;
}
.word-merge-panel__add {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.word-merge-panel__field-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
}
.word-merge-panel__input {
  width: 100%;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13.5px;
  background: #FFFFFF;
  color: #131315;
}
.word-merge-panel__add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.word-merge-panel__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border: none;
  background: transparent;
  padding: 2px 0;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7280;
}
.word-merge-panel__toggle.is-on {
  color: #131315;
}
.word-merge-panel__toggle.is-on .word-merge-panel__toggle-box {
  border-color: #131315;
  background: #131315;
  box-shadow: inset 0 0 0 2px #FFFFFF;
}
.word-merge-panel__toggle-box {
  width: 14px;
  height: 14px;
  border: 1.5px solid #9ca3af;
  border-radius: 3px;
  background: #FFFFFF;
}
.word-merge-panel__error {
  margin: 0;
  font-size: 12px;
  color: #E2224D;
}
.word-merge-panel__add-btn {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
}
.word-merge-panel__rule {
  margin: 20px 0 16px;
  border: 0;
  border-top: 1px solid #e3e7ec;
}
.word-merge-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.word-merge-panel__actions .button {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 960px) {
  .word-template-edit {
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - 120px);
    overflow: visible;
  }
  .word-template-edit__panel-host {
    flex: none;
    width: 100%;
    max-width: none;
    border-left: none;
    border-top: 1px solid #e3e7ec;
    max-height: 42vh;
  }
  main.main-content:has(.word-template-edit) {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: calc(100dvh - 120px);
  }
  main.main-content:has(.word-template-edit) > .main-content__layout {
    height: auto;
    overflow: visible;
  }
  .word-merge-panel {
    flex: none;
    width: 100%;
    max-width: none;
    border-left: none;
    border-top: 1px solid #e3e7ec;
    max-height: 42vh;
  }
}

/*# sourceMappingURL=word-template-merge.css.map */
