/* Sort indicators + filter toolbar for assets/js/vw_table_tools.js. */

table.vw-sm-table thead th.vw-sortable,
table.vw-shr-table thead th.vw-sortable {
    cursor: pointer;
    user-select: none;
}
table.vw-sm-table thead th.vw-sortable::after,
table.vw-shr-table thead th.vw-sortable::after {
    content: "\2195";
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.35;
}
table.vw-sm-table thead th.vw-sortable:hover,
table.vw-shr-table thead th.vw-sortable:hover { color: #1f2328; }
table.vw-sm-table thead th.vw-sortable:focus-visible,
table.vw-shr-table thead th.vw-sortable:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}
table.vw-sm-table thead th.vw-sort-asc,
table.vw-sm-table thead th.vw-sort-desc,
table.vw-shr-table thead th.vw-sort-asc,
table.vw-shr-table thead th.vw-sort-desc { color: #1f2328; }
table.vw-sm-table thead th.vw-sort-asc::after,
table.vw-shr-table thead th.vw-sort-asc::after { content: "\25B2"; opacity: 1; font-size: 9px; }
table.vw-sm-table thead th.vw-sort-desc::after,
table.vw-shr-table thead th.vw-sort-desc::after { content: "\25BC"; opacity: 1; font-size: 9px; }

/* Shared filter bar - used by the auto toolbar and by the server-filtered
   lists (Sprints, Sprint Detail tasks/log, Modules, My Tasks, ...). */
.vw-tt-toolbar,
.vw-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
    margin: 0 0 12px;
}
.vw-tt-field,
.vw-filter-bar .vw-form-field {
    display: flex;
    flex-direction: column;
    min-width: 150px;
    margin: 0;
}
.vw-tt-field label,
.vw-filter-bar .vw-form-field label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.vw-tt-field .form-control,
.vw-filter-bar .form-control {
    font-size: 12.5px;
    height: 32px;
    padding: 4px 8px;
}
.vw-tt-field-search,
.vw-filter-bar .vw-filter-search { min-width: 210px; flex: 1 1 210px; max-width: 320px; }
.vw-filter-bar .vw-filter-dates { display: flex; gap: 6px; }
.vw-filter-bar .vw-filter-dates .form-control { min-width: 0; width: 140px; }
.vw-tt-meta,
.vw-filter-bar .vw-filter-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    min-height: 32px;
}
.vw-tt-meta .btn-link,
.vw-filter-bar .btn-link { padding: 0 4px; font-size: 12px; }

@media (max-width: 782px) {
    .vw-tt-toolbar,
    .vw-filter-bar { flex-direction: column; align-items: stretch; }
    .vw-tt-field,
    .vw-filter-bar .vw-form-field,
    .vw-tt-field-search,
    .vw-filter-bar .vw-filter-search { min-width: 0; max-width: none; width: 100%; }
    .vw-filter-bar .vw-filter-dates .form-control { width: 100%; }
}
