/* ------ Helpers ----- */

.align-center {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.content-right {
  text-align: right;
  flex-direction: row-reverse;
}

.break {
  flex-basis: 100%;
  height: 0;
}

.alignitens {
  text-align: left;
}

.ato {
  text-align: left;
}

.colortextato {
  color: #093c75;
}

.post-edit-link {
  font-size: 1rem;
  display: inline-block;
}

/* ----- Aviso ----- */

.aviso {
  color: #333;
  background: #f5f5f5;
  border: 1px dashed #00457a;
  padding: 1rem 1.3rem;
  border-radius: 6px;
  margin: -0.5rem 0 1.5rem;
  text-align: justify;
  font-size: 0.95rem;
}

.aviso-titulo {
  color: #00457a;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.2rem;
}

.aviso a,
.aviso .texto-wpp {
  color: #00457a;
  font-weight: 500;
}

.aviso.fase-implantacao {
  margin-top: 1.75rem;
}

.aviso p:last-child {
  margin-bottom: 0
}

/* ----- Cabeçalho ----- */

.cabecalho {
  background-color: #00457a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.cabecalho a {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

span.tag-migrado {
  background: #185991;
  padding: 0.2rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 6px;
  color: #fff;
  margin-left: 5px
}

.cabecalho a:hover span,
span.tag-migradon:hover {
  color: #fff
}

/* ----- Filtros ----- */

.filtros {
  margin: 30px 0;
  text-align: left;
}

.filtros-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  background: #ffffff;
  border: 1px dashed #ddd;
  padding: 1rem 2rem 1.5rem;
  border-radius: 6px;
}

.filtros-wrapper-normativos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.filtros-wrapper-normativos-custom{
  grid-template-columns: repeat(1, 1fr)!important;
}

.filtros-wrapper-normativos{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
}

.filtros-wrapper-normativos-custom{
  grid-template-columns: repeat(1, 1fr)!important;
}

.filtros .form-control.selecionado {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  outline: 0;
}

.filtros-wrapper input[type="text"],
.filtros-wrapper input[type="date"],
.filtros-wrapper input[type="number"] {
  display: inline-block;
  width: 100%;
  padding: 17px;
  font-family: inherit;
  font-size: 14px;
  line-height: 18px;
  color: #303030;
  background: linear-gradient(to bottom, #fefefe, #f2f2f2);
  border: 1px solid #b8b8b8;
  border-radius: 3px;
  box-sizing: border-box;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 1;
}

.filtros-wrapper .selectize-dropdown,
.filtros-wrapper .selectize-input,
.filtros-wrapper .selectize-input input {
  font-size: 14px !important;
}

.filtros-wrapper .item label {
  font-weight: bold;
}

.filtros-wrapper .item.botoes {
  padding-top: 0.5rem;
}

.filtros-wrapper .item.botoes button {
  width: 100%;
  border-radius: 6px;
}

.filtros-wrapper .item.botoes button[type="submit"]:before {
  content: "\f536";
}

.filtros-wrapper .item.botoes button[type="reset"]:before {
  content: "\f463";
}

.filtros-wrapper .item.botoes button:hover {
  filter: brightness(110%);
}

.buttonatosnormativos {
  background: #eaa229;
}

.titulo_materia {
  position: relative;
  font-weight: bold;
  margin: 2rem 0;
}

.titulo_materia .texto {
  overflow: hidden;
  text-align: center;
  position: relative;
}

.titulo_materia .texto:before {
  position: absolute;
  top: 50%;
  left: 0;
  overflow: hidden;
  width: 100%;
  height: 2px;
  content: "\a0";
  background-color: #ddd;
  z-index: -1;
}

.titulo_materia .texto span {
  display: inline-block;
  background: white;
  padding: 0 1.25rem;
}

.conteudo_materia {
  margin-bottom: 2.5rem;
}
/* ----- Links "conteudo da materia" ----- */
.conteudo_materia a{
  color: #007bff;
}
/* ----- Anexos ----- */

ul.anexos {
  margin-top: -0.5rem;
  margin-bottom: -0.5rem;
}

ul.anexos>li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.3rem;
  gap: 2.5rem;
}

ul.anexos>li .nome_anexo {
  word-break: break-all;
}

ul.anexos>li .nome_anexo span {
  color: #1b4b7f;
  font-weight: 500;
}
/* ----- Links "anexos" ----- */
ul.anexos>li .nome_anexo a {
  color: #007bff;
  font-weight: 500;
}

ul.anexos>li .tamanho_anexo_mobile {
  display: none;
  font-size: 0.9rem;
  margin-bottom: 0;
}

ul.anexos>li .tamanho_anexo_mobile a {
  color: #bc9029;
}

ul.anexos>li:not(:last-child) {
  border-bottom: 1px solid #f0f0f0;
}

ul.anexos .botoes .btn {
  white-space: nowrap;
  min-width: 135px;
}

ul.anexos .botoes .btn-download {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  background-color: #d1a02e;
  border-color: #bc9029;
}

/* ----- Linha separadora ----- */

.separador {
  width: 100%;
  height: 1px;
  background: #e6e6e6;
  margin: 1rem 0;
}

.cardatos {
  margin-bottom: 2%;
}
/* ----- Links nos "cardatos" ----- */
.card.cardatos a {
  color: #007bff !important; 
}
.subsecao a:not(.btn):not(.btn-primary):not(.btn-download) {
  color: #007bff;
}
/* ----- Botões ----- */

.botoes {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.botao {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  color: #fff;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
}

.botao:before {
  font: normal 1rem/1 dashicons;
}

.botao:focus {
  outline: 0;
}

.botao:hover {
  filter: brightness(110%);
}

button.laranja {
  background: #d1a02e;
  border: 1px solid #d1a02e;
}

button.verde {
  background: #28a745;
  border: 1px solid #28a745;
}

button.center {
  margin: 0 auto;
}

.botao[type="submit"]:before {
  content: "\f536";
}

.botao[type="reset"]:before {
  content: "\f463";
}

.botao-buscar-conteudo {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}

/* ----- Subseção ----- */

.subsecoes {
  text-align: left;
}

.subsecao {
  margin: 1.5rem 0;
  text-align: left;
  border: 1px solid #ddd;
  padding: 2rem 1.7rem 1.5rem;
  position: relative;
}

.subsecao-titulo {
  position: absolute;
  top: -1.2rem;
  left: 1rem;
}

.subsecao-titulo h5 {
  font-size: 1rem;
  color: #333;
  background: #fff;
  padding: 0.5rem 0.75rem;
  box-shadow: rgb(0, 0, 0) 0px 0px 0px 0px;
  border-radius: 10px;
  margin: 0;
}

.subsecao p:last-child {
  margin-bottom: 0
}

/* ----- Footer ----- */

.footer {
  background: #e9ecef;
  border: 2px dashed #ddd;
  padding: 1rem 2rem;
  border-radius: 6px;
}

.footer .texto_footer {
  font-size: 20px;
  font-weight: 600;
  color: #737373;
}

.custom-thead-atos-normativos th{
  background-color: #093C75 !important;
  color: #fff !important;
}

body[data-theme="t-dark"] .custom-tr-atos-normativos {
  background: #FFF;
}

.custom-ementa-atos-normativos{
  width: 35%!important;
}

.filtros-wrapper-normativos-custom .item{
  flex-direction: column;
}

.filtros-wrapper-normativos-custom .item .botoes{
  flex-direction: row;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.item-botoes{
  flex-direction: row!important;
}
.custom-thead-atos-normativos th{
  background-color: #093C75 !important;
  color: #fff !important;
}

body[data-theme="t-dark"] .custom-tr-atos-normativos {
  background: #FFF;
}

.custom-ementa-atos-normativos{
  width: 35%!important;
}

.filtros-wrapper-normativos-custom .item{
  flex-direction: column;
}

.filtros-wrapper-normativos-custom .item .botoes{
  flex-direction: row;
  flex-wrap: nowrap !important;
  width: 100% !important;
}

.item-botoes{
  flex-direction: row!important;
}
/* ----- Ajustes para responsividade ----- */

@media screen and (max-width: 628px) {
  ul.anexos>li .tamanho_anexo_mobile {
    display: block;
  }

  ul.anexos .botoes {
    display: none;
  }

  .filtros-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem 2rem;
  }
}

@media screen and (max-width: 800px) {
  .filtros-wrapper-normativos {
    grid-template-columns: repeat(1, 1fr)!important;
  }
}

.filtros-wrapper-normativos .item .conteudo .selectize-input.items.full.has-items input {
  display: none !important; /* Esconde o input após a seleção */
}

.filtro-data-atos{
  display: flex; 
  gap: 10px; 
  align-items: center;
}

@media screen and (min-width: 801px) {
  .filtros-wrapper-normativos .filtro-termo-busca {
    grid-column: span 2;/* Ocupará duas colunas */
  }
}