/* One full-window workspace for data tables. Modal layers remain above it. */
.sheet-open .sheet-shell{position:fixed;inset:3px;width:auto;height:auto;min-height:0;margin:0;padding:0;display:flex;z-index:30;overflow:visible}
.table-workspace{position:fixed;inset:3px;width:auto;height:auto;max-width:none;min-height:0;margin:0;border:1px solid #182239;border-radius:3px;box-shadow:none;overflow:hidden;display:flex;flex-direction:column;background:#fff;color:#243344;color-scheme:light;z-index:30}
.sheet-open .table-workspace{position:relative;inset:auto;width:100%;height:100%}
.table-workspace-titlebar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:5px 12px;flex-shrink:0;border-bottom:1px solid #dce4ed;background:#fff}
.table-workspace-heading{display:flex;align-items:center;gap:9px;min-width:0;flex:1}
.table-workspace-heading h1{font-size:16px;font-weight:650;line-height:1.3;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#203c55}
.table-workspace-heading img{flex-shrink:0}
.table-workspace-meta{font-size:11px;color:#60748a;white-space:nowrap}
.table-workspace-titlebar>.actions{gap:7px;flex-shrink:0}
.table-workspace-toolbar{display:flex;align-items:center;gap:8px;min-height:42px;padding:5px 12px;flex-wrap:wrap;flex-shrink:0;border-bottom:1px solid #dce4ed;background:#fafcfe}
.table-workspace-toolbar .actions,.table-workspace-toolbar .sheet-view-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.table-workspace-toolbar .table-workspace-actions{margin-left:auto}
.table-workspace-toolbar input:not([type=checkbox]),.table-workspace-toolbar select{width:auto;max-width:220px;height:30px;min-height:30px;margin:0;padding:5px 9px;font-size:12px;border:1px solid #cbd6e3;border-radius:5px;background:#fff;color:#29445d}
.table-workspace-toolbar #studio-search{width:220px}.table-workspace-toolbar #studio-review{max-width:155px}
.table-workspace .button,.table-workspace summary.button{font-size:12px;font-weight:550;line-height:18px;min-height:30px;padding:5px 9px;border-radius:5px;border:1px solid #d2dce7;background:#fff;color:#2e4e69;box-shadow:none;white-space:nowrap}
.table-workspace .button.text{border-color:transparent;background:transparent;color:#365b7b}
.table-workspace .button:hover:not(:disabled),.table-workspace summary.button:hover{background:#edf4fb;border-color:#a9bfd6;color:#173c60}
.table-workspace .button:focus-visible,.table-workspace summary.button:focus-visible{outline:2px solid #1769d1;outline-offset:2px}
.table-workspace .button[aria-pressed=true]{background:#e8f2ff;border-color:#83afe0;color:#1155a0}
.table-workspace .table-workspace-toolbar .button.primary,.table-workspace .table-workspace-titlebar .button.primary,.table-workspace summary.button.primary{background:var(--accent,#41b9f5);border-color:var(--accent,#41b9f5);color:var(--accent-ink,#07132c)}
.table-workspace .table-workspace-toolbar .button.primary:hover:not(:disabled),.table-workspace .table-workspace-titlebar .button.primary:hover:not(:disabled),.table-workspace summary.button.primary:hover{background:var(--accent-hover,#24a9ee);border-color:var(--accent-hover,#24a9ee);color:var(--accent-ink,#07132c)}
.table-workspace .button:disabled{opacity:.5;cursor:default}
.table-workspace .table-workspace-alert{background:#fff7e4;border-color:#e5c88b;color:#795314}
.table-workspace .table-workspace-alert:hover:not(:disabled){background:#ffedc5;color:#63400a;border-color:#d2ad60}
.table-workspace-menu{position:relative;flex-shrink:0}
.table-workspace-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center}
.table-workspace-menu>summary::-webkit-details-marker{display:none}
.table-workspace-popover{position:absolute;top:calc(100% + 5px);right:0;min-width:230px;max-width:min(440px,calc(100vw - 20px));max-height:65dvh;overflow:auto;background:#fff;color:#29445d;border:1px solid #cbd7e4;border-radius:7px;padding:5px;box-shadow:0 8px 24px #17294424;z-index:12}
.table-workspace-popover .button{display:block;width:100%;height:auto;min-height:32px;text-align:left;white-space:normal;border:0;background:#fff}
.table-workspace-popover .button[aria-current=page]{background:#e8f2ff;color:#1155a0}
.table-workspace-heading .table-workspace-popover{left:0;right:auto;min-width:280px}
.table-workspace-toolbar .actions:not(.table-workspace-actions) .table-workspace-popover{left:0;right:auto}
.table-workspace-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.table-workspace .table-workspace-body>.analysis-grid,.table-workspace .table-workspace-body>.studio-table-wrap,.table-workspace .studio-table-wrap:has(.studio-review-table){flex:1 1 0;min-height:0;max-height:none;margin:0;overflow:auto;scroll-padding-top:44px}
.table-workspace-status{flex-shrink:0;min-height:0}
.table-workspace-status:empty{display:none}
.table-workspace-status .sheet-selection,.table-workspace-status .notice{margin:0;padding:5px 12px;min-height:32px;border-radius:0;font-size:12px;color:#29445d;background:#edf5ff;border:0;border-bottom:1px solid #dce4ed}
.table-workspace-status .notice.warning{background:#fff7e4;color:#795314}
.table-workspace-status .sheet-selection .button{min-height:28px;padding:3px 8px}
.table-workspace .studio-review-table th{height:44px;padding:7px 10px;line-height:1.2}
.table-workspace .studio-review-table .button.studio-cell{height:38px;min-height:38px;padding:7px 10px!important;line-height:24px;border:0;border-radius:0;white-space:nowrap;color:#1769bd;font-weight:400}
.table-workspace .studio-table-wrapped .button.studio-cell{height:auto;min-height:70px;padding:12px!important;white-space:normal;line-height:1.65}
.table-workspace .studio-review-table .studio-cell.stale{background:#fff9ec;color:#805b14}
.table-workspace .studio-review-table .studio-cell-error{background:#fff4f4;color:#923b40}
.table-workspace .studio-review-table .studio-cell:hover:not(:disabled){background:#eff6ff;color:#1769bd}
.table-workspace .studio-col-type{margin-bottom:4px}
.table-workspace-footer,.table-workspace .table-footer{flex-shrink:0;min-height:36px;padding:4px 10px;gap:5px 10px;border-top:1px solid #dce4ed;background:#fafcfe;color:#60748a;font-size:11px}
.table-workspace-footer{display:flex;align-items:center;justify-content:space-between}
.table-workspace-footer-start{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.table-workspace-footer .actions{gap:6px;white-space:nowrap;flex-shrink:0}
.table-workspace-footer .ai-run-status{display:flex;align-items:center;gap:8px;margin:0;padding:0;min-height:0;border:0;background:transparent;color:#536d84;min-width:0;font-size:11px}
.table-workspace-footer .ai-run-status>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:48vw}
.table-workspace-footer .ai-run-status .button{flex-shrink:0;min-height:26px;padding:3px 7px}
.table-workspace .table-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.table-workspace .table-footer>.ai-run-footer{grid-column:1;grid-row:1;display:flex;align-items:center;gap:8px;min-width:0;min-height:28px;padding:0;margin:0;border:0;background:transparent;color:#536d84;font-size:11px}
.table-workspace .table-footer>.ai-run-footer>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.table-workspace .table-footer>.ai-run-footer .actions{flex-shrink:0;gap:5px}
.table-workspace .table-footer>.ai-run-footer .button{padding:3px 6px;min-height:26px;font-size:11px}
.table-workspace .table-footer>span{display:none}
.table-workspace .table-pagination{grid-column:2;grid-row:1;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.table-workspace .table-pagination select{color-scheme:light;background:#fff;color:#29445d;border-color:#cbd6e3}
.table-workspace .table-scroll-dock{grid-column:1/-1;grid-row:2;margin:0}
.table-workspace .table-page-size{font-size:11px;white-space:nowrap}
.table-workspace-drawer{display:flex!important;align-items:stretch!important;justify-content:flex-end!important;padding:0!important;background:#10283a44!important}
.table-workspace-drawer .modal{width:min(620px,100vw);max-width:620px;height:100dvh;max-height:100dvh;border-radius:0;padding:24px;overflow:auto;background:#fff;color:#243344;color-scheme:light}
.table-workspace-drawer .modal h2{color:#203c55;font-size:21px}
.table-workspace-drawer .modal h3{color:#294d6c;font-size:15px;margin:22px 0 10px}
.table-workspace-drawer .subtext,.table-workspace-drawer .status-note{color:#60748a}
.table-workspace-drawer .button{background:#f1f5fa;border-color:#ccd9e6;color:#294d6c}
.table-workspace-drawer .button:hover:not(:disabled){background:#e5effa;color:#173c60}
.table-workspace-drawer .button.primary{background:var(--accent,#41b9f5);border-color:var(--accent,#41b9f5);color:var(--accent-ink,#07132c)}
.table-workspace-drawer .list-purpose-summary,.table-workspace-drawer .sheet-selection,.table-workspace-drawer .tip,.table-workspace-drawer .studio-supporting,.table-workspace-drawer .card{margin:12px 0;background:#f7fafd;border-color:#dce4ed;color:#36536c}
.table-workspace-drawer .list-purpose-summary p,.table-workspace-drawer .list-purpose-summary small,.table-workspace-drawer .ai-run-status{color:#536d84}
.table-workspace-drawer .studio-sequence{flex-direction:column;align-items:stretch;padding:12px 0;gap:9px;min-height:0}
.table-workspace-drawer .studio-step{width:100%;min-width:0}
.table-workspace-drawer .studio-step small{color:#60748a}
.table-workspace-drawer .studio-sequence-arrow{display:none}
.table-workspace-drawer .studio-footnote{margin:14px 0;color:#60748a}
@media(max-width:900px){.table-workspace-meta{display:none}.table-workspace-toolbar .table-workspace-actions{margin-left:auto}.table-workspace .table-footer{grid-template-columns:1fr}.table-workspace .table-pagination{grid-column:1;grid-row:2}.table-workspace .table-scroll-dock{grid-row:3}}
@media(max-width:600px){.sheet-open .sheet-shell{inset:2px}.table-workspace-titlebar{padding:5px 8px;gap:5px;flex-wrap:wrap}.table-workspace-heading{flex-basis:100%}.table-workspace-heading h1{font-size:14px}.table-workspace-titlebar>.actions{margin-left:auto}.table-workspace-toolbar{padding:5px 8px;gap:5px}.table-workspace-toolbar #studio-search{width:150px}.table-workspace-toolbar #studio-review{max-width:150px}.table-workspace-toolbar .table-workspace-actions{flex-wrap:wrap}.table-workspace-footer{flex-wrap:wrap}.table-workspace-footer .ai-run-status>span{max-width:55vw}.table-workspace-footer>.actions{margin-left:auto}.table-workspace-heading .table-workspace-popover{left:auto;right:0;min-width:250px;max-width:calc(100vw - 22px)}}
