/*
 * BAG Copyright (c) 2025. All Rights Reserved.
 * Compléments à default.css / cpl-overrides.css (styles sortis des chaînes PHP).
 */

/* Croissant / Décroissant (autrefois en style="" dans le PHP) */
.sort-direction { border: 0; margin: 0 0 0 15px; padding: 0; }
.sort-direction label { width: 50%; float: left; display: block; cursor: pointer; }
.sort-direction input[type="radio"] {
    width: 50%; float: left; margin-bottom: .5rem; height: 20px; accent-color: #2f4356; cursor: pointer;
}

.empty-result { color: #c00; padding: 15px; }
.total-rows { color: #666; margin-left: .5em; }
#pagination .page_number, #pagination .page_number_current { text-decoration: none; }
.pagination-bar, .pagination-bar td { border: 0; margin: 0; padding: 4px 0; }

/* Tableau : en-têtes <th> avec le même aspect que les <td> d'origine */
.hta-table th { border: 1px #ccc solid; padding: 15px; vertical-align: top; text-align: left; white-space: nowrap; font-weight: 400; }
.hta-table th a { text-decoration: none; color: #000; display: inline-flex; align-items: center; }
.hta-table th a.sort-active { font-weight: 700; }
.hta-table tr.row-odd td { background-color: #fff; }
.hta-table tr.row-even td { background-color: #f2f2f2; }
.hta-table td.pagination-cell { background-color: #fff; }

/* Flèches de tri (reprises de getViewer_tableau) */
.arrow-up, .arrow-down, .arrow-middle { display: inline-block; vertical-align: middle; margin-left: 6px; }
.arrow-up { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid black; }
.arrow-down { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid black; }
.arrow-middle { width: 20px; height: 0; border-top: 2px solid black; }

/* Focus visible au clavier */
a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid #2f4356; outline-offset: 2px; }

/* Tableau : titres en gras foncé, sans soulignement (comme getViewer_tableau en ligne) */
.hta-table td.label a { color: #222; font-weight: 700; text-decoration: none; }
.hta-table td.label a:hover, .hta-table td.weakLabel a:hover { text-decoration: underline; }
.hta-table td.weakLabel a { color: #2f4356; }
