/* ref: https://www.w3schools.com/howto/howto_css_custom_checkbox.asp */


/* Novo menu de temas */
*[layout-novo] {
    /* display: none; */
}

*[layout-antigo] {
    display: none;
}


.leaflet-control-zoom{
    position: fixed !important;
    bottom: 15px;
    right: 10px;
}

.toggle-bg-mapa{
    position: fixed !important;
    bottom: 15px;
    right: 50px;
}

aside.menu-temas {
    background: #071D41;
    position: absolute;
    left: 0;
    height: 100%;
    width: 288px;
    box-shadow: 7px 0 13px -8px rgb(0 0 0 / 50%);
    z-index: 1000;
    padding-bottom: 43px;

    color: #7CB5EC;
    overflow-y: auto;
}

aside.menu-temas h3 {
    font-weight: 600;
    padding: 14px 23px;
    cursor: pointer;
    font-size: .9em;
}

aside.menu-temas h3:after {
    content: '';
    position: relative;
    /* top: 50%; */
    /* left: 40px; */
    width: 14px;
    height: 12px;
    background-image: url(../imagens/seta-nav-tema-mapa.png);
    /* background-size: cover; */
    transform: translateY(-50%);
    background-repeat: no-repeat;
    /* right: 10px; */
    float: right;
    margin-right: -13px;
    margin-top: 4px;
    transform: rotate(-90deg);
    transition: all 0.5s ease
}

aside.menu-temas .tema.open h3:after {
    transform: rotate(0deg);

}

aside.menu-temas .tema {
    border-bottom: 1px solid #D2D2D3;
}

aside.menu-temas .subTemas {
    display: none;
}

aside.menu-temas ul li {
    color: #fff;
    padding: 13px 27px;
    padding-left: 30px;
    font-size: .8em;
    border-bottom: 1px solid #d3d3d49e;
    line-height: 15px;
    cursor: pointer;
}

aside.menu-temas ul li:last-child {
    border: none;
    margin-bottom: 20px;
}

aside.menu-temas ul li span {
    display: inline-block;
    float: left;
    top: 3px;
    left: -8px;
    height: 16px;
    width: 16px;
    background-color: #071d41;
    border-radius: 50%;
    position: relative;
    border: 1px solid #fff;

}

aside.menu-temas ul li span:first-of-type {
    margin-bottom: 25px;
}

aside.menu-temas ul li.selecionado span:after {
    content: '';
    display: block;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    position: absolute;
}

aside.menu-temas .fechar_mobile{
    display: none;
}

aside.menu-temas ul li span.recorte-modal-btn {
    float: none;
    border: none;
    left: 3px;
}

aside.menu-temas ul li span.recorte-modal-btn:after {
    background: none;
}

.btn-opcoes {
    position: absolute;
    z-index: 10000;
    left: calc(0vw + 304px);
    top: 13px;
}

.btn-opcoes button {
    background-color: #1351B4;
    color: #fff;
    background-image: url(../imagens/icone-opcoes-mapa.png);
    background-repeat: no-repeat;
    padding: 20px 30px;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9em;
    background-position: 13px center;
    padding-left: 37px;
    box-shadow: 0px 0px 5px black;
}

.btn-opcoes ul {
    width: 160px;
    background-color: #fff;
    /* border: 1px solid #004A71; */
    border-radius: 7px;
    margin-top: 7px;
    display: none;
}

.btn-opcoes.on ul {
    display: block;

    box-shadow: 7px 0 13px -8px rgb(0 0 0 / 50%);
}

.btn-opcoes.on button {
    background-color: #071D41;
}

.btn-opcoes ul li {
    padding: 12px 13px;
    border-top: 1px solid #c5c5c5;
    color: #1351B4;
    font-weight: 700;
    font-size: .8em;
    background-repeat: no-repeat;
    background-position: 12px;
    padding-left: 38px;
    cursor: pointer;
}

.btn-opcoes ul li:first-child {
    border-top: none;
}

.btn-opcoes ul li.salvarImg {
    background-image: url('../imagens/ico-mapa-salvar-img.png');
    border-top: none;
}

.btn-opcoes ul li.exportar {
    background-image: url('../imagens/ico-mapa-exportar.png');
}

.btn-opcoes ul li.pgi {
    background-image: url('../imagens/ico-mapa-pgi.png');
}



.btn-legenda {
    position: absolute;
    z-index: 10000;
    left: calc(0vw + 304px);
    bottom: 13px;
}

.btn-legenda.on .content{
    display: block;
}

.btn-legenda.on button{
    display: none;
}

.btn-legenda button {
    background-color: #fff;
    color: #1351B4;
    background-image: url(../imagens/ico_mapa_legenda.png);
    background-repeat: no-repeat;
    padding: 20px 30px;
    border: none;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: .9em;
    background-position: 13px center;
    padding-left: 37px;
    box-shadow: 0px 0px 5px black;
    cursor: pointer;
}

.btn-legenda ul {
    /* width: 160px;
    background-color: #fff;
    border: 1px solid #004A71;
    border-radius: 7px;
    margin-top: 7px;
    display: none; */
}

.btn-legenda.on button {
    background-color: #071D41;
}

.btn-legenda ul li {
    font-weight: normal;
    font-size: 1em;
    padding: 0;
    margin: 10px 0px 10px 0px;
}

.btn-legenda .content {
    background-color: #fff;
    padding: 20px;
    font-weight: bold;
    font-size: .8em;
    border-radius: 8px;
    box-shadow: 7px 0 13px -8px rgb(0 0 0 / 50%);
    display: none;
    padding-right: 32px;
}

.btn-legenda #fechar_legenda {
    float: right;
    margin-top: -16px;
    cursor: pointer;
    position: absolute;
    right: 9px;
    top: 25px;
}


/* Customize the label (the container) */
.map-page .container {
    display: block;
    position: relative;
    padding-left: 28px;
    padding-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default radio button */
.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom radio button */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #eee;
    border-radius: 50%;
}

/* itens do menu do CNEFE que são quadrados */
#legenda-item-especie_2 label .checkmark,
#legenda-item-especie_7 label .checkmark {
    border-radius: 0;
}

/* On mouse-over, add a grey background color */
.container:hover input~.checkmark {
    background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container input:checked~.checkmark {
    background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked~.checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.container .checkmark:after {
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.legenda-lista__filtro {
    list-style-type: none;
    font-size: 15px;
    padding: 1px 1px 1px 25px;
    margin: 3px 0 3px 23px;
}

.tooltip-mapa {
    display: none;
    background-color: #fff;
    padding: 15px 20px;
    border: 1px solid #939393;
    color: #040404;
    font-size: 13px;
    width: 400px;
    border-radius: 5px;
    box-shadow: 1px 0 11px rgb(0 0 0 / 20%);
    bottom: 70px;
}

.tooltip-mapa__content {
    font-size: 15px;
}

.tooltip-mapa__content strong {
    font-size: 1.1em;
    color: #154ab0;
}

.tooltip-mapa__content hr {
    border: none;
    border-bottom: 1px solid #ccc;
    margin-top: 15px
}

.tooltip-mapa__content p:last-child {
    font-size: .8em;
}

/* baca para alinhar o combo da localização com os controles do mapa */
.nav-territorio {
    right: 10px;
    top: 10px;
}

.carregando-mapa {
    display: none;
    background-color: #fff;
    padding: 15px 20px 15px 45px;
    border: 1px solid #939393;
    color: #040404;
    font-size: 13px;
    border-radius: 5px;
    box-shadow: 1px 0 11px rgb(0 0 0 / 20%);
    background-image: url('../imagens/Loading.gif');
    background-position: 5px center;
    background-size: auto 65%;
    background-repeat: no-repeat;
    margin-bottom: 80px !important;
}

/** toggle do bg do mapa **/
.toggle-bg-mapa__content {
    cursor: pointer;
}

.toggle-bg-mapa__content__icon {
    width: 64px;
    height: 64px;
    border: 1px solid #fff;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgb(0 0 0 / 0.2);
}

.toggle-bg-mapa__content__icon:hover {
    border: 2px solid #fff;
}

.toggle-bg-mapa__content__desc {
    font-size: 10px;
    margin-top: -25px;
    padding: 2px;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 1px #000;
}

.location-info {
    /* display: block; */
    /* float: right; */
    width: 15px;
    height: 15px;
    font-size: 12px;
    border-radius: 100%;
    background-color: #fff;
    text-align: center;
    margin: 5px 2px 0 0;
    border: 1px solid #666;
    color: #666;
    box-shadow: 0px 0px 3px 3px rgb(0 0 0 / 10%);
    cursor: pointer;

    display: inline;
    float: none;
    position: absolute;
    margin-top: -1px;
    margin-left: 6px;
}

/* esconde a bandeirinha da Ucrânia */
.leaflet-attribution-flag {
    visibility: hidden !important;
}

/* baca mais feio da vida: esconder o botão de download do PNG em determinadas ocasiões */
/*
.btn-exportarPng-container.hide-plz {
    display: none;
}
*/

/* hover da célula da grade */
.marker-grade svg rect:hover {
    stroke: rgba(0, 0, 0, 0.75);
    stroke-width: 2px;
}

/* baca bizarro para esconder os options disabled do select2() */
.select2-container--default .select2-results__option[aria-disabled=true] {
    display: none;
}

/* tooltip e popup do mapa do cnefe */
div.popup-cnefe-completo p {
    margin: 0;
    padding: 0;
    font-size: 1em;
    color: #333;
}
div.popup-cnefe-completo p strong {
    color: #000;
}
div.popup-cnefe-completo p.coordenadas {
    font-size: 0.8em;
}
div.popup-cnefe-completo p.coordenadas strong {
    font-weight: normal;
}
div.popup-cnefe-completo p.endereco {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #1351b4;
}
div.popup-cnefe-completo p.estabelecimentos {
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}
div.popup-cnefe-completo p.botao button {
    background-color: #fff;
    padding: 5px;
    width: 100%;
    border: 1px solid #1351b4;
    color: #1351b4;
    border-radius: 3px;
    cursor: pointer;
}

#modal h3 span.modal-enderecos-cnefe-coordenadas {
    color: #333;
    font-size: 0.8em;
    font-weight: normal;
}
#modal h3 span.modal-enderecos-cnefe-endereco {
    color: #ff841e;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 10px;
}
#modal h3 span.modal-enderecos-cnefe-estabelecimentos {
    color: #000;
    font-weight: bold;
    margin-bottom: 5px;
}

#modal div.conteudoTxt ol {
    margin: 0 0 0 15px;
}
#modal div.conteudoTxt ol li {
    padding: 0;
    margin: 0 0 10px 0;
    list-style-type: decimal;
}
#modal div.conteudoTxt ol li::marker {
    font-weight: bold;
}
#modal div.conteudoTxt ol li p {
    line-height: normal;
}

@media (max-width: 768px) {
    .map-page{
        top: 210px;
    }

    .leaflet-top.leaflet-right {
        margin-top: 60px;
    }

    .leaflet-control-zoom{
        bottom: auto;
        top: 150px;
    }
    
    .toggle-bg-mapa{
        right: 50px;
        top: 210px;
    }

    /* liberar o funcionamento do "x" no menu */
    .map-legenda {
        width: 80%;
    }

    .btn-legenda button{
        display: none;
    }

    .btn-legenda #fechar_legenda{
        margin-top: -10px;
    }

    .btn-legenda .content{
        /* display: block; */
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        border-radius: 0;
    }

    .btn-legenda .titulo{
        color: #071D41;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 13px;
    font-size: .8em;
    
    }

    aside.menu-temas{
        width: 100vw;
        z-index: 10000;
        padding-top: 10px;
        margin-top: 50px;
        overflow-x: auto;
        padding-bottom: 130px;
        margin-top: -59px;
    }

    aside.menu-temas.ocultoMobile{
        display: none;
    }

    aside.menu-temas .fechar_mobile{
        position: fixed;
        width: 100vw;
        text-align: center;
        background-color: #071d41;
        bottom: 0px;
        padding: 20px;
        font-size: 1.1em;
        font-weight: bold;
        color: #fff;
        cursor: pointer;
    }

    aside.menu-temas .fechar_mobile img{
        vertical-align: middle;
        margin-right: 10px;
        margin-top: -8px;
    }

    aside.menu-temas .fechar_mobile{
        display: block;
    }

    .btn-opcoes ul{
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        border-radius: 0;
        border: 0px;
    }

    .btn-opcoes ul li {
        padding: 19px 13px;
        padding-left: 38px;
    }

    .btn-opcoes .titulo {
        font-weight: 700;
        line-height: 13px;
        margin-bottom: 4px;
        font-size: .7em;
        color: #071D41;
        padding-left: 13px;
        padding-top: 10px;
        margin-bottom: 8px;
    }

    /* btFecharMenuAcoes */

    .btn-opcoes ul li.salvarImg {
        border-top: none;
    }

    #menuTemasMobile{
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        margin-top: 20px;
        background-color: #071d41;
        color: #fff;
        font-weight: bold;
        padding: 20px;
        padding-left: 24px;
        background-image: url(../imagens/seta-nav-tema-mapa.png);
        background-repeat: no-repeat;
        background-position: calc(100% - 18px) center;
        padding-right: 40px;
    }
}