/* Correções específicas para o DataTable */

/* Garantir que "Mostrar X categorias por página" fique tudo na mesma linha */
.dataTables_wrapper .dataTables_length {
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    float: left;
}

.dataTables_wrapper .dataTables_length label {
    display: inline-flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

/* Correção específica para DataTables */
div.dataTables_wrapper div.dataTables_length label {
    text-align: left !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
}

.dataTables_wrapper .dataTables_length select {
    margin: 0 5px !important;
    display: inline-block !important;
    width: auto !important;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem !important;
    line-height: 1.5 !important;
    vertical-align: middle !important;
    background-position: right 0.75rem center !important;
}

/* Garantir que o texto e o select fiquem na mesma linha */
.dataTables_wrapper .dataTables_length span {
    white-space: nowrap !important;
    display: inline-block !important;
}

/* Outros ajustes para o DataTable */
.dataTables_wrapper .dataTables_filter {
    display: flex !important;
    justify-content: flex-end !important;
    margin-left: auto !important;
}

/* Ajuste específico para o novo layout de DataTables */
.dataTables_wrapper .col-md-6.d-flex.justify-content-between {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
    align-items: center !important;
}

.dataTables_wrapper .float-start {
    float: left !important;
}

.dataTables_wrapper .float-end {
    float: right !important;
}

.dataTables_wrapper .dataTables_filter label {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 5px !important;
}
