/* v41.3.2 - targeted PDF, desktop navigation, header and sharing corrections. */

.signature-position-picker > div {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.german-signature.signature-center {
  right: auto !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
}

.header-actions:has(.install-button) .v31-install-button,
.v31-install-button.v4132-duplicate-install {
  display: none !important;
}

.preview-more > div {
  min-width: 176px;
}

.preview-more > div button {
  white-space: nowrap;
}

@media (min-width: 761px) {
  body.v40-builder .section-journey-head {
    grid-template-columns: 96px minmax(92px, 1fr) auto !important;
    gap: 10px !important;
    padding: 9px 11px !important;
  }

  body.v40-builder .journey-arrow.v40-journey-control {
    width: 96px !important;
    min-width: 96px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 7px 10px !important;
    overflow: hidden !important;
    border-radius: 11px !important;
  }

  body.v40-builder .journey-arrow.v40-journey-control > span {
    flex: 0 0 auto;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  body.v40-builder .journey-arrow.v40-journey-control > b {
    min-width: 0;
    display: block !important;
    font-size: 10px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.v40-builder .journey-actions {
    min-width: 0;
  }
}

@media (min-width: 1200px) {
  .app-shell.ui-ar .app-header {
    direction: rtl !important;
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
  }

  .app-shell.ui-ar .app-header .brand-mark {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .app-shell.ui-ar .app-header .header-copy {
    flex: 0 0 auto !important;
  }

  .app-shell.ui-ar .app-header .header-actions {
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    margin-right: auto !important;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .signature-position-picker > div {
    width: 100%;
  }

  .signature-position-picker button {
    min-width: 0;
    padding-inline: 5px;
    font-size: 6.5px;
  }
}

@media print {
  html,
  body {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  #cv-document,
  #cv-document.cv-sheet {
    min-height: 296mm !important;
    height: auto !important;
    overflow: visible !important;
  }

  #cv-document.cv-sheet:not(.europass-sheet):not(.german-minimal-sheet):not(.german-simple-sheet) > .cv-footer-grid {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: 4fr 1fr !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    transform: none !important;
  }

  .german-signature.signature-center {
    right: auto !important;
    left: 50% !important;
    bottom: 12mm !important;
    transform: translateX(-50%) !important;
  }
}
