/* Ajusta o modal para telas pequenas */
@media (max-width: 576px) {
    .modal-xl {
        max-width: 100% !important;
        margin: 0;
    }

    .modal-content {
        border-radius: 0;
    }
}

/* Ajusta margens e botões para telas pequenas */
@media (max-width: 576px) {
    .mb-4 {
        margin-bottom: 1rem !important;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Esconde colunas específicas da tabela em telas pequenas */
@media (max-width: 576px) {

    #tabelaServicos th:nth-child(3),
    #tabelaServicos td:nth-child(3),
    #tabelaServicos th:nth-child(5),
    #tabelaServicos td:nth-child(5),
    #tabelaServicos th:nth-child(6),
    #tabelaServicos td:nth-child(6) {
        display: none;
    }
}

/* Estilo para o wrapper da tabela */
.custom-datatable {
    margin-top: 1rem;
    font-family: 'Segoe UI', sans-serif;
}

/* Campo de busca estilizado */
.search-input {
    padding: 6px 12px;
    border-radius: 4px;
    width: 100%;
    max-width: 300px;
}

/* Estilo alternado para linhas da tabela */
.table-striped tbody tr:nth-child(odd) {
    background-color: #fff7f2;
    /* leve tom de laranja */
}

/* Estilo para hover na tabela */
.table-hover tbody tr:hover {
    background-color: #ffe6d5 !important;
}

/* Ajusta o wrapper da tabela para telas menores */
@media (max-width: 768px) {
    #tabelaServicos_wrapper {
        overflow-x: auto;
    }
}

/* Estilo para paginação do DataTables */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: var(--primary-color);
    color: #333 !important;
    border: none;
    margin: 0 4px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: var(--primary-hover);
}

.dt-input {
    font-size: 15px;
    color: #fff !important;
    background-color: #222 !important;
    margin-bottom: 20px;
    outline: none;
    border: none !important;
    /* Remove todos os lados */
    border-bottom: 2px solid #E65100 !important;
    /* Adiciona só o de baixo */
    border-radius: 0 !important;
    /* Remove arredondamento, se quiser estilo flat */
}

.dt-input {
    color: #fff !important;
}

.dataTables_length {
    color: #fff !important;
    background-color: #222 !important;
    outline: none;
    border: none !important;
    /* Remove todos os lados */
    border-bottom: 2px solid #E65100 !important;
    /* Adiciona só o de baixo */
    border-radius: 0 !important;
    /* Remove arredondamento, se quiser estilo flat */
}

/* Campos de formulário */
.form-control,
.form-select,
.form-check-input {
    background-color: #3a3a3a;
    border: 1px solid #666;
    color: #e0e0e0;
}

.form-control::placeholder {
    color: #aaa;
}

.form-check-label {
    color: #ddd;
}

label {
    font-weight: 500;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #ddd;
}

.nav-tabs .nav-link.active {
    background-color: #444;
    color: #f25c05;
}

/* Barra de progresso */
.progress-bar {
    background: linear-gradient(90deg, #f0c674, #d6a100);
}

/* Aba desativada */
.disabled-tab {
    pointer-events: none;
    opacity: 0.5;
}