
      

#menu__toggle {
  opacity: 0;
}
#menu__toggle:checked + .menu__btn > span {
  transform: rotate(45deg);
}
#menu__toggle:checked + .menu__btn > span::before {
  top: 0;
  transform: rotate(0deg);
}
#menu__toggle:checked + .menu__btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu__toggle:checked ~ .menu__box {
  right: 0 !important;
}
.menu__btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 9999;
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--cor-principal);
  transition-duration: .25s;
}
.menu__btn > span::before {
  content: '';
  top: -8px;
}
.menu__btn > span::after {
  content: '';
  top: 8px;
}
.menu__box {
  display: block;
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100%;
  margin: 0;
  padding: 80px 0;
  list-style: none;
  background-color: #191919;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
  transition-duration: .25s;
  z-index: 999;
}
.menu__item {
  display: block;
  padding: 12px 24px;
  color: #626262;
  font-family: 'Roboto', sans-serif;
  text-decoration: none;
  transition-duration: .25s;
  border-top: 1px solid rgba(255, 255, 255, .03);
  font-size: 13px;
}

.selected {
    color: #FFFFFF;
}

.menu__item:last-child {
  border-top: none;
  border-bottom: 1px solid rgba(255, 255, 255, .03);
}

.menu__item:hover {
  color: #FFFFFF;
}

.menu__subButton {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.menu__button {
    width: 80%;
    padding: 14px 0;
    background:var(--cor-principal);
    color: #FFFFFF;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    border-radius: 5px;
    font-size: 13px;
}


    .btnportal {
        background:var(--cor-principal);
        padding:10px 25px; 
        color: #FFFFFF;
    }
    
    .btnportal:hover {
        color: #FFFFFF;
    }
    
    .menuMobile{
        display:none;
    }
    

     
  

        .searchContainer {
            display: flex;
            padding-left: 40px;
            padding-top: 20px;
            gap: 10px;
        }
        
     
         
    
        
        .searchContainer .btnContainer {
            display: flex;
            align-items: end;
        }

        .searchContainer .btnContainer .btnFiltros {
            border: none;
            padding: 8px 30px 8px 30px;
            border-radius: 4px;
            color: #ffffff;
            background-color:  var(--cor-principal);
            font-weight: 700;
            cursor: pointer;
        }
      

        .searchContainer .containerSearch {
            display: flex;
            flex-direction: column;
            row-gap: 5px;
        }
        
      

        .searchContainer .containerSearch label {
            font-size: 16px;
            color:  var(--cor-principal);
        }

        .searchContainer .containerSearch .search {
            display: flex;
        }

        .searchContainer .containerSearch .search input {
            padding: 8px 10px;
            outline: none;
            border-radius: 4px 0 0 4px;
            border: 1px solid  var(--cor-principal);
        }

        .searchContainer .containerSearch .buttonSearch {
            background-color: transparent;
            border: 1px solid  var(--cor-principal);
            padding: 5px;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
        }

        .lineContainer {
            display: block;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .line {
            border-bottom: 2px solid  var(--cor-principal);
            width: 100%;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 99999999;
            justify-content: center;
            align-items: center;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0, 0, 0);
            background-color: rgba(0, 0, 0, 0.4);
        }
        
        .modal-con {
            background-color: #fefefe;
            border: 1px solid #888;
            width: 60%;
            height: 370px;
            display: flex;
            flex-direction: column;
            row-gap: 10px;
            padding: 0 20px;
            border-radius: 10px;
        }

        .modal-content {
            background-color: #fefefe;
            border: 1px solid #888;
            width: 50%;
            height: 500px;
            display: flex;
            flex-direction: column;
            row-gap: 10px;
            padding: 0 20px;
            border-radius: 10px;
        }
        
       
        .closeContent {
            width: 100%;
            height: 40px;
        }

        .close {
            margin-top:10px;
            color: #333;
            float: right;
            font-size: 38px;
            font-weight: bold;
            cursor: pointer;
         }

        .containerModal {
            display: flex;
            gap: 10px;
            justify-content: space-around;
        }

        .selectContainer {
            width: 50%;
            display: flex;
            flex-direction: column;
            row-gap: 5px;
        }
        
      

        .selectContainer select {
            padding: 6px 0;
        }

        .containerFooter {
            width: 100%;
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
            gap: 10px;
        }

        .containerFooter .filterButton {
            padding: 10px 28px;
            background-color: var(--cor-principal);
            color: #ffffff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .containerFooter .clearButton {
            padding: 10px 28px;
            background-color: #8f0d0d;
            color: #ffffff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        
        
        .containerGrid {
            display: block;
            align-items: center;
            justify-items: center;
            margin-bottom: 40px;
            width:100%;
        }
       
       
       
        
        .card {
            margin:0 10px;
            margin-top: 40px;
            display: inline-block;
            width: 190px;
            align-items: center;
            position: relative;
            border-radius: 10px;
            height: 190px;
            border:solid 1px #ccc;
            vertical-align: top;
            object-position: top;
            cursor: pointer;
        }
        
 
        
        .boxImg{
            width: 190px;
            height: 190px;
            display: block;
        }

        img.logoImg{
            margin: 0 auto;
            text-align: center;
            width: 150px;
        }
        
        
        .card .subCard {
            height: 40px;
            line-height: 30px;
            width: 190px;
        }
        
        .card .subCard span {
            width: 190px;
            display: block;
            text-align: center;
            font-size: 14px;
            overflow: hidden;          /* corta o excesso */
            white-space: nowrap;       /* impede quebra de linha */
            text-overflow: ellipsis;   /* mostra "..." no final */
        }
        

        
        .logoInfo {
            margin-left: 5%;
            width: 100%;
            display: flex;
            align-items: center;
            gap: 10px;

        }
        

        .logoInfo .bodyModal {
            display: inline-block;
            margin-left: 20px;
            width: 46%;
            vertical-align: top;
        }
        
        .logoInfo .bodyModal h2 {
            margin-bottom: 10px;
        }
        
        .modalImg {
            width: 100px;
            height: 100px;
        }
        
        .subModal {
            display: flex;
            padding: 20px 40px;
            gap: 10px;
            overflow-y: scroll;
            justify-content: space-between;
            height: 100%;
            font-size: 14px;

        }
        
        .subText {
            font-size: 14px;  
        }
        
        label.desc{
            width: 100%;
            display: block;
            font-size: 10px;
            line-height: 10px;
        }
        
      
        hr.titulo{
            margin: 4px 0 10px 0;
            background: #777;
        }
        .modal-content{
            width: 90%;
            max-width: 90%;
            margin: 0 auto;
        }
         .modal {
                  width: 100%;
                  max-width: 100%;
                  margin: 0 auto;
                  overflow-y: auto;
                }
    
    .subModal {
        display: block;        /* garante fluxo normal em bloco */
        width: 100%;
    }
    
    .subModal table {
        width: 100% !important;   /* ocupa toda a largura */
        margin-bottom: 30px;      /* espaçamento entre elas */
        display: block;           /* força comportamento de bloco */
    }
    
    .modal-content{
        position: absolute;
        top:2%;
        height:560px;
        max-width: 850px;
    }
        .sobre, .sobreMobile{
            width: 100%;
        }
        
        
 .endereco{
     width: 80%;
 }
 
 .logoEmpresa{
     width: 15%;
 }




.seta {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.seta.aberta {
    transform: rotate(180deg); /* vira pra cima quando aberto */
}
    .empresaBox{
                 display:none;
            }
        .sobreMobile{
                display: none;
                width:100%;
            }
    .empresaWrapper{
        width:100%;
    }    
        
.subModal {
    width: 100%;
    overflow-x: auto;   /* ativa o scroll horizontal */
}

.subModal table {
    min-width: 600px;   /* largura mínima para forçar scroll em telas pequenas */
    width: 100%;
    margin-bottom: 30px;
}    
        
        
        
        
        
        @media screen and (max-width: 950px) {
            .containerGrid {
                grid-template-columns: repeat(3, 1fr);
            }
            
             .modal-content {
                width: 80%;
            }
            
            .modal-con {
                width: 80%;
                height: 95%;
                margin-top: 100px;
            }
        }
        
         @media screen and (max-width: 768px) {
             
             
.modal-content {
        width: 95%;       /* ocupa quase toda tela */
        max-width: 95%;
        overflow-x: auto; /* ativa scroll horizontal */
    }

    .modal-content .subModal table {
        min-width: 600px; /* força a rolagem lateral */
    }
}            
             
             
             
            .trDesc{
                font-size: 10px;
            }
            .sobre{
                display: none;
            }
            .empresaBox{
                 display:block;
            }
            .nomeEmpresa{
                display: block;
                font-size: 24px;
            }
            .sobreMobile{
                width: 88%;
                display: block;
                margin: 0 auto;
                margin-top: 20px;
            }
            .bodyModal{
                width:100% !important;
            }
         }
        
        @media  screen and (max-width: 700px) {
            
        .logoInfo {
            margin-left: 5%;
            width: 100%;
            display: block !important;
            align-items: center;
            font-size: 14px;

        }         
                    
        .logoEmpresa {
            width: 90% !important;
            text-align: center !important;
            display: block !important;
                        background: #000 !important;
        }
        
        .endereco {
            width: 80% !important;
            display: block !important;
        }
            
            
            
        .menuMobile{display:block !important;height:60px;padding:10px 0;}
        .menuDesktop{display:none !important;}
        .menu__btn {top: 40px;color:#fff;}
        
        
            .containerGrid {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .modal-con {
                height: 50%;
            }
            
             .modalImg {
                width: 100%;
            }
            
        }
        
        
          
    
        
        @media screen and (max-width: 475px) {
            
            .modal {
                padding: 15px;
              }
            
              .search input{ width: 90%; }
        
             .searchContainer {
                padding-left: 20px;
                padding-top: 10px;
                flex-direction: column;
            }
            
           .menuMobile{display:block !important;height:60px;padding:10px 0;width:381px;}
            
            .searchContainer .btnContainer, .searchContainer .containerSearch {
                justify-content: center;
            }
            
            .searchContainer .btnContainer .btnFiltros {
                width: 260px;
            }
         .containerModal {
                flex-direction: column;
            }
            
            .selectContainer {
                width: 100%;
            }
           .modal-content{
                width: 87%;
                margin-top: 10px;
                height:640px;
           }
           
 
            #myModal{
                min-height: 770px;
            }
            
         
            .modalImg {
                width: 38%;
            }
            

            .modal-con {
                width: 80%;
                height: 80%;
                margin-top: 20px;
            }
            

            
            .logoInfo .bodyModal {
                width: 100%;
                margin-left:0;
            }
            
            .subModal{
                display: block;
                width: 100%;
                padding:10px;
            }
    
    
              .boxEsp, .boxSer, .boxPro{
                margin-bottom:60px;
                width:100%;
                display: block;
            }
            
           
            .bodyModal{
                margin:0 auto;
                width: 80%;
            }
        .sobreMobile {
            width: 100%;
        }
        .nomeEmpresa {
            text-align: center;
        }
        .btnMaisInfo{
          margin:0 auto;  
        }
        .empresaBox{
            text-align: center;
        }
        
        
        
        
        }
        
        
       @media screen and (max-width: 425px) {
           .card{
               width: 178px;
           }
           


            img.logoImg{
                width: 140px;
            }
            
            
            .card .subCard {
                width: 178px;
            }
            
            .card .subCard span {
                width: 178px;
            }
        

       }  
       
        @media screen and (max-width: 393px) {
           .card{
               width: 152px;
               height: 152px;
           }
           


            img.logoImg{
                width: 118px;
            }
            
            .boxImg {
                width: 152px;
                height: 152px;
            }
            
            .card .subCard {
                width: 152px;
            }
            
            .card .subCard span {
                width: 152px;
            }
        

       }  
       
       @media screen and (max-width: 375px) {
           .card{
               width: 152px;
               height: 152px;
           }
           


            img.logoImg{
                width: 118px;
            }
            
            .boxImg {
                width: 152px;
                height: 152px;
            }
            
            .card .subCard {
                width: 152px;
            }
            
            .card .subCard span {
                width: 152px;
            }
        

       }  
        
        
        
         @media screen and (max-width: 320px) {
             .searchContainer {
                padding-left: 10px;
            }
            .containerGrid {
                grid-template-columns: repeat(1, 1fr);
            }
            .modalImg {
                width: 68%;
            }
            
            .card{
                 width: 128px;
                height: 124px;
           }
           


            img.logoImg{
                width: 98px;
            }
            
            .boxImg {
                width: 128px;
                height: 128px;
            }
            
            .card .subCard {
                width: 128px;
            }
            
            .card .subCard span {
                width: 128px;
            }
        
        }
      
        @media screen and (max-width: 275px) {
                img.logoImg {
                    width: 82px;
                }
            .card{
                width: 108px;
                height: 124px;
           }
           
            .boxImg {
                width: 108px;
            }
            
            .card .subCard {
                width: 108px;
            }
            
            .card .subCard span {
                width: 108px;
            }
        }
        
        @media screen and (max-width: 244px) {
                img.logoImg {
                    width: 69px;
                    max-width: auto;
                }
            .card{
                width: 92px;
                height: 92px;
           }
           
            .boxImg {
                width: 92px;
                height: 92px;
            }
            
            .card .subCard {
                width: 92px;
            }
            
            .card .subCard span {
                width: 92px;
            }
        }
        
        
    
/* =========================================================
   MELHORIAS VISUAIS — REDE PARCEIRA
   Mantém toda a lógica PHP existente.
   ========================================================= */

:root {
    --rede-cor-principal: var(--cor-principal);
    --rede-fundo: #f5f7f9;
    --rede-card: #ffffff;
    --rede-texto: #24323d;
    --rede-texto-suave: #6f7b84;
    --rede-borda: #e3e8ec;
    --rede-sombra: 0 8px 24px rgba(26, 43, 55, 0.08);
}

body {
    background: var(--rede-fundo);
}

.searchContainer {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 18px auto 0;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: end;
    background: #ffffff;
    border: 1px solid var(--rede-borda);
    border-radius: 16px;
    box-shadow: var(--rede-sombra);
    box-sizing: border-box;
}

.searchContainer form,
.searchContainer .containerSearch,
.searchContainer .containerSearch > div {
    width: 100%;
}

.searchContainer .containerSearch label {
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--rede-texto);
}

.searchContainer .containerSearch .search {
    width: 100%;
    min-height: 46px;
    display: flex;
    border: 1px solid var(--rede-borda);
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.searchContainer .containerSearch .search:focus-within {
    border-color: var(--rede-cor-principal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rede-cor-principal) 15%, transparent);
}

.searchContainer .containerSearch .search input {
    width: 100%;
    min-width: 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 0;
    font-size: 15px;
    color: var(--rede-texto);
    background: transparent;
}

.searchContainer .containerSearch .buttonSearch {
    width: 48px;
    min-width: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid var(--rede-borda);
    border-radius: 0;
    background: #f8fafb;
}

.searchContainer .containerSearch .buttonSearch:hover {
    background: #eef7f8;
}

.searchContainer .btnContainer {
    width: 100%;
    align-items: stretch;
}

.searchContainer .btnContainer .btnFiltros {
    width: 100%;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 11px;
    font-size: 14px;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .08);
    transition: transform .2s ease, opacity .2s ease;
}

.searchContainer .btnContainer .btnFiltros:hover {
    transform: translateY(-1px);
    opacity: .92;
}

.lineContainer {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 16px auto 0;
}

.line {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--rede-borda);
}

/* Grade de parceiros */
.containerGrid {
    width: calc(100% - 32px);
    max-width: 980px;
    margin: 20px auto 90px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
    justify-items: stretch;
}

.card {
    width: 100%;
    height: 210px;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--rede-borda);
    border-radius: 16px;
    background: var(--rede-card);
    box-shadow: 0 5px 18px rgba(28, 45, 56, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--rede-cor-principal) 40%, var(--rede-borda));
    box-shadow: 0 12px 28px rgba(28, 45, 56, .12);
}

.boxImg {
    width: 100%;
    height: 160px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-sizing: border-box;
}

img.logoImg {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 130px;
    margin: 0;
    object-fit: contain;
}

.card .subCard {
    width: 100%;
    height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--rede-borda);
    background: #fbfcfd;
    box-sizing: border-box;
}

.card .subCard span {
    width: 100%;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: var(--rede-texto);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Modal de filtros */
.modal {
    padding: 18px;
    box-sizing: border-box;
    backdrop-filter: blur(3px);
}

.modal-con {
    width: min(680px, 100%);
    height: auto;
    max-height: 90vh;
    margin: auto;
    padding: 0 22px 22px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .20);
    overflow-y: auto;
}

.closeContent {
    height: 52px;
}

.close {
    margin-top: 5px;
    font-size: 34px;
    line-height: 34px;
}

.containerModal {
    gap: 14px;
    margin-bottom: 14px;
}

.selectContainer label {
    font-size: 13px;
    font-weight: 700;
    color: var(--rede-texto);
}

.selectContainer select {
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--rede-borda);
    border-radius: 9px;
    background: #fff;
}

.containerFooter {
    margin-top: 4px;
}

.containerFooter .filterButton {
    min-height: 42px;
    border-radius: 9px;
    font-weight: 700;
}

/* Modal do parceiro */
.modal-content {
    width: min(900px, 96%);
    max-width: 900px;
    height: min(620px, 92vh);
    top: 4%;
    padding: 0 22px 22px;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 22px 65px rgba(0, 0, 0, .22);
    overflow: hidden;
}

.logoInfo {
    width: 100%;
    margin: 0;
    padding: 4px 0 16px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
}

.logoEmpresa {
    width: 100%;
    min-height: 130px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rede-borda);
    border-radius: 14px;
    background: #fff !important;
    box-sizing: border-box;
}

.modalImg {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 110px;
    object-fit: contain;
}

.endereco {
    width: 100%;
}

.endereco h2 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--rede-texto);
}

.subModal {
    width: 100%;
    height: calc(100% - 210px);
    padding: 4px 0 0;
    overflow: auto;
    box-sizing: border-box;
}

.subModal h5 {
    margin: 18px 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--rede-texto);
}

.subModal table {
    width: 100% !important;
    min-width: 640px;
    margin-bottom: 22px;
    display: table;
    border-radius: 10px;
    overflow: hidden;
}

/* Responsividade */
@media screen and (max-width: 900px) {
    .containerGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 700px) {
    .searchContainer {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 12px;
        padding: 14px;
    }

    .lineContainer {
        margin-top: 12px;
    }

    .containerGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 16px;
    }

    .card {
        height: 170px;
        border-radius: 14px;
    }

    .boxImg {
        height: 126px;
        padding: 10px;
    }

    img.logoImg {
        max-height: 104px;
    }

    .card .subCard {
        height: 44px;
        padding: 0 8px;
    }

    .card .subCard span {
        font-size: 12px;
    }

    .modal-content {
        width: calc(100% - 20px);
        height: calc(100vh - 90px);
        top: 10px;
        padding: 0 14px 14px;
    }

    .logoInfo {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    .logoEmpresa {
        width: 100% !important;
        min-height: 110px;
        background: #fff !important;
    }

    .endereco {
        width: 100% !important;
    }

    .endereco h2 {
        font-size: 20px;
    }

    .subModal {
        height: calc(100% - 320px);
    }
}

@media screen and (max-width: 390px) {
    .searchContainer,
    .lineContainer,
    .containerGrid {
        width: calc(100% - 20px);
    }

    .containerGrid {
        gap: 10px;
    }

    .card {
        height: 156px;
    }

    .boxImg {
        height: 114px;
    }

    img.logoImg {
        max-height: 92px;
    }

    .card .subCard {
        height: 42px;
    }
}


/* =========================================================
   MODAL DE DETALHES — VERSÃO APRIMORADA
   ========================================================= */

.modal-content {
    width: min(920px, calc(100% - 32px));
    max-width: 920px;
    height: min(650px, calc(100vh - 48px));
    top: 24px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #f8fafb;
    box-shadow: 0 28px 80px rgba(19, 33, 43, .28);
    overflow: hidden;
}

.modal-content .closeContent {
    height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background: #ffffff;
    border-bottom: 1px solid var(--rede-borda);
    box-sizing: border-box;
}

.modal-content .close {
    width: 36px;
    height: 36px;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    color: #5f6b73;
    background: #f1f4f6;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.modal-content .close:hover {
    color: #ffffff;
    background: var(--rede-cor-principal);
    transform: rotate(90deg);
}

.modal-content .logoInfo {
    width: 100%;
    margin: 0;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--rede-borda);
    box-sizing: border-box;
}

.modal-content .logoEmpresa {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rede-borda);
    border-radius: 16px;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
    box-sizing: border-box;
}

.modal-content .modalImg {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.modal-content .endereco {
    width: 100%;
    color: var(--rede-texto);
}

.modal-content .endereco h2 {
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: var(--rede-texto);
}

.modal-content .endereco hr {
    display: none;
}

.modal-content .endereco p {
    margin: 12px 0;
    line-height: 1.5;
    color: var(--rede-texto-suave);
}

.modal-content .endereco b {
    margin-bottom: 3px;
    font-size: 11px !important;
    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--rede-texto-suave);
}

.modal-content .endereco a {
    transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.modal-content .endereco a:hover {
    transform: translateY(-1px);
    opacity: .94;
}

.modal-content .endereco a.btn.btn-default {
    min-height: 40px;
    padding: 9px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #ffffff;
    background: var(--rede-cor-principal);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .10);
}

.modal-content .subModal {
    width: 100%;
    height: calc(100% - 259px);
    padding: 20px 24px 28px;
    display: block;
    overflow: auto;
    background: #f8fafb;
    box-sizing: border-box;
}

.modal-content .subModal h5 {
    margin: 0 0 10px;
    padding: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--rede-texto);
}

.modal-content .subModal table {
    width: 100% !important;
    min-width: 650px;
    margin: 0 0 24px;
    display: table;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--rede-borda);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(29, 45, 56, .05);
}

.modal-content .subModal table thead th {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--rede-borda);
    background: #eef3f5;
    color: var(--rede-texto);
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

.modal-content .subModal table tbody td {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #edf1f3;
    color: #49565f;
    font-size: 13px;
    vertical-align: middle;
}

.modal-content .subModal table tbody tr:last-child td {
    border-bottom: 0;
}

.modal-content .subModal table tbody tr:hover td {
    background: #f7fbfc;
}

@media screen and (max-width: 700px) {
    .modal-content {
        width: calc(100% - 16px);
        height: calc(100vh - 78px);
        top: 8px;
        border-radius: 18px;
    }

    .modal-content .closeContent {
        height: 50px;
        padding: 0 12px;
    }

    .modal-content .logoInfo {
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 14px;
        text-align: center;
    }

    .modal-content .logoEmpresa {
        min-height: 112px;
    }

    .modal-content .modalImg {
        max-height: 92px;
    }

    .modal-content .endereco h2 {
        font-size: 21px;
    }

    .modal-content .endereco p {
        margin: 10px 0;
    }

    .modal-content .subModal {
        height: calc(100% - 365px);
        padding: 16px 14px 22px;
    }

    .modal-content .subModal table {
        min-width: 620px;
    }
}


/* =========================================================
   MODAL RETRÁTIL DE DETALHES
   ========================================================= */

.modal-detalhes-parceiro {
    display: flex;
    flex-direction: column;
}

.modal-topo {
    min-height: 54px;
    padding: 0 16px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--rede-borda);
    box-sizing: border-box;
}

.modal-topo-titulo {
    font-size: 13px;
    font-weight: 800;
    color: var(--rede-texto-suave);
    letter-spacing: .03em;
    text-transform: uppercase;
}

.modal-topo-acoes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-topo .close {
    position: static;
    flex: 0 0 auto;
}

.btn-menu-detalhes {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--rede-borda);
    border-radius: 11px;
    background: #f7f9fa;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.btn-menu-detalhes span {
    width: 17px;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: var(--rede-texto);
    transition: transform .25s ease, opacity .25s ease;
}

.btn-menu-detalhes:hover {
    border-color: var(--rede-cor-principal);
    background: #eef8f9;
}

.btn-menu-detalhes.ativo span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.btn-menu-detalhes.ativo span:nth-child(2) {
    opacity: 0;
}

.btn-menu-detalhes.ativo span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.modal-resumo-parceiro {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--rede-borda);
}

.modal-resumo-parceiro .logoEmpresa {
    min-height: 110px;
}

.modal-resumo-texto h2 {
    margin: 0 0 5px;
    font-size: 25px;
    line-height: 1.2;
    color: var(--rede-texto);
}

.modal-resumo-texto span {
    font-size: 13px;
    color: var(--rede-texto-suave);
}

.painel-detalhes-retratil {
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    border-bottom: 0 solid var(--rede-borda);
    transition: max-height .35s ease, border-width .35s ease;
}

.painel-detalhes-retratil.aberto {
    max-height: 520px;
    border-bottom-width: 1px;
}

.painel-detalhes-conteudo {
    padding: 18px 22px 20px;
}

.detalhe-bloco {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detalhe-rotulo {
    font-size: 10px;
    font-weight: 800;
    color: var(--rede-texto-suave);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.detalhe-valor,
.detalhe-link {
    font-size: 14px;
    line-height: 1.45;
    color: var(--rede-texto);
}

.detalhe-link {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detalhe-link:hover {
    color: var(--rede-cor-principal);
}

.detalhe-whatsapp {
    color: #139b5f;
}

.detalhe-rotas {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.rota-btn {
    min-height: 38px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .2s ease, opacity .2s ease;
}

.rota-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    opacity: .93;
}

.rota-maps {
    background: #1268c4;
}

.rota-waze {
    background: #27bfe8;
}

.rota-uber {
    background: #111111;
}

.uber-mark {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 900;
}

.detalhe-contatos {
    margin-top: 16px;
    padding-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    border-top: 1px solid var(--rede-borda);
}

.modal-detalhes-parceiro .subModal {
    flex: 1;
    height: auto;
    min-height: 0;
}

@media screen and (max-width: 700px) {
    .modal-topo {
        min-height: 50px;
        padding: 0 10px 0 14px;
    }

    .modal-topo-titulo {
        font-size: 11px;
    }

    .modal-resumo-parceiro {
        padding: 14px;
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .modal-resumo-parceiro .logoEmpresa {
        min-height: 96px;
    }

    .modal-resumo-texto h2 {
        font-size: 21px;
    }

    .painel-detalhes-conteudo {
        padding: 15px 14px 17px;
    }

    .detalhe-rotas {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rota-btn {
        padding: 8px 6px;
        font-size: 12px;
    }

    .detalhe-contatos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .painel-detalhes-retratil.aberto {
        max-height: 620px;
    }

    .modal-detalhes-parceiro .subModal {
        padding-top: 14px;
    }
}


/* Hambúrguer ao lado do título da empresa */
.titulo-com-menu {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.titulo-com-menu h2 {
    margin: 0 !important;
}

.titulo-com-menu .btn-menu-detalhes {
    flex: 0 0 auto;
}

@media screen and (min-width: 701px) {
    .titulo-com-menu {
        justify-content: flex-start;
    }
}


/* Ajuste de altura para o modal não ultrapassar o menu inferior */
.modal-detalhes-parceiro {
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 120px) !important;
    top: 12px !important;
}

.modal-detalhes-parceiro .subModal {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

@media screen and (max-width: 700px) {
    .modal-detalhes-parceiro {
        height: calc(100vh - 145px) !important;
        max-height: calc(100vh - 145px) !important;
        top: 8px !important;
    }

    .modal-detalhes-parceiro .modal-resumo-parceiro {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .modal-detalhes-parceiro .logoEmpresa {
        min-height: 86px;
    }

    .modal-detalhes-parceiro .modalImg {
        max-height: 74px;
    }

    .modal-detalhes-parceiro .subModal {
        overflow-y: auto;
    }
}

