/* Styles des tableaux rendus côté PHP par TableView
   (include/_views/TableView.class.php), remplaçant DataTables. */

.native-table-wrapper {
    width: 100%;
}

.native-table-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.native-table-search {
    display: flex;
    align-items: center;
    margin: 0;
}

.native-table-search input[type="search"] {
    display: inline-block;
    width: auto;
    margin: 0 0 0 0.5rem;
}

.native-table-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.native-table-info {
    color: #767676;
    font-size: 0.85rem;
}

.native-table-pager {
    display: flex;
    gap: 0.25rem;
}

.native-table-pager .button {
    margin: 0;
}

/* En-têtes triables (TableView) : flèche placée juste après le libellé. */
table thead th a.sort-link {
    color: inherit;
    white-space: nowrap;
}

table thead th a.sort-link:after {
    content: "\2195";
    margin-left: 0.3rem;
    opacity: 0.35;
    font-weight: normal;
}

table thead th a.sort-link.sort-asc:after {
    content: "\2191";
    opacity: 1;
}

table thead th a.sort-link.sort-desc:after {
    content: "\2193";
    opacity: 1;
}

table thead th a.sort-link:hover,
table thead th a.sort-link.sort-asc,
table thead th a.sort-link.sort-desc {
    color: #4195d0;
}

.native-table-empty {
    text-align: center;
    color: #767676;
    padding: 1rem;
}

/* Liste repliable « Plus (N) » (GroupView::listUser), remplace hideMaxListItems(). */
details.maxlist > summary {
    cursor: pointer;
    color: #4195d0;
    list-style: none;
}

details.maxlist > summary::-webkit-details-marker {
    display: none;
}

details.maxlist[open] > summary {
    color: #767676;
}
