td {
    font-size: 14px !important;
    padding: 5px 10px;
}

/* img {
    width: 18px;
    height: 18px;
    margin: 0 3px;
} */

.legenda {
    position: absolute;
    background-color: #FFFFFF;
    z-index: 2;
    bottom: 20px;
    left: 20px;
    width: 150px;
    border: 1px #999 solid;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legenda-item {
    display: flex;
    font-size: smaller;
    align-items: center;
    width: 133px;
    /* line-height: 2; */
}

.legenda-cor-azul-escuro, .legenda-cor-cinza, .legenda-cor-roxo {
    width: 20px;  /* Defina o tamanho dos quadrados */
    height: 20px;
    display: inline-block;  /* Para garantir que fiquem na mesma linha */
}

.legenda-cor-azul-escuro {
    background-color: #0000ff;
}

.legenda-cor-cinza {
    background-color: #666666;
}

.legenda-cor-roxo {
    background-color: #AB16C1;
}

.card {
    padding: 5px;
    position: relative;
    left: 10px;
    top: -137px;
    width: 110px;
    z-index: 999;
}

/* Estilos principais */
.container_volume {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    max-height: calc(100vh - 200px); /* Altura máxima considerando o header e footer */
    overflow-y: auto; /* Adiciona scroll vertical quando necessário */
    position: relative; /* Adicionado para servir como referência para a legenda */
}

.ol_map, .table_container {
    width: 100%;  /* Ocupam 100% da largura para telas pequenas */
    height: 700px;
    margin-top: 10px;
}

#datatable{
    height: 670px;
}

/* Responsividade para telas grandes */
@media (min-width: 769px) {
    .ol_map, .table_container {
        width: 48%;  /* Lado a lado, 48% cada em telas maiores */
        height: calc(100vh - 250px); /* Altura responsiva para telas grandes */
    }
}

/* Responsividade para telas pequenas */
@media (max-width: 768px) {
    .container_volume {
        max-height: calc(100vh - 150px); /* Altura máxima menor para telas pequenas */
    }

    .ol_map {
        height: 475px;
    }

    .fa-file, .fa-line-chart {
        font-size: 0.75rem !important; /* Tamanho pequeno do ícone, equivalente a fa-xs */
    }

    /* Aplica o estilo para o cabeçalho e células da tabela DataTable */
    .table_container table.dataTable th, .table_container table.dataTable td {
        font-size: 10px !important;  /* Força o ajuste do tamanho da fonte */
        padding: 0px !important;
    }

    #datatable th {
        text-align: center !important; /* Força a centralização dos cabeçalhos */
    }

    .badge {
        font-size: 10px !important; /* Reduz o tamanho da fonte dos badges para melhor ajuste */
        padding: 5px; /* Ajusta o padding dos badges */
        width: 75px;
    }

    #quantidade {
        width: 30px;
    }

    #percentual {
        width: 40px;
    }

    .table_container {
        height: auto !important; /* Altura automática para telas pequenas */
        max-height: 600px; /* Altura máxima para evitar sobreposição */
        overflow-y: auto;
    }

    #datatable_wrapper{
        margin-top: 25px;
    }

    .tag_title_ceara{
        margin-left: 140px !important;
    }

    .legenda {
        bottom: 10px;
        left: 10px;
        width: 130px;
    }
}

.ui-dialog-titlebar-close{
    display: inline !important;
    border-radius: 0px !important;
    border: none;
    font-weight: bold;
    color: #000;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    color: #3A87AD; /* Cor do spinner */
}

#loading-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

#loading-csv {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.custom-btn {
    width: 30px;
    text-align: center;
    /* background-color: #3A87AD */
    color: #3A87AD
}

.tootip_piechart {
    position: absolute;
    background-color: white;
    padding: 5px;
    border: 1px solid black;
    border-radius: 4px;
    display: none;
    pointer-events: none;
    z-index: 2;
}

.badge{
    float: right;
    font-size: 13px;
    margin-right: 5px;
    font-weight: 0;
}

.tag_title_ceara{
    margin-left: 415px;
}

@keyframes move {
    0% { left: 0%; width: 0%; }
    50% { width: 100%; }
    100% { left: 100%; width: 0%; }
}

#progress-bar {
    animation: move 2s linear infinite;
}

.main_content {
    margin-top: 10px;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    height: 100%;
}
