

@media (min-width: 451px) {
    
.eh-sorteado {
    text-align: center; 
    margin: 0 2px; 
    padding: 3px;
}

.nao-sorteado {
    text-align: center; 
    margin: 0 2px; 
    padding: 3px;
    }
}








/* ===================================================== QUERY DISPOSITIVOS MÓVEIS ===================================================== */


@media (max-width: 450px) {
    
.ciclo-tabela.ciclo-tradicional th {
    padding: 5px 0px 5px 0px;
}

.btn-top-presencas {
    max-width: 50px;
    margin: 5px;
    box-shadow: 0 3px #666;
    background-color: #3bb31c;
    color: white;
    padding: 5px 5px 5px 5px;
    font-size: 0.75rem;
    border: 1px solid #717171;
    border-radius: 5px;
}

.btn-top-falhas {
    max-width: 50px;
    margin: 5px;
    box-shadow: 0 3px #666;
    background-color: #ff2e00;
    color: white;
    padding: 5px 5px 5px 5px;
    font-size: 0.75rem;
    border: 1px solid #717171;
    border-radius: 5px;
}

 .botoes-tabelas {
    display: flex;
    gap: 0px;
}

    .dezena {
        font-size: 0.85rem;
        width: 23px;
        height: 23px;
    }

.div-paginacao-ciclo-ocorrencias {
    display: flex;
    justify-content: 
    space-between;
    align-items: center;
    padding: 10px;
    flex-direction: column;
    gap: 3px;  
}

.div-padrao {
    border: 1px solid #cdcdcd;
    border-radius: 5px;
    padding-left: 2px;
    padding-right: 2px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
    padding-bottom: 15px;
    background-color: white;
    margin-bottom: 15px;
}
    
.input-conc-controles {
    width: 4rem !important;
    border: 1px solid #666;
    border-radius: 3px;
    transition: all .3s;
    font-size: 0.8rem !important;
    justify-self: left;
    padding: 5px !important;
}

.controles-volante div:first-child {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.controles-volante label {
    font-size: 0.7rem;
}

.paginacao-botoes {
    width: 100%;
    justify-content: space-between;
}

.btn-paginacao {
    flex: 1;
    justify-content: center;
}

#controle-concursos-Interior label,
#controle-concursos-Impares label,
#controle-concursos-Pares label {
    font-size: 0.8rem !important;
}

#controle-concursos-Interior input[type="checkbox"],
#controle-concursos-Impares input[type="checkbox"],
#controle-concursos-Pares input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.ciclo-tabela td.classe-pontuou-celula::after,
.ciclo-tabela td.classe-pontuou-celula-media::after,
.ciclo-tabela td.classe-pontuou-celula-baixa::after {
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    border-width: 1px;
}    

.percentage-bar {
    font-size: 0.8rem;
}

.percentage-text {
    font-size: 0.75rem;
    left: 5px;
    right: 10px; top: 50%; transform: translateY(-50%); color: #000; text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1px 1px #fff, -1px -1px #fff, 1px -1px #fff, -1px 1px #fff;
}

/* Em telas pequenas, quando a barra for menor que 30%, coloca o texto fora */
.percentage-bar[style*="width: 0%"] .percentage-text,
.percentage-bar[style*="width: 1%"] .percentage-text,
.percentage-bar[style*="width: 2%"] .percentage-text,
.percentage-bar[style*="width: 3%"] .percentage-text,
.percentage-bar[style*="width: 4%"] .percentage-text,
.percentage-bar[style*="width: 5%"] .percentage-text,
.percentage-bar[style*="width: 6%"] .percentage-text,
.percentage-bar[style*="width: 7%"] .percentage-text,
.percentage-bar[style*="width: 8%"] .percentage-text,
.percentage-bar[style*="width: 9%"] .percentage-text,
.percentage-bar[style*="width: 10%"] .percentage-text,
.percentage-bar[style*="width: 11%"] .percentage-text,
.percentage-bar[style*="width: 12%"] .percentage-text,
.percentage-bar[style*="width: 13%"] .percentage-text,
.percentage-bar[style*="width: 14%"] .percentage-text,
.percentage-bar[style*="width: 15%"] .percentage-text,
.percentage-bar[style*="width: 16%"] .percentage-text,
.percentage-bar[style*="width: 17%"] .percentage-text,
.percentage-bar[style*="width: 18%"] .percentage-text,
.percentage-bar[style*="width: 19%"] .percentage-text,
.percentage-bar[style*="width: 20%"] .percentage-text,
.percentage-bar[style*="width: 21%"] .percentage-text,
.percentage-bar[style*="width: 22%"] .percentage-text,
.percentage-bar[style*="width: 23%"] .percentage-text,
.percentage-bar[style*="width: 24%"] .percentage-text,
.percentage-bar[style*="width: 25%"] .percentage-text,
.percentage-bar[style*="width: 26%"] .percentage-text,
.percentage-bar[style*="width: 27%"] .percentage-text,
.percentage-bar[style*="width: 28%"] .percentage-text,
.percentage-bar[style*="width: 29%"] .percentage-text,
.percentage-bar[style*="width: 30%"] .percentage-text {
    position: absolute;
    left: calc(100% + 5px);
    color: #333;
    text-shadow: none;
}    
    
 
.button-text-long {
    display: none;
} 
 
.ciclo-tabela td {
        font-size: 0.7rem;
        padding: 6px 1px;
}

.div-modos {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 5px;
    margin-bottom: 0px;
    background: #f5f5f5;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 5px;
    border-left: 2px solid #5d3487;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
}

.label-modos { 
    display: flex;
    font-size: 0.7rem;
    gap: 5px;
    margin-left: 3px;
    margin-right: 3px;
    margin-top: 5px;
    flex-direction: column;
    align-content: space-between;
    font-size: 0.7rem;
}

.button-bar {
        text-align: center;
        margin-top: 15px;
        margin-bottom: 0px;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
        align-items: center;
        background-image: linear-gradient(to top, #dbdbdb, #f5f5f5);
        border-radius: 5px;
        padding-top: 10px;
        padding-bottom: 10px;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    }  

     .hide-on-small {
        display: none;
     }

    .intervalos-container-small {
        margin-top: 15px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        gap: 2px;
        flex-wrap: wrap;
        justify-content: center;
    }  
  
  
  
    
.button-interval-controles {
    font-size: 0.8rem;
    padding: 5px 10px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}    

    
.buttonsControles {
    display: flex;
    margin-bottom: 5px;
    width: auto;
    gap: 10px;
    justify-content: center;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center; 
}
   
    
.controlesPaginacao {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: nowrap;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    margin-top: 5px;
}


.titulo-ciclo-avancado {
    font-size: 1rem;
}

    
.padrao-select-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Aumentado de 300px para 400px */
    margin: 5px auto; /* Alterado para auto nas laterais para centralizar */
    border-radius: 8px;

}

/* Estilos para o seletor de categorias */
.categoria-select-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 5px auto;
    background: #fff;
    border-radius: 8px;
    
}

.categoria-select-header {
    width: 100%;
    padding: 12px 12px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.categoria-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px;
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.categoria-select-option {
    width: 100%;
    padding: 12px 12px;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.categoria-select-option:hover {
    background-color: #f5f5f5;
    color: black;
}

.categoria-select-option.selected {
    background-color: #a7348b;
    color: white;
}

/* Ajuste no wrapper para acomodar dois seletores */
.select-wrapper {
    display: flex;
   flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    width: 100%;
    margin-bottom: 10px;
    padding: 0 0px;
}

.padrao-select-header {
    width: 100%;
    padding: 12px 12px; /* Aumentado o padding */
    color: #333;
    font-weight: 500;
    font-size: 0.9rem; /* Aumentado o tamanho da fonte */
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
}

.padrao-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px; /* Aumentado a altura máxima */
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 2px 10px rgb(0 0 0 / 73%);
    z-index: 1000;
    width: 100%;
    margin: 0 auto;
}

.padrao-select-option {
    width: 100%;
    padding: 15px 15px; /* Aumentado o padding */
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem; /* Aumentado o tamanho da fonte */
    transition: all 0.2s ease;
}

.intervalo-info-2 {
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;

    font-weight: bold;
    background: linear-gradient(90deg, #823e9f 0%, #c607dd94 100%);
    color: white;
    
    border-radius: 10px;
    margin-bottom: 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 3px 5px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
}

.progress-fill-falhas {
    border-radius: 0px;
    transition: width 0.5s ease-out;
    width: 0;
}

.palpite-link {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.8rem;
}


.nao-sorteado {
    width: 22px;
    height: 22px;
    line-height: 22px;
    margin: 1px 2px;
}


.eh-sorteado {
    width: 22px;
    height: 22px;
    line-height: 22px;
    margin: 1px 2px;
}

.progress-bar {
    height: 20px;
}

.container {
    padding: 2px;

}

.ciclo-tabela td { 
    text-align: center !important; 
    font-size: 0.9rem; 
    border-color: #e3e3e3; 
    padding: 3px 1px 3px 1px;
    vertical-align: middle;
}
 
.ciclo-tabela th { 
        cursor: pointer;
        text-align: center;
        font-size: 0.7rem;
        border-color: #e3e3e3;
        vertical-align: middle;
        background: conic-gradient(at top left, #2d4356, #435b66, #a76f6f);
        color: white;
        border-color: #e3e3e3;
        padding: 6px 0px;
}
 
.div-controles { 
    margin-top: 5px; 
    width: auto; 
    margin-bottom: 0px; 
}
 
.div-controles-2 { 
    display: inline !important; 
    justify-content: left; 
    font-size: 1.2rem;
}
 
.button-1 { 
    font-size: 0.7rem;
    padding: 5px 18px 6px 18px;
    background-color: #a7348b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    max-width: 55px;
    text-align: center;
    justify-content: center;
    margin: 0 auto;
}

.button-1:hover { 
    background-color: #45a049;
}

.button-presencas {
    background-color: #3bb31c; 
    box-shadow: 0 3px #666;
}

.button-falhas {
    background-color:red; 
    box-shadow: 0 3px #666;
}

.button-ciclos {
    width: 50px; 
    font-size: 0.75rem; 
    padding: 8px 4px; 
    cursor: pointer;
    margin: 0 5px;
    text-align: center;
}

.button-concursos {
    width: 50px; 
    font-size: 0.75rem; 
    padding: 8px 4px; 
    cursor: pointer;
    margin: 0 5px;
    text-align: center;
}
    
.button-interval {
    font-size: 0.7rem;
    padding: 5px 3px;
    background-color: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 3px;
    transition: background-color 0.3s;
}
 
.button-interval:hover {
    background-color: #45a049;
}
 
.intervalo-info {
    background-color: #f5f5f5;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #666;
    margin-left: auto;
    border: 2px solid #e2e8f0; 
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    padding: 10px 0px 10px 0px;
}

.classe-alerta-celula { background-color: #f6da01; color: #000; text-align: center; }
.classe-pontuou-celula { background-color: #b5ffa3; color: #000; text-align: center;  animation: numero-sorteado 1.5s infinite;}
.classe-pontuou-linha { color: #000; text-align: center; box-shadow: 0 0 5px rgba(0,0,0,0.1); }
.classe-alerta-linha { background-color: #ffec9d; color: #000; text-align: center; box-shadow: 0 0 5px rgba(0,0,0,0.1); }
 
.filtro-header1 { 
   margin-top: 5px; 
   font-size: 1rem; 
   font-weight: bold; 
   color: #a7348b;
}

.grade-container { 
        flex-wrap: wrap;
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        margin-bottom: 20px;
        flex-direction: row;
}

.grade-titulo { 
   text-align: center; 
   margin-bottom: 10px; 
   font-weight: 500; 
}

.grade {
   display: grid;
   grid-template-columns: repeat(5, 23px);
   gap: 2px;
   box-shadow: rgb(171 0 255) 0px 1px 2px 0px, rgb(133 0 209 / 17%) 0px 1px 3px 1px;
}

.celula { 
        width: 23px;
        height: 23px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 2px;
        font-size: 0.8rem;
        box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
}


.filtro-header {
    padding: 5px 5px 5px 5px;
    font-size: 1rem;
    font-weight: bold;
    color: #a7348b;
}

.filtro-header-exclusivo {
    padding: 5px 5px 5px 5px;
    font-size: 1rem;
    font-weight: bold;
    color: #f0f0f1;

    }
    
    
    
    
.header-ciclo-mobile.ausentes {
    min-width: 40px !important;
} 

.filtro-table-header {
    padding: 10px 1px 10px 1px;
}

    .d25DestaqueCiclo {
        display: grid;
        padding: 3px;
        grid-template-columns: repeat(5, 1fr);
        grid-gap: 1px;
        max-width: 135px;
        margin: 6px auto;
        box-shadow: rgb(44 44 44 / 49%) 0px 1px 1px, rgb(9 30 66 / 56%) 0px 0px 1px 1px;
        border-radius: 5px;
        background: #fffdd9;
    }

        .header-ciclo-full {
        display: none;
    }
        .header-ciclo-mobile {
        display: inline;
    }

/* FIM DA QUERY PARA DISPOSITIVOS MÓVEIS */

table tr:hover {
transform: translateY(-2px);
    transition: all 0.2s ease;
    background-image: linear-gradient(179.7deg, rgb(255 255 255) 2.9%, rgb(182 242 144 / 75%) 97.1%);
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
}
}


/* Estilos para telas maiores que 450px */
@media (min-width: 451px) and (max-width: 768px) {
    .ciclo-tabela td { 
        font-size: 1rem; 
        padding: 1px;
    }
    .ciclo-tabela th { 
        font-size: 1rem; 
        
    }

    table tr:hover {
transform: translateY(-2px);
    transition: all 0.2s ease;
    background-image: linear-gradient(179.7deg, rgb(255 255 255) 2.9%, rgb(182 242 144 / 75%) 97.1%);
    box-shadow: rgba(9, 30, 66, 0.25) 0px 1px 1px, rgba(9, 30, 66, 0.13) 0px 0px 1px 1px;
}


    .button-1 { 
        font-size: 0.9rem; 
        padding: 8px 15px;
    }
    
    .button-ciclos {
    width: 50px; 
    font-size: 0.75rem; 
    padding: 8px 4px; 
    cursor: pointer;
    margin: 0 5px;
    text-align: center;
}

.button-concursos {
    width: 50px; 
    font-size: 0.75rem; 
    padding: 8px 4px; 
    cursor: pointer;
    margin: 0 5px;
    text-align: center;
}

    .dezena {
        font-size: 0.85rem;
        width: 28px;
        height: 28px;
    }

}



@media (min-width: 451px) {
    .button-text-short {
        display: none;
    }
}


/* Responsividade para os novos checkboxes */
@media (max-width: 768px) {
    #controle-concursos-Impares {
        padding: 10px !important;
    }
    
    #controle-concursos-Impares label {
        font-size: 0.85rem !important;
        margin: 3px !important;
    }
}



/* Em telas menores que 850px, mostrar versão mobile */
@media (max-width: 850px) {
    .header-full {
        display: none;
    }
    
    .header-mobile {
        display: inline;
    }
}



/* Responsividade */
@media (max-width: 768px) {
    .paginacao-container {
        padding: 10px;
    }
    
    .paginacao-controles {
    gap: 10px;
}
    
    .paginacao-controles {
        flex-direction: column;
        align-items: stretch;
    }
    
    .paginacao-seletor {
        width: 100%;
    }
    
    .paginacao-seletor select {
        width: 100%;
    }
    
    .paginacao-info {
        text-align: center;
        padding: 2px;
    }
    
    .paginacao-botoes {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .btn-numero-pagina {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .btn-paginacao {
        font-size: 12px;
        padding: 6px 12px;
    }
}



@media (max-width: 768px) {
    .controles-volante {
        padding: 8px;
    }
    
    .controles-volante label {
        font-size: 0.8rem;
    }
    
    .controles-volante label span {
        font-size: 0.75rem;
    }
}



/* Responsivo */
@media (max-width: 768px) {
    .modal-exportacao-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-exportacao-footer {
        flex-direction: column;
    }
    
    .btn-export {
        width: 100%;
        margin-bottom: 10px;
    }
}



/* Ajustes responsivos para ciclo tradicional */
@media (max-width: 768px) {
    .divControleCiclos {
        padding: 5px;
    }
    
    .divControleCiclos .buscaBotoesControles {
        
        gap: 10px;
    }
    
    .divControleCiclos .buttonsControles {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #tabela-ciclo-tradicional th {
        font-size: 0.75rem;
        padding: 4px;
    }
    
    #tabela-ciclo-tradicional td {
        font-size: 0.75rem;
        padding: 3px;
    }

}

@media (min-width:768px) and (max-width:1023px) {
    .dezena {
        font-size: 0.9rem;
        width: 26px;
        height: 26px;
    }

    .buscaBotoesControles {
        gap: 30px; 
    }
}

@media (min-width: 1024px) {
    .dezena {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
        .buscaBotoesControles {
        gap: 30px; 
    }
    .container {
        max-width: 1150px;
    }
}

@media (max-width: 300px) {
.ciclo-tabela td {
    padding: 3px 0px 3px 0px;
}
}


