/*Font Inter*/
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/*------------------------------ Body ------------------------------*/
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #616f7c;
}
ul {
  margin: 0px;
  padding: 0px;
}

a {
  color: #57636e;
  text-decoration: none;
  font: bold 0.85rem "Inter", sans-serif;
}
a:hover {
  color: #c73741;
  transition: 0.4s;
}

/*------------------------------ Header ------------------------------*/
#header {
  box-sizing: border-box;
  height: 4.37em;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
#menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}
#menu a {
  display: block;
  padding: 0.5rem;
}
#btn-mobile {
  display: none;
}

/*------------------------------ Main ------------------------------*/
main {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/*------------ Aviso de Atualização --------------*/
#atualiza {
  position: sticky;
  top: 100px; /* distância mínima do topo (ajuste para não encostar no cabeçalho) */
  max-height: calc(
    100vh - 120px
  ); /* altura máxima para não colidir com o rodapé */
  overflow-y: auto; /* cria rolagem interna se ultrapassar */
  box-sizing: border-box;
  margin-left: 5px;
}

#atualiza a {
  font-size: 11px;
}
#atualiza p {
  margin: 0;
}
.lista_atualiza {
  margin-top: 0.19rem;
  list-style: none;
  background: white;
  color: #af3038;
  padding: 0.62rem 0.62rem 0.62rem 1rem;
  box-sizing: border-box;
  box-shadow: 1px 1px 4px rgb(58, 57, 57);
}

.lista_atualiza:hover {
  background: #4f95aa;
  color: white;
  transition: 0.6s;
  cursor: pointer;
}
#lista_atualiza {
  margin-top: 0.19rem;
  list-style: none;
  background: white;
  color: #16394e;
  padding: 0.62rem 0.62rem 0.62rem 1rem;
  box-sizing: border-box;
  box-shadow: 1px 1px 4px rgb(58, 57, 57);
  border-radius: 3px;
}
#lista_atualiza:hover {
  background: #4f95aa;
  color: white;
  transition: 0.6s;
  cursor: pointer;
}

/*------------ Ferramenta --------------*/
#ferramenta {
  width: 65%;
  margin: auto;
  align-self: center;
  font: normal 0.85rem "Inter", sans-serif;
  background: white;
  margin-top: 5%;
  padding: 1.25rem;
  text-align: center;
  color: #555;
  border-radius: 3px;
  box-sizing: border-box;
  box-shadow: 1px 1px 4px rgb(58, 57, 57);
}
#ferramenta p {
  padding: 7px;
}
#tit_ferramenta {
  width: 100%;
  font-family: "Inter", sans-serif;
}
#tit_ferramenta img {
  width: 40px;
  height: 20px;
}
#tit_ferramenta p {
  text-align: center;
}
.sub_tit_ferramenta {
  color: #af3038;
}
h1 {
  font-size: 2rem;
  font-style: bold;
}
h2 {
  font-size: 1.2rem;
  font-style: bold;
  color: #af3038;
}
h3 {
  font-size: 1.5rem;
  font-style: bold;
}
h4 {
  text-align: center;
}
p {
  text-align: left;
  line-height: 22px;
  margin: 0;
  padding: 2px;
}
form {
  margin: auto;
  width: 70%;
  display: flex;
  flex-wrap: wrap;
}
.formulario {
  box-sizing: border-box;
  height: 38px;
  width: 100%;
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
#txt_formulario {
  margin-top: 1.5rem;
  padding: 10px;
  box-sizing: border-box;
  font: normal 0.75rem "Inter", sans-serif;
  background: #dff4fc;
  border: 1px solid #bce8f1;
  display: flex;
  flex-wrap: wrap;
}
.tit_txt_formulario {
  font-weight: bold;
}
#txt_formulario p {
  margin-bottom: 0.5rem;
}
.ferram_area {
  width: 33.33%;
  text-align: left;
  flex: auto;
}
.ferram_area ul li {
  margin: 20px;
}
.ferram_area img {
  width: 16px;
  height: 10px;
}
.ferram_area a {
  color: #57636e;
  text-decoration: none;
  font: normal 0.75rem "Inter", sans-serif;
}
.ferram_area a:hover {
  color: #c73741;
  transition: 0.4s;
}

#lupa {
  height: 20px;
}
#exemplo_calculo {
  margin-left: 50px;
  width: 85%;
}
.link_tabela a{
  color: #af3038;
}

.link_tabela a:hover{
  color: #16394e;
}
/*------------ Resultado --------------*/
#resultado {
  width: 100%;
  transition: opacity 0.2s ease-in-out;
}
/*#resultado.show_result {
 opacity: 1;
}*/
#resultado a {
  font: normal 0.8rem "Inter", sans-serif;
  padding: 7px;
}
/*
.overflow {
 width: 100%;
 overflow-x: auto;
}
*/
.resul_flex {
  display: block;
  flex-wrap: nowrap;
}
.tit_resul {
  background: #16394e;
  color: white;
  font: normal 0.85rem "Inter", sans-serif;
  padding: 7px 2px 7px 2px;
}
.subtit_resul {
  background: #2b535f;
  color: white;
  font: normal 0.85rem "Inter", sans-serif;
  padding: 3px 2px 3px 2px;
}
.coluna_resul {
  width: 80px;
}
table {
  width: 90%;
  border-spacing: 0;
  border: 1px solid #16394e;
  margin: auto;
  margin-top: 1.8rem;
  font: normal 0.75rem "Inter", sans-serif;
}

#linhas_resul:hover {
  background: #bce8f1;
  transition: 0.4s;
  cursor: pointer;
}
#table_nfe {
  width: 90%;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
}
#table_nfe th {
  border-right: 1px solid #16394e;
}
td {
  text-indent: 5px;
  padding: 7px 2px 7px 2px;
  box-sizing: border-box;
  text-align: left;
}

.border {
  border-right: 1px solid #ddd;
}

.borda_baixo {
  border-bottom: 1px solid #ddd;
}

#tabela_iss td {
  text-align: center;
}
#iss {
  text-align: left;
}
/*----------------------- Texto no Final da Ferramenta ------------------------*/
#txt_formulario {
  margin-top: 1.5rem;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font: normal 0.75rem "Inter", sans-serif;
  background: #dff4fc;
  border: 1px solid #bce8f1;
}
.tit_txt_formulario {
  font-weight: bold;
}
#txt_formulario p {
  margin-bottom: 0.5rem;
}
/*----------------------- Footer ------------------------*/
footer {
  width: 100%;
  margin-top: 14%;
  background: white;
  text-decoration: none;
}
#footer_content {
  /* Todo o conteúdo do footer */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3rem 3.5rem;
  font: normal 0.85rem "Inter", sans-serif;
  color: #555;
}
.footer_list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}
.footer_list .footer_link {
  transition: all 0.4s;
}
.footer_list .footer_link:hover {
  color: #c73741;
}
#btn_assinar {
  /* Botão de assinar*/
  margin: auto;
  width: 200px;
  height: 33px;
  background: #daa520;
  color: white;
  border-radius: 10px;
  font: bold 0.85rem "Inter", sans-serif;
  border-style: none;
  cursor: pointer;
  text-align: center;
}
#btn_assinar:hover {
  opacity: 0.8;
  transition: all 0.4s;
}
#footer_contacts h1 {
  margin-bottom: 0.75rem;
}
#footer_social_media {
  display: flex;
  gap: 2px;
  margin-top: 1.5rem;
}
#footer_social_media .footer_link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  width: 2.5rem;
  border-radius: 50%;
  transition: all 0.4s;
}
#footer_social_media .footer_link i {
  font-size: 1.25rem;
}
#footer_social_media .footer_link:hover {
  opacity: 0.8;
}
#instagram {
  color: black;
}
#facebook {
  color: black;
}
#whatsapp {
  color: black;
}
#direito_ltda {
  font: normal 0.75rem "Inter", sans-serif;
  color: #555;
}
#direito_ltda p {
  text-align: center;
}
/*----------------------- Media Header e Main ------------------------*/
@media (max-width: 1000px) {
  main {
    justify-content: center;
  }
  #ferramenta {
    width: 85%;
    padding: 1rem;
  }
  #atualiza {
    width: 300px;
    position: relative;
  }
  .formulario {
    height: 58px;
  }
  .input {
    width: 170px;
  }
  select {
    width: 170px;
  }
  .ferram_area {
    width: 100%;
  }
  #exemplo_calculo {
  margin: auto;
}
  #menu {
    display: block;
    position: absolute;
    width: 100%;
    top: 70px;
    right: 0px;
    background: #e7e7e7;
    transition: 0.6s;
    z-index: 1000;
    height: 0px;
    visibility: hidden;
    overflow-y: hidden;
    text-align: center;
  }
  #nav.active #menu {
    height: calc(53vh - 70px);
    visibility: visible;
    overflow-y: auto;
  }
  #menu a {
    padding: 1rem 0;
    margin: 0 1rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
  }
  #btn-mobile {
    display: flex;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: none;
    background: none;
    cursor: pointer;
    gap: 0.5rem;
  }
  #btn-mobile:hover {
    color: #c73741;
    transition: 0.3s;
  }
  #hamburger {
    border-top: 2px solid;
    width: 20px;
  }
  #hamburger::after,
  #hamburger::before {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    margin-top: 5px;
    transition: 0.3s;
    position: relative;
  }
  #nav.active #hamburger {
    border-top-color: transparent;
  }
  #nav.active #hamburger::before {
    transform: rotate(135deg);
  }
  #nav.active #hamburger::after {
    transform: rotate(-135deg);
    top: -7px;
  }
}

/* Estilo para telas menores (tablets e celulares) */
@media (max-width: 1000px) {
  #atualiza {
    position: relative; /* deixa ele fluir normalmente na página */
    top: auto;
    max-height: none;
    overflow: visible;
    margin: 1rem auto;
    width: 90%; /* ocupa quase toda a largura */
  }

  #atualiza ul {
    display: flex;
    flex-wrap: wrap; /* distribui os itens em várias linhas */
    justify-content: center; /* centraliza */
    gap: 0.5rem;
  }

  #atualiza li {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/*----------------------- Media Footer ------------------------*/
@media screen and (max-width: 768px) {
  #footer_content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
@media screen and (max-width: 426px) {
  #footer_content {
    grid-template-columns: repeat(1, 1fr);
    padding: 3rem 2rem;
  }
}
