html {
  position: relative;

  background-image: linear-gradient(to bottom, #daece7, #d9ebe6);

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

body {
  position: relative;
  margin: 0;
  padding: 0;

  display: flex;
  flex-direction: column;
  align-content: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;

  min-width: 21cm;
  min-height: 29cm;
  max-width: 21cm;
  max-height: 29cm;
}

.paper {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-between;

  min-width: 20cm;
  min-height: 28.7cm;

  max-width: 20cm;
  max-height: 28.7cm;

  padding: 1vh;
  border-radius: 16px;

  background: #fff;

  margin: 1vh;
}

.background-overly {
  position: absolute;
  object-position: center;
  object-fit: contain;

  width: 46rem;
  height: 18.5rem;

  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  top: 13rem;

  opacity: 15%;

  transition: opacity 0.3s ease;
  z-index: 1;
}

.background-overly.hidden {
  opacity: 0;
  pointer-events: none;
}

.header {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: flex-start;

  width: 100%;
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-content: center;
  flex-wrap: nowrap;
  flex-direction: row;

  width: 100%;
}

.header-flex .item-infos {
  width: 100%;
}

.header .company-info {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-end;
  align-items: center;

  font-family: sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.header .item-title {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
}

.header .item-title .title {
  font-family: Arial Narrow;
  font-size: 1.5rem;
  font-weight: 500;

  margin-left: 1vh;
  margin-right: 1vh;
  margin-bottom: 0.5vh;
}

.header .header-border {
  width: 100%;
  margin-top: 1rem;
  border-radius: 4px;
}

.header .item-model {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header .item-model .model {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Arial Narrow;
}

.header .item-model .series {
  font-size: 1rem;
  font-weight: 700;
  font-family: Arial Narrow;
  margin-right: 1vh;
  margin-left: 1vh;
}

.header .company-info .texts {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.header .company-info .logo {
  max-height: 6rem;
  max-width: 6rem;
  margin-right: 1vh;
  margin-left: 1vh;
}

.header .company-info .name {
  font-family: "Dodger";
  text-align: center;
  font-size: 1.5rem;
}

.header .company-info .website-url {
  color: #283894;
}

.body {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;

  width: 100rem;
  height: 100rem;

  max-width: 100%;
  max-height: 100%;
}

.body .first-information {
  position: relative;

  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: center;
  align-content: center;

  width: 100%;
}

.body .first-information .qr-codes {
  position: absolute;
  right: 1rem;
  top: 0.5rem;

  display: flex;
  flex-direction: row-reverse;
  height: 6.3rem;
}

.body .first-information .qr-code {
  margin-left: 2vh;

  border: 2px solid #000;
  border-radius: 4px;

  display: flex;
  flex-direction: column-reverse;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.body .first-information .qr-code .url {
  margin-top: 0.5vh;

  font-family: Arial;
  font-weight: 700;
  font-size: 0.75rem;
}

.body .first-information .qr-code img {
  height: 4rem;
}

.body .imgs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
  justify-content: space-evenly;
}

.body .imgs .main img {
  max-width: 19rem;
  max-height: 19rem;
  padding: 1rem;
  object-fit: contain;
}

.body .imgs .others {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.body .imgs .others img {
  padding: 1rem;
  max-width: 11rem;
  max-height: 11rem;
}

.body .two-flex .features {
  min-width: 40%;
  width: fit-content;
  max-width: 50%;
}

.row {
  width: 100%;
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.two-flex {
  display: flex;
  flex-direction: row-reverse;
}

.body .imgs {
  margin: 0;
}

.row .title {
  display: flex;
  align-content: center;
  align-items: center;
  flex-direction: row;
  flex-wrap: nowrap;

  font-family: sans-serif;
  font-weight: 700;
  font-size: 1.3rem;

  height: 1.2vh;
}

.row .title .icon {
  display: flex;
  font-size: 1.3rem;
}

.row .title span {
  margin-left: 1vh;
  margin-right: 1vh;
}

.row .content {
  font-size: 0.95rem;
  font-family: sans-serif;
  font-weight: 300;
  line-height: 1.4rem;
  margin-top: 0.8rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.row .content ul {
  margin: 0;
}

.body .specification {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.body .specification .title {
  width: 100%;
  margin-bottom: 1rem;
}

.body .specification table {
  border-collapse: collapse;

  width: 90%;
  text-align: left;
}

.body .specification table td,
.body .specification table th {
  text-align: center;
  font-size: 1rem;
}

.additional .additional-image {
  display: flex;
  justify-content: center;

  margin-top: 1rem;
}

.additional .small img {
  max-width: 15rem;
  max-height: 15rem;
}

.additional .medium img {
  max-width: 18rem;
  max-height: 18rem;
}

.additional .large img {
  max-width: 45rem;
  max-height: 15rem;
}

.additional .additional-text {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

header.tools {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 20cm;
  max-width: 20cm;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  padding: 1vh;
  border-bottom: 1px solid #4caf50;
  border-left: 1px solid #4caf50;
  border-right: 1px solid #4caf50;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 0.5vh 3vh rgba(0, 0, 0, 0.1);
}

.tools-header-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 2vh;
  padding-bottom: 1vh;
  border-bottom: 0.1vh solid rgba(0, 0, 0, 0.1);
}

.tools .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: none;
  box-shadow: none;
}

.tools .logo img {
  height: 3vh !important;
  width: auto !important;
}

.creator-info-small {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
  margin: 0.5vh 0;
}

.creator-badge {
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.3vh;
  font-weight: 700;
  color: #2e7d32;
  margin: 0 0.3vh;

  text-align: center;
}

.creator-mini {
  display: flex;
  align-items: center;
  gap: 1vh;
  padding: 0.7vh 1.5vh;
  border-radius: 2vh;
  background: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
}

.creator-mini:hover {
  background: #fff;
  box-shadow: 0 0.5vh 2vh rgba(0, 0, 0, 0.1);
}

.creator-avatar-mini {
  height: 4vh !important;
  width: auto !important;
  border-radius: 50%;
  object-fit: cover;
  border: 0.2vh solid #fff;
}

.creator-name-mini {
  font-size: 1.4vh;
  color: #333;
  font-weight: 600;
  text-align: center;
}

.tools .buttons {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5vh;
  margin-bottom: 2vh;
}

.tools a,
.tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1vh;
  padding: 1vh 2vh;
  font-size: 1.6vh;
  font-weight: 600;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(1vh);
  border: 0.2vh solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
  color: #000;
}

.tools a:hover,
.tools button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-0.5vh);
  box-shadow: 0 1vh 3vh rgba(0, 0, 0, 0.15);
}

.tools button.download {
  background: #efffef;
  border-color: #4caf50;
}
.tools button.print {
  background: #b0dcff;
  border-color: #2196f3;
}
.tools a.edit {
  background: #ffdda9;
  border-color: #ff9800;
}
.tools a.delete {
  background: #ffa49e;
  border-color: #f44336;
}

.tools button img,
.tools a img {
  height: 2vh;
  width: auto;
  transition: 0.3s;
}

.tools a:hover img,
.tools button:hover img {
  transform: scale(1.1);
}

.tools .language-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1vh;
  width: 100%;
  padding-top: 1vh;
  border-top: 0.1vh solid rgba(0, 0, 0, 0.08);
}

.tools .language-switcher .language-item {
  display: flex;
  align-items: center;
  gap: 1vh;
  padding: 0.5vh 2vh;
  border-radius: 1.2vh;
  background: rgba(255, 255, 255, 0.8);
  border: 0.2vh solid #4dabf7;
  font-family: "Vazirmatn", sans-serif;
  font-size: 1.8vh;
  font-weight: 600;
  transition: 0.3s ease;
  color: #000;
  text-decoration: none;
}

.tools .language-switcher .language-item:hover {
  background: #f0f7ff;
  transform: translateY(-0.3vh);
}

.tools .language-switcher .language-item.active {
  background: #d7ecff;
  border-color: #1971c2;
  box-shadow: 0 0.5vh 2vh rgba(77, 171, 247, 0.3);
}

.tools .language-switcher .language-item img {
  height: 2.5vh;
  width: auto;
  border-radius: 0.5vh;
}

.tools svg {
  height: 2.5vh !important;
  width: unset !important;
}

.tools .download svg {
  color: #2e7d32;
}

.tools .print svg {
  color: #007497;
}

.tools .edit svg {
  color: #856100;
}

.tools .delete svg {
  color: #7d2e2e;
}

.document {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.footer {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: flex-end;
  align-items: flex-end;
  justify-content: space-between;

  width: 100%;

  position: absolute;
  bottom: 0;
}

.footer .qr-code-container {
  display: flex;
  align-items: flex-end;

  position: relative;
  height: 5rem;
  width: 5rem;
}

.footer .qr-code-container img {
  height: 4.5rem;
  position: absolute;
}

.footer .file-info {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-end;
  align-items: flex-end;

  width: 16rem;

  bottom: 0;
  right: 0;
}

.footer .file-info .info {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;

  font-style: italic;
  font-weight: 500;
  font-size: 0.65rem;
  color: #b2b2b2;
  line-height: 0.7rem;

  margin: 0.3rem;
}

.footer .page-number {
  font-weight: 300;
  font-size: 0.65rem;
  font-style: italic;
  color: #b2b2b2;

  margin: 0.3rem;
}

.footer .barcodes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-content: center;
  justify-content: flex-start;
  align-items: center;

  width: 80%;

  margin-right: 1rem;
  margin-left: 1rem;
}

.footer .barcode-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0.3rem;

  color: #b2b2b2;
}

.footer .barcode-title {
  font-size: 0.5rem;
  font-weight: bold;
}

.footer .barcode-image {
  max-height: 1.5rem;
}

.footer .barcode-code {
  font-size: 0.5rem;
}

footer .copyright {
  color: #878787;
  font-weight: 500;
  font-size: 1.3vh;
  margin: 1rem;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  @page {
    size: A4;
    margin: 6mm;
  }

  html {
    background: #fff;
  }

  .paper {
    margin: 0;
  }

  header.tools,
  footer,
  .language-switcher {
    display: none;
  }
}
