  body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
  }

  .leaflet-bottom .leaflet-control {
    margin-bottom: 40px!important;
  }

 #mapCoordDIV {
    position: relative;
    width: 230px;
    padding: 8px;
    margin: 85vh calc(50% - 130px);
    z-index: 400;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    text-shadow: 1px 1px 2px #000;
 }

 .footer-position{
    z-index: 999;
    bottom: 0px;
    right: 1px;
  }

  #mapa {
    /* flex-grow: 1; */
    /* width: 60%; */
  }

  * {
    font-family: Arial, Helvetica, sans-serif;
    }

  .leaflet-control span {
    color: #000000;
  }

  #menutop {
    display: flex;
    justify-content: space-between;
    /* Alinha os itens nas extremidades */
    align-items: center;
    background-color: #3f83f1;
    color: white;
    height: 65px;
    width: 100%;
    padding: 0 30px;
    /* Margem interna nas laterais do menu */
    box-sizing: border-box;
    /* Inclui padding na largura total */
    position: absolute;
    z-index: 2;
  }

  .menu-buttons {
    display: flex;
    gap: 15px;
    /* Espaçamento entre os botões */
  }

  button.cont-but,
  button.cont-but-legenda,
  button.cont-but-pesquisa,
  button.cont-but-mapa-base {
    background-color: #3f83f1;
    /* Cor inicial do botão */
    border: none;
    /* Remove a borda */
    padding: 10px 20px;
    /* Aumenta o padding para preenchimento total */
    text-align: center;
    text-decoration: none;
    font-family: Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* Transição para a mudança de cor */
    color: #fff;
    /* Cor do texto */
    font-size: 12px;
    height: 100%;
    /* Preenche toda a altura do menu */
    box-sizing: border-box;
    /* Inclui padding na altura total */
    width: auto;
    /* Ajusta a largura do botão */
    height: 60px;
    /* Define a altura do botão */
  }

  button.cont-but i,
  button.cont-but-legenda i,
  button.cont-but-pesquisa i {
    margin-right: 5px;
    /* Ajuste o valor conforme necessário */
  }

  button.cont-but:hover,
  button.cont-but-legenda:hover,
  button.cont-but-pesquisa:hover {
    background-color: #6fa6ff;
    /* Cor do botão ao passar o mouse */
  }

  .logo-container {
    width: auto;
    /* Ajuste automático da largura com base no conteúdo */
    height: 50px;
    /* Altura do container da logo para se ajustar à altura da imagem */
    margin-right: 30px;
    /* Distância da borda direita */
  }

  .logo-container img {
    height: 50px;
    /* Faz com que a altura da imagem se ajuste à altura do container */
    width: auto;
    /* Mantém a proporção da imagem */
  }

  #content {
    display: flex;
    flex: 1;
  }

  .side-bar {
    background-color: rgba(1, 105, 224, 0.705);
    backdrop-filter: blur(15px);
    width: 30%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: -100%;
    overflow-y: auto;
    transition: 0.6s ease;
    transition-property: left;
    z-index: 99999;
  }

  .side-bar.active {
    left: 0;
    z-index: 99999;
  }

  .side-bar .menu {
    width: 100%;
    margin-top: 80px;
  }

  .side-bar .menu .item {
    position: relative;
    cursor: pointer;
  }

  .side-bar .menu .item a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 5px 15px;
    line-height: 30px;
  }

  .side-bar .menu .item a:hover {
    background: #02cad1;
    transition: 0.3s ease;

  }

  .side-bar .menu .item i {
    margin-right: 15px;
  }

  .side-bar .menu .item a .dropdown {
    position: absolute;
    right: 0;
    margin: 8px;
    transition: 0.3s ease;
    color: #ffffff;
  }

  .side-bar .menu .item .sub-menu {
    background: rgba(255, 255, 255, 0.1);
    display: none;
  }

  .side-bar .menu .item .sub-menu a {
    padding-left: 50px;
  }

  .sub-margin {
    padding-left: 20px;
  }

  .rotate {
    transform: rotate(90deg);
  }

  .close-btn {
    position: absolute;
    color: #ffffff;
    font-size: 20px;
    right: 0;
    margin: 25px;
    cursor: pointer;
  }

  .menu-btn {
    position: absolute;
    color: #000000;
    font-size: 20px;
    margin-top: 25px;
    cursor: pointer;
    z-index: 999999;
  }

  label,
  .opc {
    cursor: pointer;
    padding: 10px;
  }

  label {
    display: block;
  }

  /* O sidebar menu */
  .sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1003;
    top: 0;
    right: 0;
    background-color: rgba(1, 105, 224, 0.705);
    backdrop-filter: blur(15px);
    overflow-x: hidden;
    padding-top: 80px;
    transition: 0.5s;
  }

  .sidebar .closebtn {
    position: absolute;
    top: 5px;
    left: 30px;
    font-size: 36px;
    margin-right: 50px;
  }

  .sidebar .tabela {
    width: 100%;
    margin: auto;
    border-collapse: collapse;
  }

  .sidebar .tabela th,
  .sidebar .tabela td {
    padding: 8px;
    text-align: center;
  }

  .sidebar .tabela th {
    background-color: #0043d4;
    color: white;
  }

  .sidebar .tabela tr:nth-child(even) {
    background-color: #0099ff;
  }

  .sidebar .tabela tr:nth-child(odd) {
    background-color: #004f99
  }

  .sidebar .tabela a {
    color: inherit;
  }

  /* Estilo para o popup */
  .leaflet-popup-content {
    max-width: 500px;
    max-height: 300px;
    overflow: auto;
    /* Adicionar rolagem se o conteúdo for maior que as dimensões definidas */
    background-color: #ffffff;
  }

  .tabela-popup {
    width: 100%;
    border-collapse: collapse;
  }

  .tabela-popup th,
  .tabela-popup td {
    border-top: 1px solid #000000;
    border-bottom: 1px solid #000000;
    border-left: 1px solid rgba(0, 0, 0, 0);
    border-right: 1px solid rgba(0, 0, 0, 0);
    padding: 5px;
    width: 100%;
    text-align: center;
    color: rgb(255, 255, 255);
  }

  .tabela-popup tr:nth-child(even) {
    background-color: #004f99;
  }

  .tabela-popup tr:nth-child(odd) {
    background-color: #0099ff;
  }

  /* Rodapé */
  /* Rodapé */
  p.creditos {
    color: black;
    font-size: 10px;
  }

  .rodape {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 20%;
    background-color: hsla(0, 0%, 100%, 0.507);
    /* Fundo com transparência */
    color: #000;
    /* Cor da fonte preta */
    padding: 10px;
    box-sizing: border-box;
    z-index: 1002;
    text-align: justify;
    transform: translateX(100%);
    /* Inicialmente fora da tela */
    transition: transform 0.3s ease;
    /* Transição suave */
  }

  /* Mostrar o rodapé */
  .rodape.show {
    transform: translateX(0);
    /* Move o rodapé para dentro da tela */
  }

  /* Botão para abrir/fechar o rodapé */
  .toggle-btn {
    position: fixed;
    bottom: 100px;
    /* Ajuste a posição vertical */
    right: 10px;
    /* Ajuste a posição horizontal */
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #a3a3a3;
    /* Cor de fundo do botão */
    color: #fff;
    /* Cor do ícone */
    font-size: 20px;
    /* Tamanho do ícone */
    cursor: pointer;
    z-index: 1003;
    /* Certifique-se de que está acima do rodapé */
  }

  .tabela-fixa th {
    position: sticky;
    top: -80px;
    z-index: 2;
  }

  .tabela-scroll {
    overflow: auto;
  }

  .pesquisa {
    display: block;
    position: absolute;
    /* Se necessário para usar o ajuste com top */
    top: -13px;
    /* Ajuste conforme necessário */
    left: 10px;
    /* Manter alinhamento horizontal conforme necessário */
    z-index: 1000;
  }

.search-container {
    position: absolute;
    top: 10px;
    /* left: calc(100vw - 79vw); */
    right: 20px !important;
    margin-right: 12px;
    max-width: 400px;
    width: 73vw;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: #FFF;
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 0px 3px rgb(255 255 255 / 55%);
}

	body:has([data-bs-theme=dark]) & {
		display: none;
	}




body:has(.dark){
 .search-container {
      position: absolute;
      top: 10px;
      /* left: calc(100vw - 79vw); */
      right: 20px !important;
      margin-right: 12px;
      max-width: 400px;
      width: 73vw;
      z-index: 1000;
      display: flex;
      gap: 5px;
      background: #4b5563;
      padding: 5px;
      border-radius: 5px;
      box-shadow: 0 0px 3px rgb(255 255 255 / 55%);
  }
}

#search-input {
  flex: 1;
  
}

#search-button {
  background-color: #2e445f;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1001;
}

.search-result-item {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-result-item:hover {
  background: #f0f0f0;
}

  .button-group {
    display: flex;
    gap: 5px;
    /* Espaçamento entre os botões */
  }

  .close-button,
  .info-button {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
  }

  .close-button {
    background-color: #dc3545;
    color: #fff;
  }

  .info-button {
    background-color: #17a2b8;
    color: #fff;
  }

  .info-overlay {
    display: none;
    /* Inicialmente oculto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fundo escuro com transparência */
    z-index: 2000;
    align-items: center;
    justify-content: center;
  }

  .info-content {
    background: #fff;
    /* Fundo branco para a caixa de informação */
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative;
  }

  .info-content p {
    color: #000;
    /* Texto preto */
    text-align: justify;
  }

  .info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #000;
    /* Cor do botão de fechar em preto */
  }

  /* Ocultar o controle de atribuição do Leaflet */
  .leaflet-control-attribution {
    display: none;
  }

  .leaflet-control-layers {
display: block !important;
}

body {
}

#map {
  width: 100vw;
  height: 100vh;
  position: absolute;
  left: 0px;
}

.tooltip {
  position: absolute;
  background-color: white;
  padding: 5px;
  border-radius: 3px;
  pointer-events: none;
  font-size: 12px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9999;
  color: black;
}

.dropdown-toggle.show:after {
  transform: rotate(-45deg);
}

.dropdown-toggle:after {
  transform: rotate(-135deg);
}

.leaflet-tile-pane .leaflet-layer:not(.dark), .mapkey-table-entry td:first-child > * {
	body:has(input[type="radio"][name="filter"][value="light"]:checked) & {
		filter: none;
	}
	body:has(input[type="radio"][name="filter"][value="dim"]:checked) & {
		filter: brightness(80%);
	}
	body:has(input[type="radio"][name="filter"][value="dark"]:checked) & {
		filter: invert(95%)hue-rotate(180deg);
	}
}

.dropdown-toggle.show::after {
	transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  body{
    overflow: scroll;
    height: 100vh;
  }

  .page{
    min-height: 101vh;
  }

  .search-container {
    position: absolute;
    top: 10px;
    left: calc(100vw - 79vw);
    max-width: 400px;
    width: 73vw;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  #loader {
    z-index: 401;
    background: aliceblue;
  }

  label{
    white-space: normal !important;
  }

  .navbar {
    z-index: 400!important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
  }

  .page-wrapper{
    flex-direction: row !important;
    z-index: 399;
    position: absolute;
    top: 56px;
  }

  #mapCoordDIV {
    position: fixed;
    left: 1px;
    right: 1px;
    bottom: 77px;
    width: 230px;
    padding: 8px;
    margin: auto;
    z-index: 400;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    text-shadow: 1px 1px 2px #000;
    z-index: 400;
  }  

  .container-x2{
    position: fixed;
    bottom: 0px;
    z-index: 399;
    right: 1px;
    width: 100vw;
  }

  .container-x2 > div {
    background: #c5c5c5;
    font-size: 12px;
  }

  .form-switch .form-check-input {
    min-width: 32px
  }

}

