:root {
    --dt-row-selected: 46, 125, 50;        /* rgb(46,125,50) vert Somadi */
    --dt-row-selected-text: 255, 255, 255; /* texte blanc sur selection */
    --dt-row-selected-link: 255, 255, 255;
    --dt-row-stripe: 255, 248, 209;        /* jaune clair */
    --dt-row-hover: 227, 247, 213;         /* vert très clair */
    --dt-column-ordering: 46, 125, 50;
    --dt-html-background: white;
}

/* Entête des DataTables : vert Somadi, texte blanc */

table.dataTable thead th,
table.dataTable thead td {
    background: linear-gradient(to bottom, #3b8c3b, #2e7d32) !important;
}


table.dataTable thead th,
table.dataTable thead td {
    background-color: var(--somadi-green) !important;
    color: #ffffff !important;
    border-color: #1b5e20 !important;
}



/* Lignes impaires : jaune Somadi */
table.dataTable tbody tr:nth-of-type(odd) > td,
table.dataTable tbody tr:nth-of-type(odd) > th {
    background-color: var(--somadi-yellow) !important;
}

/* Lignes paires : blanc */
table.dataTable tbody tr:nth-of-type(even) > td,
table.dataTable tbody tr:nth-of-type(even) > th {
    background-color: #ffffff !important;
}

/* Hover : léger vert */
table.dataTable tbody tr:hover > td,
table.dataTable tbody tr:hover > th {
    background-color: var(--somadi-green-soft) !important;
}

/* Selection DataTables (classe .selected) */
table.dataTable tbody tr.selected > td,
table.dataTable tbody tr.selected > th {
    background-color: var(--somadi-green) !important;
    color: #ffffff !important;
}

/* Pour garder le texte lisible sur ligne sélectionnée */
table.dataTable tbody tr.selected a {
    color: #ffeb3b !important; /* jaune vif pour les liens sur fond vert */
}

/* Boutons de pagination Somadi */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--somadi-green) !important;
    border: 1px solid var(--somadi-green) !important;
    background-color: #ffffff !important;
}

/* Hover */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    color: #ffffff !important;
    background-color: var(--somadi-green) !important;
    border-color: #1b5e20 !important;
}

/* Bouton actif (page courante) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    color: #ffffff !important;
    background-color: var(--somadi-green) !important;
    border-color: #1b5e20 !important;
}

