.balance {
  margin: 0 auto;
  margin-top: 30px;
  max-width: 960px;

  display: flex;
  flex-direction: column;
  gap: 3.5em;
}

.checkbox label{
 margin: 0;
 margin-left: 1em;
}

p {
  color: var(--dark);
  font-size: 0.875em;
  font-weight: 400;
  margin: 0 20px;
}

.balance label{
  color: var(--dark);
  font-size: 1.125em;
  font-weight: 400;
}

.balance div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance input, select{
  height: 2.5em;
  width: auto;
  padding: 0 1em;
  border: 1px solid var(--primary);
  background-color: white;
}

.balance textarea {
  height: 2.5em;
  padding: 1em;
  flex: auto;
  width: 100%;
  border: 1px solid var(--primary);
  background-color: white;
  
}

.balance div label {
  margin-right: 2em;
}

.balance div label.data {
  margin-right: 1em;
}

.balance h1 {
  color: var(--primary);
  font-size: 1.5em;
  font-weight: 700;
}

div#errors {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.buttons {
  gap: 5em;
  margin: 0 18em;
}

.button {
  cursor: pointer;
  border: none;
  color: white;
  font-size: 0.875;
  font-weight: 700;
  width: 10.5em;
  height: 3em;
  box-sizing: border-box;
  box-shadow: 0px 12px 22px gba(0, 0, 0, 0.24);
  border-radius: 4px;
  transition: all 200ms;

}

.button_green {
  background-color: var(--primary);
}

.button_red {
  background-color: var(--red);
}

.button:hover {
  filter: opacity(0.8); 
}

table {
  border-collapse: collapse;
}

#table th{
  padding: 0 1em;
  color: white;
  height: 2.5em;
  font-weight: 400;
  font-size: 1.125em;
  background-color: var(--primary);
}

#table tr {
  border-bottom: 1px solid #DFDFDF;
}

#table td{
  font-weight: 400;
  font-size: 0.875em;
  color: #3F3F3F;
}

#table tr:nth-child(odd) {
  background-color: var(--blue);
}

#table td{
  text-align: center;
  vertical-align: middle;
  padding: 1em 0;
}

#result tr{
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 0;
  font-weight: 700;
  font-size: 1.125em;
  color: #3F3F3F;
}

#data_candles {
  width: 20em;
  height: 10em;
}

#toPDF {
  flex-direction: column;
}

.export {
  margin: 0 auto;
  margin-bottom: 2em;
}

.hidden{
  visibility: hidden;
}

#text_export {
  width: 100%;
  height: 300px;
}

@media (max-width: 960px)
{
  .balance {
    margin: 20px 10px;
  }

  .buttons {
    margin: 0 4em;
  }
}

@media (max-width: 640px)
{
  body {
    font-size: 80%;
  }
}

@media (max-width: 550px)
{
  #table {
    font-size: 70%;
  }
  
  .balance div.inputs{
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
  }

  div.inputs2{
    margin-top: -40px;
    margin-bottom: -40px;
  }

  .balance div.inputs div{
    padding-bottom: 20px;
  }
}

@media (max-width: 365px)
{
  #table {
    font-size: 60%;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 1em;
  }
}