/* Product sheets: print information, without the website's navigation/actions. */
@media print {
  /* A separate lower margin on EVERY sheet, regardless of content length.
     ficha-impresion.js uses a native page-margin box when supported. */
  @page {
    margin: 14mm 14mm 24mm;
  }

  /* Fallback for print engines without page-margin boxes. Use explicit physical
     offsets so top/right/bottom/left do not depend on the inset shorthand. */
  .ficha-print-footer[hidden] {
    display: block !important;
    position: fixed;
    top: auto;
    right: 0;
    bottom: -16mm;
    left: 0;
    box-sizing: border-box;
    height: 12mm;
    margin: 0;
    padding: 2mm 0 0;
    border-top: 0.5pt solid #9bafb9;
    color: #253b48;
    background: transparent;
    font: 8.5pt/1.4 Arial, sans-serif;
    text-align: center;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  html.ficha-native-margin .ficha-print-footer[hidden] {
    display: none !important;
  }

  .ficha-print-footer strong {
    font-weight: 700;
    letter-spacing: 0.3pt;
  }

  .topline,
  .site-header,
  .site-footer,
  .skip,
  nav,
  dialog,
  form,
  button,
  [role="button"],
  .btn,
  .link,
  .button-row,
  .dv-card-links,
  .dv-text-link,
  .mx-model-label,
  .eq-back,
  .eq-family-links,
  .eq-controls,
  .eq-catalogue-index,
  #videos,
  .dv-videos-section,
  .dv-videos,
  .dv-video-card,
  .eq-demo-request,
  video,
  iframe,
  .eq-catalogue,
  .dv-doc-section,
  .mx-model-footer,
  .dv-related,
  .contact-band {
    display: none !important;
  }

  /* Preserve linked drawings and informative model names in comparison tables.
     Hiding all anchors would also remove those images and technical labels. */
  a[href] {
    color: inherit;
    text-decoration: none;
  }

  a[href]::after {
    content: none !important;
  }

  /* Native closed details can suppress their contents despite display rules.
     Print the same content as static headings and paragraphs instead. */
  .mx-feature-more,
  .ficha-print-status {
    display: none !important;
  }

  .mx-feature-print[hidden] {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20pt;
    margin-top: 16pt;
  }

  .mx-print-detail {
    min-width: 0;
    padding: 12pt 0;
    border-bottom: 1px solid #cfdbe3;
    page-break-inside: avoid;
    break-inside: avoid-page;
  }

  .mx-print-detail h3 {
    margin: 0 0 7pt;
    font-size: 10pt;
    line-height: 1.4;
    font-weight: 600;
  }

  .mx-print-detail p {
    margin: 0;
    font-size: 9pt;
    line-height: 1.55;
  }

  .mx-layout-grid figure > a:first-child {
    display: block !important;
  }

  .mx-layout-grid img {
    display: block !important;
    width: 100%;
    height: auto !important;
    max-height: 150mm;
    object-fit: contain;
  }
}
