@altertable/data-app-react 0.75.0 → 0.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{SectionHeading-CLvnHe1C.js → SectionHeading-Bz5RIXit.js} +767 -1152
- package/dist/chunks/SectionHeading-Bz5RIXit.js.map +1 -0
- package/dist/index.js +174 -37
- package/dist/index.js.map +1 -1
- package/dist/types/chunks/DateTimeRangePicker.d.ts +127 -122
- package/dist/types/index.d.ts +179 -217
- package/dist/types/ui/index.d.ts +70 -54
- package/dist/ui/index.js +921 -187
- package/dist/ui/index.js.map +1 -1
- package/package.json +13 -5
- package/dist/chunks/SectionHeading-CLvnHe1C.js.map +0 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { DataAppError, appDiagnostics, createAnnotationClient, getDataAppNavigation, getDataAppTransport } from "@altertable/data-app/client";
|
|
2
2
|
import { dataAppTitle } from "@altertable/data-app/config";
|
|
3
|
-
import { KEY_SEPARATOR,
|
|
3
|
+
import { KEY_SEPARATOR, combineOperationFilters, dateFilterName, dateTimeRangeFilter, dateTimeRangePresets, defineAppFilters, dimensionMemberKey, dimensionSource, displayedSnapshot, downloadBlob, facetSource, fixedUnitMilliseconds, invariant, isDataAppPresentation, localFrameBridge, numberOperatorLabels, randomUuid, resolveDataView, resolveFilterInput, validateChoiceOptions } from "@altertable/data-app/internal";
|
|
4
4
|
import { QueryClient, QueryClientProvider, hashKey, useQueries, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
5
5
|
import { Children, Component, Fragment, cloneElement, createContext, createElement, isValidElement, useCallback, useContext, useEffect, useEffectEvent, useId, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
6
|
-
import { Button, CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell,
|
|
6
|
+
import { Button, CalendarCell, CalendarGrid, CalendarGridBody, CalendarGridHeader, CalendarHeaderCell, Dialog, DialogTrigger, Group, I18nProvider, Input, Label, ListBox, ListBoxItem, Menu, MenuItem, MenuSection, MenuTrigger, NumberField, Popover, RangeCalendar, RangeCalendarStateContext, RootMenuTriggerStateContext, Select, SelectValue, Separator } from "react-aria-components";
|
|
7
7
|
import { createRoot } from "react-dom/client";
|
|
8
8
|
import { FloatingDelayGroup, FloatingFocusManager, FloatingPortal, autoUpdate, flip, offset, safePolygon, shift, size, useClick, useDelayGroup, useDismiss, useFloating, useHover, useInteractions, useMergeRefs, useRole } from "@floating-ui/react";
|
|
9
9
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
10
10
|
import { ArrowDownRight, ArrowLeft, ArrowRight, ArrowUp, ArrowUpRight, BookOpenText, CalendarDays, Check, ChevronDown, ChevronLeft, ChevronRight, CircleAlert, Clock3, Copy, Download, Ellipsis, FileCode2, FilterX, Info, ListFilter, LoaderCircle, Minus, Moon, Presentation, Radio as Radio$1, RotateCw, Search, SlidersHorizontal, Square, SquareDashedMousePointer, Sun, TextWrap, Workflow, X } from "lucide-react";
|
|
11
11
|
import { Tab, TabList, TabPanel, TabPanels, Tabs } from "react-aria-components/Tabs";
|
|
12
|
-
import { MessageRoutingError, defineQueryNames, formatDateTimeBound, formatDateTimeRange, parseDateTimeBound, parseDateTimeRange, parseFacetOptions, resolveDateTimeRange, serializeDateTimeRange } from "@altertable/data-app/contract";
|
|
13
12
|
import { formatCount, formatDate, formatDateRange, formatDateTime, formatMetric, parseDateTime, parseDateTimeRangeInput, pluralize } from "@altertable/data-app/format";
|
|
14
|
-
import {
|
|
13
|
+
import { MessageRoutingError, defineQueryNames, formatDateTimeBound, formatDateTimeRange, parseDateTimeBound, parseDateTimeRange, parseFacetOptions, resolveDateTimeRange, serializeDateTimeRange } from "@altertable/data-app/contract";
|
|
15
14
|
import fuzzysort from "fuzzysort";
|
|
15
|
+
import { parseDate, today } from "@internationalized/date";
|
|
16
16
|
import { createPortal } from "react-dom";
|
|
17
17
|
import { toCanvas } from "html-to-image";
|
|
18
18
|
import { strToU8, zipSync } from "fflate";
|
|
@@ -37,7 +37,7 @@ function injectDataAppStyles(options = {}) {
|
|
|
37
37
|
return injectStyles({
|
|
38
38
|
name: "injectDataAppStyles",
|
|
39
39
|
attribute: "data-altertable-styles",
|
|
40
|
-
css: "/* packages/data-app-react/src/tokens.css */\n@layer atbl.tokens {\n :root {\n --atbl-background: var(--atbl-palette-background);\n --atbl-surface: var(--atbl-palette-surface);\n --atbl-subtle: var(--atbl-palette-subtle);\n --atbl-backdrop: #0f171e38;\n --atbl-text: var(--atbl-palette-text);\n --atbl-muted: var(--atbl-palette-muted);\n --atbl-border: var(--atbl-palette-border);\n --atbl-accent: var(--atbl-palette-accent);\n --atbl-on-accent: var(--atbl-palette-on-accent);\n --atbl-positive: var(--atbl-palette-positive);\n --atbl-danger: var(--atbl-palette-danger);\n --atbl-code-surface: #f4f6f9;\n --atbl-code-text: #273242;\n --atbl-mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n --atbl-focus-ring-offset: 2px;\n --atbl-focus-ring-inset: -1px;\n --atbl-font: var(--atbl-input-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, ui-sans-serif, sans-serif);\n --atbl-space-xs: 5px;\n --atbl-space-sm: 10px;\n --atbl-space-md: 16px;\n --atbl-space-lg: 24px;\n --atbl-space-xl: 32px;\n --atbl-content-width: 1920px;\n --atbl-control-height: 2.375rem;\n --atbl-control-compact-height: 1.875rem;\n --atbl-control-icon-size: 1rem;\n --atbl-control-padding-inline: .75rem;\n --atbl-control-padding-block: .375rem;\n --atbl-control-gap: .5rem;\n --atbl-control-disabled-opacity: .5;\n --atbl-dropdown-padding: calc(var(--atbl-control-padding-block) * 2 / 3);\n --atbl-dropdown-item-padding-block: var(--atbl-control-padding-block);\n --atbl-dropdown-item-padding-inline: calc(var(--atbl-control-padding-inline) * 3 / 4);\n --atbl-dropdown-item-gap: 2px;\n --atbl-radius-control: 7px;\n --atbl-radius-surface: 12px;\n --atbl-radius-overlay: 16px;\n --atbl-shadow-surface: 0 3px 16px #141c280d;\n --atbl-shadow-overlay: 0 18px 50px #00000029;\n --atbl-shadow-control: 0 1px 3px #0000001a;\n --atbl-cursor-action: pointer;\n --atbl-cursor-disabled: default;\n --atbl-cursor-help: help;\n --atbl-cursor-busy: progress;\n --atbl-duration-fast: .12s;\n --atbl-duration-normal: .18s;\n --atbl-duration-slow: .24s;\n --atbl-ease-standard: ease;\n --atbl-ease-enter: cubic-bezier(.2, .7, .2, 1);\n --atbl-chart-1: color-mix(in srgb, var(--atbl-input-chart-1, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-2: color-mix(in srgb, var(--atbl-input-chart-2, #a95319) var(--atbl-chart-strength), white);\n --atbl-chart-3: color-mix(in srgb, var(--atbl-input-chart-3, #147862) var(--atbl-chart-strength), white);\n --atbl-chart-4: color-mix(in srgb, var(--atbl-input-chart-4, #7243aa) var(--atbl-chart-strength), white);\n --atbl-chart-5: color-mix(in srgb, var(--atbl-input-chart-5, #aa3958) var(--atbl-chart-strength), white);\n --atbl-chart-6: color-mix(in srgb, var(--atbl-input-chart-6, #475569) var(--atbl-chart-strength), white);\n --atbl-chart-7: color-mix(in srgb, var(--atbl-input-chart-7, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-8: color-mix(in srgb, var(--atbl-input-chart-8, #a95319) var(--atbl-chart-strength), white);\n --atbl-type-emphasis-weight: 680;\n --atbl-type-meta-weight: 500;\n --atbl-type-page-size: clamp(1.375rem, 2.4vw, 1.75rem);\n --atbl-type-section-size: 1.25rem;\n --atbl-type-widget-size: var(--atbl-type-label-size);\n --atbl-type-body-size: .875rem;\n --atbl-type-label-size: .8125rem;\n --atbl-type-meta-size: .75rem;\n --atbl-type-metric-size: clamp(1.625rem, 3vw, 2.125rem);\n --atbl-type-heading-weight: 650;\n --atbl-type-label-weight: 600;\n --atbl-type-body-leading: 1.65;\n --atbl-type-label-leading: 1.4;\n --atbl-type-heading-leading: 1.3;\n --atbl-type-metric-leading: 1.08;\n --atbl-text-measure: 70ch;\n }\n}\n\n/* packages/data-app-react/src/appearance.css */\n@layer atbl.tokens {\n :root {\n --atbl-palette-background: #fff;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f6f7f7;\n --atbl-palette-text: #202124;\n --atbl-palette-muted: #687078;\n --atbl-palette-border: #e3e6e8;\n --atbl-palette-accent: var(--atbl-input-accent, var(--atbl-text));\n --atbl-palette-on-accent: var(--atbl-input-on-accent, #fff);\n --atbl-palette-positive: #147862;\n --atbl-palette-danger: #b42318;\n --atbl-chart-strength: 100%;\n --atbl-accent-subtle-strength: 12%;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #151719;\n --atbl-palette-surface: #202326;\n --atbl-palette-subtle: #292d31;\n --atbl-palette-text: #f2f3f4;\n --atbl-palette-muted: #aeb5bc;\n --atbl-palette-border: #3b4248;\n }\n\n :root[data-atbl-base-color=\"slate\"] {\n --atbl-palette-background: #f8fafc;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f1f5f9;\n --atbl-palette-text: #17212f;\n --atbl-palette-muted: #607083;\n --atbl-palette-border: #dce3ea;\n }\n\n :root[data-atbl-base-color=\"slate\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #111820;\n --atbl-palette-surface: #1b2530;\n --atbl-palette-subtle: #263340;\n --atbl-palette-text: #f0f4f8;\n --atbl-palette-muted: #a8b5c3;\n --atbl-palette-border: #3a4857;\n }\n\n :root[data-atbl-base-color=\"warm\"] {\n --atbl-palette-background: #fbfaf8;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f5f2ed;\n --atbl-palette-text: #292723;\n --atbl-palette-muted: #736e66;\n --atbl-palette-border: #e8e2da;\n }\n\n :root[data-atbl-base-color=\"warm\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #1b1916;\n --atbl-palette-surface: #25221e;\n --atbl-palette-subtle: #302c27;\n --atbl-palette-text: #f5f1eb;\n --atbl-palette-muted: #bcb3a8;\n --atbl-palette-border: #494239;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-accent: var(--atbl-input-dark-accent, var(--atbl-text));\n --atbl-accent-subtle-strength: 22%;\n --atbl-palette-on-accent: var(--atbl-input-on-accent, var(--atbl-background));\n --atbl-palette-positive: #6bc39a;\n --atbl-palette-danger: #f97066;\n --atbl-backdrop: #0000008c;\n --atbl-code-surface: #242a31;\n --atbl-code-text: #e5e9ef;\n --atbl-chart-strength: 60%;\n }\n\n :root[data-atbl-density=\"compact\"] {\n --atbl-control-height: 2.125rem;\n --atbl-control-compact-height: 1.625rem;\n --atbl-control-gap: .375rem;\n --atbl-control-padding-inline: .625rem;\n --atbl-control-padding-block: .25rem;\n --atbl-space-xs: 4px;\n --atbl-space-sm: 8px;\n --atbl-space-md: 12px;\n --atbl-space-lg: 18px;\n --atbl-space-xl: 24px;\n }\n\n :root[data-atbl-density=\"spacious\"] {\n --atbl-control-height: 2.625rem;\n --atbl-control-compact-height: 2.125rem;\n --atbl-control-gap: .625rem;\n --atbl-control-padding-inline: 1rem;\n --atbl-control-padding-block: .5rem;\n --atbl-space-xs: 6px;\n --atbl-space-sm: 12px;\n --atbl-space-md: 20px;\n --atbl-space-lg: 30px;\n --atbl-space-xl: 40px;\n }\n\n :root[data-atbl-radius=\"none\"] {\n --atbl-radius-control: 0px;\n --atbl-radius-surface: 0px;\n --atbl-radius-overlay: 0px;\n }\n\n :root[data-atbl-radius=\"small\"] {\n --atbl-radius-control: 4px;\n --atbl-radius-surface: 7px;\n --atbl-radius-overlay: 9px;\n }\n\n :root[data-atbl-radius=\"large\"] {\n --atbl-radius-control: 10px;\n --atbl-radius-surface: 18px;\n --atbl-radius-overlay: 24px;\n }\n\n :root[data-atbl-elevation=\"flat\"] {\n --atbl-shadow-surface: none;\n --atbl-shadow-overlay: none;\n --atbl-shadow-control: none;\n }\n\n :root[data-atbl-elevation=\"raised\"] {\n --atbl-shadow-surface: 0 8px 28px #141c281a;\n --atbl-shadow-overlay: 0 24px 72px #0000003d;\n --atbl-shadow-control: 0 2px 6px #00000029;\n }\n\n @media (forced-colors: active) {\n :root {\n --atbl-focus-color: Highlight !important;\n --atbl-on-accent: HighlightText !important;\n }\n }\n}\n\n/* packages/data-app-react/src/base.css */\n@layer atbl.base {\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"starter-\"], [class*=\" starter-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) button {\n font: inherit;\n }\n\n :root[data-atbl-appearance] {\n scrollbar-gutter: stable;\n font-family: var(--atbl-font);\n color: var(--atbl-text);\n background: var(--atbl-background);\n font-synthesis: none;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] {\n overflow: hidden;\n scrollbar-gutter: auto;\n }\n\n :root {\n --atbl-frame-visible-height: calc(100dvh - var(--atbl-frame-inset-top, 0px) - var(--atbl-frame-inset-bottom, 0px));\n }\n\n :root[data-atbl-theme=\"light\"] {\n --buncss-light: initial;\n --buncss-dark: ;\n color-scheme: light;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --buncss-light: ;\n --buncss-dark: initial;\n color-scheme: dark;\n }\n\n :root[data-atbl-appearance] body, :root[data-atbl-appearance] #root {\n margin: 0;\n }\n\n .altertable-sr-only {\n position: fixed;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Skeleton.css */\n@layer atbl.components {\n .altertable-skeleton {\n display: block;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n opacity: 0;\n animation: altertable-skeleton-in .2s var(--atbl-ease-standard) .2s forwards, altertable-skeleton-pulse 1.4s ease-in-out .4s infinite alternate;\n }\n\n .altertable-skeleton[data-inline] {\n display: inline-block;\n vertical-align: middle;\n width: 8ch;\n height: 1em;\n }\n\n @keyframes altertable-skeleton-in {\n to {\n opacity: 1;\n }\n }\n\n @keyframes altertable-skeleton-pulse {\n to {\n opacity: .5;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-skeleton {\n animation: 1ms .2s forwards altertable-skeleton-in;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Grid.css */\n@layer atbl.components {\n .altertable-grid {\n display: grid;\n container: altertable-grid / inline-size;\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n --atbl-grid-min-item-width: 280px;\n --atbl-grid-column-width: 100%;\n --atbl-grid-max-columns: 1;\n align-content: start;\n align-items: start;\n gap: var(--atbl-grid-gap);\n grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--atbl-grid-min-item-width), var(--atbl-grid-column-width))), 1fr));\n min-width: 0;\n }\n\n .altertable-grid > * {\n min-width: 0;\n min-height: 0;\n margin: 0;\n }\n\n .altertable-grid[data-align=\"stretch\"] {\n align-items: stretch;\n }\n\n .altertable-grid[data-align=\"stretch\"] > .altertable-grid-item {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-grid[data-gap=\"sm\"] {\n --atbl-grid-gap: var(--atbl-space-sm);\n }\n\n .altertable-grid[data-gap=\"md\"] {\n --atbl-grid-gap: var(--atbl-space-md);\n }\n\n .altertable-grid[data-gap=\"lg\"] {\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-grid[data-min-item-width=\"compact\"] {\n --atbl-grid-min-item-width: 224px;\n }\n\n .altertable-grid[data-min-item-width=\"wide\"] {\n --atbl-grid-min-item-width: 360px;\n }\n\n .altertable-grid[data-columns=\"2\"] {\n --atbl-grid-max-columns: 2;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap)) / 2);\n }\n\n .altertable-grid[data-columns=\"3\"] {\n --atbl-grid-max-columns: 3;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 3);\n }\n\n .altertable-grid[data-columns=\"4\"] {\n --atbl-grid-max-columns: 4;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 4);\n }\n\n .altertable-grid-item {\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-grid > * {\n --atbl-grid-fitting-columns: clamp(1, round(down, tan(atan2(100cqw + var(--atbl-grid-gap) + .001px, var(--atbl-grid-min-item-width) + var(--atbl-grid-gap))), 1), var(--atbl-grid-max-columns));\n }\n\n .altertable-grid > .altertable-grid-item[data-span=\"2\"] {\n grid-column: span min(2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:has( > .altertable-grid-item[data-span=\"2\"]) > :not(.altertable-grid-item[data-span=\"2\"]) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:not(:has( > .altertable-grid-item[data-span=\"2\"])) > :last-child:nth-child(odd) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n}\n\n/* packages/data-app-react/src/ui/DataWidget.css */\n@layer atbl.components {\n .altertable-data-widget {\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n min-width: 0;\n }\n\n .altertable-data-widget-header {\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) 0;\n }\n\n .altertable-data-widget-heading-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n min-height: 30px;\n }\n\n .altertable-data-widget-heading-row > .altertable-widget-heading {\n flex: 1;\n min-width: 0;\n }\n\n .altertable-data-widget-help {\n display: flex;\n flex: none;\n align-items: center;\n }\n\n .altertable-data-widget-help:empty {\n display: none;\n }\n\n .altertable-widget-heading {\n color: var(--atbl-muted);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: 0;\n margin: 0;\n }\n\n .altertable-data-widget-count {\n display: inline-flex;\n vertical-align: baseline;\n font-variant-numeric: tabular-nums;\n color: var(--atbl-muted);\n font-size: .85em;\n line-height: 1;\n font-weight: var(--atbl-type-meta-weight);\n letter-spacing: 0;\n white-space: nowrap;\n align-self: center;\n align-items: center;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-data-widget-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-data-widget-body {\n position: relative;\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] {\n padding: 0;\n }\n\n .altertable-data-widget-footer {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-data-widget-body > .altertable-status-panel {\n background: none;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-widget-heading-trigger .altertable-data-widget-count {\n margin-inline-start: 0;\n }\n\n .altertable-widget-boundary {\n display: contents;\n }\n\n :where(.altertable-widget-boundary) > * {\n grid-column: inherit;\n }\n\n .altertable-widget-error {\n box-sizing: border-box;\n display: flex;\n text-align: center;\n color: var(--atbl-muted);\n font-family: var(--atbl-font);\n font-size: var(--atbl-type-meta-size);\n overflow: auto;\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 520px;\n min-height: 140px;\n margin-inline-start: auto;\n margin-inline-end: auto;\n padding: 16px;\n line-height: 1.5;\n }\n\n .altertable-widget-error-copy {\n min-width: 0;\n }\n\n .altertable-widget-error strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-widget-error p {\n margin: 4px 0 0;\n }\n\n .altertable-widget-error-frame {\n display: flex;\n flex-direction: column;\n }\n\n .altertable-widget-error-frame > .altertable-data-widget-body {\n display: grid;\n flex: 1;\n min-height: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/SectionHeading.css */\n@layer atbl.components {\n .altertable-section-heading {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/MetricWidget.css */\n@layer atbl.components {\n .altertable-metric-widget {\n display: flex;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-metric-widget.altertable-data-widget {\n padding: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-header {\n min-height: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body {\n padding-top: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body:has( + footer) {\n padding-bottom: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-footer {\n padding-top: 0;\n padding-bottom: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-metric-value {\n margin: var(--atbl-space-sm) 0 2px;\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-metric-size);\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n font-variant-numeric: tabular-nums;\n max-inline-size: 100%;\n }\n\n .altertable-metric-reading {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n }\n\n .altertable-metric-trend {\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-metric-change {\n display: inline-flex;\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n align-items: center;\n gap: 3px;\n }\n\n .altertable-metric-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-metric-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-metric-description {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n\n .altertable-metric-visual {\n margin-top: var(--atbl-space-sm);\n min-width: 0;\n }\n\n .altertable-metric-value[data-unavailable] {\n opacity: .6;\n }\n\n .altertable-metric-value > .altertable-skeleton {\n width: 6ch;\n height: 1lh;\n }\n}\n\n/* packages/data-app-react/src/ui/VisualizationWidget.css */\n@layer atbl.components {\n .altertable-visualization-widget-content {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n :where(.altertable-data-widget-body) > .altertable-visualization-widget-content {\n padding: 0;\n }\n\n :where(.altertable-data-widget-body > .altertable-widget-boundary) > .altertable-visualization-widget-content {\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ContentSkeleton.css */\n@layer atbl.components {\n .altertable-content-skeleton {\n display: grid;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n align-content: start;\n gap: 14px;\n min-width: 0;\n }\n\n .altertable-content-skeleton-label {\n width: 38%;\n height: 15px;\n }\n\n .altertable-content-skeleton-value {\n width: 56%;\n height: 38px;\n }\n\n .altertable-content-skeleton-chart {\n width: 100%;\n height: 180px;\n }\n\n .altertable-content-skeleton-foot {\n width: 70%;\n height: 12px;\n }\n\n .altertable-content-skeleton-subtitle {\n width: 52%;\n height: 12px;\n }\n\n .altertable-content-skeleton-rows {\n display: grid;\n gap: 18px;\n margin-top: 12px;\n }\n\n .altertable-content-skeleton-row {\n display: grid;\n gap: 8px;\n }\n\n .altertable-content-skeleton-row-label {\n width: 56%;\n height: 14px;\n }\n\n .altertable-content-skeleton-row-track {\n width: 100%;\n height: 8px;\n }\n\n .altertable-content-skeleton-row:nth-child(2) .altertable-content-skeleton-row-track {\n width: 72%;\n }\n\n .altertable-content-skeleton-row:nth-child(3) .altertable-content-skeleton-row-track {\n width: 48%;\n }\n\n .altertable-content-skeleton-row:nth-child(4) .altertable-content-skeleton-row-track {\n width: 30%;\n }\n\n .altertable-content-skeleton-body {\n display: grid;\n gap: 14px;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/shared.css */\n\n\n/* packages/data-app-react/src/ui/DateTimeRangePicker.css */\n@layer atbl.components {\n .altertable-datetime-input {\n display: flex;\n box-sizing: border-box;\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n font: var(--atbl-type-label-weight) var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n cursor: text;\n align-items: center;\n gap: .5rem;\n width: 22rem;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-datetime-input input {\n outline: none;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-datetime-input[data-disabled] {\n opacity: .5;\n }\n\n .altertable-datetime-shortcut {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n text-align: center;\n font-size: var(--atbl-type-meta-size);\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n width: 3.875rem;\n height: 1.5rem;\n padding: .1rem .25rem;\n }\n\n .altertable-datetime-shortcut span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-datetime-shortcut[data-word] {\n text-transform: uppercase;\n padding-inline-start: .0625rem;\n padding-inline-end: .0625rem;\n font-size: .625rem;\n }\n\n .altertable-datetime-popover {\n overflow: visible;\n box-sizing: border-box;\n width: min(22rem, 100vw - 2rem);\n max-width: calc(100vw - 2rem);\n }\n\n .altertable-datetime-presets {\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: .25rem;\n }\n\n .altertable-datetime-presets ~ .altertable-datetime-presets {\n padding-top: 0;\n }\n\n .altertable-datetime-presets:has( ~ .altertable-datetime-presets) {\n padding-bottom: 0;\n }\n\n .altertable-datetime-presets button {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: inherit;\n text-align: left;\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n align-items: center;\n gap: .5rem;\n width: 100%;\n padding: .45rem .5rem;\n }\n\n .altertable-datetime-presets button[data-divider] {\n position: relative;\n margin-top: .8rem;\n }\n\n .altertable-datetime-presets button[data-divider]:before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n inset: -.55rem 0 auto;\n }\n\n .altertable-datetime-presets button small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: .125rem;\n }\n\n .altertable-datetime-presets button[data-highlighted] {\n background: var(--atbl-subtle);\n }\n\n .altertable-datetime-presets button[data-highlighted] .altertable-datetime-shortcut {\n background: var(--atbl-border);\n }\n\n .altertable-datetime-check {\n margin-left: auto;\n }\n\n .altertable-datetime-help {\n position: absolute;\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n width: 16rem;\n padding: 1rem;\n top: 0;\n }\n\n .altertable-datetime-help[data-side=\"left\"] {\n right: calc(100% + .5rem);\n }\n\n .altertable-datetime-help[data-side=\"right\"] {\n left: calc(100% + .5rem);\n }\n\n .altertable-datetime-help h4 {\n color: var(--atbl-muted);\n margin: .75rem 0 .25rem;\n font-weight: 500;\n }\n\n .altertable-datetime-help section div {\n display: flex;\n flex-wrap: wrap;\n gap: .25rem;\n }\n\n .altertable-datetime-help button {\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n color: inherit;\n background: var(--atbl-subtle);\n border-radius: var(--atbl-radius-control);\n cursor: pointer;\n border: 0;\n padding: .25rem;\n }\n\n .altertable-datetime-error {\n margin: 0;\n padding: .5rem;\n }\n\n .altertable-datetime-calendar-panel {\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n padding: .75rem;\n }\n\n .altertable-datetime-actions {\n display: flex;\n justify-content: space-between;\n gap: .5rem;\n margin-top: .75rem;\n }\n\n @media (max-width: 680px) {\n .altertable-datetime-popover {\n max-height: var(--available-height, calc(100dvh - 2rem));\n overflow-y: auto;\n }\n\n .altertable-datetime-help {\n position: static;\n border: 0;\n border-top: 1px solid var(--atbl-border);\n width: 100%;\n max-height: none;\n }\n }\n\n .altertable-datetime-calendar {\n width: 100%;\n min-width: 0;\n }\n\n .altertable-datetime-calendar header {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;\n align-items: end;\n gap: .5rem;\n margin-bottom: .75rem;\n }\n\n .altertable-datetime-calendar table {\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0 2px;\n width: 100%;\n }\n\n .altertable-datetime-calendar th {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 500;\n }\n\n .altertable-datetime-calendar td {\n text-align: center;\n padding: 0;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell {\n display: grid;\n cursor: pointer;\n border-radius: var(--atbl-radius-control);\n font-variant-numeric: tabular-nums;\n place-items: center;\n min-height: 40px;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-selected] {\n background: var(--atbl-subtle);\n font-weight: 650;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-selection-start], .altertable-datetime-calendar .react-aria-CalendarCell[data-selection-end] {\n background: var(--atbl-text);\n color: var(--atbl-surface);\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-disabled], .altertable-datetime-calendar .react-aria-CalendarCell[data-unavailable] {\n color: var(--atbl-muted);\n cursor: default;\n text-decoration: line-through;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-outside-month] {\n visibility: hidden;\n }\n\n .altertable-datetime-help[data-side=\"inline\"] {\n position: static;\n border: 0;\n border-top: 1px solid var(--atbl-border);\n width: 100%;\n max-height: none;\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-help[data-side=\"inline\"]) {\n max-height: var(--available-height, calc(100dvh - 2rem));\n overflow-y: auto;\n }\n}\n\n/* packages/data-app-react/src/ui/PopoverSurface.css */\n@layer atbl.components {\n .altertable-popover-surface {\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n}\n\n/* packages/data-app-react/src/ui/PeriodSummary.css */\n@layer atbl.components {\n .altertable-period-summary {\n margin: 0;\n }\n\n .altertable-period-summary-visible {\n display: inline-flex;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 7px;\n }\n\n .altertable-period-summary-visible > svg {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchInput.css */\n@layer atbl.components {\n .altertable-search-input-wrap {\n display: flex;\n min-height: var(--atbl-control-height);\n padding: 0 var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n align-items: center;\n gap: 9px;\n width: min(100%, 380px);\n min-width: 0;\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: 0 calc(var(--atbl-control-padding-inline) * 5 / 6);\n width: min(100%, 300px);\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] .altertable-search-input {\n min-block-size: calc(var(--atbl-control-compact-height) - 2px);\n }\n\n .altertable-search-input {\n min-block-size: calc(var(--atbl-control-height) - 2px);\n outline: 0;\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n background: none;\n border: 0;\n flex: 1;\n width: 100%;\n min-width: 0;\n height: auto;\n padding: 0;\n }\n\n .altertable-search-input::-webkit-search-cancel-button {\n display: none;\n }\n\n .altertable-search-input-wrap > svg {\n flex: none;\n }\n\n .altertable-search-input-spinner {\n animation: .9s linear infinite altertable-search-input-spin;\n }\n\n @keyframes altertable-search-input-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-search-input-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Button.css */\n@layer atbl.components {\n .altertable-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-control-gap);\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-label-leading);\n overflow-wrap: anywhere;\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n -webkit-tap-highlight-color: transparent;\n max-inline-size: 100%;\n }\n\n .altertable-button[data-size=\"icon\"] {\n width: var(--atbl-control-height);\n min-width: var(--atbl-control-height);\n height: var(--atbl-control-height);\n min-height: var(--atbl-control-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"primary\"] {\n border-color: var(--atbl-text);\n background: var(--atbl-text);\n color: var(--atbl-background);\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 92%, var(--atbl-background));\n --atbl-control-pressed-surface: color-mix(in srgb, var(--atbl-text) 84%, var(--atbl-background));\n }\n\n .altertable-button[data-variant=\"outline\"] {\n box-shadow: none;\n }\n\n .altertable-button[data-variant=\"elevated\"] {\n box-shadow: var(--atbl-shadow-surface);\n }\n\n .altertable-button[data-variant=\"ghost\"] {\n box-shadow: none;\n background: none;\n border-color: #0000;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-button {\n transition: none;\n }\n }\n\n .altertable-button[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: calc(var(--atbl-control-padding-block) * 2 / 3) calc(var(--atbl-control-padding-inline) * 2 / 3);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-button[data-size=\"icon-compact\"] {\n width: var(--atbl-control-compact-height);\n min-width: var(--atbl-control-compact-height);\n height: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-size^=\"icon\"] > svg {\n inline-size: var(--atbl-control-icon-size);\n block-size: var(--atbl-control-icon-size);\n }\n\n .altertable-button[data-variant=\"inline\"] {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n box-shadow: none;\n font: inherit;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n border-radius: 0;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"inline\"]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n}\n\n/* packages/data-app-react/src/ui/SearchField.css */\n@layer atbl.components {\n .altertable-search-landmark {\n min-width: 0;\n }\n\n .altertable-search {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-search-label {\n font-size: var(--atbl-type-label-size);\n font-weight: 650;\n }\n\n .altertable-search-row {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .altertable-search-description, .altertable-search-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 0;\n line-height: 1.45;\n }\n\n @media (max-width: 560px) {\n .altertable-search .altertable-search-input-wrap {\n width: 100%;\n }\n }\n\n .altertable-search-suggestions {\n z-index: 150;\n padding: var(--atbl-space-xs);\n overflow: auto;\n }\n\n .altertable-search-suggestions ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-search-suggestions li {\n display: flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-space-sm);\n border-radius: var(--atbl-radius-control);\n padding-inline-start: calc(var(--atbl-control-padding-inline) - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions[data-size=\"compact\"] li {\n padding-inline-start: calc(var(--atbl-control-padding-inline) * 5 / 6 - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions li > span, .altertable-search-suggestions small {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-search-suggestions li > span {\n flex: 0 auto;\n }\n\n .altertable-search-suggestions li:has(small) > span {\n flex-shrink: 0;\n max-width: 65%;\n }\n\n .altertable-search-suggestions small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: 0 auto;\n }\n}\n\n/* packages/data-app-react/src/ui/Tooltip.css */\n@layer atbl.components {\n .altertable-tooltip-trigger {\n display: inline-flex;\n align-items: center;\n }\n\n .altertable-tooltip-trigger[data-variant=\"chart\"] {\n display: flex;\n align-items: flex-end;\n width: 100%;\n min-width: 0;\n height: 100%;\n }\n\n .altertable-tooltip-content {\n z-index: 1300;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-meta-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n white-space: normal;\n overflow-wrap: anywhere;\n pointer-events: none;\n animation: altertable-tooltip-in var(--atbl-duration-fast) ease-out;\n width: max-content;\n max-width: min(240px, 100vw - 24px);\n padding: 6px 9px;\n }\n\n .altertable-tooltip-content[data-variant=\"hint\"] {\n pointer-events: auto;\n }\n\n .altertable-tooltip-content[data-instant] {\n animation: none;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] {\n display: grid;\n font-variant-numeric: tabular-nums;\n gap: 2px;\n padding: 8px 10px;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n line-height: 1.2;\n }\n\n @keyframes altertable-tooltip-in {\n from {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tooltip-content {\n animation: none;\n }\n }\n\n .altertable-chart-tooltip-row {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n }\n\n .altertable-chart-tooltip-marker {\n flex-shrink: 0;\n width: 8px;\n height: 8px;\n margin-top: .3em;\n }\n\n .altertable-chart-tooltip-reading {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RequestHint.css */\n@layer atbl.components {\n .altertable-request-hint {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 6px;\n min-width: 0;\n height: 28px;\n }\n\n .altertable-request-hint > svg, .altertable-request-hint > button {\n flex: none;\n }\n\n .altertable-request-hint-message {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-request-hint[data-state=\"error\"] .altertable-request-hint-copy > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-request-hint-spinner {\n animation: .9s linear infinite altertable-request-hint-spin;\n }\n\n @keyframes altertable-request-hint-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-request-hint-spinner {\n animation: none;\n }\n }\n\n .altertable-widget-status {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex: none;\n justify-content: center;\n align-items: center;\n width: 78px;\n height: 30px;\n }\n\n .altertable-widget-status .altertable-button {\n gap: 5px;\n }\n\n .altertable-widget-status .altertable-button svg {\n color: var(--atbl-danger);\n }\n\n .altertable-widget-status-announcement {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-request-hint-copy {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n }\n\n .altertable-request-hint-copy > svg {\n flex: none;\n }\n}\n\n/* packages/data-app-react/src/ui/GradientScroll.css */\n@layer atbl.components {\n .altertable-gradient-scroll {\n overflow: auto;\n --atbl-scroll-fade-size: 1.5rem;\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"] {\n overflow-x: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"] {\n overflow-y: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to bottom, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to right, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n}\n\n/* packages/data-app-react/src/ui/SelectionMark.css */\n@layer atbl.components {\n .altertable-selection-mark {\n display: grid;\n box-sizing: border-box;\n font-size: var(--atbl-control-icon-size);\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-selection-mark[data-multiple] {\n border: 1px solid var(--atbl-muted);\n border-radius: .25em;\n }\n\n .altertable-selection-mark[data-multiple][data-selected] {\n border-color: var(--atbl-accent);\n background: var(--atbl-accent);\n }\n\n .altertable-selection-mark[data-multiple][data-selected]:after {\n content: \"\";\n border: .125em solid;\n border-width: 0 .125em .125em 0;\n border-color: var(--atbl-on-accent);\n width: .25em;\n height: .4375em;\n margin-top: -.125em;\n transform: rotate(45deg);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchMatch.css */\n@layer atbl.components {\n .altertable-search-match mark {\n background: color-mix(in srgb, currentColor 16%, transparent);\n color: inherit;\n box-decoration-break: clone;\n border-radius: 2px;\n padding: 0 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/ChoicePicker.css */\n@layer atbl.components {\n .altertable-picker-trigger {\n box-sizing: border-box;\n text-align: left;\n max-width: min(100%, 340px, 75vw);\n }\n\n .altertable-picker-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n flex: 0 auto;\n min-width: 0;\n }\n\n .altertable-picker-value {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n flex: none;\n min-width: 0;\n max-width: 55%;\n }\n\n .altertable-picker-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-left: auto;\n }\n\n .altertable-choice-picker-popover {\n z-index: 150;\n overflow: hidden;\n width: min(300px, 100vw - 24px);\n padding: 0;\n }\n\n .altertable-choice-picker-dialog {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap {\n gap: calc(10px + var(--atbl-control-icon-size) - 17px);\n box-sizing: border-box;\n border: 0;\n border-bottom: 1px solid var(--atbl-border);\n border-radius: 0;\n width: 100%;\n margin: 0;\n padding: 6px 18px;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap > svg {\n opacity: .65;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within > svg {\n opacity: 1;\n }\n\n .altertable-choice-picker-status {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-choice-picker-options {\n scroll-padding-block: 8px;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-choice-picker-popover .react-aria-ListBox {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 10px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 400;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child) {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child):before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n top: -5px;\n left: 0;\n right: 0;\n }\n\n .altertable-choice-picker-option-content {\n min-width: 0;\n }\n\n .altertable-choice-picker-empty {\n color: var(--atbl-muted);\n padding: 12px 10px;\n }\n\n .altertable-choice-picker-actions {\n border-top: 1px solid var(--atbl-border);\n display: flex;\n justify-content: flex-start;\n margin: 0 8px;\n padding: 4px 0;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint {\n margin: 4px 10px 0;\n }\n\n .altertable-choice-picker-skeletons {\n display: grid;\n gap: 10px;\n padding: 10px;\n }\n\n .altertable-choice-picker-skeletons > span {\n height: 24px;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint[data-state=\"error\"] {\n display: flex;\n text-align: center;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n height: auto;\n margin: 12px 10px 4px;\n }\n}\n\n/* packages/data-app-react/src/ui/Menu.css */\n@layer atbl.components {\n .altertable-menu-popover {\n z-index: 150;\n min-width: max(var(--trigger-width), 180px);\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n max-width: min(340px, 100vw - 24px);\n }\n\n .altertable-menu {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-menu-item {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 9px;\n }\n\n .altertable-menu-separator {\n background: var(--atbl-border);\n height: 1px;\n margin: 4px 0;\n }\n\n .altertable-exploration-action-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n color: var(--atbl-text);\n }\n\n .altertable-exploration-action-trigger:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger[data-context-only] {\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n border: 0;\n block-size: 0;\n min-block-size: 0;\n inline-size: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .altertable-exploration-actions[data-context-only] {\n position: absolute;\n }\n\n .altertable-selectable-bars, .altertable-pie-chart, .altertable-trend-chart {\n position: relative;\n }\n\n .altertable-chart-copy-status {\n position: absolute;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font-size: var(--atbl-type-meta-size);\n padding: 4px 8px;\n bottom: 4px;\n }\n\n .altertable-chart-copy-status:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-exploration-action-menu {\n --atbl-focus-outline: none;\n width: max-content;\n min-width: 180px;\n }\n}\n\n/* packages/data-app-react/src/ui/FilterControls.css */\n@layer atbl.components {\n .altertable-number-field, .altertable-radio-group, .altertable-checkbox-group {\n display: flex;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-number-field > label, .altertable-radio-group > .altertable-control-label, .altertable-checkbox-group > label {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-number-field [data-atbl-internal-surface=\"field\"] {\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-sizing: border-box;\n }\n\n .altertable-number-field input {\n outline: 0;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-number-range-field {\n display: flex;\n gap: var(--atbl-space-sm);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-number-range-field legend {\n margin-bottom: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n padding: 0;\n }\n\n .altertable-number-range-field .altertable-number-field {\n flex: 110px;\n max-width: 160px;\n }\n\n .altertable-number-range-field p {\n color: var(--atbl-danger);\n flex-basis: 100%;\n margin: 0;\n }\n\n .altertable-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border-radius: var(--atbl-radius-control);\n }\n\n .altertable-radio-mark {\n display: grid;\n border: 1px solid var(--atbl-muted);\n border-radius: 50%;\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-radio[data-selected] .altertable-radio-mark:after {\n content: \"\";\n background: var(--atbl-accent);\n border-radius: 50%;\n width: .5em;\n height: .5em;\n }\n\n .altertable-segmented-control {\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-direction: row;\n }\n\n .altertable-segmented-options {\n display: inline-flex;\n min-width: 0;\n }\n\n .altertable-segmented-control .altertable-radio {\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n min-height: var(--atbl-control-height);\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: 0;\n }\n\n .altertable-segmented-options .altertable-radio:first-child {\n border-radius: var(--atbl-radius-control) 0 0 var(--atbl-radius-control);\n }\n\n .altertable-segmented-control .altertable-radio:last-child {\n border-radius: 0 var(--atbl-radius-control) var(--atbl-radius-control) 0;\n }\n\n .altertable-segmented-control .altertable-radio + .altertable-radio {\n margin-inline-start: -1px;\n }\n\n .altertable-segmented-control .altertable-radio-mark {\n display: none;\n }\n\n .altertable-filter-bar, .altertable-filter-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-actions, .altertable-checkbox-group {\n border: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-checkbox-group legend {\n color: var(--atbl-muted);\n margin-bottom: var(--atbl-space-xs);\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :is(.altertable-filter-bar, .altertable-variable-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n .altertable-select-trigger {\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n justify-content: space-between;\n min-width: 90px;\n }\n\n .altertable-select-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-select-popover {\n z-index: 160;\n width: min(260px, 100vw - 24px);\n }\n\n .altertable-select-options {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-select-option {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n }\n\n .altertable-select-option small {\n display: block;\n color: var(--atbl-muted);\n }\n\n .altertable-number-filter-popover {\n z-index: 150;\n padding: var(--atbl-space-md);\n width: min(340px, 100vw - 24px);\n }\n\n .altertable-number-filter-dialog {\n outline: none;\n }\n\n .altertable-number-filter-editor {\n display: flex;\n gap: var(--atbl-space-md);\n flex-direction: column;\n }\n\n .altertable-number-filter-editor h3 {\n font: inherit;\n font-weight: var(--atbl-type-label-weight);\n margin: 0;\n }\n\n .altertable-number-filter-editor .altertable-select-trigger {\n width: 100%;\n }\n\n .altertable-number-filter-editor .altertable-number-range-field .altertable-number-field {\n max-width: none;\n }\n\n .altertable-number-filter-actions {\n display: flex;\n justify-content: flex-end;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-number-filter-actions > [data-variant=\"ghost\"] {\n margin-inline-end: auto;\n }\n\n .altertable-segmented-options .altertable-radio:only-child {\n border-radius: var(--atbl-radius-control);\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n .altertable-select-trigger {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n .altertable-number-filter-feedback {\n color: var(--atbl-danger);\n min-height: 1.4em;\n margin: 0;\n }\n\n .altertable-display-options-label {\n display: inline-flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-display-options-label small {\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n font-size: .85em;\n }\n\n .altertable-select[data-label-placement=\"inline\"] {\n display: inline-flex;\n gap: 0;\n }\n\n .altertable-select-trigger.altertable-picker-trigger > svg:last-child {\n margin-inline-start: auto;\n }\n\n .altertable-select-trigger[data-size=\"compact\"] {\n --atbl-type-label-size: var(--atbl-type-meta-size);\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Field.css */\n@layer atbl.components {\n .altertable-field {\n display: grid;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n min-width: 0;\n }\n\n .altertable-field > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :is(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"inline\"] {\n grid-template-columns: auto auto;\n align-items: center;\n }\n\n .altertable-field[data-label-placement=\"beside\"] {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > button {\n font-weight: 400;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(button, .altertable-date-range) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field .altertable-picker-value {\n max-width: calc(100% - var(--atbl-control-icon-size) - var(--atbl-control-gap));\n }\n}\n\n/* packages/data-app-react/src/ui/Checkbox.css */\n@layer atbl.components {\n .altertable-checkbox {\n position: relative;\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n color: var(--atbl-text);\n align-items: flex-start;\n gap: 9px;\n }\n\n .altertable-checkbox input {\n position: absolute;\n cursor: inherit;\n opacity: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n inset: 0;\n }\n\n .altertable-checkbox .altertable-selection-mark {\n margin-top: 2px;\n }\n\n .altertable-checkbox small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 2px;\n }\n}\n\n/* packages/data-app-react/src/ui/DateRangePicker.css */\n@layer atbl.components {\n .altertable-date-range {\n position: relative;\n display: inline-grid;\n line-height: var(--atbl-type-label-leading);\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n gap: 6px;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .altertable-date-range .react-aria-Label {\n color: var(--atbl-muted);\n font-weight: 550;\n }\n\n .altertable-date-range .react-aria-Group {\n display: flex;\n align-items: center;\n gap: var(--atbl-control-gap);\n min-height: var(--atbl-control-height);\n padding: 0 var(--atbl-control-padding-inline) 0 .125rem;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n transition: border-color var(--atbl-duration-fast) var(--atbl-ease-standard);\n flex-wrap: wrap;\n min-inline-size: 0;\n }\n\n .altertable-date-range[data-invalid] .react-aria-Group {\n border-color: var(--atbl-danger);\n }\n\n .altertable-date-range:has(.altertable-date-range-error) .react-aria-Group {\n border-color: var(--atbl-danger);\n }\n\n .altertable-date-range .react-aria-DateInput {\n display: flex;\n max-inline-size: 100%;\n white-space: nowrap;\n font-weight: var(--atbl-type-label-weight);\n flex: none;\n min-width: 0;\n }\n\n .altertable-date-range .react-aria-DateSegment {\n font-variant-numeric: tabular-nums;\n outline: none;\n border-radius: 3px;\n padding: 3px 1px;\n }\n\n .altertable-date-range .react-aria-DateSegment[data-type=\"literal\"], .altertable-date-range .react-aria-Group > span[aria-hidden] {\n color: var(--atbl-muted);\n }\n\n .altertable-date-range-comparison {\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n white-space: nowrap;\n border-radius: 4px;\n justify-self: start;\n padding: 2px 5px;\n }\n\n .altertable-date-range .react-aria-Group .react-aria-Button {\n display: grid;\n width: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n border-radius: max(0px, calc(var(--atbl-radius-control) - 3px));\n color: var(--atbl-muted);\n outline: none;\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n }\n\n .altertable-date-range .react-aria-Group .react-aria-Button[data-hovered], .altertable-date-range .react-aria-Group .react-aria-Button[data-pressed] {\n color: var(--atbl-text);\n }\n\n .altertable-date-range .altertable-date-range-reset {\n display: grid;\n width: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n margin-left: auto;\n padding: 0;\n }\n\n .altertable-date-range .altertable-date-range-reset:hover {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n .altertable-date-range-error {\n position: absolute;\n z-index: 1;\n color: var(--atbl-danger);\n font-size: var(--atbl-type-meta-size);\n width: max-content;\n max-width: 100%;\n top: calc(100% + 6px);\n right: 0;\n }\n\n .altertable-date-range-popover {\n z-index: 100;\n overflow-y: auto;\n overscroll-behavior: contain;\n width: min(480px, 100vw - 24px);\n max-height: calc(100dvh - 24px);\n padding: 12px;\n }\n\n .altertable-date-range-popover[data-entering] {\n animation: altertable-calendar-in var(--atbl-duration-fast) var(--atbl-ease-enter);\n }\n\n @keyframes altertable-calendar-in {\n from {\n opacity: 0;\n translate: 0 -4px;\n }\n }\n\n .altertable-date-range-popover .react-aria-Dialog {\n outline: none;\n }\n\n .altertable-date-range-content {\n display: grid;\n grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);\n gap: 14px;\n }\n\n .altertable-date-range-presets {\n display: flex;\n overflow-y: auto;\n overscroll-behavior: contain;\n border: 0;\n border-right: 1px solid var(--atbl-border);\n flex-direction: column;\n min-width: 0;\n max-height: min(380px, 62dvh);\n margin: 0;\n padding: 0 12px 0 0;\n }\n\n .altertable-date-range-preset-list {\n display: flex;\n flex-direction: column;\n gap: 2px;\n min-width: 0;\n }\n\n .altertable-date-range-custom {\n min-width: 0;\n }\n\n .altertable-date-range-heading {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n letter-spacing: .04em;\n text-transform: uppercase;\n padding: 5px 8px 9px;\n font-weight: 650;\n }\n\n .altertable-date-range-popover .altertable-date-range-preset {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-text);\n text-align: left;\n line-height: 1.25;\n font: inherit;\n background: none;\n border: 0;\n justify-content: flex-start;\n width: 100%;\n height: auto;\n min-height: 34px;\n padding: 7px 9px;\n }\n\n .altertable-date-range-popover .altertable-date-range-preset[aria-current=\"true\"] {\n font-weight: 650;\n }\n\n .altertable-date-range-footer {\n display: flex;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: end;\n gap: 12px;\n margin-top: 12px;\n padding: 10px 12px;\n }\n\n .altertable-date-range-footer > div {\n display: grid;\n gap: 2px;\n }\n\n .altertable-date-range-footer-label {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-date-range-footer strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: 650;\n }\n\n .altertable-date-range-footer-meta {\n white-space: nowrap;\n }\n\n .altertable-date-range-compare {\n display: flex;\n align-items: flex-start;\n gap: 9px;\n margin-top: 10px;\n padding: 10px 4px 2px;\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar {\n width: max-content;\n max-width: calc(100vw - 32px);\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar header {\n display: flex;\n align-items: center;\n gap: 4px;\n margin-bottom: 8px;\n }\n\n .altertable-date-range-popover .react-aria-Button:not(.altertable-date-range-preset) {\n display: grid;\n width: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n border-radius: var(--atbl-radius-control);\n color: inherit;\n font: inherit;\n outline: none;\n background: none;\n border: 0;\n place-items: center;\n padding: 0;\n }\n\n .altertable-date-range-popover .altertable-calendar-select:first-of-type {\n flex: 1;\n }\n\n .altertable-date-range-popover .altertable-calendar-select .react-aria-Button {\n display: inline-flex;\n justify-content: space-between;\n align-items: center;\n gap: 6px;\n width: 100%;\n min-width: 0;\n padding: 0 8px;\n font-weight: 650;\n }\n\n .altertable-date-range-popover .altertable-calendar-select svg {\n color: var(--atbl-muted);\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid {\n border-collapse: separate;\n border-spacing: 0 2px;\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid th, .altertable-date-range-popover .react-aria-CalendarGrid td {\n text-align: center;\n width: 36px;\n padding: 0;\n }\n\n .altertable-date-range-popover .react-aria-CalendarHeaderCell {\n min-height: var(--atbl-control-compact-height);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 550;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell {\n display: flex;\n border-radius: var(--atbl-radius-control);\n font-variant-numeric: tabular-nums;\n outline: none;\n justify-content: center;\n align-items: center;\n width: 36px;\n height: 34px;\n line-height: 1;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-outside-month] {\n visibility: hidden;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-hovered]:not([data-selected]) {\n background: var(--atbl-subtle);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selected] {\n background: var(--atbl-accent-subtle, color-mix(in srgb, var(--atbl-accent) var(--atbl-accent-subtle-strength), var(--atbl-surface)));\n border-radius: 0;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-selection-start], .altertable-date-range-popover .react-aria-CalendarCell[data-selection-end] {\n background: var(--atbl-accent);\n color: var(--atbl-on-accent);\n font-weight: 650;\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:first-child .react-aria-CalendarCell[data-selected]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n border-top-right-radius: var(--atbl-radius-control);\n border-bottom-right-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover td:last-child .react-aria-CalendarCell[data-selected]:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n border-top-left-radius: var(--atbl-radius-control);\n border-bottom-left-radius: var(--atbl-radius-control);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-disabled], .altertable-date-range-popover .react-aria-CalendarCell[data-unavailable] {\n color: var(--atbl-muted);\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell[data-unavailable] {\n text-decoration: line-through;\n }\n\n .altertable-calendar-select-popover {\n z-index: 150;\n min-width: var(--trigger-width);\n border-radius: var(--atbl-radius-control);\n padding: 4px;\n }\n\n .altertable-calendar-select-popover .react-aria-ListBox {\n overflow: auto;\n outline: none;\n max-height: min(260px, 45dvh);\n }\n\n .altertable-calendar-select-popover .react-aria-ListBoxItem {\n border-radius: var(--atbl-radius-control);\n outline: none;\n padding: 7px 10px;\n }\n\n .altertable-calendar-select-popover .react-aria-ListBoxItem[data-selected] {\n font-weight: 650;\n }\n\n @media (max-width: 620px) {\n .altertable-date-range-popover {\n box-sizing: border-box;\n overflow-y: auto;\n overscroll-behavior: contain;\n width: min(420px, 100vw - 24px);\n max-height: calc(100dvh - 24px);\n }\n\n .altertable-date-range-content {\n grid-template-columns: minmax(0, 1fr);\n gap: 10px;\n }\n\n .altertable-date-range-presets {\n overflow: visible;\n border-right: 0;\n border-bottom: 1px solid var(--atbl-border);\n max-height: none;\n padding: 0 0 10px;\n }\n\n .altertable-date-range-preset-list {\n overflow-x: auto;\n overscroll-behavior-inline: contain;\n scroll-snap-type: x proximity;\n flex-direction: row;\n gap: 6px;\n max-width: 100%;\n padding-bottom: 2px;\n }\n\n .altertable-date-range-popover .altertable-date-range-preset {\n border: 1px solid var(--atbl-border);\n scroll-snap-align: start;\n white-space: nowrap;\n flex: none;\n width: auto;\n min-height: 36px;\n }\n\n .altertable-date-range-heading {\n padding-bottom: 4px;\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar, .altertable-date-range-popover .react-aria-CalendarGrid {\n width: 100%;\n max-width: none;\n }\n\n .altertable-date-range-popover .react-aria-RangeCalendar header {\n display: grid;\n grid-template-columns: var(--atbl-control-compact-height) minmax(0, 1fr) minmax(0, 1fr) var(--atbl-control-compact-height);\n gap: 6px;\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid {\n table-layout: fixed;\n }\n\n .altertable-date-range-popover .react-aria-CalendarGrid th, .altertable-date-range-popover .react-aria-CalendarGrid td {\n width: 14.2857%;\n }\n\n .altertable-date-range-popover .react-aria-CalendarCell {\n aspect-ratio: 1;\n width: 100%;\n height: auto;\n min-height: 44px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-date-range .react-aria-Group, .altertable-date-range .react-aria-Group .react-aria-Button {\n transition: none;\n }\n\n .altertable-date-range-popover[data-entering] {\n animation: none;\n }\n }\n\n .altertable-calendar-select .react-aria-SelectValue {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-inline-size: 0;\n }\n\n .altertable-date-range .react-aria-Button > svg, .altertable-date-range-popover .react-aria-Button > svg, .altertable-date-range-reset > svg {\n inline-size: var(--atbl-control-icon-size);\n block-size: var(--atbl-control-icon-size);\n }\n}\n\n/* packages/data-app-react/src/ui/EmptyState.css */\n@layer atbl.components {\n .altertable-empty-state {\n display: flex;\n color: var(--atbl-muted);\n text-align: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n min-height: 176px;\n padding: 24px;\n }\n\n .altertable-empty-state strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-empty-state p {\n font-size: var(--atbl-type-meta-size);\n white-space: normal;\n max-width: 40ch;\n margin: 0;\n line-height: 1.5;\n }\n\n .altertable-empty-state[data-variant=\"table\"] {\n min-height: 112px;\n padding: 18px;\n }\n\n .altertable-empty-state-action {\n display: flex;\n justify-content: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n margin-block-start: var(--atbl-space-sm);\n }\n}\n\n/* packages/data-app-react/src/ui/Kbd.css */\n@layer atbl.components {\n .altertable-kbd {\n display: inline-flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n border-radius: 5px;\n justify-content: center;\n align-items: center;\n min-width: 1.6em;\n padding: 2px 5px;\n }\n\n .altertable-button[data-variant=\"primary\"] .altertable-kbd {\n color: inherit;\n border-color: color-mix(in srgb, currentColor 30%, transparent);\n background: none;\n }\n}\n\n/* packages/data-app-react/src/ui/QueryList.css */\n@layer atbl.components {\n .altertable-query-list {\n display: grid;\n gap: 20px;\n min-width: 0;\n }\n\n .altertable-query-list summary {\n display: inline-flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-radius: 4px;\n align-items: center;\n gap: 6px;\n width: -moz-fit-content;\n width: fit-content;\n }\n\n .altertable-query-list summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-query-list summary:before {\n content: \"\";\n transition: rotate var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-block-start: 4px solid #0000;\n border-block-end: 4px solid #0000;\n border-inline-start: 5px solid;\n width: 0;\n height: 0;\n }\n\n .altertable-query-list[open] summary:before {\n rotate: 90deg;\n }\n\n .altertable-query-list summary:hover {\n color: var(--atbl-text);\n }\n\n .altertable-query-list figure {\n display: grid;\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n border-radius: 10px;\n gap: 0;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-list figcaption {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n color: var(--atbl-text);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n min-height: 36px;\n padding: 3px 6px 3px 14px;\n }\n\n .altertable-query-filename {\n display: inline-flex;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-query-actions {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n }\n\n .altertable-query-action {\n color: var(--atbl-muted);\n background: none;\n border: 0;\n width: 28px;\n min-width: 28px;\n min-height: 28px;\n padding: 0;\n }\n\n .altertable-query-action:hover:not(:disabled) {\n color: var(--atbl-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-query-list pre {\n background: var(--atbl-code-surface);\n color: var(--atbl-code-text);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-mono-font);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n tab-size: 2;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 14px 16px 18px;\n }\n\n .altertable-query-parameters {\n display: flex;\n border-top: 1px solid var(--atbl-border);\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-font);\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px 12px;\n min-width: 0;\n padding: 10px 14px;\n }\n\n .altertable-query-parameters dl {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dl > div {\n display: flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n overflow-wrap: anywhere;\n border-radius: 6px;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n max-width: 100%;\n padding: 3px 8px;\n }\n\n .altertable-query-parameters dt, .altertable-query-parameters dd {\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dt {\n flex-shrink: 0;\n max-width: 100%;\n }\n\n .altertable-query-parameters dd {\n color: var(--atbl-text);\n }\n\n .altertable-query-parameters code {\n font-family: var(--atbl-mono-font);\n }\n\n .altertable-sql-keyword {\n color: var(--atbl-code-keyword, var(--atbl-accent));\n font-weight: 650;\n }\n\n .altertable-query-unavailable {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 0;\n }\n\n .altertable-query-notebook {\n gap: 16px;\n }\n\n .altertable-query-notebook-header {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n padding: 0 0 4px;\n }\n\n .altertable-query-notebook-header > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: 450;\n }\n\n .altertable-query-notebook-header small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n margin-inline-start: 8px;\n }\n\n .altertable-query-notebook-header .altertable-button {\n display: inline-flex;\n font-size: var(--atbl-type-meta-size);\n align-items: center;\n gap: 6px;\n min-height: 30px;\n }\n\n .altertable-query-notebook figure {\n border-radius: 10px;\n }\n\n .altertable-query-notebook-error {\n color: var(--atbl-danger);\n font-size: var(--atbl-type-meta-size);\n padding: 8px 12px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n .altertable-query-actions .altertable-query-action {\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-query-list figure:hover .altertable-query-action, .altertable-query-list figure:focus-within .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n\n .altertable-query-actions:has(output) .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-query-list summary, .altertable-query-list summary:before, .altertable-query-actions .altertable-query-action {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Sheet.css */\n@layer atbl.components {\n :root:has(.altertable-sheet:modal) {\n overflow: hidden;\n }\n\n .altertable-sheet:not([open]) {\n display: none;\n }\n\n .altertable-sheet {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto auto;\n height: var(--atbl-frame-visible-height);\n overflow: visible;\n border: 0;\n border-left: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-body-size) / var(--atbl-type-label-leading) var(--atbl-font);\n opacity: 0;\n transition: translate var(--atbl-duration-slow) cubic-bezier(.22, 1, .36, 1), opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n border-radius: 0;\n width: min(640px, 100vw);\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n translate: 100%;\n }\n\n .altertable-sheet[data-wide] {\n width: min(960px, 100vw);\n }\n\n .altertable-sheet[open] {\n opacity: 1;\n translate: 0;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n opacity: 0;\n translate: 100%;\n }\n }\n\n .altertable-sheet[open][data-closing] {\n opacity: 0;\n transition-timing-function: ease-in;\n translate: 100%;\n }\n\n .altertable-sheet::backdrop {\n background: var(--atbl-backdrop);\n opacity: 0;\n transition: opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n }\n\n .altertable-sheet[open]::backdrop {\n opacity: 1;\n }\n\n .altertable-sheet[open][data-closing]::backdrop {\n opacity: 0;\n }\n\n @starting-style {\n .altertable-sheet[open]::backdrop {\n opacity: 0;\n }\n }\n\n .altertable-sheet-shell {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr) auto;\n height: 100%;\n }\n\n .altertable-sheet-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: var(--atbl-space-md);\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc((var(--atbl-space-md) + var(--atbl-space-lg)) / 2);\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-sheet-header h2 {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-sheet-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-sheet-actions {\n display: flex;\n align-items: center;\n gap: 4px;\n margin: -4px -8px 0 0;\n }\n\n .altertable-sheet-close {\n color: var(--atbl-muted);\n }\n\n .altertable-sheet-body {\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc(var(--atbl-space-xl) + var(--atbl-space-md) / 2);\n min-height: 0;\n }\n\n .altertable-sheet-footer {\n padding: var(--atbl-space-md) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2);\n border-top: 1px solid var(--atbl-border);\n }\n\n @media (min-width: 601px) {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"]) {\n inset: var(--atbl-frame-inset-top, 0px) auto auto 0;\n border-left: 0;\n border-right: 1px solid var(--atbl-border);\n translate: -100%;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: 0;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open][data-closing] {\n translate: -100%;\n }\n\n @starting-style {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: -100%;\n }\n }\n }\n\n @media (max-width: 960px) {\n .altertable-sheet[data-wide] {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[data-wide][open] {\n translate: 0;\n }\n\n .altertable-sheet[data-wide][open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[data-wide][open] {\n translate: 0 100%;\n }\n }\n }\n\n @media (max-width: 600px) {\n .altertable-sheet {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[open] {\n translate: 0;\n }\n\n .altertable-sheet[open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0 100%;\n }\n }\n\n .altertable-sheet-header {\n padding: 20px 20px 16px;\n }\n\n .altertable-sheet-body {\n padding: 20px 20px 32px;\n }\n\n .altertable-sheet-footer {\n padding: 14px 20px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-sheet, .altertable-sheet[open][data-closing] {\n transition: none;\n translate: 0;\n }\n\n .altertable-sheet::backdrop {\n transition: none;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0;\n }\n }\n }\n\n .altertable-sheet[data-placement=\"center\"] {\n inset: var(--atbl-frame-inset-top, 0px) 0 var(--atbl-frame-inset-bottom, 0px);\n max-height: calc(var(--atbl-frame-visible-height) - 32px);\n border: 1px solid var(--atbl-border, #e3e6e8);\n border-radius: var(--atbl-radius-overlay);\n width: min(480px, 100vw - 32px);\n height: -moz-fit-content;\n height: fit-content;\n margin: auto;\n translate: 0;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-shell {\n height: auto;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-header {\n padding: 20px 24px 16px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-body {\n padding: 0 24px 20px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-footer {\n padding: 16px 24px;\n }\n}\n\n/* packages/data-app-react/src/ui/Tabs.css */\n@layer atbl.components {\n .altertable-tabs .react-aria-TabList {\n display: flex;\n gap: var(--atbl-space-lg);\n overflow-x: auto;\n overscroll-behavior-x: none;\n border-bottom: 1px solid var(--atbl-border);\n scrollbar-width: none;\n }\n\n .altertable-tabs .react-aria-Tab {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n outline: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-normal) var(--atbl-ease-standard);\n border-bottom: 2px solid #0000;\n flex: none;\n margin-bottom: -1px;\n padding: 0 1px 12px;\n font-weight: 550;\n }\n\n .altertable-tabs .react-aria-Tab[data-hovered] {\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-selected] {\n border-bottom-color: var(--atbl-accent);\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-focus-visible] {\n border-radius: 2px;\n }\n\n .altertable-tabs .react-aria-TabPanels {\n min-width: 0;\n padding-block-start: var(--atbl-space-md);\n }\n\n .altertable-tabs .react-aria-TabPanel {\n outline: none;\n min-width: 0;\n }\n\n .altertable-tabs .react-aria-TabPanel[data-inert] {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tabs .react-aria-Tab {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AboutData.css */\n@layer atbl.components {\n .altertable-about-visual {\n display: grid;\n overflow-x: auto;\n overscroll-behavior-x: none;\n overflow-y: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-subtle);\n min-width: 0;\n margin: 0 0 24px;\n padding: 22px 20px 16px;\n }\n\n .altertable-about-visual > * {\n min-width: 0;\n }\n\n .altertable-about-visual[data-kind=\"metric\"] {\n padding: 16px 18px;\n }\n\n .altertable-about-visual[data-kind=\"widget\"] {\n background: var(--atbl-surface);\n padding: 0;\n }\n\n .altertable-about-body {\n display: grid;\n gap: 28px;\n min-width: 0;\n }\n\n .altertable-about-glossary-list {\n display: grid;\n gap: 16px;\n }\n\n .altertable-about-glossary-entry {\n display: grid;\n gap: 3px;\n }\n\n .altertable-about-glossary-entry > h3 {\n font-size: var(--atbl-type-body-size);\n letter-spacing: -.01em;\n margin: 0;\n font-weight: 650;\n }\n\n .altertable-about-glossary-entry > p {\n margin: 0;\n line-height: 1.55;\n }\n\n .altertable-about-tabs {\n display: grid;\n gap: 0;\n min-width: 0;\n }\n\n .altertable-about-tabbar {\n position: sticky;\n z-index: 2;\n background: var(--atbl-surface);\n margin-top: -24px;\n padding: 24px 0 14px;\n top: -24px;\n }\n\n @media (max-width: 600px) {\n .altertable-about-tabbar {\n margin-top: -20px;\n padding-top: 20px;\n top: -20px;\n }\n }\n\n .altertable-about-tabs .react-aria-TabList {\n display: flex;\n background: var(--atbl-subtle);\n border: 0;\n border-radius: 10px;\n flex-wrap: wrap;\n gap: 2px;\n width: 100%;\n max-width: 100%;\n padding: 3px;\n }\n\n .altertable-about-tabs .react-aria-TabPanels {\n padding-top: 14px;\n }\n\n .altertable-about-tabs .react-aria-Tab {\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n border: 0;\n border-radius: 8px;\n margin: 0;\n padding: 6px 10px;\n }\n\n .altertable-about-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: 0 0 0 1px var(--atbl-border);\n }\n\n .altertable-about-tabs .react-aria-TabPanel {\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/AppHeader.css */\n@layer atbl.components {\n .altertable-app-header {\n border-bottom: 1px solid var(--atbl-border);\n padding-bottom: 12px;\n }\n\n .altertable-app-header-heading {\n min-width: 0;\n }\n\n .altertable-app-header-primary {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 14px;\n min-width: 0;\n }\n\n .altertable-app-header-context {\n display: inline-flex;\n align-items: baseline;\n gap: 5px;\n min-width: 0;\n }\n\n .altertable-app-header-connector {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: 1.2;\n }\n\n .altertable-app-header-primary h1 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-page-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.03em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n line-height: 1.15;\n }\n\n .altertable-app-header-heading > p {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n text-wrap: pretty;\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-app-header-toolbar {\n flex: none;\n align-self: center;\n max-width: 100%;\n margin-inline-start: auto;\n }\n\n @media (max-width: 700px) {\n .altertable-app-header-primary {\n gap: 8px 12px;\n }\n\n .altertable-app-header-primary h1 {\n flex-basis: 100%;\n }\n\n .altertable-app-header-context {\n flex: 160px;\n min-width: min(100%, 160px);\n }\n\n .altertable-app-header-heading > p {\n margin-top: 8px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppFooter.css */\n@layer atbl.components {\n .altertable-app-footer {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n\n .altertable-app-footer-inner {\n width: min(100% - 48px, var(--atbl-content-width));\n padding-block: var(--atbl-space-lg);\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n margin: 0 auto;\n }\n\n .altertable-app-footer-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n min-width: 0;\n }\n\n .altertable-app-footer a {\n display: inline-flex;\n color: inherit;\n text-decoration: none;\n white-space: normal;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-app-footer-logo {\n color: var(--atbl-text);\n width: 92px;\n height: 16px;\n margin-left: 4px;\n }\n\n .altertable-app-footer a:hover {\n color: var(--atbl-text);\n }\n\n @media (max-width: 600px) {\n .altertable-app-footer-inner {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-footer-inner > *, .altertable-app-footer-actions > * {\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n}\n\n/* packages/data-app-react/src/ui/AppLayout.css */\n@layer atbl.components {\n .altertable-app-layout {\n display: flex;\n flex-direction: column;\n min-height: 100dvh;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] .altertable-app-layout {\n min-height: 0;\n }\n\n .altertable-app-main {\n display: grid;\n align-content: start;\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n width: min(100% - 48px, var(--atbl-content-width));\n padding: clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)) 0 calc(2 * var(--atbl-space-xl));\n min-width: 0;\n margin-inline-start: auto;\n margin-inline-end: auto;\n }\n\n .altertable-app-body {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-main > *, .altertable-app-body > * {\n margin: 0;\n }\n\n .altertable-app-footer {\n margin-top: auto;\n }\n\n @media (max-width: 600px) {\n .altertable-app-main {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-content-footer {\n padding-top: var(--atbl-space-sm);\n padding-inline: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-content-footer .altertable-text-content {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: none;\n }\n\n :root:has(.altertable-active-filters) {\n --atbl-active-filters-clearance: calc(env(safe-area-inset-bottom, 0px) + 2 * var(--atbl-space-md) + max(44px, var(--atbl-control-height)) + 2 * var(--atbl-space-xs) + 2px);\n scroll-padding-block-end: var(--atbl-active-filters-clearance);\n }\n\n .altertable-app-layout:has(.altertable-active-filters) {\n padding-block-end: var(--atbl-active-filters-clearance);\n }\n}\n\n/* packages/data-app-react/src/ui/AppScope.css */\n@layer atbl.components {\n .altertable-app-scope {\n display: inline-flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 5px;\n max-width: 100%;\n }\n\n .altertable-app-scope-organization {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: .06em;\n text-transform: uppercase;\n line-height: 1.3;\n }\n\n .altertable-app-scope-environment {\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: .01em;\n border-radius: 999px;\n padding: 4px 8px;\n }\n}\n\n/* packages/data-app-react/src/ui/LiveControl.css */\n@layer atbl.components {\n .altertable-live-control {\n display: inline-flex;\n min-block-size: var(--atbl-control-height);\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex: none;\n align-self: flex-start;\n align-items: stretch;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n }\n\n .altertable-live-control .altertable-button[data-size=\"icon\"] {\n position: relative;\n width: calc(var(--atbl-control-height) - 2px);\n min-width: calc(var(--atbl-control-height) - 2px);\n min-height: calc(var(--atbl-control-height) - 2px);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n box-shadow: none;\n background: none;\n border: 0;\n border-radius: 0;\n padding: 0;\n }\n\n .altertable-live-control[data-active=\"true\"] {\n border-color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button {\n --atbl-control-selected-text: var(--atbl-positive);\n color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button:after {\n position: absolute;\n content: \"\";\n background: currentColor;\n border-radius: 50%;\n width: 5px;\n height: 5px;\n top: 5px;\n right: 5px;\n }\n\n .altertable-live-frequency {\n width: calc(var(--atbl-control-height) - .5rem);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n border-left: 1px solid var(--atbl-border);\n }\n\n .altertable-live-frequency > button {\n display: grid;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n border-radius: 0;\n place-items: center;\n width: 100%;\n height: 100%;\n padding: 0;\n }\n\n .altertable-live-frequency-popover {\n z-index: 1000;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n min-width: 190px;\n }\n\n .altertable-live-frequency-popover [role=\"option\"] {\n display: flex;\n min-height: calc(var(--atbl-control-height) - 2px);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n }\n\n .altertable-live-frequency-popover [role=\"listbox\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n flex-direction: column;\n }\n\n .altertable-live-frequency-popover [role=\"option\"][data-selected] {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-live-frequency-popover [role=\"option\"]:not([data-selected]) svg {\n visibility: hidden;\n }\n\n .altertable-visually-hidden {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/PresentStory.css */\n@layer atbl.components {\n :root:has(.altertable-present-dialog:modal) {\n overflow: hidden;\n }\n\n .altertable-present-launch {\n position: relative;\n display: inline-flex;\n }\n\n .altertable-present-dialog:not([open]) {\n display: none;\n }\n\n .altertable-present-dialog {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto;\n height: var(--atbl-frame-visible-height);\n background: var(--atbl-background);\n color: var(--atbl-text);\n overscroll-behavior: contain;\n opacity: 0;\n transition: opacity .2s var(--atbl-ease-standard), overlay .2s allow-discrete, display .2s allow-discrete;\n border: 0;\n width: 100vw;\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-present-dialog[open] {\n opacity: 1;\n }\n\n @starting-style {\n .altertable-present-dialog[open] {\n opacity: 0;\n }\n }\n\n .altertable-present-dialog::backdrop {\n background: none;\n }\n\n .altertable-present-shell {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n }\n\n .altertable-present-header, .altertable-present-nav {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-md);\n flex: none;\n width: min(100% - 48px, 1200px);\n margin: 0 auto;\n }\n\n .altertable-present-header {\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n min-height: 60px;\n }\n\n .altertable-present-title {\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n align-items: center;\n gap: 3px 6px;\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title strong {\n font-size: var(--atbl-type-body-size);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 650;\n line-height: 24px;\n }\n\n .altertable-present-connector {\n color: var(--atbl-muted);\n font-weight: 400;\n }\n\n .altertable-present-title .altertable-app-scope {\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title .altertable-app-scope-environment {\n line-height: 16px;\n }\n\n .altertable-present-count {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n }\n\n .altertable-present-actions {\n display: flex;\n flex: none;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-present-theme {\n display: inline-flex;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-present-main {\n display: grid;\n grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);\n align-content: safe center;\n align-items: start;\n column-gap: clamp(28px, 5vw, 72px);\n row-gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg) 0;\n overflow-y: auto;\n overscroll-behavior-y: contain;\n animation: altertable-present-step var(--atbl-duration-slow) var(--atbl-ease-enter);\n flex: 1;\n width: min(100% - 64px, 1100px);\n min-height: 0;\n margin: 0 auto;\n }\n\n @keyframes altertable-present-step {\n from {\n opacity: 0;\n translate: 0 6px;\n }\n }\n\n .altertable-present-copy {\n min-width: 0;\n }\n\n .altertable-present-copy > h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n font-size: clamp(30px, 3.8vw, 50px);\n font-weight: 650;\n line-height: 1.1;\n }\n\n .altertable-present-copy > h2:focus {\n outline: none;\n }\n\n .altertable-present-explore {\n margin-top: var(--atbl-space-lg);\n }\n\n .altertable-present-copy > p {\n margin: var(--atbl-space-md) 0 0;\n color: var(--atbl-muted);\n text-wrap: pretty;\n max-width: 58ch;\n font-size: clamp(15px, 1.5vw, 18px);\n line-height: 1.55;\n }\n\n .altertable-present-visual {\n grid-column: 2;\n grid-row: 1;\n display: flex;\n padding: var(--atbl-space-lg);\n overflow: auto;\n overscroll-behavior: contain;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: center;\n min-width: 0;\n min-height: clamp(280px, 48vh, 470px);\n max-height: 62vh;\n }\n\n .altertable-present-visual > * {\n width: 100%;\n }\n\n .altertable-present-visual[data-kind=\"metric\"] {\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-present-nav {\n justify-content: space-between;\n min-height: 72px;\n }\n\n .altertable-present-nav > .altertable-tooltip-trigger > button:disabled {\n color: var(--atbl-muted);\n }\n\n .altertable-present-dots {\n display: flex;\n align-items: center;\n }\n\n .altertable-present-dots button {\n display: grid;\n border-radius: var(--atbl-radius-control);\n background: none;\n border: 0;\n place-items: center;\n width: 28px;\n height: 44px;\n padding: 0;\n }\n\n .altertable-present-dots button:before {\n background: var(--atbl-border);\n content: \"\";\n transition: width .2s var(--atbl-ease-enter), background-color .2s var(--atbl-ease-standard);\n border-radius: 999px;\n width: 7px;\n height: 7px;\n }\n\n .altertable-present-dots button:hover:before {\n background: var(--atbl-muted);\n }\n\n .altertable-present-dots button[aria-current=\"step\"]:before {\n background: var(--atbl-accent);\n width: 20px;\n }\n\n @media (max-width: 800px) {\n .altertable-present-main {\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n gap: var(--atbl-space-lg);\n width: min(100% - 40px, 640px);\n }\n\n .altertable-present-visual {\n grid-column: 1;\n grid-row: 2;\n min-height: 220px;\n max-height: none;\n }\n }\n\n @media (max-width: 600px) {\n .altertable-present-header, .altertable-present-nav {\n width: calc(100% - 32px);\n }\n\n .altertable-present-header {\n min-height: 56px;\n }\n\n .altertable-present-main {\n padding: var(--atbl-space-md) 0;\n width: calc(100% - 32px);\n }\n\n .altertable-present-visual {\n padding: var(--atbl-space-md);\n }\n\n .altertable-present-nav {\n gap: 0;\n min-height: 64px;\n }\n\n .altertable-present-dots button {\n width: 24px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-present-dialog, .altertable-present-dots button:before {\n transition: none;\n }\n\n .altertable-present-main {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ShimmerText.css */\n@layer atbl.components {\n .altertable-shimmer-text {\n position: relative;\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .altertable-shimmer-text-base {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: .65;\n }\n\n .altertable-shimmer-text-sweep {\n position: absolute;\n color: var(--atbl-text);\n mask-image: linear-gradient(90deg, #0000 10%, #000 45% 55%, #0000 90%);\n animation: 1.6s linear infinite altertable-shimmer-text-sweep;\n inset: 0;\n }\n\n .altertable-shimmer-text-sweep > span {\n display: block;\n animation: 1.6s linear infinite altertable-shimmer-text-counter-sweep;\n }\n\n .altertable-shimmer-text-sweep > span:before {\n content: attr(data-text);\n }\n\n @keyframes altertable-shimmer-text-sweep {\n from {\n transform: translateX(-100%);\n }\n\n to {\n transform: translateX(100%);\n }\n }\n\n @keyframes altertable-shimmer-text-counter-sweep {\n from {\n transform: translateX(100%);\n }\n\n to {\n transform: translateX(-100%);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-shimmer-text-sweep, .altertable-shimmer-text-sweep > span {\n animation: none;\n }\n\n .altertable-shimmer-text-sweep {\n display: none;\n }\n\n .altertable-shimmer-text-base {\n opacity: 1;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/LoadingStatus.css */\n@layer atbl.components {\n .altertable-loading-status {\n position: absolute;\n inset: var(--atbl-space-md) 0 var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n display: grid;\n padding-inline: var(--atbl-space-md);\n pointer-events: none;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n place-items: center;\n }\n\n .altertable-loading-status:empty {\n visibility: hidden;\n }\n\n .altertable-data-widget-body:has(.altertable-loading-status[data-visible]) .altertable-skeleton {\n animation: none;\n opacity: .35;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] > .altertable-loading-status, .altertable-metric-widget .altertable-loading-status {\n top: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RefreshControl.css */\n@layer atbl.components {\n .altertable-refresh-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-refresh-loading, .altertable-refresh-cancel, .altertable-refresh-control[data-refreshing] .altertable-refresh-idle {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n display: block;\n animation: .9s linear infinite altertable-refresh-spin;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:has(.altertable-refresh-cancel):hover .altertable-refresh-loading {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:hover .altertable-refresh-cancel {\n display: block;\n }\n\n .altertable-refresh-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n display: grid;\n text-align: end;\n }\n\n .altertable-refresh-status > span {\n grid-area: 1 / 1;\n }\n\n @keyframes altertable-refresh-spin {\n to {\n rotate: 360deg;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n animation: 1.2s ease-in-out infinite alternate altertable-refresh-pulse;\n }\n }\n\n @keyframes altertable-refresh-pulse {\n to {\n opacity: .35;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppToolbar.css */\n@layer atbl.components {\n .altertable-app-toolbar {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-sm);\n width: 100%;\n }\n\n .altertable-app-toolbar-updated {\n color: color-mix(in srgb, var(--atbl-muted) 78%, var(--atbl-background));\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n margin-right: 6px;\n }\n\n .altertable-app-toolbar-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-xs);\n flex-wrap: wrap;\n margin-inline-start: auto;\n }\n\n .altertable-app-toolbar {\n flex-shrink: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/VariableBar.css */\n@layer atbl.components {\n .altertable-variable-bar {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-variable-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-primary-controls {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-primary-control-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-filter-bar-inputs {\n display: flex;\n align-items: center;\n gap: calc((var(--atbl-space-xs) + var(--atbl-space-sm)) / 2);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar-inputs > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-bar-inputs > :-webkit-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :-moz-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :is(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-sheet-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-variable-searches > .altertable-search-landmark {\n flex: 280px;\n max-width: 25rem;\n }\n\n .altertable-variable-searches .altertable-search-input-wrap {\n flex: 1;\n width: auto;\n }\n\n .altertable-sheet-filters {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: start;\n gap: var(--atbl-space-md);\n }\n\n .altertable-control-count {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n justify-content: center;\n align-items: center;\n block-size: 1.25rem;\n min-inline-size: 1.25rem;\n padding-inline-start: .25rem;\n padding-inline-end: .25rem;\n }\n\n .altertable-display-options-trigger {\n margin-inline-start: auto;\n }\n\n .altertable-display-options-button {\n position: relative;\n }\n\n .altertable-control-indicator {\n position: absolute;\n background: var(--atbl-accent);\n border-radius: 50%;\n block-size: 5px;\n inline-size: 5px;\n top: 5px;\n }\n\n .altertable-control-indicator:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-display-options-popover {\n z-index: 90;\n overflow: auto;\n padding: var(--atbl-space-md);\n border-radius: var(--atbl-radius-overlay);\n width: min(360px, 100vw - 24px);\n max-height: min(560px, 80dvh);\n }\n\n .altertable-display-options-dialog {\n display: grid;\n gap: var(--atbl-space-sm);\n outline: none;\n }\n\n .altertable-display-option > * {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-display-option .react-aria-SelectValue {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-filter-sheet {\n width: min(360px, 100vw);\n }\n\n .altertable-toolbar-filter-editors {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-active-filters {\n display: flex;\n gap: var(--atbl-space-xs);\n position: fixed;\n z-index: 40;\n opacity: 1;\n transition: opacity var(--atbl-duration-normal) var(--atbl-ease-enter), transform var(--atbl-duration-normal) var(--atbl-ease-enter);\n max-inline-size: calc(100vw - 2 * (var(--atbl-space-md) + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));\n padding: var(--atbl-space-xs);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n flex-wrap: nowrap;\n align-items: center;\n min-width: 0;\n margin: 0;\n top: calc(100dvh - var(--atbl-frame-inset-bottom, 0px) - var(--atbl-space-md) - env(safe-area-inset-bottom, 0px));\n transform: translate(-50%, -100%);\n }\n\n .altertable-active-filters:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n @starting-style {\n .altertable-active-filters {\n opacity: 0;\n transform: translate(-50%, calc(-100% + var(--atbl-space-sm)));\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-active-filters {\n transition-property: opacity;\n }\n }\n\n .altertable-active-filters > button {\n white-space: nowrap;\n flex: none;\n }\n\n .altertable-filter-summaries {\n display: flex;\n gap: var(--atbl-space-xs);\n overflow-x: auto;\n white-space: nowrap;\n min-inline-size: 0;\n }\n\n .altertable-filter-summaries > * {\n flex: none;\n }\n\n .altertable-active-filter-label {\n gap: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n padding-inline-end: var(--atbl-space-xs);\n }\n\n .altertable-active-filter .altertable-picker-value {\n font-weight: inherit;\n max-width: none;\n }\n\n .altertable-active-filter {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n align-items: center;\n }\n\n .altertable-active-filter-remove {\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 14%, var(--atbl-subtle));\n color: var(--atbl-muted);\n margin-inline-end: var(--atbl-space-xs);\n }\n\n @media (any-pointer: coarse) {\n .altertable-active-filters .altertable-button {\n min-block-size: 44px;\n min-inline-size: 44px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataViewToast.css */\n@layer atbl.components {\n .altertable-data-view-toast-region {\n position: fixed;\n z-index: 100;\n left: 16px;\n right: 16px;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + max(20px, env(safe-area-inset-bottom)));\n display: flex;\n pointer-events: none;\n justify-content: center;\n }\n\n .altertable-data-view-toast-region[data-position=\"top\"] {\n top: calc(var(--atbl-frame-inset-top, 0px) + max(20px, env(safe-area-inset-top)));\n bottom: auto;\n }\n\n .altertable-data-view-toast {\n display: flex;\n overflow: auto;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n pointer-events: auto;\n align-items: center;\n gap: 10px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: min(100%, 560px);\n max-height: 40dvh;\n padding: 10px 12px;\n line-height: 1.45;\n }\n\n .altertable-data-view-toast > svg {\n color: var(--atbl-muted);\n flex: none;\n }\n\n .altertable-data-view-toast[data-state=\"error\"] > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-data-view-toast > span {\n min-width: 0;\n }\n\n .altertable-data-view-toast .altertable-button {\n flex: none;\n min-height: 32px;\n }\n\n .altertable-data-view-toast-spinner {\n animation: 1s linear infinite altertable-data-view-toast-spin;\n }\n\n @keyframes altertable-data-view-toast-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-data-view-toast-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataBoundary.css */\n@layer atbl.components {\n .altertable-data-boundary {\n min-width: 0;\n }\n\n .altertable-data-boundary-notice {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n background: none;\n border: 0;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n min-height: 44px;\n margin: 0 0 14px;\n padding: 8px 0;\n line-height: 1.45;\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] {\n border-color: color-mix(in srgb, var(--atbl-danger) 30%, var(--atbl-border));\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] > svg {\n color: var(--atbl-danger);\n flex: none;\n }\n\n .altertable-data-boundary-message {\n flex: 240px;\n }\n\n .altertable-data-boundary-action {\n margin-left: auto;\n }\n\n .altertable-data-boundary-action button {\n min-height: 32px;\n }\n}\n\n/* packages/data-app-react/src/ui/StatusPanel.css */\n@layer atbl.components {\n .altertable-status-panel {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n line-height: 1.5;\n }\n\n .altertable-status-panel[data-status=\"error\"] {\n box-sizing: border-box;\n box-shadow: none;\n display: grid;\n grid-template-columns: 18px minmax(0, 1fr);\n background: none;\n border: 0;\n align-items: start;\n gap: 18px 14px;\n width: min(100%, 520px);\n margin: clamp(16px, 4vw, 48px) auto 0;\n }\n\n .altertable-status-panel[data-status=\"error\"] > svg {\n color: var(--atbl-danger);\n margin-top: 1px;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-action {\n grid-column: 2;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-copy {\n min-width: 0;\n }\n\n .altertable-status-panel strong {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-status-panel p {\n margin: 4px 0 0;\n }\n\n .altertable-status-panel small {\n display: block;\n overflow-wrap: anywhere;\n margin-top: 6px;\n }\n\n .altertable-status-action {\n flex: none;\n }\n\n @media (max-width: 600px) {\n .altertable-status-panel:not([data-status=\"error\"]) {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/GettingStarted.css */\n@layer atbl.components {\n .starter-eyebrow {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n letter-spacing: .08em;\n text-transform: uppercase;\n font-weight: 700;\n }\n\n .starter-connection {\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: flex-start;\n gap: 20px;\n min-width: 0;\n padding: 30px;\n }\n\n .starter-connection-icon {\n display: grid;\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n border-radius: 14px;\n flex: none;\n place-items: center;\n width: 48px;\n height: 48px;\n }\n\n .starter-connection[data-state=\"connected\"] .starter-connection-icon {\n background: color-mix(in srgb, var(--atbl-positive) 12%, var(--atbl-surface));\n color: var(--atbl-positive);\n }\n\n .starter-connection[data-state=\"error\"] .starter-connection-icon {\n background: var(--atbl-danger-subtle, color-mix(in srgb, var(--atbl-danger) 9%, var(--atbl-surface)));\n color: var(--atbl-danger);\n }\n\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: 1.5s linear infinite starter-spin;\n }\n\n .starter-connection-copy {\n flex: 1;\n min-width: 0;\n }\n\n .starter-connection h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(26px, 3.2vw, 36px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.035em;\n margin: 8px 0 6px;\n line-height: 1.15;\n }\n\n .starter-connection p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: 62ch;\n margin: 0;\n line-height: 1.55;\n }\n\n .starter-connection small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 14px;\n }\n\n .starter-connection > .altertable-button {\n flex: none;\n align-self: center;\n }\n\n .starter-next {\n min-width: 0;\n padding: 8px 0;\n }\n\n .starter-next-heading h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(20px, 2.4vw, 26px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.025em;\n margin: 8px 0 4px;\n }\n\n .starter-next-heading p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n margin: 0;\n line-height: 1.5;\n }\n\n .starter-steps {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n list-style: none;\n counter-reset: starter-step;\n gap: 12px;\n margin: 22px 0 0;\n padding: 0;\n }\n\n .starter-steps li {\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n counter-increment: starter-step;\n min-width: 0;\n padding: 20px;\n }\n\n .starter-steps li:before {\n display: block;\n color: var(--atbl-accent);\n font-size: var(--atbl-type-meta-size);\n content: \"0\" counter(starter-step);\n margin-bottom: 22px;\n font-weight: 700;\n }\n\n .starter-steps strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n }\n\n .starter-steps p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 8px 0 0;\n line-height: 1.5;\n }\n\n .starter-steps code {\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: .92em;\n }\n\n @keyframes starter-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: none;\n }\n }\n\n @media (max-width: 700px) {\n .starter-connection {\n flex-wrap: wrap;\n padding: 22px;\n }\n\n .starter-connection > .altertable-button {\n margin-left: 68px;\n }\n\n .starter-steps {\n grid-template-columns: 1fr;\n }\n\n .starter-steps li:before {\n margin-bottom: 10px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Stack.css */\n@layer atbl.components {\n .altertable-stack {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n min-width: 0;\n }\n\n .altertable-stack[data-gap=\"sm\"] {\n gap: var(--atbl-space-sm);\n }\n\n .altertable-stack[data-gap=\"md\"] {\n gap: var(--atbl-space-md);\n }\n\n .altertable-stack[data-gap=\"lg\"] {\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-stack > * {\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Inspect.css */\n@layer atbl.components {\n .altertable-inspect-trigger {\n display: inline-grid;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n }\n\n .altertable-inspect-trigger:hover, .altertable-inspect-trigger[data-open=\"true\"] {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :is(.altertable-metric-widget .altertable-metric-help, .altertable-data-widget .altertable-data-widget-help) {\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n :is(.altertable-data-widget-help[data-has-action=\"true\"], .altertable-metric-widget:hover .altertable-metric-help, .altertable-metric-widget:focus-within .altertable-metric-help, .altertable-data-widget:hover .altertable-data-widget-help, .altertable-data-widget:focus-within .altertable-data-widget-help, .altertable-metric-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-data-widget-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-metric-help:has([data-open=\"true\"]), .altertable-data-widget-help:has([data-open=\"true\"])) {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-inspect-trigger, .altertable-metric-help, .altertable-data-widget-help {\n transition: none;\n }\n }\n\n .altertable-widget-heading-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--atbl-space-sm);\n box-shadow: none;\n color: inherit;\n font: inherit;\n letter-spacing: inherit;\n text-align: left;\n background: none;\n border: 0;\n border-radius: 2px;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button.altertable-widget-heading-trigger:hover:not(:disabled), .altertable-button.altertable-widget-heading-trigger[data-open=\"true\"] {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-button.altertable-widget-heading-trigger:focus-visible {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-widget-heading-trigger > svg {\n display: inline-block;\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n flex: none;\n align-self: center;\n margin-inline-start: var(--atbl-space-xs);\n }\n\n .altertable-widget-heading-trigger:hover > svg, .altertable-widget-heading-trigger[data-open=\"true\"] > svg {\n opacity: 1;\n }\n\n .altertable-widget-heading-trigger:focus-visible > svg {\n opacity: 1;\n }\n\n @media (hover: none) {\n .altertable-widget-heading-trigger > svg {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-heading-trigger > svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetViewTabs.css */\n@layer atbl.components {\n .altertable-widget-view-tabs > .react-aria-Tabs > .react-aria-TabList {\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n border: 0;\n gap: 4px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n margin: 0;\n padding: 3px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab {\n border-radius: calc(var(--atbl-radius-control) - 2px);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n border: 0;\n margin: 0;\n padding: 6px 11px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-control);\n color: var(--atbl-text);\n }\n\n .altertable-widget-view-tabs .react-aria-TabPanels {\n padding-block-start: var(--atbl-space-md);\n }\n}\n\n/* packages/data-app-react/src/ui/HelpPopover.css */\n@layer atbl.components {\n .altertable-help-popover {\n z-index: 1000;\n overflow: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-md);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n animation: altertable-popover-in var(--atbl-duration-fast) var(--atbl-ease-enter);\n max-width: calc(100vw - 24px);\n max-height: min(65dvh, 560px);\n }\n\n @keyframes altertable-popover-in {\n from {\n opacity: 0;\n translate: 0 -2px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-help-popover {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DateTimeTooltip.css */\n@layer atbl.components {\n .altertable-date-time-tooltip {\n width: max-content;\n max-width: min(480px, 100vw - 24px);\n padding: 10px 12px;\n }\n\n .altertable-date-time-rows {\n display: grid;\n gap: 6px;\n }\n\n .altertable-date-time-row {\n display: grid;\n grid-template-columns: minmax(80px, 1fr) auto;\n font-variant-numeric: tabular-nums;\n gap: 16px;\n }\n\n .altertable-date-time-row time {\n text-align: right;\n overflow-wrap: anywhere;\n }\n\n .altertable-date-time-label {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/DateDisplay.css */\n@layer atbl.components {\n .altertable-date-display {\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n .altertable-date-display-trigger {\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/DataTable.css */\n@layer atbl.components {\n .altertable-data-table-scroll {\n overflow-x: auto;\n overscroll-behavior-x: none;\n max-width: 100%;\n }\n\n .altertable-data-table-search {\n margin: 8px 0 12px;\n }\n\n .altertable-data-table {\n border-collapse: collapse;\n font-size: var(--atbl-type-meta-size);\n width: 100%;\n }\n\n .altertable-data-table caption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n text-align: start;\n padding: 0 0 8px;\n }\n\n .altertable-data-table th, .altertable-data-table td {\n border-bottom: 1px solid var(--atbl-border);\n text-align: start;\n white-space: nowrap;\n cursor: default;\n padding: 9px 10px;\n }\n\n .altertable-data-table thead th {\n color: var(--atbl-muted);\n font-weight: 650;\n }\n\n .altertable-data-table tbody th {\n color: var(--atbl-text);\n font-weight: 550;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table-timestamp {\n color: inherit;\n font: inherit;\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-data-table-timestamp:hover {\n color: var(--atbl-accent);\n }\n\n .altertable-data-table-timestamp:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-data-table tbody tr:last-child :-webkit-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :-moz-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :is(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table .altertable-data-table-empty-row td {\n white-space: normal;\n padding: 0;\n }\n\n .altertable-data-table-share {\n font-variant-numeric: tabular-nums;\n }\n}\n\n/* packages/data-app-react/src/ui/TableWidget.css */\n@layer atbl.components {\n .altertable-table-widget-content {\n padding: var(--atbl-space-md) var(--atbl-space-lg) var(--atbl-space-lg);\n min-width: 0;\n }\n\n :where(.altertable-visualization-widget-content) > .altertable-table-widget-content {\n padding: 0;\n }\n\n .altertable-table-widget-content .altertable-data-table-search {\n margin-top: 0;\n }\n\n .altertable-table-pagination {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px 16px;\n padding: 12px 10px 4px;\n }\n\n .altertable-table-pagination-controls {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n }\n\n .altertable-table-widget .altertable-data-widget-body {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-table-widget .altertable-loading-status {\n top: calc(var(--atbl-space-sm) + 1lh + 19px);\n }\n}\n\n/* packages/data-app-react/src/ui/TextContent.css */\n@layer atbl.components {\n .altertable-text-content {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: var(--atbl-type-body-size);\n line-height: var(--atbl-type-body-leading);\n min-width: 0;\n }\n\n .altertable-text-content > :first-child {\n margin-top: 0;\n }\n\n .altertable-text-content > :last-child {\n margin-bottom: 0;\n }\n\n .altertable-text-content :where(p, ul, ol) {\n margin-block: 0 var(--atbl-space-sm);\n }\n\n .altertable-text-content :where(ul, ol) {\n padding-inline-start: 1.5em;\n }\n\n .altertable-text-content a {\n color: var(--atbl-accent);\n text-underline-offset: 3px;\n text-decoration-thickness: 1px;\n }\n\n .altertable-text-content a:hover {\n color: var(--atbl-text);\n text-decoration-thickness: 2px;\n }\n\n .altertable-text-content h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n\n .altertable-text-content :where(h3, h4, h5, h6) {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n color: var(--atbl-muted);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n}\n\n/* packages/data-app-react/src/ui/TextWidget.css */\n@layer atbl.components {\n .altertable-text-widget .altertable-text-content {\n min-block-size: calc(3em + 2 * var(--atbl-space-sm));\n }\n\n .altertable-text-widget-skeleton {\n display: grid;\n gap: var(--atbl-space-sm);\n max-width: var(--atbl-text-measure);\n }\n\n .altertable-text-widget-skeleton > .altertable-skeleton {\n width: 100%;\n height: 1em;\n }\n\n .altertable-text-widget-skeleton > :last-child {\n width: 65%;\n }\n}\n\n/* packages/data-app-react/src/ui/Breakdown.css */\n@layer atbl.components {\n .altertable-breakdown {\n display: grid;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-breakdown-summary {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n }\n\n .altertable-breakdown-summary strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-breakdown-bar {\n display: flex;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 12px;\n }\n\n .altertable-breakdown-bar > span {\n display: block;\n flex: none;\n height: 100%;\n }\n\n .altertable-breakdown-list {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));\n gap: 6px 18px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-breakdown-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto auto;\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n align-items: baseline;\n column-gap: 8px;\n min-width: 0;\n padding: 8px 0;\n }\n\n .altertable-breakdown-row dt {\n display: flex;\n overflow-wrap: anywhere;\n color: var(--atbl-text);\n align-items: baseline;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-breakdown-row dd {\n font-variant-numeric: tabular-nums;\n text-align: end;\n white-space: nowrap;\n margin: 0;\n }\n\n .altertable-breakdown-swatch {\n display: inline-block;\n background: var(--altertable-breakdown-color);\n border-radius: 2px;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-breakdown-row[data-empty=\"true\"] .altertable-breakdown-swatch {\n border: 1px solid var(--atbl-border);\n background: none;\n }\n\n .altertable-breakdown-value {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-breakdown-share {\n color: var(--atbl-muted);\n min-width: 4ch;\n }\n}\n\n/* packages/data-app-react/src/ui/Ranking.css */\n@layer atbl.components {\n .altertable-ranking {\n display: grid;\n gap: var(--atbl-space-md);\n list-style: none;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-ranking li {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-ranking-reading {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-ranking-reading > span {\n overflow-wrap: anywhere;\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: -.01em;\n min-width: 0;\n line-height: 1.3;\n }\n\n .altertable-ranking-reading strong {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-ranking-track {\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 6px;\n }\n\n .altertable-ranking-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n height: 100%;\n }\n\n .altertable-ranking-detail {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetDisclosure.css */\n@layer atbl.components {\n .altertable-widget-disclosure {\n margin: 16px 20px 20px;\n }\n\n .altertable-widget-disclosure > summary {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n align-items: center;\n gap: 8px;\n min-height: 38px;\n padding: 0 10px;\n }\n\n .altertable-widget-disclosure > summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-widget-disclosure > summary:hover, .altertable-widget-disclosure[open] > summary {\n background: var(--atbl-subtle);\n }\n\n .altertable-widget-disclosure > summary svg {\n color: var(--atbl-muted);\n transition: transform var(--atbl-duration-normal) var(--atbl-ease-standard);\n }\n\n .altertable-widget-disclosure[open] > summary svg {\n transform: rotate(180deg);\n }\n\n .altertable-widget-disclosure-content {\n margin-top: 12px;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-disclosure > summary svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Comparison.css */\n@layer atbl.components {\n .altertable-comparison-visual {\n display: grid;\n gap: var(--atbl-space-lg);\n width: 100%;\n margin: 0;\n }\n\n .altertable-comparison-visual figcaption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-heading-weight);\n }\n\n .altertable-comparison-row {\n display: grid;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-comparison-row > div {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n }\n\n .altertable-comparison-row > div > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-comparison-row strong {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n font-size: var(--atbl-type-metric-size);\n font-variant-numeric: tabular-nums;\n overflow-wrap: anywhere;\n letter-spacing: -.04em;\n max-inline-size: 100%;\n }\n\n .altertable-comparison-track {\n display: block;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n width: 100%;\n height: 10px;\n }\n\n .altertable-comparison-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n min-width: 2px;\n height: 100%;\n }\n\n .altertable-comparison-row[data-period=\"previous\"] .altertable-comparison-track > span {\n background: var(--atbl-muted);\n opacity: .45;\n }\n\n .altertable-comparison-change {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n font-variant-numeric: tabular-nums;\n margin: 0;\n }\n\n .altertable-comparison-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-comparison-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-about-visual .altertable-comparison-visual {\n gap: var(--atbl-space-md);\n }\n\n .altertable-about-visual .altertable-comparison-row {\n gap: var(--atbl-space-xs);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] {\n gap: clamp(var(--atbl-space-lg), 4vh, calc(var(--atbl-space-xl) + var(--atbl-space-xs)));\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] figcaption {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] > div {\n align-items: flex-start;\n gap: var(--atbl-space-sm);\n flex-direction: column-reverse;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: clamp(calc(var(--atbl-type-metric-size) * 1.5), 7vw, calc(var(--atbl-type-metric-size) * 2.75));\n line-height: 1;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"previous\"] strong {\n font-size: var(--atbl-type-metric-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-track {\n height: 12px;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-change {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-about-visual .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: calc(var(--atbl-type-metric-size) * 1.125);\n }\n}\n\n/* packages/data-app-react/src/ui/BarChart.css */\n@layer atbl.components {\n .altertable-selectable-bars {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll {\n overflow-x: auto;\n width: 100%;\n min-width: 0;\n height: 260px;\n margin: 12px 2px 14px;\n }\n\n .altertable-selectable-bars-item {\n display: flex;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex-direction: column;\n flex: 1;\n align-items: center;\n min-width: 36px;\n padding: 0;\n }\n\n .altertable-selectable-bars-item:focus {\n outline: none;\n }\n\n .altertable-selectable-bars-area {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n justify-content: center;\n align-items: end;\n width: 100%;\n height: 220px;\n }\n\n .altertable-selectable-bars-label {\n color: inherit;\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-chart-item-actions {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 36px;\n }\n\n .altertable-chart-item-actions > .altertable-tooltip-trigger.altertable-chart-column[data-variant=\"chart\"] {\n flex: 1;\n align-items: flex-start;\n width: auto;\n min-width: 36px;\n height: auto;\n }\n\n .altertable-chart-item-actions .altertable-chart-column > button {\n width: 100%;\n }\n\n .altertable-chart-item-actions > span {\n align-self: center;\n }\n\n .altertable-chart-item-actions > span .altertable-button {\n font-size: var(--atbl-type-meta-size);\n min-width: 0;\n padding: 4px 6px;\n }\n\n .altertable-selectable-bars-plot {\n position: relative;\n }\n\n .altertable-selectable-bars-items {\n position: relative;\n display: flex;\n }\n\n .altertable-chart-item-label-row {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-height: var(--atbl-control-compact-height);\n color: var(--atbl-muted);\n min-width: 0;\n padding: 4px 4px 0;\n }\n\n .altertable-chart-item-label-row > span {\n display: inline-flex;\n }\n\n .altertable-chart-item-label-row .altertable-selectable-bars-label {\n --atbl-control-hover-surface: transparent;\n --atbl-control-open-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n color: inherit;\n align-items: center;\n gap: 4px;\n min-width: 0;\n max-width: 100%;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-selectable-bars-label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-selectable-bars-label > svg {\n flex-shrink: 0;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label {\n padding: var(--atbl-space-xs) 6px;\n border-radius: var(--atbl-radius-control);\n border: 1px solid #0000;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n}\n\n/* packages/data-app-react/src/ui/UpdatedAt.css */\n@layer atbl.components {\n .altertable-updated-at {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n border: 0;\n align-self: flex-start;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0;\n }\n\n .altertable-updated-at:hover {\n color: var(--atbl-text);\n }\n}\n\n/* packages/data-app-react/src/ui/data-identifiers.css */\n@layer atbl.components {\n .altertable-data-identifier {\n border: 1px solid color-mix(in srgb, var(--atbl-border) 65%, var(--atbl-surface));\n background: color-mix(in srgb, var(--atbl-subtle) 65%, var(--atbl-surface));\n color: var(--atbl-text);\n font-size: .85em;\n font-weight: 450;\n line-height: inherit;\n letter-spacing: -.01em;\n overflow-wrap: anywhere;\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n border-radius: .3em;\n padding: .06em .24em .08em;\n }\n\n .altertable-data-identifier-path {\n color: var(--atbl-muted);\n }\n\n .altertable-data-identifier-name {\n font-weight: 550;\n }\n}\n\n/* packages/data-app-react/src/ui/GlossaryDefinition.css */\n@layer atbl.components {\n .altertable-glossary-definition-trigger {\n display: inline;\n color: inherit;\n font: inherit;\n font-weight: inherit;\n text-align: inherit;\n text-decoration: underline dotted var(--atbl-muted);\n text-decoration-thickness: 1px;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-glossary-definition-trigger:hover, .altertable-glossary-definition-trigger[data-open=\"true\"] {\n text-decoration-color: var(--atbl-text);\n }\n\n .altertable-glossary-definition-trigger:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-glossary-definition-popover {\n width: min(320px, 100vw - 24px);\n }\n\n .altertable-glossary-definition-popover > strong {\n display: block;\n font-size: var(--atbl-type-label-size);\n margin-bottom: 4px;\n font-weight: 650;\n }\n}\n\n/* packages/data-app-react/src/ui/ExportControl.css */\n@layer atbl.components {\n .altertable-export-popover {\n z-index: 1000;\n max-height: min(320px, var(--available-height));\n overflow: auto;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n max-width: min(320px, 100vw - 32px);\n }\n\n .altertable-export-popover [role=\"menu\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-export-popover [role=\"menuitem\"] {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n min-height: 34px;\n }\n\n .altertable-export-format {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: none;\n }\n\n .altertable-export-all {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-export-all:before {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n content: \"\";\n top: -5px;\n left: 0;\n right: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/TrendChart.css */\n@layer atbl.components {\n .altertable-trend-chart {\n min-width: 0;\n }\n\n .altertable-trend-scroll {\n overflow-x: auto;\n margin: 12px 0 14px;\n padding: 3px;\n }\n\n .altertable-trend-plot {\n position: relative;\n }\n\n .altertable-trend-points {\n position: relative;\n display: flex;\n }\n\n .altertable-trend-point {\n --atbl-focus-outline: none;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex: 1;\n min-width: 0;\n padding: 0;\n }\n\n .altertable-trend-point:focus {\n outline: none;\n }\n\n .altertable-trend-point:focus-visible .altertable-trend-label {\n color: var(--atbl-text);\n text-decoration: underline;\n text-underline-offset: .2em;\n }\n\n .altertable-trend-hit {\n display: block;\n position: relative;\n height: 220px;\n }\n\n .altertable-trend-label {\n display: block;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 8px 3px 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ChartLegend.css */\n@layer atbl.components {\n .altertable-chart-legend-container {\n container: atbl-chart-legend / inline-size;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-legend {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: center;\n gap: var(--atbl-space-sm) var(--atbl-space-md);\n list-style: none;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n line-height: var(--atbl-type-label-leading);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"] {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-chart-legend[data-align=\"center\"] {\n justify-content: center;\n }\n\n .altertable-chart-legend[data-align=\"end\"] {\n justify-content: end;\n }\n\n .altertable-chart-legend-item {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-chart-legend-item[data-inactive] {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n .altertable-chart-legend-marker {\n display: inline-block;\n vertical-align: middle;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-chart-legend-marker:not([data-kind=\"square\"]) {\n width: 20px;\n height: 12px;\n }\n\n .altertable-chart-legend-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-chart-legend-action {\n display: flex;\n align-items: center;\n gap: inherit;\n color: inherit;\n font: inherit;\n text-align: left;\n background: none;\n border: 0;\n min-width: 0;\n max-width: 100%;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"center\"] {\n justify-items: center;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"end\"] {\n justify-items: end;\n }\n\n .altertable-chart-legend-overflow {\n grid-column: -2 / -1;\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n @container atbl-chart-legend (width >= 240px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 480px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 720px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n .altertable-chart-legend[data-layout=\"single-row\"] {\n align-items: start;\n }\n\n @container atbl-chart-legend (width < 240px) {\n .altertable-chart-legend[data-layout=\"single-row\"] {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n}\n\n/* packages/data-app-react/src/ui/PieChart.css */\n@layer atbl.components {\n .altertable-pie-chart {\n min-width: 0;\n }\n\n .altertable-pie-plot {\n position: relative;\n display: grid;\n place-items: center;\n margin: 12px 0 14px;\n }\n\n .altertable-pie-plot svg {\n display: block;\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-slice {\n stroke: var(--atbl-surface);\n stroke-width: 2;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice[data-active]) .altertable-pie-slice:not([data-active]) {\n opacity: .3;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-pie-slice {\n transition: none;\n }\n }\n\n .altertable-pie-empty {\n fill: var(--atbl-subtle);\n stroke: var(--atbl-border);\n }\n\n .altertable-pie-empty-label {\n position: absolute;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-pie-legend {\n gap: 0;\n margin-bottom: 14px;\n }\n\n .altertable-pie-legend .altertable-chart-legend-overflow {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n display: flex;\n color: var(--atbl-text);\n text-align: left;\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n align-items: center;\n gap: 10px;\n width: 100%;\n min-width: 0;\n padding: 8px 4px;\n }\n\n .altertable-pie-legend [data-open] > button {\n background: var(--atbl-subtle);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button:focus {\n outline: none;\n }\n\n .altertable-pie-label {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n\n .altertable-pie-menu-indicator {\n color: var(--atbl-muted);\n opacity: .5;\n }\n\n .altertable-pie-legend button:-webkit-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:-moz-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:is(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-tooltip-trigger.altertable-pie-tooltip[data-variant=\"chart\"] {\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-legend .altertable-chart-legend-item {\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger {\n flex: 1;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n font: inherit;\n }\n\n .altertable-pie-value {\n margin-inline-start: auto;\n }\n\n .altertable-pie-share {\n color: var(--atbl-muted);\n text-align: end;\n min-inline-size: 4ch;\n }\n\n .altertable-pie-slice:focus {\n outline: none;\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice:focus-visible) .altertable-pie-slice:not(:focus-visible) {\n opacity: .3;\n }\n\n .altertable-pie-slice:focus-visible {\n filter: brightness(1.15);\n }\n\n @media (forced-colors: active) {\n .altertable-pie-slice:focus-visible {\n stroke: Highlight;\n stroke-width: 3px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ScatterChart.css */\n@layer atbl.components {\n .altertable-scatter-chart {\n min-width: 0;\n }\n\n .altertable-scatter-axis-title {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n overflow-wrap: anywhere;\n margin: 14px 0 18px;\n }\n\n .altertable-scatter-axes {\n padding: 0 12px 24px 48px;\n }\n\n .altertable-scatter-plot {\n position: relative;\n border-left: 1px solid var(--atbl-border);\n height: 220px;\n }\n\n .altertable-scatter-gridline {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n left: 0;\n right: 0;\n }\n\n .altertable-scatter-gridline > span {\n position: absolute;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n width: 40px;\n top: 0;\n right: calc(100% + 8px);\n transform: translateY(-50%);\n }\n\n .altertable-scatter-x-tick {\n position: absolute;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n max-width: 32%;\n top: calc(100% + 8px);\n transform: translateX(-50%);\n }\n\n .altertable-scatter-x-tick[data-edge=\"0\"] {\n transform: none;\n }\n\n .altertable-scatter-x-tick[data-edge=\"2\"] {\n transform: translateX(-100%);\n }\n\n .altertable-scatter-x-title {\n text-align: center;\n margin: 8px 0 16px;\n }\n\n .altertable-scatter-point {\n display: grid;\n background: none;\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-scatter-point > span {\n background: var(--atbl-chart-1);\n opacity: .65;\n border: 1px solid var(--atbl-surface);\n border-radius: 50%;\n width: 9px;\n height: 9px;\n }\n\n .altertable-scatter-tooltip[data-open] {\n z-index: 1;\n }\n\n .altertable-scatter-tooltip[data-open] .altertable-scatter-point > span {\n opacity: 1;\n width: 12px;\n height: 12px;\n }\n\n .altertable-scatter-plot:has([data-open]) .altertable-scatter-tooltip:not([data-open]) .altertable-scatter-point > span {\n opacity: .3;\n }\n\n .altertable-scatter-point:focus {\n outline: none;\n }\n\n .altertable-tooltip-trigger.altertable-scatter-tooltip[data-variant=\"chart\"] {\n position: absolute;\n width: 24px;\n height: 24px;\n transform: translate(-50%, 50%);\n }\n}\n\n/* packages/data-app-react/src/ui/ComposedChart.css */\n@layer atbl.components {\n .altertable-composed-chart {\n font: inherit;\n color: var(--atbl-text);\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-canvas {\n position: absolute;\n pointer-events: none;\n width: 100%;\n height: 220px;\n inset: 0 0 auto;\n }\n\n .altertable-composed-chart-legend-below {\n padding-top: var(--atbl-space-md);\n }\n\n .altertable-composed-chart-legend-above {\n padding-bottom: var(--atbl-space-md);\n }\n\n .altertable-composed-chart[data-atbl-internal-pointer-focus] {\n --atbl-focus-outline: none;\n }\n\n .altertable-composed-chart [data-atbl-focus=\"inset\"]:focus:not(:focus-visible) {\n outline: none;\n }\n\n .altertable-composed-chart svg [tabindex=\"-1\"]:focus {\n outline: none;\n }\n}\n\n/* packages/data-app-react/src/ui/AnalyticsCharts.css */\n@layer atbl.components {\n .altertable-funnel-chart, .altertable-retention-chart, .altertable-journey-chart {\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n }\n\n .altertable-funnel-header {\n display: grid;\n gap: var(--atbl-space-md);\n padding-bottom: var(--atbl-space-lg);\n }\n\n .altertable-funnel-summary-item {\n display: grid;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-funnel-series-label {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n .altertable-funnel-series-value {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-emphasis-weight);\n }\n\n .altertable-funnel-path {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-funnel-scroll, .altertable-journey-scroll {\n overflow: auto;\n width: 100%;\n }\n\n .altertable-journey-scroll {\n max-height: 900px;\n }\n\n .altertable-analytics-note {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 8px 0;\n }\n\n .altertable-journey-plot {\n position: relative;\n }\n\n .altertable-journey-plot > svg {\n position: absolute;\n inset: 0;\n }\n\n .altertable-journey-stage {\n position: absolute;\n color: var(--atbl-muted);\n top: 0;\n }\n\n .altertable-journey-node {\n position: absolute;\n }\n\n .altertable-journey-bar {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--atbl-muted);\n left: 0;\n }\n\n .altertable-journey-bar[data-event] {\n background: var(--atbl-chart-5);\n }\n\n .altertable-journey-label {\n position: absolute;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n width: 100%;\n min-height: 64px;\n margin-bottom: 8px;\n padding: 8px 36px 8px 8px;\n bottom: 100%;\n }\n\n .altertable-journey-name {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n color: var(--atbl-text);\n font-weight: var(--atbl-type-label-weight);\n -webkit-box-orient: vertical;\n }\n\n .altertable-journey-expand {\n position: absolute;\n margin-bottom: 12px;\n bottom: 100%;\n right: 4px;\n }\n\n .altertable-journey-more {\n position: absolute;\n margin-top: 8px;\n top: 100%;\n left: 0;\n }\n\n .altertable-funnel-tooltip-detail {\n display: block;\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n }\n}\n\n/* packages/data-app-react/src/annotations/colors.css */\n@layer atbl.components {\n :root {\n --atbl-annotation-accent: #c026d3;\n --atbl-annotation-accent-hover: #a21caf;\n --atbl-annotation-on-accent: #fff;\n }\n\n .altertable-annotation-trigger, .altertable-annotation-composer {\n --atbl-control-selected-surface: var(--atbl-annotation-accent);\n --atbl-control-selected-text: var(--atbl-annotation-on-accent);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"], .altertable-annotation-trigger:not([aria-pressed]) {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"]:hover:not(:disabled) {\n --atbl-control-selected-surface: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-trigger:not([aria-pressed]) {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationBar.css */\n@layer atbl.components {\n .altertable-annotation-bar, .altertable-annotation-bar-panel {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-annotation-bar[data-theme=\"dark\"], .altertable-annotation-bar-panel[data-theme=\"dark\"] {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip[data-theme=\"dark\"]) {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-annotation-bar {\n position: fixed;\n z-index: 1200;\n display: flex;\n border-radius: 18px;\n align-items: center;\n gap: 4px;\n max-width: calc(100vw - 24px);\n padding: 8px;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .altertable-annotation-bar .altertable-button, .altertable-annotation-bar-panel .altertable-button {\n color: var(--bar-muted);\n font: inherit;\n flex-shrink: 0;\n width: auto;\n transition: none;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-count {\n white-space: nowrap;\n color: var(--bar-text);\n padding-inline-start: 6px;\n padding-inline-end: 6px;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle] {\n --atbl-cursor-action: grab;\n touch-action: none;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle]:active {\n --atbl-cursor-action: grabbing;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n border-radius: 12px;\n padding-inline-start: 14px;\n padding-inline-end: 14px;\n font-weight: 600;\n line-height: 1.25;\n }\n\n .altertable-annotation-bar-panel {\n position: fixed;\n z-index: 1201;\n overflow: auto;\n border-radius: 16px;\n width: min(420px, 100vw - 24px);\n max-height: min(440px, 45vh);\n margin: 0;\n padding: 6px;\n }\n\n .altertable-annotation-bar-panel header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 8px;\n }\n\n .altertable-annotation-bar-row {\n display: flex;\n border-radius: 10px;\n align-items: center;\n gap: 8px;\n padding: 4px;\n }\n\n .altertable-annotation-bar-row:hover, .altertable-annotation-bar-row:focus-within {\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar-row + .altertable-annotation-bar-row {\n border-top: 1px solid var(--bar-border);\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open {\n display: grid;\n text-align: left;\n flex: 1;\n justify-content: stretch;\n gap: 2px;\n min-width: 0;\n height: auto;\n padding: 4px 6px;\n }\n\n .altertable-annotation-bar-open strong {\n color: var(--bar-text);\n font-weight: 600;\n }\n\n .altertable-annotation-bar-open span {\n color: var(--bar-muted);\n overflow-wrap: anywhere;\n font-size: 13px;\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open:hover:not(:disabled) {\n background: none;\n }\n\n .altertable-annotation-bar-error {\n position: absolute;\n background: var(--bar-surface);\n color: var(--bar-text);\n border: 1px solid var(--bar-border);\n border-radius: 10px;\n padding: 8px 12px;\n font-size: 12px;\n bottom: calc(100% + 8px);\n left: 0;\n right: 0;\n }\n\n @media (max-width: 420px) {\n .altertable-annotation-bar {\n gap: 0;\n padding: 6px;\n font-size: 12px;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n padding-inline-start: 10px;\n padding-inline-end: 10px;\n }\n }\n\n @media (max-width: 360px) {\n .altertable-annotation-bar .altertable-button[data-size=\"icon-compact\"] {\n width: 26px;\n min-width: 26px;\n }\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n font-size: 12px;\n line-height: 1.3;\n }\n\n .altertable-annotation-bar .altertable-button:hover:not(:disabled), .altertable-annotation-bar-panel .altertable-button:hover:not(:disabled) {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:hover:not(:disabled) {\n color: var(--atbl-annotation-on-accent);\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-bar .altertable-button:disabled, .altertable-annotation-bar-panel .altertable-button:disabled {\n color: var(--bar-muted);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:disabled {\n color: var(--bar-muted);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n position: relative;\n }\n\n .altertable-annotation-bar-send[data-pending] .altertable-annotation-bar-send-label {\n visibility: hidden;\n }\n\n .altertable-annotation-bar-spinner {\n position: absolute;\n animation: 1s linear infinite annotation-bar-spin;\n margin: auto;\n inset: 0;\n }\n\n @keyframes annotation-bar-spin {\n to {\n rotate: 360deg;\n }\n }\n\n .altertable-annotation-discard-description {\n color: var(--atbl-muted);\n font: 14px / 1.55 var(--atbl-font);\n margin: 0;\n }\n\n .altertable-annotation-discard-confirm {\n color: var(--atbl-danger);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-bar-spinner {\n animation: none;\n }\n }\n\n .altertable-annotation-bar .altertable-button[aria-pressed=\"true\"] {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-undo {\n position: fixed;\n z-index: 1202;\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: 13px / 1.5 var(--atbl-font);\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n bottom: 16px;\n left: 16px;\n }\n\n .altertable-annotation-thumbnail {\n border: 1px solid var(--bar-border);\n overflow: hidden;\n background: var(--bar-surface);\n --atbl-cursor-action: zoom-in;\n border-radius: 6px;\n flex-shrink: 0;\n width: 56px;\n height: 40px;\n padding: 0;\n }\n\n .altertable-annotation-thumbnail img {\n object-fit: contain;\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .altertable-annotation-thumbnail:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-preview {\n display: block;\n object-fit: contain;\n width: 100%;\n max-height: 65vh;\n }\n\n .altertable-annotation-undo[data-bar-visible] {\n bottom: 88px;\n }\n\n .altertable-annotation-undo[data-inline] {\n position: static;\n box-shadow: none;\n border-radius: 8px;\n margin-top: 6px;\n }\n\n .altertable-sheet.altertable-annotation-image-dialog[data-placement=\"center\"] {\n width: min(960px, 100vw - 32px);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationControls.css */\n@layer atbl.components {\n .altertable-annotation-composer, .altertable-annotation-hint {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-annotation-outline {\n position: fixed;\n z-index: 1100;\n pointer-events: none;\n border: 2px dashed var(--atbl-annotation-accent);\n background: var(--atbl-annotation-highlight, color-mix(in srgb, var(--atbl-annotation-accent) 8%, transparent));\n border-radius: 0;\n }\n\n .altertable-annotation-pin {\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n position: fixed;\n z-index: 1101;\n cursor: pointer;\n display: grid;\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n font: 600 12px var(--atbl-font);\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-annotation-composer {\n z-index: 1102;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 14px / 1.5 var(--atbl-font);\n border-radius: 24px;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n width: min(320px, 100vw - 24px);\n padding: 8px;\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-composer textarea {\n field-sizing: content;\n box-sizing: border-box;\n resize: none;\n overscroll-behavior: contain;\n font: inherit;\n color: inherit;\n background: none;\n border: 0;\n border-radius: 12px;\n flex: 1;\n min-width: 0;\n max-height: min(160px, 30vh);\n padding: 6px 8px;\n }\n\n .altertable-annotation-composer textarea:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-composer [role=\"alert\"] {\n color: var(--annotation-text);\n flex-basis: 100%;\n margin: 4px 0;\n padding: 0 8px;\n }\n\n .altertable-annotation-hint {\n position: fixed;\n z-index: 1102;\n left: 50%;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + 16px);\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 13px / 1.5 var(--atbl-font);\n pointer-events: none;\n border-radius: 24px;\n max-width: calc(100vw - 24px);\n padding: 8px 16px;\n transform: translateX(-50%);\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-pin:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-count {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-radius: 20px;\n padding: 0 5px;\n font-size: 11px;\n }\n\n .altertable-annotation-composer[data-shaking] {\n animation: .22s ease-in-out annotation-shake;\n }\n\n @keyframes annotation-shake {\n 25%, 75% {\n translate: -4px;\n }\n\n 50% {\n translate: 4px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-composer[data-shaking] {\n animation-duration: 1ms;\n }\n }\n\n .altertable-annotation-composer textarea::placeholder {\n color: var(--annotation-muted);\n }\n\n .altertable-annotation-composer .altertable-annotation-submit {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n box-shadow: none;\n border: 0;\n border-radius: 50%;\n }\n\n .altertable-annotation-composer .altertable-annotation-submit:hover:not(:disabled) {\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n background: var(--annotation-surface);\n color: var(--annotation-text);\n border-color: var(--annotation-border);\n }\n\n .altertable-annotation-hint .altertable-kbd, .altertable-annotation-tooltip .altertable-kbd {\n color: var(--annotation-muted);\n border-color: var(--annotation-border);\n background: none;\n }\n\n @media (pointer: coarse) {\n .altertable-annotation-composer textarea {\n font-size: 16px;\n }\n }\n\n .altertable-annotation-outline[data-widget] {\n border-radius: var(--atbl-radius-surface);\n }\n\n .altertable-annotation-selection-layer {\n position: fixed;\n z-index: 1099;\n --atbl-cursor-action: crosshair;\n --atbl-focus-outline: none;\n touch-action: pan-x pan-y pinch-zoom;\n background: none;\n border: 0;\n border-radius: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n inset: 0;\n }\n\n .altertable-annotation-selection-layer:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-hint {\n display: flex;\n white-space: nowrap;\n align-items: center;\n gap: 6px;\n }\n\n .altertable-annotation-selection-layer[data-editing] {\n --atbl-cursor-action: default;\n }\n}\n\n/* packages/data-app-react/src/ui/Focus.css */\n@layer atbl.interaction {\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:has( > input:focus-visible) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-webkit-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-moz-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:is(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"] input:focus-visible {\n outline: none;\n }\n\n @media (forced-colors: active) {\n [data-atbl-focus]:-webkit-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:-moz-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:is(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline-color: highlight !important;\n }\n }\n}\n\n/* packages/data-app-react/src/interaction.css */\n@layer atbl.interaction {\n [data-atbl-control=\"default\"] {\n cursor: default;\n }\n\n [data-atbl-control=\"action\"], [data-atbl-internal-prose] a {\n cursor: var(--atbl-cursor-action);\n }\n\n [data-atbl-control=\"help\"] {\n cursor: var(--atbl-cursor-help);\n }\n\n [data-atbl-control=\"text\"] {\n cursor: text;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n [data-atbl-control=\"text\"] {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n [data-atbl-control]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:is(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control=\"action\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([data-variant=\"outline\"], [data-variant=\"elevated\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):is(:hover, [data-hovered]):not(:is(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n [data-atbl-internal-surface=\"field\"]:-webkit-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:-moz-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:is([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:has(input[aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-control=\"text\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/styles.css */\n@layer atbl.tokens, atbl.base, atbl.components, atbl.interaction;\n",
|
|
40
|
+
css: "/* packages/data-app-react/src/tokens.css */\n@layer atbl.tokens {\n :root {\n --atbl-background: var(--atbl-palette-background);\n --atbl-surface: var(--atbl-palette-surface);\n --atbl-subtle: var(--atbl-palette-subtle);\n --atbl-backdrop: #0f171e38;\n --atbl-text: var(--atbl-palette-text);\n --atbl-muted: var(--atbl-palette-muted);\n --atbl-border: var(--atbl-palette-border);\n --atbl-accent: var(--atbl-palette-accent);\n --atbl-on-accent: var(--atbl-palette-on-accent);\n --atbl-positive: var(--atbl-palette-positive);\n --atbl-danger: var(--atbl-palette-danger);\n --atbl-code-surface: #f4f6f9;\n --atbl-code-text: #273242;\n --atbl-mono-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;\n --atbl-focus-ring-offset: 2px;\n --atbl-focus-ring-inset: -1px;\n --atbl-font: var(--atbl-input-font, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, ui-sans-serif, sans-serif);\n --atbl-space-xs: 5px;\n --atbl-space-sm: 10px;\n --atbl-space-md: 16px;\n --atbl-space-lg: 24px;\n --atbl-space-xl: 32px;\n --atbl-content-width: 1920px;\n --atbl-control-height: 2.375rem;\n --atbl-control-compact-height: 1.875rem;\n --atbl-control-icon-size: 1rem;\n --atbl-control-padding-inline: .75rem;\n --atbl-control-padding-block: .375rem;\n --atbl-control-gap: .5rem;\n --atbl-control-disabled-opacity: .5;\n --atbl-dropdown-padding: calc(var(--atbl-control-padding-block) * 2 / 3);\n --atbl-dropdown-item-padding-block: var(--atbl-control-padding-block);\n --atbl-dropdown-item-padding-inline: calc(var(--atbl-control-padding-inline) * 3 / 4);\n --atbl-dropdown-item-gap: 2px;\n --atbl-radius-control: 7px;\n --atbl-radius-surface: 12px;\n --atbl-radius-overlay: 16px;\n --atbl-shadow-surface: 0 3px 16px #141c280d;\n --atbl-shadow-overlay: 0 18px 50px #00000029;\n --atbl-shadow-control: 0 1px 3px #0000001a;\n --atbl-cursor-action: pointer;\n --atbl-cursor-disabled: default;\n --atbl-cursor-help: help;\n --atbl-cursor-busy: progress;\n --atbl-duration-fast: .12s;\n --atbl-duration-normal: .18s;\n --atbl-duration-slow: .24s;\n --atbl-ease-standard: ease;\n --atbl-ease-enter: cubic-bezier(.2, .7, .2, 1);\n --atbl-chart-1: color-mix(in srgb, var(--atbl-input-chart-1, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-2: color-mix(in srgb, var(--atbl-input-chart-2, #a95319) var(--atbl-chart-strength), white);\n --atbl-chart-3: color-mix(in srgb, var(--atbl-input-chart-3, #147862) var(--atbl-chart-strength), white);\n --atbl-chart-4: color-mix(in srgb, var(--atbl-input-chart-4, #7243aa) var(--atbl-chart-strength), white);\n --atbl-chart-5: color-mix(in srgb, var(--atbl-input-chart-5, #aa3958) var(--atbl-chart-strength), white);\n --atbl-chart-6: color-mix(in srgb, var(--atbl-input-chart-6, #475569) var(--atbl-chart-strength), white);\n --atbl-chart-7: color-mix(in srgb, var(--atbl-input-chart-7, #285fc0) var(--atbl-chart-strength), white);\n --atbl-chart-8: color-mix(in srgb, var(--atbl-input-chart-8, #a95319) var(--atbl-chart-strength), white);\n --atbl-type-emphasis-weight: 680;\n --atbl-type-meta-weight: 500;\n --atbl-type-page-size: clamp(1.375rem, 2.4vw, 1.75rem);\n --atbl-type-section-size: 1.25rem;\n --atbl-type-widget-size: var(--atbl-type-label-size);\n --atbl-type-body-size: .875rem;\n --atbl-type-label-size: .8125rem;\n --atbl-type-meta-size: .75rem;\n --atbl-type-metric-size: clamp(1.625rem, 3vw, 2.125rem);\n --atbl-type-heading-weight: 650;\n --atbl-type-label-weight: 600;\n --atbl-type-body-leading: 1.65;\n --atbl-type-label-leading: 1.4;\n --atbl-type-heading-leading: 1.3;\n --atbl-type-metric-leading: 1.08;\n --atbl-text-measure: 70ch;\n }\n}\n\n/* packages/data-app-react/src/appearance.css */\n@layer atbl.tokens {\n :root {\n --atbl-palette-background: #fff;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f6f7f7;\n --atbl-palette-text: #202124;\n --atbl-palette-muted: #687078;\n --atbl-palette-border: #e3e6e8;\n --atbl-palette-accent: var(--atbl-input-accent, var(--atbl-text));\n --atbl-palette-on-accent: var(--atbl-input-on-accent, #fff);\n --atbl-palette-positive: #147862;\n --atbl-palette-danger: #b42318;\n --atbl-chart-strength: 100%;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #151719;\n --atbl-palette-surface: #202326;\n --atbl-palette-subtle: #292d31;\n --atbl-palette-text: #f2f3f4;\n --atbl-palette-muted: #aeb5bc;\n --atbl-palette-border: #3b4248;\n }\n\n :root[data-atbl-base-color=\"slate\"] {\n --atbl-palette-background: #f8fafc;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f1f5f9;\n --atbl-palette-text: #17212f;\n --atbl-palette-muted: #607083;\n --atbl-palette-border: #dce3ea;\n }\n\n :root[data-atbl-base-color=\"slate\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #111820;\n --atbl-palette-surface: #1b2530;\n --atbl-palette-subtle: #263340;\n --atbl-palette-text: #f0f4f8;\n --atbl-palette-muted: #a8b5c3;\n --atbl-palette-border: #3a4857;\n }\n\n :root[data-atbl-base-color=\"warm\"] {\n --atbl-palette-background: #fbfaf8;\n --atbl-palette-surface: #fff;\n --atbl-palette-subtle: #f5f2ed;\n --atbl-palette-text: #292723;\n --atbl-palette-muted: #736e66;\n --atbl-palette-border: #e8e2da;\n }\n\n :root[data-atbl-base-color=\"warm\"][data-atbl-theme=\"dark\"] {\n --atbl-palette-background: #1b1916;\n --atbl-palette-surface: #25221e;\n --atbl-palette-subtle: #302c27;\n --atbl-palette-text: #f5f1eb;\n --atbl-palette-muted: #bcb3a8;\n --atbl-palette-border: #494239;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --atbl-palette-accent: var(--atbl-input-dark-accent, var(--atbl-text));\n --atbl-palette-on-accent: var(--atbl-input-on-accent, var(--atbl-background));\n --atbl-palette-positive: #6bc39a;\n --atbl-palette-danger: #f97066;\n --atbl-backdrop: #0000008c;\n --atbl-code-surface: #242a31;\n --atbl-code-text: #e5e9ef;\n --atbl-chart-strength: 60%;\n }\n\n :root[data-atbl-density=\"compact\"] {\n --atbl-control-height: 2.125rem;\n --atbl-control-compact-height: 1.625rem;\n --atbl-control-gap: .375rem;\n --atbl-control-padding-inline: .625rem;\n --atbl-control-padding-block: .25rem;\n --atbl-space-xs: 4px;\n --atbl-space-sm: 8px;\n --atbl-space-md: 12px;\n --atbl-space-lg: 18px;\n --atbl-space-xl: 24px;\n }\n\n :root[data-atbl-density=\"spacious\"] {\n --atbl-control-height: 2.625rem;\n --atbl-control-compact-height: 2.125rem;\n --atbl-control-gap: .625rem;\n --atbl-control-padding-inline: 1rem;\n --atbl-control-padding-block: .5rem;\n --atbl-space-xs: 6px;\n --atbl-space-sm: 12px;\n --atbl-space-md: 20px;\n --atbl-space-lg: 30px;\n --atbl-space-xl: 40px;\n }\n\n :root[data-atbl-radius=\"none\"] {\n --atbl-radius-control: 0px;\n --atbl-radius-surface: 0px;\n --atbl-radius-overlay: 0px;\n }\n\n :root[data-atbl-radius=\"small\"] {\n --atbl-radius-control: 4px;\n --atbl-radius-surface: 7px;\n --atbl-radius-overlay: 9px;\n }\n\n :root[data-atbl-radius=\"large\"] {\n --atbl-radius-control: 10px;\n --atbl-radius-surface: 18px;\n --atbl-radius-overlay: 24px;\n }\n\n :root[data-atbl-elevation=\"flat\"] {\n --atbl-shadow-surface: none;\n --atbl-shadow-overlay: none;\n --atbl-shadow-control: none;\n }\n\n :root[data-atbl-elevation=\"raised\"] {\n --atbl-shadow-surface: 0 8px 28px #141c281a;\n --atbl-shadow-overlay: 0 24px 72px #0000003d;\n --atbl-shadow-control: 0 2px 6px #00000029;\n }\n\n @media (forced-colors: active) {\n :root {\n --atbl-focus-color: Highlight !important;\n --atbl-on-accent: HighlightText !important;\n }\n }\n}\n\n/* packages/data-app-react/src/base.css */\n@layer atbl.base {\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"starter-\"], [class*=\" starter-\"]) * {\n box-sizing: border-box;\n }\n\n :where([class^=\"altertable-\"], [class*=\" altertable-\"]) button {\n font: inherit;\n }\n\n :root[data-atbl-appearance] {\n scrollbar-gutter: stable;\n font-family: var(--atbl-font);\n color: var(--atbl-text);\n background: var(--atbl-background);\n font-synthesis: none;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] {\n overflow: hidden;\n scrollbar-gutter: auto;\n }\n\n :root {\n --atbl-frame-visible-height: calc(100dvh - var(--atbl-frame-inset-top, 0px) - var(--atbl-frame-inset-bottom, 0px));\n }\n\n :root[data-atbl-theme=\"light\"] {\n --buncss-light: initial;\n --buncss-dark: ;\n color-scheme: light;\n }\n\n :root[data-atbl-theme=\"dark\"] {\n --buncss-light: ;\n --buncss-dark: initial;\n color-scheme: dark;\n }\n\n :root[data-atbl-appearance] body, :root[data-atbl-appearance] #root {\n margin: 0;\n }\n\n .altertable-sr-only {\n position: fixed;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n clip-path: inset(50%);\n white-space: nowrap;\n border: 0;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Skeleton.css */\n@layer atbl.components {\n .altertable-skeleton {\n display: block;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n opacity: 0;\n animation: altertable-skeleton-in .2s var(--atbl-ease-standard) .2s forwards, altertable-skeleton-pulse 1.4s ease-in-out .4s infinite alternate;\n }\n\n .altertable-skeleton[data-inline] {\n display: inline-block;\n vertical-align: middle;\n width: 8ch;\n height: 1em;\n }\n\n @keyframes altertable-skeleton-in {\n to {\n opacity: 1;\n }\n }\n\n @keyframes altertable-skeleton-pulse {\n to {\n opacity: .5;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-skeleton {\n animation: 1ms .2s forwards altertable-skeleton-in;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Grid.css */\n@layer atbl.components {\n .altertable-grid {\n display: grid;\n container: altertable-grid / inline-size;\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n --atbl-grid-min-item-width: 280px;\n --atbl-grid-column-width: 100%;\n --atbl-grid-max-columns: 1;\n align-content: start;\n align-items: start;\n gap: var(--atbl-grid-gap);\n grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--atbl-grid-min-item-width), var(--atbl-grid-column-width))), 1fr));\n min-width: 0;\n }\n\n .altertable-grid > * {\n min-width: 0;\n min-height: 0;\n margin: 0;\n }\n\n .altertable-grid[data-align=\"stretch\"] {\n align-items: stretch;\n }\n\n .altertable-grid[data-align=\"stretch\"] > .altertable-grid-item {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-grid[data-gap=\"sm\"] {\n --atbl-grid-gap: var(--atbl-space-sm);\n }\n\n .altertable-grid[data-gap=\"md\"] {\n --atbl-grid-gap: var(--atbl-space-md);\n }\n\n .altertable-grid[data-gap=\"lg\"] {\n --atbl-grid-gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-grid[data-min-item-width=\"compact\"] {\n --atbl-grid-min-item-width: 224px;\n }\n\n .altertable-grid[data-min-item-width=\"wide\"] {\n --atbl-grid-min-item-width: 360px;\n }\n\n .altertable-grid[data-columns=\"2\"] {\n --atbl-grid-max-columns: 2;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap)) / 2);\n }\n\n .altertable-grid[data-columns=\"3\"] {\n --atbl-grid-max-columns: 3;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 3);\n }\n\n .altertable-grid[data-columns=\"4\"] {\n --atbl-grid-max-columns: 4;\n --atbl-grid-column-width: calc((100% - var(--atbl-grid-gap) - var(--atbl-grid-gap) - var(--atbl-grid-gap)) / 4);\n }\n\n .altertable-grid-item {\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-grid > * {\n --atbl-grid-fitting-columns: clamp(1, round(down, tan(atan2(100cqw + var(--atbl-grid-gap) + .001px, var(--atbl-grid-min-item-width) + var(--atbl-grid-gap))), 1), var(--atbl-grid-max-columns));\n }\n\n .altertable-grid > .altertable-grid-item[data-span=\"2\"] {\n grid-column: span min(2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:has( > .altertable-grid-item[data-span=\"2\"]) > :not(.altertable-grid-item[data-span=\"2\"]) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n\n .altertable-grid[data-columns=\"3\"]:not(:has( > .altertable-grid-item[data-span=\"2\"])) > :last-child:nth-child(odd) {\n grid-column: span clamp(1, (3 - var(--atbl-grid-fitting-columns)) * 2, var(--atbl-grid-fitting-columns));\n }\n}\n\n/* packages/data-app-react/src/ui/DataWidget.css */\n@layer atbl.components {\n .altertable-data-widget {\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n min-width: 0;\n }\n\n .altertable-data-widget-header {\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) 0;\n }\n\n .altertable-data-widget-heading-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n min-height: 30px;\n }\n\n .altertable-data-widget-heading-row > .altertable-widget-heading {\n flex: 1;\n min-width: 0;\n }\n\n .altertable-data-widget-help {\n display: flex;\n flex: none;\n align-items: center;\n }\n\n .altertable-data-widget-help:empty {\n display: none;\n }\n\n .altertable-widget-heading {\n color: var(--atbl-muted);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: 0;\n margin: 0;\n }\n\n .altertable-data-widget-count {\n display: inline-flex;\n vertical-align: baseline;\n font-variant-numeric: tabular-nums;\n color: var(--atbl-muted);\n font-size: .85em;\n line-height: 1;\n font-weight: var(--atbl-type-meta-weight);\n letter-spacing: 0;\n white-space: nowrap;\n align-self: center;\n align-items: center;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-data-widget-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-data-widget-body {\n position: relative;\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] {\n padding: 0;\n }\n\n .altertable-data-widget-footer {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-data-widget-body > .altertable-status-panel {\n background: none;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-widget-heading-trigger .altertable-data-widget-count {\n margin-inline-start: 0;\n }\n\n .altertable-widget-boundary {\n display: contents;\n }\n\n :where(.altertable-widget-boundary) > * {\n grid-column: inherit;\n }\n\n .altertable-widget-error {\n box-sizing: border-box;\n display: flex;\n text-align: center;\n color: var(--atbl-muted);\n font-family: var(--atbl-font);\n font-size: var(--atbl-type-meta-size);\n overflow: auto;\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 12px;\n width: 100%;\n max-width: 520px;\n min-height: 140px;\n margin-inline-start: auto;\n margin-inline-end: auto;\n padding: 16px;\n line-height: 1.5;\n }\n\n .altertable-widget-error-copy {\n min-width: 0;\n }\n\n .altertable-widget-error strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-widget-error p {\n margin: 4px 0 0;\n }\n\n .altertable-widget-error-frame {\n display: flex;\n flex-direction: column;\n }\n\n .altertable-widget-error-frame > .altertable-data-widget-body {\n display: grid;\n flex: 1;\n min-height: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/SectionHeading.css */\n@layer atbl.components {\n .altertable-section-heading {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/MetricWidget.css */\n@layer atbl.components {\n .altertable-metric-widget {\n display: flex;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n border: 1px solid var(--atbl-border);\n border-radius: calc(var(--atbl-radius-surface) * 1.5);\n corner-shape: squircle;\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-metric-widget.altertable-data-widget {\n padding: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-header {\n min-height: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body {\n padding-top: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-body:has( + footer) {\n padding-bottom: 0;\n }\n\n .altertable-metric-widget > .altertable-data-widget-footer {\n padding-top: 0;\n padding-bottom: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-metric-value {\n margin: var(--atbl-space-sm) 0 2px;\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-metric-size);\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n font-variant-numeric: tabular-nums;\n max-inline-size: 100%;\n }\n\n .altertable-metric-reading {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n gap: 4px;\n }\n\n .altertable-metric-trend {\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-metric-change {\n display: inline-flex;\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n align-items: center;\n gap: 3px;\n }\n\n .altertable-metric-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-metric-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-metric-description {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n\n .altertable-metric-visual {\n margin-top: var(--atbl-space-sm);\n min-width: 0;\n }\n\n .altertable-metric-value[data-unavailable] {\n opacity: .6;\n }\n\n .altertable-metric-value > .altertable-skeleton {\n width: 6ch;\n height: 1lh;\n }\n}\n\n/* packages/data-app-react/src/ui/VisualizationWidget.css */\n@layer atbl.components {\n .altertable-visualization-widget-content {\n padding: var(--atbl-space-md) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg))) var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n :where(.altertable-data-widget-body) > .altertable-visualization-widget-content {\n padding: 0;\n }\n\n :where(.altertable-data-widget-body > .altertable-widget-boundary) > .altertable-visualization-widget-content {\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ContentSkeleton.css */\n@layer atbl.components {\n .altertable-content-skeleton {\n display: grid;\n padding: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n align-content: start;\n gap: 14px;\n min-width: 0;\n }\n\n .altertable-content-skeleton-label {\n width: 38%;\n height: 15px;\n }\n\n .altertable-content-skeleton-value {\n width: 56%;\n height: 38px;\n }\n\n .altertable-content-skeleton-chart {\n width: 100%;\n height: 180px;\n }\n\n .altertable-content-skeleton-foot {\n width: 70%;\n height: 12px;\n }\n\n .altertable-content-skeleton-subtitle {\n width: 52%;\n height: 12px;\n }\n\n .altertable-content-skeleton-rows {\n display: grid;\n gap: 18px;\n margin-top: 12px;\n }\n\n .altertable-content-skeleton-row {\n display: grid;\n gap: 8px;\n }\n\n .altertable-content-skeleton-row-label {\n width: 56%;\n height: 14px;\n }\n\n .altertable-content-skeleton-row-track {\n width: 100%;\n height: 8px;\n }\n\n .altertable-content-skeleton-row:nth-child(2) .altertable-content-skeleton-row-track {\n width: 72%;\n }\n\n .altertable-content-skeleton-row:nth-child(3) .altertable-content-skeleton-row-track {\n width: 48%;\n }\n\n .altertable-content-skeleton-row:nth-child(4) .altertable-content-skeleton-row-track {\n width: 30%;\n }\n\n .altertable-content-skeleton-body {\n display: grid;\n gap: 14px;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/shared.css */\n\n\n/* packages/data-app-react/src/ui/DateTimeRangePicker.css */\n@layer atbl.components {\n .altertable-datetime-input {\n display: flex;\n box-sizing: border-box;\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n font: var(--atbl-type-label-weight) var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n cursor: text;\n align-items: center;\n gap: .5rem;\n width: 22rem;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-datetime-input input {\n outline: none;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-datetime-reset {\n display: grid;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n cursor: pointer;\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n width: 1.5rem;\n height: 1.5rem;\n padding: 0;\n }\n\n .altertable-datetime-reset:hover {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n .altertable-datetime-input[data-disabled] {\n opacity: .5;\n }\n\n .altertable-datetime-input[data-invalid] {\n border-color: var(--atbl-danger);\n background: color-mix(in srgb, var(--atbl-danger) 9%, var(--atbl-surface));\n }\n\n .altertable-datetime-shortcut {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n text-align: center;\n font-size: var(--atbl-type-meta-size);\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n width: 2.5rem;\n height: 1.5rem;\n padding: .1rem .25rem;\n }\n\n .altertable-datetime-shortcut span {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-datetime-popover {\n overflow: visible;\n box-sizing: border-box;\n width: min(22rem, 100vw - 2rem);\n max-width: calc(100vw - 2rem);\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-presets) {\n display: flex;\n flex-direction: column;\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-presets) > div {\n overflow-y: auto;\n overscroll-behavior: contain;\n min-height: 0;\n }\n\n .altertable-datetime-presets {\n box-sizing: border-box;\n padding: .25rem .25rem .5rem;\n }\n\n .altertable-datetime-presets button {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: inherit;\n text-align: left;\n font: inherit;\n cursor: pointer;\n background: none;\n border: 0;\n align-items: center;\n gap: .5rem;\n width: 100%;\n padding: .45rem .5rem;\n }\n\n .altertable-datetime-presets button[data-divider] {\n position: relative;\n margin-top: .8rem;\n }\n\n .altertable-datetime-presets button[data-divider]:before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n inset: -.55rem 0 auto;\n }\n\n .altertable-datetime-presets button:last-child {\n scroll-margin-bottom: .5rem;\n }\n\n .altertable-datetime-presets button small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: .125rem;\n }\n\n .altertable-datetime-presets button[data-highlighted] {\n background: var(--atbl-subtle);\n }\n\n .altertable-datetime-presets button[data-highlighted] .altertable-datetime-shortcut {\n background: var(--atbl-border);\n }\n\n .altertable-datetime-check {\n margin-left: auto;\n }\n\n .altertable-datetime-help {\n position: absolute;\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n width: 16rem;\n padding: 1rem;\n top: 0;\n }\n\n .altertable-datetime-help[data-side=\"left\"] {\n right: calc(100% + .5rem);\n }\n\n .altertable-datetime-help[data-side=\"right\"] {\n left: calc(100% + .5rem);\n }\n\n .altertable-datetime-help h4 {\n color: var(--atbl-muted);\n margin: .75rem 0 .25rem;\n font-weight: 500;\n }\n\n .altertable-datetime-help section div {\n display: flex;\n flex-wrap: wrap;\n gap: .25rem;\n }\n\n .altertable-datetime-help button {\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n color: inherit;\n background: var(--atbl-subtle);\n border-radius: var(--atbl-radius-control);\n cursor: pointer;\n border: 0;\n padding: .25rem;\n }\n\n .altertable-datetime-calendar-panel {\n max-height: var(--available-height, 32rem);\n overflow-y: auto;\n padding: .75rem;\n }\n\n .altertable-datetime-actions {\n display: flex;\n justify-content: space-between;\n gap: .5rem;\n margin-top: .75rem;\n }\n\n @media (max-width: 680px) {\n .altertable-datetime-popover {\n max-height: var(--available-height, calc(100dvh - 2rem));\n overflow-y: auto;\n }\n\n .altertable-datetime-help {\n position: static;\n border: 0;\n border-top: 1px solid var(--atbl-border);\n width: 100%;\n max-height: none;\n }\n }\n\n .altertable-datetime-calendar {\n width: 100%;\n min-width: 0;\n }\n\n .altertable-datetime-calendar header {\n display: grid;\n grid-template-columns: var(--atbl-control-height) minmax(0, 1.35fr) minmax(0, 1fr) var(--atbl-control-height);\n align-items: center;\n gap: .5rem;\n margin-bottom: .75rem;\n }\n\n .altertable-datetime-calendar header .altertable-select, .altertable-datetime-calendar header .altertable-select-trigger {\n width: 100%;\n }\n\n .altertable-datetime-calendar header .altertable-picker-label {\n display: none;\n }\n\n .altertable-datetime-calendar table {\n table-layout: fixed;\n border-collapse: separate;\n border-spacing: 0 2px;\n width: 100%;\n }\n\n .altertable-datetime-calendar th {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 500;\n }\n\n .altertable-datetime-calendar td {\n text-align: center;\n padding: 0;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell {\n display: grid;\n cursor: pointer;\n border-radius: var(--atbl-radius-control);\n font-variant-numeric: tabular-nums;\n place-items: center;\n min-height: 40px;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-selected] {\n background: var(--atbl-accent-subtle, var(--atbl-subtle));\n font-weight: 650;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-selection-start], .altertable-datetime-calendar .react-aria-CalendarCell[data-selection-end] {\n background: var(--atbl-text);\n color: var(--atbl-surface);\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-disabled], .altertable-datetime-calendar .react-aria-CalendarCell[data-unavailable] {\n color: var(--atbl-muted);\n cursor: default;\n text-decoration: line-through;\n }\n\n .altertable-datetime-calendar .react-aria-CalendarCell[data-outside-month] {\n visibility: hidden;\n }\n\n .altertable-datetime-help[data-side=\"inline\"] {\n position: static;\n border: 0;\n border-top: 1px solid var(--atbl-border);\n width: 100%;\n max-height: none;\n }\n\n .altertable-datetime-popover:has(.altertable-datetime-help[data-side=\"inline\"]) {\n max-height: var(--available-height, calc(100dvh - 2rem));\n overflow-y: auto;\n }\n}\n\n/* packages/data-app-react/src/ui/PopoverSurface.css */\n@layer atbl.components {\n .altertable-popover-surface {\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n}\n\n/* packages/data-app-react/src/ui/PeriodSummary.css */\n@layer atbl.components {\n .altertable-period-summary {\n margin: 0;\n }\n\n .altertable-period-summary-visible {\n display: inline-flex;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px 7px;\n }\n\n .altertable-period-summary-visible > svg {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchInput.css */\n@layer atbl.components {\n .altertable-search-input-wrap {\n display: flex;\n min-height: var(--atbl-control-height);\n padding: 0 var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n align-items: center;\n gap: 9px;\n width: min(100%, 380px);\n min-width: 0;\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: 0 calc(var(--atbl-control-padding-inline) * 5 / 6);\n width: min(100%, 300px);\n }\n\n .altertable-search-input-wrap[data-size=\"compact\"] .altertable-search-input {\n min-block-size: calc(var(--atbl-control-compact-height) - 2px);\n }\n\n .altertable-search-input {\n min-block-size: calc(var(--atbl-control-height) - 2px);\n outline: 0;\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n background: none;\n border: 0;\n flex: 1;\n width: 100%;\n min-width: 0;\n height: auto;\n padding: 0;\n }\n\n .altertable-search-input::-webkit-search-cancel-button {\n display: none;\n }\n\n .altertable-search-input-wrap > svg {\n flex: none;\n }\n\n .altertable-search-input-spinner {\n animation: .9s linear infinite altertable-search-input-spin;\n }\n\n @keyframes altertable-search-input-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-search-input-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Button.css */\n@layer atbl.components {\n .altertable-button {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-control-gap);\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n font: inherit;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-label-leading);\n overflow-wrap: anywhere;\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n -webkit-tap-highlight-color: transparent;\n max-inline-size: 100%;\n }\n\n .altertable-button[data-size=\"icon\"] {\n width: var(--atbl-control-height);\n min-width: var(--atbl-control-height);\n height: var(--atbl-control-height);\n min-height: var(--atbl-control-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"primary\"] {\n border-color: var(--atbl-text);\n background: var(--atbl-text);\n color: var(--atbl-background);\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 92%, var(--atbl-background));\n --atbl-control-pressed-surface: color-mix(in srgb, var(--atbl-text) 84%, var(--atbl-background));\n }\n\n .altertable-button[data-variant=\"outline\"] {\n box-shadow: none;\n }\n\n .altertable-button[data-variant=\"elevated\"] {\n box-shadow: var(--atbl-shadow-surface);\n }\n\n .altertable-button[data-variant=\"ghost\"] {\n box-shadow: none;\n background: none;\n border-color: #0000;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-button {\n transition: none;\n }\n }\n\n .altertable-button[data-size=\"compact\"] {\n min-height: var(--atbl-control-compact-height);\n padding: calc(var(--atbl-control-padding-block) * 2 / 3) calc(var(--atbl-control-padding-inline) * 2 / 3);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-button[data-size=\"icon-compact\"] {\n width: var(--atbl-control-compact-height);\n min-width: var(--atbl-control-compact-height);\n height: var(--atbl-control-compact-height);\n min-height: var(--atbl-control-compact-height);\n flex: none;\n padding: 0;\n }\n\n .altertable-button[data-size^=\"icon\"] > svg {\n inline-size: var(--atbl-control-icon-size);\n block-size: var(--atbl-control-icon-size);\n }\n\n .altertable-button[data-variant=\"inline\"] {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n box-shadow: none;\n font: inherit;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n border-radius: 0;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button[data-variant=\"inline\"]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n\n .altertable-button[data-variant=\"inline\"]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled])) {\n text-decoration: underline;\n }\n}\n\n/* packages/data-app-react/src/ui/SearchField.css */\n@layer atbl.components {\n .altertable-search-landmark {\n min-width: 0;\n }\n\n .altertable-search {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-search-label {\n font-size: var(--atbl-type-label-size);\n font-weight: 650;\n }\n\n .altertable-search-row {\n display: flex;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n\n .altertable-search-description, .altertable-search-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin: 0;\n line-height: 1.45;\n }\n\n @media (max-width: 560px) {\n .altertable-search .altertable-search-input-wrap {\n width: 100%;\n }\n }\n\n .altertable-search-suggestions {\n z-index: 150;\n padding: var(--atbl-space-xs);\n overflow: auto;\n }\n\n .altertable-search-suggestions ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-search-suggestions li {\n display: flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-space-sm);\n border-radius: var(--atbl-radius-control);\n padding-inline-start: calc(var(--atbl-control-padding-inline) - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions[data-size=\"compact\"] li {\n padding-inline-start: calc(var(--atbl-control-padding-inline) * 5 / 6 - var(--atbl-space-xs) - 1px);\n }\n\n .altertable-search-suggestions li > span, .altertable-search-suggestions small {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-search-suggestions li > span {\n flex: 0 auto;\n }\n\n .altertable-search-suggestions li:has(small) > span {\n flex-shrink: 0;\n max-width: 65%;\n }\n\n .altertable-search-suggestions small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: 0 auto;\n }\n}\n\n/* packages/data-app-react/src/ui/Tooltip.css */\n@layer atbl.components {\n .altertable-tooltip-trigger {\n display: inline-flex;\n align-items: center;\n }\n\n .altertable-tooltip-trigger[data-variant=\"chart\"] {\n display: flex;\n align-items: flex-end;\n width: 100%;\n min-width: 0;\n height: 100%;\n }\n\n .altertable-tooltip-content {\n z-index: 1300;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-meta-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n white-space: normal;\n overflow-wrap: anywhere;\n pointer-events: none;\n animation: altertable-tooltip-in var(--atbl-duration-fast) ease-out;\n width: max-content;\n max-width: min(240px, 100vw - 24px);\n padding: 6px 9px;\n }\n\n .altertable-tooltip-content[data-variant=\"hint\"] {\n pointer-events: auto;\n }\n\n .altertable-tooltip-content[data-instant] {\n animation: none;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] {\n display: grid;\n font-variant-numeric: tabular-nums;\n gap: 2px;\n padding: 8px 10px;\n }\n\n .altertable-tooltip-content[data-variant=\"chart\"] strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n line-height: 1.2;\n }\n\n @keyframes altertable-tooltip-in {\n from {\n opacity: 0;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tooltip-content {\n animation: none;\n }\n }\n\n .altertable-chart-tooltip-row {\n display: flex;\n align-items: flex-start;\n gap: 6px;\n }\n\n .altertable-chart-tooltip-marker {\n flex-shrink: 0;\n width: 8px;\n height: 8px;\n margin-top: .3em;\n }\n\n .altertable-chart-tooltip-reading {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RequestHint.css */\n@layer atbl.components {\n .altertable-request-hint {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 6px;\n min-width: 0;\n height: 28px;\n }\n\n .altertable-request-hint > svg, .altertable-request-hint > button {\n flex: none;\n }\n\n .altertable-request-hint-message {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-request-hint[data-state=\"error\"] .altertable-request-hint-copy > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-request-hint-spinner {\n animation: .9s linear infinite altertable-request-hint-spin;\n }\n\n @keyframes altertable-request-hint-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-request-hint-spinner {\n animation: none;\n }\n }\n\n .altertable-widget-status {\n display: flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex: none;\n justify-content: center;\n align-items: center;\n width: 78px;\n height: 30px;\n }\n\n .altertable-widget-status .altertable-button {\n gap: 5px;\n }\n\n .altertable-widget-status .altertable-button svg {\n color: var(--atbl-danger);\n }\n\n .altertable-widget-status-announcement {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-request-hint-copy {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n }\n\n .altertable-request-hint-copy > svg {\n flex: none;\n }\n}\n\n/* packages/data-app-react/src/ui/GradientScroll.css */\n@layer atbl.components {\n .altertable-gradient-scroll {\n overflow: auto;\n --atbl-scroll-fade-size: 1.5rem;\n min-width: 0;\n min-height: 0;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"] {\n overflow-x: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"] {\n overflow-y: hidden;\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to bottom, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"vertical\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to bottom, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start][data-fade-end] {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size), black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-start]:not([data-fade-end]) {\n mask-image: linear-gradient(to right, transparent, black var(--atbl-scroll-fade-size));\n }\n\n .altertable-gradient-scroll[data-axis=\"horizontal\"][data-fade-end]:not([data-fade-start]) {\n mask-image: linear-gradient(to right, black, black calc(100% - var(--atbl-scroll-fade-size)), transparent);\n }\n}\n\n/* packages/data-app-react/src/ui/SelectionMark.css */\n@layer atbl.components {\n .altertable-selection-mark {\n display: grid;\n box-sizing: border-box;\n font-size: var(--atbl-control-icon-size);\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-selection-mark[data-multiple] {\n border: 1px solid var(--atbl-muted);\n border-radius: .25em;\n }\n\n .altertable-selection-mark[data-multiple][data-selected] {\n border-color: var(--atbl-accent);\n background: var(--atbl-accent);\n }\n\n .altertable-selection-mark[data-multiple][data-selected]:after {\n content: \"\";\n border: .125em solid;\n border-width: 0 .125em .125em 0;\n border-color: var(--atbl-on-accent);\n width: .25em;\n height: .4375em;\n margin-top: -.125em;\n transform: rotate(45deg);\n }\n}\n\n/* packages/data-app-react/src/ui/SearchMatch.css */\n@layer atbl.components {\n .altertable-search-match mark {\n background: color-mix(in srgb, currentColor 16%, transparent);\n color: inherit;\n box-decoration-break: clone;\n border-radius: 2px;\n padding: 0 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/ChoicePicker.css */\n@layer atbl.components {\n .altertable-picker-trigger {\n box-sizing: border-box;\n text-align: left;\n max-width: min(100%, 340px, 75vw);\n }\n\n .altertable-picker-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n flex: 1000 6em;\n min-width: 0;\n max-width: max-content;\n }\n\n .altertable-picker-value {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n flex: 6em;\n min-width: 0;\n max-width: max-content;\n }\n\n .altertable-picker-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-left: auto;\n }\n\n .altertable-choice-picker-popover {\n z-index: 150;\n overflow: hidden;\n width: min(300px, 100vw - 24px);\n padding: 0;\n }\n\n .altertable-choice-picker-dialog {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap {\n gap: calc(10px + var(--atbl-control-icon-size) - 17px);\n box-sizing: border-box;\n border: 0;\n border-bottom: 1px solid var(--atbl-border);\n border-radius: 0;\n width: 100%;\n margin: 0;\n padding: 6px 18px;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within {\n outline: none;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap > svg {\n opacity: .65;\n }\n\n .altertable-choice-picker-dialog .altertable-search-input-wrap:focus-within > svg {\n opacity: 1;\n }\n\n .altertable-choice-picker-status {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n\n .altertable-choice-picker-options {\n scroll-padding-block: 8px;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-choice-picker-popover .react-aria-ListBox {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 10px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: 400;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child) {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-choice-picker-popover .react-aria-ListBoxItem[data-missing]:not(:first-child):before {\n content: \"\";\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n top: -5px;\n left: 0;\n right: 0;\n }\n\n .altertable-choice-picker-option-content {\n min-width: 0;\n }\n\n .altertable-choice-picker-empty {\n color: var(--atbl-muted);\n padding: 12px 10px;\n }\n\n .altertable-choice-picker-actions {\n border-top: 1px solid var(--atbl-border);\n display: flex;\n justify-content: flex-start;\n margin: 0 8px;\n padding: 4px 0;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint {\n margin: 4px 10px 0;\n }\n\n .altertable-choice-picker-skeletons {\n display: grid;\n gap: 10px;\n padding: 10px;\n }\n\n .altertable-choice-picker-skeletons > span {\n height: 24px;\n }\n\n .altertable-choice-picker-dialog > .altertable-request-hint[data-state=\"error\"] {\n display: flex;\n text-align: center;\n flex-direction: column;\n align-items: center;\n gap: 6px;\n height: auto;\n margin: 12px 10px 4px;\n }\n}\n\n/* packages/data-app-react/src/ui/Menu.css */\n@layer atbl.components {\n .altertable-menu-popover {\n z-index: 150;\n min-width: max(var(--trigger-width), 180px);\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n max-width: min(340px, 100vw - 24px);\n }\n\n .altertable-menu {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-menu-item {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n align-items: center;\n gap: 9px;\n }\n\n .altertable-menu-separator {\n background: var(--atbl-border);\n height: 1px;\n margin: 4px 0;\n }\n\n .altertable-exploration-action-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n --atbl-control-open-surface: transparent;\n color: var(--atbl-text);\n }\n\n .altertable-exploration-action-trigger:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n color: var(--atbl-accent);\n background: none;\n }\n\n .altertable-exploration-action-trigger[data-context-only] {\n visibility: hidden;\n position: absolute;\n overflow: hidden;\n border: 0;\n block-size: 0;\n min-block-size: 0;\n inline-size: 0;\n min-inline-size: 0;\n padding: 0;\n }\n\n .altertable-exploration-actions[data-context-only] {\n position: absolute;\n }\n\n .altertable-selectable-bars, .altertable-pie-chart, .altertable-trend-chart {\n position: relative;\n }\n\n .altertable-chart-copy-status {\n position: absolute;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font-size: var(--atbl-type-meta-size);\n padding: 4px 8px;\n bottom: 4px;\n }\n\n .altertable-chart-copy-status:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 8px;\n }\n\n .altertable-chart-copy-status:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-chart-copy-status:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 8px;\n }\n\n .altertable-exploration-action-menu {\n --atbl-focus-outline: none;\n width: max-content;\n min-width: 180px;\n }\n}\n\n/* packages/data-app-react/src/ui/FilterControls.css */\n@layer atbl.components {\n .altertable-number-field, .altertable-radio-group, .altertable-checkbox-group {\n display: flex;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n flex-direction: column;\n min-width: 0;\n }\n\n .altertable-number-field > label, .altertable-radio-group > .altertable-control-label, .altertable-checkbox-group > label {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-number-field [data-atbl-internal-surface=\"field\"] {\n min-height: var(--atbl-control-height);\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-sizing: border-box;\n }\n\n .altertable-number-field input {\n outline: 0;\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-number-range-field {\n display: flex;\n gap: var(--atbl-space-sm);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-number-range-field legend {\n margin-bottom: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n padding: 0;\n }\n\n .altertable-number-range-field .altertable-number-field {\n flex: 110px;\n max-width: 160px;\n }\n\n .altertable-number-range-field p {\n color: var(--atbl-danger);\n flex-basis: 100%;\n margin: 0;\n }\n\n .altertable-radio {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border-radius: var(--atbl-radius-control);\n }\n\n .altertable-radio-mark {\n display: grid;\n border: 1px solid var(--atbl-muted);\n border-radius: 50%;\n flex: none;\n place-items: center;\n width: 1em;\n height: 1em;\n }\n\n .altertable-radio[data-selected] .altertable-radio-mark:after {\n content: \"\";\n background: var(--atbl-accent);\n border-radius: 50%;\n width: .5em;\n height: .5em;\n }\n\n .altertable-segmented-control {\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-direction: row;\n }\n\n .altertable-segmented-options {\n display: inline-flex;\n min-width: 0;\n }\n\n .altertable-segmented-control .altertable-radio {\n padding: var(--atbl-control-padding-block) var(--atbl-control-padding-inline);\n min-height: var(--atbl-control-height);\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: 0;\n }\n\n .altertable-segmented-options .altertable-radio:first-child {\n border-radius: var(--atbl-radius-control) 0 0 var(--atbl-radius-control);\n }\n\n .altertable-segmented-control .altertable-radio:last-child {\n border-radius: 0 var(--atbl-radius-control) var(--atbl-radius-control) 0;\n }\n\n .altertable-segmented-control .altertable-radio + .altertable-radio {\n margin-inline-start: -1px;\n }\n\n .altertable-segmented-control .altertable-radio-mark {\n display: none;\n }\n\n .altertable-filter-bar, .altertable-filter-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-actions, .altertable-checkbox-group {\n border: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-checkbox-group legend {\n color: var(--atbl-muted);\n margin-bottom: var(--atbl-space-xs);\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :is(.altertable-filter-bar, .altertable-control-bar) .altertable-number-field {\n flex-direction: row;\n align-items: center;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :is(.altertable-filter-bar, .altertable-control-bar) .altertable-number-field > label {\n white-space: nowrap;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :is(.altertable-filter-bar, .altertable-control-bar) .altertable-number-range-field {\n position: relative;\n }\n\n :-webkit-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :-moz-any(.altertable-filter-bar, .altertable-control-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n :is(.altertable-filter-bar, .altertable-control-bar) .altertable-number-range-field legend {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n width: 1px;\n height: 1px;\n }\n\n .altertable-select-trigger {\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n justify-content: space-between;\n min-width: 90px;\n }\n\n .altertable-select-trigger > svg:last-child {\n color: var(--atbl-muted);\n flex: none;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-select-popover {\n z-index: 160;\n width: min(260px, 100vw - 24px);\n }\n\n .altertable-select-options {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n padding: var(--atbl-dropdown-padding);\n overflow: auto;\n outline: none;\n flex-direction: column;\n max-height: min(320px, 60dvh);\n }\n\n .altertable-select-option {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n border-radius: var(--atbl-radius-control);\n outline: none;\n }\n\n .altertable-select-option small {\n display: block;\n color: var(--atbl-muted);\n }\n\n .altertable-number-filter-popover {\n z-index: 150;\n padding: var(--atbl-space-md);\n width: min(340px, 100vw - 24px);\n }\n\n .altertable-number-filter-dialog {\n outline: none;\n }\n\n .altertable-number-filter-editor {\n display: flex;\n gap: var(--atbl-space-md);\n flex-direction: column;\n }\n\n .altertable-number-filter-editor h3 {\n font: inherit;\n font-weight: var(--atbl-type-label-weight);\n margin: 0;\n }\n\n .altertable-number-filter-editor .altertable-select-trigger {\n width: 100%;\n }\n\n .altertable-number-filter-editor .altertable-number-range-field .altertable-number-field {\n max-width: none;\n }\n\n .altertable-number-filter-actions {\n display: flex;\n justify-content: flex-end;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-number-filter-actions > [data-variant=\"ghost\"] {\n margin-inline-end: auto;\n }\n\n .altertable-segmented-options .altertable-radio:only-child {\n border-radius: var(--atbl-radius-control);\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n .altertable-select-trigger {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n .altertable-number-filter-feedback {\n color: var(--atbl-danger);\n min-height: 1.4em;\n margin: 0;\n }\n\n .altertable-display-options-label {\n display: inline-flex;\n align-items: baseline;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-display-options-label small {\n color: var(--atbl-muted);\n font-variant-numeric: tabular-nums;\n font-size: .85em;\n }\n\n .altertable-select[data-label-placement=\"inline\"] {\n display: inline-flex;\n gap: 0;\n }\n\n .altertable-select-trigger.altertable-picker-trigger > svg:last-child {\n margin-inline-start: auto;\n }\n\n .altertable-select-trigger[data-size=\"compact\"] {\n --atbl-type-label-size: var(--atbl-type-meta-size);\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Field.css */\n@layer atbl.components {\n .altertable-field {\n display: grid;\n gap: var(--atbl-space-xs);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n min-width: 0;\n }\n\n .altertable-field > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field > :is(label, .react-aria-Label, .altertable-field-label) {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-field[data-label-placement=\"inline\"] {\n grid-template-columns: auto auto;\n align-items: center;\n }\n\n .altertable-field[data-label-placement=\"beside\"] {\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(label, .react-aria-Label, .altertable-field-label) {\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-field[data-label-placement=\"beside\"] > button {\n font-weight: 400;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-webkit-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :-moz-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"above\"] > :is(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-webkit-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :-moz-any(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-field[data-label-placement=\"beside\"] > :is(button, .altertable-datetime-input) {\n width: 100%;\n min-width: 0;\n max-width: 100%;\n }\n}\n\n/* packages/data-app-react/src/ui/Checkbox.css */\n@layer atbl.components {\n .altertable-checkbox {\n position: relative;\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n color: var(--atbl-text);\n align-items: flex-start;\n gap: 9px;\n }\n\n .altertable-checkbox input {\n position: absolute;\n cursor: inherit;\n opacity: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n inset: 0;\n }\n\n .altertable-checkbox .altertable-selection-mark {\n margin-top: 2px;\n }\n\n .altertable-checkbox small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 2px;\n }\n}\n\n/* packages/data-app-react/src/ui/EmptyState.css */\n@layer atbl.components {\n .altertable-empty-state {\n display: flex;\n color: var(--atbl-muted);\n text-align: center;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 5px;\n min-height: 176px;\n padding: 24px;\n }\n\n .altertable-empty-state strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-empty-state p {\n font-size: var(--atbl-type-meta-size);\n white-space: normal;\n max-width: 40ch;\n margin: 0;\n line-height: 1.5;\n }\n\n .altertable-empty-state[data-variant=\"table\"] {\n min-height: 112px;\n padding: 18px;\n }\n\n .altertable-empty-state-action {\n display: flex;\n justify-content: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n margin-block-start: var(--atbl-space-sm);\n }\n}\n\n/* packages/data-app-react/src/ui/Kbd.css */\n@layer atbl.components {\n .altertable-kbd {\n display: inline-flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n border-radius: 5px;\n justify-content: center;\n align-items: center;\n min-width: 1.6em;\n padding: 2px 5px;\n }\n\n .altertable-button[data-variant=\"primary\"] .altertable-kbd {\n color: inherit;\n border-color: color-mix(in srgb, currentColor 30%, transparent);\n background: none;\n }\n}\n\n/* packages/data-app-react/src/ui/QueryList.css */\n@layer atbl.components {\n .altertable-query-list {\n display: grid;\n gap: 20px;\n min-width: 0;\n }\n\n .altertable-query-list summary {\n display: inline-flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-radius: 4px;\n align-items: center;\n gap: 6px;\n width: -moz-fit-content;\n width: fit-content;\n }\n\n .altertable-query-list summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-query-list summary:before {\n content: \"\";\n transition: rotate var(--atbl-duration-fast) var(--atbl-ease-standard);\n border-block-start: 4px solid #0000;\n border-block-end: 4px solid #0000;\n border-inline-start: 5px solid;\n width: 0;\n height: 0;\n }\n\n .altertable-query-list[open] summary:before {\n rotate: 90deg;\n }\n\n .altertable-query-list summary:hover {\n color: var(--atbl-text);\n }\n\n .altertable-query-list figure {\n display: grid;\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n border-radius: 10px;\n gap: 0;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-list figcaption {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n color: var(--atbl-text);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n justify-content: space-between;\n align-items: center;\n gap: 12px;\n min-height: 36px;\n padding: 3px 6px 3px 14px;\n }\n\n .altertable-query-filename {\n display: inline-flex;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-query-actions {\n display: inline-flex;\n flex: none;\n align-items: center;\n gap: 2px;\n }\n\n .altertable-query-action {\n color: var(--atbl-muted);\n background: none;\n border: 0;\n width: 28px;\n min-width: 28px;\n min-height: 28px;\n padding: 0;\n }\n\n .altertable-query-action:hover:not(:disabled) {\n color: var(--atbl-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-query-list pre {\n background: var(--atbl-code-surface);\n color: var(--atbl-code-text);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-mono-font);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n tab-size: 2;\n border: 0;\n border-radius: 0;\n margin: 0;\n padding: 14px 16px 18px;\n }\n\n .altertable-query-parameters {\n display: flex;\n border-top: 1px solid var(--atbl-border);\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-body-leading) var(--atbl-font);\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px 12px;\n min-width: 0;\n padding: 10px 14px;\n }\n\n .altertable-query-parameters dl {\n display: flex;\n flex-wrap: wrap;\n gap: 6px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dl > div {\n display: flex;\n border: 1px solid var(--atbl-border);\n background: var(--atbl-subtle);\n overflow-wrap: anywhere;\n border-radius: 6px;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 8px;\n min-width: 0;\n max-width: 100%;\n padding: 3px 8px;\n }\n\n .altertable-query-parameters dt, .altertable-query-parameters dd {\n min-width: 0;\n margin: 0;\n }\n\n .altertable-query-parameters dt {\n flex-shrink: 0;\n max-width: 100%;\n }\n\n .altertable-query-parameters dd {\n color: var(--atbl-text);\n }\n\n .altertable-query-parameters code {\n font-family: var(--atbl-mono-font);\n }\n\n .altertable-sql-keyword {\n color: var(--atbl-code-keyword, var(--atbl-accent));\n font-weight: 650;\n }\n\n .altertable-query-unavailable {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 0;\n }\n\n .altertable-query-notebook {\n gap: 16px;\n }\n\n .altertable-query-notebook-header {\n display: flex;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n padding: 0 0 4px;\n }\n\n .altertable-query-notebook-header > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: 450;\n }\n\n .altertable-query-notebook-header small {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-meta-weight);\n margin-inline-start: 8px;\n }\n\n .altertable-query-notebook-header .altertable-button {\n display: inline-flex;\n font-size: var(--atbl-type-meta-size);\n align-items: center;\n gap: 6px;\n min-height: 30px;\n }\n\n .altertable-query-notebook figure {\n border-radius: 10px;\n }\n\n .altertable-query-notebook-error {\n color: var(--atbl-danger);\n font-size: var(--atbl-type-meta-size);\n padding: 8px 12px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n .altertable-query-actions .altertable-query-action {\n opacity: 0;\n pointer-events: none;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-query-list figure:hover .altertable-query-action, .altertable-query-list figure:focus-within .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n\n .altertable-query-actions:has(output) .altertable-query-action {\n opacity: 1;\n pointer-events: auto;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-query-list summary, .altertable-query-list summary:before, .altertable-query-actions .altertable-query-action {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Sheet.css */\n@layer atbl.components {\n :root:has(.altertable-sheet:modal) {\n overflow: hidden;\n }\n\n .altertable-sheet:not([open]) {\n display: none;\n }\n\n .altertable-sheet {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto auto;\n height: var(--atbl-frame-visible-height);\n overflow: visible;\n border: 0;\n border-left: 1px solid var(--atbl-border);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: var(--atbl-type-body-size) / var(--atbl-type-label-leading) var(--atbl-font);\n opacity: 0;\n transition: translate var(--atbl-duration-slow) cubic-bezier(.22, 1, .36, 1), opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n border-radius: 0;\n width: min(640px, 100vw);\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n translate: 100%;\n }\n\n .altertable-sheet[data-wide] {\n width: min(960px, 100vw);\n }\n\n .altertable-sheet[open] {\n opacity: 1;\n translate: 0;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n opacity: 0;\n translate: 100%;\n }\n }\n\n .altertable-sheet[open][data-closing] {\n opacity: 0;\n transition-timing-function: ease-in;\n translate: 100%;\n }\n\n .altertable-sheet::backdrop {\n background: var(--atbl-backdrop);\n opacity: 0;\n transition: opacity var(--atbl-duration-slow) var(--atbl-ease-standard);\n }\n\n .altertable-sheet[open]::backdrop {\n opacity: 1;\n }\n\n .altertable-sheet[open][data-closing]::backdrop {\n opacity: 0;\n }\n\n @starting-style {\n .altertable-sheet[open]::backdrop {\n opacity: 0;\n }\n }\n\n .altertable-sheet-shell {\n display: grid;\n grid-template-rows: auto minmax(0, 1fr) auto;\n height: 100%;\n }\n\n .altertable-sheet-header {\n display: flex;\n justify-content: space-between;\n align-items: flex-start;\n gap: var(--atbl-space-md);\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc((var(--atbl-space-md) + var(--atbl-space-lg)) / 2);\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-sheet-header h2 {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n letter-spacing: -.02em;\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-sheet-header p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-sheet-actions {\n display: flex;\n align-items: center;\n gap: 4px;\n margin: -4px -8px 0 0;\n }\n\n .altertable-sheet-close {\n color: var(--atbl-muted);\n }\n\n .altertable-sheet-body {\n overflow-y: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-lg) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2) calc(var(--atbl-space-xl) + var(--atbl-space-md) / 2);\n min-height: 0;\n }\n\n .altertable-sheet-footer {\n padding: var(--atbl-space-md) calc((var(--atbl-space-lg) + var(--atbl-space-xl)) / 2);\n border-top: 1px solid var(--atbl-border);\n }\n\n @media (min-width: 601px) {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"]) {\n inset: var(--atbl-frame-inset-top, 0px) auto auto 0;\n border-left: 0;\n border-right: 1px solid var(--atbl-border);\n translate: -100%;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: 0;\n }\n\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open][data-closing] {\n translate: -100%;\n }\n\n @starting-style {\n .altertable-sheet:where([data-placement=\"side\"][data-side=\"left\"])[open] {\n translate: -100%;\n }\n }\n }\n\n @media (max-width: 960px) {\n .altertable-sheet[data-wide] {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[data-wide][open] {\n translate: 0;\n }\n\n .altertable-sheet[data-wide][open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[data-wide][open] {\n translate: 0 100%;\n }\n }\n }\n\n @media (max-width: 600px) {\n .altertable-sheet {\n inset: auto 0 var(--atbl-frame-inset-bottom, 0px);\n box-shadow: none;\n border: 0;\n translate: 0 100%;\n }\n\n .altertable-sheet[open] {\n translate: 0;\n }\n\n .altertable-sheet[open][data-closing] {\n translate: 0 100%;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0 100%;\n }\n }\n\n .altertable-sheet-header {\n padding: 20px 20px 16px;\n }\n\n .altertable-sheet-body {\n padding: 20px 20px 32px;\n }\n\n .altertable-sheet-footer {\n padding: 14px 20px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-sheet, .altertable-sheet[open][data-closing] {\n transition: none;\n translate: 0;\n }\n\n .altertable-sheet::backdrop {\n transition: none;\n }\n\n @starting-style {\n .altertable-sheet[open] {\n translate: 0;\n }\n }\n }\n\n .altertable-sheet[data-placement=\"center\"] {\n inset: var(--atbl-frame-inset-top, 0px) 0 var(--atbl-frame-inset-bottom, 0px);\n max-height: calc(var(--atbl-frame-visible-height) - 32px);\n border: 1px solid var(--atbl-border, #e3e6e8);\n border-radius: var(--atbl-radius-overlay);\n width: min(480px, 100vw - 32px);\n height: -moz-fit-content;\n height: fit-content;\n margin: auto;\n translate: 0;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-shell {\n height: auto;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-header {\n padding: 20px 24px 16px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-body {\n padding: 0 24px 20px;\n }\n\n .altertable-sheet[data-placement=\"center\"] .altertable-sheet-footer {\n padding: 16px 24px;\n }\n}\n\n/* packages/data-app-react/src/ui/Tabs.css */\n@layer atbl.components {\n .altertable-tabs .react-aria-TabList {\n display: flex;\n gap: var(--atbl-space-lg);\n overflow-x: auto;\n overscroll-behavior-x: none;\n border-bottom: 1px solid var(--atbl-border);\n scrollbar-width: none;\n }\n\n .altertable-tabs .react-aria-Tab {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n outline: none;\n transition: color var(--atbl-duration-fast) var(--atbl-ease-standard), border-color var(--atbl-duration-normal) var(--atbl-ease-standard);\n border-bottom: 2px solid #0000;\n flex: none;\n margin-bottom: -1px;\n padding: 0 1px 12px;\n font-weight: 550;\n }\n\n .altertable-tabs .react-aria-Tab[data-hovered] {\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-selected] {\n border-bottom-color: var(--atbl-accent);\n color: var(--atbl-text);\n }\n\n .altertable-tabs .react-aria-Tab[data-focus-visible] {\n border-radius: 2px;\n }\n\n .altertable-tabs .react-aria-TabPanels {\n min-width: 0;\n padding-block-start: var(--atbl-space-md);\n }\n\n .altertable-tabs .react-aria-TabPanel {\n outline: none;\n min-width: 0;\n }\n\n .altertable-tabs .react-aria-TabPanel[data-inert] {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-tabs .react-aria-Tab {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AboutData.css */\n@layer atbl.components {\n .altertable-about-visual {\n display: grid;\n overflow-x: auto;\n overscroll-behavior-x: none;\n overflow-y: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-subtle);\n min-width: 0;\n margin: 0 0 24px;\n padding: 22px 20px 16px;\n }\n\n .altertable-about-visual > * {\n min-width: 0;\n }\n\n .altertable-about-visual[data-kind=\"metric\"] {\n padding: 16px 18px;\n }\n\n .altertable-about-visual[data-kind=\"widget\"] {\n background: var(--atbl-surface);\n padding: 0;\n }\n\n .altertable-about-body {\n display: grid;\n gap: 28px;\n min-width: 0;\n }\n\n .altertable-about-glossary-list {\n display: grid;\n gap: 16px;\n }\n\n .altertable-about-glossary-entry {\n display: grid;\n gap: 3px;\n }\n\n .altertable-about-glossary-entry > h3 {\n font-size: var(--atbl-type-body-size);\n letter-spacing: -.01em;\n margin: 0;\n font-weight: 650;\n }\n\n .altertable-about-glossary-entry > p {\n margin: 0;\n line-height: 1.55;\n }\n\n .altertable-about-tabs {\n display: grid;\n gap: 0;\n min-width: 0;\n }\n\n .altertable-about-tabbar {\n position: sticky;\n z-index: 2;\n background: var(--atbl-surface);\n margin-top: -24px;\n padding: 24px 0 14px;\n top: -24px;\n }\n\n @media (max-width: 600px) {\n .altertable-about-tabbar {\n margin-top: -20px;\n padding-top: 20px;\n top: -20px;\n }\n }\n\n .altertable-about-tabs .react-aria-TabList {\n display: flex;\n background: var(--atbl-subtle);\n border: 0;\n border-radius: 10px;\n flex-wrap: wrap;\n gap: 2px;\n width: 100%;\n max-width: 100%;\n padding: 3px;\n }\n\n .altertable-about-tabs .react-aria-TabPanels {\n padding-top: 14px;\n }\n\n .altertable-about-tabs .react-aria-Tab {\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n border: 0;\n border-radius: 8px;\n margin: 0;\n padding: 6px 10px;\n }\n\n .altertable-about-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: 0 0 0 1px var(--atbl-border);\n }\n\n .altertable-about-tabs .react-aria-TabPanel {\n min-width: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/AppHeader.css */\n@layer atbl.components {\n .altertable-app-header {\n border-bottom: 1px solid var(--atbl-border);\n padding-bottom: 12px;\n }\n\n .altertable-app-header-heading {\n min-width: 0;\n }\n\n .altertable-app-header-primary {\n display: flex;\n flex-wrap: wrap;\n align-items: baseline;\n gap: 4px 14px;\n min-width: 0;\n }\n\n .altertable-app-header-context {\n display: inline-flex;\n align-items: baseline;\n gap: 5px;\n min-width: 0;\n }\n\n .altertable-app-header-connector {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n line-height: 1.2;\n }\n\n .altertable-app-header-primary h1 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-page-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.03em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n line-height: 1.15;\n }\n\n .altertable-app-header-heading > p {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n text-wrap: pretty;\n margin: 4px 0 0;\n line-height: 1.45;\n }\n\n .altertable-app-header-toolbar {\n flex: none;\n align-self: center;\n max-width: 100%;\n margin-inline-start: auto;\n }\n\n @media (max-width: 700px) {\n .altertable-app-header-primary {\n gap: 8px 12px;\n }\n\n .altertable-app-header-primary h1 {\n flex-basis: 100%;\n }\n\n .altertable-app-header-context {\n flex: 160px;\n min-width: min(100%, 160px);\n }\n\n .altertable-app-header-heading > p {\n margin-top: 8px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppFooter.css */\n@layer atbl.components {\n .altertable-app-footer {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n }\n\n .altertable-app-footer-inner {\n width: min(100% - 48px, var(--atbl-content-width));\n padding-block: var(--atbl-space-lg);\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n margin: 0 auto;\n }\n\n .altertable-app-footer-actions {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n min-width: 0;\n }\n\n .altertable-app-footer a {\n display: inline-flex;\n color: inherit;\n text-decoration: none;\n white-space: normal;\n overflow-wrap: anywhere;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-app-footer-logo {\n color: var(--atbl-text);\n width: 92px;\n height: 16px;\n margin-left: 4px;\n }\n\n .altertable-app-footer a:hover {\n color: var(--atbl-text);\n }\n\n @media (max-width: 600px) {\n .altertable-app-footer-inner {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-footer-inner > *, .altertable-app-footer-actions > * {\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n}\n\n/* packages/data-app-react/src/ui/AppLayout.css */\n@layer atbl.components {\n .altertable-app-layout {\n display: flex;\n flex-direction: column;\n min-height: 100dvh;\n }\n\n :root[data-atbl-frame-sizing=\"content\"] .altertable-app-layout {\n min-height: 0;\n }\n\n .altertable-app-main {\n display: grid;\n align-content: start;\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n width: min(100% - 48px, var(--atbl-content-width));\n padding: clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)) 0 calc(2 * var(--atbl-space-xl));\n min-width: 0;\n margin-inline-start: auto;\n margin-inline-end: auto;\n }\n\n .altertable-app-body {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-main > *, .altertable-app-body > * {\n margin: 0;\n }\n\n .altertable-app-footer {\n margin-top: auto;\n }\n\n @media (max-width: 600px) {\n .altertable-app-main {\n width: min(100% - 32px, var(--atbl-content-width));\n }\n }\n\n .altertable-app-content-footer {\n padding-top: var(--atbl-space-sm);\n padding-inline: var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n min-width: 0;\n }\n\n .altertable-app-content-footer .altertable-text-content {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: none;\n }\n\n :root:has(.altertable-active-filters) {\n --atbl-active-filters-clearance: calc(env(safe-area-inset-bottom, 0px) + 2 * var(--atbl-space-md) + max(44px, var(--atbl-control-height)) + 2 * var(--atbl-space-xs) + 2px);\n scroll-padding-block-end: var(--atbl-active-filters-clearance);\n }\n\n .altertable-app-layout:has(.altertable-active-filters) {\n padding-block-end: var(--atbl-active-filters-clearance);\n }\n}\n\n/* packages/data-app-react/src/ui/AppScope.css */\n@layer atbl.components {\n .altertable-app-scope {\n display: inline-flex;\n color: var(--atbl-muted);\n font: var(--atbl-type-label-weight) var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n align-items: center;\n gap: 5px;\n max-width: 100%;\n }\n\n .altertable-app-scope-organization {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: .06em;\n text-transform: uppercase;\n line-height: 1.3;\n }\n\n .altertable-app-scope-environment {\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: .01em;\n border-radius: 999px;\n padding: 4px 8px;\n }\n}\n\n/* packages/data-app-react/src/ui/LiveControl.css */\n@layer atbl.components {\n .altertable-live-control {\n display: inline-flex;\n min-block-size: var(--atbl-control-height);\n overflow: hidden;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-surface);\n flex: none;\n align-self: flex-start;\n align-items: stretch;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n }\n\n .altertable-live-control .altertable-button[data-size=\"icon\"] {\n position: relative;\n width: calc(var(--atbl-control-height) - 2px);\n min-width: calc(var(--atbl-control-height) - 2px);\n min-height: calc(var(--atbl-control-height) - 2px);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n box-shadow: none;\n background: none;\n border: 0;\n border-radius: 0;\n padding: 0;\n }\n\n .altertable-live-control[data-active=\"true\"] {\n border-color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button {\n --atbl-control-selected-text: var(--atbl-positive);\n color: var(--atbl-positive);\n }\n\n .altertable-live-control[data-active=\"true\"] .altertable-button:after {\n position: absolute;\n content: \"\";\n background: currentColor;\n border-radius: 50%;\n width: 5px;\n height: 5px;\n top: 5px;\n right: 5px;\n }\n\n .altertable-live-frequency {\n width: calc(var(--atbl-control-height) - .5rem);\n min-block-size: calc(var(--atbl-control-height) - 2px);\n border-left: 1px solid var(--atbl-border);\n }\n\n .altertable-live-frequency > button {\n display: grid;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n border-radius: 0;\n place-items: center;\n width: 100%;\n height: 100%;\n padding: 0;\n }\n\n .altertable-live-frequency-popover {\n z-index: 1000;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n min-width: 190px;\n }\n\n .altertable-live-frequency-popover [role=\"option\"] {\n display: flex;\n min-height: calc(var(--atbl-control-height) - 2px);\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n }\n\n .altertable-live-frequency-popover [role=\"listbox\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n flex-direction: column;\n }\n\n .altertable-live-frequency-popover [role=\"option\"][data-selected] {\n font-weight: var(--atbl-type-label-weight);\n }\n\n .altertable-live-frequency-popover [role=\"option\"]:not([data-selected]) svg {\n visibility: hidden;\n }\n\n .altertable-visually-hidden {\n position: absolute;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n width: 1px;\n height: 1px;\n }\n}\n\n/* packages/data-app-react/src/ui/PresentStory.css */\n@layer atbl.components {\n :root:has(.altertable-present-dialog:modal) {\n overflow: hidden;\n }\n\n .altertable-present-launch {\n position: relative;\n display: inline-flex;\n }\n\n .altertable-present-dialog:not([open]) {\n display: none;\n }\n\n .altertable-present-dialog {\n position: fixed;\n inset: var(--atbl-frame-inset-top, 0px) 0 auto;\n height: var(--atbl-frame-visible-height);\n background: var(--atbl-background);\n color: var(--atbl-text);\n overscroll-behavior: contain;\n opacity: 0;\n transition: opacity .2s var(--atbl-ease-standard), overlay .2s allow-discrete, display .2s allow-discrete;\n border: 0;\n width: 100vw;\n max-width: none;\n max-height: none;\n margin: 0;\n padding: 0;\n }\n\n .altertable-present-dialog[open] {\n opacity: 1;\n }\n\n @starting-style {\n .altertable-present-dialog[open] {\n opacity: 0;\n }\n }\n\n .altertable-present-dialog::backdrop {\n background: none;\n }\n\n .altertable-present-shell {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n }\n\n .altertable-present-header, .altertable-present-nav {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-md);\n flex: none;\n width: min(100% - 48px, 1200px);\n margin: 0 auto;\n }\n\n .altertable-present-header {\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n min-height: 60px;\n }\n\n .altertable-present-title {\n display: flex;\n flex-wrap: wrap;\n flex: 1;\n align-items: center;\n gap: 3px 6px;\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title strong {\n font-size: var(--atbl-type-body-size);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-weight: 650;\n line-height: 24px;\n }\n\n .altertable-present-connector {\n color: var(--atbl-muted);\n font-weight: 400;\n }\n\n .altertable-present-title .altertable-app-scope {\n min-width: 0;\n line-height: 24px;\n }\n\n .altertable-present-title .altertable-app-scope-environment {\n line-height: 16px;\n }\n\n .altertable-present-count {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n }\n\n .altertable-present-actions {\n display: flex;\n flex: none;\n align-items: center;\n gap: 4px;\n }\n\n .altertable-present-theme {\n display: inline-flex;\n margin-inline-start: var(--atbl-space-sm);\n }\n\n .altertable-present-main {\n display: grid;\n grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);\n align-content: safe center;\n align-items: start;\n column-gap: clamp(28px, 5vw, 72px);\n row-gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg) 0;\n overflow-y: auto;\n overscroll-behavior-y: contain;\n animation: altertable-present-step var(--atbl-duration-slow) var(--atbl-ease-enter);\n flex: 1;\n width: min(100% - 64px, 1100px);\n min-height: 0;\n margin: 0 auto;\n }\n\n @keyframes altertable-present-step {\n from {\n opacity: 0;\n translate: 0 6px;\n }\n }\n\n .altertable-present-copy {\n min-width: 0;\n }\n\n .altertable-present-copy > h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n letter-spacing: -.04em;\n overflow-wrap: anywhere;\n text-wrap: balance;\n margin: 0;\n font-size: clamp(30px, 3.8vw, 50px);\n font-weight: 650;\n line-height: 1.1;\n }\n\n .altertable-present-copy > h2:focus {\n outline: none;\n }\n\n .altertable-present-explore {\n margin-top: var(--atbl-space-lg);\n }\n\n .altertable-present-copy > p {\n margin: var(--atbl-space-md) 0 0;\n color: var(--atbl-muted);\n text-wrap: pretty;\n max-width: 58ch;\n font-size: clamp(15px, 1.5vw, 18px);\n line-height: 1.55;\n }\n\n .altertable-present-visual {\n grid-column: 2;\n grid-row: 1;\n display: flex;\n padding: var(--atbl-space-lg);\n overflow: auto;\n overscroll-behavior: contain;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: center;\n min-width: 0;\n min-height: clamp(280px, 48vh, 470px);\n max-height: 62vh;\n }\n\n .altertable-present-visual > * {\n width: 100%;\n }\n\n .altertable-present-visual[data-kind=\"metric\"] {\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-present-nav {\n justify-content: space-between;\n min-height: 72px;\n }\n\n .altertable-present-nav > .altertable-tooltip-trigger > button:disabled {\n color: var(--atbl-muted);\n }\n\n .altertable-present-dots {\n display: flex;\n align-items: center;\n }\n\n .altertable-present-dots button {\n display: grid;\n border-radius: var(--atbl-radius-control);\n background: none;\n border: 0;\n place-items: center;\n width: 28px;\n height: 44px;\n padding: 0;\n }\n\n .altertable-present-dots button:before {\n background: var(--atbl-border);\n content: \"\";\n transition: width .2s var(--atbl-ease-enter), background-color .2s var(--atbl-ease-standard);\n border-radius: 999px;\n width: 7px;\n height: 7px;\n }\n\n .altertable-present-dots button:hover:before {\n background: var(--atbl-muted);\n }\n\n .altertable-present-dots button[aria-current=\"step\"]:before {\n background: var(--atbl-accent);\n width: 20px;\n }\n\n @media (max-width: 800px) {\n .altertable-present-main {\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n gap: var(--atbl-space-lg);\n width: min(100% - 40px, 640px);\n }\n\n .altertable-present-visual {\n grid-column: 1;\n grid-row: 2;\n min-height: 220px;\n max-height: none;\n }\n }\n\n @media (max-width: 600px) {\n .altertable-present-header, .altertable-present-nav {\n width: calc(100% - 32px);\n }\n\n .altertable-present-header {\n min-height: 56px;\n }\n\n .altertable-present-main {\n padding: var(--atbl-space-md) 0;\n width: calc(100% - 32px);\n }\n\n .altertable-present-visual {\n padding: var(--atbl-space-md);\n }\n\n .altertable-present-nav {\n gap: 0;\n min-height: 64px;\n }\n\n .altertable-present-dots button {\n width: 24px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-present-dialog, .altertable-present-dots button:before {\n transition: none;\n }\n\n .altertable-present-main {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ShimmerText.css */\n@layer atbl.components {\n .altertable-shimmer-text {\n position: relative;\n display: inline-block;\n overflow: hidden;\n white-space: nowrap;\n min-inline-size: 0;\n max-inline-size: 100%;\n }\n\n .altertable-shimmer-text-base {\n display: block;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: .65;\n }\n\n .altertable-shimmer-text-sweep {\n position: absolute;\n color: var(--atbl-text);\n mask-image: linear-gradient(90deg, #0000 10%, #000 45% 55%, #0000 90%);\n animation: 1.6s linear infinite altertable-shimmer-text-sweep;\n inset: 0;\n }\n\n .altertable-shimmer-text-sweep > span {\n display: block;\n animation: 1.6s linear infinite altertable-shimmer-text-counter-sweep;\n }\n\n .altertable-shimmer-text-sweep > span:before {\n content: attr(data-text);\n }\n\n @keyframes altertable-shimmer-text-sweep {\n from {\n transform: translateX(-100%);\n }\n\n to {\n transform: translateX(100%);\n }\n }\n\n @keyframes altertable-shimmer-text-counter-sweep {\n from {\n transform: translateX(100%);\n }\n\n to {\n transform: translateX(-100%);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-shimmer-text-sweep, .altertable-shimmer-text-sweep > span {\n animation: none;\n }\n\n .altertable-shimmer-text-sweep {\n display: none;\n }\n\n .altertable-shimmer-text-base {\n opacity: 1;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/LoadingStatus.css */\n@layer atbl.components {\n .altertable-loading-status {\n position: absolute;\n inset: var(--atbl-space-md) 0 var(--atbl-surface-padding, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n display: grid;\n padding-inline: var(--atbl-space-md);\n pointer-events: none;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n place-items: center;\n }\n\n .altertable-loading-status:empty {\n visibility: hidden;\n }\n\n .altertable-data-widget-body:has(.altertable-loading-status[data-visible]) .altertable-skeleton {\n animation: none;\n opacity: .35;\n }\n\n .altertable-data-widget-body[data-padding=\"flush\"] > .altertable-loading-status, .altertable-metric-widget .altertable-loading-status {\n top: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/RefreshControl.css */\n@layer atbl.components {\n .altertable-refresh-control {\n position: relative;\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-refresh-loading, .altertable-refresh-cancel, .altertable-refresh-control[data-refreshing] .altertable-refresh-idle {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n display: block;\n animation: .9s linear infinite altertable-refresh-spin;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:has(.altertable-refresh-cancel):hover .altertable-refresh-loading {\n display: none;\n }\n\n .altertable-refresh-control[data-refreshing] .altertable-button:hover .altertable-refresh-cancel {\n display: block;\n }\n\n .altertable-refresh-status {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n display: grid;\n text-align: end;\n }\n\n .altertable-refresh-status > span {\n grid-area: 1 / 1;\n }\n\n @keyframes altertable-refresh-spin {\n to {\n rotate: 360deg;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-refresh-control[data-refreshing] .altertable-refresh-loading {\n animation: 1.2s ease-in-out infinite alternate altertable-refresh-pulse;\n }\n }\n\n @keyframes altertable-refresh-pulse {\n to {\n opacity: .35;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/AppToolbar.css */\n@layer atbl.components {\n .altertable-app-toolbar {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-sm);\n width: 100%;\n }\n\n .altertable-app-toolbar-updated {\n color: color-mix(in srgb, var(--atbl-muted) 78%, var(--atbl-background));\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n margin-right: 6px;\n }\n\n .altertable-app-toolbar-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: var(--atbl-space-xs);\n flex-wrap: wrap;\n margin-inline-start: auto;\n }\n\n .altertable-app-toolbar {\n flex-shrink: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ControlBar.css */\n@layer atbl.components {\n .altertable-control-bar {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-control-bar > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-primary-controls {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: start;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-primary-control-actions {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-filter-bar-inputs {\n display: flex;\n align-items: center;\n gap: calc((var(--atbl-space-xs) + var(--atbl-space-sm)) / 2);\n flex-wrap: wrap;\n min-width: 0;\n }\n\n .altertable-filter-bar-inputs > * {\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-filter-bar-inputs > :-webkit-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :-moz-any(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-bar-inputs > :is(.altertable-picker-trigger, .altertable-field) {\n max-width: min(100%, 16rem);\n }\n\n .altertable-filter-sheet-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-control-searches > .altertable-search-landmark {\n flex: 280px;\n max-width: 25rem;\n }\n\n .altertable-control-searches .altertable-search-input-wrap {\n flex: 1;\n width: auto;\n }\n\n .altertable-sheet-filters {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: start;\n gap: var(--atbl-space-md);\n }\n\n .altertable-control-count {\n display: inline-flex;\n box-sizing: border-box;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n justify-content: center;\n align-items: center;\n block-size: 1.25rem;\n min-inline-size: 1.25rem;\n padding-inline-start: .25rem;\n padding-inline-end: .25rem;\n }\n\n .altertable-display-options-trigger {\n margin-inline-start: auto;\n }\n\n .altertable-display-options-button {\n position: relative;\n }\n\n .altertable-control-indicator {\n position: absolute;\n background: var(--atbl-accent);\n border-radius: 50%;\n block-size: 5px;\n inline-size: 5px;\n top: 5px;\n }\n\n .altertable-control-indicator:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n right: 5px;\n }\n\n .altertable-control-indicator:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-control-indicator:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n left: 5px;\n }\n\n .altertable-display-options-popover {\n z-index: 90;\n overflow: auto;\n padding: var(--atbl-space-md);\n border-radius: var(--atbl-radius-overlay);\n width: min(360px, 100vw - 24px);\n max-height: min(560px, 80dvh);\n }\n\n .altertable-display-options-dialog {\n display: grid;\n gap: var(--atbl-space-sm);\n outline: none;\n }\n\n .altertable-display-option > * {\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-display-option .react-aria-SelectValue {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n\n .altertable-filter-sheet {\n width: min(360px, 100vw);\n }\n\n .altertable-toolbar-filter-editors {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n border: 0;\n flex-wrap: wrap;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-active-filters {\n display: flex;\n gap: var(--atbl-space-xs);\n position: fixed;\n z-index: 40;\n opacity: 1;\n transition: opacity var(--atbl-duration-normal) var(--atbl-ease-enter), transform var(--atbl-duration-normal) var(--atbl-ease-enter);\n max-inline-size: calc(100vw - 2 * (var(--atbl-space-md) + max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px))));\n padding: var(--atbl-space-xs);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n flex-wrap: nowrap;\n align-items: center;\n min-width: 0;\n margin: 0;\n top: calc(100dvh - var(--atbl-frame-inset-bottom, 0px) - var(--atbl-space-md) - env(safe-area-inset-bottom, 0px));\n transform: translate(-50%, -100%);\n }\n\n .altertable-active-filters:not(:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:not(:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi))) {\n left: 50vw;\n }\n\n .altertable-active-filters:-webkit-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:-moz-any(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n .altertable-active-filters:is(:lang(ae), :lang(ar), :lang(arc), :lang(bcc), :lang(bqi), :lang(ckb), :lang(dv), :lang(fa), :lang(glk), :lang(he), :lang(ku), :lang(mzn), :lang(nqo), :lang(pnb), :lang(ps), :lang(sd), :lang(ug), :lang(ur), :lang(yi)) {\n right: 50vw;\n }\n\n @starting-style {\n .altertable-active-filters {\n opacity: 0;\n transform: translate(-50%, calc(-100% + var(--atbl-space-sm)));\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-active-filters {\n transition-property: opacity;\n }\n }\n\n .altertable-active-filters > button {\n white-space: nowrap;\n flex: none;\n }\n\n .altertable-filter-summaries {\n display: flex;\n gap: var(--atbl-space-xs);\n overflow-x: auto;\n white-space: nowrap;\n min-inline-size: 0;\n }\n\n .altertable-filter-summaries > * {\n flex: none;\n }\n\n .altertable-active-filter-label {\n gap: var(--atbl-space-xs);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-meta-weight);\n padding-inline-end: var(--atbl-space-xs);\n }\n\n .altertable-active-filter .altertable-picker-value {\n font-weight: inherit;\n }\n\n .altertable-active-filter {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n align-items: center;\n }\n\n .altertable-active-filter-remove {\n --atbl-control-hover-surface: color-mix(in srgb, var(--atbl-text) 14%, var(--atbl-subtle));\n color: var(--atbl-muted);\n margin-inline-end: var(--atbl-space-xs);\n }\n\n @media (any-pointer: coarse) {\n .altertable-active-filters .altertable-button {\n min-block-size: 44px;\n min-inline-size: 44px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataViewToast.css */\n@layer atbl.components {\n .altertable-data-view-toast-region {\n position: fixed;\n z-index: 100;\n left: 16px;\n right: 16px;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + max(20px, env(safe-area-inset-bottom)));\n display: flex;\n pointer-events: none;\n justify-content: center;\n }\n\n .altertable-data-view-toast-region[data-position=\"top\"] {\n top: calc(var(--atbl-frame-inset-top, 0px) + max(20px, env(safe-area-inset-top)));\n bottom: auto;\n }\n\n .altertable-data-view-toast {\n display: flex;\n overflow: auto;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n pointer-events: auto;\n align-items: center;\n gap: 10px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: min(100%, 560px);\n max-height: 40dvh;\n padding: 10px 12px;\n line-height: 1.45;\n }\n\n .altertable-data-view-toast > svg {\n color: var(--atbl-muted);\n flex: none;\n }\n\n .altertable-data-view-toast[data-state=\"error\"] > svg {\n color: var(--atbl-danger);\n }\n\n .altertable-data-view-toast > span {\n min-width: 0;\n }\n\n .altertable-data-view-toast .altertable-button {\n flex: none;\n min-height: 32px;\n }\n\n .altertable-data-view-toast-spinner {\n animation: 1s linear infinite altertable-data-view-toast-spin;\n }\n\n @keyframes altertable-data-view-toast-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-data-view-toast-spinner {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DataBoundary.css */\n@layer atbl.components {\n .altertable-data-boundary {\n min-width: 0;\n }\n\n .altertable-data-boundary-notice {\n display: flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n background: none;\n border: 0;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n min-height: 44px;\n margin: 0 0 14px;\n padding: 8px 0;\n line-height: 1.45;\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] {\n border-color: color-mix(in srgb, var(--atbl-danger) 30%, var(--atbl-border));\n }\n\n .altertable-data-boundary-notice[data-state=\"stale-error\"] > svg {\n color: var(--atbl-danger);\n flex: none;\n }\n\n .altertable-data-boundary-message {\n flex: 240px;\n }\n\n .altertable-data-boundary-action {\n margin-left: auto;\n }\n\n .altertable-data-boundary-action button {\n min-height: 32px;\n }\n}\n\n/* packages/data-app-react/src/ui/StatusPanel.css */\n@layer atbl.components {\n .altertable-status-panel {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: var(--atbl-space-lg);\n padding: var(--atbl-space-lg);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n line-height: 1.5;\n }\n\n .altertable-status-panel[data-status=\"error\"] {\n box-sizing: border-box;\n box-shadow: none;\n display: grid;\n grid-template-columns: 18px minmax(0, 1fr);\n background: none;\n border: 0;\n align-items: start;\n gap: 18px 14px;\n width: min(100%, 520px);\n margin: clamp(16px, 4vw, 48px) auto 0;\n }\n\n .altertable-status-panel[data-status=\"error\"] > svg {\n color: var(--atbl-danger);\n margin-top: 1px;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-action {\n grid-column: 2;\n }\n\n .altertable-status-panel[data-status=\"error\"] .altertable-status-copy {\n min-width: 0;\n }\n\n .altertable-status-panel strong {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-status-panel p {\n margin: 4px 0 0;\n }\n\n .altertable-status-panel small {\n display: block;\n overflow-wrap: anywhere;\n margin-top: 6px;\n }\n\n .altertable-status-action {\n flex: none;\n }\n\n @media (max-width: 600px) {\n .altertable-status-panel:not([data-status=\"error\"]) {\n flex-direction: column;\n align-items: flex-start;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/GettingStarted.css */\n@layer atbl.components {\n .starter-eyebrow {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n letter-spacing: .08em;\n text-transform: uppercase;\n font-weight: 700;\n }\n\n .starter-connection {\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n align-items: flex-start;\n gap: 20px;\n min-width: 0;\n padding: 30px;\n }\n\n .starter-connection-icon {\n display: grid;\n background: var(--atbl-subtle);\n color: var(--atbl-muted);\n border-radius: 14px;\n flex: none;\n place-items: center;\n width: 48px;\n height: 48px;\n }\n\n .starter-connection[data-state=\"connected\"] .starter-connection-icon {\n background: color-mix(in srgb, var(--atbl-positive) 12%, var(--atbl-surface));\n color: var(--atbl-positive);\n }\n\n .starter-connection[data-state=\"error\"] .starter-connection-icon {\n background: var(--atbl-danger-subtle, color-mix(in srgb, var(--atbl-danger) 9%, var(--atbl-surface)));\n color: var(--atbl-danger);\n }\n\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: 1.5s linear infinite starter-spin;\n }\n\n .starter-connection-copy {\n flex: 1;\n min-width: 0;\n }\n\n .starter-connection h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(26px, 3.2vw, 36px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.035em;\n margin: 8px 0 6px;\n line-height: 1.15;\n }\n\n .starter-connection p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n max-width: 62ch;\n margin: 0;\n line-height: 1.55;\n }\n\n .starter-connection small {\n display: block;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n margin-top: 14px;\n }\n\n .starter-connection > .altertable-button {\n flex: none;\n align-self: center;\n }\n\n .starter-next {\n min-width: 0;\n padding: 8px 0;\n }\n\n .starter-next-heading h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: clamp(20px, 2.4vw, 26px);\n font-weight: var(--atbl-type-emphasis-weight);\n letter-spacing: -.025em;\n margin: 8px 0 4px;\n }\n\n .starter-next-heading p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-body-size);\n margin: 0;\n line-height: 1.5;\n }\n\n .starter-steps {\n display: grid;\n grid-template-columns: repeat(3, minmax(0, 1fr));\n list-style: none;\n counter-reset: starter-step;\n gap: 12px;\n margin: 22px 0 0;\n padding: 0;\n }\n\n .starter-steps li {\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n counter-increment: starter-step;\n min-width: 0;\n padding: 20px;\n }\n\n .starter-steps li:before {\n display: block;\n color: var(--atbl-accent);\n font-size: var(--atbl-type-meta-size);\n content: \"0\" counter(starter-step);\n margin-bottom: 22px;\n font-weight: 700;\n }\n\n .starter-steps strong {\n font-size: var(--atbl-type-body-size);\n font-weight: 650;\n }\n\n .starter-steps p {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n margin: 8px 0 0;\n line-height: 1.5;\n }\n\n .starter-steps code {\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: .92em;\n }\n\n @keyframes starter-spin {\n to {\n transform: rotate(360deg);\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .starter-connection[data-state=\"checking\"] .starter-connection-icon svg {\n animation: none;\n }\n }\n\n @media (max-width: 700px) {\n .starter-connection {\n flex-wrap: wrap;\n padding: 22px;\n }\n\n .starter-connection > .altertable-button {\n margin-left: 68px;\n }\n\n .starter-steps {\n grid-template-columns: 1fr;\n }\n\n .starter-steps li:before {\n margin-bottom: 10px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Stack.css */\n@layer atbl.components {\n .altertable-stack {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-content: start;\n min-width: 0;\n }\n\n .altertable-stack[data-gap=\"sm\"] {\n gap: var(--atbl-space-sm);\n }\n\n .altertable-stack[data-gap=\"md\"] {\n gap: var(--atbl-space-md);\n }\n\n .altertable-stack[data-gap=\"lg\"] {\n gap: var(--atbl-layout-gap, clamp(var(--atbl-space-md), 2.5vw, var(--atbl-space-lg)));\n }\n\n .altertable-stack > * {\n margin: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/Inspect.css */\n@layer atbl.components {\n .altertable-inspect-trigger {\n display: inline-grid;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-muted);\n transition: background-color var(--atbl-duration-fast) var(--atbl-ease-standard), color var(--atbl-duration-fast) var(--atbl-ease-standard);\n background: none;\n border: 0;\n flex: none;\n place-items: center;\n }\n\n .altertable-inspect-trigger:hover, .altertable-inspect-trigger[data-open=\"true\"] {\n background: var(--atbl-subtle);\n color: var(--atbl-text);\n }\n\n @media (hover: hover) and (pointer: fine) {\n :is(.altertable-metric-widget .altertable-metric-help, .altertable-data-widget .altertable-data-widget-help) {\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n :is(.altertable-data-widget-help[data-has-action=\"true\"], .altertable-metric-widget:hover .altertable-metric-help, .altertable-metric-widget:focus-within .altertable-metric-help, .altertable-data-widget:hover .altertable-data-widget-help, .altertable-data-widget:focus-within .altertable-data-widget-help, .altertable-metric-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-data-widget-help:has( > .altertable-widget-status:not([data-state=\"idle\"])), .altertable-metric-help:has([data-open=\"true\"]), .altertable-data-widget-help:has([data-open=\"true\"])) {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-inspect-trigger, .altertable-metric-help, .altertable-data-widget-help {\n transition: none;\n }\n }\n\n .altertable-widget-heading-trigger {\n --atbl-control-hover-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--atbl-space-sm);\n box-shadow: none;\n color: inherit;\n font: inherit;\n letter-spacing: inherit;\n text-align: left;\n background: none;\n border: 0;\n border-radius: 2px;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-button.altertable-widget-heading-trigger:hover:not(:disabled), .altertable-button.altertable-widget-heading-trigger[data-open=\"true\"] {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-button.altertable-widget-heading-trigger:focus-visible {\n color: var(--atbl-text);\n background: none;\n }\n\n .altertable-widget-heading-trigger > svg {\n display: inline-block;\n opacity: 0;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n flex: none;\n align-self: center;\n margin-inline-start: var(--atbl-space-xs);\n }\n\n .altertable-widget-heading-trigger:hover > svg, .altertable-widget-heading-trigger[data-open=\"true\"] > svg {\n opacity: 1;\n }\n\n .altertable-widget-heading-trigger:focus-visible > svg {\n opacity: 1;\n }\n\n @media (hover: none) {\n .altertable-widget-heading-trigger > svg {\n opacity: 1;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-heading-trigger > svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetViewTabs.css */\n@layer atbl.components {\n .altertable-widget-view-tabs > .react-aria-Tabs > .react-aria-TabList {\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-subtle);\n border: 0;\n gap: 4px;\n width: -moz-fit-content;\n width: fit-content;\n max-width: 100%;\n margin: 0;\n padding: 3px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab {\n border-radius: calc(var(--atbl-radius-control) - 2px);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n border: 0;\n margin: 0;\n padding: 6px 11px;\n }\n\n .altertable-widget-view-tabs .react-aria-Tab[data-selected] {\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-control);\n color: var(--atbl-text);\n }\n\n .altertable-widget-view-tabs .react-aria-TabPanels {\n padding-block-start: var(--atbl-space-md);\n }\n}\n\n/* packages/data-app-react/src/ui/HelpPopover.css */\n@layer atbl.components {\n .altertable-help-popover {\n z-index: 1000;\n overflow: auto;\n overscroll-behavior: contain;\n padding: var(--atbl-space-md);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n font: var(--atbl-type-label-size) / var(--atbl-type-label-leading) var(--atbl-font);\n animation: altertable-popover-in var(--atbl-duration-fast) var(--atbl-ease-enter);\n max-width: calc(100vw - 24px);\n max-height: min(65dvh, 560px);\n }\n\n @keyframes altertable-popover-in {\n from {\n opacity: 0;\n translate: 0 -2px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-help-popover {\n animation: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/DateTimeTooltip.css */\n@layer atbl.components {\n .altertable-date-time-tooltip {\n width: max-content;\n max-width: min(480px, 100vw - 24px);\n padding: 10px 12px;\n }\n\n .altertable-date-time-rows {\n display: grid;\n gap: 6px;\n }\n\n .altertable-date-time-row {\n display: grid;\n grid-template-columns: minmax(80px, 1fr) auto;\n font-variant-numeric: tabular-nums;\n gap: 16px;\n }\n\n .altertable-date-time-row time {\n text-align: right;\n overflow-wrap: anywhere;\n }\n\n .altertable-date-time-label {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/ui/DateDisplay.css */\n@layer atbl.components {\n .altertable-date-display {\n font-variant-numeric: tabular-nums;\n white-space: nowrap;\n }\n\n .altertable-date-display-trigger {\n color: inherit;\n font: inherit;\n background: none;\n border: 0;\n padding: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/DataTable.css */\n@layer atbl.components {\n .altertable-data-table-scroll {\n overflow-x: auto;\n overscroll-behavior-x: none;\n max-width: 100%;\n }\n\n .altertable-data-table-search {\n margin: 8px 0 12px;\n }\n\n .altertable-data-table {\n border-collapse: collapse;\n font-size: var(--atbl-type-meta-size);\n width: 100%;\n }\n\n .altertable-data-table caption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n text-align: start;\n padding: 0 0 8px;\n }\n\n .altertable-data-table th, .altertable-data-table td {\n border-bottom: 1px solid var(--atbl-border);\n text-align: start;\n white-space: nowrap;\n cursor: default;\n padding: 9px 10px;\n }\n\n .altertable-data-table thead th {\n color: var(--atbl-muted);\n font-weight: 650;\n }\n\n .altertable-data-table tbody th {\n color: var(--atbl-text);\n font-weight: 550;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"number\"] {\n text-align: end;\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"] {\n font-variant-numeric: tabular-nums;\n }\n\n .altertable-data-table :-webkit-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :-moz-any(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table :is(th, td)[data-type=\"datetime\"]:not(:first-child) {\n text-align: end;\n }\n\n .altertable-data-table-timestamp {\n color: inherit;\n font: inherit;\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-data-table-timestamp:hover {\n color: var(--atbl-accent);\n }\n\n .altertable-data-table-timestamp:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-data-table tbody tr:last-child :-webkit-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :-moz-any(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table tbody tr:last-child :is(th, td) {\n border-bottom: 0;\n }\n\n .altertable-data-table .altertable-data-table-empty-row td {\n white-space: normal;\n padding: 0;\n }\n\n .altertable-data-table-share {\n font-variant-numeric: tabular-nums;\n }\n}\n\n/* packages/data-app-react/src/ui/TableWidget.css */\n@layer atbl.components {\n .altertable-table-widget-content {\n padding: var(--atbl-space-md) var(--atbl-space-lg) var(--atbl-space-lg);\n min-width: 0;\n }\n\n :where(.altertable-visualization-widget-content) > .altertable-table-widget-content {\n padding: 0;\n }\n\n .altertable-table-widget-content .altertable-data-table-search {\n margin-top: 0;\n }\n\n .altertable-table-pagination {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex-wrap: wrap;\n justify-content: space-between;\n align-items: center;\n gap: 8px 16px;\n padding: 12px 10px 4px;\n }\n\n .altertable-table-pagination-controls {\n display: inline-flex;\n align-items: center;\n gap: 8px;\n }\n\n .altertable-table-widget .altertable-data-widget-body {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-table-widget .altertable-loading-status {\n top: calc(var(--atbl-space-sm) + 1lh + 19px);\n }\n}\n\n/* packages/data-app-react/src/ui/TextContent.css */\n@layer atbl.components {\n .altertable-text-content {\n max-width: var(--atbl-text-measure);\n color: var(--atbl-text);\n overflow-wrap: anywhere;\n font-size: var(--atbl-type-body-size);\n line-height: var(--atbl-type-body-leading);\n min-width: 0;\n }\n\n .altertable-text-content > :first-child {\n margin-top: 0;\n }\n\n .altertable-text-content > :last-child {\n margin-bottom: 0;\n }\n\n .altertable-text-content :where(p, ul, ol) {\n margin-block: 0 var(--atbl-space-sm);\n }\n\n .altertable-text-content :where(ul, ol) {\n padding-inline-start: 1.5em;\n }\n\n .altertable-text-content a {\n color: var(--atbl-accent);\n text-underline-offset: 3px;\n text-decoration-thickness: 1px;\n }\n\n .altertable-text-content a:hover {\n color: var(--atbl-text);\n text-decoration-thickness: 2px;\n }\n\n .altertable-text-content h2 {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-heading-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n\n .altertable-text-content :where(h3, h4, h5, h6) {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-size: var(--atbl-type-widget-size);\n color: var(--atbl-muted);\n font-weight: var(--atbl-type-label-weight);\n line-height: var(--atbl-type-heading-leading);\n }\n}\n\n/* packages/data-app-react/src/ui/TextWidget.css */\n@layer atbl.components {\n .altertable-text-widget .altertable-text-content {\n min-block-size: calc(3em + 2 * var(--atbl-space-sm));\n }\n\n .altertable-text-widget-skeleton {\n display: grid;\n gap: var(--atbl-space-sm);\n max-width: var(--atbl-text-measure);\n }\n\n .altertable-text-widget-skeleton > .altertable-skeleton {\n width: 100%;\n height: 1em;\n }\n\n .altertable-text-widget-skeleton > :last-child {\n width: 65%;\n }\n}\n\n/* packages/data-app-react/src/ui/Breakdown.css */\n@layer atbl.components {\n .altertable-breakdown {\n display: grid;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-breakdown-summary {\n display: flex;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n }\n\n .altertable-breakdown-summary strong {\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-breakdown-bar {\n display: flex;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 12px;\n }\n\n .altertable-breakdown-bar > span {\n display: block;\n flex: none;\n height: 100%;\n }\n\n .altertable-breakdown-list {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));\n gap: 6px 18px;\n min-width: 0;\n margin: 0;\n }\n\n .altertable-breakdown-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto auto;\n border-bottom: 1px solid var(--atbl-border);\n font-size: var(--atbl-type-label-size);\n align-items: baseline;\n column-gap: 8px;\n min-width: 0;\n padding: 8px 0;\n }\n\n .altertable-breakdown-row dt {\n display: flex;\n overflow-wrap: anywhere;\n color: var(--atbl-text);\n align-items: baseline;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-breakdown-row dd {\n font-variant-numeric: tabular-nums;\n text-align: end;\n white-space: nowrap;\n margin: 0;\n }\n\n .altertable-breakdown-swatch {\n display: inline-block;\n background: var(--altertable-breakdown-color);\n border-radius: 2px;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-breakdown-row[data-empty=\"true\"] .altertable-breakdown-swatch {\n border: 1px solid var(--atbl-border);\n background: none;\n }\n\n .altertable-breakdown-value {\n color: var(--atbl-text);\n font-weight: 650;\n }\n\n .altertable-breakdown-share {\n color: var(--atbl-muted);\n min-width: 4ch;\n }\n}\n\n/* packages/data-app-react/src/ui/Ranking.css */\n@layer atbl.components {\n .altertable-ranking {\n display: grid;\n gap: var(--atbl-space-md);\n list-style: none;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-ranking li {\n display: grid;\n gap: 7px;\n min-width: 0;\n }\n\n .altertable-ranking-reading {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: 12px;\n min-width: 0;\n }\n\n .altertable-ranking-reading > span {\n overflow-wrap: anywhere;\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-label-weight);\n letter-spacing: -.01em;\n min-width: 0;\n line-height: 1.3;\n }\n\n .altertable-ranking-reading strong {\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-variant-numeric: tabular-nums;\n flex: none;\n font-weight: 650;\n }\n\n .altertable-ranking-track {\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n height: 6px;\n }\n\n .altertable-ranking-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n height: 100%;\n }\n\n .altertable-ranking-detail {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n line-height: 1.45;\n }\n}\n\n/* packages/data-app-react/src/ui/WidgetDisclosure.css */\n@layer atbl.components {\n .altertable-widget-disclosure {\n margin: 16px 20px 20px;\n }\n\n .altertable-widget-disclosure > summary {\n display: inline-flex;\n border-radius: var(--atbl-radius-control);\n color: var(--atbl-text);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n list-style: none;\n align-items: center;\n gap: 8px;\n min-height: 38px;\n padding: 0 10px;\n }\n\n .altertable-widget-disclosure > summary::-webkit-details-marker {\n display: none;\n }\n\n .altertable-widget-disclosure > summary:hover, .altertable-widget-disclosure[open] > summary {\n background: var(--atbl-subtle);\n }\n\n .altertable-widget-disclosure > summary svg {\n color: var(--atbl-muted);\n transition: transform var(--atbl-duration-normal) var(--atbl-ease-standard);\n }\n\n .altertable-widget-disclosure[open] > summary svg {\n transform: rotate(180deg);\n }\n\n .altertable-widget-disclosure-content {\n margin-top: 12px;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-widget-disclosure > summary svg {\n transition: none;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/Comparison.css */\n@layer atbl.components {\n .altertable-comparison-visual {\n display: grid;\n gap: var(--atbl-space-lg);\n width: 100%;\n margin: 0;\n }\n\n .altertable-comparison-visual figcaption {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-heading-weight);\n }\n\n .altertable-comparison-row {\n display: grid;\n gap: var(--atbl-space-sm);\n }\n\n .altertable-comparison-row > div {\n display: flex;\n justify-content: space-between;\n align-items: baseline;\n gap: var(--atbl-space-md);\n flex-wrap: wrap;\n }\n\n .altertable-comparison-row > div > span {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n }\n\n .altertable-comparison-row strong {\n color: var(--atbl-text);\n font-family: var(--atbl-font-heading, var(--atbl-input-font-heading, var(--atbl-font)));\n font-weight: var(--atbl-type-emphasis-weight);\n line-height: var(--atbl-type-metric-leading);\n font-size: var(--atbl-type-metric-size);\n font-variant-numeric: tabular-nums;\n overflow-wrap: anywhere;\n letter-spacing: -.04em;\n max-inline-size: 100%;\n }\n\n .altertable-comparison-track {\n display: block;\n overflow: hidden;\n background: var(--atbl-subtle);\n border-radius: 999px;\n width: 100%;\n height: 10px;\n }\n\n .altertable-comparison-track > span {\n display: block;\n border-radius: inherit;\n background: var(--atbl-chart-1);\n min-width: 2px;\n height: 100%;\n }\n\n .altertable-comparison-row[data-period=\"previous\"] .altertable-comparison-track > span {\n background: var(--atbl-muted);\n opacity: .45;\n }\n\n .altertable-comparison-change {\n display: inline-flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n font-size: var(--atbl-type-label-size);\n font-weight: var(--atbl-type-label-weight);\n font-variant-numeric: tabular-nums;\n margin: 0;\n }\n\n .altertable-comparison-change[data-tone=\"good\"] {\n color: var(--atbl-positive);\n }\n\n .altertable-comparison-change[data-tone=\"bad\"] {\n color: var(--atbl-negative, var(--atbl-danger));\n }\n\n .altertable-about-visual .altertable-comparison-visual {\n gap: var(--atbl-space-md);\n }\n\n .altertable-about-visual .altertable-comparison-row {\n gap: var(--atbl-space-xs);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] {\n gap: clamp(var(--atbl-space-lg), 4vh, calc(var(--atbl-space-xl) + var(--atbl-space-xs)));\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] figcaption {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] > div {\n align-items: flex-start;\n gap: var(--atbl-space-sm);\n flex-direction: column-reverse;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: clamp(calc(var(--atbl-type-metric-size) * 1.5), 7vw, calc(var(--atbl-type-metric-size) * 2.75));\n line-height: 1;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"previous\"] strong {\n font-size: var(--atbl-type-metric-size);\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-track {\n height: 12px;\n }\n\n .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-change {\n font-size: var(--atbl-type-body-size);\n }\n\n .altertable-about-visual .altertable-comparison-visual[data-emphasis=\"story\"] .altertable-comparison-row[data-period=\"current\"] strong {\n font-size: calc(var(--atbl-type-metric-size) * 1.125);\n }\n}\n\n/* packages/data-app-react/src/ui/BarChart.css */\n@layer atbl.components {\n .altertable-selectable-bars {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll {\n overflow-x: auto;\n overflow-y: hidden;\n width: auto;\n min-width: 0;\n height: 260px;\n margin: 12px 2px 14px;\n }\n\n .altertable-selectable-bars-item {\n display: flex;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex-direction: column;\n flex: 1;\n align-items: center;\n min-width: 36px;\n padding: 0;\n }\n\n .altertable-selectable-bars-item:focus {\n outline: none;\n }\n\n .altertable-selectable-bars-area {\n display: flex;\n border-bottom: 1px solid var(--atbl-border);\n justify-content: center;\n align-items: end;\n width: 100%;\n height: 220px;\n }\n\n .altertable-selectable-bars-label {\n color: inherit;\n font: inherit;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-chart-item-actions {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 36px;\n }\n\n .altertable-chart-item-actions > .altertable-tooltip-trigger.altertable-chart-column[data-variant=\"chart\"] {\n flex: 1;\n align-items: flex-start;\n width: auto;\n min-width: 36px;\n height: auto;\n }\n\n .altertable-chart-item-actions .altertable-chart-column > button {\n width: 100%;\n }\n\n .altertable-chart-item-actions > span {\n align-self: center;\n }\n\n .altertable-chart-item-actions > span .altertable-button {\n font-size: var(--atbl-type-meta-size);\n min-width: 0;\n padding: 4px 6px;\n }\n\n .altertable-selectable-bars-plot {\n position: relative;\n }\n\n .altertable-selectable-bars-items {\n position: relative;\n display: flex;\n }\n\n .altertable-selectable-bars-items > .altertable-chart-item-actions > .altertable-chart-column {\n align-self: stretch;\n }\n\n .altertable-chart-item-label-row {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-height: var(--atbl-control-compact-height);\n color: var(--atbl-muted);\n min-width: 0;\n padding: 4px 4px 0;\n }\n\n .altertable-chart-item-label-row > span {\n display: inline-flex;\n }\n\n .altertable-chart-item-label-row .altertable-selectable-bars-label {\n --atbl-control-hover-surface: transparent;\n --atbl-control-open-surface: transparent;\n --atbl-control-pressed-surface: transparent;\n display: inline-flex;\n color: inherit;\n align-items: center;\n gap: 4px;\n min-width: 0;\n max-width: 100%;\n min-height: 0;\n padding: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] :-webkit-any(.altertable-selectable-bars-item, .altertable-chart-item-actions, .altertable-tooltip-trigger.altertable-chart-column) {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] :-moz-any(.altertable-selectable-bars-item, .altertable-chart-item-actions, .altertable-tooltip-trigger.altertable-chart-column) {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] :is(.altertable-selectable-bars-item, .altertable-chart-item-actions, .altertable-tooltip-trigger.altertable-chart-column) {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-actions > .altertable-tooltip-trigger.altertable-chart-column[data-variant=\"chart\"] {\n min-width: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-label-row {\n position: relative;\n padding-inline-start: 0;\n padding-inline-end: 0;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-label-row:not([data-time-tick=\"true\"]) > span {\n display: none;\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-chart-item-label-row > span {\n position: absolute;\n pointer-events: none;\n width: max-content;\n max-width: none;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .altertable-selectable-bars-scroll[data-time-axis=\"true\"] .altertable-selectable-bars-label > span {\n overflow: visible;\n }\n\n .altertable-selectable-bars-label > span {\n overflow: hidden;\n text-overflow: ellipsis;\n min-width: 0;\n }\n\n .altertable-selectable-bars-label > svg {\n flex-shrink: 0;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label {\n padding: var(--atbl-space-xs) 6px;\n border-radius: var(--atbl-radius-control);\n border: 1px solid #0000;\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-webkit-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:-moz-any(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n\n .altertable-chart-item-label-row button.altertable-selectable-bars-label:is(:hover, [data-hovered], [aria-expanded=\"true\"]) {\n border-color: var(--atbl-border);\n }\n}\n\n/* packages/data-app-react/src/ui/UpdatedAt.css */\n@layer atbl.components {\n .altertable-updated-at {\n color: var(--atbl-muted);\n font: var(--atbl-type-meta-size) / var(--atbl-type-label-leading) var(--atbl-font);\n background: none;\n border: 0;\n align-self: flex-start;\n width: -moz-fit-content;\n width: fit-content;\n padding: 0;\n }\n\n .altertable-updated-at:hover {\n color: var(--atbl-text);\n }\n}\n\n/* packages/data-app-react/src/ui/data-identifiers.css */\n@layer atbl.components {\n .altertable-data-identifier {\n border: 1px solid color-mix(in srgb, var(--atbl-border) 65%, var(--atbl-surface));\n background: color-mix(in srgb, var(--atbl-subtle) 65%, var(--atbl-surface));\n color: var(--atbl-text);\n font-size: .85em;\n font-weight: 450;\n line-height: inherit;\n letter-spacing: -.01em;\n overflow-wrap: anywhere;\n box-decoration-break: clone;\n -webkit-box-decoration-break: clone;\n border-radius: .3em;\n padding: .06em .24em .08em;\n }\n\n .altertable-data-identifier-path {\n color: var(--atbl-muted);\n }\n\n .altertable-data-identifier-name {\n font-weight: 550;\n }\n}\n\n/* packages/data-app-react/src/ui/GlossaryDefinition.css */\n@layer atbl.components {\n .altertable-glossary-definition-trigger {\n display: inline;\n color: inherit;\n font: inherit;\n font-weight: inherit;\n text-align: inherit;\n text-decoration: underline dotted var(--atbl-muted);\n text-decoration-thickness: 1px;\n text-underline-offset: .2em;\n background: none;\n border: 0;\n padding: 0;\n }\n\n .altertable-glossary-definition-trigger:hover, .altertable-glossary-definition-trigger[data-open=\"true\"] {\n text-decoration-color: var(--atbl-text);\n }\n\n .altertable-glossary-definition-trigger:focus-visible {\n border-radius: 2px;\n }\n\n .altertable-glossary-definition-popover {\n width: min(320px, 100vw - 24px);\n }\n\n .altertable-glossary-definition-popover > strong {\n display: block;\n font-size: var(--atbl-type-label-size);\n margin-bottom: 4px;\n font-weight: 650;\n }\n}\n\n/* packages/data-app-react/src/ui/ExportControl.css */\n@layer atbl.components {\n .altertable-export-popover {\n z-index: 1000;\n max-height: min(320px, var(--available-height));\n overflow: auto;\n padding: var(--atbl-dropdown-padding);\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-control);\n background: var(--atbl-surface);\n box-shadow: var(--atbl-shadow-overlay);\n color: var(--atbl-text);\n max-width: min(320px, 100vw - 32px);\n }\n\n .altertable-export-popover [role=\"menu\"] {\n display: flex;\n gap: var(--atbl-dropdown-item-gap);\n outline: none;\n flex-direction: column;\n }\n\n .altertable-export-popover [role=\"menuitem\"] {\n display: flex;\n padding: var(--atbl-dropdown-item-padding-block) var(--atbl-dropdown-item-padding-inline);\n font-size: var(--atbl-type-label-size);\n outline: none;\n border-radius: 4px;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n min-height: 34px;\n }\n\n .altertable-export-format {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n flex: none;\n }\n\n .altertable-export-all {\n position: relative;\n margin-top: 9px;\n }\n\n .altertable-export-all:before {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n content: \"\";\n top: -5px;\n left: 0;\n right: 0;\n }\n}\n\n/* packages/data-app-react/src/ui/TrendChart.css */\n@layer atbl.components {\n .altertable-trend-chart {\n min-width: 0;\n }\n\n .altertable-trend-scroll {\n overflow-x: auto;\n margin: 12px 0 14px;\n padding: 3px;\n }\n\n .altertable-trend-plot {\n position: relative;\n }\n\n .altertable-trend-points {\n position: relative;\n display: flex;\n width: 100%;\n }\n\n .altertable-trend-points > .altertable-chart-item-actions > .altertable-chart-column {\n align-self: stretch;\n }\n\n .altertable-trend-point {\n --atbl-focus-outline: none;\n color: var(--atbl-muted);\n background: none;\n border: 0;\n flex: 1;\n min-width: 0;\n padding: 0;\n }\n\n .altertable-trend-point:focus {\n outline: none;\n }\n\n .altertable-trend-point:focus-visible .altertable-trend-label {\n color: var(--atbl-text);\n text-decoration: underline;\n text-underline-offset: .2em;\n }\n\n .altertable-trend-hit {\n display: block;\n position: relative;\n height: 220px;\n }\n\n .altertable-trend-label {\n display: block;\n font-size: var(--atbl-type-meta-size);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 8px 3px 0;\n }\n}\n\n/* packages/data-app-react/src/ui/ChartLegend.css */\n@layer atbl.components {\n .altertable-chart-legend-container {\n container: atbl-chart-legend / inline-size;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-legend {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n align-items: center;\n gap: var(--atbl-space-sm) var(--atbl-space-md);\n list-style: none;\n color: var(--atbl-text);\n font-size: var(--atbl-type-meta-size);\n line-height: var(--atbl-type-label-leading);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n margin: 0;\n padding: 0;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"] {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n }\n\n .altertable-chart-legend[data-align=\"center\"] {\n justify-content: center;\n }\n\n .altertable-chart-legend[data-align=\"end\"] {\n justify-content: end;\n }\n\n .altertable-chart-legend-item {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n min-width: 0;\n max-width: 100%;\n }\n\n .altertable-chart-legend-item[data-inactive] {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n .altertable-chart-legend-item[data-legend-muted], .altertable-chart-legend-item[data-legend-excluded] {\n opacity: .4;\n }\n\n .altertable-chart-legend-marker {\n display: inline-block;\n vertical-align: middle;\n flex: none;\n width: 8px;\n height: 8px;\n }\n\n .altertable-chart-legend-marker:not([data-kind=\"square\"]) {\n width: 20px;\n height: 12px;\n }\n\n .altertable-chart-legend-label {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n min-width: 0;\n }\n\n .altertable-chart-legend-action {\n display: flex;\n align-items: center;\n gap: inherit;\n color: inherit;\n font: inherit;\n text-align: left;\n background: none;\n border: 0;\n min-width: 0;\n max-width: 100%;\n padding: 0;\n }\n\n .altertable-chart-legend-action:where(button) {\n cursor: pointer;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"center\"] {\n justify-items: center;\n }\n\n .altertable-chart-legend[data-layout=\"vertical\"][data-align=\"end\"] {\n justify-items: end;\n }\n\n .altertable-chart-legend-overflow {\n grid-column: -2 / -1;\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n @container atbl-chart-legend (width >= 240px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 480px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(3, minmax(0, 1fr));\n }\n }\n\n @container atbl-chart-legend (width >= 720px) {\n .altertable-chart-legend:-webkit-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:-moz-any([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n\n .altertable-chart-legend:is([data-layout=\"horizontal\"], [data-layout=\"single-row\"]) {\n grid-template-columns: repeat(4, minmax(0, 1fr));\n }\n }\n\n .altertable-chart-legend[data-layout=\"single-row\"] {\n align-items: start;\n }\n\n @container atbl-chart-legend (width < 240px) {\n .altertable-chart-legend[data-layout=\"single-row\"] {\n grid-template-columns: repeat(2, minmax(0, 1fr));\n }\n }\n}\n\n/* packages/data-app-react/src/ui/PieChart.css */\n@layer atbl.components {\n .altertable-pie-chart {\n min-width: 0;\n }\n\n .altertable-pie-plot {\n position: relative;\n display: grid;\n place-items: center;\n margin: 12px 0 14px;\n }\n\n .altertable-pie-plot svg {\n display: block;\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-slice {\n stroke: var(--atbl-surface);\n stroke-width: 2;\n transition: opacity var(--atbl-duration-fast) var(--atbl-ease-standard);\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice[data-active]) .altertable-pie-slice:not([data-active]) {\n opacity: .3;\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-pie-slice {\n transition: none;\n }\n }\n\n .altertable-pie-empty {\n fill: var(--atbl-subtle);\n stroke: var(--atbl-border);\n }\n\n .altertable-pie-empty-label {\n position: absolute;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n }\n\n .altertable-pie-legend {\n gap: 0;\n margin-bottom: 14px;\n }\n\n .altertable-pie-legend .altertable-chart-legend-overflow {\n padding-block-start: var(--atbl-space-sm);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n display: flex;\n color: var(--atbl-text);\n text-align: left;\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n background: none;\n border: 0;\n align-items: center;\n gap: 10px;\n width: 100%;\n min-width: 0;\n padding: 8px 4px;\n }\n\n .altertable-pie-legend [data-open] > button {\n background: var(--atbl-subtle);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button:focus {\n outline: none;\n }\n\n .altertable-pie-label {\n overflow-wrap: anywhere;\n min-width: 0;\n }\n\n .altertable-pie-menu-indicator {\n color: var(--atbl-muted);\n opacity: .5;\n }\n\n .altertable-pie-legend button:-webkit-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:-moz-any(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-pie-legend button:is(:hover, :focus-visible, [aria-expanded=\"true\"]) .altertable-pie-menu-indicator {\n color: var(--atbl-text);\n opacity: 1;\n }\n\n .altertable-tooltip-trigger.altertable-pie-tooltip[data-variant=\"chart\"] {\n width: min(100%, 220px);\n height: auto;\n }\n\n .altertable-pie-legend .altertable-chart-legend-item {\n border-bottom: 1px solid var(--atbl-border);\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger {\n flex: 1;\n width: 100%;\n min-width: 0;\n }\n\n .altertable-pie-legend .altertable-tooltip-trigger button {\n font: inherit;\n }\n\n .altertable-pie-value {\n margin-inline-start: auto;\n }\n\n .altertable-pie-share {\n color: var(--atbl-muted);\n text-align: end;\n min-inline-size: 4ch;\n }\n\n .altertable-pie-slice:focus {\n outline: none;\n }\n\n .altertable-pie-plot svg:has(.altertable-pie-slice:focus-visible) .altertable-pie-slice:not(:focus-visible) {\n opacity: .3;\n }\n\n .altertable-pie-slice:focus-visible {\n filter: brightness(1.15);\n }\n\n @media (forced-colors: active) {\n .altertable-pie-slice:focus-visible {\n stroke: Highlight;\n stroke-width: 3px;\n }\n }\n}\n\n/* packages/data-app-react/src/ui/ScatterChart.css */\n@layer atbl.components {\n .altertable-scatter-chart {\n min-width: 0;\n }\n\n .altertable-scatter-axis-title {\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n overflow-wrap: anywhere;\n margin: 14px 0 18px;\n }\n\n .altertable-scatter-axes {\n padding: 0 12px 24px 48px;\n }\n\n .altertable-scatter-plot {\n position: relative;\n border-left: 1px solid var(--atbl-border);\n height: 220px;\n }\n\n .altertable-scatter-gridline {\n position: absolute;\n border-top: 1px solid var(--atbl-border);\n pointer-events: none;\n left: 0;\n right: 0;\n }\n\n .altertable-scatter-gridline > span {\n position: absolute;\n text-align: right;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n width: 40px;\n top: 0;\n right: calc(100% + 8px);\n transform: translateY(-50%);\n }\n\n .altertable-scatter-x-tick {\n position: absolute;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--atbl-muted);\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n max-width: 32%;\n top: calc(100% + 8px);\n transform: translateX(-50%);\n }\n\n .altertable-scatter-x-tick[data-edge=\"0\"] {\n transform: none;\n }\n\n .altertable-scatter-x-tick[data-edge=\"2\"] {\n transform: translateX(-100%);\n }\n\n .altertable-scatter-x-title {\n text-align: center;\n margin: 8px 0 16px;\n }\n\n .altertable-scatter-point {\n display: grid;\n background: none;\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-scatter-point > span {\n background: var(--atbl-chart-1);\n opacity: .65;\n border: 1px solid var(--atbl-surface);\n border-radius: 50%;\n width: 9px;\n height: 9px;\n }\n\n .altertable-scatter-tooltip[data-open] {\n z-index: 1;\n }\n\n .altertable-scatter-tooltip[data-open] .altertable-scatter-point > span {\n opacity: 1;\n width: 12px;\n height: 12px;\n }\n\n .altertable-scatter-plot:has([data-open]) .altertable-scatter-tooltip:not([data-open]) .altertable-scatter-point > span {\n opacity: .3;\n }\n\n .altertable-scatter-point:focus {\n outline: none;\n }\n\n .altertable-tooltip-trigger.altertable-scatter-tooltip[data-variant=\"chart\"] {\n position: absolute;\n width: 24px;\n height: 24px;\n transform: translate(-50%, 50%);\n }\n}\n\n/* packages/data-app-react/src/ui/ComposedChart.css */\n@layer atbl.components {\n .altertable-composed-chart {\n font: inherit;\n color: var(--atbl-text);\n width: 100%;\n min-width: 0;\n }\n\n .altertable-chart-canvas {\n position: absolute;\n pointer-events: none;\n width: 100%;\n height: 220px;\n inset: 0 0 auto;\n }\n\n .altertable-composed-chart-legend-below {\n padding-top: var(--atbl-space-md);\n }\n\n .altertable-chart-legend-container[data-has-heading] .altertable-composed-chart-legend-below {\n padding-top: 0;\n }\n\n .altertable-composed-chart-legend-above {\n padding-bottom: var(--atbl-space-md);\n }\n\n .altertable-composed-chart[data-atbl-internal-pointer-focus] {\n --atbl-focus-outline: none;\n }\n\n .altertable-composed-chart [data-atbl-focus=\"inset\"]:focus:not(:focus-visible) {\n outline: none;\n }\n\n .altertable-composed-chart svg [tabindex=\"-1\"]:focus {\n outline: none;\n }\n}\n\n/* packages/data-app-react/src/ui/AnalyticsCharts.css */\n@layer atbl.components {\n .altertable-funnel-chart, .altertable-retention-chart, .altertable-journey-chart {\n font-size: var(--atbl-type-meta-size);\n font-variant-numeric: tabular-nums;\n min-width: 0;\n }\n\n .altertable-funnel-header {\n display: grid;\n gap: var(--atbl-space-md);\n padding-bottom: var(--atbl-space-lg);\n }\n\n .altertable-funnel-summary-item, .altertable-funnel-legend-button {\n display: grid;\n gap: var(--atbl-space-xs);\n }\n\n .altertable-funnel-series-label {\n display: flex;\n align-items: center;\n gap: var(--atbl-space-xs);\n color: var(--atbl-muted);\n min-width: 0;\n }\n\n .altertable-funnel-series-value {\n font-size: var(--atbl-type-section-size);\n font-weight: var(--atbl-type-emphasis-weight);\n }\n\n .altertable-funnel-path {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 0;\n }\n\n .altertable-funnel-scroll, .altertable-journey-scroll {\n overflow: auto;\n width: 100%;\n }\n\n .altertable-journey-scroll {\n max-height: 900px;\n }\n\n .altertable-analytics-note {\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n margin: 8px 0;\n }\n\n .altertable-journey-plot {\n position: relative;\n }\n\n .altertable-journey-plot > svg {\n position: absolute;\n inset: 0;\n }\n\n .altertable-journey-stage {\n position: absolute;\n color: var(--atbl-muted);\n top: 0;\n }\n\n .altertable-journey-node {\n position: absolute;\n }\n\n .altertable-journey-bar {\n position: absolute;\n top: 0;\n bottom: 0;\n background: var(--atbl-muted);\n left: 0;\n }\n\n .altertable-journey-bar[data-event] {\n background: var(--atbl-chart-5);\n }\n\n .altertable-journey-label {\n position: absolute;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-surface);\n background: var(--atbl-surface);\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n width: 100%;\n min-height: 64px;\n margin-bottom: 8px;\n padding: 8px 36px 8px 8px;\n bottom: 100%;\n }\n\n .altertable-journey-name {\n display: -webkit-box;\n -webkit-line-clamp: 2;\n overflow: hidden;\n color: var(--atbl-text);\n font-weight: var(--atbl-type-label-weight);\n -webkit-box-orient: vertical;\n }\n\n .altertable-journey-expand {\n position: absolute;\n margin-bottom: 12px;\n bottom: 100%;\n right: 4px;\n }\n\n .altertable-journey-more {\n position: absolute;\n margin-top: 8px;\n top: 100%;\n left: 0;\n }\n\n .altertable-funnel-tooltip-detail {\n display: block;\n color: var(--atbl-muted);\n overflow-wrap: anywhere;\n }\n}\n\n/* packages/data-app-react/src/annotations/colors.css */\n@layer atbl.components {\n :root {\n --atbl-annotation-accent: #c026d3;\n --atbl-annotation-accent-hover: #a21caf;\n --atbl-annotation-on-accent: #fff;\n }\n\n .altertable-annotation-trigger, .altertable-annotation-composer {\n --atbl-control-selected-surface: var(--atbl-annotation-accent);\n --atbl-control-selected-text: var(--atbl-annotation-on-accent);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"], .altertable-annotation-trigger:not([aria-pressed]) {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n }\n\n .altertable-annotation-trigger[aria-pressed=\"true\"]:hover:not(:disabled) {\n --atbl-control-selected-surface: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-trigger:not([aria-pressed]) {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationBar.css */\n@layer atbl.components {\n .altertable-annotation-bar, .altertable-annotation-bar-panel {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n --bar-surface: #202326;\n --bar-text: #f2f3f4;\n --bar-muted: #aeb5bc;\n --bar-border: #3b4248;\n --bar-danger: #ffa6a0;\n --bar-danger-surface: #572723;\n --atbl-control-selected-surface: var(--atbl-subtle);\n --atbl-control-selected-text: var(--bar-text);\n --atbl-control-disabled-opacity: 1;\n --atbl-surface: var(--bar-surface);\n --atbl-text: var(--bar-text);\n --atbl-muted: var(--bar-muted);\n --atbl-border: var(--bar-border);\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n --atbl-subtle: color-mix(in srgb, var(--bar-text) 8%, var(--bar-surface));\n color: var(--bar-text);\n background: var(--bar-surface);\n font: 14px / 1.5 var(--atbl-font);\n box-sizing: border-box;\n border: 1px solid var(--bar-border);\n box-shadow: 0 8px 28px #0003;\n }\n\n .altertable-annotation-bar[data-theme=\"dark\"], .altertable-annotation-bar-panel[data-theme=\"dark\"] {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip[data-theme=\"dark\"]) {\n --bar-surface: #f2f3f4;\n --bar-text: #151719;\n --bar-muted: #505963;\n --bar-border: #dfe3e6;\n --bar-danger: #b42318;\n --bar-danger-surface: #ffe3e3;\n }\n\n .altertable-annotation-bar {\n position: fixed;\n z-index: 1200;\n display: flex;\n border-radius: 18px;\n align-items: center;\n gap: 4px;\n max-width: calc(100vw - 24px);\n padding: 8px;\n bottom: 16px;\n left: 50%;\n transform: translateX(-50%);\n }\n\n .altertable-annotation-bar .altertable-button, .altertable-annotation-bar-panel .altertable-button {\n color: var(--bar-muted);\n font: inherit;\n flex-shrink: 0;\n width: auto;\n transition: none;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-count {\n white-space: nowrap;\n color: var(--bar-text);\n padding-inline-start: 6px;\n padding-inline-end: 6px;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle] {\n --atbl-cursor-action: grab;\n touch-action: none;\n }\n\n .altertable-annotation-bar .altertable-button[data-atbl-internal-drag-handle]:active {\n --atbl-cursor-action: grabbing;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-color: #0000;\n border-radius: 12px;\n padding-inline-start: 14px;\n padding-inline-end: 14px;\n font-weight: 600;\n line-height: 1.25;\n }\n\n .altertable-annotation-bar-panel {\n position: fixed;\n z-index: 1201;\n overflow: auto;\n border-radius: 16px;\n width: min(420px, 100vw - 24px);\n max-height: min(440px, 45vh);\n margin: 0;\n padding: 6px;\n }\n\n .altertable-annotation-bar-panel header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 4px 8px;\n }\n\n .altertable-annotation-bar-row {\n display: flex;\n border-radius: 10px;\n align-items: center;\n gap: 8px;\n padding: 4px;\n }\n\n .altertable-annotation-bar-row:hover, .altertable-annotation-bar-row:focus-within {\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar-row + .altertable-annotation-bar-row {\n border-top: 1px solid var(--bar-border);\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open {\n display: grid;\n text-align: left;\n flex: 1;\n justify-content: stretch;\n gap: 2px;\n min-width: 0;\n height: auto;\n padding: 4px 6px;\n }\n\n .altertable-annotation-bar-open strong {\n color: var(--bar-text);\n font-weight: 600;\n }\n\n .altertable-annotation-bar-open span {\n color: var(--bar-muted);\n overflow-wrap: anywhere;\n font-size: 13px;\n }\n\n .altertable-annotation-bar-panel .altertable-annotation-bar-open:hover:not(:disabled) {\n background: none;\n }\n\n .altertable-annotation-bar-error {\n position: absolute;\n background: var(--bar-surface);\n color: var(--bar-text);\n border: 1px solid var(--bar-border);\n border-radius: 10px;\n padding: 8px 12px;\n font-size: 12px;\n bottom: calc(100% + 8px);\n left: 0;\n right: 0;\n }\n\n @media (max-width: 420px) {\n .altertable-annotation-bar {\n gap: 0;\n padding: 6px;\n font-size: 12px;\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n padding-inline-start: 10px;\n padding-inline-end: 10px;\n }\n }\n\n @media (max-width: 360px) {\n .altertable-annotation-bar .altertable-button[data-size=\"icon-compact\"] {\n width: 26px;\n min-width: 26px;\n }\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-bar-tooltip) {\n font-size: 12px;\n line-height: 1.3;\n }\n\n .altertable-annotation-bar .altertable-button:hover:not(:disabled), .altertable-annotation-bar-panel .altertable-button:hover:not(:disabled) {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:hover:not(:disabled) {\n color: var(--atbl-annotation-on-accent);\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-annotation-bar .altertable-button:disabled, .altertable-annotation-bar-panel .altertable-button:disabled {\n color: var(--bar-muted);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send:disabled {\n color: var(--bar-muted);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-bar .altertable-annotation-bar-send {\n position: relative;\n }\n\n .altertable-annotation-bar-send[data-pending] .altertable-annotation-bar-send-label {\n visibility: hidden;\n }\n\n .altertable-annotation-bar-spinner {\n position: absolute;\n animation: 1s linear infinite annotation-bar-spin;\n margin: auto;\n inset: 0;\n }\n\n @keyframes annotation-bar-spin {\n to {\n rotate: 360deg;\n }\n }\n\n .altertable-annotation-discard-description {\n color: var(--atbl-muted);\n font: 14px / 1.55 var(--atbl-font);\n margin: 0;\n }\n\n .altertable-annotation-discard-confirm {\n color: var(--atbl-danger);\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-bar-spinner {\n animation: none;\n }\n }\n\n .altertable-annotation-bar .altertable-button[aria-pressed=\"true\"] {\n color: var(--bar-text);\n background: var(--atbl-subtle);\n }\n\n .altertable-annotation-undo {\n position: fixed;\n z-index: 1202;\n display: flex;\n border: 1px solid var(--atbl-border);\n border-radius: var(--atbl-radius-overlay);\n background: var(--atbl-surface);\n color: var(--atbl-text);\n box-shadow: var(--atbl-shadow-overlay);\n font: 13px / 1.5 var(--atbl-font);\n align-items: center;\n gap: 12px;\n padding: 8px 12px;\n bottom: 16px;\n left: 16px;\n }\n\n .altertable-annotation-thumbnail {\n border: 1px solid var(--bar-border);\n overflow: hidden;\n background: var(--bar-surface);\n --atbl-cursor-action: zoom-in;\n border-radius: 6px;\n flex-shrink: 0;\n width: 56px;\n height: 40px;\n padding: 0;\n }\n\n .altertable-annotation-thumbnail img {\n object-fit: contain;\n display: block;\n width: 100%;\n height: 100%;\n }\n\n .altertable-annotation-thumbnail:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-preview {\n display: block;\n object-fit: contain;\n width: 100%;\n max-height: 65vh;\n }\n\n .altertable-annotation-undo[data-bar-visible] {\n bottom: 88px;\n }\n\n .altertable-annotation-undo[data-inline] {\n position: static;\n box-shadow: none;\n border-radius: 8px;\n margin-top: 6px;\n }\n\n .altertable-sheet.altertable-annotation-image-dialog[data-placement=\"center\"] {\n width: min(960px, 100vw - 32px);\n }\n}\n\n/* packages/data-app-react/src/annotations/AnnotationControls.css */\n@layer atbl.components {\n .altertable-annotation-composer, .altertable-annotation-hint {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n --annotation-surface: var(--atbl-text);\n --annotation-text: var(--atbl-background);\n --annotation-muted: color-mix(in srgb, var(--annotation-text) 65%, var(--annotation-surface));\n --annotation-border: color-mix(in srgb, var(--annotation-text) 15%, var(--annotation-surface));\n }\n\n .altertable-annotation-outline {\n position: fixed;\n z-index: 1100;\n pointer-events: none;\n border: 2px dashed var(--atbl-annotation-accent);\n background: var(--atbl-annotation-highlight, color-mix(in srgb, var(--atbl-annotation-accent) 8%, transparent));\n border-radius: 0;\n }\n\n .altertable-annotation-pin {\n --atbl-focus-outline: 2px solid var(--atbl-annotation-accent);\n position: fixed;\n z-index: 1101;\n cursor: pointer;\n display: grid;\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n font: 600 12px var(--atbl-font);\n border: 0;\n border-radius: 50%;\n place-items: center;\n width: 24px;\n height: 24px;\n padding: 0;\n }\n\n .altertable-annotation-composer {\n z-index: 1102;\n display: flex;\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 14px / 1.5 var(--atbl-font);\n border-radius: 24px;\n flex-wrap: wrap;\n align-items: center;\n gap: 4px;\n width: min(320px, 100vw - 24px);\n padding: 8px;\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-composer textarea {\n field-sizing: content;\n box-sizing: border-box;\n resize: none;\n overscroll-behavior: contain;\n font: inherit;\n color: inherit;\n background: none;\n border: 0;\n border-radius: 12px;\n flex: 1;\n min-width: 0;\n max-height: min(160px, 30vh);\n padding: 6px 8px;\n }\n\n .altertable-annotation-composer textarea:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-composer [role=\"alert\"] {\n color: var(--annotation-text);\n flex-basis: 100%;\n margin: 4px 0;\n padding: 0 8px;\n }\n\n .altertable-annotation-hint {\n position: fixed;\n z-index: 1102;\n left: 50%;\n bottom: calc(var(--atbl-frame-inset-bottom, 0px) + 16px);\n box-sizing: border-box;\n border: 1px solid var(--annotation-border);\n background: var(--annotation-surface);\n color: var(--annotation-text);\n font: 13px / 1.5 var(--atbl-font);\n pointer-events: none;\n border-radius: 24px;\n max-width: calc(100vw - 24px);\n padding: 8px 16px;\n transform: translateX(-50%);\n box-shadow: 0 4px 16px #0002;\n }\n\n .altertable-annotation-pin:focus-visible {\n outline: 2px solid var(--atbl-annotation-accent);\n outline-offset: 2px;\n }\n\n .altertable-annotation-count {\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n border-radius: 20px;\n padding: 0 5px;\n font-size: 11px;\n }\n\n .altertable-annotation-composer[data-shaking] {\n animation: .22s ease-in-out annotation-shake;\n }\n\n @keyframes annotation-shake {\n 25%, 75% {\n translate: -4px;\n }\n\n 50% {\n translate: 4px;\n }\n }\n\n @media (prefers-reduced-motion: reduce) {\n .altertable-annotation-composer[data-shaking] {\n animation-duration: 1ms;\n }\n }\n\n .altertable-annotation-composer textarea::placeholder {\n color: var(--annotation-muted);\n }\n\n .altertable-annotation-composer .altertable-annotation-submit {\n --atbl-control-hover-surface: var(--atbl-annotation-accent-hover);\n --atbl-control-pressed-surface: var(--atbl-annotation-accent-hover);\n background: var(--atbl-annotation-accent);\n color: var(--atbl-annotation-on-accent);\n box-shadow: none;\n border: 0;\n border-radius: 50%;\n }\n\n .altertable-annotation-composer .altertable-annotation-submit:hover:not(:disabled) {\n background: var(--atbl-annotation-accent-hover);\n }\n\n .altertable-tooltip-content:has( > .altertable-annotation-tooltip) {\n background: var(--annotation-surface);\n color: var(--annotation-text);\n border-color: var(--annotation-border);\n }\n\n .altertable-annotation-hint .altertable-kbd, .altertable-annotation-tooltip .altertable-kbd {\n color: var(--annotation-muted);\n border-color: var(--annotation-border);\n background: none;\n }\n\n @media (pointer: coarse) {\n .altertable-annotation-composer textarea {\n font-size: 16px;\n }\n }\n\n .altertable-annotation-outline[data-widget] {\n border-radius: var(--atbl-radius-surface);\n }\n\n .altertable-annotation-selection-layer {\n position: fixed;\n z-index: 1099;\n --atbl-cursor-action: crosshair;\n --atbl-focus-outline: none;\n touch-action: pan-x pan-y pinch-zoom;\n background: none;\n border: 0;\n border-radius: 0;\n width: 100%;\n height: 100%;\n margin: 0;\n padding: 0;\n inset: 0;\n }\n\n .altertable-annotation-selection-layer:focus-visible {\n outline: none;\n }\n\n .altertable-annotation-hint {\n display: flex;\n white-space: nowrap;\n align-items: center;\n gap: 6px;\n }\n\n .altertable-annotation-selection-layer[data-editing] {\n --atbl-cursor-action: default;\n }\n}\n\n/* packages/data-app-react/src/ui/Focus.css */\n@layer atbl.interaction {\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"ring\"]:has( > input:focus-visible) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-offset);\n }\n\n [data-atbl-focus=\"inset\"][data-atbl-internal-focus-state=\"focused\"][data-focused] {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-webkit-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:-moz-any(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"inset\"]:is(:focus-visible, [data-focus-visible]) {\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-webkit-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:-moz-any(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"]:is(:focus-within, [data-focus-within], [data-focus-visible]) {\n outline: var(--atbl-focus-outline, 1px solid var(--atbl-focus-color, var(--atbl-muted)));\n outline-offset: var(--atbl-focus-ring-inset);\n }\n\n [data-atbl-focus=\"group\"] input:focus-visible {\n outline: none;\n }\n\n @media (forced-colors: active) {\n [data-atbl-focus]:-webkit-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:-moz-any(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-focus]:is(:focus-visible, :focus-within, [data-focus-visible]) {\n outline-color: highlight !important;\n }\n\n [data-atbl-internal-prose] a:focus-visible {\n outline-color: highlight !important;\n }\n }\n}\n\n/* packages/data-app-react/src/interaction.css */\n@layer atbl.interaction {\n [data-atbl-control=\"default\"] {\n cursor: default;\n }\n\n [data-atbl-control=\"action\"], [data-atbl-internal-prose] a {\n cursor: var(--atbl-cursor-action);\n }\n\n [data-atbl-control=\"help\"] {\n cursor: var(--atbl-cursor-help);\n }\n\n [data-atbl-control=\"text\"] {\n cursor: text;\n font-size: var(--atbl-control-text-size, var(--atbl-type-body-size));\n }\n\n @media (max-width: 560px), (any-pointer: coarse) {\n [data-atbl-control=\"text\"] {\n font-size: max(16px, var(--atbl-control-text-size, var(--atbl-type-body-size)));\n }\n }\n\n [data-atbl-control]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:is(:disabled, [data-disabled], [aria-disabled=\"true\"], [data-unavailable]) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n cursor: var(--atbl-cursor-disabled);\n }\n\n [data-atbl-control=\"action\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"action\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control=\"help\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control]:has( > input:disabled) {\n opacity: var(--atbl-control-disabled-opacity);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n [data-atbl-control][aria-busy=\"true\"]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n cursor: var(--atbl-cursor-busy);\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:hover, [data-hovered], [data-focused], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, var(--atbl-subtle));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"], [data-atbl-internal-surface=\"option\"]):is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-surface)));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-open-surface, var(--atbl-surface));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-webkit-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([data-variant=\"outline\"], [data-variant=\"elevated\"]):-moz-any([aria-expanded=\"true\"], [data-open=\"true\"]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([data-variant=\"outline\"], [data-variant=\"elevated\"]):is([aria-expanded=\"true\"], [data-open=\"true\"]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n border-color: var(--atbl-control-open-border, var(--atbl-muted));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-webkit-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):-moz-any([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"control\"]):is([aria-pressed=\"true\"], [data-selected], [aria-current=\"true\"], :has( > input:checked)):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-selected-surface, var(--atbl-subtle));\n color: var(--atbl-control-selected-text, var(--atbl-text));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:hover, [data-hovered]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-hover-surface, color-mix(in srgb, var(--atbl-text) 4%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-webkit-any(:active, [data-pressed]):not(:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:-moz-any(:active, [data-pressed]):not(:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"option\"])[data-selected]:is(:active, [data-pressed]):not(:is(:disabled, [data-disabled], [aria-disabled=\"true\"], :has( > input:disabled))) {\n background: var(--atbl-control-pressed-surface, color-mix(in srgb, var(--atbl-text) 8%, var(--atbl-control-selected-surface, var(--atbl-subtle))));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-webkit-any(:hover, [data-hovered]):not(:-webkit-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):-moz-any(:hover, [data-hovered]):not(:-moz-any(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n :where([data-atbl-internal-surface=\"field\"], [data-atbl-internal-surface=\"control\"][data-variant=\"outline\"], [data-atbl-internal-surface=\"control\"][data-variant=\"elevated\"]):is(:hover, [data-hovered]):not(:is(:disabled, :has(input:disabled), [data-disabled], [aria-disabled=\"true\"], [data-invalid], [aria-invalid=\"true\"], :has(input[aria-invalid=\"true\"]))) {\n border-color: var(--atbl-control-hover-border, color-mix(in srgb, var(--atbl-muted) 45%, var(--atbl-border)));\n }\n\n [data-atbl-internal-surface=\"field\"]:-webkit-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:-moz-any([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:is([data-invalid], [aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-internal-surface=\"field\"]:has(input[aria-invalid=\"true\"]) {\n border-color: var(--atbl-danger);\n --atbl-focus-color: var(--atbl-danger);\n }\n\n [data-atbl-control=\"text\"]:-webkit-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:-moz-any(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n\n [data-atbl-control=\"text\"]:is(:disabled, [data-disabled], [aria-disabled=\"true\"]) {\n color: var(--atbl-muted);\n }\n}\n\n/* packages/data-app-react/src/styles.css */\n@layer atbl.tokens, atbl.base, atbl.components, atbl.interaction;\n",
|
|
41
41
|
options
|
|
42
42
|
});
|
|
43
43
|
}
|
|
@@ -212,7 +212,7 @@ const shortcuts = {
|
|
|
212
212
|
function isApple() {
|
|
213
213
|
return typeof navigator !== "undefined" && /Macintosh|Mac OS X|iPhone|iPad/.test(navigator.userAgent);
|
|
214
214
|
}
|
|
215
|
-
function shortcutLabel({ modifier, shift, key }) {
|
|
215
|
+
function shortcutLabel$1({ modifier, shift, key }) {
|
|
216
216
|
const platform = isApple() ? "apple" : "other";
|
|
217
217
|
return `${{
|
|
218
218
|
apple: {
|
|
@@ -269,7 +269,7 @@ function Kbd({ shortcut, children, className, ...props }) {
|
|
|
269
269
|
return /* @__PURE__ */ jsx("kbd", {
|
|
270
270
|
...props,
|
|
271
271
|
className: classNames("altertable-kbd", className),
|
|
272
|
-
children: shortcut ? shortcutLabel(shortcut) : children
|
|
272
|
+
children: shortcut ? shortcutLabel$1(shortcut) : children
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
//#endregion
|
|
@@ -292,7 +292,7 @@ function chartPointerMoved(document, x, y) {
|
|
|
292
292
|
});
|
|
293
293
|
return !previous || previous.x !== x || previous.y !== y;
|
|
294
294
|
}
|
|
295
|
-
function ChartTooltip({ content, children, onOpenChange, variant = "chart", align = "center", placement, portalRoot, className, ref, onPointerEnter, onPointerMove, onPointerLeave, onPointerDown, ...props }) {
|
|
295
|
+
function ChartTooltip({ content, children, onOpenChange, variant = "chart", align = "center", placement, followCursor = true, anchorRect, boundaryRefs, mouseHover = true, touchInspection = true, portalRoot, className, ref, onPointerEnter, onPointerMove, onPointerLeave, onPointerDown, ...props }) {
|
|
296
296
|
const describedBy = useId();
|
|
297
297
|
const [open, setOpen] = useState(false);
|
|
298
298
|
const visible = open && content != null;
|
|
@@ -302,6 +302,7 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
302
302
|
}, [visible]);
|
|
303
303
|
const [dialogRoot, setDialogRoot] = useState(null);
|
|
304
304
|
const suppressed = useRef(false);
|
|
305
|
+
const lastAnchor = useRef(null);
|
|
305
306
|
const side = placement ?? "top";
|
|
306
307
|
function close() {
|
|
307
308
|
setOpen(false);
|
|
@@ -327,6 +328,11 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
327
328
|
window.addEventListener("scroll", onScroll, true);
|
|
328
329
|
return () => window.removeEventListener("scroll", onScroll, true);
|
|
329
330
|
}, [visible]);
|
|
331
|
+
const boundaries = boundaryRefs?.flatMap((ref) => ref.current ? [ref.current] : []);
|
|
332
|
+
const overflowOptions = boundaries?.length ? {
|
|
333
|
+
boundary: boundaries,
|
|
334
|
+
padding: 8
|
|
335
|
+
} : void 0;
|
|
330
336
|
const { refs, floatingStyles, update } = useFloating({
|
|
331
337
|
open: visible,
|
|
332
338
|
onOpenChange: setOpen,
|
|
@@ -335,8 +341,12 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
335
341
|
whileElementsMounted: autoUpdate,
|
|
336
342
|
middleware: [
|
|
337
343
|
offset(16),
|
|
338
|
-
flip(),
|
|
339
|
-
shift({
|
|
344
|
+
flip(overflowOptions),
|
|
345
|
+
shift({
|
|
346
|
+
padding: 12,
|
|
347
|
+
...overflowOptions,
|
|
348
|
+
crossAxis: Boolean(overflowOptions)
|
|
349
|
+
})
|
|
340
350
|
]
|
|
341
351
|
});
|
|
342
352
|
const closeOnOutsidePointer = useEffectEvent((event) => {
|
|
@@ -344,23 +354,35 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
344
354
|
if (refs.domReference.current?.contains(node) || refs.floating.current?.contains(node)) return;
|
|
345
355
|
close();
|
|
346
356
|
});
|
|
347
|
-
function
|
|
357
|
+
function positionAtPointer(event) {
|
|
358
|
+
const anchor = anchorRect?.(refs.domReference.current);
|
|
359
|
+
if (anchor) {
|
|
360
|
+
const previous = lastAnchor.current;
|
|
361
|
+
if (previous && previous.x === anchor.x && previous.y === anchor.y && previous.width === anchor.width && previous.height === anchor.height) return;
|
|
362
|
+
if (previous) suppressed.current = false;
|
|
363
|
+
lastAnchor.current = anchor;
|
|
364
|
+
}
|
|
348
365
|
const { clientX: x, clientY: y } = event;
|
|
349
|
-
refs.setPositionReference({
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
366
|
+
refs.setPositionReference({
|
|
367
|
+
contextElement: refs.domReference.current ?? void 0,
|
|
368
|
+
getBoundingClientRect() {
|
|
369
|
+
const anchor = anchorRect?.(refs.domReference.current);
|
|
370
|
+
if (anchor) return anchor;
|
|
371
|
+
return {
|
|
372
|
+
x,
|
|
373
|
+
y,
|
|
374
|
+
top: y,
|
|
375
|
+
left: x,
|
|
376
|
+
right: x,
|
|
377
|
+
bottom: y,
|
|
378
|
+
width: 0,
|
|
379
|
+
height: 0,
|
|
380
|
+
toJSON() {
|
|
381
|
+
return {};
|
|
382
|
+
}
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
});
|
|
364
386
|
update();
|
|
365
387
|
}
|
|
366
388
|
useEffect(() => {
|
|
@@ -385,17 +407,18 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
385
407
|
className: classNames("altertable-tooltip-trigger", className),
|
|
386
408
|
onPointerEnter: (event) => {
|
|
387
409
|
onPointerEnter?.(event);
|
|
388
|
-
if (event.defaultPrevented || event.pointerType !== "mouse" || suppressed.current) return;
|
|
410
|
+
if (event.defaultPrevented || !mouseHover || event.pointerType !== "mouse" || suppressed.current) return;
|
|
389
411
|
if (chartPointerMoved(event.currentTarget.ownerDocument, event.clientX, event.clientY)) {
|
|
390
|
-
|
|
412
|
+
positionAtPointer(event);
|
|
391
413
|
setOpen(true);
|
|
392
414
|
}
|
|
393
415
|
},
|
|
394
416
|
onPointerMove: (event) => {
|
|
395
417
|
onPointerMove?.(event);
|
|
396
|
-
if (event.defaultPrevented || event.pointerType !== "mouse") return;
|
|
418
|
+
if (event.defaultPrevented || !mouseHover || event.pointerType !== "mouse") return;
|
|
397
419
|
if (!chartPointerMoved(event.currentTarget.ownerDocument, event.clientX, event.clientY)) return;
|
|
398
|
-
followCursor
|
|
420
|
+
if (!followCursor && visible) return;
|
|
421
|
+
positionAtPointer(event);
|
|
399
422
|
if (!suppressed.current) setOpen(true);
|
|
400
423
|
},
|
|
401
424
|
onPointerLeave: (event) => {
|
|
@@ -406,8 +429,8 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
406
429
|
onPointerDown: (event) => {
|
|
407
430
|
onPointerDown?.(event);
|
|
408
431
|
if (event.defaultPrevented) return;
|
|
409
|
-
if (event.pointerType !== "mouse") {
|
|
410
|
-
|
|
432
|
+
if (event.pointerType !== "mouse" && touchInspection) {
|
|
433
|
+
positionAtPointer(event);
|
|
411
434
|
setOpen((wasOpen) => !wasOpen);
|
|
412
435
|
}
|
|
413
436
|
},
|
|
@@ -427,7 +450,7 @@ function ChartTooltip({ content, children, onOpenChange, variant = "chart", alig
|
|
|
427
450
|
//#endregion
|
|
428
451
|
//#region src/ui/HintTooltip.tsx
|
|
429
452
|
/** Hint interactions are independent from chart cursor/tap inspection. */
|
|
430
|
-
function HintTooltip({ children, content, timing, onOpenChange, variant = "hint", align = "center", placement = "bottom", portalRoot, className, ref, ...props }) {
|
|
453
|
+
function HintTooltip({ children, content, timing, onOpenChange, variant = "hint", align = "center", placement = "bottom", followCursor: _followCursor, portalRoot, className, ref, ...props }) {
|
|
431
454
|
const id = useId();
|
|
432
455
|
const [open, setOpen] = useState(false);
|
|
433
456
|
const [dialogRoot, setDialogRoot] = useState(null);
|
|
@@ -568,7 +591,7 @@ function TooltipProvider({ children, delay = defaultTiming.delay, skipDelayDurat
|
|
|
568
591
|
* give it an accessible name. Hint content stays open while hovered and opens
|
|
569
592
|
* immediately on keyboard focus; pressing the control or Escape dismisses it.
|
|
570
593
|
* Use HelpPopover for essential information, links, or actions, including on touch.
|
|
571
|
-
* variant="chart" follows the cursor and toggles on tap; it dismisses on scroll
|
|
594
|
+
* variant="chart" follows the cursor by default and toggles on tap; it dismisses on scroll
|
|
572
595
|
* and does not open on keyboard focus. Native span props and ref target the wrapper. */
|
|
573
596
|
function Tooltip(props) {
|
|
574
597
|
const timing = useContext(TooltipContext);
|
|
@@ -1075,7 +1098,8 @@ function InspectionSheet({ id, title, description, visual, visualKind, dataConte
|
|
|
1075
1098
|
};
|
|
1076
1099
|
const listed = listedGlossaryEntries(subject);
|
|
1077
1100
|
const names = glossaryQueries(subject);
|
|
1078
|
-
|
|
1101
|
+
const knownQueries = resolvedContext?.queryNames ? Object.values(resolvedContext.queryNames) : resolvedQueries?.map((query) => query.name);
|
|
1102
|
+
if (names && knownQueries?.length) for (const name of names) invariant(knownQueries.includes(name), `Unknown query name: ${name}.`);
|
|
1079
1103
|
const hasQueries = (resolvedQueries ?? []).some((query) => !names || names.includes(query.name));
|
|
1080
1104
|
const heading = title ?? "About the data";
|
|
1081
1105
|
const activeTab = tab === "records" && !records ? "glossary" : tab;
|
|
@@ -1384,206 +1408,6 @@ function DataAppProvider({ app, children }) {
|
|
|
1384
1408
|
});
|
|
1385
1409
|
}
|
|
1386
1410
|
//#endregion
|
|
1387
|
-
//#region src/view.ts
|
|
1388
|
-
function describeViewInput(definition) {
|
|
1389
|
-
const date = definition.date;
|
|
1390
|
-
const variable = date && definition.variables[date.variable];
|
|
1391
|
-
invariant(!date || variable?.kind === "dateRange" || variable?.kind === "dateTimeRangeComparison", "The view date must reference a date range variable.");
|
|
1392
|
-
if (definition.describeInput) return definition.describeInput;
|
|
1393
|
-
invariant(date && variable, "A view needs a date binding or describeInput.");
|
|
1394
|
-
const dateBinding = date;
|
|
1395
|
-
function describeInput(input) {
|
|
1396
|
-
const request = dateBinding.input(input);
|
|
1397
|
-
return [variable?.kind === "dateTimeRangeComparison" ? formatDateTimeRange(parseDateTimeRange(request.range)) : variable.describeInput(request), ...Object.entries(definition.variables).filter(([, variable]) => [
|
|
1398
|
-
"dimension",
|
|
1399
|
-
"numberFilter",
|
|
1400
|
-
"booleanFilter"
|
|
1401
|
-
].includes(variable.kind)).map(([key, filter]) => {
|
|
1402
|
-
const variable = filter;
|
|
1403
|
-
const selected = readViewBinding(definition, key, input);
|
|
1404
|
-
return variable.valid(selected) ? `${variable.label}: ${variable.describe?.(selected)}` : null;
|
|
1405
|
-
}).filter(Boolean)].join(" · ");
|
|
1406
|
-
}
|
|
1407
|
-
return describeInput;
|
|
1408
|
-
}
|
|
1409
|
-
function resolveViewInput(definition, values) {
|
|
1410
|
-
const input = definition.input(values);
|
|
1411
|
-
if (definition.date) {
|
|
1412
|
-
const variable = definition.variables[definition.date.variable];
|
|
1413
|
-
if (variable?.kind === "dateTimeRangeComparison") {
|
|
1414
|
-
const selected = values[definition.date.variable];
|
|
1415
|
-
const mapped = definition.date.input(input);
|
|
1416
|
-
invariant(mapped && variable.same(selected.selection, mapped.selection) && selected.reference === mapped.reference && serializeDateTimeRange(selected.range) === serializeDateTimeRange(mapped.range) && (selected.comparison === null ? mapped.comparison === null : !!mapped.comparison && serializeDateTimeRange(selected.comparison) === serializeDateTimeRange(mapped.comparison)), "The operation input must preserve the selected datetime range and comparison.");
|
|
1417
|
-
} else {
|
|
1418
|
-
const selected = values[definition.date.variable];
|
|
1419
|
-
const mapped = definition.date.input(input);
|
|
1420
|
-
invariant(mapped && mapped.range && "comparison" in mapped, "The operation input must preserve the selected date range and comparison.");
|
|
1421
|
-
function sameRange(a, b) {
|
|
1422
|
-
return a === b || !!a && !!b && a.start === b.start && a.end === b.end;
|
|
1423
|
-
}
|
|
1424
|
-
invariant(sameRange(selected.range, mapped.range) && sameRange(selected.comparison, mapped.comparison), "The operation input must preserve the selected date range and comparison.");
|
|
1425
|
-
}
|
|
1426
|
-
}
|
|
1427
|
-
for (const [key, variable] of Object.entries(definition.variables)) {
|
|
1428
|
-
if (variable.kind === "dateRange" || variable.kind === "dateTimeRangeComparison" || variable.presentation?.group === "display" && variable.kind !== "choice") continue;
|
|
1429
|
-
const filter = variable;
|
|
1430
|
-
const selected = values[key];
|
|
1431
|
-
const mapped = readViewBinding(definition, key, input);
|
|
1432
|
-
invariant(filter.valid(mapped) && filter.same(selected, mapped), `The operation input must preserve the ${key} filter selection.`);
|
|
1433
|
-
}
|
|
1434
|
-
return input;
|
|
1435
|
-
}
|
|
1436
|
-
function readViewBinding(definition, key, input) {
|
|
1437
|
-
const read = definition.bindings?.[key];
|
|
1438
|
-
if (read) return read(input);
|
|
1439
|
-
return input && typeof input === "object" ? input[key] : void 0;
|
|
1440
|
-
}
|
|
1441
|
-
//#endregion
|
|
1442
|
-
//#region src/exploration.ts
|
|
1443
|
-
var FilterTarget = class {};
|
|
1444
|
-
var BreakdownTarget = class {};
|
|
1445
|
-
const targets = /* @__PURE__ */ new WeakMap();
|
|
1446
|
-
function createFilterTarget(definition) {
|
|
1447
|
-
const target = new FilterTarget();
|
|
1448
|
-
targets.set(target, definition);
|
|
1449
|
-
return target;
|
|
1450
|
-
}
|
|
1451
|
-
function createBreakdownTarget(definition) {
|
|
1452
|
-
const variable = definition.variables[definition.key];
|
|
1453
|
-
invariant(variable?.kind === "choice" && variable.presentation?.group === "display", "Choose a display choice variable.");
|
|
1454
|
-
const target = new BreakdownTarget();
|
|
1455
|
-
targets.set(target, definition);
|
|
1456
|
-
return target;
|
|
1457
|
-
}
|
|
1458
|
-
function breakdownDefinition(target) {
|
|
1459
|
-
const definition = targets.get(target);
|
|
1460
|
-
invariant(definition, "Invalid breakdown target.");
|
|
1461
|
-
return definition;
|
|
1462
|
-
}
|
|
1463
|
-
function readInput(definition, key, input) {
|
|
1464
|
-
return definition.bindings?.[key]?.(input) ?? (definition.date?.variable === key ? definition.date.input(input) : void 0) ?? input?.[key];
|
|
1465
|
-
}
|
|
1466
|
-
function appliedValues(definition) {
|
|
1467
|
-
const params = searchParams();
|
|
1468
|
-
return Object.fromEntries(Object.entries(definition.variables).map(([name, variable]) => [name, variable.read(params)]));
|
|
1469
|
-
}
|
|
1470
|
-
function commit(definition, values) {
|
|
1471
|
-
resolveViewInput(definition, Object.fromEntries(Object.entries(definition.variables).map(([name, variable]) => [name, variable.kind === "dateRange" || variable.kind === "dateTimeRangeComparison" ? variable.input(values[name]) : values[name]])));
|
|
1472
|
-
writeSearch(Object.assign({}, ...Object.entries(definition.variables).map(([name, variable]) => variable.write(values[name]))), "push");
|
|
1473
|
-
}
|
|
1474
|
-
function targetAvailable(target, displayedInput, owner) {
|
|
1475
|
-
const definition = targets.get(target);
|
|
1476
|
-
invariant(definition && definition.owner === owner, "Exploration targets must belong to the dataset view.");
|
|
1477
|
-
const applied = appliedValues(definition);
|
|
1478
|
-
return Object.entries(definition.variables).every(([key, variable]) => {
|
|
1479
|
-
if (variable.presentation?.group === "display") {
|
|
1480
|
-
if (!(target instanceof BreakdownTarget && key === definition.key)) return true;
|
|
1481
|
-
}
|
|
1482
|
-
const shown = readInput(definition, key, displayedInput);
|
|
1483
|
-
if (variable.kind === "dateTimeRangeComparison") return !!shown && variable.same(applied[key], shown.selection);
|
|
1484
|
-
return variable.kind === "dateRange" ? JSON.stringify(variable.input(applied[key])) === JSON.stringify(shown) : variable.same(applied[key], shown);
|
|
1485
|
-
});
|
|
1486
|
-
}
|
|
1487
|
-
/** Apply an explicit scope patch and optional chart choice in one history entry. */
|
|
1488
|
-
function applyFilter(target, patch, breakdown) {
|
|
1489
|
-
const definition = targets.get(target);
|
|
1490
|
-
const values = appliedValues(definition);
|
|
1491
|
-
for (const [key, value] of Object.entries(patch)) {
|
|
1492
|
-
const variable = definition.variables[key];
|
|
1493
|
-
invariant(variable && variable.presentation?.group !== "display" && variable.valid(value), "Filter actions can only update scope variables.");
|
|
1494
|
-
}
|
|
1495
|
-
if (breakdown) {
|
|
1496
|
-
const choice = breakdownDefinition(breakdown.target);
|
|
1497
|
-
invariant(choice.owner === definition.owner, "Breakdown must belong to the filter view.");
|
|
1498
|
-
const variable = choice.variables[choice.key];
|
|
1499
|
-
invariant(variable.valid(breakdown.value), "Invalid breakdown.");
|
|
1500
|
-
patch = {
|
|
1501
|
-
...patch,
|
|
1502
|
-
[choice.key]: breakdown.value
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
commit(definition, {
|
|
1506
|
-
...values,
|
|
1507
|
-
...patch
|
|
1508
|
-
});
|
|
1509
|
-
}
|
|
1510
|
-
function breakdownState(target, owner, input) {
|
|
1511
|
-
const definition = breakdownDefinition(target);
|
|
1512
|
-
invariant(definition.owner === owner, "Breakdown targets must belong to the dataset view.");
|
|
1513
|
-
const variable = definition.variables[definition.key];
|
|
1514
|
-
const values = appliedValues(definition);
|
|
1515
|
-
return {
|
|
1516
|
-
variable,
|
|
1517
|
-
value: input === void 0 ? values[definition.key] : readInput(definition, definition.key, input),
|
|
1518
|
-
options: variable.options,
|
|
1519
|
-
set(id) {
|
|
1520
|
-
invariant(variable.valid(id), "Invalid breakdown.");
|
|
1521
|
-
commit(definition, {
|
|
1522
|
-
...values,
|
|
1523
|
-
[definition.key]: id
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
|
-
}
|
|
1528
|
-
//#endregion
|
|
1529
|
-
//#region src/actions.ts
|
|
1530
|
-
var ActionBuilder = class {
|
|
1531
|
-
detail(config) {
|
|
1532
|
-
return {
|
|
1533
|
-
...config,
|
|
1534
|
-
kind: "detail"
|
|
1535
|
-
};
|
|
1536
|
-
}
|
|
1537
|
-
filter(config) {
|
|
1538
|
-
return {
|
|
1539
|
-
...config,
|
|
1540
|
-
kind: "filter"
|
|
1541
|
-
};
|
|
1542
|
-
}
|
|
1543
|
-
};
|
|
1544
|
-
const actionSets = /* @__PURE__ */ new WeakMap();
|
|
1545
|
-
/** Actions belong to one metric or dataset; its widget supplies displayed rows and input. */
|
|
1546
|
-
var ExplorationActions = class {};
|
|
1547
|
-
function defineActions(binding, build, options) {
|
|
1548
|
-
const actions = build(new ActionBuilder());
|
|
1549
|
-
invariant(!options?.primary || Object.hasOwn(actions, options.primary), "Primary action must be declared.");
|
|
1550
|
-
const result = new ExplorationActions();
|
|
1551
|
-
actionSets.set(result, {
|
|
1552
|
-
binding,
|
|
1553
|
-
actions,
|
|
1554
|
-
primary: options?.primary
|
|
1555
|
-
});
|
|
1556
|
-
return result;
|
|
1557
|
-
}
|
|
1558
|
-
function resolveActions(set, binding, viewOwner, source, open) {
|
|
1559
|
-
if (!set) return () => [];
|
|
1560
|
-
const declaration = actionSets.get(set);
|
|
1561
|
-
invariant(declaration?.binding === binding, "Actions must belong to the widget metric or dataset.");
|
|
1562
|
-
return (row) => {
|
|
1563
|
-
if (source.loading) return [];
|
|
1564
|
-
const input = source.input;
|
|
1565
|
-
return Object.entries(declaration.actions).flatMap(([id, action]) => {
|
|
1566
|
-
if (action.when && !action.when(row)) return [];
|
|
1567
|
-
if (action.kind === "filter" && (!targetAvailable(action.target, input, viewOwner) || action.breakdown && !targetAvailable(action.breakdown.target, input, viewOwner))) return [];
|
|
1568
|
-
return [{
|
|
1569
|
-
id,
|
|
1570
|
-
label: action.label,
|
|
1571
|
-
primary: declaration.primary === id,
|
|
1572
|
-
onSelect(trigger) {
|
|
1573
|
-
if (action.kind === "detail") {
|
|
1574
|
-
open(action.target, action.input(row, input), trigger ?? (document.activeElement instanceof HTMLElement || document.activeElement instanceof SVGElement ? document.activeElement : void 0));
|
|
1575
|
-
return;
|
|
1576
|
-
}
|
|
1577
|
-
if (targetAvailable(action.target, input, viewOwner) && (!action.breakdown || targetAvailable(action.breakdown.target, input, viewOwner))) applyFilter(action.target, action.values(row), action.breakdown && {
|
|
1578
|
-
target: action.breakdown.target,
|
|
1579
|
-
value: action.breakdown.value(row)
|
|
1580
|
-
});
|
|
1581
|
-
}
|
|
1582
|
-
}];
|
|
1583
|
-
});
|
|
1584
|
-
};
|
|
1585
|
-
}
|
|
1586
|
-
//#endregion
|
|
1587
1411
|
//#region src/source-owner.ts
|
|
1588
1412
|
const owners = /* @__PURE__ */ new WeakMap();
|
|
1589
1413
|
function ownedSource(owner, source) {
|
|
@@ -1805,11 +1629,9 @@ function errorPresentation(cause) {
|
|
|
1805
1629
|
}
|
|
1806
1630
|
/** One request boundary for any number of cards. `DataBoundary` exposes the lower-level
|
|
1807
1631
|
* view-state slots internally. The primary DataApp request uses page-level feedback. */
|
|
1808
|
-
function DataSectionBoundary({ result, children, emptyFallback, loadingFallback, error, label, notice
|
|
1632
|
+
function DataSectionBoundary({ result, children, emptyFallback, loadingFallback, error, label, notice, ...props }) {
|
|
1809
1633
|
const fallback = emptyFallback ?? ("emptyFallback" in result ? result.emptyFallback : void 0);
|
|
1810
1634
|
invariant(fallback, "A section needs an empty fallback from its result or props.");
|
|
1811
|
-
const defaults = useInspectionDefaults();
|
|
1812
|
-
const notice = feedback ?? (defaults?.primaryView === result.view ? "none" : "inline");
|
|
1813
1635
|
return /* @__PURE__ */ jsx(DataBoundary, {
|
|
1814
1636
|
...props,
|
|
1815
1637
|
view: result.view,
|
|
@@ -1840,16 +1662,33 @@ function DataSectionBoundary({ result, children, emptyFallback, loadingFallback,
|
|
|
1840
1662
|
}
|
|
1841
1663
|
//#endregion
|
|
1842
1664
|
//#region src/details.tsx
|
|
1843
|
-
/** A typed, query-backed destination.
|
|
1665
|
+
/** A typed, query-backed destination. Interactions supply its own fields (`Own`);
|
|
1666
|
+
* the filters its operation reads carry over from the displayed scope. */
|
|
1844
1667
|
var DetailView = class {
|
|
1845
1668
|
definition;
|
|
1846
1669
|
useResult;
|
|
1847
1670
|
#content;
|
|
1848
|
-
|
|
1671
|
+
#filters;
|
|
1672
|
+
constructor(definition, useResult, filters = {}) {
|
|
1849
1673
|
this.definition = definition;
|
|
1850
1674
|
this.useResult = useResult;
|
|
1851
1675
|
invariant(!!definition.id.trim(), "A detail view needs a nonempty ID.");
|
|
1676
|
+
this.#filters = filters;
|
|
1677
|
+
}
|
|
1678
|
+
/** The destination input: each filter it reads as displayed (or as currently
|
|
1679
|
+
* selected when the source does not read it), then the interaction's own fields
|
|
1680
|
+
* and narrowed filters. */
|
|
1681
|
+
static inputFrom(target, own, displayedInput) {
|
|
1682
|
+
const filters = target.#filters;
|
|
1683
|
+
const shown = displayedInput ?? {};
|
|
1684
|
+
const params = searchParams();
|
|
1685
|
+
const selected = resolveFilterInput(filters, Object.fromEntries(Object.entries(filters).map(([name, filter]) => [name, filter.read(params)])));
|
|
1686
|
+
return {
|
|
1687
|
+
...Object.fromEntries(Object.keys(filters).map((name) => [name, Object.hasOwn(shown, name) ? shown[name] : selected[name]])),
|
|
1688
|
+
...own
|
|
1689
|
+
};
|
|
1852
1690
|
}
|
|
1691
|
+
/** Render like view content: displayed data, its input, and the derived scope. */
|
|
1853
1692
|
content(render) {
|
|
1854
1693
|
const content = new DetailContent(this, render);
|
|
1855
1694
|
this.#content = content;
|
|
@@ -1943,17 +1782,24 @@ function DetailContentBody({ content, result }) {
|
|
|
1943
1782
|
return /* @__PURE__ */ jsx(InspectionContext, {
|
|
1944
1783
|
value: {
|
|
1945
1784
|
dataContext: result.dataContext,
|
|
1946
|
-
queries: result.queries
|
|
1947
|
-
primaryView: result.view
|
|
1785
|
+
queries: result.queries
|
|
1948
1786
|
},
|
|
1949
1787
|
children: /* @__PURE__ */ jsx(DataSectionBoundary, {
|
|
1950
1788
|
result,
|
|
1951
|
-
loadingFallback: content.render(ownedSource(content.target, {
|
|
1789
|
+
loadingFallback: content.render(ownedSource(content.target, {
|
|
1790
|
+
loading: true,
|
|
1791
|
+
scope: { loading: true }
|
|
1792
|
+
})),
|
|
1952
1793
|
emptyFallback: content.target.definition.emptyFallback,
|
|
1953
1794
|
notice: "none",
|
|
1954
1795
|
children: (data, displayedInput) => content.render(ownedSource(content.target, {
|
|
1796
|
+
loading: false,
|
|
1955
1797
|
data,
|
|
1956
|
-
input: displayedInput
|
|
1798
|
+
input: displayedInput,
|
|
1799
|
+
scope: {
|
|
1800
|
+
loading: false,
|
|
1801
|
+
value: content.target.definition.describeInput(displayedInput)
|
|
1802
|
+
}
|
|
1957
1803
|
}))
|
|
1958
1804
|
})
|
|
1959
1805
|
});
|
|
@@ -2048,6 +1894,150 @@ function DetailRecords({ content, input, navigation }) {
|
|
|
2048
1894
|
});
|
|
2049
1895
|
}
|
|
2050
1896
|
//#endregion
|
|
1897
|
+
//#region src/exploration.ts
|
|
1898
|
+
var FilterTarget = class {};
|
|
1899
|
+
var BreakdownTarget = class {};
|
|
1900
|
+
const targets = /* @__PURE__ */ new WeakMap();
|
|
1901
|
+
function createFilterTarget(definition) {
|
|
1902
|
+
const target = new FilterTarget();
|
|
1903
|
+
targets.set(target, definition);
|
|
1904
|
+
return target;
|
|
1905
|
+
}
|
|
1906
|
+
function createBreakdownTarget(definition) {
|
|
1907
|
+
const filter = definition.filters[definition.key];
|
|
1908
|
+
invariant(filter?.kind === "choice" && filter.presentation?.group === "display", "Choose a displayChoice() filter.");
|
|
1909
|
+
const target = new BreakdownTarget();
|
|
1910
|
+
targets.set(target, definition);
|
|
1911
|
+
return target;
|
|
1912
|
+
}
|
|
1913
|
+
function breakdownDefinition(target) {
|
|
1914
|
+
const definition = targets.get(target);
|
|
1915
|
+
invariant(definition, "Invalid breakdown target.");
|
|
1916
|
+
return definition;
|
|
1917
|
+
}
|
|
1918
|
+
function readInput(key, input) {
|
|
1919
|
+
return input[key];
|
|
1920
|
+
}
|
|
1921
|
+
function appliedValues(definition) {
|
|
1922
|
+
const params = searchParams();
|
|
1923
|
+
return Object.fromEntries(Object.entries(definition.filters).map(([name, filter]) => [name, filter.read(params)]));
|
|
1924
|
+
}
|
|
1925
|
+
function commit(definition, values) {
|
|
1926
|
+
writeSearch(Object.assign({}, ...Object.entries(definition.filters).map(([name, filter]) => filter.write(values[name]))), "push");
|
|
1927
|
+
}
|
|
1928
|
+
function targetAvailable(target, displayedInput, owner) {
|
|
1929
|
+
const definition = targets.get(target);
|
|
1930
|
+
invariant(definition && definition.owner === owner, "Exploration targets must belong to the dataset view.");
|
|
1931
|
+
const applied = appliedValues(definition);
|
|
1932
|
+
return Object.entries(definition.filters).every(([key, filter]) => {
|
|
1933
|
+
if (filter.presentation?.group === "display") {
|
|
1934
|
+
if (!(target instanceof BreakdownTarget && key === definition.key)) return true;
|
|
1935
|
+
}
|
|
1936
|
+
const shown = readInput(key, displayedInput);
|
|
1937
|
+
if (filter.kind === "dateTimeRange") return !!shown && filter.same(applied[key], shown.selection);
|
|
1938
|
+
return filter.same(applied[key], shown);
|
|
1939
|
+
});
|
|
1940
|
+
}
|
|
1941
|
+
/** Apply an explicit scope patch and optional chart choice in one history entry. */
|
|
1942
|
+
function applyFilter(target, patch, breakdown) {
|
|
1943
|
+
const definition = targets.get(target);
|
|
1944
|
+
const values = appliedValues(definition);
|
|
1945
|
+
for (const [key, value] of Object.entries(patch)) {
|
|
1946
|
+
const filter = definition.filters[key];
|
|
1947
|
+
invariant(filter && filter.presentation?.group !== "display" && filter.valid(value), "Filter actions can only update scope filters.");
|
|
1948
|
+
}
|
|
1949
|
+
if (breakdown) {
|
|
1950
|
+
const choice = breakdownDefinition(breakdown.target);
|
|
1951
|
+
invariant(choice.owner === definition.owner, "Breakdown must belong to the filter view.");
|
|
1952
|
+
const filter = choice.filters[choice.key];
|
|
1953
|
+
invariant(filter.valid(breakdown.value), "Invalid breakdown.");
|
|
1954
|
+
patch = {
|
|
1955
|
+
...patch,
|
|
1956
|
+
[choice.key]: breakdown.value
|
|
1957
|
+
};
|
|
1958
|
+
}
|
|
1959
|
+
commit(definition, {
|
|
1960
|
+
...values,
|
|
1961
|
+
...patch
|
|
1962
|
+
});
|
|
1963
|
+
}
|
|
1964
|
+
function breakdownState(target, owner, input) {
|
|
1965
|
+
const definition = breakdownDefinition(target);
|
|
1966
|
+
invariant(definition.owner === owner, "Breakdown targets must belong to the dataset view.");
|
|
1967
|
+
const filter = definition.filters[definition.key];
|
|
1968
|
+
const values = appliedValues(definition);
|
|
1969
|
+
return {
|
|
1970
|
+
filter,
|
|
1971
|
+
value: input === void 0 ? values[definition.key] : readInput(definition.key, input),
|
|
1972
|
+
options: filter.options,
|
|
1973
|
+
set(id) {
|
|
1974
|
+
invariant(filter.valid(id), "Invalid breakdown.");
|
|
1975
|
+
commit(definition, {
|
|
1976
|
+
...values,
|
|
1977
|
+
[definition.key]: id
|
|
1978
|
+
});
|
|
1979
|
+
}
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
//#endregion
|
|
1983
|
+
//#region src/actions.ts
|
|
1984
|
+
var ActionBuilder = class {
|
|
1985
|
+
detail(config) {
|
|
1986
|
+
return {
|
|
1987
|
+
...config,
|
|
1988
|
+
kind: "detail"
|
|
1989
|
+
};
|
|
1990
|
+
}
|
|
1991
|
+
filter(config) {
|
|
1992
|
+
return {
|
|
1993
|
+
...config,
|
|
1994
|
+
kind: "filter"
|
|
1995
|
+
};
|
|
1996
|
+
}
|
|
1997
|
+
};
|
|
1998
|
+
const actionSets = /* @__PURE__ */ new WeakMap();
|
|
1999
|
+
/** Actions belong to one metric or dataset; its widget supplies displayed rows and input. */
|
|
2000
|
+
var ExplorationActions = class {};
|
|
2001
|
+
function defineActions(binding, build, options) {
|
|
2002
|
+
const actions = build(new ActionBuilder());
|
|
2003
|
+
invariant(!options?.primary || Object.hasOwn(actions, options.primary), "Primary action must be declared.");
|
|
2004
|
+
const result = new ExplorationActions();
|
|
2005
|
+
actionSets.set(result, {
|
|
2006
|
+
binding,
|
|
2007
|
+
actions,
|
|
2008
|
+
primary: options?.primary
|
|
2009
|
+
});
|
|
2010
|
+
return result;
|
|
2011
|
+
}
|
|
2012
|
+
function resolveActions(set, binding, viewOwner, source, open) {
|
|
2013
|
+
if (!set) return () => [];
|
|
2014
|
+
const declaration = actionSets.get(set);
|
|
2015
|
+
invariant(declaration?.binding === binding, "Actions must belong to the widget metric or dataset.");
|
|
2016
|
+
return (row) => {
|
|
2017
|
+
if (source.loading) return [];
|
|
2018
|
+
const input = source.input;
|
|
2019
|
+
return Object.entries(declaration.actions).flatMap(([id, action]) => {
|
|
2020
|
+
if (action.when && !action.when(row)) return [];
|
|
2021
|
+
if (action.kind === "filter" && (!targetAvailable(action.target, input, viewOwner) || action.breakdown && !targetAvailable(action.breakdown.target, input, viewOwner))) return [];
|
|
2022
|
+
return [{
|
|
2023
|
+
id,
|
|
2024
|
+
label: action.label,
|
|
2025
|
+
primary: declaration.primary === id,
|
|
2026
|
+
onSelect(trigger) {
|
|
2027
|
+
if (action.kind === "detail") {
|
|
2028
|
+
open(action.target, DetailView.inputFrom(action.target, action.input(row, input), input), trigger ?? (document.activeElement instanceof HTMLElement || document.activeElement instanceof SVGElement ? document.activeElement : void 0));
|
|
2029
|
+
return;
|
|
2030
|
+
}
|
|
2031
|
+
if (targetAvailable(action.target, input, viewOwner) && (!action.breakdown || targetAvailable(action.breakdown.target, input, viewOwner))) applyFilter(action.target, action.values(row), action.breakdown && {
|
|
2032
|
+
target: action.breakdown.target,
|
|
2033
|
+
value: action.breakdown.value(row)
|
|
2034
|
+
});
|
|
2035
|
+
}
|
|
2036
|
+
}];
|
|
2037
|
+
});
|
|
2038
|
+
};
|
|
2039
|
+
}
|
|
2040
|
+
//#endregion
|
|
2051
2041
|
//#region src/ui/HelpPopover.tsx
|
|
2052
2042
|
/** A supplemental explanation that opens on click, Enter, or a deliberate mouse hover. Tabbing
|
|
2053
2043
|
* past the trigger does not open it, and a click keeps a hover-opened panel in place.
|
|
@@ -2281,15 +2271,15 @@ var RegisteredBinding = class RegisteredBinding {
|
|
|
2281
2271
|
assertSource(source) {
|
|
2282
2272
|
if (this.#owner) assertSourceOwner(this.#owner, source);
|
|
2283
2273
|
}
|
|
2284
|
-
static evidence(binding,
|
|
2274
|
+
static evidence(binding, owners) {
|
|
2285
2275
|
invariant(binding instanceof RegisteredBinding, "Story evidence must be a registered metric or dataset binding.");
|
|
2286
|
-
invariant(binding.#owner
|
|
2276
|
+
invariant(!!binding.#owner && owners.includes(binding.#owner), "Story evidence must belong to the app view or one of its summary views.");
|
|
2287
2277
|
invariant(binding.#evidence, "Story evidence must have registered references.");
|
|
2288
2278
|
return binding.#evidence;
|
|
2289
2279
|
}
|
|
2290
2280
|
};
|
|
2291
|
-
function registeredEvidence(binding,
|
|
2292
|
-
return RegisteredBinding.evidence(binding,
|
|
2281
|
+
function registeredEvidence(binding, owners) {
|
|
2282
|
+
return RegisteredBinding.evidence(binding, owners);
|
|
2293
2283
|
}
|
|
2294
2284
|
var ExportDataset = class extends RegisteredBinding {
|
|
2295
2285
|
name;
|
|
@@ -2426,8 +2416,10 @@ var Metric = class extends RegisteredBinding {
|
|
|
2426
2416
|
};
|
|
2427
2417
|
});
|
|
2428
2418
|
};
|
|
2419
|
+
/** Show the records behind this metric. `input` returns the destination's own
|
|
2420
|
+
* fields and any filter it narrows; its other filters carry over from the displayed scope. */
|
|
2429
2421
|
records(options) {
|
|
2430
|
-
return new MetricRecords(this, options.target, options.input);
|
|
2422
|
+
return new MetricRecords(this, options.target, (displayed) => DetailView.inputFrom(options.target, options.input(displayed), displayed));
|
|
2431
2423
|
}
|
|
2432
2424
|
actions(build, options) {
|
|
2433
2425
|
return defineActions(this, build, options);
|
|
@@ -2471,10 +2463,17 @@ function displayedScope(view, describeInput) {
|
|
|
2471
2463
|
value: describeInput(view.kind === "updating" || view.kind === "stale-error" ? view.displayedInput : view.input)
|
|
2472
2464
|
};
|
|
2473
2465
|
}
|
|
2474
|
-
|
|
2466
|
+
/** Export each dataset from the displayed snapshot of the view that owns it. */
|
|
2467
|
+
function exportDatasets({ tables, scope, appTitle }) {
|
|
2468
|
+
const [first, ...rest] = tables;
|
|
2469
|
+
invariant(first, "An export needs at least one dataset.");
|
|
2470
|
+
const filename = `${rest.length ? appTitle : first.dataset.name}-${scope}`.toLowerCase().replace(/[^\p{L}\p{N}]+/gu, "-").replace(/^-|-$/g, "").slice(0, 200) || "data";
|
|
2471
|
+
function csv({ dataset, snapshot }) {
|
|
2472
|
+
return datasetCsv(dataset, snapshot);
|
|
2473
|
+
}
|
|
2475
2474
|
return {
|
|
2476
|
-
filename
|
|
2477
|
-
tables:
|
|
2475
|
+
filename,
|
|
2476
|
+
tables: [csv(first), ...rest.map(csv)]
|
|
2478
2477
|
};
|
|
2479
2478
|
}
|
|
2480
2479
|
//#endregion
|
|
@@ -2518,138 +2517,6 @@ function sectionContent(content) {
|
|
|
2518
2517
|
return ViewContent.section(content);
|
|
2519
2518
|
}
|
|
2520
2519
|
//#endregion
|
|
2521
|
-
//#region src/ui/variables.ts
|
|
2522
|
-
/** Adapt one date variable to the controlled picker without giving the picker URL ownership. */
|
|
2523
|
-
function dateRangeControl(variable, selection, onChange) {
|
|
2524
|
-
const value = variable.resolve(selection);
|
|
2525
|
-
function update(next) {
|
|
2526
|
-
return onChange(selection.comparison && variable.previous(next) ? {
|
|
2527
|
-
...next,
|
|
2528
|
-
comparison: "previous"
|
|
2529
|
-
} : next);
|
|
2530
|
-
}
|
|
2531
|
-
return {
|
|
2532
|
-
value,
|
|
2533
|
-
label: variable.label,
|
|
2534
|
-
onChange(range) {
|
|
2535
|
-
return update(range ? {
|
|
2536
|
-
kind: "dates",
|
|
2537
|
-
...range
|
|
2538
|
-
} : variable.defaultValue);
|
|
2539
|
-
},
|
|
2540
|
-
onPresetChange(id) {
|
|
2541
|
-
return update({
|
|
2542
|
-
kind: "preset",
|
|
2543
|
-
id
|
|
2544
|
-
});
|
|
2545
|
-
},
|
|
2546
|
-
selectedPresetId: selection.kind === "preset" ? selection.id : null,
|
|
2547
|
-
onReset() {
|
|
2548
|
-
return onChange(variable.defaultValue);
|
|
2549
|
-
},
|
|
2550
|
-
isDefault: variable.same(selection, variable.defaultValue),
|
|
2551
|
-
resetValue: variable.resolve(variable.defaultValue),
|
|
2552
|
-
...variable.supportsComparison ? { comparison: {
|
|
2553
|
-
enabled: selection.comparison === "previous",
|
|
2554
|
-
range: variable.previous(selection),
|
|
2555
|
-
onChange(enabled) {
|
|
2556
|
-
return onChange(enabled ? {
|
|
2557
|
-
...selection,
|
|
2558
|
-
comparison: "previous"
|
|
2559
|
-
} : {
|
|
2560
|
-
...selection,
|
|
2561
|
-
comparison: void 0
|
|
2562
|
-
});
|
|
2563
|
-
}
|
|
2564
|
-
} } : {},
|
|
2565
|
-
...variable.bounds()
|
|
2566
|
-
};
|
|
2567
|
-
}
|
|
2568
|
-
function currentSearch() {
|
|
2569
|
-
return searchParams().toString();
|
|
2570
|
-
}
|
|
2571
|
-
function serverSearch() {
|
|
2572
|
-
return "";
|
|
2573
|
-
}
|
|
2574
|
-
/** URL is the source of truth for app variables; one update can change dependent values atomically. */
|
|
2575
|
-
function useAppVariables(definitions) {
|
|
2576
|
-
defineAppVariables(definitions);
|
|
2577
|
-
const search = useSyncExternalStore(subscribeSearch, currentSearch, serverSearch);
|
|
2578
|
-
const zones = Object.values(definitions).flatMap((item) => item.kind === "dateRange" ? [item.bounds().timeZone] : (item.kind === "dateTimeRange" || item.kind === "dateTimeRangeComparison") && item.contract ? [item.contract.bounds().timeZone] : []);
|
|
2579
|
-
const zoneKey = [...new Set(zones)].sort().join("|");
|
|
2580
|
-
const [calendarRevision, bumpDay] = useReducer((value) => value + 1, 0);
|
|
2581
|
-
useEffect(() => {
|
|
2582
|
-
if (!zoneKey) return;
|
|
2583
|
-
const timeZones = zoneKey.split("|");
|
|
2584
|
-
let day = timeZones.map((zone) => today(zone).toString()).join("|");
|
|
2585
|
-
const timer = window.setInterval(() => {
|
|
2586
|
-
const next = timeZones.map((zone) => today(zone).toString()).join("|");
|
|
2587
|
-
if (next !== day) {
|
|
2588
|
-
day = next;
|
|
2589
|
-
bumpDay();
|
|
2590
|
-
}
|
|
2591
|
-
}, 3e4);
|
|
2592
|
-
return () => window.clearInterval(timer);
|
|
2593
|
-
}, [zoneKey]);
|
|
2594
|
-
const params = new URLSearchParams(search);
|
|
2595
|
-
const values = {};
|
|
2596
|
-
const canonical = {};
|
|
2597
|
-
for (const name of Object.keys(definitions)) {
|
|
2598
|
-
const variable = definitions[name];
|
|
2599
|
-
const value = variable.read(params);
|
|
2600
|
-
values[name] = value;
|
|
2601
|
-
Object.assign(canonical, variable.write(value));
|
|
2602
|
-
}
|
|
2603
|
-
useEffect(() => {
|
|
2604
|
-
if (Object.entries(canonical).some(([key, value]) => params.get(key) !== value)) writeSearch(canonical);
|
|
2605
|
-
});
|
|
2606
|
-
function update(next, history) {
|
|
2607
|
-
const changes = {};
|
|
2608
|
-
let mode = history ?? "replace";
|
|
2609
|
-
for (const name of Object.keys(next)) {
|
|
2610
|
-
const variable = definitions[name];
|
|
2611
|
-
const value = next[name];
|
|
2612
|
-
invariant(variable.valid(value), `Invalid value for variable ${name}.`);
|
|
2613
|
-
Object.assign(changes, variable.write(value));
|
|
2614
|
-
if (!history && variable.history === "push") mode = "push";
|
|
2615
|
-
}
|
|
2616
|
-
writeSearch(changes, mode);
|
|
2617
|
-
}
|
|
2618
|
-
function set(name, value) {
|
|
2619
|
-
update({ [name]: value });
|
|
2620
|
-
}
|
|
2621
|
-
function reset(name) {
|
|
2622
|
-
const variable = definitions[name];
|
|
2623
|
-
set(name, variable.defaultValue);
|
|
2624
|
-
}
|
|
2625
|
-
function resetAll() {
|
|
2626
|
-
update(Object.fromEntries(Object.entries(definitions).map(([name, variable]) => [name, variable.defaultValue])), "push");
|
|
2627
|
-
}
|
|
2628
|
-
function clearAll() {
|
|
2629
|
-
update(Object.fromEntries(Object.entries(definitions).filter(([, variable]) => variable.clearValue !== void 0 && variable.kind !== "search" && variable.presentation?.group !== "display").map(([name, variable]) => [name, variable.clearValue])), "push");
|
|
2630
|
-
}
|
|
2631
|
-
function bind(name) {
|
|
2632
|
-
const variable = definitions[name];
|
|
2633
|
-
return {
|
|
2634
|
-
value: values[name],
|
|
2635
|
-
onChange(value) {
|
|
2636
|
-
return set(name, value);
|
|
2637
|
-
},
|
|
2638
|
-
resetValue: variable.defaultValue
|
|
2639
|
-
};
|
|
2640
|
-
}
|
|
2641
|
-
return {
|
|
2642
|
-
values,
|
|
2643
|
-
calendarRevision,
|
|
2644
|
-
set,
|
|
2645
|
-
reset,
|
|
2646
|
-
resetAll,
|
|
2647
|
-
clearAll,
|
|
2648
|
-
update,
|
|
2649
|
-
bind
|
|
2650
|
-
};
|
|
2651
|
-
}
|
|
2652
|
-
//#endregion
|
|
2653
2520
|
//#region src/ui/searchItems.ts
|
|
2654
2521
|
function mergeRanges(ranges) {
|
|
2655
2522
|
const sorted = ranges.sort((a, b) => a.start - b.start || a.end - b.end);
|
|
@@ -2782,6 +2649,92 @@ function balanceSearchSuggestions(groups, query = "") {
|
|
|
2782
2649
|
return rankedGroups.flatMap((items, index) => items.slice(0, counts[index])).sort((a, b) => score(b) - score(a));
|
|
2783
2650
|
}
|
|
2784
2651
|
//#endregion
|
|
2652
|
+
//#region src/ui/app-filters.ts
|
|
2653
|
+
function currentSearch() {
|
|
2654
|
+
return searchParams().toString();
|
|
2655
|
+
}
|
|
2656
|
+
function serverSearch() {
|
|
2657
|
+
return "";
|
|
2658
|
+
}
|
|
2659
|
+
/** URL is the source of truth for app filters; one update can change dependent values atomically. */
|
|
2660
|
+
function useAppFilters(definitions) {
|
|
2661
|
+
defineAppFilters(definitions);
|
|
2662
|
+
const search = useSyncExternalStore(subscribeSearch, currentSearch, serverSearch);
|
|
2663
|
+
const zones = Object.values(definitions).flatMap((item) => item.kind === "dateTimeRange" ? [item.policy.timeZone] : []);
|
|
2664
|
+
const zoneKey = [...new Set(zones)].sort().join("|");
|
|
2665
|
+
const [calendarRevision, bumpDay] = useReducer((value) => value + 1, 0);
|
|
2666
|
+
useEffect(() => {
|
|
2667
|
+
if (!zoneKey) return;
|
|
2668
|
+
const timeZones = zoneKey.split("|");
|
|
2669
|
+
let day = timeZones.map((zone) => today(zone).toString()).join("|");
|
|
2670
|
+
const timer = window.setInterval(() => {
|
|
2671
|
+
const next = timeZones.map((zone) => today(zone).toString()).join("|");
|
|
2672
|
+
if (next !== day) {
|
|
2673
|
+
day = next;
|
|
2674
|
+
bumpDay();
|
|
2675
|
+
}
|
|
2676
|
+
}, 3e4);
|
|
2677
|
+
return () => window.clearInterval(timer);
|
|
2678
|
+
}, [zoneKey]);
|
|
2679
|
+
const params = new URLSearchParams(search);
|
|
2680
|
+
const values = {};
|
|
2681
|
+
const canonical = {};
|
|
2682
|
+
for (const name of Object.keys(definitions)) {
|
|
2683
|
+
const filter = definitions[name];
|
|
2684
|
+
const value = filter.read(params);
|
|
2685
|
+
values[name] = value;
|
|
2686
|
+
Object.assign(canonical, filter.write(value));
|
|
2687
|
+
}
|
|
2688
|
+
useEffect(() => {
|
|
2689
|
+
if (Object.entries(canonical).some(([key, value]) => params.get(key) !== value)) writeSearch(canonical);
|
|
2690
|
+
});
|
|
2691
|
+
function update(next, history) {
|
|
2692
|
+
const changes = {};
|
|
2693
|
+
let mode = history ?? "replace";
|
|
2694
|
+
for (const name of Object.keys(next)) {
|
|
2695
|
+
const filter = definitions[name];
|
|
2696
|
+
const value = next[name];
|
|
2697
|
+
invariant(filter.valid(value), `Invalid value for filter ${name}.`);
|
|
2698
|
+
Object.assign(changes, filter.write(value));
|
|
2699
|
+
if (!history && filter.history === "push") mode = "push";
|
|
2700
|
+
}
|
|
2701
|
+
writeSearch(changes, mode);
|
|
2702
|
+
}
|
|
2703
|
+
function set(name, value) {
|
|
2704
|
+
update({ [name]: value });
|
|
2705
|
+
}
|
|
2706
|
+
function reset(name) {
|
|
2707
|
+
const filter = definitions[name];
|
|
2708
|
+
set(name, filter.defaultValue);
|
|
2709
|
+
}
|
|
2710
|
+
function resetAll() {
|
|
2711
|
+
update(Object.fromEntries(Object.entries(definitions).map(([name, filter]) => [name, filter.defaultValue])), "push");
|
|
2712
|
+
}
|
|
2713
|
+
function clearAll() {
|
|
2714
|
+
update(Object.fromEntries(Object.entries(definitions).filter(([, filter]) => filter.clearValue !== void 0 && filter.kind !== "search" && filter.presentation?.group !== "display").map(([name, filter]) => [name, filter.clearValue])), "push");
|
|
2715
|
+
}
|
|
2716
|
+
function bind(name) {
|
|
2717
|
+
const filter = definitions[name];
|
|
2718
|
+
return {
|
|
2719
|
+
value: values[name],
|
|
2720
|
+
onChange(value) {
|
|
2721
|
+
return set(name, value);
|
|
2722
|
+
},
|
|
2723
|
+
resetValue: filter.defaultValue
|
|
2724
|
+
};
|
|
2725
|
+
}
|
|
2726
|
+
return {
|
|
2727
|
+
values,
|
|
2728
|
+
calendarRevision,
|
|
2729
|
+
set,
|
|
2730
|
+
reset,
|
|
2731
|
+
resetAll,
|
|
2732
|
+
clearAll,
|
|
2733
|
+
update,
|
|
2734
|
+
bind
|
|
2735
|
+
};
|
|
2736
|
+
}
|
|
2737
|
+
//#endregion
|
|
2785
2738
|
//#region src/ui/PickerField.tsx
|
|
2786
2739
|
/** Popup triggers retain their accessible names when the visible label moves outside. */
|
|
2787
2740
|
function PickerField({ label, labelPlacement, children }) {
|
|
@@ -3036,337 +2989,39 @@ function ChoicePicker(props) {
|
|
|
3036
2989
|
children: [/* @__PURE__ */ jsx("span", { children: hit.matches.label ? /* @__PURE__ */ jsx(SearchMatch, { match: hit.matches.label }) : hit.item.label }), hit.item.description && /* @__PURE__ */ jsx("small", { children: hit.matches.description ? /* @__PURE__ */ jsx(SearchMatch, { match: hit.matches.description }) : hit.item.description })]
|
|
3037
2990
|
})]
|
|
3038
2991
|
})
|
|
3039
|
-
}) : loading && !error ? /* @__PURE__ */ jsx("div", {
|
|
3040
|
-
className: "altertable-choice-picker-skeletons",
|
|
3041
|
-
"aria-hidden": "true",
|
|
3042
|
-
children: [
|
|
3043
|
-
0,
|
|
3044
|
-
1,
|
|
3045
|
-
2
|
|
3046
|
-
].map((row) => /* @__PURE__ */ jsx(Skeleton, {}, row))
|
|
3047
|
-
}) : /* @__PURE__ */ jsx("div", {
|
|
3048
|
-
className: "altertable-choice-picker-empty",
|
|
3049
|
-
children: error ? "Values are unavailable" : feedback
|
|
3050
|
-
})
|
|
3051
|
-
}),
|
|
3052
|
-
error && /* @__PURE__ */ jsx(RequestHint, {
|
|
3053
|
-
status: {
|
|
3054
|
-
kind: "error",
|
|
3055
|
-
message: "Couldn’t load values",
|
|
3056
|
-
onRetry
|
|
3057
|
-
},
|
|
3058
|
-
retryLabel: "Try again"
|
|
3059
|
-
}),
|
|
3060
|
-
canClear && /* @__PURE__ */ jsx("div", {
|
|
3061
|
-
className: "altertable-choice-picker-actions",
|
|
3062
|
-
children: /* @__PURE__ */ jsx(PressButton, {
|
|
3063
|
-
variant: "ghost",
|
|
3064
|
-
size: "compact",
|
|
3065
|
-
onPress: clear,
|
|
3066
|
-
children: "Clear selection"
|
|
3067
|
-
})
|
|
3068
|
-
})
|
|
3069
|
-
]
|
|
3070
|
-
})
|
|
3071
|
-
})]
|
|
3072
|
-
})
|
|
3073
|
-
});
|
|
3074
|
-
}
|
|
3075
|
-
//#endregion
|
|
3076
|
-
//#region src/ui/Checkbox.tsx
|
|
3077
|
-
const CheckboxGroupContext = createContext(null);
|
|
3078
|
-
function Checkbox({ label, description, checked, value, onChange, disabled, className }) {
|
|
3079
|
-
const group = useContext(CheckboxGroupContext);
|
|
3080
|
-
const descriptionId = useId();
|
|
3081
|
-
invariant(value === void 0 || group, "A checkbox with value must belong to a CheckboxGroup.");
|
|
3082
|
-
const selected = value === void 0 ? checked : group.values.includes(value);
|
|
3083
|
-
return /* @__PURE__ */ jsxs("label", {
|
|
3084
|
-
"data-atbl-focus": "ring",
|
|
3085
|
-
"data-atbl-control": "action",
|
|
3086
|
-
className: classNames("altertable-checkbox", className),
|
|
3087
|
-
children: [
|
|
3088
|
-
/* @__PURE__ */ jsx("input", {
|
|
3089
|
-
type: "checkbox",
|
|
3090
|
-
value,
|
|
3091
|
-
checked: selected,
|
|
3092
|
-
"aria-label": label,
|
|
3093
|
-
"aria-describedby": description ? descriptionId : void 0,
|
|
3094
|
-
disabled: disabled || group?.disabled,
|
|
3095
|
-
onChange: (event) => {
|
|
3096
|
-
if (value === void 0) onChange(event.currentTarget.checked);
|
|
3097
|
-
else group.onChange(value, event.currentTarget.checked);
|
|
3098
|
-
}
|
|
3099
|
-
}),
|
|
3100
|
-
/* @__PURE__ */ jsx(SelectionMark, { selected }),
|
|
3101
|
-
/* @__PURE__ */ jsxs("span", { children: [label, description && /* @__PURE__ */ jsx("small", {
|
|
3102
|
-
id: descriptionId,
|
|
3103
|
-
children: description
|
|
3104
|
-
})] })
|
|
3105
|
-
]
|
|
3106
|
-
});
|
|
3107
|
-
}
|
|
3108
|
-
//#endregion
|
|
3109
|
-
//#region src/ui/DateRangePicker.tsx
|
|
3110
|
-
/** The app owns URL state; `dateRangeControl` binds a date variable to this picker. */
|
|
3111
|
-
function DateRangePicker$1({ label = "Date range", labelPlacement, value, onChange, minDate, maxDate, maxRangeDays, timeZone, resetValue, isDefault, onReset, onPresetChange, selectedPresetId, calendarFooter, comparison, className, ...props }) {
|
|
3112
|
-
const dateFormatting = useDateFormatting();
|
|
3113
|
-
const [error, setError] = useState("");
|
|
3114
|
-
const [open, setOpen] = useState(false);
|
|
3115
|
-
const selected = value ? {
|
|
3116
|
-
start: parseDate(value.start),
|
|
3117
|
-
end: parseDate(value.end)
|
|
3118
|
-
} : null;
|
|
3119
|
-
const presets = availableDatePresets({
|
|
3120
|
-
minDate,
|
|
3121
|
-
maxDate,
|
|
3122
|
-
maxRangeDays,
|
|
3123
|
-
timeZone
|
|
3124
|
-
});
|
|
3125
|
-
const selectedDays = value ? inclusiveDays(value) : 0;
|
|
3126
|
-
function choosePreset(preset) {
|
|
3127
|
-
setError("");
|
|
3128
|
-
if (onPresetChange) onPresetChange(preset.id);
|
|
3129
|
-
else onChange(preset.range);
|
|
3130
|
-
setOpen(false);
|
|
3131
|
-
}
|
|
3132
|
-
return /* @__PURE__ */ jsx(PickerField, {
|
|
3133
|
-
label,
|
|
3134
|
-
labelPlacement,
|
|
3135
|
-
children: /* @__PURE__ */ jsxs(DateRangePicker, {
|
|
3136
|
-
...props,
|
|
3137
|
-
isOpen: open,
|
|
3138
|
-
onOpenChange: (next) => {
|
|
3139
|
-
setOpen(next);
|
|
3140
|
-
if (next) setError("");
|
|
3141
|
-
},
|
|
3142
|
-
"aria-label": `${props["aria-label"] ?? label}${comparison?.enabled ? ", compared with previous period" : ""}`,
|
|
3143
|
-
className: (values) => classNames("altertable-date-range", typeof className === "function" ? className(values) : className),
|
|
3144
|
-
value: selected,
|
|
3145
|
-
onChange: (range) => {
|
|
3146
|
-
const next = range ? {
|
|
3147
|
-
start: range.start.toString(),
|
|
3148
|
-
end: range.end.toString()
|
|
3149
|
-
} : null;
|
|
3150
|
-
if (next && !withinBounds(next, minDate, maxDate, maxRangeDays)) {
|
|
3151
|
-
setError(maxRangeDays ? `Choose up to ${maxRangeDays} available days.` : "Choose dates within the available range.");
|
|
3152
|
-
return;
|
|
3153
|
-
}
|
|
3154
|
-
setError("");
|
|
3155
|
-
onChange(next);
|
|
3156
|
-
},
|
|
3157
|
-
minValue: minDate ? parseDate(minDate) : void 0,
|
|
3158
|
-
maxValue: maxDate ? parseDate(maxDate) : void 0,
|
|
3159
|
-
children: [
|
|
3160
|
-
/* @__PURE__ */ jsxs(Group, {
|
|
3161
|
-
"data-invalid": error || props.isInvalid ? true : void 0,
|
|
3162
|
-
"data-disabled": props.isDisabled || void 0,
|
|
3163
|
-
"data-atbl-internal-surface": "field",
|
|
3164
|
-
"data-atbl-focus": "group",
|
|
3165
|
-
children: [
|
|
3166
|
-
/* @__PURE__ */ jsx(Button, {
|
|
3167
|
-
"data-atbl-internal-surface": "control",
|
|
3168
|
-
"data-atbl-focus": "ring",
|
|
3169
|
-
"data-atbl-control": "action",
|
|
3170
|
-
"aria-label": "Choose dates",
|
|
3171
|
-
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3172
|
-
name: "calendar",
|
|
3173
|
-
size: 16
|
|
3174
|
-
})
|
|
3175
|
-
}),
|
|
3176
|
-
/* @__PURE__ */ jsx(DateInput, {
|
|
3177
|
-
slot: "start",
|
|
3178
|
-
children: (segment) => /* @__PURE__ */ jsx(DateSegment, {
|
|
3179
|
-
"data-atbl-focus": "inset",
|
|
3180
|
-
"data-atbl-internal-focus-state": "focused",
|
|
3181
|
-
"data-atbl-control": "text",
|
|
3182
|
-
segment
|
|
2992
|
+
}) : loading && !error ? /* @__PURE__ */ jsx("div", {
|
|
2993
|
+
className: "altertable-choice-picker-skeletons",
|
|
2994
|
+
"aria-hidden": "true",
|
|
2995
|
+
children: [
|
|
2996
|
+
0,
|
|
2997
|
+
1,
|
|
2998
|
+
2
|
|
2999
|
+
].map((row) => /* @__PURE__ */ jsx(Skeleton, {}, row))
|
|
3000
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
3001
|
+
className: "altertable-choice-picker-empty",
|
|
3002
|
+
children: error ? "Values are unavailable" : feedback
|
|
3183
3003
|
})
|
|
3184
3004
|
}),
|
|
3185
|
-
/* @__PURE__ */ jsx(
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
"data-atbl-focus": "inset",
|
|
3193
|
-
"data-atbl-internal-focus-state": "focused",
|
|
3194
|
-
"data-atbl-control": "text",
|
|
3195
|
-
segment
|
|
3196
|
-
})
|
|
3005
|
+
error && /* @__PURE__ */ jsx(RequestHint, {
|
|
3006
|
+
status: {
|
|
3007
|
+
kind: "error",
|
|
3008
|
+
message: "Couldn’t load values",
|
|
3009
|
+
onRetry
|
|
3010
|
+
},
|
|
3011
|
+
retryLabel: "Try again"
|
|
3197
3012
|
}),
|
|
3198
|
-
|
|
3199
|
-
"
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3206
|
-
name: "reset",
|
|
3207
|
-
size: 14
|
|
3013
|
+
canClear && /* @__PURE__ */ jsx("div", {
|
|
3014
|
+
className: "altertable-choice-picker-actions",
|
|
3015
|
+
children: /* @__PURE__ */ jsx(PressButton, {
|
|
3016
|
+
variant: "ghost",
|
|
3017
|
+
size: "compact",
|
|
3018
|
+
onPress: clear,
|
|
3019
|
+
children: "Clear selection"
|
|
3208
3020
|
})
|
|
3209
3021
|
})
|
|
3210
3022
|
]
|
|
3211
|
-
}),
|
|
3212
|
-
comparison?.enabled && /* @__PURE__ */ jsx("span", {
|
|
3213
|
-
className: "altertable-date-range-comparison",
|
|
3214
|
-
"aria-hidden": "true",
|
|
3215
|
-
children: "vs prior"
|
|
3216
|
-
}),
|
|
3217
|
-
error && /* @__PURE__ */ jsx("span", {
|
|
3218
|
-
className: "altertable-date-range-error",
|
|
3219
|
-
role: "alert",
|
|
3220
|
-
children: error
|
|
3221
|
-
}),
|
|
3222
|
-
/* @__PURE__ */ jsx(PopoverSurface, {
|
|
3223
|
-
className: "altertable-date-range-popover",
|
|
3224
|
-
children: /* @__PURE__ */ jsxs(Dialog, { children: [/* @__PURE__ */ jsxs("div", {
|
|
3225
|
-
className: "altertable-date-range-content",
|
|
3226
|
-
children: [presets.length > 0 && /* @__PURE__ */ jsxs("fieldset", {
|
|
3227
|
-
className: "altertable-date-range-presets",
|
|
3228
|
-
children: [/* @__PURE__ */ jsx("legend", {
|
|
3229
|
-
className: "altertable-date-range-heading",
|
|
3230
|
-
children: "Quick ranges"
|
|
3231
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
3232
|
-
className: "altertable-date-range-preset-list",
|
|
3233
|
-
children: presets.map((preset) => /* @__PURE__ */ jsx(Button, {
|
|
3234
|
-
"data-atbl-internal-surface": "option",
|
|
3235
|
-
"data-atbl-focus": "inset",
|
|
3236
|
-
"data-atbl-control": "action",
|
|
3237
|
-
className: "altertable-date-range-preset",
|
|
3238
|
-
"aria-current": (selectedPresetId === void 0 ? value?.start === preset.range.start && value?.end === preset.range.end : selectedPresetId === preset.id) ? "true" : void 0,
|
|
3239
|
-
onPress: () => choosePreset(preset),
|
|
3240
|
-
children: preset.label
|
|
3241
|
-
}, preset.id))
|
|
3242
|
-
})]
|
|
3243
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
3244
|
-
className: "altertable-date-range-custom",
|
|
3245
|
-
children: [
|
|
3246
|
-
/* @__PURE__ */ jsx("span", {
|
|
3247
|
-
className: "altertable-date-range-heading",
|
|
3248
|
-
children: "Custom range"
|
|
3249
|
-
}),
|
|
3250
|
-
/* @__PURE__ */ jsxs(RangeCalendar, {
|
|
3251
|
-
isDateUnavailable: (date, anchorDate) => !!maxRangeDays && !!anchorDate && Math.abs(date.toDate("UTC").getTime() - anchorDate.toDate("UTC").getTime()) >= maxRangeDays * fixedUnitMilliseconds.DAY,
|
|
3252
|
-
children: [/* @__PURE__ */ jsxs("header", { children: [
|
|
3253
|
-
/* @__PURE__ */ jsx(Button, {
|
|
3254
|
-
"data-atbl-internal-surface": "control",
|
|
3255
|
-
"data-atbl-focus": "ring",
|
|
3256
|
-
"data-atbl-control": "action",
|
|
3257
|
-
slot: "previous",
|
|
3258
|
-
"aria-label": "Previous month",
|
|
3259
|
-
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3260
|
-
name: "previousMonth",
|
|
3261
|
-
size: 16
|
|
3262
|
-
})
|
|
3263
|
-
}),
|
|
3264
|
-
/* @__PURE__ */ jsx(CalendarMonthPicker, {
|
|
3265
|
-
format: "short",
|
|
3266
|
-
children: (picker) => /* @__PURE__ */ jsxs(Select, {
|
|
3267
|
-
"aria-label": picker["aria-label"],
|
|
3268
|
-
selectedKey: String(picker.value),
|
|
3269
|
-
onSelectionChange: (key) => picker.onChange(Number(key)),
|
|
3270
|
-
className: "altertable-calendar-select",
|
|
3271
|
-
children: [/* @__PURE__ */ jsxs(Button, {
|
|
3272
|
-
"data-atbl-internal-surface": "control",
|
|
3273
|
-
"data-atbl-focus": "ring",
|
|
3274
|
-
"data-atbl-control": "action",
|
|
3275
|
-
children: [/* @__PURE__ */ jsx(SelectValue, {}), /* @__PURE__ */ jsx(AppIcon, {
|
|
3276
|
-
name: "disclosure",
|
|
3277
|
-
size: 14
|
|
3278
|
-
})]
|
|
3279
|
-
}), /* @__PURE__ */ jsx(PopoverSurface, {
|
|
3280
|
-
className: "altertable-calendar-select-popover",
|
|
3281
|
-
placement: "bottom start",
|
|
3282
|
-
children: /* @__PURE__ */ jsx(ListBox, {
|
|
3283
|
-
items: picker.items,
|
|
3284
|
-
children: (month) => /* @__PURE__ */ jsx(ListBoxItem, {
|
|
3285
|
-
"data-atbl-internal-surface": "option",
|
|
3286
|
-
"data-atbl-focus": "inset",
|
|
3287
|
-
"data-atbl-control": "action",
|
|
3288
|
-
id: String(month.id),
|
|
3289
|
-
textValue: month.formatted,
|
|
3290
|
-
children: month.formatted
|
|
3291
|
-
})
|
|
3292
|
-
})
|
|
3293
|
-
})]
|
|
3294
|
-
})
|
|
3295
|
-
}),
|
|
3296
|
-
/* @__PURE__ */ jsx(CalendarYearPicker, { children: (picker) => /* @__PURE__ */ jsxs(Select, {
|
|
3297
|
-
"aria-label": picker["aria-label"],
|
|
3298
|
-
selectedKey: String(picker.value),
|
|
3299
|
-
onSelectionChange: (key) => picker.onChange(Number(key)),
|
|
3300
|
-
className: "altertable-calendar-select",
|
|
3301
|
-
children: [/* @__PURE__ */ jsxs(Button, {
|
|
3302
|
-
"data-atbl-internal-surface": "control",
|
|
3303
|
-
"data-atbl-focus": "ring",
|
|
3304
|
-
"data-atbl-control": "action",
|
|
3305
|
-
children: [/* @__PURE__ */ jsx(SelectValue, {}), /* @__PURE__ */ jsx(AppIcon, {
|
|
3306
|
-
name: "disclosure",
|
|
3307
|
-
size: 14
|
|
3308
|
-
})]
|
|
3309
|
-
}), /* @__PURE__ */ jsx(PopoverSurface, {
|
|
3310
|
-
className: "altertable-calendar-select-popover",
|
|
3311
|
-
placement: "bottom start",
|
|
3312
|
-
children: /* @__PURE__ */ jsx(ListBox, {
|
|
3313
|
-
items: picker.items,
|
|
3314
|
-
children: (year) => /* @__PURE__ */ jsx(ListBoxItem, {
|
|
3315
|
-
"data-atbl-internal-surface": "option",
|
|
3316
|
-
"data-atbl-focus": "inset",
|
|
3317
|
-
"data-atbl-control": "action",
|
|
3318
|
-
id: String(year.id),
|
|
3319
|
-
textValue: year.formatted,
|
|
3320
|
-
children: year.formatted
|
|
3321
|
-
})
|
|
3322
|
-
})
|
|
3323
|
-
})]
|
|
3324
|
-
}) }),
|
|
3325
|
-
/* @__PURE__ */ jsx(Button, {
|
|
3326
|
-
"data-atbl-internal-surface": "control",
|
|
3327
|
-
"data-atbl-focus": "ring",
|
|
3328
|
-
"data-atbl-control": "action",
|
|
3329
|
-
slot: "next",
|
|
3330
|
-
"aria-label": "Next month",
|
|
3331
|
-
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3332
|
-
name: "nextMonth",
|
|
3333
|
-
size: 16
|
|
3334
|
-
})
|
|
3335
|
-
})
|
|
3336
|
-
] }), /* @__PURE__ */ jsxs(CalendarGrid, { children: [/* @__PURE__ */ jsx(CalendarGridHeader, { children: (day) => /* @__PURE__ */ jsx(CalendarHeaderCell, { children: day }) }), /* @__PURE__ */ jsx(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx(CalendarCell, {
|
|
3337
|
-
"data-atbl-focus": "inset",
|
|
3338
|
-
"data-atbl-control": "action",
|
|
3339
|
-
date
|
|
3340
|
-
}) })] })]
|
|
3341
|
-
}),
|
|
3342
|
-
/* @__PURE__ */ jsxs("div", {
|
|
3343
|
-
className: "altertable-date-range-footer",
|
|
3344
|
-
children: [/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("span", {
|
|
3345
|
-
className: "altertable-date-range-footer-label",
|
|
3346
|
-
children: "Selected dates"
|
|
3347
|
-
}), /* @__PURE__ */ jsx("strong", { children: value ? formatDateRange(value, dateFormatting) : "Select a start and end date" })] }), value && /* @__PURE__ */ jsxs("span", {
|
|
3348
|
-
className: "altertable-date-range-footer-meta",
|
|
3349
|
-
children: [
|
|
3350
|
-
selectedDays,
|
|
3351
|
-
" ",
|
|
3352
|
-
pluralize(selectedDays, "day"),
|
|
3353
|
-
timeZone ? ` · ${timeZone}` : ""
|
|
3354
|
-
]
|
|
3355
|
-
})]
|
|
3356
|
-
}),
|
|
3357
|
-
comparison && /* @__PURE__ */ jsx(Checkbox, {
|
|
3358
|
-
className: "altertable-date-range-compare",
|
|
3359
|
-
label: "Compare with previous period",
|
|
3360
|
-
checked: comparison.enabled,
|
|
3361
|
-
disabled: !comparison.range,
|
|
3362
|
-
onChange: comparison.onChange,
|
|
3363
|
-
description: comparison.range && formatDateRange(comparison.range, dateFormatting)
|
|
3364
|
-
})
|
|
3365
|
-
]
|
|
3366
|
-
})]
|
|
3367
|
-
}), calendarFooter] })
|
|
3368
3023
|
})
|
|
3369
|
-
]
|
|
3024
|
+
})]
|
|
3370
3025
|
})
|
|
3371
3026
|
});
|
|
3372
3027
|
}
|
|
@@ -3411,6 +3066,7 @@ function normalizeDateTimeRangeInput(value, locale) {
|
|
|
3411
3066
|
return value;
|
|
3412
3067
|
}
|
|
3413
3068
|
function getDateTimeRangeEndpoints(value, locale) {
|
|
3069
|
+
locale = new Intl.Locale(locale, { calendar: "gregory" }).toString();
|
|
3414
3070
|
const formatter = new Intl.DateTimeFormat(locale, {
|
|
3415
3071
|
dateStyle: "medium",
|
|
3416
3072
|
timeStyle: "short",
|
|
@@ -3494,10 +3150,7 @@ function endpointDate(endpoint) {
|
|
|
3494
3150
|
return date;
|
|
3495
3151
|
}
|
|
3496
3152
|
function formatEndpoint(endpoint, locale) {
|
|
3497
|
-
return
|
|
3498
|
-
locale,
|
|
3499
|
-
timeZone: "UTC"
|
|
3500
|
-
});
|
|
3153
|
+
return formatDateTimeRangeInputDate(endpointDate(endpoint), locale);
|
|
3501
3154
|
}
|
|
3502
3155
|
function getEndpointDaysInMonth(year, month) {
|
|
3503
3156
|
const date = /* @__PURE__ */ new Date(0);
|
|
@@ -3514,6 +3167,13 @@ function toSelection(segment) {
|
|
|
3514
3167
|
end: segment.end
|
|
3515
3168
|
} : null;
|
|
3516
3169
|
}
|
|
3170
|
+
/** Editable fields use Gregorian years with localized ordering, month names, and digits. */
|
|
3171
|
+
function formatDateTimeRangeInputDate(date, locale) {
|
|
3172
|
+
return formatDateTime(date, {
|
|
3173
|
+
locale: new Intl.Locale(locale, { calendar: "gregory" }).toString(),
|
|
3174
|
+
timeZone: "UTC"
|
|
3175
|
+
});
|
|
3176
|
+
}
|
|
3517
3177
|
//#endregion
|
|
3518
3178
|
//#region src/ui/date-time-range-label.ts
|
|
3519
3179
|
/** Rebased timestamps are wall-clock fields; never convert them through the display timezone. */
|
|
@@ -3657,14 +3317,14 @@ function Select$1({ label, options, value, onChange, disabled, required, classNa
|
|
|
3657
3317
|
//#endregion
|
|
3658
3318
|
//#region src/ui/DateTimeRangeCalendar.tsx
|
|
3659
3319
|
/** Calendar days map to UTC fields and a next-midnight exclusive end. */
|
|
3660
|
-
function DateTimeRangeCalendar({ value, maxRangeDays,
|
|
3320
|
+
function DateTimeRangeCalendar({ value, maxRangeDays, policy, onChange, onCompleteChange }) {
|
|
3661
3321
|
const { locale } = useDateFormatting();
|
|
3662
|
-
const limits =
|
|
3322
|
+
const limits = policy?.bounds();
|
|
3663
3323
|
const currentDay = limits ? parseDate(limits.maxDate) : today("UTC");
|
|
3664
3324
|
const [selection, setSelection] = useState(() => {
|
|
3665
3325
|
if (!value) return null;
|
|
3666
3326
|
try {
|
|
3667
|
-
const resolved =
|
|
3327
|
+
const resolved = policy ? policy.resolve(value) : resolveDateTimeRange(value);
|
|
3668
3328
|
if (!resolved.from || resolved.from.toISOString().slice(0, 10) > currentDay.toString()) return null;
|
|
3669
3329
|
return {
|
|
3670
3330
|
start: parseDate(resolved.from.toISOString().slice(0, 10)),
|
|
@@ -3700,13 +3360,17 @@ function DateTimeRangeCalendar({ value, maxRangeDays, contract, onChange, onComp
|
|
|
3700
3360
|
/* @__PURE__ */ jsx(CalendarCompleteness, { onChange: onCompleteChange }),
|
|
3701
3361
|
/* @__PURE__ */ jsxs("header", { children: [
|
|
3702
3362
|
/* @__PURE__ */ jsx(Button$1, {
|
|
3703
|
-
size: "icon
|
|
3363
|
+
size: "icon",
|
|
3704
3364
|
"aria-label": "Previous month",
|
|
3705
3365
|
onClick: () => setFocused(focused.subtract({ months: 1 })),
|
|
3706
|
-
children:
|
|
3366
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3367
|
+
name: "previousMonth",
|
|
3368
|
+
size: 16
|
|
3369
|
+
})
|
|
3707
3370
|
}),
|
|
3708
3371
|
/* @__PURE__ */ jsx(Select$1, {
|
|
3709
3372
|
label: "Month",
|
|
3373
|
+
labelPlacement: "inline",
|
|
3710
3374
|
value: String(focused.month),
|
|
3711
3375
|
options: Array.from({ length: 12 }, (_, index) => ({
|
|
3712
3376
|
id: String(index + 1),
|
|
@@ -3719,6 +3383,7 @@ function DateTimeRangeCalendar({ value, maxRangeDays, contract, onChange, onComp
|
|
|
3719
3383
|
}),
|
|
3720
3384
|
/* @__PURE__ */ jsx(Select$1, {
|
|
3721
3385
|
label: "Year",
|
|
3386
|
+
labelPlacement: "inline",
|
|
3722
3387
|
value: String(focused.year),
|
|
3723
3388
|
options: Array.from({ length: currentDay.year - Math.min(currentDay.year - 100, focused.year) + 1 }, (_, index) => {
|
|
3724
3389
|
const year = currentDay.year - index;
|
|
@@ -3730,11 +3395,14 @@ function DateTimeRangeCalendar({ value, maxRangeDays, contract, onChange, onComp
|
|
|
3730
3395
|
onChange: (year) => setFocused(focused.set({ year: Number(year) }))
|
|
3731
3396
|
}),
|
|
3732
3397
|
/* @__PURE__ */ jsx(Button$1, {
|
|
3733
|
-
size: "icon
|
|
3398
|
+
size: "icon",
|
|
3734
3399
|
"aria-label": "Next month",
|
|
3735
3400
|
disabled: focused.year >= currentDay.year && focused.month >= currentDay.month,
|
|
3736
3401
|
onClick: () => setFocused(focused.add({ months: 1 })),
|
|
3737
|
-
children:
|
|
3402
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3403
|
+
name: "nextMonth",
|
|
3404
|
+
size: 16
|
|
3405
|
+
})
|
|
3738
3406
|
})
|
|
3739
3407
|
] }),
|
|
3740
3408
|
/* @__PURE__ */ jsxs(CalendarGrid, { children: [/* @__PURE__ */ jsx(CalendarGridHeader, { children: (day) => /* @__PURE__ */ jsx(CalendarHeaderCell, { children: day }) }), /* @__PURE__ */ jsx(CalendarGridBody, { children: (date) => /* @__PURE__ */ jsx(CalendarCell, {
|
|
@@ -3767,6 +3435,9 @@ const presetInputs = [
|
|
|
3767
3435
|
["today", "Today"],
|
|
3768
3436
|
["yesterday", "Yesterday"]
|
|
3769
3437
|
];
|
|
3438
|
+
function shortcutLabel(shortcut) {
|
|
3439
|
+
return !shortcut || /^(today|yesterday)$/i.test(shortcut) ? "-" : shortcut;
|
|
3440
|
+
}
|
|
3770
3441
|
const examples = {
|
|
3771
3442
|
Recent: [
|
|
3772
3443
|
"45m",
|
|
@@ -3790,17 +3461,11 @@ const examples = {
|
|
|
3790
3461
|
Since: ["since 7/1", "Jul 2 12pm to now"],
|
|
3791
3462
|
Unix: ["1783003329 - 1783608129", "1783609703 to now"]
|
|
3792
3463
|
};
|
|
3793
|
-
function resolvedLabel(value,
|
|
3464
|
+
function resolvedLabel(value, policy, options = {}) {
|
|
3794
3465
|
if (!value) return "";
|
|
3795
3466
|
try {
|
|
3796
|
-
const { from, to } =
|
|
3797
|
-
return from ? `${
|
|
3798
|
-
...options,
|
|
3799
|
-
timeZone: "UTC"
|
|
3800
|
-
})} – ${formatDateTime(to, {
|
|
3801
|
-
...options,
|
|
3802
|
-
timeZone: "UTC"
|
|
3803
|
-
})}` : "";
|
|
3467
|
+
const { from, to } = policy ? policy.resolve(value) : resolveDateTimeRange(value);
|
|
3468
|
+
return from ? `${formatDateTimeRangeInputDate(from, options.locale ?? "en-US")} – ${formatDateTimeRangeInputDate(to, options.locale ?? "en-US")}` : "";
|
|
3804
3469
|
} catch {
|
|
3805
3470
|
return value.from ? `${formatDateTimeBound(value.from)} to ${formatDateTimeBound(value.to)}` : "";
|
|
3806
3471
|
}
|
|
@@ -3831,7 +3496,7 @@ function summaryLabel(value, options) {
|
|
|
3831
3496
|
* Unmodified arrows navigate presets or edit date segments. Escape returns from the
|
|
3832
3497
|
* calendar to presets or closes the picker. Calendar days end at exclusive next UTC midnight.
|
|
3833
3498
|
*/
|
|
3834
|
-
function DateTimeRangePicker({ value, onChange, liveOption, comparison, className, placeholder = "Select date range…", label = "Date range", labelPlacement = "inline", maxRangeDays,
|
|
3499
|
+
function DateTimeRangePicker({ value, onChange, liveOption, comparison, isDefault, onReset, calendarFooter, className, placeholder = "Select date range…", label = "Date range", labelPlacement = "inline", maxRangeDays, policy, presets: configuredPresets, disabled }) {
|
|
3835
3500
|
const id = useId();
|
|
3836
3501
|
const dateFormatting = useDateFormatting();
|
|
3837
3502
|
const trigger = useRef(null);
|
|
@@ -3843,7 +3508,7 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
3843
3508
|
const [selectionRevision, setSelectionRevision] = useState(0);
|
|
3844
3509
|
useLayoutEffect(() => {
|
|
3845
3510
|
if (selectionRevision) {
|
|
3846
|
-
input.current?.focus();
|
|
3511
|
+
input.current?.focus({ preventScroll: true });
|
|
3847
3512
|
input.current?.select();
|
|
3848
3513
|
}
|
|
3849
3514
|
}, [selectionRevision]);
|
|
@@ -3868,7 +3533,7 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
3868
3533
|
function rangeError(range) {
|
|
3869
3534
|
try {
|
|
3870
3535
|
parseDateTimeRange(range, { maxRangeDays });
|
|
3871
|
-
|
|
3536
|
+
policy?.resolve(range);
|
|
3872
3537
|
return "";
|
|
3873
3538
|
} catch (error) {
|
|
3874
3539
|
return error instanceof Error ? error.message : "Invalid date range.";
|
|
@@ -3910,7 +3575,7 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
3910
3575
|
const bounds = trigger.current?.getBoundingClientRect();
|
|
3911
3576
|
dispatch({
|
|
3912
3577
|
type: "open",
|
|
3913
|
-
draft: resolvedLabel(value,
|
|
3578
|
+
draft: resolvedLabel(value, policy, dateFormatting),
|
|
3914
3579
|
helpSide: bounds && bounds.left >= 280 ? "left" : bounds && window.innerWidth - bounds.right >= 280 ? "right" : "inline"
|
|
3915
3580
|
});
|
|
3916
3581
|
selectInput();
|
|
@@ -3953,9 +3618,11 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
3953
3618
|
});
|
|
3954
3619
|
}
|
|
3955
3620
|
function choose(index) {
|
|
3956
|
-
if (index === comparisonIndex
|
|
3957
|
-
|
|
3958
|
-
|
|
3621
|
+
if (index === comparisonIndex) {
|
|
3622
|
+
if (comparison?.range) {
|
|
3623
|
+
comparison.onChange(!comparison.enabled);
|
|
3624
|
+
close(true);
|
|
3625
|
+
}
|
|
3959
3626
|
return;
|
|
3960
3627
|
}
|
|
3961
3628
|
const preset = presets[index];
|
|
@@ -3967,7 +3634,7 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
3967
3634
|
let nextCalendar = null;
|
|
3968
3635
|
try {
|
|
3969
3636
|
if (value) {
|
|
3970
|
-
const resolved =
|
|
3637
|
+
const resolved = policy ? policy.resolve(value) : resolveDateTimeRange(value);
|
|
3971
3638
|
const from = resolved.from ? new Date(resolved.from) : null;
|
|
3972
3639
|
const to = /* @__PURE__ */ new Date(resolved.to.getTime() - 1);
|
|
3973
3640
|
from?.setUTCHours(0, 0, 0, 0);
|
|
@@ -4023,11 +3690,8 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4023
3690
|
}
|
|
4024
3691
|
function navigateOption(index) {
|
|
4025
3692
|
highlightOption(index);
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
input.current?.focus();
|
|
4029
|
-
input.current?.select();
|
|
4030
|
-
}
|
|
3693
|
+
input.current?.focus();
|
|
3694
|
+
input.current?.select();
|
|
4031
3695
|
}
|
|
4032
3696
|
return /* @__PURE__ */ jsxs(PickerField, {
|
|
4033
3697
|
label,
|
|
@@ -4036,27 +3700,30 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4036
3700
|
ref: trigger,
|
|
4037
3701
|
className: classNames("altertable-datetime-input", className),
|
|
4038
3702
|
"data-disabled": disabled || void 0,
|
|
3703
|
+
"data-invalid": !!error || void 0,
|
|
4039
3704
|
"data-atbl-focus": "group",
|
|
4040
3705
|
"data-atbl-internal-surface": "field",
|
|
4041
3706
|
onClick: () => {
|
|
4042
|
-
if (!disabled) openPresets();
|
|
3707
|
+
if (!disabled && !open) openPresets();
|
|
4043
3708
|
},
|
|
4044
3709
|
children: [
|
|
4045
3710
|
/* @__PURE__ */ jsx("span", {
|
|
4046
3711
|
className: "altertable-datetime-shortcut",
|
|
4047
3712
|
"aria-hidden": "true",
|
|
4048
|
-
"
|
|
4049
|
-
children: /* @__PURE__ */ jsx("span", { children: selected?.shortcut ?? "–" })
|
|
3713
|
+
children: /* @__PURE__ */ jsx("span", { children: shortcutLabel(selected?.shortcut) })
|
|
4050
3714
|
}),
|
|
4051
3715
|
/* @__PURE__ */ jsx("input", {
|
|
4052
3716
|
ref: input,
|
|
3717
|
+
onPointerDown: () => {
|
|
3718
|
+
pending.current = null;
|
|
3719
|
+
},
|
|
4053
3720
|
role: "combobox",
|
|
4054
3721
|
"aria-label": label,
|
|
4055
3722
|
"aria-expanded": open,
|
|
4056
3723
|
"aria-controls": open ? `${id}-popup` : void 0,
|
|
4057
3724
|
"aria-haspopup": mode === "calendar" ? "dialog" : "listbox",
|
|
4058
3725
|
"aria-autocomplete": mode === "presets" ? "list" : "none",
|
|
4059
|
-
"aria-activedescendant": open && mode !== "calendar" && highlight >= 0
|
|
3726
|
+
"aria-activedescendant": open && mode !== "calendar" && highlight >= 0 ? `${id}-option-${highlight}` : void 0,
|
|
4060
3727
|
"aria-invalid": !!error,
|
|
4061
3728
|
"aria-describedby": error ? `${id}-error` : void 0,
|
|
4062
3729
|
disabled,
|
|
@@ -4075,6 +3742,7 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4075
3742
|
});
|
|
4076
3743
|
},
|
|
4077
3744
|
onKeyDown: (event) => {
|
|
3745
|
+
if (!event.key.startsWith("Arrow") && event.key !== "Enter") pending.current = null;
|
|
4078
3746
|
if (event.key.startsWith("Arrow") && (event.shiftKey || event.ctrlKey || event.altKey || event.metaKey)) {
|
|
4079
3747
|
pending.current = null;
|
|
4080
3748
|
return;
|
|
@@ -4098,12 +3766,6 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4098
3766
|
return;
|
|
4099
3767
|
}
|
|
4100
3768
|
if (event.key === "Tab") {
|
|
4101
|
-
const checkbox = popup.current?.querySelector("button[role=\"checkbox\"]:not(:disabled)");
|
|
4102
|
-
if (!event.shiftKey && comparison && checkbox) {
|
|
4103
|
-
event.preventDefault();
|
|
4104
|
-
checkbox.focus();
|
|
4105
|
-
return;
|
|
4106
|
-
}
|
|
4107
3769
|
close();
|
|
4108
3770
|
return;
|
|
4109
3771
|
}
|
|
@@ -4173,6 +3835,27 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4173
3835
|
}
|
|
4174
3836
|
}
|
|
4175
3837
|
}),
|
|
3838
|
+
!disabled && onReset && !isDefault && value && /* @__PURE__ */ jsx("button", {
|
|
3839
|
+
type: "button",
|
|
3840
|
+
className: "altertable-datetime-reset",
|
|
3841
|
+
"data-atbl-focus": "ring",
|
|
3842
|
+
"data-atbl-control": "action",
|
|
3843
|
+
"aria-label": "Reset date range",
|
|
3844
|
+
onClick: (event) => {
|
|
3845
|
+
event.stopPropagation();
|
|
3846
|
+
onReset();
|
|
3847
|
+
},
|
|
3848
|
+
children: /* @__PURE__ */ jsx(AppIcon, {
|
|
3849
|
+
name: "reset",
|
|
3850
|
+
size: 14
|
|
3851
|
+
})
|
|
3852
|
+
}),
|
|
3853
|
+
error && /* @__PURE__ */ jsx("span", {
|
|
3854
|
+
id: `${id}-error`,
|
|
3855
|
+
role: "alert",
|
|
3856
|
+
className: "altertable-sr-only",
|
|
3857
|
+
children: error
|
|
3858
|
+
}),
|
|
4176
3859
|
/* @__PURE__ */ jsx(AppIcon, {
|
|
4177
3860
|
name: "disclosure",
|
|
4178
3861
|
size: 14
|
|
@@ -4188,7 +3871,7 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4188
3871
|
placement: "bottom start",
|
|
4189
3872
|
shouldCloseOnInteractOutside: (element) => !trigger.current?.contains(element),
|
|
4190
3873
|
className: "altertable-datetime-popover",
|
|
4191
|
-
children: /* @__PURE__ */
|
|
3874
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
4192
3875
|
ref: popup,
|
|
4193
3876
|
onKeyDownCapture: (event) => {
|
|
4194
3877
|
if (event.key === "Escape") {
|
|
@@ -4202,178 +3885,122 @@ function DateTimeRangePicker({ value, onChange, liveOption, comparison, classNam
|
|
|
4202
3885
|
input.current?.focus();
|
|
4203
3886
|
}
|
|
4204
3887
|
},
|
|
4205
|
-
children:
|
|
3888
|
+
children: mode === "calendar" ? /* @__PURE__ */ jsxs("div", {
|
|
4206
3889
|
id: `${id}-popup`,
|
|
4207
3890
|
role: "dialog",
|
|
4208
3891
|
"aria-label": `${label} calendar`,
|
|
4209
3892
|
className: "altertable-datetime-calendar-panel",
|
|
4210
|
-
children: [
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
3893
|
+
children: [
|
|
3894
|
+
/* @__PURE__ */ jsx(DateTimeRangeCalendar, {
|
|
3895
|
+
value,
|
|
3896
|
+
maxRangeDays: Math.min(maxRangeDays ?? Infinity, policy?.bounds().maxRangeDays ?? Infinity),
|
|
3897
|
+
policy,
|
|
3898
|
+
onChange: (calendar) => dispatch({
|
|
3899
|
+
type: "update",
|
|
3900
|
+
value: { calendar }
|
|
3901
|
+
}),
|
|
3902
|
+
onCompleteChange: (complete) => dispatch({
|
|
3903
|
+
type: "update",
|
|
3904
|
+
value: { complete }
|
|
3905
|
+
})
|
|
4217
3906
|
}),
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
if (calendar) commit(calendar);
|
|
4232
|
-
},
|
|
4233
|
-
children: "Apply"
|
|
4234
|
-
})]
|
|
4235
|
-
})]
|
|
4236
|
-
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
4237
|
-
/* @__PURE__ */ jsx("div", {
|
|
4238
|
-
id: `${id}-popup`,
|
|
4239
|
-
role: "listbox",
|
|
4240
|
-
"aria-label": "Date range presets",
|
|
4241
|
-
className: "altertable-datetime-presets",
|
|
4242
|
-
children: [
|
|
4243
|
-
...presets.map((preset) => preset.label),
|
|
4244
|
-
"Select from calendar…",
|
|
4245
|
-
"More"
|
|
4246
|
-
].map((text, index) => {
|
|
4247
|
-
const preset = presets[index];
|
|
4248
|
-
return /* @__PURE__ */ jsxs("button", {
|
|
4249
|
-
"data-atbl-focus": "inset",
|
|
4250
|
-
"data-atbl-control": "action",
|
|
4251
|
-
type: "button",
|
|
4252
|
-
role: "option",
|
|
4253
|
-
tabIndex: -1,
|
|
4254
|
-
id: `${id}-option-${index}`,
|
|
4255
|
-
"aria-selected": !!preset && preset === selected,
|
|
4256
|
-
"data-highlighted": highlight === index || void 0,
|
|
4257
|
-
"data-divider": index === calendarIndex || preset?.shortcut === "today" || index === 1 && !!liveOption || void 0,
|
|
4258
|
-
onMouseDown: (event) => event.preventDefault(),
|
|
4259
|
-
onMouseMove: () => {
|
|
4260
|
-
dispatch({
|
|
4261
|
-
type: "update",
|
|
4262
|
-
value: { mode: "presets" }
|
|
4263
|
-
});
|
|
4264
|
-
highlightOption(index);
|
|
3907
|
+
/* @__PURE__ */ jsxs("footer", {
|
|
3908
|
+
className: "altertable-datetime-actions",
|
|
3909
|
+
children: [/* @__PURE__ */ jsxs(Button$1, {
|
|
3910
|
+
onClick: back,
|
|
3911
|
+
children: [/* @__PURE__ */ jsx(AppIcon, {
|
|
3912
|
+
name: "previous",
|
|
3913
|
+
size: 16
|
|
3914
|
+
}), " Presets"]
|
|
3915
|
+
}), /* @__PURE__ */ jsx(Button$1, {
|
|
3916
|
+
variant: "primary",
|
|
3917
|
+
disabled: !complete || !calendar || !!rangeError(calendar),
|
|
3918
|
+
onClick: () => {
|
|
3919
|
+
if (calendar) commit(calendar);
|
|
4265
3920
|
},
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
]
|
|
4287
|
-
}, index);
|
|
4288
|
-
})
|
|
4289
|
-
}),
|
|
4290
|
-
error && /* @__PURE__ */ jsx("p", {
|
|
4291
|
-
role: "alert",
|
|
4292
|
-
id: `${id}-error`,
|
|
4293
|
-
className: "altertable-datetime-error",
|
|
4294
|
-
children: error
|
|
4295
|
-
}),
|
|
4296
|
-
(help || !!error) && /* @__PURE__ */ jsxs("aside", {
|
|
4297
|
-
"aria-label": "Date range syntax help",
|
|
4298
|
-
className: "altertable-datetime-help",
|
|
4299
|
-
"data-side": helpSide,
|
|
4300
|
-
onMouseEnter: () => clearTimeout(helpTimer.current),
|
|
4301
|
-
onMouseLeave: () => {
|
|
4302
|
-
if (!error && highlight !== moreIndex) helpTimer.current = setTimeout(() => dispatch({
|
|
4303
|
-
type: "update",
|
|
4304
|
-
value: { help: false }
|
|
4305
|
-
}), 300);
|
|
4306
|
-
},
|
|
4307
|
-
children: [/* @__PURE__ */ jsx("strong", { children: "Date range syntax" }), Object.entries(examples).map(([group, items]) => /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children: group }), /* @__PURE__ */ jsx("div", { children: items.filter((example) => {
|
|
4308
|
-
const parsed = parseDateTimeRangeInput(example);
|
|
4309
|
-
return parsed.ok && !rangeError(parsed.range);
|
|
4310
|
-
}).map((example) => /* @__PURE__ */ jsx("button", {
|
|
3921
|
+
children: "Apply"
|
|
3922
|
+
})]
|
|
3923
|
+
}),
|
|
3924
|
+
calendarFooter
|
|
3925
|
+
]
|
|
3926
|
+
}) : /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx("div", {
|
|
3927
|
+
id: `${id}-popup`,
|
|
3928
|
+
role: "listbox",
|
|
3929
|
+
"aria-label": "Date range presets",
|
|
3930
|
+
"aria-multiselectable": comparison ? true : void 0,
|
|
3931
|
+
className: "altertable-datetime-presets",
|
|
3932
|
+
children: [
|
|
3933
|
+
...presets.map((preset) => preset.label),
|
|
3934
|
+
"Select from calendar…",
|
|
3935
|
+
"More",
|
|
3936
|
+
...comparison ? ["Compare with previous period"] : []
|
|
3937
|
+
].map((text, index) => {
|
|
3938
|
+
const preset = presets[index];
|
|
3939
|
+
const isComparison = index === comparisonIndex;
|
|
3940
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
4311
3941
|
"data-atbl-focus": "inset",
|
|
4312
3942
|
"data-atbl-control": "action",
|
|
4313
3943
|
type: "button",
|
|
3944
|
+
role: "option",
|
|
3945
|
+
tabIndex: -1,
|
|
3946
|
+
id: `${id}-option-${index}`,
|
|
3947
|
+
"aria-selected": isComparison ? comparison?.enabled : !!preset && preset === selected,
|
|
3948
|
+
disabled: isComparison && !comparison?.range,
|
|
3949
|
+
"data-highlighted": highlight === index || void 0,
|
|
3950
|
+
"data-divider": index === calendarIndex || isComparison || preset?.shortcut === "today" || index === 1 && !!liveOption || void 0,
|
|
4314
3951
|
onMouseDown: (event) => event.preventDefault(),
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
3952
|
+
onMouseMove: () => {
|
|
3953
|
+
dispatch({
|
|
3954
|
+
type: "update",
|
|
3955
|
+
value: { mode: "presets" }
|
|
3956
|
+
});
|
|
3957
|
+
highlightOption(index);
|
|
3958
|
+
},
|
|
3959
|
+
onClick: () => choose(index),
|
|
3960
|
+
children: [
|
|
3961
|
+
/* @__PURE__ */ jsx("span", {
|
|
3962
|
+
className: "altertable-datetime-shortcut",
|
|
3963
|
+
"aria-hidden": "true",
|
|
3964
|
+
children: isComparison ? /* @__PURE__ */ jsx("span", { children: "vs" }) : preset ? /* @__PURE__ */ jsx("span", { children: shortcutLabel(preset.shortcut) }) : /* @__PURE__ */ jsx(AppIcon, {
|
|
3965
|
+
name: index === calendarIndex ? "calendar" : "moreActions",
|
|
3966
|
+
size: 14
|
|
3967
|
+
})
|
|
3968
|
+
}),
|
|
3969
|
+
/* @__PURE__ */ jsxs("span", { children: [text, isComparison && /* @__PURE__ */ jsx("small", { children: comparison?.range ? dateTimeRangeLabel(comparison.range, dateFormatting) : "Outside available source coverage" })] }),
|
|
3970
|
+
/* @__PURE__ */ jsx("span", {
|
|
3971
|
+
className: "altertable-datetime-check",
|
|
3972
|
+
"aria-hidden": "true",
|
|
3973
|
+
children: isComparison && comparison?.enabled || preset && preset === selected ? /* @__PURE__ */ jsx(AppIcon, {
|
|
3974
|
+
name: "check",
|
|
3975
|
+
size: 14
|
|
3976
|
+
}) : null
|
|
3977
|
+
})
|
|
3978
|
+
]
|
|
3979
|
+
}, index);
|
|
4318
3980
|
})
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
3981
|
+
}), (help || !!error) && /* @__PURE__ */ jsxs("aside", {
|
|
3982
|
+
"aria-label": "Date range syntax help",
|
|
3983
|
+
className: "altertable-datetime-help",
|
|
3984
|
+
"data-side": helpSide,
|
|
3985
|
+
onMouseEnter: () => clearTimeout(helpTimer.current),
|
|
3986
|
+
onMouseLeave: () => {
|
|
3987
|
+
if (!error && highlight !== moreIndex) helpTimer.current = setTimeout(() => dispatch({
|
|
3988
|
+
type: "update",
|
|
3989
|
+
value: { help: false }
|
|
3990
|
+
}), 300);
|
|
3991
|
+
},
|
|
3992
|
+
children: [/* @__PURE__ */ jsx("strong", { children: "Date range syntax" }), Object.entries(examples).map(([group, items]) => /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children: group }), /* @__PURE__ */ jsx("div", { children: items.filter((example) => {
|
|
3993
|
+
const parsed = parseDateTimeRangeInput(example);
|
|
3994
|
+
return parsed.ok && !rangeError(parsed.range);
|
|
3995
|
+
}).map((example) => /* @__PURE__ */ jsx("button", {
|
|
4323
3996
|
"data-atbl-focus": "inset",
|
|
4324
3997
|
"data-atbl-control": "action",
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
value: { mode: "presets" }
|
|
4332
|
-
});
|
|
4333
|
-
highlightOption(comparisonIndex);
|
|
4334
|
-
},
|
|
4335
|
-
onFocus: () => highlightOption(comparisonIndex),
|
|
4336
|
-
onKeyDown: (event) => {
|
|
4337
|
-
if ([
|
|
4338
|
-
"ArrowUp",
|
|
4339
|
-
"ArrowDown",
|
|
4340
|
-
"Home",
|
|
4341
|
-
"End"
|
|
4342
|
-
].includes(event.key)) {
|
|
4343
|
-
event.preventDefault();
|
|
4344
|
-
navigateOption(event.key === "ArrowUp" ? moreIndex : event.key === "End" ? comparisonIndex : 0);
|
|
4345
|
-
}
|
|
4346
|
-
},
|
|
4347
|
-
"aria-checked": comparison.enabled,
|
|
4348
|
-
"aria-label": "Compare with previous period",
|
|
4349
|
-
"aria-describedby": `${id}-comparison-description`,
|
|
4350
|
-
disabled: !comparison.range,
|
|
4351
|
-
"data-divider": true,
|
|
4352
|
-
onClick: () => {
|
|
4353
|
-
comparison.onChange(!comparison.enabled);
|
|
4354
|
-
close(true);
|
|
4355
|
-
},
|
|
4356
|
-
children: [
|
|
4357
|
-
/* @__PURE__ */ jsx("span", {
|
|
4358
|
-
className: "altertable-datetime-shortcut",
|
|
4359
|
-
"aria-hidden": "true",
|
|
4360
|
-
children: "vs"
|
|
4361
|
-
}),
|
|
4362
|
-
/* @__PURE__ */ jsxs("span", { children: ["Compare with previous period", /* @__PURE__ */ jsx("small", {
|
|
4363
|
-
id: `${id}-comparison-description`,
|
|
4364
|
-
children: comparison.range ? dateTimeRangeLabel(comparison.range, dateFormatting) : "Outside available source coverage"
|
|
4365
|
-
})] }),
|
|
4366
|
-
/* @__PURE__ */ jsx("span", {
|
|
4367
|
-
className: "altertable-datetime-check",
|
|
4368
|
-
"aria-hidden": "true",
|
|
4369
|
-
children: comparison.enabled ? /* @__PURE__ */ jsx(AppIcon, {
|
|
4370
|
-
name: "check",
|
|
4371
|
-
size: 14
|
|
4372
|
-
}) : null
|
|
4373
|
-
})
|
|
4374
|
-
]
|
|
4375
|
-
})
|
|
4376
|
-
})]
|
|
3998
|
+
type: "button",
|
|
3999
|
+
onMouseDown: (event) => event.preventDefault(),
|
|
4000
|
+
onClick: () => submit(example),
|
|
4001
|
+
children: example
|
|
4002
|
+
}, example)) })] }, group))]
|
|
4003
|
+
})] })
|
|
4377
4004
|
})
|
|
4378
4005
|
})]
|
|
4379
4006
|
});
|
|
@@ -4964,6 +4591,18 @@ function SearchTypeahead({ items, busy, inputProps, ...props }) {
|
|
|
4964
4591
|
})] });
|
|
4965
4592
|
}
|
|
4966
4593
|
//#endregion
|
|
4594
|
+
//#region src/ui/ControlBar.tsx
|
|
4595
|
+
/** User-controlled inputs below the page header. */
|
|
4596
|
+
function ControlBar({ children, className, role = "group", "aria-label": ariaLabel = "View controls", ...props }) {
|
|
4597
|
+
return /* @__PURE__ */ jsx("div", {
|
|
4598
|
+
...props,
|
|
4599
|
+
className: classNames("altertable-control-bar", className),
|
|
4600
|
+
role,
|
|
4601
|
+
"aria-label": ariaLabel,
|
|
4602
|
+
children
|
|
4603
|
+
});
|
|
4604
|
+
}
|
|
4605
|
+
//#endregion
|
|
4967
4606
|
//#region src/ui/FilterActions.tsx
|
|
4968
4607
|
function FilterActions({ onClear, onApply, onCancel }) {
|
|
4969
4608
|
return /* @__PURE__ */ jsxs("fieldset", {
|
|
@@ -4994,18 +4633,6 @@ function FilterActions({ onClear, onApply, onCancel }) {
|
|
|
4994
4633
|
});
|
|
4995
4634
|
}
|
|
4996
4635
|
//#endregion
|
|
4997
|
-
//#region src/ui/VariableBar.tsx
|
|
4998
|
-
/** User-controlled inputs below the page header. */
|
|
4999
|
-
function VariableBar({ children, className, role = "group", "aria-label": ariaLabel = "View variables", ...props }) {
|
|
5000
|
-
return /* @__PURE__ */ jsx("div", {
|
|
5001
|
-
...props,
|
|
5002
|
-
className: classNames("altertable-variable-bar", className),
|
|
5003
|
-
role,
|
|
5004
|
-
"aria-label": ariaLabel,
|
|
5005
|
-
children
|
|
5006
|
-
});
|
|
5007
|
-
}
|
|
5008
|
-
//#endregion
|
|
5009
4636
|
//#region src/view-control-bar.tsx
|
|
5010
4637
|
function ViewControlBar({ primaryFilters, activeFilters, allFilters, activeFilterCount, displayOptions, changedDisplayOptionCount, onClear }) {
|
|
5011
4638
|
const [filtersOpen, setFiltersOpen] = useState(false);
|
|
@@ -5050,7 +4677,7 @@ function ViewControlBar({ primaryFilters, activeFilters, allFilters, activeFilte
|
|
|
5050
4677
|
requestAnimationFrame(focusFiltersButton);
|
|
5051
4678
|
}
|
|
5052
4679
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
5053
|
-
/* @__PURE__ */ jsxs(
|
|
4680
|
+
/* @__PURE__ */ jsxs(ControlBar, {
|
|
5054
4681
|
ref: toolbarRef,
|
|
5055
4682
|
className: "altertable-primary-controls",
|
|
5056
4683
|
"aria-label": "View controls",
|
|
@@ -5153,7 +4780,7 @@ function ViewControlBar({ primaryFilters, activeFilters, allFilters, activeFilte
|
|
|
5153
4780
|
children: "Done"
|
|
5154
4781
|
})]
|
|
5155
4782
|
}),
|
|
5156
|
-
children: /* @__PURE__ */ jsx(
|
|
4783
|
+
children: /* @__PURE__ */ jsx(ControlBar, {
|
|
5157
4784
|
"aria-label": "All filters",
|
|
5158
4785
|
className: "altertable-sheet-filters",
|
|
5159
4786
|
children: allFilters
|
|
@@ -5233,15 +4860,15 @@ function DisplayOptionsPopover({ children, changedCount }) {
|
|
|
5233
4860
|
}
|
|
5234
4861
|
//#endregion
|
|
5235
4862
|
//#region src/view-controls.tsx
|
|
5236
|
-
/**
|
|
5237
|
-
function
|
|
5238
|
-
const
|
|
4863
|
+
/** A view's URL-backed filter values, resolved for its operation input. */
|
|
4864
|
+
function useFilterValues(definitions) {
|
|
4865
|
+
const filters = useAppFilters(definitions);
|
|
5239
4866
|
const [referenceRevision, refreshReference] = useReducer((value) => value + 1, 0);
|
|
5240
|
-
const selectionKey = JSON.stringify(
|
|
4867
|
+
const selectionKey = JSON.stringify(filters.values);
|
|
5241
4868
|
const referenceKey = JSON.stringify([
|
|
5242
4869
|
selectionKey,
|
|
5243
4870
|
referenceRevision,
|
|
5244
|
-
|
|
4871
|
+
filters.calendarRevision
|
|
5245
4872
|
]);
|
|
5246
4873
|
const [snapshot, setSnapshot] = useState(() => ({
|
|
5247
4874
|
key: referenceKey,
|
|
@@ -5255,25 +4882,37 @@ function useViewVariables(definitions, clientScope, loadFacet) {
|
|
|
5255
4882
|
reference
|
|
5256
4883
|
});
|
|
5257
4884
|
}
|
|
5258
|
-
const
|
|
5259
|
-
const resolved =
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
4885
|
+
const hasDateFilter = Object.values(definitions).some((filter) => filter.kind === "dateTimeRange");
|
|
4886
|
+
const resolved = resolveFilterInput(definitions, filters.values, reference);
|
|
4887
|
+
return {
|
|
4888
|
+
...filters,
|
|
4889
|
+
resolved,
|
|
4890
|
+
/** Start a new reference time for relative ranges; false when none needs one. */
|
|
4891
|
+
refreshTime() {
|
|
4892
|
+
if (!hasDateFilter) return false;
|
|
4893
|
+
refreshReference();
|
|
4894
|
+
return true;
|
|
4895
|
+
}
|
|
4896
|
+
};
|
|
4897
|
+
}
|
|
4898
|
+
/** Controls for every declared filter. URL values resolve before facets; a facet's
|
|
4899
|
+
* options follow its operation's filters, which key its cached, bounded loading. */
|
|
4900
|
+
function useFilterControls(definitions, operationFilters, clientScope, loadFacet) {
|
|
4901
|
+
const filters = useFilterValues(definitions);
|
|
4902
|
+
const resolved = filters.resolved;
|
|
5265
4903
|
const facets = Object.entries(definitions).filter((entry) => entry[1].kind === "dimension" && entry[1].optionsSource === "query" && facetSource in entry[1]);
|
|
5266
4904
|
const sourceDimensions = Object.entries(definitions).filter((entry) => entry[1].kind === "dimension" && dimensionSource in entry[1]);
|
|
5267
4905
|
const optionSources = [...facets.map(([name, filter]) => {
|
|
5268
|
-
const
|
|
4906
|
+
const operation = filter[facetSource].operation;
|
|
4907
|
+
const values = {
|
|
4908
|
+
...resolved,
|
|
4909
|
+
[name]: { kind: "all" }
|
|
4910
|
+
};
|
|
5269
4911
|
return {
|
|
5270
4912
|
name,
|
|
5271
4913
|
filter,
|
|
5272
|
-
operation
|
|
5273
|
-
input:
|
|
5274
|
-
...resolved,
|
|
5275
|
-
[name]: { kind: "all" }
|
|
5276
|
-
})
|
|
4914
|
+
operation,
|
|
4915
|
+
input: Object.fromEntries(Object.keys(operationFilters[operation] ?? {}).map((key) => [key, values[key]]))
|
|
5277
4916
|
};
|
|
5278
4917
|
}), ...sourceDimensions.map(([name, filter]) => ({
|
|
5279
4918
|
name,
|
|
@@ -5351,8 +4990,8 @@ function useViewVariables(definitions, clientScope, loadFacet) {
|
|
|
5351
4990
|
const searchControls = [];
|
|
5352
4991
|
for (const name of Object.keys(definitions)) {
|
|
5353
4992
|
const definition = definitions[name];
|
|
5354
|
-
const value =
|
|
5355
|
-
const
|
|
4993
|
+
const value = filters.values[name];
|
|
4994
|
+
const filter = definition;
|
|
5356
4995
|
const widgetControl = definition.presentation?.control === "widget";
|
|
5357
4996
|
const group = definition.presentation?.group ?? "scope";
|
|
5358
4997
|
const prominence = definition.presentation?.prominence ?? "primary";
|
|
@@ -5364,65 +5003,55 @@ function useViewVariables(definitions, clientScope, loadFacet) {
|
|
|
5364
5003
|
primary: searchControls.length === 0,
|
|
5365
5004
|
value,
|
|
5366
5005
|
resetValue: definition.defaultValue,
|
|
5367
|
-
onChange: (next) =>
|
|
5006
|
+
onChange: (next) => filters.set(name, next)
|
|
5368
5007
|
}, name));
|
|
5369
5008
|
continue;
|
|
5370
5009
|
}
|
|
5371
|
-
if (group === "scope" &&
|
|
5372
|
-
clearedFilters[name] =
|
|
5373
|
-
if (!
|
|
5010
|
+
if (group === "scope" && filter.clearValue !== void 0) {
|
|
5011
|
+
clearedFilters[name] = filter.clearValue;
|
|
5012
|
+
if (!filter.same(value, filter.clearValue)) hasActiveFilters = true;
|
|
5374
5013
|
}
|
|
5375
|
-
const baseline = group === "display" ?
|
|
5376
|
-
const active = !
|
|
5014
|
+
const baseline = group === "display" ? filter.defaultValue : filter.clearValue ?? filter.defaultValue;
|
|
5015
|
+
const active = !filter.same(value, baseline);
|
|
5377
5016
|
function renderControl(labelPlacement, onClear) {
|
|
5378
5017
|
function setControlValue(next) {
|
|
5379
|
-
|
|
5380
|
-
if (onClear &&
|
|
5018
|
+
filters.set(name, next);
|
|
5019
|
+
if (onClear && filter.same(next, baseline)) onClear();
|
|
5381
5020
|
}
|
|
5382
5021
|
let control = null;
|
|
5383
|
-
if (definition.kind === "
|
|
5384
|
-
labelPlacement: labelPlacement === "inline" ? void 0 : labelPlacement,
|
|
5385
|
-
...dateRangeControl(definition, value, (next) => setControlValue(next))
|
|
5386
|
-
}, name);
|
|
5387
|
-
else if (definition.kind === "dateTimeRangeComparison") {
|
|
5022
|
+
if (definition.kind === "dateTimeRange") {
|
|
5388
5023
|
const selection = value;
|
|
5024
|
+
function select(next) {
|
|
5025
|
+
setControlValue(next);
|
|
5026
|
+
}
|
|
5389
5027
|
control = /* @__PURE__ */ jsx(DateTimeRangePicker, {
|
|
5390
5028
|
label: definition.label,
|
|
5391
5029
|
labelPlacement,
|
|
5392
5030
|
value: selection.range,
|
|
5393
5031
|
maxRangeDays: definition.maxRangeDays,
|
|
5394
5032
|
presets: definition.presets,
|
|
5395
|
-
|
|
5396
|
-
|
|
5033
|
+
policy: definition.policy,
|
|
5034
|
+
isDefault: !active,
|
|
5035
|
+
onReset: () => setControlValue(baseline),
|
|
5036
|
+
...definition.comparable && { comparison: {
|
|
5397
5037
|
enabled: selection.comparison === "previous",
|
|
5398
5038
|
range: definition.previous(selection),
|
|
5399
|
-
onChange: (enabled) =>
|
|
5039
|
+
onChange: (enabled) => select({
|
|
5400
5040
|
range: selection.range,
|
|
5401
5041
|
...enabled ? { comparison: "previous" } : {}
|
|
5402
5042
|
})
|
|
5403
|
-
},
|
|
5404
|
-
onChange: (range) => {
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
});
|
|
5409
|
-
}
|
|
5043
|
+
} },
|
|
5044
|
+
onChange: (range) => select({
|
|
5045
|
+
range,
|
|
5046
|
+
...selection.comparison && definition.previous({ range }) ? { comparison: "previous" } : {}
|
|
5047
|
+
})
|
|
5410
5048
|
}, name);
|
|
5411
|
-
} else if (definition.kind === "
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
value,
|
|
5415
|
-
maxRangeDays: definition.maxRangeDays,
|
|
5416
|
-
presets: definition.presets,
|
|
5417
|
-
contract: definition.contract,
|
|
5418
|
-
onChange: (next) => setControlValue(next)
|
|
5419
|
-
}, name);
|
|
5420
|
-
else if (definition.kind === "dimension") {
|
|
5421
|
-
const filter = definition;
|
|
5422
|
-
const facet = dimensionState(name, filter);
|
|
5049
|
+
} else if (definition.kind === "dimension") {
|
|
5050
|
+
const dimension = definition;
|
|
5051
|
+
const facet = dimensionState(name, dimension);
|
|
5423
5052
|
control = /* @__PURE__ */ jsx(DimensionPicker, {
|
|
5424
5053
|
labelPlacement,
|
|
5425
|
-
filter,
|
|
5054
|
+
filter: dimension,
|
|
5426
5055
|
value,
|
|
5427
5056
|
options: facet.options,
|
|
5428
5057
|
loading: facet.loading,
|
|
@@ -5491,9 +5120,9 @@ function useViewVariables(definitions, clientScope, loadFacet) {
|
|
|
5491
5120
|
if (active) activeFilters.push({
|
|
5492
5121
|
id: name,
|
|
5493
5122
|
renderToolbarControl: !widgetControl && prominence === "primary" ? void 0 : (onClear) => renderControl("inline", onClear),
|
|
5494
|
-
onRemove: () =>
|
|
5123
|
+
onRemove: () => filters.set(name, baseline),
|
|
5495
5124
|
label: definition.label ?? name,
|
|
5496
|
-
summary: definition.kind === "dimension" ? definition.describe(value, dimensionState(name, definition).options) :
|
|
5125
|
+
summary: definition.kind === "dimension" ? definition.describe(value, dimensionState(name, definition).options) : filter.describe?.(value) ?? String(value)
|
|
5497
5126
|
});
|
|
5498
5127
|
if (!widgetControl && prominence === "primary") primaryFilters.push(renderControl("inline"));
|
|
5499
5128
|
if (active) activeFilterCount++;
|
|
@@ -5502,13 +5131,6 @@ function useViewVariables(definitions, clientScope, loadFacet) {
|
|
|
5502
5131
|
const orderedDisplayOptions = [...displayOptions.primary, ...displayOptions.secondary];
|
|
5503
5132
|
const hasControls = allFilters.length > 0 || orderedDisplayOptions.length > 0;
|
|
5504
5133
|
return {
|
|
5505
|
-
refreshTime() {
|
|
5506
|
-
if (!hasComparison) return false;
|
|
5507
|
-
refreshReference();
|
|
5508
|
-
return true;
|
|
5509
|
-
},
|
|
5510
|
-
...variables,
|
|
5511
|
-
resolved,
|
|
5512
5134
|
searchControls: searchControls.length ? searchControls : null,
|
|
5513
5135
|
filterControls: hasControls || hasActiveFilters ? /* @__PURE__ */ jsx(ViewControlBar, {
|
|
5514
5136
|
primaryFilters,
|
|
@@ -5517,7 +5139,7 @@ function useViewVariables(definitions, clientScope, loadFacet) {
|
|
|
5517
5139
|
activeFilterCount,
|
|
5518
5140
|
displayOptions: orderedDisplayOptions,
|
|
5519
5141
|
changedDisplayOptionCount,
|
|
5520
|
-
onClear: hasActiveFilters ? () =>
|
|
5142
|
+
onClear: hasActiveFilters ? () => filters.update(clearedFilters) : void 0
|
|
5521
5143
|
}) : null
|
|
5522
5144
|
};
|
|
5523
5145
|
}
|
|
@@ -5547,20 +5169,82 @@ var DeclaredView = class {
|
|
|
5547
5169
|
if (view.#definition === void 0) throw new Error("Missing view definition.");
|
|
5548
5170
|
return view.#definition;
|
|
5549
5171
|
}
|
|
5550
|
-
static useResult(view) {
|
|
5551
|
-
return view.#useResult();
|
|
5172
|
+
static useResult(view, request) {
|
|
5173
|
+
return view.#useResult(request);
|
|
5552
5174
|
}
|
|
5553
5175
|
};
|
|
5554
|
-
function useDeclaredResult(view) {
|
|
5555
|
-
return DeclaredView.useResult(view);
|
|
5176
|
+
function useDeclaredResult(view, request = { enabled: true }) {
|
|
5177
|
+
return DeclaredView.useResult(view, request);
|
|
5178
|
+
}
|
|
5179
|
+
/** The views `<DataApp>` runs, so their sections reuse its results instead of requesting again.
|
|
5180
|
+
* The primary view's result aggregates the app's requests. */
|
|
5181
|
+
const AppViewResultsContext = createContext(null);
|
|
5182
|
+
/** `<DataApp>` renders the controls of its client's filters, so every view it shows
|
|
5183
|
+
* must come from the same `createDataHooks()` result. */
|
|
5184
|
+
function assertAppFilters(view, clientFilters) {
|
|
5185
|
+
const definition = getViewDefinition(view);
|
|
5186
|
+
invariant(!definition.clientFilters || definition.clientFilters === clientFilters, "Views inside <DataApp> must come from the same createDataHooks() client, which owns their filter controls.");
|
|
5187
|
+
}
|
|
5188
|
+
function getViewDefinition(view) {
|
|
5189
|
+
return DeclaredView.definition(view);
|
|
5190
|
+
}
|
|
5191
|
+
//#endregion
|
|
5192
|
+
//#region src/view.ts
|
|
5193
|
+
/** Fill in the defaults for a view that omits its empty semantics. */
|
|
5194
|
+
function resolveViewEmptiness(definition) {
|
|
5195
|
+
return {
|
|
5196
|
+
isEmpty: definition.isEmpty ?? (() => false),
|
|
5197
|
+
emptyFallback: definition.emptyFallback ?? { title: "No results" }
|
|
5198
|
+
};
|
|
5199
|
+
}
|
|
5200
|
+
/** Derive a view from its operation's filters. */
|
|
5201
|
+
function resolveViewDefinition(definition, filters) {
|
|
5202
|
+
return {
|
|
5203
|
+
operation: definition.operation,
|
|
5204
|
+
dataContext: definition.dataContext,
|
|
5205
|
+
filters,
|
|
5206
|
+
dateFilter: dateFilterName(filters),
|
|
5207
|
+
describeInput: definition.describeInput ?? describeFilterInput(filters),
|
|
5208
|
+
...resolveViewEmptiness(definition)
|
|
5209
|
+
};
|
|
5210
|
+
}
|
|
5211
|
+
function lowerFirst(text) {
|
|
5212
|
+
return text.charAt(0).toLowerCase() + text.slice(1);
|
|
5213
|
+
}
|
|
5214
|
+
/** The reporting period, then each scope filter narrowed from its unrestricted value. */
|
|
5215
|
+
function describeFilterInput(filters) {
|
|
5216
|
+
return (input) => {
|
|
5217
|
+
const parts = [];
|
|
5218
|
+
for (const [name, filter] of Object.entries(filters)) {
|
|
5219
|
+
const value = input[name];
|
|
5220
|
+
if (filter.kind === "dateTimeRange") parts.unshift(describePeriod(filter, value));
|
|
5221
|
+
else if (filter.presentation?.group !== "display") {
|
|
5222
|
+
const scoped = filter;
|
|
5223
|
+
if (scoped.clearValue !== void 0 && scoped.same(value, scoped.clearValue)) continue;
|
|
5224
|
+
parts.push(`${lowerFirst(filter.label ?? name)} ${scoped.describe?.(value) ?? String(value)}`);
|
|
5225
|
+
}
|
|
5226
|
+
}
|
|
5227
|
+
return parts.join(" · ") || "all data";
|
|
5228
|
+
};
|
|
5229
|
+
}
|
|
5230
|
+
/** The reporting period with its comparison, when the operation's date filter offers one. */
|
|
5231
|
+
function readViewPeriod(definition, input) {
|
|
5232
|
+
const name = definition.dateFilter;
|
|
5233
|
+
const filter = name ? definition.filters[name] : void 0;
|
|
5234
|
+
if (filter?.kind !== "dateTimeRange" || !filter.comparable) return void 0;
|
|
5235
|
+
return input[name];
|
|
5236
|
+
}
|
|
5237
|
+
/** Complete days read as calendar dates in the reporting zone; other ranges keep their times. */
|
|
5238
|
+
function describePeriod(filter, value) {
|
|
5239
|
+
const { range } = value;
|
|
5240
|
+
return range.from.getTime() % 864e5 === 0 && range.to.getTime() % 864e5 === 0 ? `${dateTimeRangeLabel(range)} ${filter.policy.timeZone}` : formatDateTimeRange(range);
|
|
5556
5241
|
}
|
|
5557
|
-
const PrimaryViewContext = createContext(null);
|
|
5558
5242
|
//#endregion
|
|
5559
5243
|
//#region src/hooks.ts
|
|
5244
|
+
/** The reporting time zone of the operation's date filter. */
|
|
5560
5245
|
function reportingTimeZone(definition) {
|
|
5561
|
-
const period = definition.
|
|
5562
|
-
|
|
5563
|
-
if (period?.kind === "dateTimeRangeComparison" || period?.kind === "dateTimeRange") return period.contract?.bounds().timeZone;
|
|
5246
|
+
const period = definition.dateFilter ? definition.filters[definition.dateFilter] : void 0;
|
|
5247
|
+
return period?.kind === "dateTimeRange" ? period.policy.timeZone : void 0;
|
|
5564
5248
|
}
|
|
5565
5249
|
const clientScopes = /* @__PURE__ */ new WeakMap();
|
|
5566
5250
|
function getClientScope(client) {
|
|
@@ -5571,10 +5255,19 @@ function getClientScope(client) {
|
|
|
5571
5255
|
}
|
|
5572
5256
|
return scope;
|
|
5573
5257
|
}
|
|
5574
|
-
/** Bind declared operations to URL
|
|
5258
|
+
/** Bind declared operations to URL filters, displayed readings, and request feedback.
|
|
5259
|
+
* The client's operations declare their filters; `<DataApp>` renders their controls. */
|
|
5575
5260
|
function createDataHooks(client) {
|
|
5576
5261
|
const clientScope = getClientScope(client);
|
|
5577
|
-
|
|
5262
|
+
const operationFilters = client.filters;
|
|
5263
|
+
const appFilters = combineOperationFilters(operationFilters);
|
|
5264
|
+
const clientFilters = {
|
|
5265
|
+
filters: appFilters,
|
|
5266
|
+
useControls() {
|
|
5267
|
+
return useFilterControls(appFilters, operationFilters, clientScope, loadFacet);
|
|
5268
|
+
}
|
|
5269
|
+
};
|
|
5270
|
+
function useDataQuery({ name, input, enabled }) {
|
|
5578
5271
|
const queryClient = useQueryClient();
|
|
5579
5272
|
const queryKey = [
|
|
5580
5273
|
"data-operation",
|
|
@@ -5585,6 +5278,7 @@ function createDataHooks(client) {
|
|
|
5585
5278
|
return {
|
|
5586
5279
|
...useQuery({
|
|
5587
5280
|
queryKey,
|
|
5281
|
+
enabled,
|
|
5588
5282
|
queryFn({ signal }) {
|
|
5589
5283
|
return client.query(name, input, { signal });
|
|
5590
5284
|
},
|
|
@@ -5606,8 +5300,12 @@ function createDataHooks(client) {
|
|
|
5606
5300
|
* `isEmpty` is app-owned so a measured zero remains valid. Previous-input data
|
|
5607
5301
|
* stays labeled through refreshes and errors. Input equality uses React Query's
|
|
5608
5302
|
* stable key hash. */
|
|
5609
|
-
function useDataView(name, input,
|
|
5610
|
-
const query = useDataQuery(
|
|
5303
|
+
function useDataView({ name, input, isEmpty, describeInput, enabled }) {
|
|
5304
|
+
const query = useDataQuery({
|
|
5305
|
+
name,
|
|
5306
|
+
input,
|
|
5307
|
+
enabled
|
|
5308
|
+
});
|
|
5611
5309
|
const [last, setLast] = useState();
|
|
5612
5310
|
if (query.isSuccess && !query.isPlaceholderData && query.data && (last?.clientScope !== clientScope || last.name !== name || last.response !== query.data)) setLast({
|
|
5613
5311
|
clientScope,
|
|
@@ -5629,8 +5327,8 @@ function createDataHooks(client) {
|
|
|
5629
5327
|
pending: query.isFetching,
|
|
5630
5328
|
error: query.error instanceof Error ? query.error : void 0,
|
|
5631
5329
|
sameInput,
|
|
5632
|
-
describe:
|
|
5633
|
-
isEmpty
|
|
5330
|
+
describe: describeInput ?? (() => "this view"),
|
|
5331
|
+
isEmpty
|
|
5634
5332
|
});
|
|
5635
5333
|
return {
|
|
5636
5334
|
...query,
|
|
@@ -5641,39 +5339,25 @@ function createDataHooks(client) {
|
|
|
5641
5339
|
refreshing: query.isFetching
|
|
5642
5340
|
};
|
|
5643
5341
|
}
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
const
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
...definition,
|
|
5652
|
-
variables
|
|
5653
|
-
});
|
|
5654
|
-
const normalized = {
|
|
5655
|
-
...definition,
|
|
5656
|
-
variables,
|
|
5657
|
-
input,
|
|
5658
|
-
describeInput
|
|
5342
|
+
/** One view per operation: its filters, scope, and reporting period come from the
|
|
5343
|
+
* operation. Supply `describeInput` only to replace the derived scope. */
|
|
5344
|
+
function defineView(definition) {
|
|
5345
|
+
const filters = operationFilters[definition.operation] ?? {};
|
|
5346
|
+
const resolved = {
|
|
5347
|
+
...resolveViewDefinition(definition, filters),
|
|
5348
|
+
clientFilters
|
|
5659
5349
|
};
|
|
5660
|
-
const view = Object.assign(new DeclaredView(() => useView(
|
|
5350
|
+
const view = Object.assign(new DeclaredView((request) => useView(resolved, request), resolved), {
|
|
5661
5351
|
filter() {
|
|
5662
5352
|
return createFilterTarget({
|
|
5663
5353
|
owner: view,
|
|
5664
|
-
|
|
5665
|
-
input,
|
|
5666
|
-
bindings: definition.bindings,
|
|
5667
|
-
date: definition.date
|
|
5354
|
+
filters
|
|
5668
5355
|
});
|
|
5669
5356
|
},
|
|
5670
5357
|
breakdown(key) {
|
|
5671
5358
|
return createBreakdownTarget({
|
|
5672
5359
|
owner: view,
|
|
5673
|
-
|
|
5674
|
-
input,
|
|
5675
|
-
bindings: definition.bindings,
|
|
5676
|
-
date: definition.date,
|
|
5360
|
+
filters,
|
|
5677
5361
|
key
|
|
5678
5362
|
});
|
|
5679
5363
|
},
|
|
@@ -5681,41 +5365,49 @@ function createDataHooks(client) {
|
|
|
5681
5365
|
return bindDataset({
|
|
5682
5366
|
...dataset,
|
|
5683
5367
|
evidence: definition.dataContext.evidence(dataset.evidence)
|
|
5684
|
-
}, view, reportingTimeZone(
|
|
5368
|
+
}, view, reportingTimeZone(resolved));
|
|
5685
5369
|
},
|
|
5686
5370
|
metric(metric, select) {
|
|
5687
|
-
return bindMetric(definition.dataContext.metric(metric), select,
|
|
5371
|
+
return bindMetric(definition.dataContext.metric(metric), select, resolved.dateFilter ? (input) => readViewPeriod(resolved, input) : void 0, view);
|
|
5688
5372
|
},
|
|
5689
5373
|
scope(snapshot) {
|
|
5690
|
-
return describeInput(snapshot.input);
|
|
5374
|
+
return resolved.describeInput(snapshot.input);
|
|
5691
5375
|
},
|
|
5692
5376
|
content(render) {
|
|
5693
|
-
return new ViewContent(view, render, describeInput);
|
|
5377
|
+
return new ViewContent(view, render, resolved.describeInput);
|
|
5694
5378
|
}
|
|
5695
5379
|
});
|
|
5696
5380
|
return view;
|
|
5697
5381
|
}
|
|
5698
5382
|
/** Define a typed destination whose untrusted navigation input is validated before querying. */
|
|
5699
5383
|
function defineDetailView(definition) {
|
|
5700
|
-
const
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5384
|
+
const resolved = {
|
|
5385
|
+
...definition,
|
|
5386
|
+
...resolveViewEmptiness(definition),
|
|
5387
|
+
describeInput: definition.describeInput ?? describeFilterInput(operationFilters[definition.operation] ?? {})
|
|
5388
|
+
};
|
|
5389
|
+
const target = new DetailView(resolved, (input) => {
|
|
5390
|
+
const request = useDataView({
|
|
5391
|
+
name: definition.operation,
|
|
5392
|
+
input,
|
|
5393
|
+
isEmpty: resolved.isEmpty,
|
|
5394
|
+
describeInput: resolved.describeInput,
|
|
5395
|
+
enabled: true
|
|
5704
5396
|
});
|
|
5705
5397
|
return {
|
|
5706
5398
|
view: request.view,
|
|
5707
5399
|
dataContext: definition.dataContext,
|
|
5708
5400
|
snapshot: request.snapshot,
|
|
5709
|
-
scope: displayedScope(request.view,
|
|
5401
|
+
scope: displayedScope(request.view, resolved.describeInput),
|
|
5710
5402
|
refetch() {
|
|
5711
5403
|
request.refetch();
|
|
5712
5404
|
},
|
|
5713
5405
|
cancel: request.cancel,
|
|
5714
5406
|
refreshing: request.refreshing,
|
|
5715
5407
|
queries: request.queries,
|
|
5716
|
-
emptyFallback:
|
|
5408
|
+
emptyFallback: resolved.emptyFallback
|
|
5717
5409
|
};
|
|
5718
|
-
});
|
|
5410
|
+
}, operationFilters[definition.operation]);
|
|
5719
5411
|
return Object.assign(target, {
|
|
5720
5412
|
dataset(dataset) {
|
|
5721
5413
|
return bindDataset({
|
|
@@ -5728,111 +5420,36 @@ function createDataHooks(client) {
|
|
|
5728
5420
|
}
|
|
5729
5421
|
});
|
|
5730
5422
|
}
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
function defineCalendarTimeView(definition) {
|
|
5737
|
-
const period = dateRangeVariable({
|
|
5738
|
-
...definition.time,
|
|
5739
|
-
key: "period"
|
|
5740
|
-
});
|
|
5741
|
-
return bindDataView({
|
|
5742
|
-
operation: definition.operation,
|
|
5743
|
-
dataContext: definition.dataContext,
|
|
5744
|
-
variables: {
|
|
5745
|
-
period,
|
|
5746
|
-
...definition.variables
|
|
5747
|
-
},
|
|
5748
|
-
bindings: definition.bindings,
|
|
5749
|
-
input(values) {
|
|
5750
|
-
if (definition.input) return definition.input(values);
|
|
5751
|
-
if (!definition.variables || !Object.keys(definition.variables).length) return values.period;
|
|
5752
|
-
return { ...values };
|
|
5753
|
-
},
|
|
5754
|
-
date: {
|
|
5755
|
-
variable: "period",
|
|
5756
|
-
input(input) {
|
|
5757
|
-
return definition.bindings?.period ? definition.bindings.period(input) : input && typeof input === "object" && "period" in input ? input.period : input;
|
|
5758
|
-
}
|
|
5759
|
-
},
|
|
5423
|
+
function useView(definition, request) {
|
|
5424
|
+
const filters = useFilterValues(definition.filters);
|
|
5425
|
+
const dataView = useDataView({
|
|
5426
|
+
name: definition.operation,
|
|
5427
|
+
input: filters.resolved,
|
|
5760
5428
|
isEmpty: definition.isEmpty,
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
}
|
|
5764
|
-
function defineDateTimeView(definition) {
|
|
5765
|
-
const period = definition.time;
|
|
5766
|
-
return bindDataView({
|
|
5767
|
-
...definition,
|
|
5768
|
-
variables: {
|
|
5769
|
-
...definition.variables,
|
|
5770
|
-
period
|
|
5771
|
-
},
|
|
5772
|
-
...period.kind === "dateTimeRangeComparison" ? { date: {
|
|
5773
|
-
variable: "period",
|
|
5774
|
-
input(input) {
|
|
5775
|
-
return definition.bindings?.period ? definition.bindings.period(input) : input.period;
|
|
5776
|
-
}
|
|
5777
|
-
} } : {},
|
|
5778
|
-
describeInput(input) {
|
|
5779
|
-
const selected = definition.bindings?.period ? definition.bindings.period(input) : input.period;
|
|
5780
|
-
return period.kind === "dateTimeRangeComparison" ? formatDateTimeRange(parseDateTimeRange(selected.range)) : period.describe(parseDateTimeRange(selected));
|
|
5781
|
-
}
|
|
5782
|
-
});
|
|
5783
|
-
}
|
|
5784
|
-
function defineTimeView(definition) {
|
|
5785
|
-
return definition.time.kind === "dateTimeRange" || definition.time.kind === "dateTimeRangeComparison" ? defineDateTimeView(definition) : defineCalendarTimeView(definition);
|
|
5786
|
-
}
|
|
5787
|
-
function defineFacetFilter(config) {
|
|
5788
|
-
const context = Object.freeze({ ...config.facet.context });
|
|
5789
|
-
const operation = config.facet.operation;
|
|
5790
|
-
const mapInput = config.facet.input;
|
|
5791
|
-
return Object.assign(createDimensionFilter({
|
|
5792
|
-
...config,
|
|
5793
|
-
options: []
|
|
5794
|
-
}, true), {
|
|
5795
|
-
optionsSource: "query",
|
|
5796
|
-
[facetSource]: Object.freeze({
|
|
5797
|
-
context,
|
|
5798
|
-
operation,
|
|
5799
|
-
input(values) {
|
|
5800
|
-
const resolved = Object.fromEntries(Object.keys(context).map((name) => [name, values[name]]));
|
|
5801
|
-
return mapInput(resolved);
|
|
5802
|
-
}
|
|
5803
|
-
})
|
|
5804
|
-
});
|
|
5805
|
-
}
|
|
5806
|
-
function useView(definition) {
|
|
5807
|
-
const variables = useViewVariables(definition.variables, clientScope, (operation, input, signal) => client.query(operation, input, { signal }).then((response) => response.data));
|
|
5808
|
-
const describeInput = describeViewInput(definition);
|
|
5809
|
-
const request = useDataView(definition.operation, resolveViewInput(definition, variables.resolved), {
|
|
5810
|
-
...definition,
|
|
5811
|
-
describeInput
|
|
5429
|
+
describeInput: definition.describeInput,
|
|
5430
|
+
enabled: request.enabled
|
|
5812
5431
|
});
|
|
5813
5432
|
return {
|
|
5814
|
-
view:
|
|
5433
|
+
view: dataView.view,
|
|
5815
5434
|
dataContext: definition.dataContext,
|
|
5816
|
-
snapshot:
|
|
5817
|
-
scope: displayedScope(
|
|
5435
|
+
snapshot: dataView.snapshot,
|
|
5436
|
+
scope: displayedScope(dataView.view, definition.describeInput),
|
|
5818
5437
|
refetch() {
|
|
5819
|
-
if (!
|
|
5438
|
+
if (!filters.refreshTime()) dataView.refetch();
|
|
5820
5439
|
},
|
|
5821
|
-
cancel:
|
|
5822
|
-
refreshing:
|
|
5823
|
-
queries:
|
|
5440
|
+
cancel: dataView.cancel,
|
|
5441
|
+
refreshing: dataView.refreshing,
|
|
5442
|
+
queries: dataView.queries,
|
|
5824
5443
|
emptyFallback: definition.emptyFallback,
|
|
5825
|
-
timeZone: reportingTimeZone(definition)
|
|
5826
|
-
searchControls: variables.searchControls,
|
|
5827
|
-
filterControls: variables.filterControls,
|
|
5828
|
-
variables
|
|
5444
|
+
timeZone: reportingTimeZone(definition)
|
|
5829
5445
|
};
|
|
5830
5446
|
}
|
|
5447
|
+
function loadFacet(operation, input, signal) {
|
|
5448
|
+
return client.query(operation, input, { signal }).then((response) => response.data);
|
|
5449
|
+
}
|
|
5831
5450
|
return {
|
|
5832
|
-
|
|
5833
|
-
defineDetailView
|
|
5834
|
-
defineTimeView,
|
|
5835
|
-
defineFacetFilter
|
|
5451
|
+
defineView,
|
|
5452
|
+
defineDetailView
|
|
5836
5453
|
};
|
|
5837
5454
|
}
|
|
5838
5455
|
//#endregion
|
|
@@ -7754,7 +7371,7 @@ function RefreshControl({ refreshing, children, label = "Refreshing data", statu
|
|
|
7754
7371
|
}
|
|
7755
7372
|
//#endregion
|
|
7756
7373
|
//#region src/ui/AppToolbar.tsx
|
|
7757
|
-
/** Header actions only. Put reader-controlled inputs in DataApp
|
|
7374
|
+
/** Header actions only. Put reader-controlled inputs in DataApp filters below the header.
|
|
7758
7375
|
* Observation time, or an initial loading status, sits before Refresh. Children prepend app controls in the right
|
|
7759
7376
|
* cluster; end follows the built-in actions. Live sits beside Refresh when supplied. Refresh also
|
|
7760
7377
|
* answers Alt/Option+R and uses the button to cancel a running request when onCancel is provided;
|
|
@@ -7950,27 +7567,26 @@ function DataAppFrame(props) {
|
|
|
7950
7567
|
if (import.meta.env?.DEV && bodyRef.current?.querySelector("h1")) console.warn("DataApp owns the page title. Use section headings (h2) in its body.");
|
|
7951
7568
|
});
|
|
7952
7569
|
const snapshot = request && displayedSnapshot(request.view);
|
|
7953
|
-
const findings =
|
|
7954
|
-
const story = findings?.length ? { findings } : void 0;
|
|
7570
|
+
const findings = props.story?.loading === false ? props.story.value : [];
|
|
7955
7571
|
const scope = /* @__PURE__ */ jsx(AppScope, {
|
|
7956
7572
|
organization: app.scope.organization,
|
|
7957
7573
|
environment: app.scope.environment
|
|
7958
7574
|
});
|
|
7959
7575
|
const toolbar = props.showToolbar === false ? null : /* @__PURE__ */ jsxs(AppToolbar, {
|
|
7960
|
-
csvExport:
|
|
7576
|
+
csvExport: props.csvExport && (props.csvExport.loading ? null : props.csvExport.value),
|
|
7961
7577
|
requestState: request?.view.kind,
|
|
7962
7578
|
refresh: request ? {
|
|
7963
7579
|
refreshing: request.refreshing ?? (request.view.kind === "loading" || request.view.kind === "updating"),
|
|
7964
7580
|
onRefresh: () => void request.refetch(),
|
|
7965
7581
|
onCancel: request.cancel ? () => void request.cancel?.() : void 0
|
|
7966
7582
|
} : void 0,
|
|
7967
|
-
story: story ? {
|
|
7968
|
-
|
|
7583
|
+
story: props.story && (findings.length ? {
|
|
7584
|
+
findings,
|
|
7969
7585
|
title: app.title,
|
|
7970
7586
|
scope,
|
|
7971
7587
|
dataContext,
|
|
7972
7588
|
theme: themeController
|
|
7973
|
-
} :
|
|
7589
|
+
} : null),
|
|
7974
7590
|
aboutData: /* @__PURE__ */ jsx(AboutData, {
|
|
7975
7591
|
id: "data",
|
|
7976
7592
|
shortcut: true,
|
|
@@ -7986,17 +7602,16 @@ function DataAppFrame(props) {
|
|
|
7986
7602
|
view: snapshot?.state
|
|
7987
7603
|
}), toolbarActions]
|
|
7988
7604
|
});
|
|
7989
|
-
const searchRegion = request?.searchControls && props.showSearch !== false ? /* @__PURE__ */ jsx(
|
|
7990
|
-
className: "altertable-
|
|
7991
|
-
"aria-label": "Search
|
|
7605
|
+
const searchRegion = request?.searchControls && props.showSearch !== false ? /* @__PURE__ */ jsx(ControlBar, {
|
|
7606
|
+
className: "altertable-control-searches",
|
|
7607
|
+
"aria-label": "Search filters",
|
|
7992
7608
|
children: request.searchControls
|
|
7993
7609
|
}) : null;
|
|
7994
7610
|
const filterRegion = request?.filterControls && props.showFilters !== false ? request.filterControls : null;
|
|
7995
7611
|
return /* @__PURE__ */ jsx(InspectionProvider, { children: /* @__PURE__ */ jsx(InspectionContext, {
|
|
7996
7612
|
value: {
|
|
7997
7613
|
dataContext,
|
|
7998
|
-
queries: request?.queries ?? queries
|
|
7999
|
-
primaryView: request?.view
|
|
7614
|
+
queries: request?.queries ?? queries
|
|
8000
7615
|
},
|
|
8001
7616
|
children: /* @__PURE__ */ jsxs(AppLayout, {
|
|
8002
7617
|
footer: isEmbedded ? null : void 0,
|
|
@@ -8510,10 +8125,10 @@ function getPrimaryExplorationAction(actions) {
|
|
|
8510
8125
|
//#region src/ui/metric-comparison.ts
|
|
8511
8126
|
/** Label a comparison from the input that produced the displayed result. Null means the
|
|
8512
8127
|
* requested previous period has no comparable value; zero remains a measured value. */
|
|
8513
|
-
function
|
|
8128
|
+
function dateTimeMetricComparison(displayedInput, values, options = {}) {
|
|
8514
8129
|
if (!displayedInput.comparison) return void 0;
|
|
8515
8130
|
function label(range) {
|
|
8516
|
-
return
|
|
8131
|
+
return dateTimeRangeLabel(range, options);
|
|
8517
8132
|
}
|
|
8518
8133
|
return {
|
|
8519
8134
|
current: {
|
|
@@ -8544,7 +8159,7 @@ function comparisonChange({ current, previous, favorableDirection }) {
|
|
|
8544
8159
|
//#region src/ui/metric.ts
|
|
8545
8160
|
function metricComparison(metric, reading, options = {}) {
|
|
8546
8161
|
if (reading.loading || !reading.value.period) return void 0;
|
|
8547
|
-
return
|
|
8162
|
+
return dateTimeMetricComparison(reading.value.period, {
|
|
8548
8163
|
current: reading.value.current,
|
|
8549
8164
|
previous: reading.value.previous ?? null,
|
|
8550
8165
|
format: metric.format,
|
|
@@ -9123,6 +8738,6 @@ function SectionHeading({ children, level = 2, className, ...props }) {
|
|
|
9123
8738
|
});
|
|
9124
8739
|
}
|
|
9125
8740
|
//#endregion
|
|
9126
|
-
export {
|
|
8741
|
+
export { DimensionPicker as $, PressButton as $t, LiveControl as A, ownedSource as At, isPlainKeyEvent as B, Sheet as Bt, ContentSkeleton as C, breakdownState as Ct, TextContent as D, useDetailNavigation as Dt, DataAppFrame as E, DetailView as Et, MenuSeparator as F, TabList$1 as Ft, useDeclaredResult as G, TooltipSurface as Gt, AppViewResultsContext as H, Tooltip as Ht, MenuTrigger as I, TabPanel$1 as It, SearchTypeahead as J, InspectionContext as Jt, FilterActions as K, Kbd as Kt, IconButton as L, TabPanels as Lt, MenuItem$1 as M, mountDataApp as Mt, MenuPopover as N, AboutData as Nt, Stack as O, DataSectionBoundary as Ot, MenuSection as P, Tab$1 as Pt, NumberRangeField as Q, Button$1 as Qt, useDataAppAnnotations as R, Tabs$1 as Rt, withWidgetBoundary as S, resolveActions as St, DataValue as T, DetailRoutes as Tt, assertAppFilters as U, TooltipProvider as Ut, createDataHooks as V, GradientScroll as Vt, getViewDefinition as W, ChartTooltip as Wt, NumberFilterPicker as X, AppIcon as Xt, SearchField as Y, useInspectionDefaults as Yt, NumberField$1 as Z, EmptyState as Zt, explorationMenuEvents as _, exportDatasets as _t, TextWidget as a, injectStyles as an, SelectionMark as at, useChartActions as b, DateTimeTooltip as bt, DataTableEmptyRow as c, dateTimeRangePresets as ct, MetricWidget as d, matchSearchText as dt, classNames as en, FilterBar as et, VisualizationWidget as f, searchItems as ft, ExplorationActionMenu as g, datasetTable as gt, ExplorationActionControl as h, RegisteredBinding as ht, chartColor as i, injectDataAppStyles as in, Skeleton as it, Menu$1 as j, DataAppProvider as jt, PresentStory as k, ShimmerText as kt, DataTableShare as l, useAppFilters as lt, comparisonChange as m, MetricRecords as mt, createDataContext as n, useDateFormatting as nn, Select$1 as nt, TableWidget as o, SearchMatch as ot, metricComparison as p, sectionContent as pt, ControlBar as q, shortcuts as qt, chartBarFill as r, useDataApp as rn, ChoicePicker as rt, DataTable as s, dateTimeRangeFilter as st, SectionHeading as t, DateFormattingContext as tn, DateTimeRangePicker as tt, DataTableTimestamp as u, SearchSuggestionsContext as ut, getPrimaryExplorationAction as v, registeredEvidence as vt, getAnnotationProps as w, DetailContent as wt, DataWidget as x, HelpPopover as xt, openExplorationMenu as y, DateDisplay as yt, AnnotationTooltip as z, useViewTab as zt };
|
|
9127
8742
|
|
|
9128
|
-
//# sourceMappingURL=SectionHeading-
|
|
8743
|
+
//# sourceMappingURL=SectionHeading-Bz5RIXit.js.map
|