* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Calibri;
  color: rgb(0, 0, 49);
  margin: 0px;
}

#free {
  font-size: 1.2rem;
  width: 100%;
}

.itens {
  width: 180mm;
  /*height: 1110px;*/
  height: 297mm;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 47mm;
  gap: 2px 0;
  padding: 0px;
}

.item {
  width: 59mm;
  /*6 - 60mm*/
  height: 47mm;
  /*4 - 40mm*/
  position: relative;
  margin: 1px 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.item img {
  width: 101%;
  /*6 - 60mm*/
  height: 100%;
  /*4 - 40mm*/
  position: absolute;
  margin: 0;
  padding: 0;
  z-index: 0;
}

.item div {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.diagBox {
  font-size: 1rem;
  margin: 0;
  font-weight: bold;
}

.item div span {
  margin: 0;
  width: 100%;
}

.item div span:nth-child(3) {
  font-size: 1.2rem;
}

.item span {
  padding: 2px;
  z-index: 1;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  font-size: 1.6rem;
  white-space: pre-wrap;
  max-width: 100%;
  word-wrap: break-word;
}

.pop {
  margin: 100px 0 0 25mm;
  width: 500px;
  display: flex;
  grid-template-columns: 1fr 50px;
  flex-flow: column;
  align-items: center;
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  background-color: #111c29e5;
  gap: 5px;
  z-index: 4;
}

.pop h2,
.pop ul li {
  color: white;
}

.pop ul {
  list-style: numeric;
  font-size: 1.2rem;
}

.pop input,
.pop select {
  padding: 5px;
  border-radius: 8px;
  border: transparent;
  width: 100%;
}

.pop h1 {
  color: white;
  margin: 10px 0;
  text-align: center;
  grid-column: 1 / -1;
}

.pop button {
  background-color: rgb(21, 177, 21);
  font-size: 1.2rem;
  color: white;
  padding: 5px;
  width: 80%;
  border: none;
  border-radius: 12px;
  margin: 20px 0;
  grid-column: 1 / -1;
  justify-self: center;
}

.pop p {
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  text-align: left;
  font-size: 0.8rem;
  grid-column: 1 / -1;
  width: 95%;
}

.pop img {
  justify-self: center;
}

.pop p img {
  width: 20px;
  margin: 0 10px;
}

.more {
  cursor: pointer;
  position: absolute;
  background-color: transparent;
  width: 100%;
  height: 100%;
  z-index: 3;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.more img {
  width: 50%;
  height: 50%;
}

.setButtons {
  position: absolute;
  display: none;
  justify-content: space-around;
  width: 100%;
  height: 40px;
  top: 25px;
  z-index: 3;
}

.item:hover > .setButtons {
  display: flex;
}

.setButtons button {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  background-color: transparent;
  border: none;
}

.setButtons button:hover {
  background-color: rgba(0, 0, 0, 0.534);
  border-radius: 12px;
}

.setButtons img {
  width: 15px;
  height: 15px;
}

@media print {
  .pular {
    break-after: page;
    page-break-after: always;
  }

  .pop {
    display: none;
  }

  #noPrint {
    display: none;
  }

  @page {
    margin-top: 0.2cm;
  }

  .itens {
    width: 180mm;
    height: 280mm;
  }
}
