/* Keep table overflow in its own region, including cards inside flex/grid layouts. */
.main,.panel,.card,.dash-grid,.dash-main,.dash-side{min-width:0}
.tl-scroll{width:100%;max-width:100%;min-width:0;overflow:auto;overscroll-behavior-x:contain}
.tl-scroll table.tl-table{table-layout:fixed;min-width:0;max-width:none;border-collapse:collapse}
.tl-table th,.tl-table td{overflow-wrap:anywhere;white-space:normal;box-sizing:border-box;min-width:0!important}
.tl-table td input,.tl-table td select{max-width:100%;box-sizing:border-box}
.tl-table .tl-hidden{display:none!important}
.tl-table .tl-heading{position:relative;padding-right:24px!important}
.tl-scroll .tl-table thead .tl-heading{position:sticky;top:0}
.tl-scroll .tl-table th.ops,.tl-scroll .tl-table td.ops{position:sticky;right:0}
.tl-resize{position:absolute;right:0;top:0;bottom:0;width:8px;cursor:col-resize;touch-action:none;user-select:none;z-index:4}
.tl-resize::after{content:'';position:absolute;right:0;top:8px;bottom:8px;border-right:1px solid var(--line)}
.tl-resize:hover::after,.tl-resize:focus-visible::after,.tl-resize.tl-dragging::after{border-right:4px solid var(--primary)}
.tl-resize:focus-visible,.tl-tools summary:focus-visible,.tl-scroll:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}
.tl-tools{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px;margin:8px 0;font-size:14px;min-width:0}
.tl-tools details{min-width:0;max-width:100%}
.tl-tools summary{cursor:pointer;padding:8px 16px;border:1px solid var(--line);border-radius:8px;font-weight:600;line-height:1.5}
.tl-tools .btn{font-size:14px;padding:8px 16px}
.tl-options{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:8px;padding:16px;margin-top:8px;max-height:320px;overflow:auto}
.tl-options label{display:flex;align-items:center;gap:8px;font-size:14px;overflow-wrap:anywhere;cursor:pointer}
.tl-options input{width:16px;height:16px;flex:none;margin:0}
.tl-note{font-size:14px;padding:8px 0}
@media(max-width:680px){
 .tl-tools summary,.tl-tools .btn,.tl-options label{min-height:48px;box-sizing:border-box;display:flex;align-items:center}
 .tl-options input{width:24px;height:24px}
 .tl-resize{width:16px}
 .tl-note{flex-basis:100%;padding:0}
 .tl-table td input,.tl-table td select{font-size:16px}
}
