/* ===========================
   Barra lateral (scrollbar)
   =========================== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: lightgray;
}

/* ===========================
   Fontes
   =========================== */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, label, li, ul,
header, .footer-link {
  font-family: 'Poppins', sans-serif;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   Layout principal
   =========================== */
html {
  text-align: center;
}

form {
  display: grid;
  grid-template-columns: auto 90vw auto;
  text-align: left;
  row-gap: 4vh;
  padding-top: 4vh;
  padding-bottom: 4vh;
}

form div {
  align-items: center;
}

main p {
  margin: 0;
  vertical-align: middle;
  line-height: 3rem;
}

main input {
  margin: 10px 0px 10px 0px;
}

/* ===========================
   Responsividade
   =========================== */
/* Impressão */
@media print {
  @page {
    margin: 0.5cm;
    margin-left: 1cm;
    margin-right: 1cm;
  }

  .no-print {
    display: none;
  }

  body,
  input,
  select,
  textarea {
    font-size: 10px !important;
  }

  main {
    grid-template-columns: auto 98vw auto !important;
    row-gap: 0.7vh !important;
    padding-top: 0.5vh !important;
    padding-bottom: 0.5vh !important;
  }

  main p {
    margin: 0 !important;
    vertical-align: middle !important;
    line-height: 1.5rem !important;
  }

  main input {
    margin: 5px 0px 5px 0px !important;
  }
}

/* Celular */
@media screen and (max-width: 767px) {

  body,
  input,
  select,
  textarea,
  button {
    font-size: 5px !important;
  }

  main {
    row-gap: 2vh !important;
    padding-top: 2vh !important;
    padding-bottom: 2vh !important;
  }

  main p {
    margin: 0 !important;
    vertical-align: middle !important;
    line-height: 1rem !important;
  }

  .ico {
    height: 8px !important;
  }
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1200px) {

  body,
  input,
  select,
  textarea,
  button {
    font-size: 10px !important;
  }

  main {
    row-gap: 2vh !important;
    padding-top: 2vh !important;
    padding-bottom: 2vh !important;
  }
}

/* ===========================
   Componentes e utilitários
   =========================== */
/* Botões */
.btn {
  background-color: #f2f2f2;
  border-color: #cccccc;
}

.calc {
  margin: 10 -1 !important;
}

/* Ícones */
.ico {
  max-width: 15px;
  max-height: 15px;
  margin-top: -2%;
}

/* Botão download */
.download {
  border-radius: 0;
  border-color: lightgray;
  background-color: #f2f2f2;
}

/* Upload TXT */
.upload-txt input[type="file"] {
  display: none;
}

.upload-txt {
  display: inline-block;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  padding: 6px 12px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
  align-content: center;
}

/* Esconder o input de arquivo */
.upload-txt input[type="file"] {
  display: none;
}

/* Botões de upload txt */
.upload-txt {
  display: inline-block;
  border: 1px solid #ccc;
  background-color: #f2f2f2;
  padding: 6px 12px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  cursor: pointer;
  align-content: center;
}