/* Scoped list-only layer. Frozen purchasing/editor/tree/DataTables layouts stay unchanged. */
.uq-data-table-ready > thead > tr > th {
    position: relative;
    resize: none !important;
    padding-inline-end: 20px !important;
}
.uq-table-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: inherit;
    white-space: normal;
    line-height: inherit;
    padding: 0;
    cursor: pointer;
}
.uq-table-sort:focus-visible, .uq-table-resize:focus-visible, .uq-table-tool:focus-visible {
    outline: 2px solid #087e6c;
    outline-offset: 3px;
}
.uq-table-sort-indicator { flex: 0 0 auto; color: #667085; font-size: 12px; }
.uq-table-sort-indicator::before { content: "↕"; }
th[aria-sort="ascending"] .uq-table-sort-indicator::before { content: "↑"; color: #087e6c; }
th[aria-sort="descending"] .uq-table-sort-indicator::before { content: "↓"; color: #087e6c; }
.uq-table-resize {
    position: absolute;
    inset-inline-end: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    z-index: 1;
    cursor: col-resize;
    touch-action: none;
    user-select: none;
}
.uq-table-resize::after {
    content: "";
    position: absolute;
    top: 20%;
    bottom: 20%;
    inset-inline-end: 5px;
    width: 2px;
    background: #a1b9b4;
    border-radius: 2px;
}
.uq-table-resize:hover::after, .uq-table-resize:focus::after { background: #087e6c; width: 3px; }
.uq-data-table-fixed > :is(thead, tbody, tfoot) > tr > :is(th, td) {
    min-width: 0 !important;
    max-width: none !important;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.uq-data-table-fixed > tbody > tr > td:not(.crud-actions-col):not(.uq-data-export-select-cell) { white-space: normal !important; }
html.uq-table-resizing, html.uq-table-resizing * { cursor: col-resize !important; user-select: none !important; }
.uq-table-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 6px 12px;
    color: #667085;
    font-size: var(--uq-font-caption, 15px);
    line-height: 1.4;
}
.uq-table-tools .uq-context-help { width: auto; flex: 0 0 auto; margin: 0; }
.uq-table-tool {
    border: 0;
    background: transparent;
    color: #087e6c;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 2px 0;
}
.uq-table-tool[hidden] { display: none !important; }
@media (pointer: coarse) { .uq-table-resize { width: 20px; } }
@media print { .uq-table-tools, .uq-table-resize, .uq-table-sort-indicator { display: none !important; } }
