h1 {
  font-size: 2em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  line-height: 1.5rem;
  color: var(--texto-95);
}

a {
  color: var(--cor1);
  font-weight: 500;

  /* &:has(img) {
    line-height: 0;
  } */
}

span {
  font-size: 0.8em;
  line-height: 1.2rem;
  color: var(--texto-70);
  display: inline-block;
}

p {
  margin: 0;
  line-height: 1.5em;
}

/* ──────── FORMULÁRIOS ──────── */

label {
  font-size: 1em;
}

label:has(input:is([type="text"], [type="email"], [type="password"], [type="number"], [type="date"], [type="time"]), textarea, select) {
  display: flex;
  flex-direction: column;
  background: var(--bg-0);
  border-radius: var(--radius-50);
  padding: 8px 12px;
  transition: 0.5s;
  border: 1px solid #ffffff;
  color: var(--texto-50);
  /* font-size: 0.9rem; */
  /* font-weight: 400; */
  /* transition: 0.5s; */
  border: 1px solid rgba(155, 155, 155, 0);
  justify-content: center;
  min-height: 56px;
  box-sizing: border-box;
  position: relative;
  width: 100%;

  &.cor2 {
    background: var(--bg-5);
  }

  &.fit {
    width: fit-content;
  }

  input {
    padding: 2px 8px;
    background: transparent;
    border: unset;
    outline: unset;
    /*line-height: 0;*/
    /* font-weight: 300; */
    font-size: 1rem;
    /* transition: 0.3s; */
    -webkit-appearance: none;
    appearance: none;
  }

  input::placeholder {
    /* color: var(--texto-30); */
    font-size: .9em;
  }

  img {
    width: 24px;
    position: absolute;
    right: 16px;
    opacity: 0.33;
    transition: 0.5s
  }

  textarea {
    font-size: 1em;
    padding: 2px 8px;
    background-color: transparent;
    border: 0;
    height: 4em;
    resize: none;
  }

  select {
    min-height: 0;
    padding: 2px 8px;
    border: 0;
    font-size: 1.1em;
    font-weight: inherit;
  }

  /* & input:focus,
  & input:focus-within,
  & input:focus-visible,
  & input:not(:placeholder-shown) {
    font-size: 0.95rem;
    color: var(--texto-95);
  } */


  /* 
  &:has(input:focus-within) {
    font-size: 0.66em;
    color: var(--texto-50);
    border-color: rgba(43, 43, 43, 0.12);
  } */

  /*&:has(input:valid),*/
  /* &:has(input:not(:placeholder-shown)) {
    font-size: 0.66em;
    color: var(--texto-50);

    img {
      opacity: 0.82;
    }
  } */

  /*&:has(input:valid) {
        border-color: #28a745;
    }*/

  /* select option:disabled {
    color: #a0a0a0;           
    background-color: #f0f0f0;    
    font-style: italic;           
  } */

}

select {
  /* appearance: none; */
  cursor: pointer;
  background: var(--bg-0);
  border-radius: var(--radius-50);
  padding: 8px 0px 8px 12px;
  transition: 0.5s;
  border: 1px solid #ffffff;
  font-size: 1rem;
  font-weight: 500;
  transition: 0.5s;
  border: 1px solid rgba(155, 155, 155, 0);
  justify-content: center;
  min-height: 56px;
  box-sizing: border-box;
  position: relative;
  width: 100%;

  &.cor2 {
    background: var(--bg-5);
  }

  &.fit {
    width: fit-content;
  }
}

.campo-obrigatorio::after {
  content: "*";
  margin-left: .1em;
  color: var(--cor6)
}

.campo-obrigatorio-legenda {
  color: var(--texto-50);
  font-size: .9em;
  margin-top: 0.5rem;
  display: flex;
  align-self: flex-start;
}

/* ──────── Text ──────── */
.textMuted {
  cursor: not-allowed;
  opacity: 0.7;
}

/* ──────── BOTOES ──────── */
.btn {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  ;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  text-align: center;
  /* display: inline-block; */
  background-color: var(--cor1);
  color: white;
  font-weight: 500;
  font-size: 0.95em;
  gap: 8px;

  display: inline-flex;
  align-items: center;
}

.btn:hover {
  filter: brightness(1.20);
}

.btn-2 {
  background-color: var(--bg-30);
  color: var(--texto-95);
}

.btn-2:hover {
  filter: brightness(1.25);
}

.btn-sucesso {
  background-color: #28a745;
  color: white;
}

.btn-sucesso:hover {
  background-color: #218838;
}

.btn-perigo {
  background-color: #dc3545;
  color: white;
}

.btn-perigo:hover {
  background-color: #c82333;
}

.btn-aviso {
  background-color: #ffc107;
  color: #212529;
}

.btn-aviso:hover {
  background-color: #e0a800;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-icone {
  width: 20px;
  cursor: pointer;
  opacity: 0.5;
  transition: 0.5s;

  &:hover {
    opacity: 1;
  }

}

.btn-voltar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0px solid var(--cor1);
  border-radius: var(--radius-50);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  background: #fff;
  color: var(--texto-70);
}

.btn-voltar:hover {
  background: var(--bg-90);
}

.form-linha {
  display: flex;
  gap: 12px;
}

.form-linha-fim {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.processando {
  pointer-events: none;
  opacity: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    filter: invert(1);
    width: 18px;
    /*margin-left: 12px;*/
  }
}

.pointer {
  cursor: pointer;
}

.ver-senha {
  cursor: pointer;
}

.erro {
  color: red !important;
  font-weight: 500;
}

.sucesso {
  color: rgb(8, 184, 66) !important;
  font-weight: 500;
}

.excluir-link {
  color: var(--cor6);
  display: flex;
  align-self: flex-start;
  align-items: center;

  opacity: .5;

  padding-top: 1.25em;

  &:hover {
    opacity: 1;
  }
}

#main {
  background: #f8f9fa;
  min-height: calc(100vh - 48px);
  /* margin-left: 72px; */
  width: 100%;
  padding: 20px 48px;
  overflow-y: auto;
}

#main-body {
  margin-bottom: 48px;
}

#bem-vindo-container {
  max-width: 550px;
  margin: 0 auto;

  img {
    width: 100%;
    max-width: 275px;
  }
}

#titulo-sessao span {
  color: var(--texto-50);
  font-size: 1em;
}

#subtitulo-sessao {
  margin-top: 6px;
}

#container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* .container-limite {
    max-width: 1320px;
    margin: 0 auto;
} */


/* ──────── LISTAS ──────── */

.lista-largura-curta {
  width: 100%;
  max-width: 640px;
}

.lista-largura-media {
  width: 100%;
  max-width: 900px;
}

.lista-largura-larga {
  width: 100%;
  max-width: 1100px;
}

/* ──────── ÍCONES ──────── */

.icone-btn {
  width: 24px;
  cursor: pointer;
}

.icone-preto {
  filter: brightness(0);
}

.icone-cinza-70 {
  filter: brightness(.3);
}

.icone-azul {
  filter: invert(36%) sepia(81%) saturate(2681%) hue-rotate(192deg) brightness(101%) contrast(105%);
}

/* ──────── CARDS ──────── */

.bgcard {
  color: var(--texto-70);
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  position: relative;
  box-shadow: 1px 1px 5px rgb(var(--cinza-hex-50), .2);
  transition: 0.3s ease-in-out;

  &:hover {
    box-shadow: 1px 1px 5px rgb(var(--cinza-hex-50), .75);
  }
}

.bgcard-head {
  position: relative;
  color: var(--texto-70);
}

/* .bgcard-head-titulo-opcoes {
  display: flex;
  justify-content: space-between;
} */

.bgcard .bgcard-opcoes {

  position: absolute;
  right: 0;
  top: 0;

  display: flex;
  flex-direction: row;
  gap: 8px;

  img {

    cursor: pointer;
    width: auto;
    height: 20px;
    opacity: 0.4;

    &:hover {
      opacity: 1;
    }
  }
}

.bgcard-titulo {
  color: var(--texto-95);
  font-size: 1.25em;
  line-height: normal;
  font-weight: bold;
}

.bgcard-descricao {
  display: none;
  /* margin-top: 4px; */
  /* color: var(--texto-70) !important; */
  /* padding-left: 1em; */
}

.bgcard-body {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--texto-70);
}

.bgcard-body-col {
  flex-direction: column;
}

.bgcard-label {
  /* color: var(--texto-50); */
  white-space: nowrap;
  font-size: .9em;
}

.bgcard-texto-destaque-10 {
  font-weight: bold;
  font-size: 1.0em;
}

.bgcard-texto-destaque-1 {
  font-weight: bold;
  font-size: 1.1em;
  min-height: 24px;
}

.bgcard-texto-destaque-2 {
  font-weight: bold;
  font-size: 1.2em;
}

.bgcard-texto-destaque-3 {
  font-weight: bold;
  font-size: 1.3em;
}

.bgcard-texto-destaque-4 {
  font-weight: bold;
  font-size: 1.4em;
}

.bgcard-texto-destaque-5 {
  font-weight: bold;
  font-size: 1.5em;
}

/* ──────── FOOTER ──────── */

.footer {
  color: var(--texto-70);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  position: fixed;
  bottom: 0;
  width: calc(var(--container-width) - var(--menu-lateral-width) - 2rem);
  background: var(--cor2-clara);
  text-align: center;
  padding: .5rem 1rem .5rem calc(var(--menu-lateral-width) + 1rem);
  box-shadow: 0px 0px 10px 0px rgb(151 151 151 / 13%);
}

.footer-group {
  display: flex;
  gap: 1rem;
}

.footer-item {
  display: flex;
  align-items: anchor-center;
}