.data-table { position: relative; overflow: visible; }
.data-table__tools { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.data-table__tools > .muted { font-size: 11px; }
.data-table__settings { position: absolute; z-index: 30; top: calc(100% + 4px); right: 8px; display: grid; gap: 12px; width: min(300px, calc(100vw - 48px)); padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: 0 14px 45px #0005; }
.data-table__settings > strong { font-size: 13px; }
.data-table__options { max-height: 320px; overflow-y: auto; display: grid; gap: 4px; }
.data-table__options label { display: flex; align-items: center; gap: 9px; padding: 7px 4px; font-size: 13px; cursor: pointer; }
.data-table__options input { accent-color: var(--accent); width: 15px; height: 15px; }
.data-table__heading { display: flex; align-items: center; gap: 7px; width: 100%; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; }
.data-table__heading:disabled { opacity: 1; cursor: default; }
.data-table__heading:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.data-table__grip { font-size: 15px; color: var(--ink-4); cursor: grab; }
.data-table__sort { margin-left: auto; color: var(--ink-4); font-size: 13px; }
.data-table__sort.is-active { color: var(--accent-bright); }
.data-table th { position: relative; user-select: none; touch-action: pan-y; }
.data-table th.data-table__drop-before::before, .data-table th.data-table__drop-after::after { content: ''; position: absolute; top: 5px; bottom: 5px; width: 3px; background: var(--accent); border-radius: 3px; }
.data-table th.data-table__drop-before::before { left: 0; }
.data-table th.data-table__drop-after::after { right: 0; }
.data-table__dragging { opacity: .45; background: var(--surface-2); }
.data-table__clickable { cursor: pointer; }
@media(max-width: 700px) { .data-table__tools > .muted { display: none; } .data-table__tools { justify-content: flex-end; } }
