/* Document Preview V2: one controller, one scroll owner and one visual source. */
html.cv-preview-open #previewOverlay {
  display: block;
  padding: 0 !important;
  background: #e8edf5 !important;
  overflow: hidden !important;
}

html.cv-preview-open #previewScrollShell {
  --cv-preview-frame-width: 794px;
  --cv-preview-document-width: 794px;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  margin: 0 !important;
  padding: 12px clamp(12px, 2vw, 28px) 32px !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  scroll-padding-top: 12px !important;
  box-sizing: border-box !important;
}

html.cv-preview-open body.cv-update-available #previewScrollShell {
  padding-top: 42px !important;
  scroll-padding-top: 50px !important;
}

html.cv-preview-open #previewScrollShell::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html.cv-preview-open #previewScrollShell::-webkit-scrollbar-track {
  margin: 0;
  background: rgba(19, 54, 101, .09);
  border-radius: 0;
}

html.cv-preview-open #previewScrollShell::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(30, 73, 132, .76);
  background-clip: padding-box;
}

html.cv-preview-open #previewScrollShell > .cv-preview-control-stack-v2 {
  position: sticky !important;
  left: 0 !important;
  top: 8px !important;
  z-index: 40 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: min(100%, var(--cv-preview-frame-width)) !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  container: cv-preview-v2 / inline-size;
}

html.cv-preview-open body.cv-update-available #previewScrollShell > .cv-preview-control-stack-v2 {
  top: 8px !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.cvx-prev {
  position: relative !important;
  top: auto !important;
  z-index: 3 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 8px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-top {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  align-items: center !important;
  min-height: 56px !important;
  width: 100% !important;
  max-width: none !important;
  padding: 6px 10px !important;
  gap: 8px !important;
  border: 1px solid #b8c6d9 !important;
  border-radius: 15px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 18px rgba(15, 44, 88, .14) !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-esq {
  width: 44px !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-title {
  min-width: 0 !important;
  color: #102e60 !important;
  font: 800 15px/1.2 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-dir {
  display: flex !important;
  justify-content: flex-end !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-fechar {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid #9f2835 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #cc4c59, #a92f3b) !important;
  color: #ffffff !important;
  box-shadow: 0 7px 16px rgba(169, 47, 59, .24) !important;
  cursor: pointer !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-fechar:focus-visible {
  outline: 3px solid #6aa8df !important;
  outline-offset: 3px !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-fechar svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-bottom {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  grid-template-areas: "download zoom print" !important;
  align-items: center !important;
  min-height: 64px !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  height: auto !important;
  padding: 9px 12px !important;
  gap: 12px !important;
  border: 1px solid #b8c6d9 !important;
  border-radius: 15px !important;
  background: linear-gradient(180deg, #f5f7fa 0%, #e5e9ef 100%) !important;
  box-shadow: 0 5px 18px rgba(15, 44, 88, .14) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-top {
  grid-template-columns: max-content minmax(0, 1fr) 44px !important;
  gap: 8px !important;
  border-radius: 7px !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-esq {
  display: none !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-zoom {
  grid-area: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-self: start !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-title {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-dir {
  grid-column: 3 !important;
  grid-row: 1 !important;
}

html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-bottom {
  display: none !important;
}

@container cv-preview-v2 (max-width: 700px) {
  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-top {
    grid-template-columns: max-content minmax(0, 1fr) 44px !important;
    min-height: 64px !important;
    padding: 6px 8px !important;
    gap: 6px !important;
  }

  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-esq {
    display: none !important;
  }

  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-zoom {
    grid-area: auto !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
  }

  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: -webkit-box !important;
    white-space: normal !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    font-size: 13px !important;
    line-height: 1.12 !important;
  }

  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-dir {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-top > .preview-zoom-pop {
    top: calc(100% + 8px) !important;
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  html.cv-preview-open #previewScrollShell .preview-toolbar.is-collapsed .cvx-prev-alca {
    left: 50% !important;
  }
}

html.cv-preview-open #previewScrollShell .cvx-prev-dl,
html.cv-preview-open #previewScrollShell .cvx-prev-pr {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  width: max-content !important;
  max-width: 100% !important;
  padding: 7px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font: 800 13px/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-dl {
  grid-area: download !important;
  justify-self: start !important;
  background: linear-gradient(135deg, #1d7048, #2d8a5e) !important;
  box-shadow: 0 6px 14px rgba(29, 112, 72, .2) !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-pr {
  grid-area: print !important;
  justify-self: end !important;
  background: linear-gradient(135deg, #102e60, #174b8c) !important;
  box-shadow: 0 6px 14px rgba(16, 46, 96, .2) !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-dl:disabled,
html.cv-preview-open #previewScrollShell .cvx-prev-pr:disabled {
  opacity: .46 !important;
  filter: grayscale(.35) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

html.cv-preview-open #previewScrollShell .cvx-ic-badge {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .93) !important;
  color: #102e60 !important;
}

html.cv-preview-open #previewScrollShell .cvx-ic-badge .cvx-ic {
  width: 16px !important;
  height: 16px !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-zoom {
  grid-area: zoom !important;
  display: inline-flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  justify-self: center !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-action,
html.cv-preview-open #previewScrollShell .preview-fit-page-action,
html.cv-preview-open #previewScrollShell .preview-adjust-action,
html.cv-preview-open #previewScrollShell .preview-zoom-main {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border: 1px solid #9eb2ce !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #15345f !important;
  box-shadow: none !important;
  font: 800 12px/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-action {
  border-radius: 999px 0 0 999px !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-page-action,
html.cv-preview-open #previewScrollShell .preview-adjust-action,
html.cv-preview-open #previewScrollShell .preview-zoom-main {
  margin-left: -1px !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-main {
  gap: 5px !important;
  border-radius: 0 !important;
}

html.cv-preview-open #previewScrollShell .preview-adjust-action {
  border-color: #102e60 !important;
  border-radius: 0 999px 999px 0 !important;
  background: linear-gradient(135deg, #102e60, #174b8c) !important;
  color: #ffffff !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-action[aria-pressed="true"],
html.cv-preview-open #previewScrollShell .preview-fit-page-action[aria-pressed="true"] {
  position: relative !important;
  z-index: 1 !important;
  border-color: #174b8c !important;
  background: linear-gradient(135deg, #123a70, #1e65aa) !important;
  color: #ffffff !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-main.is-manual {
  position: relative !important;
  z-index: 1 !important;
  border-color: #9eb2ce !important;
  background: #ffffff !important;
  color: #15345f !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-main svg {
  width: 15px !important;
  height: 15px !important;
  fill: none !important;
  stroke: currentColor !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-main .preview-zoom-caret {
  width: 13px !important;
  height: 13px !important;
  fill: currentColor !important;
  stroke: none !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-value {
  min-width: 38px !important;
  color: inherit !important;
  font: inherit !important;
  text-align: center !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-pop-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: stretch !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-pop {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: auto !important;
  left: calc(50% + 22px) !important;
  z-index: 60 !important;
  display: grid !important;
  grid-template-columns: 28px minmax(54px, 1fr) 28px 50px !important;
  align-items: center !important;
  width: min(286px, calc(100vw - 18px)) !important;
  min-width: 0 !important;
  padding: 6px 8px !important;
  gap: 7px !important;
  border: 1px solid #dfe6f0 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(16, 46, 96, .22) !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-pop[hidden] {
  display: none !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-button {
  display: inline-grid !important;
  place-items: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 1.5px solid #0f2c58 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0f2c58 !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-button svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-pop input[type="range"] {
  width: 100% !important;
  min-width: 54px !important;
  min-height: 28px !important;
  accent-color: #0f2c58 !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-edit {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  color: #15345f !important;
  font: 800 12px/1 Arial, Helvetica, sans-serif !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-edit input {
  width: 50px !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 2px 3px !important;
  border: 1.5px solid #c9d5e6 !important;
  border-radius: 7px !important;
  background: #ffffff !important;
  color: #15345f !important;
  font: inherit !important;
  text-align: center !important;
  box-sizing: border-box !important;
  -moz-appearance: textfield !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-edit input::-webkit-outer-spin-button,
html.cv-preview-open #previewScrollShell .preview-zoom-edit input::-webkit-inner-spin-button {
  margin: 0 !important;
  -webkit-appearance: none !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-menu-action {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin-left: -1px !important;
  padding: 0 !important;
  border: 1px solid #102e60 !important;
  border-radius: 0 999px 999px 0 !important;
  background: linear-gradient(135deg, #102e60, #174b8c) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-menu-action svg {
  width: 18px !important;
  height: 18px !important;
}

html.cv-preview-open #previewScrollShell .preview-zoom-main {
  border-radius: 999px 0 0 999px !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  z-index: 70 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(76px, 1fr)) !important;
  width: max-content !important;
  max-width: calc(100vw - 16px) !important;
  padding: 7px !important;
  gap: 6px !important;
  border: 1px solid #aebed4 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 30px rgba(16, 46, 96, .22) !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-menu[hidden] {
  display: none !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-menu > button {
  width: 76px !important;
  min-width: 76px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 7px !important;
  border: 1px solid #9eb2ce !important;
  border-radius: 999px !important;
  background: #f5f8fc !important;
  color: #15345f !important;
  font: 800 12px/1 Arial, Helvetica, sans-serif !important;
  white-space: nowrap !important;
}

html.cv-preview-open #previewScrollShell .preview-fit-menu > button[aria-pressed="true"] {
  border-color: #174b8c !important;
  background: linear-gradient(135deg, #123a70, #1e65aa) !important;
  color: #ffffff !important;
}

html.cv-preview-open #previewScrollShell button:focus-visible,
html.cv-preview-open #previewScrollShell input:focus-visible,
html.cv-preview-open #previewScrollShell [tabindex]:focus-visible {
  outline: 3px solid #ffbf2f !important;
  outline-offset: 2px !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-alca {
  position: absolute !important;
  left: 50% !important;
  bottom: -18px !important;
  top: auto !important;
  z-index: 0 !important;
  display: inline-grid !important;
  place-items: end center !important;
  width: 58px !important;
  min-width: 58px !important;
  height: 22px !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 5px 0 1px !important;
  border: 1px solid #b8c6d9 !important;
  border-top: 0 !important;
  border-radius: 0 0 8px 8px !important;
  background: #e5e9ef !important;
  color: #15345f !important;
  box-shadow: 0 5px 10px rgba(19, 45, 82, .12) !important;
  transform: translateX(-50%) !important;
  cursor: pointer !important;
}

html.cv-preview-open #previewScrollShell .cvx-prev-alca svg {
  width: 14px !important;
  height: 14px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-rail-v2 {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 44px !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-rail-v2[hidden] {
  display: none !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-v2 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  min-height: 44px !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 3px !important;
  border: 1px solid #b8c6d9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 7px 16px rgba(19, 45, 82, .12) !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-v2 button {
  display: inline-grid !important;
  place-items: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #15345f !important;
  box-shadow: none !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-v2 button[aria-pressed="true"] {
  border-color: #1e65aa !important;
  background: #1e65aa !important;
  color: #ffffff !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-v2 button:disabled {
  opacity: .34 !important;
  cursor: default !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-pager-v2 svg {
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-page-count-v2 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 104px !important;
  height: 44px !important;
  padding: 0 8px !important;
  color: #15345f !important;
  font: 800 12px/1 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-view-divider-v2 {
  width: 1px !important;
  height: 28px !important;
  margin: 0 2px !important;
  background: #d6deea !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-v2 {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  width: var(--cv-preview-validation-width, var(--cv-preview-document-width)) !important;
  max-width: none !important;
  min-height: 44px !important;
  margin: 32px auto 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #d3a22d !important;
  border-radius: 8px !important;
  background: #fff8df !important;
  color: #583c00 !important;
  box-sizing: border-box !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-v2[hidden] {
  display: none !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-v2.is-blocked {
  border-color: #c55a63 !important;
  background: #fff0f1 !important;
  color: #6f1f28 !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-marker-v2 {
  width: 10px !important;
  min-width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: #c88900 !important;
  margin-top: 3px !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-v2.is-blocked .cv-preview-validation-marker-v2 {
  background: #b93845 !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-message-v2 {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  gap: 4px 8px !important;
  min-width: 0 !important;
  font: 600 12px/1.35 Arial, Helvetica, sans-serif !important;
  letter-spacing: 0 !important;
}

html.cv-preview-open #previewScrollShell .cv-preview-validation-message-v2 strong {
  font-weight: 850 !important;
}

html.cv-preview-open #previewContent {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 22px auto 0 !important;
  padding: 0 0 24px !important;
  box-sizing: border-box !important;
  zoom: var(--preview-zoom, 1) !important;
}

html.cv-preview-open #previewContent .preview-print-pages {
  position: static !important;
  display: grid !important;
  grid-template-columns: max-content !important;
  align-items: start !important;
  justify-content: center !important;
  gap: 18px !important;
  width: max-content !important;
  height: auto !important;
  margin: 0 auto !important;
  visibility: visible !important;
  transform: none !important;
}

html.cv-preview-open #previewContent[data-cv-preview-layout="spread"] .preview-print-pages {
  grid-template-columns: repeat(2, max-content) !important;
}

html.cv-preview-open #previewContent .print-page {
  flex: 0 0 auto !important;
  background: #ffffff !important;
  box-shadow: 0 10px 28px rgba(20, 40, 70, .18) !important;
  pointer-events: none !important;
}

/* The paper keeps its A4 layout even when the surrounding viewport is narrow.
   The editor may reflow below 900px, but a final snapshot must match print. */
html.cv-preview-open #previewContent .print-page .row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  column-gap: 3px !important;
}

/* A pagina ajustada pode ficar estreita sem que o viewport seja mobile.
   Preserve uma barra unica enquanto os quatro controles ainda couberem. */
@container cv-preview-v2 (max-width: 430px) {
  html.cv-preview-open #previewScrollShell .cvx-prev-top {
    min-height: 52px !important;
    padding: 4px 8px !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-title {
    font-size: 13px !important;
  }
}

@container cv-preview-v2 (min-width: 361px) and (max-width: 700px) {
  html.cv-preview-open #previewScrollShell .cvx-prev-bottom {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    grid-template-areas: "download zoom print" !important;
    min-height: 64px !important;
    padding: 9px 8px !important;
    gap: 6px !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-dl,
  html.cv-preview-open #previewScrollShell .cvx-prev-pr {
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-dl > span:not(.cvx-ic-badge),
  html.cv-preview-open #previewScrollShell .cvx-prev-pr > span:not(.cvx-ic-badge) {
    display: none !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-zoom {
    width: 100% !important;
  }

  html.cv-preview-open #previewScrollShell .preview-fit-action,
  html.cv-preview-open #previewScrollShell .preview-fit-page-action,
  html.cv-preview-open #previewScrollShell .preview-adjust-action,
  html.cv-preview-open #previewScrollShell .preview-zoom-main {
    min-width: 0 !important;
    padding: 0 8px !important;
  }
}

@container cv-preview-v2 (max-width: 360px) {
  html.cv-preview-open #previewScrollShell .preview-toolbar.cvx-prev {
    gap: 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-top,
  html.cv-preview-open #previewScrollShell .cvx-prev-bottom {
    border: 1px solid #b8c6d9 !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 18px rgba(15, 44, 88, .14) !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-top {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    min-height: 54px !important;
    padding: 6px 8px !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-esq,
  html.cv-preview-open #previewScrollShell .cvx-prev-fechar {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-bottom {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    grid-template-areas: "download zoom print" !important;
    min-height: 56px !important;
    padding: 7px 5px !important;
    gap: 3px !important;
    background: linear-gradient(180deg, #eef0f3 0%, #d8dce4 100%) !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-dl > span:not(.cvx-ic-badge),
  html.cv-preview-open #previewScrollShell .cvx-prev-pr > span:not(.cvx-ic-badge) {
    display: none !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-dl,
  html.cv-preview-open #previewScrollShell .cvx-prev-pr {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-zoom {
    position: relative !important;
    display: inline-flex !important;
    min-height: 44px !important;
    height: 44px !important;
    width: max-content !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-pop-wrap,
  html.cv-preview-open #previewScrollShell .preview-zoom-main,
  html.cv-preview-open #previewScrollShell .preview-fit-menu-action {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-pop {
    left: calc(50% + 20px) !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-main {
    min-height: 44px !important;
    height: 44px !important;
    gap: 3px !important;
    padding: 0 4px !important;
    font-size: 11px !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-main > svg:first-child {
    display: none !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-main {
    border-radius: 999px 0 0 999px !important;
  }

  html.cv-preview-open #previewScrollShell .preview-fit-menu-action {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin-left: -1px !important;
    border-radius: 0 999px 999px 0 !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-value {
    min-width: 0 !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-main .preview-zoom-caret {
    width: 9px !important;
    height: 9px !important;
  }

  html.cv-preview-open #previewScrollShell .preview-zoom-main > svg:first-child {
    display: block !important;
    width: 12px !important;
    height: 12px !important;
  }

  html.cv-preview-open #previewScrollShell .preview-fit-menu {
    grid-template-columns: repeat(3, 72px) !important;
    gap: 5px !important;
  }

  html.cv-preview-open #previewScrollShell .preview-fit-menu > button {
    width: 72px !important;
    min-width: 72px !important;
  }

  html.cv-preview-open #previewScrollShell .cvx-prev-alca {
    bottom: -17px !important;
  }
}

@media (max-width: 700px) {
  html.cv-preview-open #previewScrollShell {
    padding: 8px 8px 24px !important;
    scroll-padding-top: 8px !important;
  }

  html.cv-preview-open #previewScrollShell .cv-preview-validation-v2 {
    align-items: flex-start !important;
  }

  html.cv-preview-open #previewContent {
    margin-top: 32px !important;
  }

  html.cv-preview-open #previewContent[data-cv-preview-layout="spread"] .preview-print-pages {
    grid-template-columns: max-content !important;
  }
}

@media (max-width: 420px) {
  html.cv-preview-open #previewScrollShell .cv-preview-pager-v2 {
    max-width: 100% !important;
  }

  html.cv-preview-open #previewScrollShell .cv-preview-page-count-v2 {
    min-width: 86px !important;
    font-size: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.cv-preview-open #previewScrollShell *,
  html.cv-preview-open #previewScrollShell *::before,
  html.cv-preview-open #previewScrollShell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  #previewOverlay,
  .cv-preview-control-stack-v2 {
    display: none !important;
  }
}
