@import url('https://fonts.googleapis.com/css2?family=Yanone+Kaffeesatz:wght@200..700&display=swap');

.yanone-kaffeesatz-bold {
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}


.yanone-kaffeesatz-light {
  font-family: "Yanone Kaffeesatz", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

:root{
    --texto-claro: #F1F5F2;
    --destaque-claro: #BBD8B3;
    --destaque-escuro: #cbdd8d;
    --destaque: #bccd82;

    --fundo-claro: #465836;

    --fundo-escuro-1: #2f312e;
    --fundo-escuro-2: #293324;
    --fundo-escuro-3: #222c1d;
    --fundo-escuro-4: #14281D;
    --fundo-escuro-5: #232422;


    --bg-1: #211f1e;
    --bg-2: #423e3c;
    --bg-3: #393534;
    --bg-4: #1e4942;
    --bg-table: #423e3c;
}

.bg-1{
  background-color: var(--bg-1) !important;
  background: var(--bg-1) !important;
}

.bg-2{
  background-color: var(--bg-2) !important;
  background: var(--bg-2) !important;
}

.bg-3{
  background-color: var(--bg-3) !important;
  background: var(--bg-3) !important;
}

.bg-4{
  background-color: var(--bg-4) !important;
  background: var(--bg-4) !important;
}


body {
  overflow-x: hidden;
}


.table-container {
    width: 100%; /* Garante que a tabela ocupe toda a largura do container */
    display: block; /* Garante que o bloco se comporte corretamente */
    overflow-y: auto; /* Adiciona barra de rolagem vertical */
}

.table-container th,
.table-container td {
    white-space: nowrap; /* Impede a quebra de linha dentro das células */
    text-overflow: ellipsis; /* Adiciona reticências aos textos que ultrapassarem o limite da célula */
    overflow: hidden; /* Esconde o texto que ultrapassar o limite da célula */
    max-width: 300px; /* Define uma largura máxima para as células */
}

.modal-title {
    color: slategray;  /* Cor para a chave */
    font-weight: bold;
    margin-bottom: 0;
}

.modal-key {
    color: bisque !important;  /* Cor para a chave */
    font-weight: bold;
    margin-bottom: 0;
}

.modal-value {
    color: darkgray;  /* Cor para o valor */
    margin-top: 0.5em;
}

.texto-card-pequeno{
  font-size:small;
  margin: 0;
  margin-bottom: 2px;
}


/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #47564D; 
  padding: 1px;
}
  
/* Handle */
::-webkit-scrollbar-thumb {
  background: #CCAE91;
  /* border: 1px solid rgb(0, 0, 0); */
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #cc9d71; 
  /* border: 1px solid rgb(63, 63, 63); */
}

.form-check-input:checked {
  background-color: #007fff;
  border-color: #3a3f44;
}

.SingleDatePicker_picker{
  z-index: 9999;
}

.offcanvas.offcanvas-start {
  width: 37vw;
}


.col_sidebar{
  width: 14%;
}

.main_row{
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

.div-drop-municipios-indicadores {
  position: fixed;
  z-index: 10000;
  left: 23vw;
  width: 10vw;
  top: 7vh;
}



.leaflet-control-attribution{
  display: none;
}


.div-info-ponto-assessoria{
  overflow-y: scroll;
  width: 50%;
  /* background: #153b35bd; */
  background-color: rgb(8 35 37);
  padding: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid #1c5148;
}

#_dash-app-content{
  height: 100vh;
  width: 100vw;
}

#_dash-app-content > div {
  height: 100vh;
  width: 100vw;
}


body{
  background-image: url('fundo2.png');
  background-size: cover;
  height: 100vh;
  width: 100vw;
}

/* #page-content{
  background-color: rgba(43, 43, 43, 0.753);
  border-radius: 5px;
} */

.row-principal-layout{
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  background-color: rgba(43, 43, 43, 0.521);
  /* max-width: 84.5vw; */
}


#page-content > div {
  height: 100%;
  width: 100%;
}

.cards-assessorias-esquerda{
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  gap: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  /* max-height: 93vh; */
  flex: 1 1 0%;
  padding-left: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  background: #0f2925bd;
}

.card-lateral{
  margin-right: 5px;
  /* border: 1px solid rgba(0, 0, 0, 0.473); */
  border: none;
  background-color: #183b35;
  box-shadow: 1px 1px 3px #0000005c;
  /* background-color: rgba(63, 63, 63, 0.89) */
}

.card-lateral .texto-card-pequeno{
  text-shadow: 2px 2px 2px rgba(15, 15, 15, 0.507);
  color: rgb(204, 204, 204);
}

.div-aplicar-filtros{
  background: rgba(49, 49, 49, 0.89);
  padding: 10px;
  border: 1px solid rgb(0, 0, 0) ;
  border-radius: 3px;
}


.card-lateral:hover{
  cursor: pointer;
  transform: scale(101%);
  background-color: rgba(30, 29, 32, 0.815)
}


.col-1-content-layout{
  width: 30%;
  height: 100%;
}

.col-mapa-content-layout{
  width: 69%;
  row-gap: 5px;
  height: 100dvh;
}

.resumo-registros{
  width: 50%;
  height: 100%;
}

/* Modal de um registro (assessoria ou cadastro) */
.modal-reg-grid{
  height: 100%;
}

.modal-reg-col-principal{
  display: flex;
  flex-direction: column;
}

.modal-reg-principal{
  height: 98vh;
}

/* Rolagem da coluna principal da modal de assessoria: o corpo e, no fim, a situação */
.modal-reg-rolagem{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  border-radius: 3px;
}

.modal-reg-situacao{
  padding: 0 10px 10px;
}

/* Vínculos da modal de assessoria: no PC, a caixa lateral; no celular, junto das imagens */
.modal-vinculos-celular{
  display: none;
}

.modal-reg-col-caf{
  height: 100%;
}

.col-2-content-layout{
  margin-left: 8px;
  display: flex;
  flex-direction: row;
  column-gap: 5px;
  height: 36%;
  width: 100%;
  
}

#btn-pag-proxima-cadastro:disabled, #btn-pag-anterior-cadastro:disabled, 
#btn-pag-proxima-assessoria:disabled, #btn-pag-anterior-assessoria:disabled
{
  background-color: #2e2e2e;
  color: #505050;
}


.col-2-content-layout .card, .col-3-content-layout .card{
  background: rgba(63, 63, 63, 0.89)
}

.col-2-content-layout P{
  color: rgb(204, 204, 204);
}


.col-3-content-layout{
  margin-left: 8px;
  width: 100% !important;
  height: 64%;
  padding: 10px;
  background-color: #153b35bd;
  position: relative;
  border: 1px solid #1c5148
}

.div-num-situacoes{
  color: rgb(219, 219, 219);
  background-color: #153b35bd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 30px;
}

.loading-spinner{
  background: #41414134 !important;
  backdrop-filter: blur(10px) !important;
  position: absolute;
  z-index: 999;
  text-shadow: 1px 1px 3px rgb(46, 46, 46);
  font-size: 1.3rem;
}

.div-num-situacoes h3{
  /* font-size: 28px !important; */
  font-size: 1.55dvw !important;
  color: wheat;
}


/* 
.btn-primary{
  background-color: #6d6d6dbb !important;
  background-image: none !important;
  text-shadow: 2px 2px 5px rgba(34, 34, 34, 0.842);
} */

.btn-primary:hover{
  background-color: #353535bb !important;
  background-image: none !important;
}


.btn-primary-active{
  background-color: #2c3450 !important;
}


/* .fundo-relatorios .card, .fundo-relatorios1 .card{
  background-color: rgba(87, 87, 88, 0.719);
  border: 1px solid rgb(121, 121, 121);
} */


.fundo-relatorio-venda{
  background-color: rgba(43, 43, 43, 0.726);
  width: 100%;
  height: auto;
  padding: 10px;
  padding-left: 1vw;
  padding-right: 1vw;
  border-radius: 0 0 5px 5px;
  margin: auto;
  border: 1px solid rgb(87, 87, 87);
}

.fundo-relatorio-venda h2, .fundo-relatorio-venda h5, .fundo-relatorio-venda h4{
  color: rgb(219, 219, 219);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.507);
}

.fundo-relatorio-venda .card{
  background-color: rgba(87, 87, 88, 0.719);
  border: 1px solid rgb(121, 121, 121);
}



#page-content .nav-link{
  background: rgba(75, 75, 82, 0.829);
  margin-right: 5px;
}

#page-content .nav-item .active{
  background: rgba(14, 90, 65, 0.829);
}

#page-content .nav-link:hover{
  background: rgba(21, 134, 96, 0.829);
}


.modal-value p {
  color: rgb(204, 204, 204);
}

tr{
  border: 1px solid rgb(65, 65, 65);
}

/* Os calendários do Mantine também são tabelas: sem a borda acima */
.mantine-Popover-dropdown tr{
  border: 0;
}


.div-mapa-popup{
  padding:10px;
  height:100%;
  background-color: rgb(63, 63, 63);
  width:100%;
  border:1px solid rgb(149, 151, 134);
  border-radius:5px
}


.offcanvas_filtros{
  /* background-color: rgb(43, 43, 43); */
  background: var(--bg-3);
}

.offcanvas_filtros .card{
  /* background-color: rgba(63, 63, 63, 0.719); */
  background: var(--bg-2);
  border: 1px solid rgb(70, 70, 70);
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.329);
}


.offcanvas-body{
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  row-gap: 2vh;
  padding-bottom: 15vh;
}


.offcanvas_filtros h2, .offcanvas_filtros h5, .offcanvas_filtros h4{
  color: rgb(219, 219, 219);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.507);
}

.offcanvas-title{
  color: rgb(219, 219, 219) !important;
  font-size: 1.75rem;
}

#modal-fake h3, #modal-fake h4{
  color: rgb(219, 219, 219);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.425);
}

#modal-fake p {
  color: rgb(219, 219, 219);
}

#modal-fake-cadastro h3, #modal-fake-cadastro h4{
  color: rgb(219, 219, 219);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.425);
}

#modal-fake-cadastro p {
  color: rgb(219, 219, 219);
}

.leaflet-control-colorbar{
  color: rgb(255, 255, 255);
  text-shadow: 1px 1px 4px rgb(73, 73, 73);
  background-color: #3131316b;
  padding: 3px;
  border-radius: 3px;
  border: 1px solid rgb(66, 66, 66);
}

/* .div-card-pages{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 15px;
  height: 6vh;
  border: 1px solid black;
  border-radius: 5px;
  background-color: #41414161;
} */


.row-ordem-btn{
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 2vw;
}

.branco_fundo_sombra{
  color: rgb(219, 219, 219);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.507);
}


.div-carregando-relatorio-ativo{
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 999999999999999;
  background-color: rgba(0, 0, 0, 0.589);
  backdrop-filter: blur(3px);
}


.bloco-dentro-div-carregando{
  width: 30%;
  height: 18vh;
  background-color: #474747;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 3vh;
  border-radius: 5px;
  color: rgb(204, 204, 204);
  text-shadow: 2px 2px 2px rgba(15, 15, 15, 0.507);
}

.div-carregando-relatorio-inativo{
  display: none;
}


.div-flex-row{
  display: flex;
  flex-direction: row;
}

.div-flex-col{
  display: flex;
  flex-direction: column;
}

/* #btn-pag-proxima-cadastro, #btn-pag-proxima-assessoria, #btn-pag-anterior-cadastro, #btn-pag-anterior-assessoria, .contador-pagina{
  background: #7fff44 !important;
  color: #1c1c1c !important;
  border: 1px solid #2b2b2b !important;
  text-shadow: 1px 1px 3px #797979d6 !important
}


#btn-pag-proxima-cadastro:hover,  #btn-pag-proxima-assessoria:hover, #btn-pag-anterior-cadastro:hover, #btn-pag-anterior-assessoria:hover{
  background: #222222 !important;
  color: #74ff34 !important;
  border: 1px solid rgb(100, 100, 100) !important;
  text-shadow: none;
} */


/* #open-offcanvas, #open-offcanvas-cadastro{
  background: #32ef54 !important;
  color: #000000 !important;
  border: 1px solid rgba(100, 100, 100, 0.11);
  text-shadow: 1px 1px 3px #797979d6 !important;
  width: 15vw !important;
}

#open-offcanvas:hover, #open-offcanvas-cadastro:hover{
  color: #32ef54 !important;;
  background: #222222 !important;
  border: 1px solid rgb(100, 100, 100) !important;
  text-shadow: none;
} */

#point-edit-cadastro, #point-edit{
  color: white !important;
  background: #00949d !important;
  text-shadow: 1px 1px 3px #000000c7 !important;
}


#point-edit-cadastro:hover, #point-edit:hover{
  color: bisque !important;
  background: #2d2d2d !important;
}

.btn-info{
  color: white !important;
  background: #3d75ad !important;
  text-shadow: 1px 1px 3px #1a1a1a !important
}

.btn-info:hover{
  color: #54d6ff !important;
  background: #2d2d2d !important;
  border: 1px solid rgb(100, 100, 100) !important;
}

.btn-success{
  background: #78c554 !important;
  text-shadow: 1px 1px 2px #000000bf !important;
}


.btn-success:hover{
  background: #60a341 !important;
  text-shadow: 1px 1px 2px #000000bf !important;
}



.btn-warning{
  background: #e5993a !important;
  color: #ffffff !important;
  text-shadow: 1px 1px 2px #272727ed;
  border: 1px solid rgb(54, 54, 54) !important;
}

.btn-warning:hover{
  background: #1d1d1d !important;
  color: #f9a124 !important;
  border: 1px solid rgb(100, 100, 100) !important;
}


.leaflet-control-measure h3 {
  color: rgb(61, 61, 61) !important;
  font-size: 14px;
  margin: 0 !important;
  padding-bottom: 0 !important;
  text-shadow: none !important
}


.leaflet-control-measure p {
  color: rgb(46, 46, 46) !important;
  font-size: 10px;
  margin: 0 !important;
}

.leaflet-control-measure .group{
  margin: 0 !important;
  padding: 3px !important;
}



.leaflet-popup-content h3{
  color: black !important;
  text-shadow: none !important;
  font-size: 18px;
}

.leaflet-popup-content p{
  color: rgb(39, 39, 39) !important;
  text-shadow: none !important;
  margin: 5px !important;
}

.js-measuringprompt{
  min-height: min-content;
  max-height: fit-content;
}

.leaflet-control-measure ul{
  margin: 0 !important;
}



.texto-claro{
    color: rgb(237, 247, 255);
    text-shadow: 1px 1px 3px rgb(20, 20, 20);
}

.popover-body{
    color: rgb(223, 223, 223);
    text-shadow: 1px 1px 3px rgba(31, 31, 31, 0.671);
    background-color: #262a2e;
    border-radius: 5px;
    border: none;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.705);
}

.popover-arrow{
    --bs-popover-bg: rgb(182, 182, 182) !important;
}


.card-text{
  font-size: 0.90vw;
}

.caroulse-imagens-cadastro .carousel-item, .caroulse-imagens-cadastro .carousel-inner, .caroulse-imagens-cadastro .slide, .caroulse-imagens-cadastro{ 
  max-width: 30vw !important; 
}




.caroulse-imagens-cadastro img{
  /* max-width: 35vw; */
  max-height: 80vh;
  max-width: 100%;
  object-fit: contain;
}

.caroulse-imagens-cadastro * {
  max-width: 30vw;
}


.red-border{
    border: 1px solid rgb(242, 90, 0) !important;
}

.black-border{
    border: 1px solid rgb(13, 20, 0) !important;
}



.table-dark {
    background-color: var(--bg-table);
    /* background-color: transparent; */
    color: rgb(201, 201, 201);       
}

.table-dark:where(tr)[data-hover], .m_b2404537 > :where(tr)[data-hover]  {

  --tr-hover-bg: #464240 !important;

}

.mantine-Grid-inner{
    margin: 0;
    width: auto;
    height: 100%;
}

.modal-fake{
  display: flex;
  flex-direction: row;
  column-gap: 10px;
  justify-content: center;
  width: 100%;
  height: 100dvh;
  background-color: #00000048;
  position: absolute;
  /* padding-top: 2dvh;
  padding-bottom: 2dvh; */
  top: 0;
  left: 0;
  z-index: 99999;
  overflow: hidden;
}


.hidden {
  display: none !important;
}

.div-info-caf{
  max-height: 50dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 15px;
  background-color: #3b3b3b;
  overflow-y: auto;
  padding: 15px;
}


.div-info-caf div{
  width: 100%;
}


.mantine-Modal-body{
  padding: 0 !important;
}

/* .box-mapa-popup{
  height: 46dvh;
  width: 100%;
  padding: 10px;
  background: #3b3b3b;
  border-radius: 3px;
} */


@media (max-width: 1400px) {
    .hide-under-1000 {
        display: none !important;
    }
}


.sidebar-subtitulo{
    color: #cafcb3;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}


.sidebar-titulo{
    color: #ffffff;
    /* 30px em telas grandes, menor junto com a sidebar (15% da largura) */
    font-size: clamp(17px, 1.56vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    margin-top: 2px;
}

.sidebar-bloco-titulo{
    display: flex;
    flex-direction: column;
    margin: 30px 0 0 8px;
}


/* ======================= Celulares e tablets em pé ======================= */
/* Mesmo limite do "md" do Mantine (62em = 992px), usado nas colunas dos grids.
   Inclui o celular deitado, baixo demais para o layout de colunas */
@media (max-width: 991px){
  ::-webkit-scrollbar{
    width: 6px;
    height: 6px;
  }

  .bloco-dentro-div-carregando{
    width: 85%;
    height: auto;
    padding: 24px;
  }

  /* ---------- Assessorias e cadastros: uma coluna, com a rolagem na tela toda ---------- */
  .row-principal-layout{
    flex-direction: column;
    height: auto;
    min-height: calc(100dvh - var(--app-barra-altura));
  }

  /* Sem as caixas da coluna da lista: a barra e os cards viram itens da linha
     principal, e o mapa e o resumo entram entre os dois */
  .col-1-content-layout,
  .col-1-content-layout > .mantine-Stack-root{
    display: contents;
  }

  .barra-lista-registros{
    position: sticky;
    top: 0;
    order: 1;
  }

  .mantine-Group-root.barra-lista-registros{
    gap: 6px;
  }

  .barra-lista-registros .mantine-Button-root{
    padding-inline: 10px;
  }

  .col-mapa-content-layout{
    order: 2;
    width: 100%;
    height: auto;
  }

  .cards-assessorias-esquerda{
    order: 3;
    flex: none;
    padding: 6px;
    overflow: visible;
  }

  .card-lateral{
    margin-right: 0;
  }

  .col-3-content-layout{
    /* O spinner do mapa e os controles não passam por cima da barra presa */
    isolation: isolate;
    /* Baixo no celular deitado: arrastar em cima do mapa não rola a tela */
    height: clamp(200px, 50dvh, 520px);
    margin-left: 0;
    padding: 6px;
  }

  .col-2-content-layout{
    flex-direction: column;
    row-gap: 5px;
    height: auto;
    margin-left: 0;
  }

  .resumo-registros{
    width: 100%;
    height: auto;
    padding-bottom: 10px !important;
  }

  .div-info-ponto-assessoria{
    width: 100%;
    max-height: 45dvh;
  }

  /* Só o botão escondido, de antes de escolher um registro: caixa vazia */
  .div-info-ponto-assessoria:has(> button[style*="none"]){
    display: none;
  }

  /* ---------- Filtros ---------- */
  .offcanvas.offcanvas-start{
    width: 100%;
  }

  /* Na tela toda não sobra fundo para clicar: este é o único jeito de fechar */
  .offcanvas_filtros .btn-close{
    filter: invert(1);
    opacity: 0.9;
  }

  .offcanvas_filtros .div-flex-row{
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .offcanvas_filtros .div-flex-row > .col-4{
    flex: 0 0 50%;
    width: 50%;
  }

  .offcanvas_filtros .div-flex-row > .col-4:last-child{
    flex-basis: 100%;
    width: 100%;
  }

  /* ---------- Modal de um registro: o formulário primeiro, sem rolagens internas ---------- */
  /* O transform da animação faria o position: fixed de dentro valer em relação à
     modal, e não à tela */
  .mantine-Modal-content{
    transform: none !important;
    will-change: auto !important;
  }

  .modal-reg-grid,
  .modal-reg-grid > .mantine-Grid-inner,
  .modal-reg-col-caf{
    height: auto;
  }

  /* Espaço para a barra de botões, presa no pé da tela */
  .modal-reg-grid{
    padding-bottom: 64px;
  }

  /* Sem as caixas da coluna principal, o corpo e a situação viram itens da grade:
     o corpo vem primeiro e a situação da assessoria por último, depois das outras
     colunas (a margem é o espaçamento das colunas da grade) */
  .modal-reg-col-principal,
  .modal-reg-principal,
  .modal-reg-rolagem{
    display: contents;
  }

  .modal-reg-corpo,
  .modal-reg-situacao{
    flex: 0 0 calc(100% - 16px);
    margin: 8px;
  }

  .modal-reg-corpo{
    order: 1;
  }

  .modal-reg-situacao{
    order: 4;
    padding: 10px;
    border-radius: 3px;
  }

  .modal-reg-col-info{
    order: 2;
  }

  .modal-vinculos-celular{
    display: block;
  }

  /* !important: a caixa traz display no estilo em linha */
  .modal-vinculos-pc{
    display: none !important;
  }

  .modal-reg-col-caf{
    /* O mapa da coluna tem um z-index enorme: não passa por cima dos botões */
    isolation: isolate;
    order: 3;
  }

  .modal-reg-acoes{
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.45);
  }

  .modal-reg-col-info .bg-3,
  .div-info-caf{
    max-height: none !important;
  }

  /* break-word, não anywhere: anywhere deixa as colunas das tabelas estreitarem
     até caber uma letra por linha */
  .modal-reg-col-principal .bg-3{
    overflow-wrap: break-word;
  }

  #div-img-ater-assessoria,
  #div-img-ater-cadastro{
    height: 60dvh !important;
  }

  /* Imagens do cadastro, abertas por cima da modal */
  #modal-imagens-cadastro-assessoria{
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    justify-content: center;
    height: 100dvh !important;
    padding: 8px !important;
    overflow-y: auto;
  }

  #modal-imagens-cadastro-assessoria > div{
    width: 100%;
    height: fit-content;
    padding: 12px !important;
    resize: none !important;
  }

  .modal-imagens-lista{
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Nome da coluna, ao lado do valor quando a linha da tabela vira card */
.tabela-cards-rotulo{
  display: none;
}

/* ======================= Celulares ======================= */
/* Tabelas com muitas colunas: cada linha vira um card */
@media (max-width: 640px){
  .table-dark.tabela-cards,
  .tabela-cards tbody,
  .tabela-cards tr{
    display: block;
    width: 100%;
    border: 0;
  }

  .tabela-cards thead{
    display: none;
  }

  /* Sem a rolagem interna da caixa da tabela: a lista rola junto com a modal */
  *:has(> .tabela-cards){
    max-height: none !important;
    overflow: visible !important;
  }

  .tabela-cards tr{
    margin-bottom: 8px;
    padding: 4px 12px;
    border: 1px solid #5e5e5e;
    border-radius: 6px;
  }

  .tabela-cards tr:last-child{
    margin-bottom: 0;
  }

  .tabela-cards td{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border: 0 !important;
    text-align: right;
  }

  .tabela-cards td + td{
    border-top: 1px dotted #5e5e5e !important;
  }

  .tabela-cards-rotulo{
    display: block;
    flex-shrink: 0;
    color: bisque;
    font-weight: 600;
    text-align: left;
  }

  /* Campo da coluna Edição */
  .tabela-cards td .form-control{
    width: 130px;
    min-width: 0 !important;
  }

  /* Tabela de acessos: mesmo formato de cards (data-dash-column é o nome da coluna) */
  #div-tabela-acessos table,
  #div-tabela-acessos tbody{
    display: block;
    width: 100% !important;
  }

  /* O !important vale sobre a altura fixa e as larguras que a tabela do Dash define */
  #div-tabela-acessos tr{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #5e5e5e;
    border-radius: 6px;
  }

  /* O nome de cada coluna já aparece dentro do card */
  #div-tabela-acessos tr:has(> th.dash-header){
    display: none;
  }

  #div-tabela-acessos td,
  #div-tabela-acessos th.dash-filter{
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    border: 0 !important;
    background-color: rgb(50, 50, 50);
    text-align: left !important;
    white-space: normal !important;
  }

  #div-tabela-acessos .dash-cell-value{
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    overflow: visible !important;
    text-align: left !important;
    white-space: normal !important;
  }

  #div-tabela-acessos td::before,
  #div-tabela-acessos th.dash-filter::before{
    content: attr(data-dash-column);
    display: block;
    color: #cafcb3;
    font-size: 0.75rem;
    font-weight: 600;
  }

  /* Usuário e Ação na linha toda, os textos que podem ser longos. Data e ObjectID
     dividem a do meio */
  #div-tabela-acessos [data-dash-column="Usuário"],
  #div-tabela-acessos [data-dash-column="Ação"]{
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
  }

  #div-tabela-acessos [data-dash-column="Ação"]{
    order: 1;
  }

  #div-tabela-acessos th.dash-filter input[type="text"]{
    width: 100% !important;
    height: 34px !important;
    padding: 0 8px !important;
    border-radius: 4px;
    background: #ffffff !important;
    color: #222222 !important;
    /* 16px: com menos o iPhone dá zoom na tela ao tocar no campo */
    font-size: 16px !important;
    text-align: left !important;
  }
}

/* Celular deitado: mapa baixo, a legenda e os botões de zoom ficam lado a lado
   (empilhados, os de baixo sairiam do mapa) */
@media (max-width: 991px) and (max-height: 500px){
  .leaflet-top.leaflet-left > *{
    clear: none;
  }
}