/* Orchard Design System — DataTables Styling */

div.dataTables_wrapper {
    background-color: transparent;
    padding: 0;
}
div.dataTables_length { float: left; }
div.dataTables_filter { float: right; }
div.dataTables_info { padding: 9px 6px 6px 6px; float: left; font-size: 0.8125rem; }
div.dataTables_paginate { float: right; }
div.dataTables_length,
div.dataTables_filter,
div.dataTables_paginate { padding: 6px; font-size: 0.8125rem; }

.dataTables_wrapper:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; }

/* Table styles */
table.pretty { width: 100%; clear: both; border-collapse: collapse; }
table.pretty td, table.pretty th { padding: 10px 12px; border: 1px solid var(--border-light, #d5d5d5); }

/* Header cells */
table.pretty thead th {
    text-align: center;
    background: var(--bg-accent, #e2eae4);
    color: var(--color-heading, #031018);
    font-family: "Montserrat", "Open Sans", Arial, sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid var(--border-accent, #8fb3a3);
}

/* Body cells */
table.pretty tbody th { text-align: left; background: var(--bg-accent, #e2eae4); }
table.pretty tbody td { text-align: center; background: var(--bg-white, #fff); font-size: 0.8125rem; }
table.pretty tbody tr.odd td { background: var(--bg-page, #f5f8fa); }
table.pretty tbody tr:nth-child(even) td { background: var(--bg-page, #f5f8fa); }

/* Hover */
table.pretty tr.even:hover td,
table.pretty tr.odd:hover td,
table.pretty tbody tr:hover td { background-color: var(--bg-light, #e8e6e2); }

/* Footer cells */
table.pretty tfoot th { background: var(--bg-accent, #e2eae4); text-align: left; }
table.pretty tfoot td { background: var(--bg-page, #f5f8fa); text-align: center; font-weight: bold; }

/* Pagination */
a.paginate_button, a.paginate_active {
    display: inline-block;
    background-color: var(--bg-accent, #e2eae4);
    color: var(--color-heading, #031018);
    padding: 4px 10px;
    margin-left: 2px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.8125rem;
    text-decoration: none;
    transition: background-color 0.2s;
}
a.paginate_button:hover { background-color: var(--border-accent, #8fb3a3); color: #fff; }
a.paginate_active { background-color: var(--gta-green, #07493d); color: #fff; }
a.paginate_button_disabled { color: #999; }
.paging_full_numbers a:active { outline: none; }
.paging_full_numbers a:hover { text-decoration: none; }
div.dataTables_paginate span>a { width: 15px; text-align: center; }

/* Sorting */
table.pretty thead th.sorting_asc { background: var(--bg-accent, #e2eae4) url('/gta/useradmin/images/sort_asc.png') no-repeat right 8px center; padding-right: 24px; }
table.pretty thead th.sorting_desc { background: var(--bg-accent, #e2eae4) url('/gta/useradmin/images/sort_desc.png') no-repeat right 8px center; padding-right: 24px; }
table.pretty thead th.sorting { background: var(--bg-accent, #e2eae4) url('/gta/useradmin/images/sort_both.png') no-repeat right 8px center; padding-right: 24px; }

td { font-size: 0.8125rem; }
th { font-size: 0.8125rem; }

.dataTables_paginate .ui-button { margin-right: -0.1em !important; }
.paging_full_numbers { width: auto !important; }
.dataTables_wrapper .ui-toolbar { padding: 5px; }
.dataTables_paginate { width: auto; }
