/**
 * Copyright (c) 2025 Etanco. All rights reserved.
 *
 * SST Product Sheet CSS Stylesheet
 * Compiled from pdf 1.scss - Optimized for PDF rendering via Gotenberg
 *
 * @author Ahmad YENGUI
 */

/* Font Faces - Helvetica Neue Family */
@font-face {
  font-family: "Helvetica Neue";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/helveticaneue.ttf") format("truetype");
}

@font-face {
  font-family: "Helvetica Neue condensed";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/helveticaneuecondensed.ttf") format("truetype");
}

@font-face {
  font-family: "Helvetica Neue";
  font-style: normal;
  font-weight: 100;
  src: url("../fonts/helveticaneueultralight.ttf") format("truetype");
}

@font-face {
  font-family: "Helvetica Neue";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/helveticaneuebold.ttf") format("truetype");
}

@font-face {
  font-family: "Helvetica Neue";
  font-style: normal;
  font-weight: 200;
  src: url("../fonts/helveticaneuelight.ttf") format("truetype");
}

/* CSS Variables (converted from SCSS variables) */
:root {
  --paper-width: 8.27in;
  --paper-height: 11.69in;
  --border-color: #a8a8ab;
  --space-small: 0.11811in;
  --space-micro: 0.059055in; /* $space-small/2 */
  --space-medium: 0.23622in; /* 2 * $space-small */
  --space-large: 0.47244in; /* 2 * $space-medium */
  --page-margin: 0.35433in; /* 3 * $space-small */
  --footer-height: 1.1811in; /* 10 * $space-small */
  --header-height: 1.1811in; /* 10 * $space-small */
  --column-width: 3.78067in; /* ($paper-width - 2 * $page-margin)/2 */
  --usable-width: calc(7.0889in - 1px); /* $paper-width - 2 * $page-margin - 2 * $space-medium - 1px */
}

@media screen {
  html body .footer {
    position: relative;
    bottom: 0;
    margin: 0 auto;
  }

  html body .header {
    position: relative;
    bottom: 0;
    margin: 0 auto;
  }

  html body div.footer-space {
    height: 0;
  }

  html body .page-header-space {
    height: 0;
  }

  html body .maincontainer {
    margin: 0 auto;
  }

  html body .maincontainer .main .page {
    height: unset;
    max-height: unset;
    padding-top: var(--space-small);
  }

  html body .maincontainer .main .page .columns-container.page-1 {
    height: unset;
    max-height: unset;
  }

  html body .maincontainer .main .page.page-1 {
    padding-top: var(--space-small);
    height: unset;
    max-height: unset;
  }

  html body .maincontainer .main .page.page-n {
    padding-top: var(--space-small);
    height: unset;
    max-height: unset;
  }

  html body .maincontainer .main .page.page-n:nth-child(n + 1) {
    padding-top: var(--space-small);
    max-height: unset;
  }
}

@page {
  width: var(--paper-width);
  height: var(--paper-height);
  padding: var(--page-margin);
}

body {
  font-size: 10pt;
  font-family: "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
}

body .pageborder {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0.05cm;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

body p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
}

body .footer {
  height: var(--footer-height);
  overflow: hidden;
  page-break-before: always;
  bottom: 0;
  margin-top: calc(-1 * var(--footer-height) - 0.05cm);
  background: white;
  z-index: 1000;
  display: flex;
  width: 100%;
}

body .footer .footer-text {
  flex-grow: 1;
  font-weight: 200;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body .footer .footer-text .text-1 {
  display: flex;
  align-items: flex-start;
}

body .footer .footer-text .text-1 .address {
  font-size: 0.6rem;
  padding: var(--space-small) var(--space-small) 0 var(--space-small);
}

body .footer .footer-text .text-1 .product {
  flex-grow: 1;
  font-size: 0.8rem;
  padding: var(--space-small) var(--space-small) var(--space-small) var(--space-large);
}

body .footer .footer-text .text-1 .product .name {
  font-weight: bold;
}

body .footer .footer-text .text-2 {
  display: flex;
  align-items: flex-end;
}

body .footer .footer-text .text-2 .copyright {
  padding: 0 var(--space-small) var(--space-small) var(--space-small);
  flex-grow: 1;
  font-size: 0.6rem;
}

body .footer .footer-text .text-2 .date {
  font-size: 0.5rem;
  padding: 0 var(--space-small) var(--space-small) var(--space-small);
}

body .footer .qr {
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  padding: var(--space-small);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

body .footer .qr .hostname {
  font-size: 0.7rem;
}

body .footer .logo-footer {
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  width: 1.5748in; /* (4 / 2.54) in */
  padding: var(--space-small);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body .footer .logo-footer img {
  width: 0.787402in; /* 2cm */
}

body .page-header-space {
  height: var(--header-height);
}

body .header {
  position: fixed;
  background: white;
  z-index: 1000;
  width: 100%;
  top: 0;
  left: 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  height: var(--header-height);
}

body .header .text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

body .header .text .tech {
  border-right: 1px solid black;
  background: black;
  color: white;
  padding: var(--space-small);
  font-weight: bolder;
  flex-shrink: 1;
  font-size: 1.2rem;
}

body .header .text .product {
  border-right: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-small);
}

body .header .text .product .name {
  overflow: hidden;
  font-weight: bold;
  font-size: 1.1rem;
}

body .header .text .product .code {
  font-size: 1.1rem;
  font-weight: 200;
}

body .header .logo-header {
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  padding: 0.35433in; /* 3 * $space-small */
  display: flex;
  align-items: center;
  justify-content: center;
  align-content: center;
  flex-shrink: 1;
}

body .header .logo-header img {
  height: 0.75in;
}

body .maincontainer {
  border-collapse: collapse;
  max-width: 7.56134in; /* $paper-width - 2 * $page-margin */
  width: 7.56134in;
}

body .maincontainer .avoidbreak {
  page-break-inside: avoid;
}

body .maincontainer .pagebreak {
  page-break-before: always;
}

body .maincontainer .product-table {
  width: var(--usable-width);
}

body .maincontainer .product-table .seeMoreOnlineLink {
  display: none;
}

@media print {
  body .maincontainer .product-table {
    page-break-inside: avoid;
  }

  body .maincontainer .product-table.seeMoreOnline {
    position: relative;
    page-break-inside: avoid;
    height: 6cm;
    overflow-y: hidden;
  }

  body .maincontainer .product-table.seeMoreOnline .seeMoreOnlineLink {
    position: absolute;
    top: 1cm;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 90%
    );
  }

  body .maincontainer .product-table.seeMoreOnline .seeMoreOnlineLink .qr-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 12cm;
    padding: var(--space-small);
    border-radius: var(--space-micro);
    box-shadow: 0 0 20px #ccc;
    background: #ffffff;
  }

  body .maincontainer .product-table.seeMoreOnline .seeMoreOnlineLink .qr-overlay div.text {
    min-width: 35%;
    max-width: 45%;
    text-align: right;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-items: flex-end;
    align-items: flex-end;
  }

  body .maincontainer .product-table.seeMoreOnline .seeMoreOnlineLink .qr-overlay div.text a {
    text-decoration: none;
    font-size: 0.7rem;
    color: rgb(39, 55, 71);
    font-weight: normal;
    display: flex;
    align-items: center;
  }

  body .maincontainer .product-table .table-table {
    overflow-x: hidden;
  }
}

body .maincontainer .product-table .table-pre-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

body .maincontainer .product-table .table-pre-header h3 {
  font-weight: lighter;
}

body .maincontainer .product-table .table-pre-header .table-medias {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

body .maincontainer .product-table .table-pre-header .table-medias div.medium {
  margin-left: var(--space-medium);
  margin-top: var(--space-small);
}

body .maincontainer .product-table .table-pre-header .table-medias img {
  max-width: 2in;
  max-height: 1in;
  width: auto;
  height: auto;
}

body .maincontainer .product-table table.table,
body .maincontainer .product-table .legend table {
  width: 100%;
  font-family: "Helvetica Neue condensed", sans-serif;
  font-size: 0.72rem;
  border-collapse: collapse;
  margin-left: 0;
}

body .maincontainer .product-table table.table tfoot tr td div.legend,
body .maincontainer .product-table .legend table tfoot tr td div.legend {
  border-width: 1px 0 0 0;
  text-align: left;
  padding: var(--space-small) 0;
  font-family: "Helvetica Neue", sans-serif;
}

body .maincontainer .product-table table.table tfoot tr td div.legend p,
body .maincontainer .product-table .legend table tfoot tr td div.legend p {
  font-size: 0.85rem;
}

body .maincontainer .product-table table.table tfoot tr td div.legend ul,
body .maincontainer .product-table .legend table tfoot tr td div.legend ul {
  margin: 0;
}

body .maincontainer .product-table table.table tfoot tr td div.legend,
body .maincontainer .product-table .legend table tfoot tr td div.legend {
  font-size: 0.85rem;
}

body .maincontainer .product-table table.table tr th,
body .maincontainer .product-table .legend table tr th {
  font-weight: bolder;
}

body .maincontainer .product-table table.table tr td,
body .maincontainer .product-table table.table tr th,
body .maincontainer .product-table .legend table tr td,
body .maincontainer .product-table .legend table tr th {
  border: 1px solid var(--border-color);
  padding: calc(var(--space-micro) / 2);
  text-align: center;
}

body .maincontainer .product-table table.table tr td.colorized,
body .maincontainer .product-table table.table tr th.colorized,
body .maincontainer .product-table .legend table tr td.colorized,
body .maincontainer .product-table .legend table tr th.colorized {
  color: #bc2929;
}

body .maincontainer .product-table table.table tbody tr:nth-child(odd),
body .maincontainer .product-table .legend table tbody tr:nth-child(odd) {
  background-color: #eee;
}

body .maincontainer .product-table table.table tbody tr :first-child,
body .maincontainer .product-table .legend table tbody tr :first-child {
  text-align: left;
}

body .maincontainer .main {
  padding-bottom: var(--footer-height);
}

body .maincontainer .main .media-caption {
  font-size: 0.6rem;
  font-style: italic;
  padding-top: var(--space-micro);
  text-align: center;
}

body .maincontainer .main .page.page-n {
  padding: var(--header-height) var(--space-medium) var(--space-medium) var(--space-medium);
  max-width: var(--usable-width);
}

body .maincontainer .main .page.page-n:nth-child(1) {
  padding-top: var(--header-height);
  padding-bottom: var(--footer-height);
  max-height: 8.1467in; /* $paper-height - $header-height - 2 * $page-margin - $footer-height - 2 * $space-medium */
}

body .maincontainer .main .page .columns-container {
  display: flex;
  align-items: stretch;
}

body .maincontainer .main .page .columns-container.page-1 {
  max-height: 9.80024in; /* $paper-height - 2 * $page-margin - $header-height */
  height: 9.80024in;
  overflow: hidden;
}

body .maincontainer .main .page .columns-container .column {
  flex: 1;
  max-width: var(--column-width);
  min-width: var(--column-width);
}

body .maincontainer .main .page .columns-container .column.border-right {
  border-right: 1px solid var(--border-color);
}

body .maincontainer .main .product-description {
  padding: var(--space-medium);
  font-weight: lighter;
  border-bottom: 1px solid var(--border-color);
}

body .maincontainer .main .gallery {
  display: grid;
  page-break-inside: avoid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: var(--space-medium);
  align-items: center;
}

body .maincontainer .main .gallery .gallery-image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body .maincontainer .main .gallery .gallery-image img.secondary-image {
  max-width: 2.9cm;
  max-height: 4cm;
  height: auto;
  width: auto;
  object-fit: contain;
}

body .maincontainer .main .main-gallery {
  position: relative;
}

body .maincontainer .main .main-gallery .main-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

body .maincontainer .main .main-gallery .main-image img {
  max-width: 7.5cm;
  max-height: 12cm;
  width: auto;
  height: auto;
  margin: var(--space-medium) 0;
}

body .maincontainer .main .main-gallery .gallery .gallery-image img.secondary-image {
  height: auto;
  width: auto;
  max-width: 2.9cm;
  max-height: 4cm;
}

body .maincontainer .main .tags {
  display: flex;
  flex-direction: column;
  position: absolute;
  right: var(--space-small);
  top: var(--space-small);
}

body .maincontainer .main .tags .tag {
  margin-bottom: var(--space-small);
  display: flex;
  justify-content: center;
}

body .maincontainer .main .tags .tag img {
  width: 1cm;
  border-radius: 0.1cm;
}

body .maincontainer .main .text-blocks h2 {
  font-size: 1.4rem;
  font-weight: 200;
  margin: var(--space-small) var(--space-medium);
}

body .maincontainer .main .text-blocks .text-block {
  padding: 0 var(--space-medium);
}

body .maincontainer .main .text-blocks .text-block h3 {
  font-size: 1.2rem;
  font-weight: 200;
  margin: var(--space-small) 0;
}

body .maincontainer .main .text-blocks .text-block div.content {
  font-size: 0.85rem;
}

body .maincontainer .main .text-blocks .text-block div.content p {
  font-size: 0.85rem;
  font-weight: bold;
}

body .maincontainer .main .text-blocks .text-block div.content ul {
  margin: var(--space-micro) 0;
  font-weight: 200;
  padding-left: calc(3 * var(--space-micro));
}