/* --- LIMPEZA GERAL (Remove sombras e fundos estranhos) --- */
* {
    text-shadow: none !important;
}

/* --- GHOST BUSTER (Esconde busca duplicada) --- */
#changelist-filter input[name="q"], 
#changelist-filter form > div > input[type="submit"] {
    display: none !important;
}

/* --- FORMULÁRIOS (Alinhamento dos campos de edição) --- */
.form-row {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.form-row .field-box {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    display: block;
    float: none !important;
}
.aligned label {
    display: block !important;
    width: 100% !important;
    text-align: left !important;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-row .field-box input[type="text"],
.form-row .field-box input[type="number"],
.form-row .field-box select,
.form-row .field-box textarea {
    width: 100% !important;
    box-sizing: border-box;
    padding: 5px;
}

/* --- BOTÕES DE FILTRO DE DATA (Lado a Lado) --- */
.admindatefilter .controls {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 5px !important;
    margin-top: 5px !important;
}
.admindatefilter .controls input[type="submit"],
.admindatefilter .controls button {
    flex: 1 !important;
    display: block !important;
    background-color: #007bff !important; /* Azul */
    color: white !important;
    border: none !important;
    padding: 6px 0 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}
.admindatefilter .controls a {
    flex: 1 !important;
    display: block !important;
    background-color: #17a2b8 !important; /* Turquesa */
    color: white !important;
    text-align: center !important;
    padding: 6px 0 !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* --- PAGINAÇÃO (Estilo Limpo) --- */
.card-footer {
    background-color: transparent !important;
    border-top: 1px solid rgba(0,0,0,0.1) !important;
}
.pagination .page-item .page-link {
    color: #007bff;
    background-color: #fff;
    border: 1px solid #dee2e6;
    margin: 0 2px;
}
/* O Javascript vai pintar o botão ativo */
.pagination .page-item.active .page-link {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: #fff !important;
}

/* --- IMPORTAÇÃO (Legibilidade) --- */
.import-preview table td, .import-preview table th {
    background-color: #fff !important;
    color: #333 !important;
}
