/* Shared table workspace, intentionally scoped to real report tables. */
.tt-workspace{min-width:0;max-width:100%;position:relative}
.tt-scroll{max-width:100%;min-width:0;overflow:auto!important;scrollbar-width:auto;scrollbar-color:var(--muted,#777) var(--surface,#18161a);overscroll-behavior:contain;touch-action:pan-x pan-y;scrollbar-gutter:stable}
.tt-scroll::-webkit-scrollbar{width:12px;height:12px}
.tt-scroll::-webkit-scrollbar-track{background:var(--surface,#18161a)}
.tt-scroll::-webkit-scrollbar-thumb{background:var(--muted,#777);border:3px solid var(--surface,#18161a);border-radius:8px}
.tt-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid var(--border,rgba(128,128,128,.25));font-size:12px}
.tp-head>.tt-tools{border-bottom:0;padding:0;margin-left:auto}
.tt-select{max-width:160px;min-height:32px;border:1px solid var(--border,#666);border-radius:8px;padding:4px 8px;background:var(--surface,#18161a);color:var(--text,#eee);font:inherit}
.tt-highlight{position:relative}.tt-highlight summary{cursor:pointer;list-style:none}.tt-highlight summary::-webkit-details-marker{display:none}
.tt-highlight-menu{position:absolute;right:0;top:calc(100% + 6px);width:230px;max-height:340px;overflow:auto;z-index:45;display:grid;gap:8px;padding:12px;background:var(--surface,#18161a);color:var(--text,#eee);border:1px solid var(--border,#666);border-radius:12px;box-shadow:0 8px 24px #0003}
.tt-column-choice{display:flex;align-items:center;gap:8px;min-height:30px;font-size:13px}.tt-column-choice input{accent-color:#527dca}
.tt-table th.tt-resizable{position:relative;padding-right:19px!important}.tt-table th.sticky,.tt-table.sc-t thead th.tt-resizable{position:sticky}
.tt-resize{position:absolute;right:0;top:4px;bottom:4px;width:12px;cursor:col-resize;touch-action:none;z-index:8;border-right:2px solid transparent}
.tt-resize:hover,.tt-resize:focus-visible,.tt-resize.tt-dragging{border-right-color:#7193d6;background:#7193d622;outline:0}
.tt-table .tt-emphasis-blue{background:color-mix(in srgb,var(--surface,#18161a) 83%,#527dca)!important}
.tt-table .tt-emphasis-amber{background:color-mix(in srgb,var(--surface,#18161a) 83%,#b98a36)!important}
.tt-table .tt-emphasis-green{background:color-mix(in srgb,var(--surface,#18161a) 83%,#40866d)!important}
.tt-fullscreen-open{overflow:hidden!important}
.tt-workspace.tt-fullscreen{position:fixed!important;inset:12px!important;z-index:1000!important;width:auto!important;height:auto!important;margin:0!important;transform:none!important;display:flex!important;flex-direction:column;background:var(--surface,#18161a);color:var(--text,#eee);border:1px solid var(--border,#666);border-radius:12px;padding:0;box-shadow:0 0 0 20px #0009}
.tt-fullscreen .tt-scroll{flex:1;max-height:none!important;min-height:0}.tt-fullscreen .sc-table-body{flex:1;display:flex;min-height:0;overflow:hidden}.tt-fullscreen .tp-head{flex-wrap:wrap;flex-shrink:0}.tt-fullscreen .sc-scroll{width:100%;max-height:none!important}.tt-fullscreen .sc-phone{display:none!important}
@media(max-width:767px){.tt-tools{gap:6px;padding:8px}.tt-tools .tool-btn,.tt-select{font-size:12px;min-height:36px}.tp-head>.tt-tools{width:100%;margin:0}.tt-fullscreen{inset:4px!important}.sc-table-body:has(.tt-scroll){min-width:0}.tt-workspace[data-table-view=wide] .sc-scroll,.tt-workspace.tt-fullscreen .sc-scroll{display:block!important}.tt-workspace[data-table-view=wide] .sc-phone{display:none!important}.tt-highlight-menu{right:auto;left:0;width:210px}}

.tt-pan{display:flex;align-items:center;gap:4px;min-width:170px;flex:1;max-width:300px}.tt-pan[hidden]{display:none}.tt-pan .tool-btn{padding:0 10px;min-height:30px;font-size:20px}.tt-pan-range{min-width:80px;width:100%;accent-color:#7193d6;cursor:ew-resize}
.tt-workspace.tt-fullscreen:popover-open{position:fixed!important;inset:12px!important;margin:0!important;overflow:clip!important;max-width:none!important;max-height:none!important}.tt-workspace.tt-fullscreen::backdrop{background:#0009}
@media(max-width:767px){.tt-workspace[data-table-view=fit]:not(.tt-fullscreen) .sc-scroll{display:none!important}.tt-workspace[data-table-view=table] .sc-scroll,.tt-workspace[data-table-view=compact] .sc-scroll{display:block!important}.tt-workspace[data-table-view=table] .sc-phone,.tt-workspace[data-table-view=compact] .sc-phone{display:none!important}.tt-workspace:not([data-table-view=fit]) .tt-table,.tt-fullscreen .tt-table{display:table!important}.tt-workspace:not([data-table-view=fit]) .tt-table thead,.tt-fullscreen .tt-table thead{display:table-header-group!important}.tt-workspace:not([data-table-view=fit]) .tt-table tbody,.tt-fullscreen .tt-table tbody{display:table-row-group!important}.tt-workspace:not([data-table-view=fit]) .tt-table tfoot,.tt-fullscreen .tt-table tfoot{display:table-footer-group!important}.tt-workspace:not([data-table-view=fit]) .tt-table tr,.tt-fullscreen .tt-table tr{display:table-row!important}.tt-workspace:not([data-table-view=fit]) .tt-table td,.tt-workspace:not([data-table-view=fit]) .tt-table th,.tt-fullscreen .tt-table td,.tt-fullscreen .tt-table th{display:table-cell!important;grid-column:auto!important}.tt-workspace:not([data-table-view=fit]) .tt-table td::before,.tt-fullscreen .tt-table td::before{display:none!important}.tt-workspace:not([data-table-view=fit]) .tt-table td,.tt-fullscreen .tt-table td{text-align:inherit}.tt-workspace:not([data-table-view=fit]) .tt-table .num,.tt-workspace:not([data-table-view=fit]) .tt-table .n{ text-align:right!important }}
/* Narrow table workspace pins only Screen so Film cannot cover all available width. */
@media(max-width:767px){.tt-workspace .tt-table .s2{position:static!important;left:auto!important}.tt-workspace .tt-table .s1[colspan]{position:static!important;left:auto!important}.tt-workspace .tt-table .s1:not([colspan]){position:sticky!important;left:0!important}}

.tt-workspace.tt-fullscreen{overflow:clip!important}.tt-workspace.tt-fullscreen>*{min-width:0!important;max-width:100%!important}.tt-fullscreen .tp-head,.tt-fullscreen .sc-table-body{width:100%!important;box-sizing:border-box}.tt-fullscreen .tt-tools{min-width:0!important;max-width:100%!important}.tt-fullscreen .sc-scroll{min-width:0!important;max-width:100%!important}

/* Separate workspace controls from report filters: never share a flex row. */
.tp-panel.tt-workspace>.tp-head{flex-wrap:wrap;min-width:0;align-items:center}
.tp-panel.tt-workspace>.tp-head>.tp-title{flex:1 1 220px;min-width:0}
.tp-panel.tt-workspace>.tp-head>.tp-tools{flex:1 1 620px;width:auto;max-width:100%;margin-left:0}
.tp-panel.tt-workspace .tp-tools .sc-tools{flex-wrap:wrap;justify-content:flex-end;width:100%;height:auto}
.tp-panel.tt-workspace>.tt-tools{position:relative;flex:none;width:100%;box-sizing:border-box;min-height:48px;padding:8px 12px;border-top:1px solid var(--border);background:var(--surface);z-index:9}
.tt-tools>*{flex-shrink:0}.tt-pan{flex:1 1 170px;min-width:140px}.tt-pan .tool-btn{flex:0 0 32px;width:32px;max-width:32px;overflow:hidden;font-family:system-ui,sans-serif}.tt-pan-range{min-width:0}
@media(max-width:767px){.tp-panel.tt-workspace>.tp-head>.tp-title{flex-basis:100%}.tp-panel.tt-workspace>.tp-head>.tp-tools{flex-basis:100%}.tp-panel.tt-workspace .tp-tools .sc-tools{justify-content:flex-start}.tt-tools{gap:6px}.tt-tools .tt-pan{flex-basis:100%;max-width:none}.tt-select{max-width:150px}}

.tp-panel.tt-workspace>.tp-head>.tp-title{flex:0 0 100%}.tp-panel.tt-workspace>.tp-head>.tp-tools{flex:0 0 100%}.tp-panel.tt-workspace .tp-tools .sc-tools{justify-content:flex-start}

/* Phone headers stay vertically pinned; only Screen is pinned horizontally. */
@media(max-width:767px){.tt-workspace .sc-t thead .gband{display:none!important}.tt-workspace .sc-t thead tr:last-child th{position:sticky!important;top:0!important}.tt-workspace .sc-t th.s2{position:sticky!important;left:auto!important}.tt-workspace .sc-t td.s2{position:static!important;left:auto!important}}

/* A quiet pan control stays at the top-right of each table toolbar. */
.tt-tools{position:relative;padding-right:196px;min-height:48px}
.tp-panel.tt-workspace>.tt-tools{padding-right:196px}
.tt-tools .tt-pan{position:absolute;right:12px;top:10px;width:168px;min-width:0;max-width:168px;flex:none;gap:8px}
.tt-pan .tool-btn{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0;padding:0;width:24px;min-height:28px;flex:0 0 24px;color:var(--text);font-size:20px}
.tt-pan .tool-btn:disabled{opacity:.3}
.tt-pan .tool-btn:focus-visible{outline:2px solid var(--focus-ring,var(--accent-text));outline-offset:2px;border-radius:4px}
.tt-pan-range{appearance:none;-webkit-appearance:none;height:2px;width:100%;background:var(--border-strong);border:0;border-radius:1px;padding:0;cursor:pointer}
.tt-pan-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:50%;background:var(--accent-text);border:0;box-shadow:none}
.tt-pan-range::-moz-range-thumb{width:10px;height:10px;border-radius:50%;background:var(--accent-text);border:0;box-shadow:none}
.tt-pan-range::-moz-range-track{height:2px;background:var(--border-strong);border:0}
.tt-scroll::-webkit-scrollbar{height:0;width:10px}
@media(max-width:767px){.tt-tools,.tp-panel.tt-workspace>.tt-tools{padding:44px 8px 8px}.tt-tools .tt-pan{top:8px;right:8px;flex-basis:auto;width:156px;max-width:156px}.tt-tools:has(.tt-pan[hidden]){padding-top:8px}}
