.list_search_button, .collection_button_bar, .column_select_button_bar{float:right;}

button.cancel_collection{position: relative;}
button.add_results_to_collection, button.remove_results_from_collection{padding-left: 17px;}
tr[pk] .add_to_collection, tr[pk] .remove_from_collection{float: right; position: relative; background: none;}
.btn-default .tabler-minor{position: absolute; top: 7px; left: 8px; font-size: 0.8em;}
tr[pk].incollection .add_to_collection,tr[pk]:not(.incollection) .remove_from_collection{display:none;}

tr[pk].incollection{background-color: var(--bg-highlight)!important;}
table.collection-mode .show-on-mouseover, table.collection-mode .hide-on-collection{display: none!important;}
table:not(.collection-mode) .remove_from_collection{display: none!important;}
table:not(.collection-mode) .add_to_collection{display: none!important;}
table.collection-mode .hide_on_collection{display: none!important;}

.collection_info_box{margin: var(--space) 0; display: none;}

/* Keep add/action buttons visible when many columns force horizontal scroll */
.table-sticky-actions-column {
    border-collapse: separate;
    border-spacing: 0;
}
.table-responsive > .table-sticky-actions-column > thead > tr:first-child > th.table-header-actions,
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: var(--bg-row);
    white-space: nowrap;
    width: auto;
    min-width: min-content;
    box-shadow: -4px 0 6px -4px rgba(0, 0, 0, 0.15);
}
.table-responsive > .table-sticky-actions-column > thead > tr:first-child > th.table-header-actions {
    z-index: 5;
    background-color: var(--scoped-bg-color-alt, var(--bg-color-alt, #f5f5f5));
}
div.table-responsive table > thead > tr > th:last-child .btn-group,
.table-responsive > .table-sticky-actions-column > thead > tr:first-child > th.table-header-actions .btn-group {
    display: inline-flex;
    flex-wrap: nowrap;
    vertical-align: middle;
}
div.table-responsive table > thead > tr > th:last-child .btn-group > .btn,
.table-responsive > .table-sticky-actions-column > thead > tr:first-child > th.table-header-actions .btn-group > .btn {
    float: none;
}
div.table-responsive table > thead > tr > th#add_button_container {
    overflow: visible;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons:has(.action_buttons_status) {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 0 var(--action-buttons-status-gap, 6px);
    white-space: nowrap;
    width: 100%;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons:not(:has(.action_buttons_status)) {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    width: 100%;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons_controls {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 0 0 auto;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons:has(.action_buttons_status) .action_buttons_controls {
    grid-column: 3;
    width: var(--action-buttons-min-width, 108px);
    min-width: var(--action-buttons-min-width, 108px);
    max-width: var(--action-buttons-min-width, 108px);
    box-sizing: border-box;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons_status {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 0 0 auto;
    min-width: 1.25em;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons:has(.action_buttons_status) .action_buttons_status {
    grid-column: 2;
    justify-self: end;
}
.table-responsive > .table-sticky-actions-column > tbody > tr > td.table-row-actions .action_buttons:not(:has(.action_buttons_controls)) {
    flex-direction: row;
    justify-content: flex-end;
    gap: 3px;
}
.table-responsive > .table-sticky-actions-column.table-hover > tbody > tr:hover > td.table-row-actions {
    background-color: var(--bg-highlight);
}

.full_stats_container {display: flex; flex-direction:column; height: 100%; overflow-y:auto;}
.full_stats_container #full_stats_toolbar{flex:none!important;margin-top: var(--main-header-margin-top);}
.full_stats_container #full_stats_header{flex: 1;}
.full_stats_container #full_stats_main_header_container{align-items: start; flex:0;}
.full_stats_container #full_stats_content{flex:1;overflow-y:auto;margin-bottom: 5px;}
.full_stats_container #full_stats_content .stats_content_empty{margin-top: 20px}
.full_stats_container #full_stats_content .field_container .field_header_container{border-bottom: 1px solid lightgrey; display: flex;}
.full_stats_container #full_stats_content .field_container .field_header_container > .field_name {font-size: 1.25em; font-weight: bold; }
.full_stats_container #full_stats_content .field_container .field_header_container > .field_type_display {color:var(--fg-muted); padding-left: 10px; font-size: 1.25em;}
.full_stats_container #full_stats_content .field_container{margin-bottom: 10px;}
.full_stats_container #full_stats_content .group_container{margin-bottom: 20px;}
.full_stats_container #full_stats_content .numeric_row{display: flex;}
.full_stats_container #full_stats_content .numeric_row > .numeric_cell{flex:1;}
.full_stats_container #full_stats_content .numeric_row > .numeric_cell > .numeric_label{font-weight: bold; text-align: center;}
.full_stats_container #full_stats_content .numeric_row > .numeric_cell > .numeric_value{font-size: 34px; text-align: center;}
.full_stats_container #full_stats_content .frequency_row > .frequency_header{display: flex;}
.full_stats_container #full_stats_content .frequency_row .data_table > table{width:100%;}
.full_stats_container #full_stats_content .frequency_row .data_table {max-height: 300px;}
.full_stats_container #full_stats_content .frequency_row .pie_chart {height: 300px;}
/*.full_stats_container #full_stats_content .frequency_row .pie_chart .c3-chart-arc text {fill: black;}*/
.full_stats_container #full_stats_content .frequency_row > .frequency_header > .frequency_selector{flex:1!important;}

/* START ADVANCED FILTERS */
.search-pill {
    padding: 4px 8px;
    display: inline-block;
    min-width: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    border-radius: 10px;
}
span.search-pill {
    cursor: auto;
    border-color: #245580;
}
span.search-pill:hover {
    color: #fff;
}
span.search-pill:active {
    -webkit-box-shadow:none;
    box-shadow:none;
}
.search-pill.btn-primary {
    background-image:none;
    text-shadow:none;
    -webkit-box-shadow:none;
    box-shadow:none;
}
li a:not(:hover) .show-on-mouseover {
  pointer-events: none; 
  visibility: hidden;
}
.editing {
    background-color: #ec971f;
    border-color: #eea236 !important;
}
.help-block.filter-error {
    color: #a94442 !important;
    text-align: left;
    display: inline-block;
    width: 100%;
}
.saved-search-result a{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}
/* END ADVANCED FILTERS */