/* ============================= */
/* GLOBAL / UTILIDADES           */
/* ============================= */

/* Ocultar elementos */
.hidden {
    display: none !important;
}

/* ============================= */
/* LINKS (BOTÕES / DOE LINK)     */
/* ============================= */

/* Botão/link dentro da tabela */
#doeLink {
    display: inline-block;
    padding: 8px 8px;
    background-color: #0A6673;
    color: #fcb421;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

#doeLink:hover {
    background-color: #fcb421;
    color: #0A6673;
}

/* ============================= */
/* BOTÕES                        */
/* ============================= */

.filterBtnGreen, .filterBtnRed {
    padding: 8px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #0A6673;
    color: #fcb421;
	font-weight: normal;
	text-shadow: none;
}

.filterBtnGreen:hover {
    background-color: #fcb421;
    color: #0A6673;
}

.filterBtnRed:hover {
    background-color: #fcb421;
    color: #0A6673;
}

/* ============================= */
/* FORMULÁRIOS / FILTROS         */
/* ============================= */

/* Container de filtros e busca */
.SrcBar, #divFiltGeral, .divGeral {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

/* Campos de filtro individuais */
#divFiltSep {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

#divFiltSep label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.filtBox, #searchInput, #search-query {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    width: 100%;
    background-position: 10px 10px;
    background-repeat: no-repeat;
}

/* Estilo específico de input de busca com ícone */
#searchInput, #search-query {
    padding-left: 40px;
    background-image: url('images/search.png');
}

/* Foco nos campos de busca */
#searchInput:focus, #search-query:focus {
    border-color: #0A6673;
    outline: none;
    background-position: 10px 10px;
}

/* ============================= */
/* TABELA                        */
/* ============================= */

#dataTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Cabeçalho */
#dataTable thead {
    background-color: #0A6673;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.2);
}

#dataTable th {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 2px solid #0A6673;
}

/* Corpo da tabela */
#dataTable td {
    padding: 12px 16px;
    color: #333;
    border-bottom: 1px solid #ddd;
    transition: background 0.3s ease;
}

/* Linhas alternadas */
#dataTable tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#dataTable tbody tr:nth-child(even) {
    background-color: #ffffff;
}

/* Hover elegante */
#dataTable tbody tr:hover {
    background-color: #64c4d2;
    color: #000;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================= */
/* RESPONSIVIDADE MOBILE         */
/* ============================= */

@media (max-width: 768px) {

    /* Container de filtros */
    .SrcBar, #divFiltGeral, .divGeral {
        flex-direction: column;
        align-items: stretch;
    }

    #divFiltSep {
        width: 100%;
    }

    .filterBtnGreen, .filterBtnRed {
        width: 100%;
        justify-content: center;
    }

    /* Tabela adaptativa para mobile */
    .table-container {
        overflow-x: visible;
        box-shadow: none;
    }

    #dataTable, 
    #dataTable thead, 
    #dataTable tbody, 
    #dataTable th, 
    #dataTable td, 
    #dataTable tr {
        display: block;
        width: 100%;
    }

    /* Esconde cabeçalho */
    #dataTable thead {
        display: none;
    }

    /* Cada linha vira um card */
    #dataTable tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #eaeaea;
        border-radius: 8px;
        padding: 12px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    }

    #dataTable td {
        border: none;
        padding: 8px 10px;
        position: relative;
        font-size: 0.95rem;
        display: flex;
        justify-content: space-between;
    }

    /* Título da coluna antes do valor */
    #dataTable td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #333;
        flex: 1;
        padding-right: 10px;
        text-align: left;
    }
}