# @birchui/spreadsheet API reference

> Birch UI Spreadsheet: formula engine and spreadsheet component with xlsx fidelity

```bash
npm install @birchui/spreadsheet
```

## @birchui/spreadsheet

### canvasImageRasterizer

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function canvasImageRasterizer(...args: Args<typeof XlsxEntry.canvasImageRasterizer>): ReturnType<typeof XlsxEntry.canvasImageRasterizer>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.canvasImageRasterizer>` |  |

### columnName

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function columnName(col: number): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `col` | `number` |  |

### connectCollaboration

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function connectCollaboration(target: CollaborationTarget, provider: CollaborationProvider, options: CollaborationOptions): CollaborationSession
```

| Parameter | Type | Description |
| --- | --- | --- |
| `target` | `CollaborationTarget` |  |
| `provider` | `CollaborationProvider` |  |
| `options` | `CollaborationOptions` |  |

### createCollaborationAuthority

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function createCollaborationAuthority(options: CollaborationAuthorityOptions = {}): CollaborationAuthority
```

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | `CollaborationAuthorityOptions` |  |

### createFormulaEngine

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function createFormulaEngine(options: FormulaEngineOptions = {}): FormulaEngine
```

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | `FormulaEngineOptions` |  |

### createLoopbackProvider

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function createLoopbackProvider(options: LoopbackProviderOptions = {}): LoopbackProvider
```

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | `LoopbackProviderOptions` |  |

### createSpreadsheet

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function createSpreadsheet(container: HTMLElement, options: SpreadsheetOptions = {}): SpreadsheetApi
```

| Parameter | Type | Description |
| --- | --- | --- |
| `container` | `HTMLElement` |  |
| `options?` | `SpreadsheetOptions` |  |

### createWorkerEngine

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function createWorkerEngine(init: WorkerEngineInit = {}): WorkerEngine
```

| Parameter | Type | Description |
| --- | --- | --- |
| `init?` | `WorkerEngineInit` |  |

### csvToJSON

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function csvToJSON(data: string | Uint8Array | ArrayBuffer, given: CsvImportOptions = {}): WorkbookJSON
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `string \| Uint8Array \| ArrayBuffer` |  |
| `given?` | `CsvImportOptions` |  |

### dateToSerial

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function dateToSerial(date: Date): number
```

| Parameter | Type | Description |
| --- | --- | --- |
| `date` | `Date` |  |

### decodeCell

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function decodeCell(range: EncodedRange, row: number, col: number): CellValue
```

| Parameter | Type | Description |
| --- | --- | --- |
| `range` | `EncodedRange` |  |
| `row` | `number` |  |
| `col` | `number` |  |

### decodeRange

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function decodeRange(range: EncodedRange): CellValue[][]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `range` | `EncodedRange` |  |

### detectCsvDialect

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function detectCsvDialect(text: string): CsvDialect
```

| Parameter | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |

### detectEmbeddedFileType

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function detectEmbeddedFileType(bytes: Uint8Array | ArrayBuffer | null | undefined, hints: EmbeddedFileHints = {}): EmbeddedFileType
```

| Parameter | Type | Description |
| --- | --- | --- |
| `bytes` | `Uint8Array \| ArrayBuffer \| null \| undefined` |  |
| `hints?` | `EmbeddedFileHints` |  |

### encodeRange

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function encodeRange(values: readonly (readonly CellValue[])[]): EncodedRange
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `readonly (readonly CellValue[])[]` |  |

### exposeFormulaEngine

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function exposeFormulaEngine(options?: ExposeOptions): () => void
function exposeFormulaEngine(endpoint: MessageEndpoint, options?: ExposeOptions): () => void
```

| Parameter | Type | Description |
| --- | --- | --- |
| `options?` | `ExposeOptions` |  |

### formatKind

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function formatKind(code: string | undefined): FormatKind
```

| Parameter | Type | Description |
| --- | --- | --- |
| `code` | `string \| undefined` |  |

### formatValue

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function formatValue(value: Scalar, code: string | undefined, options: FormatOptions = {}): FormattedValue
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `Scalar` |  |
| `code` | `string \| undefined` |  |
| `options?` | `FormatOptions` |  |

### formulaFromLocale

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function formulaFromLocale(formula: string, locale: string | FormatLocale): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `locale` | `string \| FormatLocale` |  |

### formulaFromR1C1

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function formulaFromR1C1(formula: string, cell: string): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `cell` | `string` |  |

### formulaToLocale

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function formulaToLocale(formula: string, locale: string | FormatLocale): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `locale` | `string \| FormatLocale` |  |

### formulaToR1C1

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function formulaToR1C1(formula: string, cell: string): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `cell` | `string` |  |

### fromA1

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function fromA1(text: string): CellAddress | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |

### inputFromLocale

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function inputFromLocale(text: string, locale: string | FormatLocale): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `locale` | `string \| FormatLocale` |  |

### inspectXlsx

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function inspectXlsx(...args: Args<typeof XlsxEntry.inspectXlsx>): ReturnType<typeof XlsxEntry.inspectXlsx>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.inspectXlsx>` |  |

### isCellError

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function isCellError(value: unknown): value is CellError
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### isDateFormat

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function isDateFormat(code: string): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `code` | `string` |  |

### isXlsWorkbook

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function isXlsWorkbook(bytes: Uint8Array): boolean
```

| Parameter | Type | Description |
| --- | --- | --- |
| `bytes` | `Uint8Array` |  |

### jsonToCsv

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function jsonToCsv(json: WorkbookJSON, options: CsvExportOptions = {}): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `json` | `WorkbookJSON` |  |
| `options?` | `CsvExportOptions` |  |

### jsonToOds

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function jsonToOds(...args: Args<typeof OdsEntry.jsonToOds>): ReturnType<typeof OdsEntry.jsonToOds>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof OdsEntry.jsonToOds>` |  |

### jsonToPdf

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function jsonToPdf(...args: Args<typeof PdfEntry.jsonToPdf>): ReturnType<typeof PdfEntry.jsonToPdf>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof PdfEntry.jsonToPdf>` |  |

### jsonToXlsx

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function jsonToXlsx(...args: Args<typeof XlsxEntry.exportXlsxBytes>): ReturnType<typeof XlsxEntry.exportXlsxBytes>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.exportXlsxBytes>` |  |

### jsonToXlsxWithReport

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function jsonToXlsxWithReport(...args: Args<typeof XlsxEntry.exportXlsxWithReport>): ReturnType<typeof XlsxEntry.exportXlsxWithReport>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.exportXlsxWithReport>` |  |

### listFunctions

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function listFunctions(): FunctionInfo[]
```

### odsToJSON

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function odsToJSON(...args: Args<typeof OdsEntry.odsToJSON>): ReturnType<typeof OdsEntry.odsToJSON>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof OdsEntry.odsToJSON>` |  |

### parseCsv

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function parseCsv(input: string, options: CsvImportOptions = {}): CsvParseResult
```

| Parameter | Type | Description |
| --- | --- | --- |
| `input` | `string` |  |
| `options?` | `CsvImportOptions` |  |

### parseOperation

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function parseOperation(input: unknown): SheetOperation
```

| Parameter | Type | Description |
| --- | --- | --- |
| `input` | `unknown` |  |

### readCsvDialect

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function readCsvDialect(data: string | Uint8Array | ArrayBuffer, encoding?: string): CsvDialect
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `string \| Uint8Array \| ArrayBuffer` |  |
| `encoding?` | `string` |  |

### renderMetafile

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function renderMetafile(bytes: Uint8Array): MetafilePicture | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `bytes` | `Uint8Array` |  |

### resolveFormatLocale

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function resolveFormatLocale(locale: string | FormatLocale | undefined): FormatLocale
```

| Parameter | Type | Description |
| --- | --- | --- |
| `locale` | `string \| FormatLocale \| undefined` |  |

### safeColor

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function safeColor(value: unknown): string | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### safeFontFamily

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function safeFontFamily(value: unknown): string | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### safeImageSource

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function safeImageSource(value: unknown): string | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### safeLinkUrl

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function safeLinkUrl(value: unknown): string | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `value` | `unknown` |  |

### sanitizeWorkbook

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function sanitizeWorkbook<T extends WorkbookJSON>(json: T): T
```

| Parameter | Type | Description |
| --- | --- | --- |
| `json` | `T` |  |

### serialToDate

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function serialToDate(serial: number): Date
```

| Parameter | Type | Description |
| --- | --- | --- |
| `serial` | `number` |  |

### toA1

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function toA1(row: number, col: number): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `row` | `number` |  |
| `col` | `number` |  |

### transform

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function transform(operation: SheetOperation, against: SheetOperation, order: TransformOrder = 'after'): SheetOperation[]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `operation` | `SheetOperation` |  |
| `against` | `SheetOperation` |  |
| `order?` | `TransformOrder` |  |

### transformAll

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function transformAll(operations: readonly SheetOperation[], against: readonly SheetOperation[], order: TransformOrder = 'after'): [SheetOperation[], SheetOperation[]]
```

| Parameter | Type | Description |
| --- | --- | --- |
| `operations` | `readonly SheetOperation[]` |  |
| `against` | `readonly SheetOperation[]` |  |
| `order?` | `TransformOrder` |  |

### validateXlsxPackage

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function validateXlsxPackage(...args: Args<typeof XlsxEntry.validateXlsxPackage>): ReturnType<typeof XlsxEntry.validateXlsxPackage>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.validateXlsxPackage>` |  |

### xlsToJSON

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function xlsToJSON(data: Uint8Array | ArrayBuffer, options: XlsImportOptions = {}): WorkbookJSON
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `Uint8Array \| ArrayBuffer` |  |
| `options?` | `XlsImportOptions` |  |

### xlsToJSONWithReport

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function xlsToJSONWithReport(data: Uint8Array | ArrayBuffer, options: XlsImportOptions = {}): XlsImportResult
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `Uint8Array \| ArrayBuffer` |  |
| `options?` | `XlsImportOptions` |  |

### xlsxToJSON

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function xlsxToJSON(...args: Args<typeof XlsxEntry.importXlsx>): ReturnType<typeof XlsxEntry.importXlsx>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.importXlsx>` |  |

### xlsxToJSONWithReport

Kind: function. Import from `@birchui/spreadsheet`.

```ts
function xlsxToJSONWithReport(...args: Args<typeof XlsxEntry.importXlsxWithReport>): ReturnType<typeof XlsxEntry.importXlsxWithReport>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `...args` | `Args<typeof XlsxEntry.importXlsxWithReport>` |  |

### DataTableError

Kind: class. Import from `@birchui/spreadsheet`.

```ts
class DataTableError extends Error
new DataTableError(message: string)
```

### ProtectionError

Kind: class. Import from `@birchui/spreadsheet`.

```ts
class ProtectionError extends Error
new ProtectionError(message: string, readonly sheet?: string)
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly code` | `"protected"` |  |
| `readonly sheet?` | `string` |  |

### ValidationError

Kind: class. Import from `@birchui/spreadsheet`.

```ts
class ValidationError extends Error
new ValidationError(message: string, readonly sheet: string, readonly address: string, readonly rejected: number)
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly code` | `"validation"` |  |
| `readonly sheet` | `string` |  |
| `readonly address` | `string` |  |
| `readonly rejected` | `number` |  |

### XlsError

Kind: class. Import from `@birchui/spreadsheet`.

```ts
class XlsError extends Error
new XlsError(detail: string)
```

### ZipLimitError

Kind: class. Import from `@birchui/spreadsheet`.

```ts
class ZipLimitError extends Error
new ZipLimitError(code: ZipLimitCode, message: string, detail: { limit: number; actual: number; entryName?: string })
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly code` | `ZipLimitCode` |  |
| `readonly limit` | `number` |  |
| `readonly actual` | `number` |  |
| `readonly entryName` | `string \| undefined` |  |

### DE_DE

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const DE_DE: FormatLocale
```

### DEFAULT_XLS_LIMITS

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const DEFAULT_XLS_LIMITS: Readonly<XlsLimits>
```

### DEFAULT_ZIP_LIMITS

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const DEFAULT_ZIP_LIMITS: Readonly<ZipLimits>
```

### EN_US

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const EN_US: FormatLocale
```

### ES_ES

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const ES_ES: FormatLocale
```

### FR_FR

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const FR_FR: FormatLocale
```

### SPREADSHEET_EVENT_NAMES

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const SPREADSHEET_EVENT_NAMES: readonly (keyof SpreadsheetEvents)[]
```

### spreadsheetDefinition

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const spreadsheetDefinition: WidgetDefinition<SpreadsheetOptions, SpreadsheetEvents, SpreadsheetApi>
```

### spreadsheetStyles

Kind: const. Import from `@birchui/spreadsheet`.

```ts
const spreadsheetStyles: "\n.lq-sheet {\n --lq-sheet-font-family: var(--lq-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif);\n --lq-sheet-font-size: var(--lq-font-size, 13px);\n --lq-sheet-fg: var(--lq-fg, #1f2328);\n --lq-sheet-bg: var(--lq-bg, #ffffff);\n --lq-sheet-muted: var(--lq-muted-fg, #59636e);\n --lq-sheet-border: var(--lq-border, #d1d9e0);\n --lq-sheet-gridline: var(--lq-border-subtle, #e6eaef);\n --lq-sheet-header-bg: var(--lq-header-bg, #f6f8fa);\n --lq-sheet-header-fg: var(--lq-header-fg, #1f2328);\n --lq-sheet-header-active-bg: #dde7f6;\n --lq-sheet-header-selected-bg: var(--lq-accent, #1f6feb);\n --lq-sheet-header-selected-fg: var(--lq-accent-fg, #ffffff);\n --lq-sheet-accent: var(--lq-accent, #1f6feb);\n --lq-sheet-range-bg: var(--lq-range-bg, rgba(31, 111, 235, 0.14));\n --lq-sheet-focus: var(--lq-focus-ring, #1f6feb);\n --lq-sheet-menu-bg: var(--lq-menu-bg, #ffffff);\n --lq-sheet-menu-shadow: var(--lq-menu-shadow, 0 8px 24px rgba(15, 23, 42, 0.16));\n --lq-sheet-input-bg: var(--lq-input-bg, #ffffff);\n --lq-sheet-input-border: var(--lq-input-border, #818b98);\n --lq-sheet-radius: var(--lq-radius, 6px);\n --lq-sheet-danger: var(--lq-danger, #cf222e);\n --lq-sheet-hover: var(--lq-row-hover, #eef2f6);\n --lq-sheet-active: color-mix(in srgb, var(--lq-sheet-fg) 12%, transparent);\n --lq-sheet-selected: color-mix(in srgb, var(--lq-sheet-accent) 16%, var(--lq-sheet-bg));\n --lq-sheet-selected-edge: color-mix(in srgb, var(--lq-sheet-accent) 55%, transparent);\n --lq-sheet-control-height: var(--lq-control-height, 32px);\n --lq-sheet-control-compact: var(--lq-control-height-compact, 28px);\n --lq-sheet-radius-control: var(--lq-radius-control, 4px);\n --lq-sheet-radius-dialog: var(--lq-radius-dialog, 8px);\n --lq-sheet-text-xs: var(--lq-text-xs, 11px);\n --lq-sheet-text-sm: var(--lq-text-sm, 12px);\n --lq-sheet-text-lg: var(--lq-text-lg, 15px);\n --lq-sheet-head-bg: var(--lq-sheet-header-bg);\n --lq-sheet-head-fg: var(--lq-sheet-muted);\n --lq-sheet-head-strong-fg: var(--lq-sheet-header-fg);\n --lq-sheet-head-active-bg: var(--lq-sheet-header-active-bg);\n --lq-sheet-head-selected-bg: var(--lq-sheet-header-selected-bg);\n --lq-sheet-head-selected-fg: var(--lq-sheet-header-selected-fg);\n --lq-sheet-head-border: var(--lq-sheet-border);\n --lq-sheet-head-gridline: var(--lq-sheet-gridline);\n --lq-sheet-head-surface: var(--lq-sheet-bg);\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n height: var(--lq-sheet-height, 480px);\n min-height: 200px;\n overflow: hidden;\n font-family: var(--lq-sheet-font-family);\n font-size: var(--lq-sheet-font-size);\n line-height: 1.3;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: var(--lq-sheet-radius);\n font-variant-numeric: tabular-nums;\n}\n.lq-sheet *, .lq-sheet *::before, .lq-sheet *::after { box-sizing: border-box; }\n.lq-sheet.lq-theme-light {\n --lq-fg: #1f2328;\n --lq-bg: #ffffff;\n --lq-muted-fg: #59636e;\n --lq-border: #d1d9e0;\n --lq-border-subtle: #e6eaef;\n --lq-header-bg: #f6f8fa;\n --lq-header-fg: #1f2328;\n --lq-accent: #1f6feb;\n --lq-accent-fg: #ffffff;\n --lq-range-bg: rgba(31, 111, 235, 0.14);\n --lq-focus-ring: #1f6feb;\n --lq-menu-bg: #ffffff;\n --lq-input-bg: #ffffff;\n --lq-input-border: #818b98;\n --lq-row-hover: #eef2f6;\n --lq-danger: #cf222e;\n color-scheme: light;\n}\n.lq-sheet.lq-theme-dark,\n.lq-theme-dark .lq-sheet:not(.lq-theme-light) {\n --lq-fg: #e6edf3;\n --lq-bg: #0d1117;\n --lq-muted-fg: #9198a1;\n --lq-border: #3d444d;\n --lq-border-subtle: #262c36;\n --lq-header-bg: #161b22;\n --lq-header-fg: #e6edf3;\n --lq-accent: #4493f8;\n --lq-accent-fg: #0d1117;\n --lq-range-bg: rgba(68, 147, 248, 0.2);\n --lq-focus-ring: #4493f8;\n --lq-menu-bg: #161b22;\n --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);\n --lq-input-bg: #0d1117;\n --lq-input-border: #6e7681;\n --lq-row-hover: #1f2630;\n --lq-danger: #ff7b72;\n --lq-sheet-header-active-bg: #1f2d44;\n --lq-sheet-danger: #ff7b72;\n --lq-sheet-link: #4493f8;\n --lq-sheet-picture-plate: #ffffff;\n color-scheme: dark;\n}\n@media (prefers-color-scheme: dark) {\n .lq-sheet.lq-theme-auto {\n --lq-fg: #e6edf3;\n --lq-bg: #0d1117;\n --lq-muted-fg: #9198a1;\n --lq-border: #3d444d;\n --lq-border-subtle: #262c36;\n --lq-header-bg: #161b22;\n --lq-header-fg: #e6edf3;\n --lq-accent: #4493f8;\n --lq-accent-fg: #0d1117;\n --lq-range-bg: rgba(68, 147, 248, 0.2);\n --lq-focus-ring: #4493f8;\n --lq-menu-bg: #161b22;\n --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);\n --lq-input-bg: #0d1117;\n --lq-input-border: #6e7681;\n --lq-row-hover: #1f2630;\n --lq-danger: #ff7b72;\n --lq-sheet-header-active-bg: #1f2d44;\n --lq-sheet-danger: #ff7b72;\n --lq-sheet-link: #4493f8;\n --lq-sheet-picture-plate: #ffffff;\n color-scheme: dark;\n }\n}\n.lq-sheet--light-sheet.lq-theme-dark .lq-sheet-layer,\n.lq-theme-dark .lq-sheet--light-sheet:not(.lq-theme-light) .lq-sheet-layer {\n --lq-sheet-fg: #1f2328;\n --lq-sheet-bg: #ffffff;\n --lq-sheet-muted: #59636e;\n --lq-sheet-border: #d1d9e0;\n --lq-sheet-gridline: #e6eaef;\n --lq-sheet-header-bg: #f6f8fa;\n --lq-sheet-header-fg: #1f2328;\n --lq-sheet-header-active-bg: #dde7f6;\n --lq-sheet-header-selected-bg: #1f6feb;\n --lq-sheet-header-selected-fg: #ffffff;\n --lq-sheet-accent: #1f6feb;\n --lq-sheet-range-bg: rgba(31, 111, 235, 0.14);\n --lq-sheet-focus: #1f6feb;\n --lq-sheet-menu-bg: #ffffff;\n --lq-sheet-menu-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);\n --lq-sheet-input-bg: #ffffff;\n --lq-sheet-input-border: #818b98;\n --lq-sheet-hover: #eef2f6;\n --lq-sheet-danger: #cf222e;\n --lq-sheet-link: initial;\n --lq-sheet-picture-plate: transparent;\n color: var(--lq-sheet-fg);\n color-scheme: light;\n}\n@media (prefers-color-scheme: dark) {\n .lq-sheet--light-sheet.lq-theme-auto .lq-sheet-layer {\n --lq-sheet-fg: #1f2328;\n --lq-sheet-bg: #ffffff;\n --lq-sheet-muted: #59636e;\n --lq-sheet-border: #d1d9e0;\n --lq-sheet-gridline: #e6eaef;\n --lq-sheet-header-bg: #f6f8fa;\n --lq-sheet-header-fg: #1f2328;\n --lq-sheet-header-active-bg: #dde7f6;\n --lq-sheet-header-selected-bg: #1f6feb;\n --lq-sheet-header-selected-fg: #ffffff;\n --lq-sheet-accent: #1f6feb;\n --lq-sheet-range-bg: rgba(31, 111, 235, 0.14);\n --lq-sheet-focus: #1f6feb;\n --lq-sheet-menu-bg: #ffffff;\n --lq-sheet-menu-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);\n --lq-sheet-input-bg: #ffffff;\n --lq-sheet-input-border: #818b98;\n --lq-sheet-hover: #eef2f6;\n --lq-sheet-danger: #cf222e;\n --lq-sheet-link: initial;\n --lq-sheet-picture-plate: transparent;\n color: var(--lq-sheet-fg);\n color-scheme: light;\n }\n}\n\n.lq-sheet-formula-bar {\n display: flex;\n align-items: stretch;\n gap: 0;\n flex: none;\n min-height: 30px;\n border-bottom: 1px solid var(--lq-sheet-border);\n background: var(--lq-sheet-header-bg);\n}\n.lq-sheet-formula-bar[hidden] { display: none; }\n.lq-sheet-namebox {\n flex: none;\n width: 104px;\n margin: 3px;\n padding: 0 6px;\n font: inherit;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-input-bg);\n border: 1px solid var(--lq-sheet-input-border);\n border-radius: 4px;\n}\n.lq-sheet-namebox:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -1px; }\n.lq-sheet-fx {\n flex: none;\n display: flex;\n align-items: center;\n padding: 0 8px;\n font-style: italic;\n font-weight: 600;\n color: var(--lq-sheet-muted);\n border-inline-end: 1px solid var(--lq-sheet-border);\n}\n.lq-sheet-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }\n.lq-sheet-formula-input,\n.lq-sheet-input-wrap > .lq-sheet-mirror {\n position: absolute;\n inset: 0;\n margin: 0;\n padding: 6px 8px;\n font: inherit;\n line-height: 18px;\n white-space: pre-wrap;\n word-break: break-all;\n overflow: hidden;\n border: 0;\n}\n.lq-sheet-formula-input {\n z-index: 1;\n resize: none;\n color: var(--lq-sheet-fg);\n background: transparent;\n outline: none;\n}\n.lq-sheet-formula-input:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-sheet-focus); }\n.lq-sheet-input-wrap > .lq-sheet-mirror { color: var(--lq-sheet-fg); pointer-events: none; }\n.lq-sheet-formula-mode { color: transparent !important; caret-color: var(--lq-sheet-fg); }\n.lq-sheet-mirror[hidden] { display: none; }\n.lq-sheet-ref-token { font-weight: 600; }\n\n.lq-sheet-frame {\n position: relative;\n flex: 1 1 auto;\n min-height: 0;\n}\n.lq-sheet-frame:has(.lq-sheet-grid:focus-visible) { box-shadow: inset 0 0 0 2px var(--lq-sheet-focus); }\n.lq-sheet-viewport {\n position: absolute;\n inset: 0;\n overflow: auto;\n}\n.lq-sheet-grid {\n position: absolute;\n inset: 0;\n outline: none;\n}\n.lq-sheet-spacer { position: relative; }\n.lq-sheet-layer {\n position: sticky;\n top: 0;\n inset-inline-start: 0;\n overflow: hidden;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-bg);\n user-select: none;\n -webkit-user-select: none;\n}\n.lq-sheet-colheads {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n height: 24px;\n z-index: 6;\n background: var(--lq-sheet-head-bg);\n border-bottom: 1px solid var(--lq-sheet-head-border);\n}\n.lq-sheet-corner {\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n height: 24px;\n z-index: 3;\n background: var(--lq-sheet-head-bg);\n border-inline-end: 1px solid var(--lq-sheet-head-border);\n cursor: cell;\n}\n.lq-sheet-corner::after {\n content: \"\";\n position: absolute;\n inset-inline-end: 3px;\n bottom: 3px;\n border-inline-start: 9px solid transparent;\n border-bottom: 9px solid var(--lq-sheet-head-border);\n}\n.lq-sheet-colhead,\n.lq-sheet-rowhead {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n font-size: 12px;\n color: var(--lq-sheet-head-fg);\n background: var(--lq-sheet-head-bg);\n white-space: nowrap;\n cursor: default;\n}\n.lq-sheet-colhead { top: 0; height: 24px; border-inline-end: 1px solid var(--lq-sheet-head-gridline); }\n.lq-sheet-colhead.lq-sheet-frozen { z-index: 2; }\n.lq-sheet-rowhead {\n inset-inline-start: 0;\n top: 0;\n z-index: 5;\n border-inline-end: 1px solid var(--lq-sheet-head-border);\n border-bottom: 1px solid var(--lq-sheet-head-gridline);\n}\n.lq-sheet-head-active { color: var(--lq-sheet-head-strong-fg); background: var(--lq-sheet-head-active-bg); font-weight: 600; }\n.lq-sheet-head-selected { color: var(--lq-sheet-head-selected-fg); background: var(--lq-sheet-head-selected-bg); }\n\n.lq-sheet-band { position: absolute; left: 0; right: 0; overflow: hidden; }\n.lq-sheet-band-main { z-index: 1; }\n.lq-sheet-band-frozen { z-index: 3; box-shadow: 0 1px 0 var(--lq-sheet-border); }\n.lq-sheet-row { position: absolute; inset-inline-start: 0; }\n.lq-sheet-cell {\n position: absolute;\n top: 0;\n z-index: 0;\n display: flex;\n align-items: flex-end;\n padding: 0 4px 2px;\n overflow: hidden;\n white-space: nowrap;\n color: var(--lq-sheet-fg);\n background-color: var(--lq-sheet-bg);\n border-inline-end: 1px solid var(--lq-sheet-gridline);\n border-bottom: 1px solid var(--lq-sheet-gridline);\n cursor: cell;\n}\n.lq-sheet-cell.lq-sheet-has-checkbox { align-items: center; padding-bottom: 0; }\n.lq-sheet-checkbox {\n position: relative;\n flex: none;\n box-sizing: border-box;\n width: calc(14px * var(--lq-sheet-zoom, 1));\n height: calc(14px * var(--lq-sheet-zoom, 1));\n color: var(--lq-sheet-accent);\n background: var(--lq-sheet-bg);\n border: 1.5px solid var(--lq-sheet-muted);\n border-radius: 3px;\n cursor: pointer;\n}\n.lq-sheet-checkbox[data-checked=\"true\"] { background: currentColor; border-color: currentColor; }\n.lq-sheet-checkbox[data-checked=\"true\"]::after {\n content: \"\";\n position: absolute;\n left: 28%;\n top: 6%;\n width: 30%;\n height: 60%;\n border: solid var(--lq-sheet-header-selected-fg);\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n.lq-sheet-cell-arrow {\n position: absolute;\n inset-inline-end: 3px;\n top: 50%;\n width: 0;\n height: 0;\n margin-top: -2px;\n color: var(--lq-sheet-muted);\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 5px solid currentColor;\n cursor: pointer;\n}\n.lq-sheet-cell.lq-sheet-overflow { z-index: 1; }\n.lq-sheet-cell.lq-sheet-merged { z-index: 2; }\n.lq-sheet-cell.lq-sheet-frozen { z-index: 3; }\n.lq-sheet-cell.lq-sheet-frozen.lq-sheet-merged { z-index: 4; }\n.lq-sheet-cell.lq-sheet-wrap { white-space: pre-wrap; word-break: break-word; align-items: flex-start; padding-top: 2px; }\n.lq-sheet--no-gridlines .lq-sheet-cell { border-color: transparent; }\n.lq-sheet-cell-justify,\n.lq-sheet-cell-distributed { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; word-break: break-word; text-align: justify; }\n.lq-sheet-cell-distributed { text-align-last: justify; }\n\n.lq-sheet-overlay { position: absolute; overflow: hidden; pointer-events: none; }\n.lq-sheet-overlay-bl, .lq-sheet-overlay-br { z-index: 2; }\n.lq-sheet-overlay-tl, .lq-sheet-overlay-tr { z-index: 4; }\n.lq-sheet-selection,\n.lq-sheet-active-cell,\n.lq-sheet-fill-preview,\n.lq-sheet-copy-marquee,\n.lq-sheet-ref-highlight { position: absolute; }\n.lq-sheet-selection { background: var(--lq-sheet-range-bg); border: 1px solid var(--lq-sheet-accent); }\n.lq-sheet-active-cell { border: 2px solid var(--lq-sheet-accent); }\n.lq-sheet-fill-preview { border: 1px dashed var(--lq-sheet-muted); }\n.lq-sheet-copy-marquee {\n border: 2px dashed var(--lq-sheet-accent);\n animation: lq-sheet-marquee 1s steps(2) infinite;\n}\n@keyframes lq-sheet-marquee { 50% { border-color: transparent; } }\n.lq-sheet-ref-highlight {\n border: 2px solid var(--lq-sheet-ref-color, var(--lq-sheet-accent));\n background: color-mix(in srgb, var(--lq-sheet-ref-color, var(--lq-sheet-accent)) 10%, transparent);\n}\n.lq-sheet-presence,\n.lq-sheet-presence-range { position: absolute; box-sizing: border-box; }\n.lq-sheet-presence { border: 2px solid var(--lq-sheet-presence-color, var(--lq-sheet-accent)); }\n.lq-sheet-presence-range {\n border: 1px solid var(--lq-sheet-presence-color, var(--lq-sheet-accent));\n background: color-mix(in srgb, var(--lq-sheet-presence-color, var(--lq-sheet-accent)) 10%, transparent);\n}\n.lq-sheet-presence-label {\n position: absolute;\n bottom: 100%;\n inset-inline-start: -2px;\n max-width: 160px;\n padding: 0 4px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: 10px;\n line-height: 14px;\n font-weight: 600;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-bg);\n border: 1px solid var(--lq-sheet-presence-color, var(--lq-sheet-accent));\n border-inline-start-width: 4px;\n}\n.lq-sheet-presence--below > .lq-sheet-presence-label { bottom: auto; top: 100%; }\n.lq-sheet-fill-handle {\n position: absolute;\n width: 8px;\n height: 8px;\n background: var(--lq-sheet-accent);\n border: 1px solid var(--lq-sheet-bg);\n pointer-events: auto;\n cursor: crosshair;\n}\n\n.lq-sheet-editor {\n position: absolute;\n z-index: 8;\n background: var(--lq-sheet-bg);\n border: 2px solid var(--lq-sheet-accent);\n box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);\n}\n.lq-sheet-editor[hidden] { display: none; }\n.lq-sheet-editor-input,\n.lq-sheet-editor > .lq-sheet-mirror {\n position: absolute;\n inset: 0;\n margin: 0;\n padding: 1px 3px;\n font: inherit;\n line-height: 18px;\n white-space: pre-wrap;\n word-break: break-all;\n overflow: hidden;\n border: 0;\n}\n.lq-sheet-editor-input { z-index: 1; resize: none; color: var(--lq-sheet-fg); background: transparent; outline: none; }\n.lq-sheet-editor > .lq-sheet-mirror { color: var(--lq-sheet-fg); pointer-events: none; }\n.lq-sheet-editor-bold .lq-sheet-editor-input, .lq-sheet-editor-bold .lq-sheet-mirror { font-weight: 700; }\n\n.lq-sheet-autocomplete,\n.lq-sheet-hint,\n.lq-sheet-popup {\n position: absolute;\n z-index: 20;\n margin: 0;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-menu-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: var(--lq-sheet-radius);\n box-shadow: var(--lq-sheet-menu-shadow);\n}\n.lq-sheet-autocomplete[hidden], .lq-sheet-hint[hidden] { display: none; }\n.lq-sheet-autocomplete { min-width: 260px; max-width: 420px; padding: 4px 0; list-style: none; }\n.lq-sheet-ac-item { display: flex; gap: 10px; align-items: baseline; padding: 4px 10px; cursor: pointer; }\n.lq-sheet-ac-item strong { flex: none; font-weight: 600; }\n.lq-sheet-ac-item span { overflow: hidden; color: var(--lq-sheet-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }\n.lq-sheet-ac-item[aria-selected=\"true\"] { background: var(--lq-sheet-range-bg); }\n.lq-sheet-hint { padding: 4px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; }\n.lq-sheet-hint b { color: var(--lq-sheet-accent); }\n\n.lq-sheet-menu { min-width: 220px; padding: 4px 0; }\n.lq-sheet-menu-item {\n display: flex;\n width: 100%;\n justify-content: space-between;\n gap: 24px;\n padding: 6px 14px;\n font: inherit;\n text-align: start;\n color: inherit;\n background: transparent;\n border: 0;\n cursor: pointer;\n}\n.lq-sheet-menu-item:hover { background: var(--lq-sheet-range-bg); outline: none; }\n.lq-sheet-menu-item:focus-visible { background: var(--lq-sheet-range-bg); outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; }\n.lq-sheet-menu-item[aria-disabled=\"true\"] { color: var(--lq-sheet-muted); cursor: default; }\n.lq-sheet-menu-label-icon { display: inline-flex; align-items: center; gap: 8px; }\n.lq-sheet-menu-icons .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon) { padding-inline-start: 24px; }\n.lq-sheet-menu-icons .lq-sheet-menu-item[aria-checked] .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon) { padding-inline-start: 24px; }\n.lq-sheet-menu-icons .lq-sheet-menu-item[aria-checked=\"true\"] .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon) { padding-inline-start: 0; }\n.lq-sheet-menu-icons .lq-sheet-menu-item[aria-checked=\"true\"] .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon)::before { content: \"✓\"; display: inline-block; width: 24px; }\n.lq-sheet-menu-shortcut { color: var(--lq-sheet-muted); font-size: 12px; }\n.lq-sheet-menu-item:hover .lq-sheet-menu-shortcut, .lq-sheet-menu-item:focus-visible .lq-sheet-menu-shortcut { color: inherit; }\n.lq-sheet-menu-separator { height: 1px; margin: 4px 0; background: var(--lq-sheet-border); }\n.lq-sheet-find, .lq-sheet-filter { display: flex; flex-direction: column; gap: 8px; width: 300px; padding: 12px; }\n.lq-sheet-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-field input {\n padding: 5px 8px;\n font: inherit;\n font-size: var(--lq-sheet-font-size);\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-input-bg);\n border: 1px solid var(--lq-sheet-input-border);\n border-radius: 4px;\n}\n.lq-sheet-field input::placeholder { color: var(--lq-sheet-muted); opacity: 1; }\n.lq-sheet-check { display: flex; gap: 6px; align-items: center; min-height: 24px; }\n.lq-sheet-actions { display: flex; flex-wrap: wrap; gap: 6px; }\n.lq-sheet-button {\n padding: max(5px, 0.3em) max(10px, 0.5em);\n font: inherit;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-header-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-sheet-button-primary { color: var(--lq-sheet-header-selected-fg); background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); }\n.lq-sheet-button:focus-visible, .lq-sheet-tab:focus-visible, .lq-sheet-tab-add:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-find-status { min-height: 1.2em; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-filter-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; padding: 4px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-dropdown { min-width: 140px; max-height: 240px; overflow: auto; padding: 4px 0; }\n.lq-sheet-option { padding: 4px 10px; cursor: pointer; }\n.lq-sheet-option:hover, .lq-sheet-option:focus { background: var(--lq-sheet-range-bg); outline: none; }\n.lq-sheet-option[aria-selected=\"true\"] { font-weight: 600; }\n\n.lq-sheet-decorations { position: absolute; inset: 0; z-index: 7; pointer-events: none; }\n.lq-sheet-filter-button,\n.lq-sheet-dropdown-button {\n position: absolute;\n width: 17px;\n height: 17px;\n padding: 0;\n pointer-events: auto;\n color: var(--lq-sheet-muted);\n background: var(--lq-sheet-header-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: 3px;\n cursor: pointer;\n}\n.lq-sheet-filter-button::after,\n.lq-sheet-dropdown-button::after {\n content: \"\";\n position: absolute;\n left: 50%;\n top: 50%;\n margin: -2px 0 0 -4px;\n border-left: 4px solid transparent;\n border-right: 4px solid transparent;\n border-top: 5px solid currentColor;\n}\n.lq-sheet-filter-active { color: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); }\n.lq-sheet-filter-button[data-sorted]::after { margin: -1px 0 0 0; border-left-width: 3px; border-right-width: 3px; border-top-width: 4px; }\n.lq-sheet-filter-button[data-sorted]::before { content: \"\\2191\"; position: absolute; left: 1px; top: 0; font-size: 10px; font-weight: 700; line-height: 15px; }\n.lq-sheet-filter-button[data-sorted=\"descending\"]::before { content: \"\\2193\"; }\n.lq-sheet-filter-sort[aria-pressed=\"true\"] { border-color: var(--lq-sheet-accent); box-shadow: inset 0 0 0 1px var(--lq-sheet-accent); }\n.lq-sheet-dropdown-button { width: 18px; }\n.lq-sheet-prompt {\n position: absolute;\n max-width: 260px;\n padding: 6px 8px;\n font-size: 12px;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-menu-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: 4px;\n box-shadow: var(--lq-sheet-menu-shadow);\n}\n\n.lq-sheet-bottom {\n display: flex;\n align-items: stretch;\n flex: none;\n min-height: 30px;\n border-top: 1px solid var(--lq-sheet-border);\n background: var(--lq-sheet-header-bg);\n}\n.lq-sheet-tabbar { display: flex; align-items: stretch; flex: 1 1 auto; min-width: min(45%, 240px); }\n.lq-sheet-tabbar[hidden], .lq-sheet-statusbar[hidden] { display: none; }\n.lq-sheet-tab-add {\n flex: none;\n width: 32px;\n font: inherit;\n font-size: 16px;\n color: var(--lq-sheet-muted);\n background: transparent;\n border: 0;\n border-inline-end: 1px solid var(--lq-sheet-border);\n cursor: pointer;\n}\n.lq-sheet-tab-add[hidden] { display: none; }\n.lq-sheet-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; }\n.lq-sheet-tab {\n flex: none;\n max-width: 200px;\n padding: 0 14px;\n overflow: hidden;\n font: inherit;\n color: var(--lq-sheet-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n background: transparent;\n border: 0;\n border-inline-end: 1px solid var(--lq-sheet-border);\n border-bottom: 3px solid transparent;\n cursor: pointer;\n}\n.lq-sheet-tab-colored { border-bottom-color: var(--lq-sheet-tab-color); }\n.lq-sheet-tab-colored.lq-sheet-tab-active { border-bottom-color: var(--lq-sheet-tab-color); }\n.lq-sheet-tab-active { color: var(--lq-sheet-fg); font-weight: 600; background: var(--lq-sheet-bg); border-bottom-color: var(--lq-sheet-accent); }\n.lq-sheet-tab-input { width: 120px; font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-accent); }\n.lq-sheet-statusbar {\n display: flex;\n align-items: center;\n gap: 16px;\n flex: 0 1 auto;\n min-width: 0;\n padding: 0 12px;\n font-size: 12px;\n color: var(--lq-sheet-muted);\n white-space: pre;\n}\n.lq-sheet-statusbar > * { flex: none; }\n.lq-sheet-statusbar > .lq-sheet-stats { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }\n.lq-sheet--narrow .lq-sheet-bottom { flex-wrap: wrap; }\n.lq-sheet--narrow .lq-sheet-tabbar { flex: 1 1 100%; min-height: 28px; border-bottom: 1px solid var(--lq-sheet-border); }\n.lq-sheet--narrow .lq-sheet-statusbar { flex: 1 1 100%; min-height: 28px; box-sizing: border-box; }\n.lq-sheet-circular-status { color: var(--lq-sheet-danger); }\n.lq-sheet-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n border: 0;\n}\n.lq-sheet--readonly .lq-sheet-cell { cursor: default; }\n.lq-sheet--file-drag { outline: 2px dashed var(--lq-sheet-focus); outline-offset: -2px; }\n@media (prefers-reduced-motion: reduce) {\n .lq-sheet-copy-marquee { animation: none; }\n .lq-sheet *, .lq-sheet *::before, .lq-sheet *::after { transition: none !important; }\n}\n@media (forced-colors: active) {\n .lq-sheet :focus-visible, .lq-sheet-menu :focus-visible, .lq-sheet-option:focus {\n outline: 2px solid Highlight !important;\n outline-offset: -2px;\n }\n}\n.lq-sheet-cell.lq-sheet-link { color: var(--lq-sheet-link, #0b62c4); cursor: pointer; }\n.lq-sheet-cell.lq-sheet-has-note::after {\n content: \"\";\n position: absolute;\n top: 0;\n inset-inline-end: 0;\n border-top: 6px solid var(--lq-sheet-note-marker, #d1242f);\n border-inline-start: 6px solid transparent;\n}\n.lq-sheet-cf-icon { flex: none; margin-inline-end: auto; padding-inline-end: 4px; font-weight: 700; line-height: 1; }\n.lq-sheet-cell.lq-sheet-has-icon { gap: 2px; }\n.lq-sheet-notes, .lq-sheet-outline, .lq-sheet-drawings, .lq-sheet-table-filters {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n.lq-sheet-notes { z-index: 9; }\n.lq-sheet-note {\n position: absolute;\n padding: 6px 8px;\n font-size: 12px;\n line-height: 1.4;\n white-space: pre-wrap;\n word-break: break-word;\n color: #1f2328;\n background: var(--lq-sheet-note-bg, #fff8c5);\n border: 1px solid var(--lq-sheet-note-border, #d4a72c);\n border-radius: 3px;\n box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);\n pointer-events: auto;\n}\n.lq-sheet-note-author { display: block; margin-bottom: 2px; }\n.lq-sheet-outline { z-index: 7; }\n.lq-sheet-outline-strip { position: absolute; background: var(--lq-sheet-head-bg); }\n.lq-sheet-outline-bracket {\n position: absolute;\n border-inline-start: 1px solid var(--lq-sheet-head-fg);\n border-top: 1px solid var(--lq-sheet-head-fg);\n border-bottom: 1px solid var(--lq-sheet-head-fg);\n width: 4px;\n box-sizing: border-box;\n}\n.lq-sheet-outline-strip + .lq-sheet-outline-bracket { width: 4px; }\n.lq-sheet-outline-toggle,\n.lq-sheet-outline-level {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n width: 12px;\n height: 12px;\n padding: 0;\n font: 600 10px/1 var(--lq-sheet-font-family);\n color: var(--lq-sheet-head-strong-fg);\n background: var(--lq-sheet-head-surface);\n border: 1px solid var(--lq-sheet-head-fg);\n border-radius: 2px;\n cursor: pointer;\n pointer-events: auto;\n}\n.lq-sheet-outline-level { width: 13px; height: 14px; }\n.lq-sheet-outline-toggle:focus-visible,\n.lq-sheet-outline-level:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-outline-toggle:disabled,\n.lq-sheet-outline-level:disabled { cursor: default; opacity: 0.6; }\n.lq-sheet-objects { position: absolute; inset: 0; z-index: 5; pointer-events: none; }\n.lq-sheet-drawing-pane { position: absolute; overflow: hidden; }\n.lq-sheet-drawing {\n position: absolute;\n box-sizing: border-box;\n pointer-events: auto;\n cursor: move;\n background: var(--lq-sheet-bg);\n outline: none;\n}\n.lq-sheet-chart { border: 1px solid var(--lq-sheet-border); }\n.lq-sheet-image, .lq-sheet-object { background: transparent; }\n.lq-sheet-image-unsupported { border: 1px dashed var(--lq-sheet-border); background: var(--lq-sheet-bg); }\n.lq-sheet-drawing-body { position: relative; }\n.lq-sheet-object-figure {\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n overflow: hidden;\n}\n.lq-sheet-object-stored { background: var(--lq-sheet-picture-plate, transparent); }\n.lq-sheet-object-icon { flex: 1 1 auto; min-height: 0; max-width: 100%; object-fit: contain; }\n.lq-sheet-object-preview { width: 100%; height: 100%; object-fit: contain; }\n.lq-sheet-object-name {\n flex: none;\n box-sizing: border-box;\n max-width: 100%;\n padding: 0 4px 3px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: calc(12px * var(--lq-sheet-zoom, 1));\n line-height: 1.35;\n text-align: center;\n color: var(--lq-sheet-fg);\n}\n.lq-sheet-object-badge {\n position: absolute;\n top: 2px;\n inset-inline-end: 2px;\n padding: 0 4px;\n font: 700 9px/14px var(--lq-sheet-font-family);\n color: #ffffff;\n background: #6b7280;\n border-radius: 3px;\n pointer-events: none;\n}\n.lq-sheet-object-actions {\n position: absolute;\n inset-inline-start: 0;\n top: 100%;\n z-index: 1;\n display: none;\n box-sizing: border-box;\n height: 30px;\n gap: 4px;\n padding: 4px 0 0;\n white-space: nowrap;\n}\n.lq-sheet-object-actions[data-placement=\"above\"],\n.lq-sheet-object-actions[data-placement=\"inside\"] { padding: 0 0 4px; }\n.lq-sheet-object-summary { display: flex; gap: 14px; align-items: center; }\n.lq-sheet-object-summary-icon { flex: none; width: 48px; height: 60px; }\n.lq-sheet-object-facts { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; }\n.lq-sheet-menu-heading-file {\n display: flex;\n gap: 10px;\n align-items: center;\n max-width: 320px;\n padding: 6px 14px;\n text-transform: none;\n letter-spacing: 0;\n}\n.lq-sheet-menu-image { flex: none; width: 24px; height: 30px; }\n.lq-sheet-menu-heading-file .lq-sheet-menu-heading-text { display: flex; flex-direction: column; min-width: 0; }\n.lq-sheet-menu-heading-file .lq-sheet-menu-heading-title {\n overflow: hidden;\n font-size: 13px;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--lq-sheet-fg);\n}\n.lq-sheet-menu-heading-file .lq-sheet-menu-heading-detail { font-weight: 400; }\n.lq-sheet-drawing-selected .lq-sheet-object-actions,\n.lq-sheet-object:focus-within .lq-sheet-object-actions { display: flex; }\n.lq-sheet-object-action {\n font: inherit;\n font-size: 12px;\n padding: 2px 8px;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-sheet-object-action:hover { border-color: var(--lq-sheet-accent); }\n.lq-sheet-object-action:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-drawing-body, .lq-sheet-drawing-body > img, .lq-sheet-drawing-body > svg {\n display: block;\n width: 100%;\n height: 100%;\n}\n.lq-sheet-drawing-body > img { object-fit: fill; }\n.lq-sheet-drawing-selected, .lq-sheet-drawing:focus-visible { box-shadow: 0 0 0 2px var(--lq-sheet-accent); }\n.lq-sheet-drawing-handle, .lq-sheet-drawing-rotate {\n position: absolute;\n display: none;\n box-sizing: border-box;\n width: 10px;\n height: 10px;\n margin: -5px;\n background: var(--lq-sheet-bg);\n border: 1px solid var(--lq-sheet-accent);\n touch-action: none;\n}\n.lq-sheet-drawing-handle::after, .lq-sheet-drawing-rotate::after { content: ''; position: absolute; inset: -7px; }\n.lq-sheet-drawing-handle[data-handle='nw'] { inset-inline-start: 0; top: 0; }\n.lq-sheet-drawing-handle[data-handle='n'] { inset-inline-start: 50%; top: 0; }\n.lq-sheet-drawing-handle[data-handle='ne'] { inset-inline-start: 100%; top: 0; }\n.lq-sheet-drawing-handle[data-handle='e'] { inset-inline-start: 100%; top: 50%; }\n.lq-sheet-drawing-handle[data-handle='se'] { inset-inline-start: 100%; top: 100%; }\n.lq-sheet-drawing-handle[data-handle='s'] { inset-inline-start: 50%; top: 100%; }\n.lq-sheet-drawing-handle[data-handle='sw'] { inset-inline-start: 0; top: 100%; }\n.lq-sheet-drawing-handle[data-handle='w'] { inset-inline-start: 0; top: 50%; }\n.lq-sheet-drawing-rotate { inset-inline-start: 50%; top: -24px; border-radius: 50%; cursor: grab; }\n.lq-sheet-drawing-rotate:hover { background: var(--lq-sheet-accent); }\n.lq-sheet-drawing-selected > .lq-sheet-drawing-handle,\n.lq-sheet-drawing-selected > .lq-sheet-drawing-rotate { display: block; }\n.lq-sheet-drawing-locked { cursor: default; }\n.lq-sheet-drawing-locked > .lq-sheet-drawing-handle,\n.lq-sheet-drawing-locked > .lq-sheet-drawing-rotate { display: none; }\n.lq-sheet-drawing-cropped { overflow: hidden; }\n.lq-sheet-drawing-cropped > img { position: absolute; max-width: none; }\n.lq-sheet-image-loading { background: color-mix(in srgb, var(--lq-sheet-border) 35%, transparent); }\n.lq-sheet-image .lq-sheet-drawing-body > img:not([src]) { visibility: hidden; }\n.lq-sheet-table-filters { z-index: 6; }\n.lq-sheet-table-filters > .lq-sheet-filter-button { pointer-events: auto; }\n@media (forced-colors: active) {\n .lq-sheet-cell.lq-sheet-has-note::after { border-top-color: Mark; }\n .lq-sheet-drawing-selected { outline: 2px solid Highlight; }\n}\n.lq-sheet-modal-backdrop {\n position: absolute;\n inset: 0;\n z-index: 40;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding: 32px 16px;\n background: rgba(15, 23, 42, 0.28);\n overflow: auto;\n}\n.lq-sheet-modal {\n display: flex;\n flex-direction: column;\n gap: 10px;\n width: min(520px, 100%);\n max-height: calc(100% - 16px);\n padding: 14px 16px;\n overflow: auto;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-menu-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: var(--lq-sheet-radius);\n box-shadow: var(--lq-sheet-menu-shadow);\n}\n.lq-sheet-modal-title { margin: 0; font-size: 15px; font-weight: 600; }\n.lq-sheet-modal-body { display: flex; flex-direction: column; gap: 8px; }\n.lq-sheet-modal-body [hidden] { display: none; }\n.lq-sheet-modal-status { min-height: 1.2em; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-modal-note { margin: 0; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-modal :focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-select, .lq-sheet-modal input[type=\"text\"], .lq-sheet-modal input[type=\"number\"], .lq-sheet-modal textarea {\n font: inherit;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-input-bg);\n border: 1px solid var(--lq-sheet-input-border);\n border-radius: 4px;\n padding: 3px 6px;\n}\n.lq-sheet-tablist { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--lq-sheet-border); }\n.lq-sheet-tab-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: inherit; color: var(--lq-sheet-fg); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }\n.lq-sheet-tab-button[aria-selected=\"true\"] { border-bottom-color: var(--lq-sheet-accent); font-weight: 600; }\n.lq-sheet-report-dialog .lq-sheet-report-heading { margin: 10px 0 4px; font-size: 13px; }\n.lq-sheet-report-count { display: inline-block; min-width: 18px; padding: 0 6px; font-size: 11px; font-weight: 600; text-align: center; color: var(--lq-sheet-fg); background: var(--lq-sheet-header-bg); border: 1px solid var(--lq-sheet-border); border-radius: 9px; }\n.lq-sheet-report-list { margin: 0; padding-inline-start: 18px; max-height: 140px; overflow: auto; }\n.lq-sheet-report-detail { display: block; font-size: 11px; color: var(--lq-sheet-muted); overflow-wrap: anywhere; }\n.lq-sheet-properties-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 10px 0 0; font-size: 12px; }\n.lq-sheet-properties-facts dt { color: var(--lq-sheet-muted); }\n.lq-sheet-properties-facts dd { margin: 0; overflow-wrap: anywhere; }\n.lq-sheet-format-fill-sample { height: 40px; margin-top: 8px; border: 1px solid var(--lq-sheet-border); border-radius: 3px; }\n.lq-sheet-line-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }\n.lq-sheet-line-option { display: flex; align-items: center; height: 22px; padding: 0 8px; color: #1f2328; background: #ffffff; border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; }\n.lq-sheet-line-option[aria-checked=\"true\"] { border-color: var(--lq-sheet-accent); box-shadow: 0 0 0 1px var(--lq-sheet-accent); }\n.lq-sheet-line-option:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-line-sample { flex: 1 1 auto; height: 4px; box-sizing: border-box; }\n.lq-sheet-tabpanel { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }\n.lq-sheet-tabpanel[hidden] { display: none; }\n.lq-sheet-format-preview { display: block; padding: 6px 8px; font-variant-numeric: tabular-nums; background: var(--lq-sheet-header-bg); border-radius: 4px; }\n.lq-sheet-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 6px 8px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-names-form { display: flex; flex-direction: column; gap: 8px; }\n.lq-sheet-names-list { max-height: 220px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-names-table { width: 100%; border-collapse: collapse; font-size: 12px; }\n.lq-sheet-names-table th, .lq-sheet-names-table td { padding: 4px 6px; text-align: start; border-bottom: 1px solid var(--lq-sheet-gridline); }\n.lq-sheet-names-row { cursor: pointer; }\n.lq-sheet-names-row[aria-selected=\"true\"] { background: var(--lq-sheet-range-bg); }\n.lq-sheet-names-empty { color: var(--lq-sheet-muted); }\n.lq-sheet-styles-heading { margin: 4px 0; font-size: 12px; font-weight: 600; color: var(--lq-sheet-muted); }\n.lq-sheet-styles-list { display: flex; flex-wrap: wrap; gap: 6px; }\n.lq-sheet-style-swatch { min-width: 92px; padding: 6px 8px; font: inherit; font-size: 12px; text-align: start; color: var(--lq-sheet-fg); background: var(--lq-sheet-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; cursor: pointer; }\n.lq-sheet-evaluate-ref { font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-evaluate-expression { padding: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; background: var(--lq-sheet-header-bg); border-radius: 4px; }\n.lq-sheet-evaluate-next { text-decoration-thickness: 2px; text-decoration-color: var(--lq-sheet-accent); }\n.lq-sheet-audit { position: absolute; inset: 0 auto auto 0; z-index: 6; overflow: hidden; pointer-events: none; }\n.lq-sheet--rtl .lq-sheet-audit { inset: 0 0 auto auto; }\n.lq-sheet-audit-line { stroke: #1f5fbf; stroke-width: 1.5; }\n.lq-sheet-audit-external { stroke-dasharray: 4 3; }\n.lq-sheet-audit-head, .lq-sheet-audit-dot { fill: #1f5fbf; }\n.lq-sheet-audit-range { fill: none; stroke: #1f5fbf; stroke-width: 1.5; }\n.lq-sheet-audit-sheet-icon { fill: var(--lq-sheet-bg); stroke: #1f5fbf; stroke-width: 1.2; }\n@media (forced-colors: active) {\n .lq-sheet-audit-line, .lq-sheet-audit-range, .lq-sheet-audit-sheet-icon { stroke: CanvasText; }\n .lq-sheet-audit-head, .lq-sheet-audit-dot { fill: CanvasText; }\n}\n\n.lq-sheet-main { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; }\n.lq-sheet-main > .lq-sheet-frame { min-width: 0; }\n.lq-sheet-icon { flex: none; display: block; }\n\n.lq-sheet-ribbon {\n flex: none;\n border-bottom: 1px solid var(--lq-sheet-border);\n background: var(--lq-sheet-header-bg);\n color: var(--lq-sheet-header-fg);\n}\n.lq-sheet-ribbon[hidden], .lq-sheet-ribbon-tabs[hidden], .lq-sheet-ribbon-more[hidden] { display: none; }\n.lq-sheet-ribbon-tabs {\n display: flex;\n gap: 2px;\n padding: 2px 8px 0;\n overflow-x: auto;\n scrollbar-width: none;\n}\n.lq-sheet-ribbon--tabs-scroll .lq-sheet-ribbon-tabs {\n background:\n linear-gradient(to right, var(--lq-sheet-header-bg) 40%, transparent) left center / 28px 100% no-repeat local,\n linear-gradient(to left, var(--lq-sheet-header-bg) 40%, transparent) right center / 28px 100% no-repeat local,\n linear-gradient(to right, color-mix(in srgb, var(--lq-sheet-fg) 40%, transparent), transparent) left center / 12px 100% no-repeat scroll,\n linear-gradient(to left, color-mix(in srgb, var(--lq-sheet-fg) 40%, transparent), transparent) right center / 12px 100% no-repeat scroll;\n}\n.lq-sheet--narrow .lq-sheet-ribbon-tabs { gap: 0; padding-inline: 4px; }\n.lq-sheet--narrow .lq-sheet-ribbon-tab { padding-inline: 6px; }\n.lq-sheet-ribbon-tab {\n position: relative;\n flex: none;\n padding: 5px 12px;\n font: inherit;\n color: var(--lq-sheet-muted);\n background: transparent;\n border: 0;\n border-bottom: 2px solid transparent;\n cursor: pointer;\n}\n.lq-sheet-ribbon-tab:hover { color: var(--lq-sheet-fg); }\n.lq-sheet-ribbon-tab[aria-selected=\"true\"] { color: var(--lq-sheet-fg); font-weight: 600; border-bottom-color: var(--lq-sheet-accent); }\n.lq-sheet-ribbon-tab:focus-visible, .lq-sheet-ribbon-control:focus-visible {\n outline: 2px solid var(--lq-sheet-focus);\n outline-offset: -2px;\n}\n.lq-sheet-ribbon--keytips .lq-sheet-ribbon-tab::after {\n content: attr(data-keytip);\n position: absolute;\n inset-inline-start: 50%;\n bottom: -6px;\n z-index: 2;\n padding: 0 4px;\n font-size: 11px;\n font-weight: 600;\n line-height: 15px;\n color: var(--lq-sheet-bg);\n background: var(--lq-sheet-fg);\n border-radius: 3px;\n}\n.lq-sheet-ribbon-panel { display: flex; align-items: stretch; min-width: 0; background: var(--lq-sheet-bg); border-top: 1px solid var(--lq-sheet-border); }\n.lq-sheet-ribbon-bar { display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; }\n.lq-sheet-ribbon-group {\n display: flex;\n flex: none;\n flex-direction: column;\n justify-content: space-between;\n padding: 4px 8px 2px;\n border-inline-end: 1px solid var(--lq-sheet-gridline);\n}\n.lq-sheet-ribbon-group-body { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; max-width: 340px; }\n.lq-sheet-ribbon-group[data-group=\"library\"] .lq-sheet-ribbon-group-body { max-width: 620px; }\n.lq-sheet-ribbon-group-label { margin-top: 2px; font-size: 11px; line-height: 1.2; text-align: center; color: var(--lq-sheet-muted); white-space: nowrap; }\n.lq-sheet-ribbon--compact .lq-sheet-ribbon-group-label { display: none; }\n.lq-sheet-ribbon--compact .lq-sheet-ribbon-group { padding: 3px 6px; }\n.lq-sheet-ribbon--compact .lq-sheet-ribbon-panel { border-top: 0; }\n.lq-sheet-ribbon-control {\n display: inline-flex;\n gap: 4px;\n align-items: center;\n justify-content: center;\n min-width: 26px;\n height: 26px;\n padding: 0 5px;\n font: inherit;\n font-size: 12px;\n color: var(--lq-sheet-fg);\n background: transparent;\n border: 1px solid transparent;\n border-radius: 4px;\n cursor: pointer;\n position: relative;\n white-space: nowrap;\n}\n.lq-sheet-ribbon-control::after { content: ''; position: absolute; inset: -3px 0; }\n@media (pointer: coarse) { .lq-sheet-ribbon-control::after { inset: -9px -4px; } }\n.lq-sheet-ribbon-control:hover { background: var(--lq-sheet-range-bg); }\n.lq-sheet-ribbon-control[aria-pressed=\"true\"], .lq-sheet-ribbon-control[aria-expanded=\"true\"] {\n background: var(--lq-sheet-range-bg);\n border-color: var(--lq-sheet-accent);\n}\n.lq-sheet-ribbon-control[aria-disabled=\"true\"], .lq-sheet-ribbon-select:disabled { color: var(--lq-sheet-muted); cursor: default; opacity: 0.6; }\n.lq-sheet-ribbon-control[aria-disabled=\"true\"]:hover { background: transparent; }\n.lq-sheet-ribbon-glyph { min-width: 14px; font-weight: 700; text-align: center; }\n.lq-sheet-ribbon-chevron { width: 10px; height: 10px; opacity: 0.7; }\n.lq-sheet-ribbon-color { position: relative; padding-bottom: 4px; }\n.lq-sheet-ribbon-swatch {\n position: absolute;\n inset-inline: 5px 17px;\n bottom: 2px;\n height: 3px;\n border: 1px solid var(--lq-sheet-border);\n border-radius: 1px;\n}\n.lq-sheet-ribbon-select {\n max-width: 132px;\n padding: 0 4px;\n background: var(--lq-sheet-input-bg);\n border-color: var(--lq-sheet-input-border);\n}\n.lq-sheet-ribbon-select[data-control=\"fitWidth\"], .lq-sheet-ribbon-select[data-control=\"fitHeight\"] { max-width: 176px; }\n.lq-sheet-ribbon-more { flex: none; align-self: center; margin: 0 6px; }\n.lq-sheet-ribbon-overflow { display: flex; flex-wrap: wrap; max-width: min(520px, 90vw); padding: 4px; }\n.lq-sheet-ribbon-overflow .lq-sheet-ribbon-group { box-sizing: border-box; max-width: 100%; border-inline-end: 0; }\n.lq-sheet-ribbon-overflow .lq-sheet-ribbon-group-body { max-width: 100%; }\n.lq-sheet-menu { max-height: min(420px, 70vh); overflow-y: auto; }\n.lq-sheet-menu-heading { padding: 8px 14px 4px; font-size: var(--lq-sheet-text-sm); font-weight: 600; color: var(--lq-sheet-muted); }\n.lq-sheet-menu-item[aria-checked=\"true\"] .lq-sheet-menu-label::before { content: \"✓ \"; }\n.lq-sheet-menu-item[aria-checked=\"false\"] .lq-sheet-menu-label { padding-inline-start: 1.1em; }\n.lq-sheet-palette { display: flex; flex-direction: column; gap: 8px; padding: 10px; }\n.lq-sheet-palette-grid { display: grid; grid-template-columns: repeat(10, 20px); gap: 3px; }\n.lq-sheet-palette-swatch { width: 20px; height: 20px; padding: 0; border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; }\n.lq-sheet-palette-swatch[aria-pressed=\"true\"] { box-shadow: 0 0 0 2px var(--lq-sheet-accent); }\n.lq-sheet-palette-swatch:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-palette-custom { flex-direction: row; align-items: center; justify-content: space-between; }\n.lq-sheet-palette-custom input { width: 44px; height: 24px; padding: 0; }\n\n.lq-sheet-zoom { display: inline-flex; gap: 4px; align-items: center; margin-inline-start: auto; }\n.lq-sheet-zoom-slider { width: 96px; accent-color: var(--lq-sheet-accent); }\n.lq-sheet-zoom-button {\n min-width: 22px;\n height: 22px;\n padding: 0 4px;\n font: inherit;\n color: var(--lq-sheet-fg);\n background: transparent;\n border: 1px solid transparent;\n border-radius: 4px;\n cursor: pointer;\n}\n.lq-sheet-zoom-button:hover { background: var(--lq-sheet-range-bg); }\n.lq-sheet-zoom-button:focus-visible, .lq-sheet-zoom-slider:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-zoom-value { min-width: 44px; font-variant-numeric: tabular-nums; }\n\n.lq-sheet-sidepanel {\n display: flex;\n flex: none;\n flex-direction: column;\n width: 280px;\n max-width: 60%;\n min-height: 0;\n background: var(--lq-sheet-bg);\n border-inline-start: 1px solid var(--lq-sheet-border);\n}\n.lq-sheet-sidepanel[hidden] { display: none; }\n.lq-sheet-sidepanel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--lq-sheet-border); background: var(--lq-sheet-header-bg); }\n.lq-sheet-sidepanel-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; }\n.lq-sheet-sidepanel-icon { display: inline-flex; flex: none; margin-inline-end: 8px; color: var(--lq-sheet-muted); }\n.lq-sheet-sidepanel-icon[hidden] { display: none; }\n.lq-sheet-sidepanel-close { display: inline-flex; padding: 4px; color: var(--lq-sheet-fg); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }\n.lq-sheet-sidepanel-close:hover { background: var(--lq-sheet-range-bg); }\n.lq-sheet-sidepanel-close:focus-visible { outline: 2px solid var(--lq-sheet-focus); }\n.lq-sheet-sidepanel-body { flex: 1 1 auto; min-height: 0; padding: 10px; overflow: auto; }\n.lq-sheet-spelling { display: flex; flex-direction: column; gap: 10px; }\n.lq-sheet-modal.lq-sheet-spelling-dialog { width: min(600px, calc(100% - 32px)); max-width: none; box-sizing: border-box; }\n.lq-sheet-spelling-word { display: block; min-height: 20px; font-size: var(--lq-font-size, 13px); font-weight: 600; color: var(--lq-sheet-fg); }\n.lq-sheet-spelling-context { margin: 0; font-size: var(--lq-sheet-text-sm, 12px); color: var(--lq-sheet-muted); overflow-wrap: anywhere; }\n.lq-sheet-spelling-mark { padding: 0 1px; color: inherit; background: transparent; text-decoration: underline wavy var(--lq-danger, #cf222e); text-underline-offset: 3px; }\n.lq-sheet-spelling-list { width: 100%; height: auto; min-height: 96px; padding: 2px; }\n.lq-sheet-thread-composer { position: relative; }\n.lq-sheet-mention { color: var(--lq-sheet-link, #0b62c4); font-weight: 600; }\n.lq-sheet-mention-list { position: absolute; z-index: 3; inset-inline: 0; top: 100%; display: flex; flex-direction: column; max-height: 200px; margin-top: 2px; padding: 4px; overflow: auto; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius, 6px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); }\n.lq-sheet-mention-list[hidden] { display: none; }\n.lq-sheet-mention-option { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; min-height: var(--lq-control-height, 32px); padding: 0 8px; line-height: var(--lq-control-height, 32px); border-radius: var(--lq-radius-control, 4px); cursor: pointer; }\n.lq-sheet-mention-option[aria-selected=\"true\"] { background: var(--lq-sheet-range-bg); outline: 1px solid var(--lq-sheet-focus); }\n.lq-sheet-mention-detail { font-size: var(--lq-sheet-text-sm, 12px); color: var(--lq-sheet-muted); }\n.lq-sheet-mention-option[aria-selected=\"true\"] .lq-sheet-mention-detail { color: inherit; }\n.lq-sheet-datepicker { padding: 8px; min-width: 252px; }\n.lq-sheet-datepicker-header { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 4px; }\n.lq-sheet-datepicker-title { flex: 1 1 auto; font-size: var(--lq-font-size, 13px); font-weight: 600; text-align: center; }\n.lq-sheet-datepicker-step { display: inline-flex; align-items: center; justify-content: center; width: var(--lq-control-height, 32px); height: var(--lq-control-height, 32px); padding: 0; color: var(--lq-sheet-fg); background: transparent; border: 0; border-radius: var(--lq-radius-control, 4px); cursor: pointer; }\n.lq-sheet-datepicker-grid { width: 100%; border-collapse: collapse; }\n.lq-sheet-datepicker-grid th { height: 24px; padding: 0; font-size: var(--lq-sheet-text-xs, 11px); font-weight: 600; color: var(--lq-sheet-muted); text-align: center; }\n.lq-sheet-datepicker-grid td { padding: 1px; text-align: center; }\n.lq-sheet-datepicker-day { width: 32px; height: 32px; padding: 0; font: inherit; font-variant-numeric: tabular-nums; color: var(--lq-sheet-fg); background: transparent; border: 1px solid transparent; border-radius: var(--lq-radius-control, 4px); cursor: pointer; }\n.lq-sheet-datepicker-day[data-outside=\"true\"] { color: var(--lq-sheet-muted); }\n.lq-sheet-datepicker-day[aria-current=\"date\"] { border-color: var(--lq-input-border, #818b98); font-weight: 600; }\n.lq-sheet-datepicker-day[data-selected=\"true\"] { background: color-mix(in srgb, var(--lq-accent, #1f6feb) 16%, transparent); border-color: color-mix(in srgb, var(--lq-accent, #1f6feb) 55%, transparent); }\n.lq-sheet-datepicker-day:hover, .lq-sheet-datepicker-step:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-datepicker-day:focus-visible, .lq-sheet-datepicker-step:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-datepicker-footer { display: flex; justify-content: flex-end; margin-top: 6px; }\n.lq-sheet-modal.lq-sheet-csv-dialog { width: min(560px, calc(100% - 32px)); max-width: none; box-sizing: border-box; }\n.lq-sheet-csv-dialog .lq-sheet-modal-body { min-width: 0; }\n.lq-sheet-spelling { min-width: 0; }\n.lq-sheet-csv-preview-wrap { max-width: 100%; max-height: 190px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius-control, 4px); }\n.lq-sheet-csv-preview-wrap:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-csv-preview { width: 100%; border-collapse: collapse; font-size: var(--lq-sheet-text-sm, 12px); color: var(--lq-sheet-fg); }\n.lq-sheet-csv-preview caption { padding: 4px 8px; color: var(--lq-sheet-muted); text-align: start; caption-side: top; }\n.lq-sheet-csv-preview td { max-width: 160px; padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid var(--lq-sheet-border); }\n.lq-sheet-csv-preview td[data-kind=\"number\"], .lq-sheet-csv-preview td[data-kind=\"date\"] { text-align: end; font-variant-numeric: tabular-nums; }\n.lq-sheet-chart-format { display: flex; flex-direction: column; gap: 10px; }\n.lq-sheet-chart-format-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius-control, 4px); }\n.lq-sheet-chart-format-legend { padding: 0 4px; font-size: var(--lq-sheet-text-sm, 12px); font-weight: 600; color: var(--lq-sheet-fg); }\n.lq-sheet-chart-format-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; }\n.lq-sheet-chart-format-color { display: flex; gap: 10px; align-items: end; justify-content: space-between; }\n.lq-sheet-chart-format-swatch { width: 44px; height: var(--lq-control-height, 32px); padding: 2px; background: var(--lq-sheet-bg); border: 1px solid var(--lq-input-border, #818b98); border-radius: var(--lq-radius-control, 4px); cursor: pointer; }\n.lq-sheet-chart-format-swatch:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-chart-format .lq-sheet-select, .lq-sheet-chart-format input[type=\"text\"], .lq-sheet-chart-format input[type=\"number\"] { width: 100%; min-width: 0; box-sizing: border-box; }\n.lq-sheet-panel-heading { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--lq-sheet-muted); }\n.lq-sheet-panel-hint { margin: 8px 0; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-pivot-panel { display: flex; flex-direction: column; gap: 6px; }\n.lq-sheet-pivot-fields { display: flex; flex-direction: column; gap: 0; max-height: 180px; padding: 6px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-pivot-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }\n.lq-sheet-pivot-list { display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 4px; border: 1px dashed var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-pivot-list-over { border-color: var(--lq-sheet-accent); background: var(--lq-sheet-range-bg); }\n.lq-sheet-pivot-chip { padding: 3px 6px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; background: var(--lq-sheet-header-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; cursor: grab; }\n.lq-sheet-pivot-chip:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-pivot-empty { padding: 6px; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-pivot-layout { display: flex; flex-direction: column; gap: 4px; }\n.lq-sheet-pivot-items { display: flex; flex-direction: column; gap: 2px; max-height: 240px; min-width: 220px; padding: 6px 8px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius-control, 4px); }\n.lq-sheet-comments-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }\n.lq-sheet-comment { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-comment-cell { align-self: flex-start; padding: 0; font: inherit; font-weight: 600; color: var(--lq-sheet-accent); background: transparent; border: 0; cursor: pointer; text-decoration: underline; }\n.lq-sheet-comment-cell:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 2px; }\n.lq-sheet-comment-author { font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-comment-text { font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; resize: vertical; }\n.lq-sheet-comment-delete { align-self: flex-end; }\n\n.lq-sheet-slicers { position: absolute; right: 0; bottom: 0; z-index: 6; overflow: hidden; pointer-events: none; }\n.lq-sheet--rtl .lq-sheet-slicers { right: auto; left: 0; }\n.lq-sheet-slicer {\n position: absolute;\n display: flex;\n flex-direction: column;\n min-width: 96px;\n min-height: 64px;\n pointer-events: auto;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-menu-bg);\n border: 1px solid var(--lq-sheet-border);\n border-radius: 4px;\n box-shadow: var(--lq-sheet-menu-shadow);\n}\n.lq-sheet-slicer-header { display: flex; flex: none; align-items: center; min-height: 28px; padding: 4px 8px; padding-inline-end: 34px; font-weight: 600; background: var(--lq-sheet-header-bg); border-bottom: 1px solid var(--lq-sheet-border); cursor: move; touch-action: none; }\n.lq-sheet-slicer-header:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; }\n.lq-sheet-slicer-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lq-sheet-slicer-clear { position: absolute; top: 2px; inset-inline-end: 4px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: inherit; background: transparent; border: 0; border-radius: 3px; cursor: pointer; }\n.lq-sheet-slicer-clear:disabled { opacity: 0.4; cursor: default; }\n.lq-sheet-slicer-clear:focus-visible { outline: 2px solid var(--lq-sheet-focus); }\n.lq-sheet-slicer-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-height: 0; padding: 6px; overflow: auto; }\n.lq-sheet-slicer-list:not([data-columns=\"1\"]) { display: grid; grid-template-columns: repeat(var(--lq-sheet-slicer-columns, 1), minmax(0, 1fr)); align-content: start; }\n.lq-sheet-slicer-item { flex: none; padding: 4px 8px; overflow: hidden; font: inherit; text-align: start; text-overflow: ellipsis; white-space: nowrap; color: var(--lq-sheet-muted); background: transparent; border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; }\n.lq-sheet-slicer-item[aria-selected=\"true\"] { color: var(--lq-sheet-header-selected-fg); background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); }\n.lq-sheet-slicer-item[aria-disabled=\"true\"] { cursor: default; }\n.lq-sheet-slicer-item:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n\n.lq-sheet-filter { max-height: min(520px, 80vh); overflow: auto; }\n.lq-sheet-filter-advanced { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }\n.lq-sheet-filter-advanced > summary { cursor: pointer; color: var(--lq-sheet-muted); }\n.lq-sheet-filter-advanced .lq-sheet-field { margin-top: 6px; }\n.lq-sheet-filter-advanced .lq-sheet-field[hidden], .lq-sheet-filter-list [hidden], .lq-sheet-field[hidden], .lq-sheet-check[hidden] { display: none; }\n.lq-sheet-filter-year > summary { display: flex; gap: 6px; align-items: center; cursor: pointer; }\n.lq-sheet-filter-month { padding-inline-start: 22px; }\n.lq-sheet-dialog-note { margin: 0; font-size: 12px; color: var(--lq-sheet-muted); }\n.lq-sheet-sort-levels { display: flex; flex-direction: column; gap: 6px; }\n.lq-sheet-sort-level { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) repeat(3, 32px); gap: 4px; align-items: center; }\n.lq-sheet-sort-level > .lq-sheet-select { width: 100%; min-width: 0; }\n.lq-sheet-sort-level > .lq-sheet-button { min-height: 28px; padding: 4px 0; text-align: center; }\n.lq-sheet-function-list { height: 180px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-function-list .lq-sheet-option[aria-selected=\"true\"] { background: var(--lq-sheet-range-bg); }\n.lq-sheet-function-detail { min-height: 3.6em; font-size: 12px; }\n.lq-sheet-function-detail p { margin: 2px 0 0; color: var(--lq-sheet-muted); }\n.lq-sheet-split-preview { min-height: 1.3em; font-size: 12px; color: var(--lq-sheet-muted); }\n@media (forced-colors: active) {\n .lq-sheet-ribbon-control[aria-pressed=\"true\"], .lq-sheet-ribbon-tab[aria-selected=\"true\"], .lq-sheet-slicer-item[aria-selected=\"true\"] {\n outline: 2px solid Highlight;\n outline-offset: -2px;\n }\n .lq-sheet-palette-swatch { forced-color-adjust: none; }\n}\n\n.lq-sheet-shapes {\n position: absolute;\n inset: 0;\n pointer-events: none;\n}\n.lq-sheet-shape-pane { position: absolute; overflow: hidden; }\n.lq-sheet-shape {\n position: absolute;\n box-sizing: border-box;\n pointer-events: auto;\n cursor: move;\n outline: none;\n touch-action: none;\n transform-origin: 50% 50%;\n}\n.lq-sheet-shape-body { position: absolute; inset: 0; }\n.lq-sheet-shape-svg { display: block; overflow: visible; }\n.lq-sheet-shape-outline:not([fill]) { fill: color-mix(in srgb, var(--lq-sheet-accent) 16%, var(--lq-sheet-bg)); }\n.lq-sheet-shape-outline:not([stroke]), .lq-sheet-shape-stroke:not([stroke]) { stroke: var(--lq-sheet-accent); }\n.lq-sheet-shape-arrowhead:not([fill]) { fill: var(--lq-sheet-accent); }\n.lq-sheet-shape-textBox .lq-sheet-shape-outline:not([fill]) { fill: var(--lq-sheet-bg); }\n.lq-sheet-shape-textBox .lq-sheet-shape-outline:not([stroke]) { stroke: var(--lq-sheet-border); }\n.lq-sheet-shape-text, .lq-sheet-shape-editor {\n position: absolute;\n inset: 0;\n box-sizing: border-box;\n margin: 0;\n padding: 6px;\n overflow: hidden;\n color: var(--lq-sheet-fg);\n font: inherit;\n line-height: 1.3;\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n.lq-sheet-shape-text {\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n pointer-events: none;\n}\n.lq-sheet-shape-textBox > .lq-sheet-shape-text { display: block; text-align: start; }\n.lq-sheet-shape-flat > .lq-sheet-shape-text,\n.lq-sheet-shape-editing > .lq-sheet-shape-text { display: none; }\n.lq-sheet-shape-editor {\n width: 100%;\n height: 100%;\n border: 0;\n background: var(--lq-sheet-bg);\n resize: none;\n cursor: text;\n outline: 2px solid var(--lq-sheet-focus);\n outline-offset: -2px;\n}\n.lq-sheet-shape-selected, .lq-sheet-shape:focus-visible {\n outline: 2px solid var(--lq-sheet-focus);\n outline-offset: 3px;\n}\n.lq-sheet-shape-handle, .lq-sheet-shape-rotate {\n position: absolute;\n display: none;\n box-sizing: border-box;\n width: 10px;\n height: 10px;\n margin: -5px 0 0 -5px;\n border: 1px solid var(--lq-sheet-accent);\n background: var(--lq-sheet-bg);\n}\n.lq-sheet-shape-handle::after, .lq-sheet-shape-rotate::after { content: ''; position: absolute; inset: -7px; }\n.lq-sheet-shape-selected > .lq-sheet-shape-handle, .lq-sheet-shape-selected > .lq-sheet-shape-rotate { display: block; }\n.lq-sheet-shape-locked > .lq-sheet-shape-handle, .lq-sheet-shape-locked > .lq-sheet-shape-rotate,\n.lq-sheet-shape-editing > .lq-sheet-shape-handle, .lq-sheet-shape-editing > .lq-sheet-shape-rotate { display: none; }\n.lq-sheet-shape-flat > .lq-sheet-shape-handle:not([data-handle='nw']):not([data-handle='se']) { display: none; }\n.lq-sheet-shape-handle, .lq-sheet-shape-rotate { transform: scale(calc(1 / var(--lq-sheet-shape-zoom, 1))); }\n.lq-sheet-shape-handle[data-handle='nw'] { left: 0; top: 0; cursor: nwse-resize; }\n.lq-sheet-shape-handle[data-handle='n'] { left: 50%; top: 0; cursor: ns-resize; }\n.lq-sheet-shape-handle[data-handle='ne'] { left: 100%; top: 0; cursor: nesw-resize; }\n.lq-sheet-shape-handle[data-handle='e'] { left: 100%; top: 50%; cursor: ew-resize; }\n.lq-sheet-shape-handle[data-handle='se'] { left: 100%; top: 100%; cursor: nwse-resize; }\n.lq-sheet-shape-handle[data-handle='s'] { left: 50%; top: 100%; cursor: ns-resize; }\n.lq-sheet-shape-handle[data-handle='sw'] { left: 0; top: 100%; cursor: nesw-resize; }\n.lq-sheet-shape-handle[data-handle='w'] { left: 0; top: 50%; cursor: ew-resize; }\n.lq-sheet-shape-rotate {\n left: 50%;\n top: -24px;\n border-radius: 50%;\n cursor: grab;\n transition: background-color 0.12s;\n}\n.lq-sheet-shape-rotate:hover { background: var(--lq-sheet-accent); }\n.lq-sheet-shape-locked { cursor: default; }\n@media (prefers-reduced-motion: reduce) {\n .lq-sheet-shape-rotate { transition: none; }\n}\n@media (forced-colors: active) {\n .lq-sheet-shape-outline, .lq-sheet-shape-outline:not([fill]) { fill: Canvas; }\n .lq-sheet-shape-outline, .lq-sheet-shape-stroke,\n .lq-sheet-shape-outline:not([stroke]), .lq-sheet-shape-stroke:not([stroke]) { stroke: CanvasText; }\n .lq-sheet-shape-arrowhead, .lq-sheet-shape-arrowhead:not([fill]) { fill: CanvasText; }\n .lq-sheet-shape-text { color: CanvasText !important; }\n .lq-sheet-shape-selected, .lq-sheet-shape:focus-visible { outline-color: Highlight; }\n .lq-sheet-shape-handle, .lq-sheet-shape-rotate { border-color: Highlight; background: Canvas; }\n}\n\n.lq-sheet-outline[hidden] { display: none; }\n.lq-sheet-dialog-hint {\n margin: 2px 0 8px;\n font-size: 12px;\n line-height: 1.4;\n color: var(--lq-sheet-muted);\n}\n\n.lq-sheet-cell { font-size: calc(var(--lq-sheet-font-size) * var(--lq-sheet-zoom, 1)); }\n.lq-sheet-colhead,\n.lq-sheet-rowhead { font-size: calc(12px * var(--lq-sheet-zoom, 1)); }\n.lq-sheet-editor-input,\n.lq-sheet-editor > .lq-sheet-mirror { font-size: calc(var(--lq-sheet-font-size) * var(--lq-sheet-zoom, 1)); }\n.lq-sheet--no-headings .lq-sheet-colheads,\n.lq-sheet--no-headings .lq-sheet-rowhead,\n.lq-sheet-colheads[hidden],\n.lq-sheet-rowhead[hidden] { display: none; }\n\n.lq-sheet-move-preview {\n position: absolute;\n border: 2px solid var(--lq-sheet-accent);\n background: var(--lq-sheet-range-bg);\n opacity: 0.7;\n}\n.lq-sheet-move-handle {\n position: absolute;\n pointer-events: auto;\n cursor: move;\n}\n.lq-sheet--painting .lq-sheet-move-handle { pointer-events: none; }\n.lq-sheet--painting .lq-sheet-cell,\n.lq-sheet--painting .lq-sheet-colhead,\n.lq-sheet--painting .lq-sheet-rowhead { cursor: copy; }\n\n.lq-sheet-controls {\n position: absolute;\n inset: 0;\n z-index: 7;\n overflow: hidden;\n pointer-events: none;\n}\n.lq-sheet-freeze-bar,\n.lq-sheet-unhide { position: absolute; pointer-events: auto; }\n.lq-sheet-paste-options {\n position: absolute;\n display: inline-flex;\n align-items: center;\n gap: 1px;\n box-sizing: border-box;\n height: 28px;\n padding: 0 4px;\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-menu-bg);\n border: 1px solid var(--lq-sheet-input-border, var(--lq-sheet-border));\n border-radius: 4px;\n box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);\n cursor: pointer;\n pointer-events: auto;\n}\n.lq-sheet-paste-options[hidden] { display: none; }\n.lq-sheet-cell.lq-sheet-has-check::before {\n content: \"\";\n position: absolute;\n top: 0;\n inset-inline-start: 0;\n border-top: 6px solid var(--lq-sheet-check-marker, #1a7f37);\n border-inline-end: 6px solid transparent;\n}\n.lq-sheet-error-check {\n position: absolute;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 24px;\n height: 24px;\n padding: 0;\n color: #9a6700;\n background: var(--lq-sheet-menu-bg);\n border: 1px solid var(--lq-sheet-input-border, var(--lq-sheet-border));\n border-radius: 4px;\n box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);\n cursor: pointer;\n pointer-events: auto;\n}\n.lq-sheet-error-check[hidden] { display: none; }\n.lq-sheet-error-check:hover { background: var(--lq-sheet-header-bg); }\n.lq-sheet-error-check:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-touch-handle {\n position: absolute;\n z-index: 2;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n pointer-events: auto;\n touch-action: none;\n cursor: grab;\n}\n.lq-sheet-touch-handle-start { margin: -22px; }\n.lq-sheet-touch-handle-end { margin: -8px; }\n.lq-sheet-touch-handle[hidden] { display: none; }\n.lq-sheet-touch-handle::before {\n content: \"\";\n position: absolute;\n inset: 7px;\n background: var(--lq-sheet-bg);\n border: 2px solid var(--lq-sheet-accent);\n border-radius: 50%;\n box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3);\n}\n.lq-sheet-touch-handle-active::before { background: var(--lq-sheet-accent); }\n.lq-sheet--touch .lq-sheet-fill-handle { border-radius: 2px; touch-action: none; }\n.lq-sheet--touch .lq-sheet-fill-handle::after { content: \"\"; position: absolute; inset: -1px -9px -16px; }\n.lq-sheet-paste-options:hover { background: var(--lq-sheet-header-bg); }\n.lq-sheet-paste-options:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-paste-options[aria-expanded=\"true\"] { border-color: var(--lq-sheet-accent); }\n.lq-sheet-freeze-bar {\n box-sizing: border-box;\n background: var(--lq-sheet-border);\n outline: none;\n touch-action: none;\n}\n.lq-sheet-freeze-bar[hidden] { display: none; }\n.lq-sheet-freeze-bar-row { height: 5px; cursor: row-resize; }\n.lq-sheet-freeze-bar-col { width: 5px; cursor: col-resize; }\n.lq-sheet-freeze-bar:hover,\n.lq-sheet-freeze-bar:focus-visible { background: var(--lq-sheet-accent); }\n.lq-sheet-freeze-bar:focus-visible { box-shadow: 0 0 0 2px var(--lq-sheet-bg), 0 0 0 4px var(--lq-sheet-focus); }\n.lq-sheet-split-bar {\n position: absolute;\n box-sizing: border-box;\n background: var(--lq-sheet-border);\n outline: none;\n pointer-events: auto;\n touch-action: none;\n}\n.lq-sheet-split-bar[hidden] { display: none; }\n.lq-sheet-split-bar-row { cursor: row-resize; }\n.lq-sheet-split-bar-col { cursor: col-resize; }\n.lq-sheet-split-bar[aria-disabled=\"true\"] { cursor: default; }\n.lq-sheet-split-bar:not([aria-disabled=\"true\"]):hover,\n.lq-sheet-split-bar:focus-visible { background: var(--lq-sheet-accent); }\n.lq-sheet-split-bar:focus-visible { box-shadow: 0 0 0 2px var(--lq-sheet-bg), 0 0 0 4px var(--lq-sheet-focus); }\n.lq-sheet-freeze-guide {\n position: absolute;\n background: var(--lq-sheet-accent);\n pointer-events: none;\n}\n.lq-sheet-freeze-guide[hidden] { display: none; }\n.lq-sheet-unhide {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 12px;\n height: 12px;\n padding: 0;\n overflow: hidden;\n font: inherit;\n font-size: 9px;\n line-height: 1;\n color: var(--lq-sheet-head-strong-fg);\n background: var(--lq-sheet-head-surface);\n border: 1px solid var(--lq-sheet-head-border);\n border-radius: 2px;\n cursor: pointer;\n}\n.lq-sheet-unhide::before { content: \"↔\"; }\n.lq-sheet-unhide-row::before { content: \"↕\"; }\n.lq-sheet-unhide:hover,\n.lq-sheet-unhide:focus-visible { color: var(--lq-sheet-header-selected-fg); background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); }\n.lq-sheet-unhide:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-paste-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n.lq-sheet-shift-choices { grid-template-columns: minmax(0, 1fr); min-width: 240px; }\n.lq-sheet-cf-style-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }\n.lq-sheet-cf-style-row[hidden] { display: none; }\n.lq-sheet-cf-preview {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n min-width: 96px;\n height: 28px;\n padding: 0 8px;\n font-size: 12px;\n color: #1f2328;\n background: #ffffff;\n border: 1px solid var(--lq-sheet-border);\n border-radius: 2px;\n white-space: nowrap;\n}\n.lq-sheet-cf-scale-swatch { display: inline-block; flex: none; width: 16px; height: 16px; margin-inline-start: 6px; border: 1px solid var(--lq-sheet-input-border); border-radius: 3px; }\n.lq-sheet-cf-scale-preview { display: block; height: 16px; margin-top: 8px; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-sheet-radius-control); }\n.lq-sheet-cf-preview-bar { background: linear-gradient(90deg, var(--lq-sheet-cf-bar, #638ec6) 62%, #ffffff 62%); }\n.lq-sheet-cf-manager { width: min(760px, 100%); }\n.lq-sheet-cf-manager-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }\n.lq-sheet-cf-scope-field { flex: 0 1 240px; }\n.lq-sheet-cf-rules { display: flex; flex-direction: column; gap: 0; max-height: min(340px, 50vh); margin: 0; padding: 0; overflow: auto; list-style: none; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-cf-rules:empty { display: none; }\n.lq-sheet-cf-rule { display: grid; grid-template-columns: 20px minmax(120px, 1.4fr) auto minmax(90px, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--lq-sheet-border); }\n.lq-sheet-cf-rule:last-child { border-bottom: 0; }\n.lq-sheet-cf-rule-order { font-size: 12px; color: var(--lq-sheet-muted); text-align: center; font-variant-numeric: tabular-nums; }\n.lq-sheet-cf-rule-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lq-sheet-cf-rule-range { min-width: 0; width: 100%; }\n.lq-sheet-cf-rule-actions { display: inline-flex; gap: 2px; }\n.lq-sheet-icon-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; color: var(--lq-sheet-fg); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }\n.lq-sheet-icon-button:hover { background: var(--lq-sheet-range-bg); }\n.lq-sheet-icon-button:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-icon-button:disabled { opacity: 0.55; cursor: not-allowed; }\n@media (max-width: 620px) {\n .lq-sheet-cf-rule { grid-template-columns: 20px minmax(0, 1fr) auto; }\n .lq-sheet-cf-rule-range { grid-column: 2 / -1; }\n}\n.lq-sheet-goto-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 340px; }\n.lq-sheet-goto .lq-sheet-modal-body { min-width: 300px; }\n.lq-sheet-goto-list { height: auto; min-height: 132px; padding: 2px; }\n\n@media (prefers-reduced-motion: reduce) {\n .lq-sheet-freeze-bar, .lq-sheet-split-bar, .lq-sheet-unhide { transition: none; }\n}\n@media (forced-colors: active) {\n .lq-sheet-move-preview { border-color: Highlight; background: transparent; opacity: 1; }\n .lq-sheet-freeze-bar,\n .lq-sheet-split-bar { background: ButtonText; }\n .lq-sheet-freeze-bar:hover,\n .lq-sheet-freeze-bar:focus-visible,\n .lq-sheet-split-bar:not([aria-disabled=\"true\"]):hover,\n .lq-sheet-split-bar:focus-visible,\n .lq-sheet-freeze-guide { background: Highlight; }\n .lq-sheet-unhide { color: ButtonText; background: ButtonFace; border-color: ButtonText; }\n .lq-sheet-unhide:hover,\n .lq-sheet-unhide:focus-visible { color: HighlightText; background: Highlight; border-color: Highlight; }\n}\n\n.lq-sheet-comment-marks { position: absolute; inset: 0; z-index: 4; pointer-events: none; }\n.lq-sheet-comment-mark {\n position: absolute;\n width: 8px;\n height: 8px;\n pointer-events: auto;\n cursor: pointer;\n background: linear-gradient(to bottom left, #8250df 50%, transparent 50%);\n}\n.lq-sheet--rtl .lq-sheet-comment-mark { background: linear-gradient(to bottom right, #8250df 50%, transparent 50%); }\n.lq-sheet-comment-mark-resolved { opacity: 0.45; }\n.lq-sheet-threads { display: flex; flex-direction: column; gap: 10px; }\n.lq-sheet-thread { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; }\n.lq-sheet-thread-resolved { background: var(--lq-sheet-header-bg); }\n.lq-sheet-thread-badge { align-self: flex-start; padding: 0 6px; font-size: 11px; color: var(--lq-sheet-muted); border: 1px solid var(--lq-sheet-border); border-radius: 8px; }\n.lq-sheet-thread-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }\n.lq-sheet-thread-meta time { color: var(--lq-sheet-muted); }\n.lq-sheet-thread-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }\n.lq-sheet-thread-replies { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 10px; border-inline-start: 2px solid var(--lq-sheet-border); }\n.lq-sheet-thread-composer { display: flex; flex-direction: column; gap: 4px; }\n.lq-sheet-thread-input { font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; resize: vertical; }\n.lq-sheet-thread-send { align-self: flex-end; }\n@media (forced-colors: active) {\n .lq-sheet-comment-mark { forced-color-adjust: none; background: Highlight; }\n}\n.lq-sheet-rich-mode { color: transparent !important; caret-color: var(--lq-sheet-fg); }\n.lq-sheet-rich-mode::selection { color: transparent; background: var(--lq-sheet-range-bg); }\n.lq-sheet-run-bold { -webkit-text-stroke: 0.045em currentColor; }\n.lq-sheet-run-regular { font-weight: 400; }\n.lq-sheet-run-italic { font-style: italic; }\n.lq-sheet-run-upright { font-style: normal; }\n.lq-sheet-run-underline { text-decoration: underline; }\n.lq-sheet-run-strike { text-decoration: line-through; }\n.lq-sheet-run-underline.lq-sheet-run-strike { text-decoration: underline line-through; }\n.lq-sheet-ribbon-tab { min-height: var(--lq-sheet-control-height); padding: 0 12px; border-radius: var(--lq-sheet-radius-control) var(--lq-sheet-radius-control) 0 0; }\n.lq-sheet-ribbon-tab:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-ribbon-tab:focus-visible, .lq-sheet-ribbon-control:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; }\n.lq-sheet-ribbon-group { padding: 6px 10px 4px; border-inline-end-color: var(--lq-sheet-border); }\n.lq-sheet-ribbon-group-body {\n gap: 4px 2px;\n align-content: flex-start;\n max-width: 252px;\n min-height: calc(var(--lq-sheet-control-compact) * 3 + 8px);\n}\n.lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group=\"library\"] .lq-sheet-ribbon-group-body { max-width: 430px; }\n.lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group=\"fileDownload\"] .lq-sheet-ribbon-group-body { max-width: 380px; }\n.lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group=\"show\"] .lq-sheet-ribbon-group-body { max-width: 340px; }\n.lq-sheet-ribbon--compact .lq-sheet-ribbon-bar .lq-sheet-ribbon-group .lq-sheet-ribbon-group-body, .lq-sheet-ribbon-overflow .lq-sheet-ribbon-group-body { max-width: none; min-height: 0; }\n.lq-sheet-ribbon-group-label { margin-top: 4px; font-size: var(--lq-sheet-text-xs); }\n.lq-sheet-ribbon-control {\n min-width: var(--lq-sheet-control-compact);\n height: var(--lq-sheet-control-compact);\n padding: 0 6px;\n font-size: var(--lq-sheet-font-size);\n border-radius: var(--lq-sheet-radius-control);\n}\n.lq-sheet-ribbon-control::after { inset: -2px 0; }\n.lq-sheet-ribbon-control:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-ribbon-control:active { background: var(--lq-sheet-active); }\n.lq-sheet-ribbon-control[aria-pressed=\"true\"], .lq-sheet-ribbon-control[aria-expanded=\"true\"] {\n background: var(--lq-sheet-selected);\n border-color: var(--lq-sheet-selected-edge);\n}\n.lq-sheet-ribbon-control[aria-disabled=\"true\"], .lq-sheet-ribbon-select:disabled { color: inherit; cursor: not-allowed; opacity: 0.55; }\n.lq-sheet-ribbon-control[aria-disabled=\"true\"]:hover, .lq-sheet-ribbon-control[aria-disabled=\"true\"]:active { background: transparent; }\n.lq-sheet-ribbon-select { height: var(--lq-sheet-control-compact); padding: 0 6px; }\n.lq-sheet-ribbon--compact .lq-sheet-ribbon-group { padding: 4px 8px; }\n.lq-sheet-ribbon--compact .lq-sheet-ribbon-control > svg ~ .lq-sheet-ribbon-text { display: none; }\n.lq-sheet-ribbon { position: relative; }\n.lq-sheet-ribbon-head { display: flex; align-items: flex-end; min-width: 0; }\n.lq-sheet-ribbon-head[hidden], .lq-sheet-ribbon-panel[hidden] { display: none; }\n.lq-sheet-ribbon-head > .lq-sheet-ribbon-tabs { flex: 1 1 auto; min-width: 0; }\n.lq-sheet-ribbon-display { flex: none; align-self: center; margin-inline: 4px 8px; }\n.lq-sheet-ribbon-search {\n position: relative;\n display: flex;\n flex: 0 1 220px;\n gap: 6px;\n align-items: center;\n align-self: center;\n box-sizing: border-box;\n min-width: 120px;\n height: var(--lq-sheet-control-compact);\n margin-inline-start: 8px;\n padding: 0 8px;\n color: var(--lq-sheet-muted);\n background: var(--lq-sheet-input-bg);\n border: 1px solid var(--lq-sheet-input-border);\n border-radius: var(--lq-sheet-radius-control);\n}\n.lq-sheet-ribbon-search[hidden] { display: none; }\n.lq-sheet-ribbon-search:focus-within { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-ribbon-search-input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; padding: 0; font: inherit; color: var(--lq-sheet-fg); background: transparent; border: 0; outline: none; }\n.lq-sheet-ribbon-search-input::placeholder { color: var(--lq-sheet-muted); opacity: 1; }\n.lq-sheet-ribbon-search-input::-webkit-search-cancel-button { display: none; }\n.lq-sheet-command-list { top: calc(100% + 4px); inset-inline-end: 0; min-width: 320px; max-width: min(460px, 90vw); max-height: min(420px, 70vh); padding: 4px 0; overflow-y: auto; }\n.lq-sheet-command-list[hidden] { display: none; }\n.lq-sheet-command-option { display: grid; grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr); gap: 8px; align-items: center; min-height: var(--lq-sheet-control-height); padding: 0 12px; color: var(--lq-sheet-fg); cursor: pointer; }\n.lq-sheet-command-option:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-command-option[aria-selected=\"true\"] { background: var(--lq-sheet-selected); outline: 1px solid var(--lq-sheet-selected-edge); outline-offset: -1px; }\n.lq-sheet-command-option[aria-disabled=\"true\"] { cursor: not-allowed; opacity: 0.55; }\n.lq-sheet-command-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.lq-sheet-command-path { overflow: hidden; font-size: var(--lq-sheet-text-sm); color: var(--lq-sheet-muted); text-align: end; text-overflow: ellipsis; white-space: nowrap; }\n.lq-sheet-command-empty { padding: 8px 12px; color: var(--lq-sheet-muted); }\n.lq-sheet--narrow .lq-sheet-ribbon-search { flex: none; width: 32px; min-width: 32px; padding: 0 7px; }\n.lq-sheet--narrow .lq-sheet-ribbon-search:focus-within { position: absolute; inset-inline: 8px; z-index: 16; width: auto; }\n@media (forced-colors: active) {\n .lq-sheet-command-option[aria-selected=\"true\"] { color: HighlightText; background: Highlight; forced-color-adjust: none; }\n}\n.lq-sheet-ribbon-sep { flex: none; align-self: center; width: 1px; height: 18px; margin-inline: 3px; background: var(--lq-sheet-border); }\n.lq-sheet-ribbon-sep:first-child, .lq-sheet-ribbon-sep:last-child { display: none; }\n.lq-sheet-ribbon-group-body--rows { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 4px; max-width: none; }\n.lq-sheet-ribbon-row { display: flex; gap: 2px; align-items: center; }\n.lq-sheet-ribbon-row:empty { display: none; }\n.lq-sheet-ribbon--tight .lq-sheet-ribbon-text--wide, .lq-sheet-ribbon--icons .lq-sheet-ribbon-control > svg ~ .lq-sheet-ribbon-text { display: none; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group { flex-direction: row; align-items: center; padding: 5px 4px; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar :is([data-control=\"fontFamily\"], [data-control=\"numberFormat\"]) { max-width: 112px; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group=\"history\"] .lq-sheet-ribbon-row::before { display: none; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group-label { display: none; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group .lq-sheet-ribbon-group-body { flex-wrap: nowrap; max-width: none; min-height: 0; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group-body--rows { flex-direction: row; align-items: center; gap: 2px; }\n.lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-row + .lq-sheet-ribbon-row::before { content: ''; flex: none; width: 1px; height: 18px; margin-inline: 2px; background: var(--lq-sheet-border); }\n.lq-sheet-ribbon--open .lq-sheet-ribbon-panel {\n position: absolute;\n inset-inline: 0;\n top: 100%;\n z-index: 15;\n border-bottom: 1px solid var(--lq-sheet-border);\n box-shadow: var(--lq-sheet-menu-shadow);\n}\n.lq-sheet-formula-bar { min-height: 36px; }\n.lq-sheet-namebox { height: var(--lq-sheet-control-compact); margin: 4px; padding: 0 8px; border-radius: var(--lq-sheet-radius-control); }\n.lq-sheet-namebox:focus-visible { outline-offset: 1px; }\n.lq-sheet-fx { padding: 0 10px 0 6px; border-inline-end: 0; }\n.lq-sheet-input-wrap {\n min-height: var(--lq-sheet-control-compact);\n margin: 4px 4px 4px 0;\n background: var(--lq-sheet-input-bg);\n border: 1px solid var(--lq-sheet-input-border);\n border-radius: var(--lq-sheet-radius-control);\n}\n.lq-sheet-formula-input, .lq-sheet-input-wrap > .lq-sheet-mirror { padding: 4px 8px; }\n.lq-sheet-formula-input { border-radius: inherit; }\n.lq-sheet-formula-input:focus-visible { box-shadow: none; outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-menu { padding: 4px; border-radius: var(--lq-sheet-radius); }\n.lq-sheet-menu-item {\n align-items: center;\n min-height: var(--lq-sheet-control-height);\n padding: 0 10px;\n border-radius: var(--lq-sheet-radius-control);\n cursor: pointer;\n}\n.lq-sheet-menu-item:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-menu-item:active { background: var(--lq-sheet-active); }\n.lq-sheet-menu-item:focus-visible { background: var(--lq-sheet-hover); outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; }\n.lq-sheet-menu-item[aria-disabled=\"true\"] { color: inherit; opacity: 0.55; cursor: not-allowed; }\n.lq-sheet-menu-item[aria-disabled=\"true\"]:hover, .lq-sheet-menu-item[aria-disabled=\"true\"]:active { background: transparent; }\n.lq-sheet-menu-item[aria-checked=\"true\"] { background: var(--lq-sheet-selected); }\n.lq-sheet-menu-shortcut { font-size: var(--lq-sheet-text-xs); }\n.lq-sheet-menu-separator { margin: 4px -4px; }\n.lq-sheet-menu-heading { padding: 8px 10px 4px; }\n.lq-sheet-dropdown { padding: 4px; }\n.lq-sheet-option { display: flex; align-items: center; min-height: var(--lq-sheet-control-height); padding: 0 10px; border-radius: var(--lq-sheet-radius-control); }\n.lq-sheet-option:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-option:focus, .lq-sheet-option:focus-visible { background: var(--lq-sheet-hover); outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; }\n.lq-sheet-option[aria-selected=\"true\"] { background: var(--lq-sheet-selected); }\n.lq-sheet-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-height: var(--lq-sheet-control-height);\n padding: 0 12px;\n background: var(--lq-sheet-bg);\n border-color: var(--lq-sheet-input-border);\n border-radius: var(--lq-sheet-radius-control);\n}\n.lq-sheet-button:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-button:active { background: var(--lq-sheet-active); }\n.lq-sheet-button-primary { background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); }\n.lq-sheet-button-primary:hover { background: color-mix(in srgb, var(--lq-sheet-accent) 88%, var(--lq-sheet-fg)); }\n.lq-sheet-button-primary:active { background: color-mix(in srgb, var(--lq-sheet-accent) 76%, var(--lq-sheet-fg)); }\n.lq-sheet-button:disabled, .lq-sheet-button[aria-disabled=\"true\"], .lq-sheet-icon-button:disabled { opacity: 0.55; cursor: not-allowed; }\n.lq-sheet-button:focus-visible, .lq-sheet-tab:focus-visible, .lq-sheet-tab-add:focus-visible, .lq-sheet-icon-button:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-select, .lq-sheet-modal input[type=\"text\"], .lq-sheet-modal input[type=\"number\"], .lq-sheet-modal input[type=\"password\"], .lq-sheet-field input:not([type=\"checkbox\"]):not([type=\"radio\"]):not([type=\"color\"]) {\n min-height: var(--lq-sheet-control-height);\n padding: 0 8px;\n font: inherit;\n font-size: var(--lq-sheet-font-size);\n color: var(--lq-sheet-fg);\n background: var(--lq-sheet-input-bg);\n border: 1px solid var(--lq-sheet-input-border);\n border-radius: var(--lq-sheet-radius-control);\n}\n.lq-sheet-modal textarea { padding: 6px 8px; border-radius: var(--lq-sheet-radius-control); }\n.lq-sheet-select[multiple], .lq-sheet-select[size] { padding: 4px; }\n.lq-sheet [aria-invalid=\"true\"]:not(.lq-sheet-cell) { border-color: var(--lq-sheet-danger); box-shadow: inset 0 0 0 1px var(--lq-sheet-danger); }\n.lq-sheet [aria-busy=\"true\"] { cursor: progress; }\n.lq-sheet-modal[aria-busy=\"true\"] .lq-sheet-actions { opacity: 0.7; }\n.lq-sheet-field { gap: 4px; font-size: var(--lq-sheet-text-sm); }\n.lq-sheet-check { min-height: var(--lq-sheet-control-compact); gap: 8px; }\n.lq-sheet-modal { gap: 10px; padding: 16px; border-radius: var(--lq-sheet-radius-dialog); }\n.lq-sheet-modal-title { font-size: var(--lq-sheet-text-lg); font-weight: 600; }\n.lq-sheet-modal-body { gap: 10px; }\n.lq-sheet-modal-status, .lq-sheet-modal-note, .lq-sheet-find-status { font-size: var(--lq-sheet-text-sm); }\n.lq-sheet-modal-status:empty { display: none; }\n.lq-sheet-actions { justify-content: flex-end; gap: 8px; }\n.lq-sheet-modal > .lq-sheet-actions { margin: 2px -16px 0; padding: 12px 16px 0; border-top: 1px solid var(--lq-sheet-border); }\n.lq-sheet-fieldset { gap: 4px 12px; padding: 8px 10px; border-radius: var(--lq-sheet-radius-control); }\n.lq-sheet-tab-button { min-height: var(--lq-sheet-control-height); padding: 0 12px; }\n.lq-sheet-tab-button:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-tab-button[aria-selected=\"true\"] { color: var(--lq-sheet-fg); }\n.lq-sheet-tab { min-height: var(--lq-sheet-control-compact); }\n.lq-sheet-tab:hover, .lq-sheet-tab-add:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-statusbar { font-size: var(--lq-sheet-text-sm); }\n.lq-sheet-sidepanel-header { min-height: 40px; padding: 4px 6px 4px 12px; }\n.lq-sheet-sidepanel-close { align-items: center; justify-content: center; width: var(--lq-sheet-control-compact); height: var(--lq-sheet-control-compact); padding: 0; }\n.lq-sheet-sidepanel-close:hover { background: var(--lq-sheet-hover); }\n.lq-sheet-sidepanel-close:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; }\n.lq-sheet-zoom-button:hover { background: var(--lq-sheet-hover); }\n@media (pointer: coarse) {\n .lq-sheet-ribbon-control::after { inset: -8px -4px; }\n .lq-sheet-menu-item, .lq-sheet-option { min-height: 44px; }\n}\n@media (forced-colors: active) {\n .lq-sheet-button, .lq-sheet-select, .lq-sheet-namebox, .lq-sheet-input-wrap { border-color: ButtonText; }\n .lq-sheet-button-primary, .lq-sheet-ribbon-control[aria-pressed=\"true\"], .lq-sheet-menu-item[aria-checked=\"true\"] { color: HighlightText; background: Highlight; forced-color-adjust: none; }\n .lq-sheet-button:disabled, .lq-sheet-ribbon-control[aria-disabled=\"true\"], .lq-sheet-menu-item[aria-disabled=\"true\"] { color: GrayText; opacity: 1; }\n}\n" = ` .lq-sheet { --lq-sheet-font-family: var(--lq-font-family, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); --lq-sheet-font-size: var(--lq-font-size, 13px); --lq-sheet-fg: var(--lq-fg, #1f2328); --lq-sheet-bg: var(--lq-bg, #ffffff); --lq-sheet-muted: var(--lq-muted-fg, #59636e); --lq-sheet-border: var(--lq-border, #d1d9e0); --lq-sheet-gridline: var(--lq-border-subtle, #e6eaef); --lq-sheet-header-bg: var(--lq-header-bg, #f6f8fa); --lq-sheet-header-fg: var(--lq-header-fg, #1f2328); --lq-sheet-header-active-bg: #dde7f6; --lq-sheet-header-selected-bg: var(--lq-accent, #1f6feb); --lq-sheet-header-selected-fg: var(--lq-accent-fg, #ffffff); --lq-sheet-accent: var(--lq-accent, #1f6feb); --lq-sheet-range-bg: var(--lq-range-bg, rgba(31, 111, 235, 0.14)); --lq-sheet-focus: var(--lq-focus-ring, #1f6feb); --lq-sheet-menu-bg: var(--lq-menu-bg, #ffffff); --lq-sheet-menu-shadow: var(--lq-menu-shadow, 0 8px 24px rgba(15, 23, 42, 0.16)); --lq-sheet-input-bg: var(--lq-input-bg, #ffffff); --lq-sheet-input-border: var(--lq-input-border, #818b98); --lq-sheet-radius: var(--lq-radius, 6px); --lq-sheet-danger: var(--lq-danger, #cf222e); --lq-sheet-hover: var(--lq-row-hover, #eef2f6); --lq-sheet-active: color-mix(in srgb, var(--lq-sheet-fg) 12%, transparent); --lq-sheet-selected: color-mix(in srgb, var(--lq-sheet-accent) 16%, var(--lq-sheet-bg)); --lq-sheet-selected-edge: color-mix(in srgb, var(--lq-sheet-accent) 55%, transparent); --lq-sheet-control-height: var(--lq-control-height, 32px); --lq-sheet-control-compact: var(--lq-control-height-compact, 28px); --lq-sheet-radius-control: var(--lq-radius-control, 4px); --lq-sheet-radius-dialog: var(--lq-radius-dialog, 8px); --lq-sheet-text-xs: var(--lq-text-xs, 11px); --lq-sheet-text-sm: var(--lq-text-sm, 12px); --lq-sheet-text-lg: var(--lq-text-lg, 15px); --lq-sheet-head-bg: var(--lq-sheet-header-bg); --lq-sheet-head-fg: var(--lq-sheet-muted); --lq-sheet-head-strong-fg: var(--lq-sheet-header-fg); --lq-sheet-head-active-bg: var(--lq-sheet-header-active-bg); --lq-sheet-head-selected-bg: var(--lq-sheet-header-selected-bg); --lq-sheet-head-selected-fg: var(--lq-sheet-header-selected-fg); --lq-sheet-head-border: var(--lq-sheet-border); --lq-sheet-head-gridline: var(--lq-sheet-gridline); --lq-sheet-head-surface: var(--lq-sheet-bg); position: relative; display: flex; flex-direction: column; box-sizing: border-box; width: 100%; height: var(--lq-sheet-height, 480px); min-height: 200px; overflow: hidden; font-family: var(--lq-sheet-font-family); font-size: var(--lq-sheet-font-size); line-height: 1.3; color: var(--lq-sheet-fg); background: var(--lq-sheet-bg); border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-sheet-radius); font-variant-numeric: tabular-nums; } .lq-sheet *, .lq-sheet *::before, .lq-sheet *::after { box-sizing: border-box; } .lq-sheet.lq-theme-light { --lq-fg: #1f2328; --lq-bg: #ffffff; --lq-muted-fg: #59636e; --lq-border: #d1d9e0; --lq-border-subtle: #e6eaef; --lq-header-bg: #f6f8fa; --lq-header-fg: #1f2328; --lq-accent: #1f6feb; --lq-accent-fg: #ffffff; --lq-range-bg: rgba(31, 111, 235, 0.14); --lq-focus-ring: #1f6feb; --lq-menu-bg: #ffffff; --lq-input-bg: #ffffff; --lq-input-border: #818b98; --lq-row-hover: #eef2f6; --lq-danger: #cf222e; color-scheme: light; } .lq-sheet.lq-theme-dark, .lq-theme-dark .lq-sheet:not(.lq-theme-light) { --lq-fg: #e6edf3; --lq-bg: #0d1117; --lq-muted-fg: #9198a1; --lq-border: #3d444d; --lq-border-subtle: #262c36; --lq-header-bg: #161b22; --lq-header-fg: #e6edf3; --lq-accent: #4493f8; --lq-accent-fg: #0d1117; --lq-range-bg: rgba(68, 147, 248, 0.2); --lq-focus-ring: #4493f8; --lq-menu-bg: #161b22; --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); --lq-input-bg: #0d1117; --lq-input-border: #6e7681; --lq-row-hover: #1f2630; --lq-danger: #ff7b72; --lq-sheet-header-active-bg: #1f2d44; --lq-sheet-danger: #ff7b72; --lq-sheet-link: #4493f8; --lq-sheet-picture-plate: #ffffff; color-scheme: dark; } @media (prefers-color-scheme: dark) { .lq-sheet.lq-theme-auto { --lq-fg: #e6edf3; --lq-bg: #0d1117; --lq-muted-fg: #9198a1; --lq-border: #3d444d; --lq-border-subtle: #262c36; --lq-header-bg: #161b22; --lq-header-fg: #e6edf3; --lq-accent: #4493f8; --lq-accent-fg: #0d1117; --lq-range-bg: rgba(68, 147, 248, 0.2); --lq-focus-ring: #4493f8; --lq-menu-bg: #161b22; --lq-menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); --lq-input-bg: #0d1117; --lq-input-border: #6e7681; --lq-row-hover: #1f2630; --lq-danger: #ff7b72; --lq-sheet-header-active-bg: #1f2d44; --lq-sheet-danger: #ff7b72; --lq-sheet-link: #4493f8; --lq-sheet-picture-plate: #ffffff; color-scheme: dark; } } .lq-sheet--light-sheet.lq-theme-dark .lq-sheet-layer, .lq-theme-dark .lq-sheet--light-sheet:not(.lq-theme-light) .lq-sheet-layer { --lq-sheet-fg: #1f2328; --lq-sheet-bg: #ffffff; --lq-sheet-muted: #59636e; --lq-sheet-border: #d1d9e0; --lq-sheet-gridline: #e6eaef; --lq-sheet-header-bg: #f6f8fa; --lq-sheet-header-fg: #1f2328; --lq-sheet-header-active-bg: #dde7f6; --lq-sheet-header-selected-bg: #1f6feb; --lq-sheet-header-selected-fg: #ffffff; --lq-sheet-accent: #1f6feb; --lq-sheet-range-bg: rgba(31, 111, 235, 0.14); --lq-sheet-focus: #1f6feb; --lq-sheet-menu-bg: #ffffff; --lq-sheet-menu-shadow: 0 8px 24px rgba(15, 23, 42, 0.16); --lq-sheet-input-bg: #ffffff; --lq-sheet-input-border: #818b98; --lq-sheet-hover: #eef2f6; --lq-sheet-danger: #cf222e; --lq-sheet-link: initial; --lq-sheet-picture-plate: transparent; color: var(--lq-sheet-fg); color-scheme: light; } @media (prefers-color-scheme: dark) { .lq-sheet--light-sheet.lq-theme-auto .lq-sheet-layer { --lq-sheet-fg: #1f2328; --lq-sheet-bg: #ffffff; --lq-sheet-muted: #59636e; --lq-sheet-border: #d1d9e0; --lq-sheet-gridline: #e6eaef; --lq-sheet-header-bg: #f6f8fa; --lq-sheet-header-fg: #1f2328; --lq-sheet-header-active-bg: #dde7f6; --lq-sheet-header-selected-bg: #1f6feb; --lq-sheet-header-selected-fg: #ffffff; --lq-sheet-accent: #1f6feb; --lq-sheet-range-bg: rgba(31, 111, 235, 0.14); --lq-sheet-focus: #1f6feb; --lq-sheet-menu-bg: #ffffff; --lq-sheet-menu-shadow: 0 8px 24px rgba(15, 23, 42, 0.16); --lq-sheet-input-bg: #ffffff; --lq-sheet-input-border: #818b98; --lq-sheet-hover: #eef2f6; --lq-sheet-danger: #cf222e; --lq-sheet-link: initial; --lq-sheet-picture-plate: transparent; color: var(--lq-sheet-fg); color-scheme: light; } } .lq-sheet-formula-bar { display: flex; align-items: stretch; gap: 0; flex: none; min-height: 30px; border-bottom: 1px solid var(--lq-sheet-border); background: var(--lq-sheet-header-bg); } .lq-sheet-formula-bar[hidden] { display: none; } .lq-sheet-namebox { flex: none; width: 104px; margin: 3px; padding: 0 6px; font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; } .lq-sheet-namebox:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -1px; } .lq-sheet-fx { flex: none; display: flex; align-items: center; padding: 0 8px; font-style: italic; font-weight: 600; color: var(--lq-sheet-muted); border-inline-end: 1px solid var(--lq-sheet-border); } .lq-sheet-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; } .lq-sheet-formula-input, .lq-sheet-input-wrap > .lq-sheet-mirror { position: absolute; inset: 0; margin: 0; padding: 6px 8px; font: inherit; line-height: 18px; white-space: pre-wrap; word-break: break-all; overflow: hidden; border: 0; } .lq-sheet-formula-input { z-index: 1; resize: none; color: var(--lq-sheet-fg); background: transparent; outline: none; } .lq-sheet-formula-input:focus-visible { box-shadow: inset 0 0 0 2px var(--lq-sheet-focus); } .lq-sheet-input-wrap > .lq-sheet-mirror { color: var(--lq-sheet-fg); pointer-events: none; } .lq-sheet-formula-mode { color: transparent !important; caret-color: var(--lq-sheet-fg); } .lq-sheet-mirror[hidden] { display: none; } .lq-sheet-ref-token { font-weight: 600; } .lq-sheet-frame { position: relative; flex: 1 1 auto; min-height: 0; } .lq-sheet-frame:has(.lq-sheet-grid:focus-visible) { box-shadow: inset 0 0 0 2px var(--lq-sheet-focus); } .lq-sheet-viewport { position: absolute; inset: 0; overflow: auto; } .lq-sheet-grid { position: absolute; inset: 0; outline: none; } .lq-sheet-spacer { position: relative; } .lq-sheet-layer { position: sticky; top: 0; inset-inline-start: 0; overflow: hidden; color: var(--lq-sheet-fg); background: var(--lq-sheet-bg); user-select: none; -webkit-user-select: none; } .lq-sheet-colheads { position: absolute; top: 0; left: 0; right: 0; height: 24px; z-index: 6; background: var(--lq-sheet-head-bg); border-bottom: 1px solid var(--lq-sheet-head-border); } .lq-sheet-corner { position: absolute; top: 0; inset-inline-start: 0; height: 24px; z-index: 3; background: var(--lq-sheet-head-bg); border-inline-end: 1px solid var(--lq-sheet-head-border); cursor: cell; } .lq-sheet-corner::after { content: ""; position: absolute; inset-inline-end: 3px; bottom: 3px; border-inline-start: 9px solid transparent; border-bottom: 9px solid var(--lq-sheet-head-border); } .lq-sheet-colhead, .lq-sheet-rowhead { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 12px; color: var(--lq-sheet-head-fg); background: var(--lq-sheet-head-bg); white-space: nowrap; cursor: default; } .lq-sheet-colhead { top: 0; height: 24px; border-inline-end: 1px solid var(--lq-sheet-head-gridline); } .lq-sheet-colhead.lq-sheet-frozen { z-index: 2; } .lq-sheet-rowhead { inset-inline-start: 0; top: 0; z-index: 5; border-inline-end: 1px solid var(--lq-sheet-head-border); border-bottom: 1px solid var(--lq-sheet-head-gridline); } .lq-sheet-head-active { color: var(--lq-sheet-head-strong-fg); background: var(--lq-sheet-head-active-bg); font-weight: 600; } .lq-sheet-head-selected { color: var(--lq-sheet-head-selected-fg); background: var(--lq-sheet-head-selected-bg); } .lq-sheet-band { position: absolute; left: 0; right: 0; overflow: hidden; } .lq-sheet-band-main { z-index: 1; } .lq-sheet-band-frozen { z-index: 3; box-shadow: 0 1px 0 var(--lq-sheet-border); } .lq-sheet-row { position: absolute; inset-inline-start: 0; } .lq-sheet-cell { position: absolute; top: 0; z-index: 0; display: flex; align-items: flex-end; padding: 0 4px 2px; overflow: hidden; white-space: nowrap; color: var(--lq-sheet-fg); background-color: var(--lq-sheet-bg); border-inline-end: 1px solid var(--lq-sheet-gridline); border-bottom: 1px solid var(--lq-sheet-gridline); cursor: cell; } .lq-sheet-cell.lq-sheet-has-checkbox { align-items: center; padding-bottom: 0; } .lq-sheet-checkbox { position: relative; flex: none; box-sizing: border-box; width: calc(14px * var(--lq-sheet-zoom, 1)); height: calc(14px * var(--lq-sheet-zoom, 1)); color: var(--lq-sheet-accent); background: var(--lq-sheet-bg); border: 1.5px solid var(--lq-sheet-muted); border-radius: 3px; cursor: pointer; } .lq-sheet-checkbox[data-checked="true"] { background: currentColor; border-color: currentColor; } .lq-sheet-checkbox[data-checked="true"]::after { content: ""; position: absolute; left: 28%; top: 6%; width: 30%; height: 60%; border: solid var(--lq-sheet-header-selected-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); } .lq-sheet-cell-arrow { position: absolute; inset-inline-end: 3px; top: 50%; width: 0; height: 0; margin-top: -2px; color: var(--lq-sheet-muted); border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; cursor: pointer; } .lq-sheet-cell.lq-sheet-overflow { z-index: 1; } .lq-sheet-cell.lq-sheet-merged { z-index: 2; } .lq-sheet-cell.lq-sheet-frozen { z-index: 3; } .lq-sheet-cell.lq-sheet-frozen.lq-sheet-merged { z-index: 4; } .lq-sheet-cell.lq-sheet-wrap { white-space: pre-wrap; word-break: break-word; align-items: flex-start; padding-top: 2px; } .lq-sheet--no-gridlines .lq-sheet-cell { border-color: transparent; } .lq-sheet-cell-justify, .lq-sheet-cell-distributed { flex: 1 1 auto; min-width: 0; white-space: pre-wrap; word-break: break-word; text-align: justify; } .lq-sheet-cell-distributed { text-align-last: justify; } .lq-sheet-overlay { position: absolute; overflow: hidden; pointer-events: none; } .lq-sheet-overlay-bl, .lq-sheet-overlay-br { z-index: 2; } .lq-sheet-overlay-tl, .lq-sheet-overlay-tr { z-index: 4; } .lq-sheet-selection, .lq-sheet-active-cell, .lq-sheet-fill-preview, .lq-sheet-copy-marquee, .lq-sheet-ref-highlight { position: absolute; } .lq-sheet-selection { background: var(--lq-sheet-range-bg); border: 1px solid var(--lq-sheet-accent); } .lq-sheet-active-cell { border: 2px solid var(--lq-sheet-accent); } .lq-sheet-fill-preview { border: 1px dashed var(--lq-sheet-muted); } .lq-sheet-copy-marquee { border: 2px dashed var(--lq-sheet-accent); animation: lq-sheet-marquee 1s steps(2) infinite; } @keyframes lq-sheet-marquee { 50% { border-color: transparent; } } .lq-sheet-ref-highlight { border: 2px solid var(--lq-sheet-ref-color, var(--lq-sheet-accent)); background: color-mix(in srgb, var(--lq-sheet-ref-color, var(--lq-sheet-accent)) 10%, transparent); } .lq-sheet-presence, .lq-sheet-presence-range { position: absolute; box-sizing: border-box; } .lq-sheet-presence { border: 2px solid var(--lq-sheet-presence-color, var(--lq-sheet-accent)); } .lq-sheet-presence-range { border: 1px solid var(--lq-sheet-presence-color, var(--lq-sheet-accent)); background: color-mix(in srgb, var(--lq-sheet-presence-color, var(--lq-sheet-accent)) 10%, transparent); } .lq-sheet-presence-label { position: absolute; bottom: 100%; inset-inline-start: -2px; max-width: 160px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 14px; font-weight: 600; color: var(--lq-sheet-fg); background: var(--lq-sheet-bg); border: 1px solid var(--lq-sheet-presence-color, var(--lq-sheet-accent)); border-inline-start-width: 4px; } .lq-sheet-presence--below > .lq-sheet-presence-label { bottom: auto; top: 100%; } .lq-sheet-fill-handle { position: absolute; width: 8px; height: 8px; background: var(--lq-sheet-accent); border: 1px solid var(--lq-sheet-bg); pointer-events: auto; cursor: crosshair; } .lq-sheet-editor { position: absolute; z-index: 8; background: var(--lq-sheet-bg); border: 2px solid var(--lq-sheet-accent); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18); } .lq-sheet-editor[hidden] { display: none; } .lq-sheet-editor-input, .lq-sheet-editor > .lq-sheet-mirror { position: absolute; inset: 0; margin: 0; padding: 1px 3px; font: inherit; line-height: 18px; white-space: pre-wrap; word-break: break-all; overflow: hidden; border: 0; } .lq-sheet-editor-input { z-index: 1; resize: none; color: var(--lq-sheet-fg); background: transparent; outline: none; } .lq-sheet-editor > .lq-sheet-mirror { color: var(--lq-sheet-fg); pointer-events: none; } .lq-sheet-editor-bold .lq-sheet-editor-input, .lq-sheet-editor-bold .lq-sheet-mirror { font-weight: 700; } .lq-sheet-autocomplete, .lq-sheet-hint, .lq-sheet-popup { position: absolute; z-index: 20; margin: 0; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-sheet-radius); box-shadow: var(--lq-sheet-menu-shadow); } .lq-sheet-autocomplete[hidden], .lq-sheet-hint[hidden] { display: none; } .lq-sheet-autocomplete { min-width: 260px; max-width: 420px; padding: 4px 0; list-style: none; } .lq-sheet-ac-item { display: flex; gap: 10px; align-items: baseline; padding: 4px 10px; cursor: pointer; } .lq-sheet-ac-item strong { flex: none; font-weight: 600; } .lq-sheet-ac-item span { overflow: hidden; color: var(--lq-sheet-muted); text-overflow: ellipsis; white-space: nowrap; font-size: 12px; } .lq-sheet-ac-item[aria-selected="true"] { background: var(--lq-sheet-range-bg); } .lq-sheet-hint { padding: 4px 8px; font-size: 12px; white-space: nowrap; pointer-events: none; } .lq-sheet-hint b { color: var(--lq-sheet-accent); } .lq-sheet-menu { min-width: 220px; padding: 4px 0; } .lq-sheet-menu-item { display: flex; width: 100%; justify-content: space-between; gap: 24px; padding: 6px 14px; font: inherit; text-align: start; color: inherit; background: transparent; border: 0; cursor: pointer; } .lq-sheet-menu-item:hover { background: var(--lq-sheet-range-bg); outline: none; } .lq-sheet-menu-item:focus-visible { background: var(--lq-sheet-range-bg); outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-menu-item[aria-disabled="true"] { color: var(--lq-sheet-muted); cursor: default; } .lq-sheet-menu-label-icon { display: inline-flex; align-items: center; gap: 8px; } .lq-sheet-menu-icons .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon) { padding-inline-start: 24px; } .lq-sheet-menu-icons .lq-sheet-menu-item[aria-checked] .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon) { padding-inline-start: 24px; } .lq-sheet-menu-icons .lq-sheet-menu-item[aria-checked="true"] .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon) { padding-inline-start: 0; } .lq-sheet-menu-icons .lq-sheet-menu-item[aria-checked="true"] .lq-sheet-menu-label:not(.lq-sheet-menu-label-icon)::before { content: "✓"; display: inline-block; width: 24px; } .lq-sheet-menu-shortcut { color: var(--lq-sheet-muted); font-size: 12px; } .lq-sheet-menu-item:hover .lq-sheet-menu-shortcut, .lq-sheet-menu-item:focus-visible .lq-sheet-menu-shortcut { color: inherit; } .lq-sheet-menu-separator { height: 1px; margin: 4px 0; background: var(--lq-sheet-border); } .lq-sheet-find, .lq-sheet-filter { display: flex; flex-direction: column; gap: 8px; width: 300px; padding: 12px; } .lq-sheet-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-field input { padding: 5px 8px; font: inherit; font-size: var(--lq-sheet-font-size); color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; } .lq-sheet-field input::placeholder { color: var(--lq-sheet-muted); opacity: 1; } .lq-sheet-check { display: flex; gap: 6px; align-items: center; min-height: 24px; } .lq-sheet-actions { display: flex; flex-wrap: wrap; gap: 6px; } .lq-sheet-button { padding: max(5px, 0.3em) max(10px, 0.5em); font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-header-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; cursor: pointer; } .lq-sheet-button-primary { color: var(--lq-sheet-header-selected-fg); background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); } .lq-sheet-button:focus-visible, .lq-sheet-tab:focus-visible, .lq-sheet-tab-add:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-find-status { min-height: 1.2em; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-filter-list { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; padding: 4px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-dropdown { min-width: 140px; max-height: 240px; overflow: auto; padding: 4px 0; } .lq-sheet-option { padding: 4px 10px; cursor: pointer; } .lq-sheet-option:hover, .lq-sheet-option:focus { background: var(--lq-sheet-range-bg); outline: none; } .lq-sheet-option[aria-selected="true"] { font-weight: 600; } .lq-sheet-decorations { position: absolute; inset: 0; z-index: 7; pointer-events: none; } .lq-sheet-filter-button, .lq-sheet-dropdown-button { position: absolute; width: 17px; height: 17px; padding: 0; pointer-events: auto; color: var(--lq-sheet-muted); background: var(--lq-sheet-header-bg); border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; } .lq-sheet-filter-button::after, .lq-sheet-dropdown-button::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; } .lq-sheet-filter-active { color: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); } .lq-sheet-filter-button[data-sorted]::after { margin: -1px 0 0 0; border-left-width: 3px; border-right-width: 3px; border-top-width: 4px; } .lq-sheet-filter-button[data-sorted]::before { content: "\\2191"; position: absolute; left: 1px; top: 0; font-size: 10px; font-weight: 700; line-height: 15px; } .lq-sheet-filter-button[data-sorted="descending"]::before { content: "\\2193"; } .lq-sheet-filter-sort[aria-pressed="true"] { border-color: var(--lq-sheet-accent); box-shadow: inset 0 0 0 1px var(--lq-sheet-accent); } .lq-sheet-dropdown-button { width: 18px; } .lq-sheet-prompt { position: absolute; max-width: 260px; padding: 6px 8px; font-size: 12px; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; box-shadow: var(--lq-sheet-menu-shadow); } .lq-sheet-bottom { display: flex; align-items: stretch; flex: none; min-height: 30px; border-top: 1px solid var(--lq-sheet-border); background: var(--lq-sheet-header-bg); } .lq-sheet-tabbar { display: flex; align-items: stretch; flex: 1 1 auto; min-width: min(45%, 240px); } .lq-sheet-tabbar[hidden], .lq-sheet-statusbar[hidden] { display: none; } .lq-sheet-tab-add { flex: none; width: 32px; font: inherit; font-size: 16px; color: var(--lq-sheet-muted); background: transparent; border: 0; border-inline-end: 1px solid var(--lq-sheet-border); cursor: pointer; } .lq-sheet-tab-add[hidden] { display: none; } .lq-sheet-tabs { display: flex; overflow-x: auto; scrollbar-width: thin; } .lq-sheet-tab { flex: none; max-width: 200px; padding: 0 14px; overflow: hidden; font: inherit; color: var(--lq-sheet-muted); text-overflow: ellipsis; white-space: nowrap; background: transparent; border: 0; border-inline-end: 1px solid var(--lq-sheet-border); border-bottom: 3px solid transparent; cursor: pointer; } .lq-sheet-tab-colored { border-bottom-color: var(--lq-sheet-tab-color); } .lq-sheet-tab-colored.lq-sheet-tab-active { border-bottom-color: var(--lq-sheet-tab-color); } .lq-sheet-tab-active { color: var(--lq-sheet-fg); font-weight: 600; background: var(--lq-sheet-bg); border-bottom-color: var(--lq-sheet-accent); } .lq-sheet-tab-input { width: 120px; font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-accent); } .lq-sheet-statusbar { display: flex; align-items: center; gap: 16px; flex: 0 1 auto; min-width: 0; padding: 0 12px; font-size: 12px; color: var(--lq-sheet-muted); white-space: pre; } .lq-sheet-statusbar > * { flex: none; } .lq-sheet-statusbar > .lq-sheet-stats { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; } .lq-sheet--narrow .lq-sheet-bottom { flex-wrap: wrap; } .lq-sheet--narrow .lq-sheet-tabbar { flex: 1 1 100%; min-height: 28px; border-bottom: 1px solid var(--lq-sheet-border); } .lq-sheet--narrow .lq-sheet-statusbar { flex: 1 1 100%; min-height: 28px; box-sizing: border-box; } .lq-sheet-circular-status { color: var(--lq-sheet-danger); } .lq-sheet-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; } .lq-sheet--readonly .lq-sheet-cell { cursor: default; } .lq-sheet--file-drag { outline: 2px dashed var(--lq-sheet-focus); outline-offset: -2px; } @media (prefers-reduced-motion: reduce) { .lq-sheet-copy-marquee { animation: none; } .lq-sheet *, .lq-sheet *::before, .lq-sheet *::after { transition: none !important; } } @media (forced-colors: active) { .lq-sheet :focus-visible, .lq-sheet-menu :focus-visible, .lq-sheet-option:focus { outline: 2px solid Highlight !important; outline-offset: -2px; } } .lq-sheet-cell.lq-sheet-link { color: var(--lq-sheet-link, #0b62c4); cursor: pointer; } .lq-sheet-cell.lq-sheet-has-note::after { content: ""; position: absolute; top: 0; inset-inline-end: 0; border-top: 6px solid var(--lq-sheet-note-marker, #d1242f); border-inline-start: 6px solid transparent; } .lq-sheet-cf-icon { flex: none; margin-inline-end: auto; padding-inline-end: 4px; font-weight: 700; line-height: 1; } .lq-sheet-cell.lq-sheet-has-icon { gap: 2px; } .lq-sheet-notes, .lq-sheet-outline, .lq-sheet-drawings, .lq-sheet-table-filters { position: absolute; inset: 0; pointer-events: none; } .lq-sheet-notes { z-index: 9; } .lq-sheet-note { position: absolute; padding: 6px 8px; font-size: 12px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; color: #1f2328; background: var(--lq-sheet-note-bg, #fff8c5); border: 1px solid var(--lq-sheet-note-border, #d4a72c); border-radius: 3px; box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18); pointer-events: auto; } .lq-sheet-note-author { display: block; margin-bottom: 2px; } .lq-sheet-outline { z-index: 7; } .lq-sheet-outline-strip { position: absolute; background: var(--lq-sheet-head-bg); } .lq-sheet-outline-bracket { position: absolute; border-inline-start: 1px solid var(--lq-sheet-head-fg); border-top: 1px solid var(--lq-sheet-head-fg); border-bottom: 1px solid var(--lq-sheet-head-fg); width: 4px; box-sizing: border-box; } .lq-sheet-outline-strip + .lq-sheet-outline-bracket { width: 4px; } .lq-sheet-outline-toggle, .lq-sheet-outline-level { position: absolute; display: flex; align-items: center; justify-content: center; width: 12px; height: 12px; padding: 0; font: 600 10px/1 var(--lq-sheet-font-family); color: var(--lq-sheet-head-strong-fg); background: var(--lq-sheet-head-surface); border: 1px solid var(--lq-sheet-head-fg); border-radius: 2px; cursor: pointer; pointer-events: auto; } .lq-sheet-outline-level { width: 13px; height: 14px; } .lq-sheet-outline-toggle:focus-visible, .lq-sheet-outline-level:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-outline-toggle:disabled, .lq-sheet-outline-level:disabled { cursor: default; opacity: 0.6; } .lq-sheet-objects { position: absolute; inset: 0; z-index: 5; pointer-events: none; } .lq-sheet-drawing-pane { position: absolute; overflow: hidden; } .lq-sheet-drawing { position: absolute; box-sizing: border-box; pointer-events: auto; cursor: move; background: var(--lq-sheet-bg); outline: none; } .lq-sheet-chart { border: 1px solid var(--lq-sheet-border); } .lq-sheet-image, .lq-sheet-object { background: transparent; } .lq-sheet-image-unsupported { border: 1px dashed var(--lq-sheet-border); background: var(--lq-sheet-bg); } .lq-sheet-drawing-body { position: relative; } .lq-sheet-object-figure { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; height: 100%; overflow: hidden; } .lq-sheet-object-stored { background: var(--lq-sheet-picture-plate, transparent); } .lq-sheet-object-icon { flex: 1 1 auto; min-height: 0; max-width: 100%; object-fit: contain; } .lq-sheet-object-preview { width: 100%; height: 100%; object-fit: contain; } .lq-sheet-object-name { flex: none; box-sizing: border-box; max-width: 100%; padding: 0 4px 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(12px * var(--lq-sheet-zoom, 1)); line-height: 1.35; text-align: center; color: var(--lq-sheet-fg); } .lq-sheet-object-badge { position: absolute; top: 2px; inset-inline-end: 2px; padding: 0 4px; font: 700 9px/14px var(--lq-sheet-font-family); color: #ffffff; background: #6b7280; border-radius: 3px; pointer-events: none; } .lq-sheet-object-actions { position: absolute; inset-inline-start: 0; top: 100%; z-index: 1; display: none; box-sizing: border-box; height: 30px; gap: 4px; padding: 4px 0 0; white-space: nowrap; } .lq-sheet-object-actions[data-placement="above"], .lq-sheet-object-actions[data-placement="inside"] { padding: 0 0 4px; } .lq-sheet-object-summary { display: flex; gap: 14px; align-items: center; } .lq-sheet-object-summary-icon { flex: none; width: 48px; height: 60px; } .lq-sheet-object-facts { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; } .lq-sheet-menu-heading-file { display: flex; gap: 10px; align-items: center; max-width: 320px; padding: 6px 14px; text-transform: none; letter-spacing: 0; } .lq-sheet-menu-image { flex: none; width: 24px; height: 30px; } .lq-sheet-menu-heading-file .lq-sheet-menu-heading-text { display: flex; flex-direction: column; min-width: 0; } .lq-sheet-menu-heading-file .lq-sheet-menu-heading-title { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; color: var(--lq-sheet-fg); } .lq-sheet-menu-heading-file .lq-sheet-menu-heading-detail { font-weight: 400; } .lq-sheet-drawing-selected .lq-sheet-object-actions, .lq-sheet-object:focus-within .lq-sheet-object-actions { display: flex; } .lq-sheet-object-action { font: inherit; font-size: 12px; padding: 2px 8px; color: var(--lq-sheet-fg); background: var(--lq-sheet-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; cursor: pointer; } .lq-sheet-object-action:hover { border-color: var(--lq-sheet-accent); } .lq-sheet-object-action:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-drawing-body, .lq-sheet-drawing-body > img, .lq-sheet-drawing-body > svg { display: block; width: 100%; height: 100%; } .lq-sheet-drawing-body > img { object-fit: fill; } .lq-sheet-drawing-selected, .lq-sheet-drawing:focus-visible { box-shadow: 0 0 0 2px var(--lq-sheet-accent); } .lq-sheet-drawing-handle, .lq-sheet-drawing-rotate { position: absolute; display: none; box-sizing: border-box; width: 10px; height: 10px; margin: -5px; background: var(--lq-sheet-bg); border: 1px solid var(--lq-sheet-accent); touch-action: none; } .lq-sheet-drawing-handle::after, .lq-sheet-drawing-rotate::after { content: ''; position: absolute; inset: -7px; } .lq-sheet-drawing-handle[data-handle='nw'] { inset-inline-start: 0; top: 0; } .lq-sheet-drawing-handle[data-handle='n'] { inset-inline-start: 50%; top: 0; } .lq-sheet-drawing-handle[data-handle='ne'] { inset-inline-start: 100%; top: 0; } .lq-sheet-drawing-handle[data-handle='e'] { inset-inline-start: 100%; top: 50%; } .lq-sheet-drawing-handle[data-handle='se'] { inset-inline-start: 100%; top: 100%; } .lq-sheet-drawing-handle[data-handle='s'] { inset-inline-start: 50%; top: 100%; } .lq-sheet-drawing-handle[data-handle='sw'] { inset-inline-start: 0; top: 100%; } .lq-sheet-drawing-handle[data-handle='w'] { inset-inline-start: 0; top: 50%; } .lq-sheet-drawing-rotate { inset-inline-start: 50%; top: -24px; border-radius: 50%; cursor: grab; } .lq-sheet-drawing-rotate:hover { background: var(--lq-sheet-accent); } .lq-sheet-drawing-selected > .lq-sheet-drawing-handle, .lq-sheet-drawing-selected > .lq-sheet-drawing-rotate { display: block; } .lq-sheet-drawing-locked { cursor: default; } .lq-sheet-drawing-locked > .lq-sheet-drawing-handle, .lq-sheet-drawing-locked > .lq-sheet-drawing-rotate { display: none; } .lq-sheet-drawing-cropped { overflow: hidden; } .lq-sheet-drawing-cropped > img { position: absolute; max-width: none; } .lq-sheet-image-loading { background: color-mix(in srgb, var(--lq-sheet-border) 35%, transparent); } .lq-sheet-image .lq-sheet-drawing-body > img:not([src]) { visibility: hidden; } .lq-sheet-table-filters { z-index: 6; } .lq-sheet-table-filters > .lq-sheet-filter-button { pointer-events: auto; } @media (forced-colors: active) { .lq-sheet-cell.lq-sheet-has-note::after { border-top-color: Mark; } .lq-sheet-drawing-selected { outline: 2px solid Highlight; } } .lq-sheet-modal-backdrop { position: absolute; inset: 0; z-index: 40; display: flex; align-items: flex-start; justify-content: center; padding: 32px 16px; background: rgba(15, 23, 42, 0.28); overflow: auto; } .lq-sheet-modal { display: flex; flex-direction: column; gap: 10px; width: min(520px, 100%); max-height: calc(100% - 16px); padding: 14px 16px; overflow: auto; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-sheet-radius); box-shadow: var(--lq-sheet-menu-shadow); } .lq-sheet-modal-title { margin: 0; font-size: 15px; font-weight: 600; } .lq-sheet-modal-body { display: flex; flex-direction: column; gap: 8px; } .lq-sheet-modal-body [hidden] { display: none; } .lq-sheet-modal-status { min-height: 1.2em; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-modal-note { margin: 0; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-modal :focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-select, .lq-sheet-modal input[type="text"], .lq-sheet-modal input[type="number"], .lq-sheet-modal textarea { font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; padding: 3px 6px; } .lq-sheet-tablist { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--lq-sheet-border); } .lq-sheet-tab-button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: inherit; color: var(--lq-sheet-fg); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; } .lq-sheet-tab-button[aria-selected="true"] { border-bottom-color: var(--lq-sheet-accent); font-weight: 600; } .lq-sheet-report-dialog .lq-sheet-report-heading { margin: 10px 0 4px; font-size: 13px; } .lq-sheet-report-count { display: inline-block; min-width: 18px; padding: 0 6px; font-size: 11px; font-weight: 600; text-align: center; color: var(--lq-sheet-fg); background: var(--lq-sheet-header-bg); border: 1px solid var(--lq-sheet-border); border-radius: 9px; } .lq-sheet-report-list { margin: 0; padding-inline-start: 18px; max-height: 140px; overflow: auto; } .lq-sheet-report-detail { display: block; font-size: 11px; color: var(--lq-sheet-muted); overflow-wrap: anywhere; } .lq-sheet-properties-facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 12px; margin: 10px 0 0; font-size: 12px; } .lq-sheet-properties-facts dt { color: var(--lq-sheet-muted); } .lq-sheet-properties-facts dd { margin: 0; overflow-wrap: anywhere; } .lq-sheet-format-fill-sample { height: 40px; margin-top: 8px; border: 1px solid var(--lq-sheet-border); border-radius: 3px; } .lq-sheet-line-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; } .lq-sheet-line-option { display: flex; align-items: center; height: 22px; padding: 0 8px; color: #1f2328; background: #ffffff; border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; } .lq-sheet-line-option[aria-checked="true"] { border-color: var(--lq-sheet-accent); box-shadow: 0 0 0 1px var(--lq-sheet-accent); } .lq-sheet-line-option:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-line-sample { flex: 1 1 auto; height: 4px; box-sizing: border-box; } .lq-sheet-tabpanel { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; } .lq-sheet-tabpanel[hidden] { display: none; } .lq-sheet-format-preview { display: block; padding: 6px 8px; font-variant-numeric: tabular-nums; background: var(--lq-sheet-header-bg); border-radius: 4px; } .lq-sheet-fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 6px 8px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-names-form { display: flex; flex-direction: column; gap: 8px; } .lq-sheet-names-list { max-height: 220px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-names-table { width: 100%; border-collapse: collapse; font-size: 12px; } .lq-sheet-names-table th, .lq-sheet-names-table td { padding: 4px 6px; text-align: start; border-bottom: 1px solid var(--lq-sheet-gridline); } .lq-sheet-names-row { cursor: pointer; } .lq-sheet-names-row[aria-selected="true"] { background: var(--lq-sheet-range-bg); } .lq-sheet-names-empty { color: var(--lq-sheet-muted); } .lq-sheet-styles-heading { margin: 4px 0; font-size: 12px; font-weight: 600; color: var(--lq-sheet-muted); } .lq-sheet-styles-list { display: flex; flex-wrap: wrap; gap: 6px; } .lq-sheet-style-swatch { min-width: 92px; padding: 6px 8px; font: inherit; font-size: 12px; text-align: start; color: var(--lq-sheet-fg); background: var(--lq-sheet-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; cursor: pointer; } .lq-sheet-evaluate-ref { font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-evaluate-expression { padding: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; background: var(--lq-sheet-header-bg); border-radius: 4px; } .lq-sheet-evaluate-next { text-decoration-thickness: 2px; text-decoration-color: var(--lq-sheet-accent); } .lq-sheet-audit { position: absolute; inset: 0 auto auto 0; z-index: 6; overflow: hidden; pointer-events: none; } .lq-sheet--rtl .lq-sheet-audit { inset: 0 0 auto auto; } .lq-sheet-audit-line { stroke: #1f5fbf; stroke-width: 1.5; } .lq-sheet-audit-external { stroke-dasharray: 4 3; } .lq-sheet-audit-head, .lq-sheet-audit-dot { fill: #1f5fbf; } .lq-sheet-audit-range { fill: none; stroke: #1f5fbf; stroke-width: 1.5; } .lq-sheet-audit-sheet-icon { fill: var(--lq-sheet-bg); stroke: #1f5fbf; stroke-width: 1.2; } @media (forced-colors: active) { .lq-sheet-audit-line, .lq-sheet-audit-range, .lq-sheet-audit-sheet-icon { stroke: CanvasText; } .lq-sheet-audit-head, .lq-sheet-audit-dot { fill: CanvasText; } } .lq-sheet-main { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; } .lq-sheet-main > .lq-sheet-frame { min-width: 0; } .lq-sheet-icon { flex: none; display: block; } .lq-sheet-ribbon { flex: none; border-bottom: 1px solid var(--lq-sheet-border); background: var(--lq-sheet-header-bg); color: var(--lq-sheet-header-fg); } .lq-sheet-ribbon[hidden], .lq-sheet-ribbon-tabs[hidden], .lq-sheet-ribbon-more[hidden] { display: none; } .lq-sheet-ribbon-tabs { display: flex; gap: 2px; padding: 2px 8px 0; overflow-x: auto; scrollbar-width: none; } .lq-sheet-ribbon--tabs-scroll .lq-sheet-ribbon-tabs { background: linear-gradient(to right, var(--lq-sheet-header-bg) 40%, transparent) left center / 28px 100% no-repeat local, linear-gradient(to left, var(--lq-sheet-header-bg) 40%, transparent) right center / 28px 100% no-repeat local, linear-gradient(to right, color-mix(in srgb, var(--lq-sheet-fg) 40%, transparent), transparent) left center / 12px 100% no-repeat scroll, linear-gradient(to left, color-mix(in srgb, var(--lq-sheet-fg) 40%, transparent), transparent) right center / 12px 100% no-repeat scroll; } .lq-sheet--narrow .lq-sheet-ribbon-tabs { gap: 0; padding-inline: 4px; } .lq-sheet--narrow .lq-sheet-ribbon-tab { padding-inline: 6px; } .lq-sheet-ribbon-tab { position: relative; flex: none; padding: 5px 12px; font: inherit; color: var(--lq-sheet-muted); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; } .lq-sheet-ribbon-tab:hover { color: var(--lq-sheet-fg); } .lq-sheet-ribbon-tab[aria-selected="true"] { color: var(--lq-sheet-fg); font-weight: 600; border-bottom-color: var(--lq-sheet-accent); } .lq-sheet-ribbon-tab:focus-visible, .lq-sheet-ribbon-control:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-ribbon--keytips .lq-sheet-ribbon-tab::after { content: attr(data-keytip); position: absolute; inset-inline-start: 50%; bottom: -6px; z-index: 2; padding: 0 4px; font-size: 11px; font-weight: 600; line-height: 15px; color: var(--lq-sheet-bg); background: var(--lq-sheet-fg); border-radius: 3px; } .lq-sheet-ribbon-panel { display: flex; align-items: stretch; min-width: 0; background: var(--lq-sheet-bg); border-top: 1px solid var(--lq-sheet-border); } .lq-sheet-ribbon-bar { display: flex; flex: 1 1 auto; min-width: 0; overflow: hidden; } .lq-sheet-ribbon-group { display: flex; flex: none; flex-direction: column; justify-content: space-between; padding: 4px 8px 2px; border-inline-end: 1px solid var(--lq-sheet-gridline); } .lq-sheet-ribbon-group-body { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; max-width: 340px; } .lq-sheet-ribbon-group[data-group="library"] .lq-sheet-ribbon-group-body { max-width: 620px; } .lq-sheet-ribbon-group-label { margin-top: 2px; font-size: 11px; line-height: 1.2; text-align: center; color: var(--lq-sheet-muted); white-space: nowrap; } .lq-sheet-ribbon--compact .lq-sheet-ribbon-group-label { display: none; } .lq-sheet-ribbon--compact .lq-sheet-ribbon-group { padding: 3px 6px; } .lq-sheet-ribbon--compact .lq-sheet-ribbon-panel { border-top: 0; } .lq-sheet-ribbon-control { display: inline-flex; gap: 4px; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 5px; font: inherit; font-size: 12px; color: var(--lq-sheet-fg); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; position: relative; white-space: nowrap; } .lq-sheet-ribbon-control::after { content: ''; position: absolute; inset: -3px 0; } @media (pointer: coarse) { .lq-sheet-ribbon-control::after { inset: -9px -4px; } } .lq-sheet-ribbon-control:hover { background: var(--lq-sheet-range-bg); } .lq-sheet-ribbon-control[aria-pressed="true"], .lq-sheet-ribbon-control[aria-expanded="true"] { background: var(--lq-sheet-range-bg); border-color: var(--lq-sheet-accent); } .lq-sheet-ribbon-control[aria-disabled="true"], .lq-sheet-ribbon-select:disabled { color: var(--lq-sheet-muted); cursor: default; opacity: 0.6; } .lq-sheet-ribbon-control[aria-disabled="true"]:hover { background: transparent; } .lq-sheet-ribbon-glyph { min-width: 14px; font-weight: 700; text-align: center; } .lq-sheet-ribbon-chevron { width: 10px; height: 10px; opacity: 0.7; } .lq-sheet-ribbon-color { position: relative; padding-bottom: 4px; } .lq-sheet-ribbon-swatch { position: absolute; inset-inline: 5px 17px; bottom: 2px; height: 3px; border: 1px solid var(--lq-sheet-border); border-radius: 1px; } .lq-sheet-ribbon-select { max-width: 132px; padding: 0 4px; background: var(--lq-sheet-input-bg); border-color: var(--lq-sheet-input-border); } .lq-sheet-ribbon-select[data-control="fitWidth"], .lq-sheet-ribbon-select[data-control="fitHeight"] { max-width: 176px; } .lq-sheet-ribbon-more { flex: none; align-self: center; margin: 0 6px; } .lq-sheet-ribbon-overflow { display: flex; flex-wrap: wrap; max-width: min(520px, 90vw); padding: 4px; } .lq-sheet-ribbon-overflow .lq-sheet-ribbon-group { box-sizing: border-box; max-width: 100%; border-inline-end: 0; } .lq-sheet-ribbon-overflow .lq-sheet-ribbon-group-body { max-width: 100%; } .lq-sheet-menu { max-height: min(420px, 70vh); overflow-y: auto; } .lq-sheet-menu-heading { padding: 8px 14px 4px; font-size: var(--lq-sheet-text-sm); font-weight: 600; color: var(--lq-sheet-muted); } .lq-sheet-menu-item[aria-checked="true"] .lq-sheet-menu-label::before { content: "✓ "; } .lq-sheet-menu-item[aria-checked="false"] .lq-sheet-menu-label { padding-inline-start: 1.1em; } .lq-sheet-palette { display: flex; flex-direction: column; gap: 8px; padding: 10px; } .lq-sheet-palette-grid { display: grid; grid-template-columns: repeat(10, 20px); gap: 3px; } .lq-sheet-palette-swatch { width: 20px; height: 20px; padding: 0; border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; } .lq-sheet-palette-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--lq-sheet-accent); } .lq-sheet-palette-swatch:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-palette-custom { flex-direction: row; align-items: center; justify-content: space-between; } .lq-sheet-palette-custom input { width: 44px; height: 24px; padding: 0; } .lq-sheet-zoom { display: inline-flex; gap: 4px; align-items: center; margin-inline-start: auto; } .lq-sheet-zoom-slider { width: 96px; accent-color: var(--lq-sheet-accent); } .lq-sheet-zoom-button { min-width: 22px; height: 22px; padding: 0 4px; font: inherit; color: var(--lq-sheet-fg); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; } .lq-sheet-zoom-button:hover { background: var(--lq-sheet-range-bg); } .lq-sheet-zoom-button:focus-visible, .lq-sheet-zoom-slider:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-zoom-value { min-width: 44px; font-variant-numeric: tabular-nums; } .lq-sheet-sidepanel { display: flex; flex: none; flex-direction: column; width: 280px; max-width: 60%; min-height: 0; background: var(--lq-sheet-bg); border-inline-start: 1px solid var(--lq-sheet-border); } .lq-sheet-sidepanel[hidden] { display: none; } .lq-sheet-sidepanel-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--lq-sheet-border); background: var(--lq-sheet-header-bg); } .lq-sheet-sidepanel-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 13px; font-weight: 600; } .lq-sheet-sidepanel-icon { display: inline-flex; flex: none; margin-inline-end: 8px; color: var(--lq-sheet-muted); } .lq-sheet-sidepanel-icon[hidden] { display: none; } .lq-sheet-sidepanel-close { display: inline-flex; padding: 4px; color: var(--lq-sheet-fg); background: transparent; border: 0; border-radius: 4px; cursor: pointer; } .lq-sheet-sidepanel-close:hover { background: var(--lq-sheet-range-bg); } .lq-sheet-sidepanel-close:focus-visible { outline: 2px solid var(--lq-sheet-focus); } .lq-sheet-sidepanel-body { flex: 1 1 auto; min-height: 0; padding: 10px; overflow: auto; } .lq-sheet-spelling { display: flex; flex-direction: column; gap: 10px; } .lq-sheet-modal.lq-sheet-spelling-dialog { width: min(600px, calc(100% - 32px)); max-width: none; box-sizing: border-box; } .lq-sheet-spelling-word { display: block; min-height: 20px; font-size: var(--lq-font-size, 13px); font-weight: 600; color: var(--lq-sheet-fg); } .lq-sheet-spelling-context { margin: 0; font-size: var(--lq-sheet-text-sm, 12px); color: var(--lq-sheet-muted); overflow-wrap: anywhere; } .lq-sheet-spelling-mark { padding: 0 1px; color: inherit; background: transparent; text-decoration: underline wavy var(--lq-danger, #cf222e); text-underline-offset: 3px; } .lq-sheet-spelling-list { width: 100%; height: auto; min-height: 96px; padding: 2px; } .lq-sheet-thread-composer { position: relative; } .lq-sheet-mention { color: var(--lq-sheet-link, #0b62c4); font-weight: 600; } .lq-sheet-mention-list { position: absolute; z-index: 3; inset-inline: 0; top: 100%; display: flex; flex-direction: column; max-height: 200px; margin-top: 2px; padding: 4px; overflow: auto; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius, 6px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); } .lq-sheet-mention-list[hidden] { display: none; } .lq-sheet-mention-option { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; min-height: var(--lq-control-height, 32px); padding: 0 8px; line-height: var(--lq-control-height, 32px); border-radius: var(--lq-radius-control, 4px); cursor: pointer; } .lq-sheet-mention-option[aria-selected="true"] { background: var(--lq-sheet-range-bg); outline: 1px solid var(--lq-sheet-focus); } .lq-sheet-mention-detail { font-size: var(--lq-sheet-text-sm, 12px); color: var(--lq-sheet-muted); } .lq-sheet-mention-option[aria-selected="true"] .lq-sheet-mention-detail { color: inherit; } .lq-sheet-datepicker { padding: 8px; min-width: 252px; } .lq-sheet-datepicker-header { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 4px; } .lq-sheet-datepicker-title { flex: 1 1 auto; font-size: var(--lq-font-size, 13px); font-weight: 600; text-align: center; } .lq-sheet-datepicker-step { display: inline-flex; align-items: center; justify-content: center; width: var(--lq-control-height, 32px); height: var(--lq-control-height, 32px); padding: 0; color: var(--lq-sheet-fg); background: transparent; border: 0; border-radius: var(--lq-radius-control, 4px); cursor: pointer; } .lq-sheet-datepicker-grid { width: 100%; border-collapse: collapse; } .lq-sheet-datepicker-grid th { height: 24px; padding: 0; font-size: var(--lq-sheet-text-xs, 11px); font-weight: 600; color: var(--lq-sheet-muted); text-align: center; } .lq-sheet-datepicker-grid td { padding: 1px; text-align: center; } .lq-sheet-datepicker-day { width: 32px; height: 32px; padding: 0; font: inherit; font-variant-numeric: tabular-nums; color: var(--lq-sheet-fg); background: transparent; border: 1px solid transparent; border-radius: var(--lq-radius-control, 4px); cursor: pointer; } .lq-sheet-datepicker-day[data-outside="true"] { color: var(--lq-sheet-muted); } .lq-sheet-datepicker-day[aria-current="date"] { border-color: var(--lq-input-border, #818b98); font-weight: 600; } .lq-sheet-datepicker-day[data-selected="true"] { background: color-mix(in srgb, var(--lq-accent, #1f6feb) 16%, transparent); border-color: color-mix(in srgb, var(--lq-accent, #1f6feb) 55%, transparent); } .lq-sheet-datepicker-day:hover, .lq-sheet-datepicker-step:hover { background: var(--lq-sheet-hover); } .lq-sheet-datepicker-day:focus-visible, .lq-sheet-datepicker-step:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-datepicker-footer { display: flex; justify-content: flex-end; margin-top: 6px; } .lq-sheet-modal.lq-sheet-csv-dialog { width: min(560px, calc(100% - 32px)); max-width: none; box-sizing: border-box; } .lq-sheet-csv-dialog .lq-sheet-modal-body { min-width: 0; } .lq-sheet-spelling { min-width: 0; } .lq-sheet-csv-preview-wrap { max-width: 100%; max-height: 190px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius-control, 4px); } .lq-sheet-csv-preview-wrap:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-csv-preview { width: 100%; border-collapse: collapse; font-size: var(--lq-sheet-text-sm, 12px); color: var(--lq-sheet-fg); } .lq-sheet-csv-preview caption { padding: 4px 8px; color: var(--lq-sheet-muted); text-align: start; caption-side: top; } .lq-sheet-csv-preview td { max-width: 160px; padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-top: 1px solid var(--lq-sheet-border); } .lq-sheet-csv-preview td[data-kind="number"], .lq-sheet-csv-preview td[data-kind="date"] { text-align: end; font-variant-numeric: tabular-nums; } .lq-sheet-chart-format { display: flex; flex-direction: column; gap: 10px; } .lq-sheet-chart-format-section { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 8px 10px 10px; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius-control, 4px); } .lq-sheet-chart-format-legend { padding: 0 4px; font-size: var(--lq-sheet-text-sm, 12px); font-weight: 600; color: var(--lq-sheet-fg); } .lq-sheet-chart-format-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: end; } .lq-sheet-chart-format-color { display: flex; gap: 10px; align-items: end; justify-content: space-between; } .lq-sheet-chart-format-swatch { width: 44px; height: var(--lq-control-height, 32px); padding: 2px; background: var(--lq-sheet-bg); border: 1px solid var(--lq-input-border, #818b98); border-radius: var(--lq-radius-control, 4px); cursor: pointer; } .lq-sheet-chart-format-swatch:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-chart-format .lq-sheet-select, .lq-sheet-chart-format input[type="text"], .lq-sheet-chart-format input[type="number"] { width: 100%; min-width: 0; box-sizing: border-box; } .lq-sheet-panel-heading { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--lq-sheet-muted); } .lq-sheet-panel-hint { margin: 8px 0; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-pivot-panel { display: flex; flex-direction: column; gap: 6px; } .lq-sheet-pivot-fields { display: flex; flex-direction: column; gap: 0; max-height: 180px; padding: 6px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-pivot-areas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .lq-sheet-pivot-list { display: flex; flex-direction: column; gap: 3px; min-height: 64px; padding: 4px; border: 1px dashed var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-pivot-list-over { border-color: var(--lq-sheet-accent); background: var(--lq-sheet-range-bg); } .lq-sheet-pivot-chip { padding: 3px 6px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; background: var(--lq-sheet-header-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; cursor: grab; } .lq-sheet-pivot-chip:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-pivot-empty { padding: 6px; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-pivot-layout { display: flex; flex-direction: column; gap: 4px; } .lq-sheet-pivot-items { display: flex; flex-direction: column; gap: 2px; max-height: 240px; min-width: 220px; padding: 6px 8px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-radius-control, 4px); } .lq-sheet-comments-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; } .lq-sheet-comment { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-comment-cell { align-self: flex-start; padding: 0; font: inherit; font-weight: 600; color: var(--lq-sheet-accent); background: transparent; border: 0; cursor: pointer; text-decoration: underline; } .lq-sheet-comment-cell:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 2px; } .lq-sheet-comment-author { font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-comment-text { font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; resize: vertical; } .lq-sheet-comment-delete { align-self: flex-end; } .lq-sheet-slicers { position: absolute; right: 0; bottom: 0; z-index: 6; overflow: hidden; pointer-events: none; } .lq-sheet--rtl .lq-sheet-slicers { right: auto; left: 0; } .lq-sheet-slicer { position: absolute; display: flex; flex-direction: column; min-width: 96px; min-height: 64px; pointer-events: auto; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-border); border-radius: 4px; box-shadow: var(--lq-sheet-menu-shadow); } .lq-sheet-slicer-header { display: flex; flex: none; align-items: center; min-height: 28px; padding: 4px 8px; padding-inline-end: 34px; font-weight: 600; background: var(--lq-sheet-header-bg); border-bottom: 1px solid var(--lq-sheet-border); cursor: move; touch-action: none; } .lq-sheet-slicer-header:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-slicer-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lq-sheet-slicer-clear { position: absolute; top: 2px; inset-inline-end: 4px; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: inherit; background: transparent; border: 0; border-radius: 3px; cursor: pointer; } .lq-sheet-slicer-clear:disabled { opacity: 0.4; cursor: default; } .lq-sheet-slicer-clear:focus-visible { outline: 2px solid var(--lq-sheet-focus); } .lq-sheet-slicer-list { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-height: 0; padding: 6px; overflow: auto; } .lq-sheet-slicer-list:not([data-columns="1"]) { display: grid; grid-template-columns: repeat(var(--lq-sheet-slicer-columns, 1), minmax(0, 1fr)); align-content: start; } .lq-sheet-slicer-item { flex: none; padding: 4px 8px; overflow: hidden; font: inherit; text-align: start; text-overflow: ellipsis; white-space: nowrap; color: var(--lq-sheet-muted); background: transparent; border: 1px solid var(--lq-sheet-border); border-radius: 3px; cursor: pointer; } .lq-sheet-slicer-item[aria-selected="true"] { color: var(--lq-sheet-header-selected-fg); background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); } .lq-sheet-slicer-item[aria-disabled="true"] { cursor: default; } .lq-sheet-slicer-item:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-filter { max-height: min(520px, 80vh); overflow: auto; } .lq-sheet-filter-advanced { display: flex; flex-direction: column; gap: 6px; font-size: 12px; } .lq-sheet-filter-advanced > summary { cursor: pointer; color: var(--lq-sheet-muted); } .lq-sheet-filter-advanced .lq-sheet-field { margin-top: 6px; } .lq-sheet-filter-advanced .lq-sheet-field[hidden], .lq-sheet-filter-list [hidden], .lq-sheet-field[hidden], .lq-sheet-check[hidden] { display: none; } .lq-sheet-filter-year > summary { display: flex; gap: 6px; align-items: center; cursor: pointer; } .lq-sheet-filter-month { padding-inline-start: 22px; } .lq-sheet-dialog-note { margin: 0; font-size: 12px; color: var(--lq-sheet-muted); } .lq-sheet-sort-levels { display: flex; flex-direction: column; gap: 6px; } .lq-sheet-sort-level { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) repeat(3, 32px); gap: 4px; align-items: center; } .lq-sheet-sort-level > .lq-sheet-select { width: 100%; min-width: 0; } .lq-sheet-sort-level > .lq-sheet-button { min-height: 28px; padding: 4px 0; text-align: center; } .lq-sheet-function-list { height: 180px; overflow: auto; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-function-list .lq-sheet-option[aria-selected="true"] { background: var(--lq-sheet-range-bg); } .lq-sheet-function-detail { min-height: 3.6em; font-size: 12px; } .lq-sheet-function-detail p { margin: 2px 0 0; color: var(--lq-sheet-muted); } .lq-sheet-split-preview { min-height: 1.3em; font-size: 12px; color: var(--lq-sheet-muted); } @media (forced-colors: active) { .lq-sheet-ribbon-control[aria-pressed="true"], .lq-sheet-ribbon-tab[aria-selected="true"], .lq-sheet-slicer-item[aria-selected="true"] { outline: 2px solid Highlight; outline-offset: -2px; } .lq-sheet-palette-swatch { forced-color-adjust: none; } } .lq-sheet-shapes { position: absolute; inset: 0; pointer-events: none; } .lq-sheet-shape-pane { position: absolute; overflow: hidden; } .lq-sheet-shape { position: absolute; box-sizing: border-box; pointer-events: auto; cursor: move; outline: none; touch-action: none; transform-origin: 50% 50%; } .lq-sheet-shape-body { position: absolute; inset: 0; } .lq-sheet-shape-svg { display: block; overflow: visible; } .lq-sheet-shape-outline:not([fill]) { fill: color-mix(in srgb, var(--lq-sheet-accent) 16%, var(--lq-sheet-bg)); } .lq-sheet-shape-outline:not([stroke]), .lq-sheet-shape-stroke:not([stroke]) { stroke: var(--lq-sheet-accent); } .lq-sheet-shape-arrowhead:not([fill]) { fill: var(--lq-sheet-accent); } .lq-sheet-shape-textBox .lq-sheet-shape-outline:not([fill]) { fill: var(--lq-sheet-bg); } .lq-sheet-shape-textBox .lq-sheet-shape-outline:not([stroke]) { stroke: var(--lq-sheet-border); } .lq-sheet-shape-text, .lq-sheet-shape-editor { position: absolute; inset: 0; box-sizing: border-box; margin: 0; padding: 6px; overflow: hidden; color: var(--lq-sheet-fg); font: inherit; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; } .lq-sheet-shape-text { display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; } .lq-sheet-shape-textBox > .lq-sheet-shape-text { display: block; text-align: start; } .lq-sheet-shape-flat > .lq-sheet-shape-text, .lq-sheet-shape-editing > .lq-sheet-shape-text { display: none; } .lq-sheet-shape-editor { width: 100%; height: 100%; border: 0; background: var(--lq-sheet-bg); resize: none; cursor: text; outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-shape-selected, .lq-sheet-shape:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 3px; } .lq-sheet-shape-handle, .lq-sheet-shape-rotate { position: absolute; display: none; box-sizing: border-box; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1px solid var(--lq-sheet-accent); background: var(--lq-sheet-bg); } .lq-sheet-shape-handle::after, .lq-sheet-shape-rotate::after { content: ''; position: absolute; inset: -7px; } .lq-sheet-shape-selected > .lq-sheet-shape-handle, .lq-sheet-shape-selected > .lq-sheet-shape-rotate { display: block; } .lq-sheet-shape-locked > .lq-sheet-shape-handle, .lq-sheet-shape-locked > .lq-sheet-shape-rotate, .lq-sheet-shape-editing > .lq-sheet-shape-handle, .lq-sheet-shape-editing > .lq-sheet-shape-rotate { display: none; } .lq-sheet-shape-flat > .lq-sheet-shape-handle:not([data-handle='nw']):not([data-handle='se']) { display: none; } .lq-sheet-shape-handle, .lq-sheet-shape-rotate { transform: scale(calc(1 / var(--lq-sheet-shape-zoom, 1))); } .lq-sheet-shape-handle[data-handle='nw'] { left: 0; top: 0; cursor: nwse-resize; } .lq-sheet-shape-handle[data-handle='n'] { left: 50%; top: 0; cursor: ns-resize; } .lq-sheet-shape-handle[data-handle='ne'] { left: 100%; top: 0; cursor: nesw-resize; } .lq-sheet-shape-handle[data-handle='e'] { left: 100%; top: 50%; cursor: ew-resize; } .lq-sheet-shape-handle[data-handle='se'] { left: 100%; top: 100%; cursor: nwse-resize; } .lq-sheet-shape-handle[data-handle='s'] { left: 50%; top: 100%; cursor: ns-resize; } .lq-sheet-shape-handle[data-handle='sw'] { left: 0; top: 100%; cursor: nesw-resize; } .lq-sheet-shape-handle[data-handle='w'] { left: 0; top: 50%; cursor: ew-resize; } .lq-sheet-shape-rotate { left: 50%; top: -24px; border-radius: 50%; cursor: grab; transition: background-color 0.12s; } .lq-sheet-shape-rotate:hover { background: var(--lq-sheet-accent); } .lq-sheet-shape-locked { cursor: default; } @media (prefers-reduced-motion: reduce) { .lq-sheet-shape-rotate { transition: none; } } @media (forced-colors: active) { .lq-sheet-shape-outline, .lq-sheet-shape-outline:not([fill]) { fill: Canvas; } .lq-sheet-shape-outline, .lq-sheet-shape-stroke, .lq-sheet-shape-outline:not([stroke]), .lq-sheet-shape-stroke:not([stroke]) { stroke: CanvasText; } .lq-sheet-shape-arrowhead, .lq-sheet-shape-arrowhead:not([fill]) { fill: CanvasText; } .lq-sheet-shape-text { color: CanvasText !important; } .lq-sheet-shape-selected, .lq-sheet-shape:focus-visible { outline-color: Highlight; } .lq-sheet-shape-handle, .lq-sheet-shape-rotate { border-color: Highlight; background: Canvas; } } .lq-sheet-outline[hidden] { display: none; } .lq-sheet-dialog-hint { margin: 2px 0 8px; font-size: 12px; line-height: 1.4; color: var(--lq-sheet-muted); } .lq-sheet-cell { font-size: calc(var(--lq-sheet-font-size) * var(--lq-sheet-zoom, 1)); } .lq-sheet-colhead, .lq-sheet-rowhead { font-size: calc(12px * var(--lq-sheet-zoom, 1)); } .lq-sheet-editor-input, .lq-sheet-editor > .lq-sheet-mirror { font-size: calc(var(--lq-sheet-font-size) * var(--lq-sheet-zoom, 1)); } .lq-sheet--no-headings .lq-sheet-colheads, .lq-sheet--no-headings .lq-sheet-rowhead, .lq-sheet-colheads[hidden], .lq-sheet-rowhead[hidden] { display: none; } .lq-sheet-move-preview { position: absolute; border: 2px solid var(--lq-sheet-accent); background: var(--lq-sheet-range-bg); opacity: 0.7; } .lq-sheet-move-handle { position: absolute; pointer-events: auto; cursor: move; } .lq-sheet--painting .lq-sheet-move-handle { pointer-events: none; } .lq-sheet--painting .lq-sheet-cell, .lq-sheet--painting .lq-sheet-colhead, .lq-sheet--painting .lq-sheet-rowhead { cursor: copy; } .lq-sheet-controls { position: absolute; inset: 0; z-index: 7; overflow: hidden; pointer-events: none; } .lq-sheet-freeze-bar, .lq-sheet-unhide { position: absolute; pointer-events: auto; } .lq-sheet-paste-options { position: absolute; display: inline-flex; align-items: center; gap: 1px; box-sizing: border-box; height: 28px; padding: 0 4px; color: var(--lq-sheet-fg); background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-input-border, var(--lq-sheet-border)); border-radius: 4px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18); cursor: pointer; pointer-events: auto; } .lq-sheet-paste-options[hidden] { display: none; } .lq-sheet-cell.lq-sheet-has-check::before { content: ""; position: absolute; top: 0; inset-inline-start: 0; border-top: 6px solid var(--lq-sheet-check-marker, #1a7f37); border-inline-end: 6px solid transparent; } .lq-sheet-error-check { position: absolute; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 24px; height: 24px; padding: 0; color: #9a6700; background: var(--lq-sheet-menu-bg); border: 1px solid var(--lq-sheet-input-border, var(--lq-sheet-border)); border-radius: 4px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18); cursor: pointer; pointer-events: auto; } .lq-sheet-error-check[hidden] { display: none; } .lq-sheet-error-check:hover { background: var(--lq-sheet-header-bg); } .lq-sheet-error-check:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-touch-handle { position: absolute; z-index: 2; width: 30px; height: 30px; border-radius: 50%; pointer-events: auto; touch-action: none; cursor: grab; } .lq-sheet-touch-handle-start { margin: -22px; } .lq-sheet-touch-handle-end { margin: -8px; } .lq-sheet-touch-handle[hidden] { display: none; } .lq-sheet-touch-handle::before { content: ""; position: absolute; inset: 7px; background: var(--lq-sheet-bg); border: 2px solid var(--lq-sheet-accent); border-radius: 50%; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3); } .lq-sheet-touch-handle-active::before { background: var(--lq-sheet-accent); } .lq-sheet--touch .lq-sheet-fill-handle { border-radius: 2px; touch-action: none; } .lq-sheet--touch .lq-sheet-fill-handle::after { content: ""; position: absolute; inset: -1px -9px -16px; } .lq-sheet-paste-options:hover { background: var(--lq-sheet-header-bg); } .lq-sheet-paste-options:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-paste-options[aria-expanded="true"] { border-color: var(--lq-sheet-accent); } .lq-sheet-freeze-bar { box-sizing: border-box; background: var(--lq-sheet-border); outline: none; touch-action: none; } .lq-sheet-freeze-bar[hidden] { display: none; } .lq-sheet-freeze-bar-row { height: 5px; cursor: row-resize; } .lq-sheet-freeze-bar-col { width: 5px; cursor: col-resize; } .lq-sheet-freeze-bar:hover, .lq-sheet-freeze-bar:focus-visible { background: var(--lq-sheet-accent); } .lq-sheet-freeze-bar:focus-visible { box-shadow: 0 0 0 2px var(--lq-sheet-bg), 0 0 0 4px var(--lq-sheet-focus); } .lq-sheet-split-bar { position: absolute; box-sizing: border-box; background: var(--lq-sheet-border); outline: none; pointer-events: auto; touch-action: none; } .lq-sheet-split-bar[hidden] { display: none; } .lq-sheet-split-bar-row { cursor: row-resize; } .lq-sheet-split-bar-col { cursor: col-resize; } .lq-sheet-split-bar[aria-disabled="true"] { cursor: default; } .lq-sheet-split-bar:not([aria-disabled="true"]):hover, .lq-sheet-split-bar:focus-visible { background: var(--lq-sheet-accent); } .lq-sheet-split-bar:focus-visible { box-shadow: 0 0 0 2px var(--lq-sheet-bg), 0 0 0 4px var(--lq-sheet-focus); } .lq-sheet-freeze-guide { position: absolute; background: var(--lq-sheet-accent); pointer-events: none; } .lq-sheet-freeze-guide[hidden] { display: none; } .lq-sheet-unhide { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 12px; height: 12px; padding: 0; overflow: hidden; font: inherit; font-size: 9px; line-height: 1; color: var(--lq-sheet-head-strong-fg); background: var(--lq-sheet-head-surface); border: 1px solid var(--lq-sheet-head-border); border-radius: 2px; cursor: pointer; } .lq-sheet-unhide::before { content: "↔"; } .lq-sheet-unhide-row::before { content: "↕"; } .lq-sheet-unhide:hover, .lq-sheet-unhide:focus-visible { color: var(--lq-sheet-header-selected-fg); background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); } .lq-sheet-unhide:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-paste-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lq-sheet-shift-choices { grid-template-columns: minmax(0, 1fr); min-width: 240px; } .lq-sheet-cf-style-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .lq-sheet-cf-style-row[hidden] { display: none; } .lq-sheet-cf-preview { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 96px; height: 28px; padding: 0 8px; font-size: 12px; color: #1f2328; background: #ffffff; border: 1px solid var(--lq-sheet-border); border-radius: 2px; white-space: nowrap; } .lq-sheet-cf-scale-swatch { display: inline-block; flex: none; width: 16px; height: 16px; margin-inline-start: 6px; border: 1px solid var(--lq-sheet-input-border); border-radius: 3px; } .lq-sheet-cf-scale-preview { display: block; height: 16px; margin-top: 8px; border: 1px solid var(--lq-sheet-border); border-radius: var(--lq-sheet-radius-control); } .lq-sheet-cf-preview-bar { background: linear-gradient(90deg, var(--lq-sheet-cf-bar, #638ec6) 62%, #ffffff 62%); } .lq-sheet-cf-manager { width: min(760px, 100%); } .lq-sheet-cf-manager-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; } .lq-sheet-cf-scope-field { flex: 0 1 240px; } .lq-sheet-cf-rules { display: flex; flex-direction: column; gap: 0; max-height: min(340px, 50vh); margin: 0; padding: 0; overflow: auto; list-style: none; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-cf-rules:empty { display: none; } .lq-sheet-cf-rule { display: grid; grid-template-columns: 20px minmax(120px, 1.4fr) auto minmax(90px, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--lq-sheet-border); } .lq-sheet-cf-rule:last-child { border-bottom: 0; } .lq-sheet-cf-rule-order { font-size: 12px; color: var(--lq-sheet-muted); text-align: center; font-variant-numeric: tabular-nums; } .lq-sheet-cf-rule-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lq-sheet-cf-rule-range { min-width: 0; width: 100%; } .lq-sheet-cf-rule-actions { display: inline-flex; gap: 2px; } .lq-sheet-icon-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 28px; height: 28px; padding: 0; color: var(--lq-sheet-fg); background: transparent; border: 1px solid transparent; border-radius: 4px; cursor: pointer; } .lq-sheet-icon-button:hover { background: var(--lq-sheet-range-bg); } .lq-sheet-icon-button:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-icon-button:disabled { opacity: 0.55; cursor: not-allowed; } @media (max-width: 620px) { .lq-sheet-cf-rule { grid-template-columns: 20px minmax(0, 1fr) auto; } .lq-sheet-cf-rule-range { grid-column: 2 / -1; } } .lq-sheet-goto-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 340px; } .lq-sheet-goto .lq-sheet-modal-body { min-width: 300px; } .lq-sheet-goto-list { height: auto; min-height: 132px; padding: 2px; } @media (prefers-reduced-motion: reduce) { .lq-sheet-freeze-bar, .lq-sheet-split-bar, .lq-sheet-unhide { transition: none; } } @media (forced-colors: active) { .lq-sheet-move-preview { border-color: Highlight; background: transparent; opacity: 1; } .lq-sheet-freeze-bar, .lq-sheet-split-bar { background: ButtonText; } .lq-sheet-freeze-bar:hover, .lq-sheet-freeze-bar:focus-visible, .lq-sheet-split-bar:not([aria-disabled="true"]):hover, .lq-sheet-split-bar:focus-visible, .lq-sheet-freeze-guide { background: Highlight; } .lq-sheet-unhide { color: ButtonText; background: ButtonFace; border-color: ButtonText; } .lq-sheet-unhide:hover, .lq-sheet-unhide:focus-visible { color: HighlightText; background: Highlight; border-color: Highlight; } } .lq-sheet-comment-marks { position: absolute; inset: 0; z-index: 4; pointer-events: none; } .lq-sheet-comment-mark { position: absolute; width: 8px; height: 8px; pointer-events: auto; cursor: pointer; background: linear-gradient(to bottom left, #8250df 50%, transparent 50%); } .lq-sheet--rtl .lq-sheet-comment-mark { background: linear-gradient(to bottom right, #8250df 50%, transparent 50%); } .lq-sheet-comment-mark-resolved { opacity: 0.45; } .lq-sheet-threads { display: flex; flex-direction: column; gap: 10px; } .lq-sheet-thread { display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--lq-sheet-border); border-radius: 4px; } .lq-sheet-thread-resolved { background: var(--lq-sheet-header-bg); } .lq-sheet-thread-badge { align-self: flex-start; padding: 0 6px; font-size: 11px; color: var(--lq-sheet-muted); border: 1px solid var(--lq-sheet-border); border-radius: 8px; } .lq-sheet-thread-meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; } .lq-sheet-thread-meta time { color: var(--lq-sheet-muted); } .lq-sheet-thread-text { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; } .lq-sheet-thread-replies { display: flex; flex-direction: column; gap: 6px; padding-inline-start: 10px; border-inline-start: 2px solid var(--lq-sheet-border); } .lq-sheet-thread-composer { display: flex; flex-direction: column; gap: 4px; } .lq-sheet-thread-input { font: inherit; color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: 4px; resize: vertical; } .lq-sheet-thread-send { align-self: flex-end; } @media (forced-colors: active) { .lq-sheet-comment-mark { forced-color-adjust: none; background: Highlight; } } .lq-sheet-rich-mode { color: transparent !important; caret-color: var(--lq-sheet-fg); } .lq-sheet-rich-mode::selection { color: transparent; background: var(--lq-sheet-range-bg); } .lq-sheet-run-bold { -webkit-text-stroke: 0.045em currentColor; } .lq-sheet-run-regular { font-weight: 400; } .lq-sheet-run-italic { font-style: italic; } .lq-sheet-run-upright { font-style: normal; } .lq-sheet-run-underline { text-decoration: underline; } .lq-sheet-run-strike { text-decoration: line-through; } .lq-sheet-run-underline.lq-sheet-run-strike { text-decoration: underline line-through; } .lq-sheet-ribbon-tab { min-height: var(--lq-sheet-control-height); padding: 0 12px; border-radius: var(--lq-sheet-radius-control) var(--lq-sheet-radius-control) 0 0; } .lq-sheet-ribbon-tab:hover { background: var(--lq-sheet-hover); } .lq-sheet-ribbon-tab:focus-visible, .lq-sheet-ribbon-control:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-ribbon-group { padding: 6px 10px 4px; border-inline-end-color: var(--lq-sheet-border); } .lq-sheet-ribbon-group-body { gap: 4px 2px; align-content: flex-start; max-width: 252px; min-height: calc(var(--lq-sheet-control-compact) * 3 + 8px); } .lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group="library"] .lq-sheet-ribbon-group-body { max-width: 430px; } .lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group="fileDownload"] .lq-sheet-ribbon-group-body { max-width: 380px; } .lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group="show"] .lq-sheet-ribbon-group-body { max-width: 340px; } .lq-sheet-ribbon--compact .lq-sheet-ribbon-bar .lq-sheet-ribbon-group .lq-sheet-ribbon-group-body, .lq-sheet-ribbon-overflow .lq-sheet-ribbon-group-body { max-width: none; min-height: 0; } .lq-sheet-ribbon-group-label { margin-top: 4px; font-size: var(--lq-sheet-text-xs); } .lq-sheet-ribbon-control { min-width: var(--lq-sheet-control-compact); height: var(--lq-sheet-control-compact); padding: 0 6px; font-size: var(--lq-sheet-font-size); border-radius: var(--lq-sheet-radius-control); } .lq-sheet-ribbon-control::after { inset: -2px 0; } .lq-sheet-ribbon-control:hover { background: var(--lq-sheet-hover); } .lq-sheet-ribbon-control:active { background: var(--lq-sheet-active); } .lq-sheet-ribbon-control[aria-pressed="true"], .lq-sheet-ribbon-control[aria-expanded="true"] { background: var(--lq-sheet-selected); border-color: var(--lq-sheet-selected-edge); } .lq-sheet-ribbon-control[aria-disabled="true"], .lq-sheet-ribbon-select:disabled { color: inherit; cursor: not-allowed; opacity: 0.55; } .lq-sheet-ribbon-control[aria-disabled="true"]:hover, .lq-sheet-ribbon-control[aria-disabled="true"]:active { background: transparent; } .lq-sheet-ribbon-select { height: var(--lq-sheet-control-compact); padding: 0 6px; } .lq-sheet-ribbon--compact .lq-sheet-ribbon-group { padding: 4px 8px; } .lq-sheet-ribbon--compact .lq-sheet-ribbon-control > svg ~ .lq-sheet-ribbon-text { display: none; } .lq-sheet-ribbon { position: relative; } .lq-sheet-ribbon-head { display: flex; align-items: flex-end; min-width: 0; } .lq-sheet-ribbon-head[hidden], .lq-sheet-ribbon-panel[hidden] { display: none; } .lq-sheet-ribbon-head > .lq-sheet-ribbon-tabs { flex: 1 1 auto; min-width: 0; } .lq-sheet-ribbon-display { flex: none; align-self: center; margin-inline: 4px 8px; } .lq-sheet-ribbon-search { position: relative; display: flex; flex: 0 1 220px; gap: 6px; align-items: center; align-self: center; box-sizing: border-box; min-width: 120px; height: var(--lq-sheet-control-compact); margin-inline-start: 8px; padding: 0 8px; color: var(--lq-sheet-muted); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: var(--lq-sheet-radius-control); } .lq-sheet-ribbon-search[hidden] { display: none; } .lq-sheet-ribbon-search:focus-within { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-ribbon-search-input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; padding: 0; font: inherit; color: var(--lq-sheet-fg); background: transparent; border: 0; outline: none; } .lq-sheet-ribbon-search-input::placeholder { color: var(--lq-sheet-muted); opacity: 1; } .lq-sheet-ribbon-search-input::-webkit-search-cancel-button { display: none; } .lq-sheet-command-list { top: calc(100% + 4px); inset-inline-end: 0; min-width: 320px; max-width: min(460px, 90vw); max-height: min(420px, 70vh); padding: 4px 0; overflow-y: auto; } .lq-sheet-command-list[hidden] { display: none; } .lq-sheet-command-option { display: grid; grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr); gap: 8px; align-items: center; min-height: var(--lq-sheet-control-height); padding: 0 12px; color: var(--lq-sheet-fg); cursor: pointer; } .lq-sheet-command-option:hover { background: var(--lq-sheet-hover); } .lq-sheet-command-option[aria-selected="true"] { background: var(--lq-sheet-selected); outline: 1px solid var(--lq-sheet-selected-edge); outline-offset: -1px; } .lq-sheet-command-option[aria-disabled="true"] { cursor: not-allowed; opacity: 0.55; } .lq-sheet-command-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .lq-sheet-command-path { overflow: hidden; font-size: var(--lq-sheet-text-sm); color: var(--lq-sheet-muted); text-align: end; text-overflow: ellipsis; white-space: nowrap; } .lq-sheet-command-empty { padding: 8px 12px; color: var(--lq-sheet-muted); } .lq-sheet--narrow .lq-sheet-ribbon-search { flex: none; width: 32px; min-width: 32px; padding: 0 7px; } .lq-sheet--narrow .lq-sheet-ribbon-search:focus-within { position: absolute; inset-inline: 8px; z-index: 16; width: auto; } @media (forced-colors: active) { .lq-sheet-command-option[aria-selected="true"] { color: HighlightText; background: Highlight; forced-color-adjust: none; } } .lq-sheet-ribbon-sep { flex: none; align-self: center; width: 1px; height: 18px; margin-inline: 3px; background: var(--lq-sheet-border); } .lq-sheet-ribbon-sep:first-child, .lq-sheet-ribbon-sep:last-child { display: none; } .lq-sheet-ribbon-group-body--rows { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 4px; max-width: none; } .lq-sheet-ribbon-row { display: flex; gap: 2px; align-items: center; } .lq-sheet-ribbon-row:empty { display: none; } .lq-sheet-ribbon--tight .lq-sheet-ribbon-text--wide, .lq-sheet-ribbon--icons .lq-sheet-ribbon-control > svg ~ .lq-sheet-ribbon-text { display: none; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group { flex-direction: row; align-items: center; padding: 5px 4px; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar :is([data-control="fontFamily"], [data-control="numberFormat"]) { max-width: 112px; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group[data-group="history"] .lq-sheet-ribbon-row::before { display: none; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group-label { display: none; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group .lq-sheet-ribbon-group-body { flex-wrap: nowrap; max-width: none; min-height: 0; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-group-body--rows { flex-direction: row; align-items: center; gap: 2px; } .lq-sheet-ribbon--simplified .lq-sheet-ribbon-bar .lq-sheet-ribbon-row + .lq-sheet-ribbon-row::before { content: ''; flex: none; width: 1px; height: 18px; margin-inline: 2px; background: var(--lq-sheet-border); } .lq-sheet-ribbon--open .lq-sheet-ribbon-panel { position: absolute; inset-inline: 0; top: 100%; z-index: 15; border-bottom: 1px solid var(--lq-sheet-border); box-shadow: var(--lq-sheet-menu-shadow); } .lq-sheet-formula-bar { min-height: 36px; } .lq-sheet-namebox { height: var(--lq-sheet-control-compact); margin: 4px; padding: 0 8px; border-radius: var(--lq-sheet-radius-control); } .lq-sheet-namebox:focus-visible { outline-offset: 1px; } .lq-sheet-fx { padding: 0 10px 0 6px; border-inline-end: 0; } .lq-sheet-input-wrap { min-height: var(--lq-sheet-control-compact); margin: 4px 4px 4px 0; background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: var(--lq-sheet-radius-control); } .lq-sheet-formula-input, .lq-sheet-input-wrap > .lq-sheet-mirror { padding: 4px 8px; } .lq-sheet-formula-input { border-radius: inherit; } .lq-sheet-formula-input:focus-visible { box-shadow: none; outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-menu { padding: 4px; border-radius: var(--lq-sheet-radius); } .lq-sheet-menu-item { align-items: center; min-height: var(--lq-sheet-control-height); padding: 0 10px; border-radius: var(--lq-sheet-radius-control); cursor: pointer; } .lq-sheet-menu-item:hover { background: var(--lq-sheet-hover); } .lq-sheet-menu-item:active { background: var(--lq-sheet-active); } .lq-sheet-menu-item:focus-visible { background: var(--lq-sheet-hover); outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-menu-item[aria-disabled="true"] { color: inherit; opacity: 0.55; cursor: not-allowed; } .lq-sheet-menu-item[aria-disabled="true"]:hover, .lq-sheet-menu-item[aria-disabled="true"]:active { background: transparent; } .lq-sheet-menu-item[aria-checked="true"] { background: var(--lq-sheet-selected); } .lq-sheet-menu-shortcut { font-size: var(--lq-sheet-text-xs); } .lq-sheet-menu-separator { margin: 4px -4px; } .lq-sheet-menu-heading { padding: 8px 10px 4px; } .lq-sheet-dropdown { padding: 4px; } .lq-sheet-option { display: flex; align-items: center; min-height: var(--lq-sheet-control-height); padding: 0 10px; border-radius: var(--lq-sheet-radius-control); } .lq-sheet-option:hover { background: var(--lq-sheet-hover); } .lq-sheet-option:focus, .lq-sheet-option:focus-visible { background: var(--lq-sheet-hover); outline: 2px solid var(--lq-sheet-focus); outline-offset: -2px; } .lq-sheet-option[aria-selected="true"] { background: var(--lq-sheet-selected); } .lq-sheet-button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--lq-sheet-control-height); padding: 0 12px; background: var(--lq-sheet-bg); border-color: var(--lq-sheet-input-border); border-radius: var(--lq-sheet-radius-control); } .lq-sheet-button:hover { background: var(--lq-sheet-hover); } .lq-sheet-button:active { background: var(--lq-sheet-active); } .lq-sheet-button-primary { background: var(--lq-sheet-accent); border-color: var(--lq-sheet-accent); } .lq-sheet-button-primary:hover { background: color-mix(in srgb, var(--lq-sheet-accent) 88%, var(--lq-sheet-fg)); } .lq-sheet-button-primary:active { background: color-mix(in srgb, var(--lq-sheet-accent) 76%, var(--lq-sheet-fg)); } .lq-sheet-button:disabled, .lq-sheet-button[aria-disabled="true"], .lq-sheet-icon-button:disabled { opacity: 0.55; cursor: not-allowed; } .lq-sheet-button:focus-visible, .lq-sheet-tab:focus-visible, .lq-sheet-tab-add:focus-visible, .lq-sheet-icon-button:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-select, .lq-sheet-modal input[type="text"], .lq-sheet-modal input[type="number"], .lq-sheet-modal input[type="password"], .lq-sheet-field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]) { min-height: var(--lq-sheet-control-height); padding: 0 8px; font: inherit; font-size: var(--lq-sheet-font-size); color: var(--lq-sheet-fg); background: var(--lq-sheet-input-bg); border: 1px solid var(--lq-sheet-input-border); border-radius: var(--lq-sheet-radius-control); } .lq-sheet-modal textarea { padding: 6px 8px; border-radius: var(--lq-sheet-radius-control); } .lq-sheet-select[multiple], .lq-sheet-select[size] { padding: 4px; } .lq-sheet [aria-invalid="true"]:not(.lq-sheet-cell) { border-color: var(--lq-sheet-danger); box-shadow: inset 0 0 0 1px var(--lq-sheet-danger); } .lq-sheet [aria-busy="true"] { cursor: progress; } .lq-sheet-modal[aria-busy="true"] .lq-sheet-actions { opacity: 0.7; } .lq-sheet-field { gap: 4px; font-size: var(--lq-sheet-text-sm); } .lq-sheet-check { min-height: var(--lq-sheet-control-compact); gap: 8px; } .lq-sheet-modal { gap: 10px; padding: 16px; border-radius: var(--lq-sheet-radius-dialog); } .lq-sheet-modal-title { font-size: var(--lq-sheet-text-lg); font-weight: 600; } .lq-sheet-modal-body { gap: 10px; } .lq-sheet-modal-status, .lq-sheet-modal-note, .lq-sheet-find-status { font-size: var(--lq-sheet-text-sm); } .lq-sheet-modal-status:empty { display: none; } .lq-sheet-actions { justify-content: flex-end; gap: 8px; } .lq-sheet-modal > .lq-sheet-actions { margin: 2px -16px 0; padding: 12px 16px 0; border-top: 1px solid var(--lq-sheet-border); } .lq-sheet-fieldset { gap: 4px 12px; padding: 8px 10px; border-radius: var(--lq-sheet-radius-control); } .lq-sheet-tab-button { min-height: var(--lq-sheet-control-height); padding: 0 12px; } .lq-sheet-tab-button:hover { background: var(--lq-sheet-hover); } .lq-sheet-tab-button[aria-selected="true"] { color: var(--lq-sheet-fg); } .lq-sheet-tab { min-height: var(--lq-sheet-control-compact); } .lq-sheet-tab:hover, .lq-sheet-tab-add:hover { background: var(--lq-sheet-hover); } .lq-sheet-statusbar { font-size: var(--lq-sheet-text-sm); } .lq-sheet-sidepanel-header { min-height: 40px; padding: 4px 6px 4px 12px; } .lq-sheet-sidepanel-close { align-items: center; justify-content: center; width: var(--lq-sheet-control-compact); height: var(--lq-sheet-control-compact); padding: 0; } .lq-sheet-sidepanel-close:hover { background: var(--lq-sheet-hover); } .lq-sheet-sidepanel-close:focus-visible { outline: 2px solid var(--lq-sheet-focus); outline-offset: 1px; } .lq-sheet-zoom-button:hover { background: var(--lq-sheet-hover); } @media (pointer: coarse) { .lq-sheet-ribbon-control::after { inset: -8px -4px; } .lq-sheet-menu-item, .lq-sheet-option { min-height: 44px; } } @media (forced-colors: active) { .lq-sheet-button, .lq-sheet-select, .lq-sheet-namebox, .lq-sheet-input-wrap { border-color: ButtonText; } .lq-sheet-button-primary, .lq-sheet-ribbon-control[aria-pressed="true"], .lq-sheet-menu-item[aria-checked="true"] { color: HighlightText; background: Highlight; forced-color-adjust: none; } .lq-sheet-button:disabled, .lq-sheet-ribbon-control[aria-disabled="true"], .lq-sheet-menu-item[aria-disabled="true"] { color: GrayText; opacity: 1; } } `
```

### AddSheetOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface AddSheetOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'addSheet'` |  |
| `name` | `string` |  |
| `order` | `string[]` |  |

### AppliedChanges

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface AppliedChanges
```

| Property | Type | Description |
| --- | --- | --- |
| `stats` | `RecalculatedEvent` |  |
| `ranges` | `EncodedRange[]` |  |
| `results` | `(string \| boolean \| undefined)[]` |  |

### AsyncResolvedEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface AsyncResolvedEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `pending` | `number` |  |

### AutoFilterState

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface AutoFilterState
```

| Property | Type | Description |
| --- | --- | --- |
| `range` | `string` |  |
| `columns` | `Record<number, string[]>` |  |
| `criteria?` | `Record<number, FilterCriteria>` |  |
| `special?` | `Record<number, ColumnFilter>` |  |

### AverageRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface AverageRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'average'` |  |
| `range` | `string` |  |
| `operator` | `'above' \| 'below' \| 'aboveOrEqual' \| 'belowOrEqual'` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### BeforeOpenEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface BeforeOpenEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `fileName` | `string` |  |
| `format` | `FileOpenFormat` |  |
| `data` | `Uint8Array` |  |
| `source` | `FileOpenSource` |  |
| `preventDefault` | `() => void` |  |

### BeforeSaveEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface BeforeSaveEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `fileName` | `string` |  |
| `format` | `FileSaveFormat` |  |
| `preventDefault` | `() => void` |  |

### BorderSide

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface BorderSide
```

| Property | Type | Description |
| --- | --- | --- |
| `style` | `BorderStyle` |  |
| `color?` | `string` |  |
| `colorTheme?` | `ThemeColor` |  |

### CalculationSettings

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CalculationSettings
```

| Property | Type | Description |
| --- | --- | --- |
| `mode?` | `'auto' \| 'manual' \| 'autoNoTable'` |  |
| `fullCalcOnLoad?` | `boolean` |  |
| `fullPrecision?` | `boolean` |  |

### CellBorders

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellBorders
```

| Property | Type | Description |
| --- | --- | --- |
| `top?` | `BorderSide` |  |
| `right?` | `BorderSide` |  |
| `bottom?` | `BorderSide` |  |
| `left?` | `BorderSide` |  |
| `diagonalUp?` | `BorderSide` |  |
| `diagonalDown?` | `BorderSide` |  |

### CellChangeEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellChangeEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `address` | `string` |  |
| `oldValue` | `CellValue` |  |
| `newValue` | `CellValue` |  |
| `formula?` | `string` |  |
| `source` | `ChangeSource` |  |

### CellEdit

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellEdit
```

| Property | Type | Description |
| --- | --- | --- |
| `address` | `string` |  |
| `value?` | `number \| string \| boolean \| null \| { error: ErrorCode }` |  |
| `formula?` | `string` |  |
| `style?` | `CellStyle` |  |
| `richText?` | `RichTextRun[]` |  |

### CellError

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellError
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly kind` | `'error'` |  |
| `readonly code` | `ErrorCode` |  |

### CellImage

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellImage
```

| Property | Type | Description |
| --- | --- | --- |
| `src` | `string` |  |
| `alt?` | `string` |  |
| `decorative?` | `boolean` |  |

### CellJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `value?` | `CellValue \| { error: ErrorCode }` |  |
| `formula?` | `string` |  |
| `style?` | `CellStyle` |  |
| `richText?` | `RichTextRun[]` |  |
| `spill?` | `string` |  |
| `spillValues?` | `(CellValue \| { error: ErrorCode })[][]` |  |

### CellNote

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellNote
```

| Property | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `author?` | `string` |  |
| `visible?` | `boolean` |  |
| `width?` | `number` |  |
| `height?` | `number` |  |

### CellsOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellsOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'cells'` |  |
| `sheet` | `string` |  |
| `cells` | `CellEdit[]` |  |

### CellStateRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellStateRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'blanks' \| 'noBlanks' \| 'errors' \| 'noErrors'` |  |
| `range` | `string` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### CellStyle

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellStyle
```

| Property | Type | Description |
| --- | --- | --- |
| `bold?` | `boolean` |  |
| `italic?` | `boolean` |  |
| `underline?` | `boolean` |  |
| `strike?` | `boolean` |  |
| `color?` | `string` |  |
| `fontSize?` | `number` |  |
| `fontFamily?` | `string` |  |
| `fill?` | `string` |  |
| `align?` | `'left' \| 'center' \| 'right'` |  |
| `valign?` | `'top' \| 'middle' \| 'bottom'` |  |
| `wrap?` | `boolean` |  |
| `indent?` | `number` |  |
| `numberFormat?` | `string` |  |
| `border?` | `CellBorders` |  |
| `locked?` | `boolean` |  |
| `hideFormula?` | `boolean` |  |
| `rotation?` | `number` |  |
| `shrink?` | `boolean` |  |
| `horizontal?` | `'fill' \| 'justify' \| 'centerContinuous' \| 'distributed'` |  |
| `vertical?` | `'justify' \| 'distributed'` |  |
| `readingOrder?` | `'ltr' \| 'rtl'` |  |
| `underlineStyle?` | `'double' \| 'singleAccounting' \| 'doubleAccounting'` |  |
| `script?` | `'superscript' \| 'subscript'` |  |
| `fillPattern?` | `PatternFill` |  |
| `fillGradient?` | `GradientFill` |  |
| `colorTheme?` | `ThemeColor` |  |
| `fillTheme?` | `ThemeColor` |  |
| `styleName?` | `string` |  |
| `control?` | `CellControl` |  |

### CellStyleDefinition

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellStyleDefinition
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `builtinId?` | `number` |  |
| `style` | `CellStyle` |  |

### CellValueRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CellValueRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'cellValue'` |  |
| `range` | `string` |  |
| `operator` | `ComparisonOperator` |  |
| `values` | `(number \| string)[]` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### ChartAxes

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartAxes
```

| Property | Type | Description |
| --- | --- | --- |
| `x?` | `ChartAxisOptions` |  |
| `y?` | `ChartAxisOptions` |  |
| `secondaryX?` | `ChartAxisOptions` |  |
| `secondaryY?` | `ChartAxisOptions` |  |

### ChartAxisOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartAxisOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `min?` | `number` |  |
| `max?` | `number` |  |
| `majorUnit?` | `number` |  |
| `logBase?` | `number` |  |
| `reversed?` | `boolean` |  |
| `numberFormat?` | `string` |  |
| `labelPosition?` | `'nextTo' \| 'low' \| 'high' \| 'none'` |  |
| `hidden?` | `boolean` |  |
| `majorGridlines?` | `boolean` |  |
| `minorGridlines?` | `boolean` |  |

### ChartBins

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartBins
```

| Property | Type | Description |
| --- | --- | --- |
| `count?` | `number` |  |
| `width?` | `number` |  |

### ChartDataLabels

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartDataLabels
```

| Property | Type | Description |
| --- | --- | --- |
| `placement?` | `ChartLabelPosition` |  |
| `showValue?` | `boolean` |  |
| `showCategoryName?` | `boolean` |  |
| `showSeriesName?` | `boolean` |  |
| `showPercentage?` | `boolean` |  |
| `numberFormat?` | `string` |  |

### ChartErrorBars

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartErrorBars
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'fixed' \| 'percentage' \| 'standardDeviation' \| 'standardError' \| 'custom'` |  |
| `value?` | `number` |  |
| `plus?` | `string` |  |
| `minus?` | `string` |  |
| `direction?` | `'x' \| 'y'` |  |
| `show?` | `'both' \| 'plus' \| 'minus'` |  |
| `endCap?` | `boolean` |  |
| `color?` | `string` |  |

### ChartJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `type` | `ChartType` |  |
| `series` | `ChartSeries[]` |  |
| `anchor` | `DrawingAnchor` |  |
| `title?` | `string` |  |
| `legend?` | `'right' \| 'bottom' \| 'top' \| 'left' \| 'topRight' \| 'none'` |  |
| `stacked?` | `boolean \| 'percent'` |  |
| `dataLabels?` | `boolean` |  |
| `dataLabelOptions?` | `ChartDataLabels` |  |
| `axes?` | `ChartAxes` |  |
| `smooth?` | `boolean` |  |
| `axisTitles?` | `{ x?: string; y?: string }` |  |
| `titleStyle?` | `ChartTextStyle` |  |
| `axisTitleStyles?` | `{ x?: ChartTextStyle; y?: ChartTextStyle }` |  |
| `fill?` | `string` |  |
| `plotFill?` | `string` |  |
| `bins?` | `ChartBins` |  |
| `name?` | `string` |  |

### ChartMarker

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartMarker
```

| Property | Type | Description |
| --- | --- | --- |
| `shape` | `ChartMarkerShape` |  |
| `size?` | `number` |  |

### ChartSeries

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartSeries
```

| Property | Type | Description |
| --- | --- | --- |
| `name?` | `string` |  |
| `values` | `string` |  |
| `categories?` | `string` |  |
| `sizes?` | `string` |  |
| `color?` | `string` |  |
| `marker?` | `ChartMarker` |  |
| `subtotals?` | `number[]` |  |
| `type?` | `'column' \| 'line' \| 'area'` |  |
| `secondaryAxis?` | `boolean` |  |
| `trendlines?` | `ChartTrendline[]` |  |
| `errorBars?` | `ChartErrorBars[]` |  |
| `dataLabels?` | `ChartDataLabels \| false` |  |

### ChartTextStyle

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartTextStyle
```

| Property | Type | Description |
| --- | --- | --- |
| `family?` | `string` |  |
| `size?` | `number` |  |
| `bold?` | `boolean` |  |
| `italic?` | `boolean` |  |
| `color?` | `string` |  |

### ChartTrendline

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ChartTrendline
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'linear' \| 'exponential' \| 'logarithmic' \| 'polynomial' \| 'power' \| 'movingAverage'` |  |
| `order?` | `number` |  |
| `period?` | `number` |  |
| `forward?` | `number` |  |
| `backward?` | `number` |  |
| `displayEquation?` | `boolean` |  |
| `displayRSquared?` | `boolean` |  |
| `name?` | `string` |  |
| `color?` | `string` |  |

### CircularReferenceEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CircularReferenceEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `cells` | `{ sheet: string; address: string }[]` |  |

### CollaborationAuthority

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationAuthority
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly revision` | `number` |  |
| `receive` | `(clientId: string, baseRevision: number, operation: SheetOperation, id?: string) => CommittedOperation[] \| undefined` |  |
| `since` | `(revision: number) => CommittedOperation[] \| undefined` |  |

### CollaborationAuthorityOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationAuthorityOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `revision?` | `number` |  |
| `historyLimit?` | `number` |  |

### CollaborationConnection

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationConnection
```

| Property | Type | Description |
| --- | --- | --- |
| `send` | `(message: ClientMessage) => void` |  |
| `close` | `() => void` |  |

### CollaborationOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `clientId` | `string` |  |
| `user` | `CollaborationUser` |  |
| `revision?` | `number` |  |
| `presenceInterval?` | `number` |  |
| `rejected?` | `(event: RejectedOperation) => void` |  |

### CollaborationPeer

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationPeer
```

| Property | Type | Description |
| --- | --- | --- |
| `clientId` | `string` |  |
| `user` | `CollaborationUser` |  |
| `presence?` | `PresenceState` |  |

### CollaborationProvider

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationProvider
```

| Property | Type | Description |
| --- | --- | --- |
| `connect` | `(handlers: ConnectionHandlers) => CollaborationConnection` |  |

### CollaborationSession

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationSession
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly status` | `CollaborationStatus` |  |
| `readonly revision` | `number` |  |
| `readonly pending` | `number` |  |
| `disconnect` | `() => void` |  |
| `getPeers` | `() => CollaborationPeer[]` |  |
| `onPeersChange` | `(listener: (peers: CollaborationPeer[]) => void) => () => void` |  |
| `onStatusChange` | `(listener: (status: CollaborationStatus) => void) => () => void` |  |

### CollaborationTarget

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationTarget
```

| Property | Type | Description |
| --- | --- | --- |
| `onOperation` | `(listener: (event: SheetOperationEvent) => void) => () => void` |  |
| `applyRemoteOperation` | `(operation: SheetOperation) => boolean` |  |
| `on?` | `(event: 'selectionChange', listener: (selection: PresenceState) => void) => () => void` |  |
| `getSelection?` | `() => PresenceState` |  |
| `setPresence?` | `(cursors: PresenceCursor[]) => void` |  |

### CollaborationUser

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CollaborationUser
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `color?` | `string` |  |

### ColorFilter

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ColorFilter
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'color'` |  |
| `color` | `string` |  |
| `target?` | `'fill' \| 'font'` |  |

### ColorScaleRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ColorScaleRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'colorScale'` |  |
| `range` | `string` |  |
| `min` | `ColorScaleStop` |  |
| `mid?` | `ColorScaleStop` |  |
| `max` | `ColorScaleStop` |  |

### ColorScaleStop

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ColorScaleStop
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'min' \| 'max' \| 'number' \| 'percent' \| 'percentile'` |  |
| `value?` | `number` |  |
| `color` | `string` |  |

### ColumnsOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ColumnsOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'insertColumns' \| 'deleteColumns'` |  |
| `sheet` | `string` |  |
| `column` | `number` |  |
| `count` | `number` |  |

### CommentMention

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CommentMention
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `name` | `string` |  |
| `start` | `number` |  |
| `length` | `number` |  |

### CommentReply

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CommentReply
```

| Property | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `author?` | `string` |  |
| `date?` | `string` |  |
| `mentions?` | `CommentMention[]` |  |

### CommentThread

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CommentThread extends CommentReply
```

| Property | Type | Description |
| --- | --- | --- |
| `resolved?` | `boolean` |  |
| `replies?` | `CommentReply[]` |  |
| `text` | `string` | Inherited from CommentReply. |
| `author?` | `string \| undefined` | Inherited from CommentReply. |
| `date?` | `string \| undefined` | Inherited from CommentReply. |
| `mentions?` | `CommentMention[] \| undefined` | Inherited from CommentReply. |

### CommittedOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CommittedOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `revision` | `number` |  |
| `operation` | `SheetOperation` |  |
| `clientId` | `string` |  |
| `id?` | `string` |  |

### ConnectionHandlers

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ConnectionHandlers
```

| Property | Type | Description |
| --- | --- | --- |
| `open` | `() => void` |  |
| `message` | `(message: ServerMessage) => void` |  |
| `close` | `() => void` |  |

### CreateTableOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CreateTableOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `name?` | `string` |  |
| `headerRow?` | `boolean` |  |
| `totalsRow?` | `boolean` |  |
| `style?` | `string` |  |
| `showRowStripes?` | `boolean` |  |
| `showColumnStripes?` | `boolean` |  |
| `showFirstColumn?` | `boolean` |  |
| `showLastColumn?` | `boolean` |  |
| `autoFilter?` | `boolean` |  |
| `columns?` | `TableColumn[]` |  |

### CsvDialect

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CsvDialect
```

| Property | Type | Description |
| --- | --- | --- |
| `delimiter` | `string` |  |
| `quote` | `string` |  |
| `lineEnding` | `CsvLineEnding` |  |
| `encoding` | `string` |  |
| `hasBom` | `boolean` |  |

### CsvExportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CsvExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet?` | `string` |  |
| `range?` | `string` |  |
| `delimiter?` | `string` |  |
| `quote?` | `string` |  |
| `lineEnding?` | `CsvLineEnding` |  |
| `bom?` | `boolean` |  |
| `values?` | `'formatted' \| 'raw'` |  |
| `quoteAll?` | `boolean` |  |
| `escapeFormulas?` | `boolean` |  |

### CsvImportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CsvImportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `delimiter?` | `string` |  |
| `quote?` | `string` |  |
| `encoding?` | `string` |  |
| `sheetName?` | `string` |  |
| `inferTypes?` | `boolean` |  |
| `decimalSeparator?` | `'.' \| ','` |  |
| `locale?` | `string` |  |
| `dateOrder?` | `CsvDateOrder` |  |
| `formulas?` | `boolean` |  |
| `trim?` | `boolean` |  |
| `maxRows?` | `number` |  |
| `unescapeFormulas?` | `boolean` |  |

### CsvParseResult

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CsvParseResult
```

| Property | Type | Description |
| --- | --- | --- |
| `rows` | `string[][]` |  |
| `quoted` | `boolean[][]` |  |
| `dialect` | `CsvDialect` |  |

### CustomFilterCriteria

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CustomFilterCriteria
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'custom'` |  |
| `conditions` | `{ operator: FilterOperator; value: string }[]` |  |
| `matchAll?` | `boolean` |  |

### CustomFunctionDefinition

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CustomFunctionDefinition extends CustomFunctionOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `impl` | `CustomFunctionImpl` |  |
| `args?` | `string \| undefined` | Inherited from CustomFunctionOptions. |
| `description?` | `string \| undefined` | Inherited from CustomFunctionOptions. |
| `volatile?` | `boolean \| undefined` | Inherited from CustomFunctionOptions. |
| `async?` | `boolean \| undefined` | Inherited from CustomFunctionOptions. |
| `override?` | `boolean \| undefined` | Inherited from CustomFunctionOptions. |

### CustomFunctionOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface CustomFunctionOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `args?` | `string` |  |
| `description?` | `string` |  |
| `volatile?` | `boolean` |  |
| `async?` | `boolean` |  |
| `override?` | `boolean` |  |

### DataBarRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DataBarRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'dataBar'` |  |
| `range` | `string` |  |
| `color` | `string` |  |
| `min?` | `number` |  |
| `max?` | `number` |  |
| `minType?` | `DataBarBoundType` |  |
| `maxType?` | `DataBarBoundType` |  |
| `minFormula?` | `string` |  |
| `maxFormula?` | `string` |  |
| `gradient?` | `boolean` |  |
| `borderColor?` | `string` |  |
| `negativeColor?` | `string` |  |
| `negativeBorderColor?` | `string` |  |
| `axisPosition?` | `'automatic' \| 'midpoint' \| 'none'` |  |
| `axisColor?` | `string` |  |
| `direction?` | `'context' \| 'leftToRight' \| 'rightToLeft'` |  |
| `showValue?` | `boolean` |  |

### DataTableInfo

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DataTableInfo extends DataTableJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `range` | `string` | Inherited from DataTableJSON. |
| `rowInputCell?` | `string \| undefined` | Inherited from DataTableJSON. |
| `columnInputCell?` | `string \| undefined` | Inherited from DataTableJSON. |

### DataTableJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DataTableJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `range` | `string` |  |
| `rowInputCell?` | `string` |  |
| `columnInputCell?` | `string` |  |

### DataValidation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DataValidation
```

| Property | Type | Description |
| --- | --- | --- |
| `range` | `string` |  |
| `type` | `ValidationType` |  |
| `operator?` | `ComparisonOperator` |  |
| `values?` | `(number \| string)[]` |  |
| `source?` | `string` |  |
| `formula?` | `string` |  |
| `allowBlank?` | `boolean` |  |
| `showDropdown?` | `boolean` |  |
| `errorStyle?` | `'stop' \| 'warning' \| 'information'` |  |
| `errorTitle?` | `string` |  |
| `errorMessage?` | `string` |  |
| `prompt?` | `string` |  |
| `promptTitle?` | `string` |  |

### DateGroupFilter

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DateGroupFilter
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'dateGroup'` |  |
| `items` | `DateGroupItem[]` |  |
| `values?` | `string[]` |  |
| `blank?` | `boolean` |  |

### DateGroupItem

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DateGroupItem
```

| Property | Type | Description |
| --- | --- | --- |
| `grouping` | `'year' \| 'month' \| 'day' \| 'hour' \| 'minute' \| 'second'` |  |
| `year` | `number` |  |
| `month?` | `number` |  |
| `day?` | `number` |  |
| `hour?` | `number` |  |
| `minute?` | `number` |  |
| `second?` | `number` |  |

### DateOccurringRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DateOccurringRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'dateOccurring'` |  |
| `range` | `string` |  |
| `period` | `DatePeriod` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### DefinedNameInfo

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DefinedNameInfo
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `formula` | `string` |  |
| `sheet?` | `string` |  |

### DefineNameOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DefineNameOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'defineName'` |  |
| `name` | `string` |  |
| `formula` | `string` |  |
| `sheet?` | `string` |  |

### DocumentProperties

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DocumentProperties
```

| Property | Type | Description |
| --- | --- | --- |
| `title?` | `string` |  |
| `subject?` | `string` |  |
| `author?` | `string` |  |
| `keywords?` | `string` |  |
| `description?` | `string` |  |
| `category?` | `string` |  |
| `status?` | `string` |  |
| `lastModifiedBy?` | `string` |  |
| `created?` | `string` |  |
| `modified?` | `string` |  |
| `company?` | `string` |  |
| `manager?` | `string` |  |
| `application?` | `string` |  |
| `custom?` | `Record<string, string \| number \| boolean>` |  |

### DrawingAnchor

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DrawingAnchor
```

| Property | Type | Description |
| --- | --- | --- |
| `cell` | `string` |  |
| `offsetX?` | `number` |  |
| `offsetY?` | `number` |  |
| `width` | `number` |  |
| `height` | `number` |  |
| `to?` | `{ cell: string; offsetX?: number; offsetY?: number }` |  |
| `editAs?` | `'twoCell' \| 'oneCell' \| 'absolute'` |  |
| `x?` | `number` |  |
| `y?` | `number` |  |

### DuplicateRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DuplicateRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'duplicates'` |  |
| `range` | `string` |  |
| `unique?` | `boolean` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### DynamicFilterCriteria

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface DynamicFilterCriteria
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'dynamic'` |  |
| `name` | `string` |  |
| `value?` | `number` |  |
| `maxValue?` | `number` |  |

### EditorTextFormat

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EditorTextFormat
```

| Property | Type | Description |
| --- | --- | --- |
| `bold?` | `boolean` |  |
| `italic?` | `boolean` |  |
| `underline?` | `boolean` |  |
| `strike?` | `boolean` |  |
| `color?` | `string \| null` |  |
| `fontSize?` | `number \| null` |  |
| `fontFamily?` | `string \| null` |  |
| `script?` | `'superscript' \| 'subscript' \| null` |  |

### EmbeddedFileHints

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EmbeddedFileHints
```

| Property | Type | Description |
| --- | --- | --- |
| `progId?` | `string` |  |
| `fileName?` | `string` |  |
| `contentType?` | `string` |  |
| `partName?` | `string` |  |

### EmbeddedFileType

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EmbeddedFileType
```

| Property | Type | Description |
| --- | --- | --- |
| `kind` | `EmbeddedFileKind` |  |
| `label` | `string` |  |
| `badge` | `string` |  |
| `extension` | `string` |  |
| `mime` | `string` |  |

### EmbeddedObjectChanges

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EmbeddedObjectChanges
```

| Property | Type | Description |
| --- | --- | --- |
| `anchor?` | `DrawingAnchor` |  |
| `alt?` | `string` |  |
| `fileName?` | `string` |  |
| `data?` | `Uint8Array \| ArrayBuffer` |  |
| `mimeType?` | `string` |  |

### EmbeddedObjectInput

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EmbeddedObjectInput
```

| Property | Type | Description |
| --- | --- | --- |
| `data` | `Uint8Array \| ArrayBuffer` |  |
| `fileName` | `string` |  |
| `mimeType?` | `string` |  |
| `asIcon?` | `boolean` |  |
| `anchor?` | `Omit<DrawingAnchor, 'width' \| 'height'> & { width?: number; height?: number }` |  |
| `preview?` | `string` |  |
| `alt?` | `string` |  |
| `id?` | `string` |  |

### EmbeddedObjectJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EmbeddedObjectJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `kind` | `'embeddedObject'` |  |
| `anchor` | `DrawingAnchor` |  |
| `fileName` | `string` |  |
| `data` | `string` |  |
| `mimeType?` | `string` |  |
| `progId` | `string` |  |
| `asIcon?` | `boolean` |  |
| `fallback?` | `string` |  |
| `container?` | `string` |  |
| `name?` | `string` |  |
| `alt?` | `string` |  |

### EmbeddedObjectOpenEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EmbeddedObjectOpenEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `id` | `string` |  |
| `fileName` | `string` |  |
| `mimeType` | `string` |  |
| `progId` | `string` |  |
| `fileType` | `EmbeddedFileType` |  |
| `data` | `Uint8Array` |  |

### EncodedRange

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EncodedRange
```

| Property | Type | Description |
| --- | --- | --- |
| `rows` | `number` |  |
| `cols` | `number` |  |
| `kinds` | `Uint8Array` |  |
| `numbers` | `Float64Array` |  |
| `strings` | `string[]` |  |

### EncryptionError

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EncryptionError extends Error
```

| Property | Type | Description |
| --- | --- | --- |
| `code` | `EncryptionErrorCode` |  |

### EncryptionSummary

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EncryptionSummary
```

| Property | Type | Description |
| --- | --- | --- |
| `kind` | `'agile' \| 'standard'` |  |
| `cipher` | `string` |  |
| `keyBits` | `number` |  |
| `hash` | `string` |  |
| `spinCount` | `number` |  |

### EngineRecalculatedEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface EngineRecalculatedEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `changedCount` | `number` |  |
| `evaluated` | `number` |  |
| `ms` | `number` |  |

### ErrorCheckInfo

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ErrorCheckInfo
```

| Property | Type | Description |
| --- | --- | --- |
| `address` | `string` |  |
| `kind` | `'numberStoredAsText' \| 'formula' \| 'formulaRange'` |  |
| `suggestion?` | `string` |  |

### ExposeOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ExposeOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `importXlsx?` | `(bytes: Uint8Array) => Promise<WorkbookJSON>` |  |
| `functions?` | `CustomFunctionSet` |  |

### FileOpenOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FileOpenOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `password?` | `string` |  |

### FindOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FindOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `matchCase?` | `boolean` |  |
| `wholeCell?` | `boolean` |  |
| `inFormulas?` | `boolean` |  |
| `allSheets?` | `boolean` |  |

### FormatLocale

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormatLocale
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly tag` | `string` |  |
| `readonly decimal` | `string` |  |
| `readonly group` | `string` |  |
| `readonly listSeparator` | `string` |  |
| `readonly arrayColumn` | `string` |  |
| `readonly arrayRow` | `string` |  |
| `readonly dateOrder` | `'mdy' \| 'dmy'` |  |
| `readonly dateFormat` | `string` |  |
| `readonly months` | `readonly string[]` |  |
| `readonly monthsShort` | `readonly string[]` |  |
| `readonly days` | `readonly string[]` |  |
| `readonly daysShort` | `readonly string[]` |  |
| `readonly functionNames?` | `Readonly<Record<string, string>>` |  |

### FormatOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormatOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `width?` | `number` |  |
| `locale?` | `string \| FormatLocale` |  |

### FormattedValue

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormattedValue
```

| Property | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `color?` | `string` |  |

### FormulaEngine

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormulaEngine
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly sheetNames` | `readonly string[]` |  |
| `readonly evaluationCount` | `number` |  |
| `readonly pendingAsync` | `number` |  |
| `addSheet` | `(name?: string, index?: number) => string` |  |
| `removeSheet` | `(name: string) => void` |  |
| `renameSheet` | `(from: string, to: string) => void` |  |
| `moveSheet` | `(name: string, index: number) => void` |  |
| `setCell` | `(sheet: string, address: string, input: CellInput) => void` |  |
| `setFormula` | `(sheet: string, address: string, formula: string) => void` |  |
| `getValue` | `(sheet: string, address: string) => CellValue` |  |
| `getFormula` | `(sheet: string, address: string) => string \| undefined` |  |
| `getRange` | `(sheet: string, range: string) => CellValue[][]` |  |
| `setRange` | `(sheet: string, topLeft: string, rows: CellInput[][]) => void` |  |
| `clearRange` | `(sheet: string, range: string) => void` |  |
| `insertRows` | `(sheet: string, row: number, count?: number) => void` |  |
| `deleteRows` | `(sheet: string, row: number, count?: number) => void` |  |
| `insertColumns` | `(sheet: string, column: number \| string, count?: number) => void` |  |
| `deleteColumns` | `(sheet: string, column: number \| string, count?: number) => void` |  |
| `insertCells` | `(sheet: string, range: string, shift?: 'right' \| 'down') => void` |  |
| `deleteCells` | `(sheet: string, range: string, shift?: 'left' \| 'up') => void` |  |
| `sortRange` | `(sheet: string, range: string, keys: { column: number \| string; descending?: boolean }[]) => void` |  |
| `defineName` | `(name: string, formula: string, sheet?: string) => void` |  |
| `removeName` | `(name: string, sheet?: string) => boolean` |  |
| `addTable` | `(sheet: string, range: string, options?: CreateTableOptions) => string` |  |
| `removeTable` | `(name: string) => void` |  |
| `getTables` | `(sheet?: string) => TableJSON[]` |  |
| `addDataTable` | `(sheet: string, table: DataTableJSON) => void` |  |
| `removeDataTable` | `(sheet: string, range: string, options?: RemoveDataTableOptions) => boolean` |  |
| `getDataTables` | `(sheet?: string) => DataTableInfo[]` |  |
| `evaluate` | `(formula: string, context?: { sheet?: string; address?: string }) => CellValue \| CellValue[][]` |  |
| `validateFormula` | `(formula: string) => string \| undefined` |  |
| `copyFormula` | `(formula: string, from: string, to: string) => string` |  |
| `recalculate` | `() => RecalculatedEvent` |  |
| `batch` | `<T>(fn: () => T) => T` |  |
| `on` | `<K extends keyof FormulaEngineEvents>(event: K, listener: (payload: FormulaEngineEvents[K]) => void) => () => void` |  |
| `toJSON` | `() => WorkbookJSON` |  |
| `fromJSON` | `(json: WorkbookJSON) => void` |  |
| `applyOperation` | `(operation: SheetOperation) => boolean` |  |
| `insertPivotTable` | `(sheet: string, pivot: PivotTableJSON) => void` |  |
| `removePivotTable` | `(name: string) => boolean` |  |
| `getPivotTables` | `(sheet?: string) => PivotTableJSON[]` |  |
| `refreshPivotTables` | `() => number` |  |
| `registerFunction` | `(name: string, impl: CustomFunctionImpl, options?: CustomFunctionOptions) => void` |  |
| `unregisterFunction` | `(name: string) => boolean` |  |
| `listFunctions` | `() => FunctionInfo[]` |  |
| `whenCalculated` | `() => Promise<void>` |  |

### FormulaEngineEvents

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormulaEngineEvents
```

| Property | Type | Description |
| --- | --- | --- |
| `recalculated` | `RecalculatedEvent` |  |
| `circularReference` | `CircularReferenceEvent` |  |
| `functionError` | `FunctionErrorEvent` |  |
| `asyncResolved` | `AsyncResolvedEvent` |  |

### FormulaEngineOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormulaEngineOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `sheets?` | `string[]` |  |
| `dynamicArrays?` | `boolean` |  |
| `iterative?` | `boolean` |  |
| `maxIterations?` | `number` |  |
| `maxChange?` | `number` |  |
| `now?` | `() => Date` |  |
| `random?` | `() => number` |  |
| `resolveImage?` | `(request: ImageRequest) => string \| undefined` |  |
| `functions?` | `CustomFunctionSet` |  |

### FormulaRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormulaRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'formula'` |  |
| `range` | `string` |  |
| `formula` | `string` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### FormulaStep

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FormulaStep
```

| Property | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `evaluated` | `string` |  |
| `value` | `string` |  |

### FunctionErrorEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FunctionErrorEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `sheet` | `string` |  |
| `address` | `string` |  |
| `message` | `string` |  |
| `error?` | `unknown` |  |

### FunctionInfo

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface FunctionInfo
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `category` | `FunctionCategory` |  |
| `args` | `string` |  |
| `summary` | `string` |  |
| `volatile` | `boolean` |  |

### GoalSeekOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface GoalSeekOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `setCell` | `string` |  |
| `toValue` | `number` |  |
| `changingCell` | `string` |  |
| `maxIterations?` | `number` |  |
| `tolerance?` | `number` |  |

### GoalSeekResult

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface GoalSeekResult
```

| Property | Type | Description |
| --- | --- | --- |
| `found` | `boolean` |  |
| `value` | `number` |  |
| `result` | `number` |  |
| `iterations` | `number` |  |

### GradientFill

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface GradientFill
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'linear' \| 'path'` |  |
| `degree?` | `number` |  |
| `left?` | `number` |  |
| `right?` | `number` |  |
| `top?` | `number` |  |
| `bottom?` | `number` |  |
| `stops` | `GradientStop[]` |  |

### GradientStop

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface GradientStop
```

| Property | Type | Description |
| --- | --- | --- |
| `position` | `number` |  |
| `color` | `string` |  |
| `colorTheme?` | `ThemeColor` |  |

### Hyperlink

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface Hyperlink
```

| Property | Type | Description |
| --- | --- | --- |
| `url?` | `string` |  |
| `location?` | `string` |  |
| `tooltip?` | `string` |  |

### HyperlinkClickEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface HyperlinkClickEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `address` | `string` |  |
| `url?` | `string` |  |
| `location?` | `string` |  |
| `preventDefault` | `() => void` |  |

### IconChoice

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface IconChoice
```

| Property | Type | Description |
| --- | --- | --- |
| `iconSet` | `IconSetName \| 'NoIcons'` |  |
| `iconId` | `number` |  |

### IconFilter

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface IconFilter
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'icon'` |  |
| `iconSet` | `string` |  |
| `iconId?` | `number` |  |

### IconSetRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface IconSetRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'iconSet'` |  |
| `range` | `string` |  |
| `iconSet` | `IconSetName` |  |
| `thresholds?` | `IconThreshold[]` |  |
| `reverse?` | `boolean` |  |
| `showValue?` | `boolean` |  |
| `icons?` | `IconChoice[]` |  |

### IconThreshold

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface IconThreshold
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'number' \| 'percent' \| 'percentile' \| 'formula'` |  |
| `value` | `number` |  |
| `formula?` | `string` |  |
| `inclusive?` | `boolean` |  |

### IgnoredError

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface IgnoredError
```

| Property | Type | Description |
| --- | --- | --- |
| `range` | `string` |  |
| `kinds` | `ErrorCheckKind[]` |  |

### ImageCrop

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ImageCrop
```

| Property | Type | Description |
| --- | --- | --- |
| `left?` | `number` |  |
| `top?` | `number` |  |
| `right?` | `number` |  |
| `bottom?` | `number` |  |

### ImageJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ImageJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `src` | `string` |  |
| `anchor` | `DrawingAnchor` |  |
| `alt?` | `string` |  |
| `name?` | `string` |  |
| `fallback?` | `string` |  |
| `rotation?` | `number` |  |
| `flipH?` | `boolean` |  |
| `flipV?` | `boolean` |  |
| `crop?` | `ImageCrop` |  |
| `group?` | `string` |  |

### ImageResolveRequest

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ImageResolveRequest
```

| Property | Type | Description |
| --- | --- | --- |
| `source` | `string` |  |
| `sheet` | `string` |  |
| `address` | `string` |  |

### LoopbackProvider

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface LoopbackProvider extends CollaborationProvider
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly authority` | `CollaborationAuthority` |  |
| `readonly paused` | `boolean` |  |
| `pause` | `() => void` |  |
| `resume` | `() => void` |  |
| `setOnline` | `(clientId: string, online: boolean) => void` |  |
| `getWorkbook` | `() => WorkbookJSON \| undefined` |  |
| `connect` | `(handlers: ConnectionHandlers) => CollaborationConnection` | Inherited from CollaborationProvider. |

### LoopbackProviderOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface LoopbackProviderOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `workbook?` | `WorkbookJSON` |  |
| `historyLimit?` | `number` |  |

### MentionEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface MentionEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `name` | `string` |  |
| `sheet` | `string` |  |
| `address` | `string` |  |
| `text` | `string` |  |
| `author?` | `string` |  |

### MentionOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface MentionOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `search` | `(query: string) => readonly MentionUser[] \| Promise<readonly MentionUser[]>` |  |
| `onMention?` | `(event: MentionEvent) => void` |  |

### MentionUser

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface MentionUser
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `name` | `string` |  |
| `detail?` | `string` |  |

### MessageEndpoint

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface MessageEndpoint
```

| Property | Type | Description |
| --- | --- | --- |
| `postMessage` | `(message: unknown, transfer?: Transferable[]) => void` |  |
| `addEventListener` | `(type: 'message', listener: (event: { data: unknown }) => void) => void` |  |
| `removeEventListener?` | `(type: 'message', listener: (event: { data: unknown }) => void) => void` |  |

### MetafilePicture

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface MetafilePicture
```

| Property | Type | Description |
| --- | --- | --- |
| `format` | `'emf' \| 'wmf'` |  |
| `svg` | `string` |  |
| `width` | `number` |  |
| `height` | `number` |  |
| `shapes` | `Record<MetafileShapeKind, number>` |  |
| `shapeCount` | `number` |  |
| `skippedRecords` | `number` |  |

### MoveSheetOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface MoveSheetOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'moveSheet'` |  |
| `name` | `string` |  |
| `order` | `string[]` |  |

### NamedCellStyle

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface NamedCellStyle
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `category` | `'goodBadNeutral' \| 'dataModel' \| 'titles' \| 'numberFormat' \| 'workbook'` |  |
| `style` | `CellStyle` |  |

### NamedSheetView

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface NamedSheetView extends SheetViewState
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `hiddenRows?` | `number[] \| undefined` | Inherited from SheetViewState. |
| `autoFilter?` | `AutoFilterState \| undefined` | Inherited from SheetViewState. |
| `sortState?` | `SortState \| undefined` | Inherited from SheetViewState. |

### OdsExportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface OdsExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `compress?` | `boolean` |  |

### OdsImportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface OdsImportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `maxRepeatedRows?` | `number` |  |
| `limits?` | `Partial<ZipLimits>` |  |

### OutlineState

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface OutlineState
```

| Property | Type | Description |
| --- | --- | --- |
| `rows?` | `Record<string, number>` |  |
| `columns?` | `Record<string, number>` |  |
| `summaryBelow?` | `boolean` |  |
| `summaryRight?` | `boolean` |  |

### PageMargins

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PageMargins
```

| Property | Type | Description |
| --- | --- | --- |
| `top` | `number` |  |
| `bottom` | `number` |  |
| `left` | `number` |  |
| `right` | `number` |  |
| `header?` | `number` |  |
| `footer?` | `number` |  |

### PageSetup

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PageSetup
```

| Property | Type | Description |
| --- | --- | --- |
| `orientation?` | `'portrait' \| 'landscape'` |  |
| `paperSize?` | `PaperSize` |  |
| `scale?` | `number` |  |
| `fitToWidth?` | `number` |  |
| `fitToHeight?` | `number` |  |
| `margins?` | `PageMargins` |  |
| `printArea?` | `string` |  |
| `printTitleRows?` | `string` |  |
| `printTitleColumns?` | `string` |  |
| `gridlines?` | `boolean` |  |
| `headings?` | `boolean` |  |
| `centerHorizontally?` | `boolean` |  |
| `centerVertically?` | `boolean` |  |
| `header?` | `string` |  |
| `footer?` | `string` |  |
| `rowBreaks?` | `number[]` |  |
| `columnBreaks?` | `number[]` |  |

### PasteSpecialOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PasteSpecialOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `mode?` | `PasteSpecialMode` |  |
| `transpose?` | `boolean` |  |

### PatternFill

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PatternFill
```

| Property | Type | Description |
| --- | --- | --- |
| `pattern` | `FillPattern` |  |
| `color?` | `string` |  |
| `background?` | `string` |  |
| `colorTheme?` | `ThemeColor` |  |
| `backgroundTheme?` | `ThemeColor` |  |

### PdfExportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PdfExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `sheets?` | `'all' \| 'active' \| string[]` |  |
| `range?` | `string` |  |
| `fonts?` | `PdfFontFiles` |  |
| `compress?` | `boolean` |  |
| `title?` | `string` |  |
| `author?` | `string` |  |
| `fileName?` | `string` |  |
| `date?` | `Date` |  |
| `defaultColumnWidth?` | `number` |  |
| `defaultRowHeight?` | `number` |  |
| `locale?` | `string \| FormatLocale` |  |
| `onReport?` | `(report: PdfExportReport) => void` |  |

### PdfExportReport

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PdfExportReport
```

| Property | Type | Description |
| --- | --- | --- |
| `pages` | `number` |  |
| `sheets` | `{ name: string; pages: number }[]` |  |
| `skipped` | `{ sheet: string; kind: string; count: number }[]` |  |
| `replacedCharacters` | `number` |  |

### PdfFontFiles

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PdfFontFiles
```

| Property | Type | Description |
| --- | --- | --- |
| `regular` | `Uint8Array` |  |
| `bold?` | `Uint8Array` |  |
| `italic?` | `Uint8Array` |  |
| `boldItalic?` | `Uint8Array` |  |

### PivotCalculatedField

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotCalculatedField
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `formula` | `string` |  |

### PivotCalculatedItem

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotCalculatedItem
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `formula` | `string` |  |

### PivotDateFilter

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotDateFilter
```

| Property | Type | Description |
| --- | --- | --- |
| `operator` | `PivotDateFilterOperator` |  |
| `date?` | `string` |  |
| `date2?` | `string` |  |

### PivotField

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotField
```

| Property | Type | Description |
| --- | --- | --- |
| `field` | `string` |  |
| `groupBy?` | `PivotDateGrouping` |  |
| `sort?` | `'ascending' \| 'descending'` |  |
| `subtotal?` | `boolean` |  |
| `layout?` | `PivotLayout` |  |
| `hiddenItems?` | `string[]` |  |
| `calculatedItems?` | `PivotCalculatedItem[]` |  |
| `valueFilter?` | `PivotValueFilter` |  |
| `labelFilter?` | `PivotLabelFilter` |  |
| `dateFilter?` | `PivotDateFilter` |  |

### PivotFilterField

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotFilterField
```

| Property | Type | Description |
| --- | --- | --- |
| `field` | `string` |  |
| `selected?` | `string[]` |  |

### PivotLabelFilter

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotLabelFilter
```

| Property | Type | Description |
| --- | --- | --- |
| `operator` | `PivotLabelFilterOperator` |  |
| `operand` | `string` |  |
| `operand2?` | `string` |  |

### PivotStyle

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotStyle
```

| Property | Type | Description |
| --- | --- | --- |
| `name?` | `string` |  |
| `rowStripes?` | `boolean` |  |
| `columnStripes?` | `boolean` |  |
| `rowHeaders?` | `boolean` |  |
| `columnHeaders?` | `boolean` |  |

### PivotTableJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotTableJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `source` | `string` |  |
| `destination` | `string` |  |
| `rows` | `PivotField[]` |  |
| `columns` | `PivotField[]` |  |
| `values` | `PivotValueField[]` |  |
| `filters?` | `PivotFilterField[]` |  |
| `calculatedFields?` | `PivotCalculatedField[]` |  |
| `grandTotals?` | `{ rows?: boolean; columns?: boolean }` |  |
| `layout?` | `PivotLayout` |  |
| `repeatItemLabels?` | `boolean` |  |
| `subtotalPosition?` | `'top' \| 'bottom'` |  |
| `valuesOnRows?` | `boolean` |  |
| `style?` | `PivotStyle` |  |
| `range?` | `string` |  |

### PivotTableOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotTableOptions extends Omit<PivotTableJSON, 'name' | 'range' | 'destination'>
```

| Property | Type | Description |
| --- | --- | --- |
| `name?` | `string` |  |
| `destination?` | `string` |  |
| `columns` | `PivotField[]` | Inherited from PivotTableJSON. |
| `rows` | `PivotField[]` | Inherited from PivotTableJSON. |
| `style?` | `PivotStyle \| undefined` | Inherited from PivotTableJSON. |
| `source` | `string` | Inherited from PivotTableJSON. |
| `values` | `PivotValueField[]` | Inherited from PivotTableJSON. |
| `filters?` | `PivotFilterField[] \| undefined` | Inherited from PivotTableJSON. |
| `calculatedFields?` | `PivotCalculatedField[] \| undefined` | Inherited from PivotTableJSON. |
| `grandTotals?` | `{ rows?: boolean; columns?: boolean; } \| undefined` | Inherited from PivotTableJSON. |
| `layout?` | `PivotLayout \| undefined` | Inherited from PivotTableJSON. |
| `repeatItemLabels?` | `boolean \| undefined` | Inherited from PivotTableJSON. |
| `subtotalPosition?` | `"top" \| "bottom" \| undefined` | Inherited from PivotTableJSON. |
| `valuesOnRows?` | `boolean \| undefined` | Inherited from PivotTableJSON. |

### PivotValueField

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotValueField
```

| Property | Type | Description |
| --- | --- | --- |
| `field` | `string` |  |
| `aggregate?` | `PivotAggregate` |  |
| `showAs?` | `PivotShowAs` |  |
| `name?` | `string` |  |
| `numberFormat?` | `string` |  |

### PivotValueFilter

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PivotValueFilter
```

| Property | Type | Description |
| --- | --- | --- |
| `value?` | `number` |  |
| `operator` | `PivotValueFilterOperator` |  |
| `operand` | `number` |  |
| `operand2?` | `number` |  |
| `by?` | `'items' \| 'percent' \| 'sum'` |  |

### PresenceCursor

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PresenceCursor
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `name` | `string` |  |
| `color?` | `string` |  |
| `sheet` | `string` |  |
| `active` | `string` |  |
| `ranges?` | `string[]` |  |

### PresenceState

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PresenceState
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `active` | `string` |  |
| `ranges` | `string[]` |  |

### PreservedSheet

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PreservedSheet
```

| Property | Type | Description |
| --- | --- | --- |
| `vml?` | `PreservedVml` |  |
| `namespaces?` | `string` |  |
| `codeName?` | `string` |  |
| `elements?` | `PreservedElement[]` |  |
| `extensions?` | `string[]` |  |
| `relationships?` | `PreservedRelationship[]` |  |
| `drawing?` | `PreservedDrawing` |  |
| `charts?` | `Record<string, PreservedChart>` |  |
| `pictures?` | `PreservedPictures` |  |
| `shapes?` | `PreservedShapes` |  |

### PreservedWorkbook

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PreservedWorkbook
```

| Property | Type | Description |
| --- | --- | --- |
| `parts` | `Record<string, PreservedPart>` |  |
| `defaults?` | `Record<string, string>` |  |
| `namespaces?` | `string` |  |
| `contentType?` | `string` |  |
| `workbookPr?` | `string` |  |
| `elements?` | `PreservedElement[]` |  |
| `relationships?` | `PreservedRelationship[]` |  |
| `packageRelationships?` | `PreservedRelationship[]` |  |
| `sheets?` | `{ name: string; state?: string; type: string; target: string }[]` |  |
| `theme?` | `string` |  |
| `styles?` | `PreservedElement[]` |  |
| `stylesNamespaces?` | `string` |  |

### PrintOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface PrintOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet?` | `string` |  |
| `range?` | `string` |  |
| `title?` | `string` |  |

### ProtectSheetOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ProtectSheetOptions extends SheetProtectionOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `password?` | `string` |  |
| `selectLockedCells?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `selectUnlockedCells?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `formatCells?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `formatColumns?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `formatRows?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `insertRows?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `insertColumns?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `deleteRows?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `deleteColumns?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `sort?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `autoFilter?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |
| `editObjects?` | `boolean \| undefined` | Inherited from SheetProtectionOptions. |

### RangeQuery

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RangeQuery
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `range` | `string` |  |

### RasterRequest

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RasterRequest
```

| Property | Type | Description |
| --- | --- | --- |
| `src` | `string` |  |
| `mime` | `string` |  |
| `width` | `number` |  |
| `height` | `number` |  |

### RecalculatedEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RecalculatedEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `changedCount` | `number` |  |
| `ms` | `number` |  |

### RejectedOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RejectedOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `operation` | `SheetOperation` |  |
| `reason` | `RejectionReason` |  |
| `by?` | `SheetOperation` |  |
| `message?` | `string` |  |

### RemoveDataTableOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RemoveDataTableOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `keepValues?` | `boolean` |  |

### RemoveDuplicatesOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RemoveDuplicatesOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `columns?` | `(number \| string)[]` |  |
| `hasHeaders?` | `boolean` |  |

### RemoveNameOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RemoveNameOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'removeName'` |  |
| `name` | `string` |  |
| `sheet?` | `string` |  |

### RemoveSheetOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RemoveSheetOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'removeSheet'` |  |
| `name` | `string` |  |
| `order` | `string[]` |  |

### RenameSheetOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RenameSheetOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'renameSheet'` |  |
| `from` | `string` |  |
| `to` | `string` |  |

### RibbonModeChangeEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RibbonModeChangeEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `mode` | `RibbonMode` |  |
| `resolved` | `RibbonLayout` |  |
| `source` | `RibbonModeChangeSource` |  |

### RibbonOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RibbonOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `mode?` | `RibbonMode` |  |

### RichTextRun

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RichTextRun
```

| Property | Type | Description |
| --- | --- | --- |
| `text` | `string` |  |
| `bold?` | `boolean` |  |
| `italic?` | `boolean` |  |
| `underline?` | `boolean` |  |
| `strike?` | `boolean` |  |
| `color?` | `string` |  |
| `colorTheme?` | `ThemeColor` |  |
| `fontSize?` | `number` |  |
| `fontFamily?` | `string` |  |
| `script?` | `'superscript' \| 'subscript'` |  |

### RowsOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface RowsOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'insertRows' \| 'deleteRows'` |  |
| `sheet` | `string` |  |
| `row` | `number` |  |
| `count` | `number` |  |

### SelectionChangeEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SelectionChangeEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `active` | `string` |  |
| `ranges` | `string[]` |  |

### ShapeJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ShapeJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `type` | `ShapeType` |  |
| `anchor` | `DrawingAnchor` |  |
| `rotation?` | `number` |  |
| `fill?` | `string` |  |
| `stroke?` | `string` |  |
| `strokeWidth?` | `number` |  |
| `text?` | `string` |  |
| `textColor?` | `string` |  |
| `fontSize?` | `number` |  |
| `name?` | `string` |  |
| `alt?` | `string` |  |
| `flipH?` | `boolean` |  |
| `flipV?` | `boolean` |  |
| `textAlign?` | `'left' \| 'center' \| 'right'` |  |
| `textVerticalAlign?` | `'top' \| 'middle' \| 'bottom'` |  |
| `textRuns?` | `RichTextRun[]` |  |
| `adjust?` | `number[]` |  |
| `strokeDash?` | `ShapeDash` |  |
| `startArrow?` | `boolean` |  |
| `endArrow?` | `boolean` |  |

### SheetChangeEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetChangeEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `action` | `SheetAction` |  |
| `previous?` | `string` |  |

### SheetJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `hidden?` | `boolean` |  |
| `tabColor?` | `string` |  |
| `cells` | `Record<string, CellJSON>` |  |
| `columnWidths?` | `Record<string, number>` |  |
| `rowHeights?` | `Record<string, number>` |  |
| `defaultColumnWidth?` | `number` |  |
| `defaultRowHeight?` | `number` |  |
| `drawingOrder?` | `string[]` |  |
| `hiddenRows?` | `number[]` |  |
| `hiddenColumns?` | `number[]` |  |
| `merges?` | `string[]` |  |
| `freeze?` | `{ rows: number; columns: number }` |  |
| `conditionalFormats?` | `ConditionalFormat[]` |  |
| `validations?` | `DataValidation[]` |  |
| `ignoredErrors?` | `IgnoredError[]` |  |
| `views?` | `NamedSheetView[]` |  |
| `autoFilter?` | `AutoFilterState` |  |
| `notes?` | `Record<string, CellNote>` |  |
| `comments?` | `Record<string, CommentThread>` |  |
| `hyperlinks?` | `Record<string, Hyperlink>` |  |
| `protection?` | `SheetProtection` |  |
| `tables?` | `TableJSON[]` |  |
| `outline?` | `OutlineState` |  |
| `images?` | `ImageJSON[]` |  |
| `charts?` | `ChartJSON[]` |  |
| `sparklines?` | `SparklineGroup[]` |  |
| `pageSetup?` | `PageSetup` |  |
| `pivotTables?` | `PivotTableJSON[]` |  |
| `dataTables?` | `DataTableJSON[]` |  |
| `slicers?` | `SlicerJSON[]` |  |
| `shapes?` | `ShapeJSON[]` |  |
| `embeddedObjects?` | `EmbeddedObjectJSON[]` |  |
| `cellImages?` | `Record<string, CellImage>` |  |
| `veryHidden?` | `boolean` |  |
| `view?` | `SheetView` |  |
| `sortState?` | `SortState` |  |
| `preserved?` | `PreservedSheet` |  |

### SheetOperationEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetOperationEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `operation` | `SheetOperation` |  |
| `origin` | `'local'` |  |

### SheetProtection

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetProtection
```

| Property | Type | Description |
| --- | --- | --- |
| `allow?` | `SheetProtectionOptions` |  |
| `passwordHash?` | `string` |  |
| `algorithmName?` | `string` |  |
| `hashValue?` | `string` |  |
| `saltValue?` | `string` |  |
| `spinCount?` | `number` |  |

### SheetProtectionOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetProtectionOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `selectLockedCells?` | `boolean` |  |
| `selectUnlockedCells?` | `boolean` |  |
| `formatCells?` | `boolean` |  |
| `formatColumns?` | `boolean` |  |
| `formatRows?` | `boolean` |  |
| `insertRows?` | `boolean` |  |
| `insertColumns?` | `boolean` |  |
| `deleteRows?` | `boolean` |  |
| `deleteColumns?` | `boolean` |  |
| `sort?` | `boolean` |  |
| `autoFilter?` | `boolean` |  |
| `editObjects?` | `boolean` |  |

### SheetView

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetView
```

| Property | Type | Description |
| --- | --- | --- |
| `zoom?` | `number` |  |
| `gridlines?` | `boolean` |  |
| `headings?` | `boolean` |  |
| `rightToLeft?` | `boolean` |  |
| `showZeros?` | `boolean` |  |
| `showFormulas?` | `boolean` |  |
| `mode?` | `'pageBreakPreview' \| 'pageLayout'` |  |
| `activeCell?` | `string` |  |
| `selection?` | `string` |  |
| `topLeftCell?` | `string` |  |
| `split?` | `{ x?: number; y?: number; topLeftCell?: string; activePane?: 'topLeft' \| 'topRight' \| 'bottomLeft' \| 'bottomRight'; }` |  |

### SheetViewInfo

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetViewInfo
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `active` | `boolean` |  |

### SheetViewState

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SheetViewState
```

| Property | Type | Description |
| --- | --- | --- |
| `hiddenRows?` | `number[]` |  |
| `autoFilter?` | `AutoFilterState` |  |
| `sortState?` | `SortState` |  |

### SlicerJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SlicerJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `target` | `{ kind: 'pivot' \| 'table'; name: string }` |  |
| `field` | `string` |  |
| `anchor` | `DrawingAnchor` |  |
| `caption?` | `string` |  |
| `selected?` | `string[]` |  |
| `columns?` | `number` |  |
| `alsoFilters?` | `string[]` |  |

### SnapshotOperation

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SnapshotOperation
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'snapshot'` |  |
| `workbook` | `WorkbookJSON` |  |

### SortCondition

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SortCondition
```

| Property | Type | Description |
| --- | --- | --- |
| `range` | `string` |  |
| `descending?` | `boolean` |  |
| `by?` | `'value' \| 'cellColor' \| 'fontColor' \| 'icon'` |  |
| `color?` | `string` |  |
| `customList?` | `string[]` |  |
| `iconSet?` | `string` |  |
| `iconId?` | `number` |  |

### SortLevel

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SortLevel
```

| Property | Type | Description |
| --- | --- | --- |
| `column` | `number \| string` |  |
| `descending?` | `boolean` |  |
| `customList?` | `string[]` |  |

### SortOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SortOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `hasHeaders?` | `boolean` |  |
| `matchCase?` | `boolean` |  |

### SortState

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SortState
```

| Property | Type | Description |
| --- | --- | --- |
| `range` | `string` |  |
| `conditions` | `SortCondition[]` |  |
| `caseSensitive?` | `boolean` |  |
| `columnSort?` | `boolean` |  |

### SparklineGroup

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SparklineGroup
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `SparklineType` |  |
| `sparklines` | `{ cell: string; range: string }[]` |  |
| `color?` | `string` |  |
| `negativeColor?` | `string` |  |
| `markers?` | `boolean` |  |
| `highPoint?` | `boolean` |  |
| `lowPoint?` | `boolean` |  |
| `firstPoint?` | `boolean` |  |
| `lastPoint?` | `boolean` |  |
| `negativePoints?` | `boolean` |  |
| `markerColor?` | `string` |  |
| `highColor?` | `string` |  |
| `lowColor?` | `string` |  |
| `firstColor?` | `string` |  |
| `lastColor?` | `string` |  |
| `lineWeight?` | `number` |  |
| `minAxis?` | `number` |  |
| `maxAxis?` | `number` |  |
| `showAxis?` | `boolean` |  |

### SpellingIssue

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SpellingIssue
```

| Property | Type | Description |
| --- | --- | --- |
| `from` | `number` |  |
| `to` | `number` |  |
| `message?` | `string` |  |
| `suggestions?` | `readonly string[]` |  |

### SpellingMatch

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SpellingMatch
```

| Property | Type | Description |
| --- | --- | --- |
| `sheet` | `string` |  |
| `address` | `string` |  |
| `from` | `number` |  |
| `to` | `number` |  |
| `text` | `string` |  |
| `message?` | `string` |  |
| `suggestions` | `string[]` |  |

### SpreadsheetApi

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SpreadsheetApi extends Widget<SpreadsheetOptions, SpreadsheetEvents>
```

| Property | Type | Description |
| --- | --- | --- |
| `getValue` | `(address: string) => CellValue` |  |
| `setValue` | `(address: string, value: CellInput, options?: WriteOptions) => void` |  |
| `getFormula` | `(address: string) => string \| undefined` |  |
| `setFormula` | `(address: string, formula: string, options?: WriteOptions) => void` |  |
| `getDisplayText` | `(address: string) => string` |  |
| `getRange` | `(range: string) => CellValue[][]` |  |
| `setRange` | `(range: string, values: CellInput[][], options?: WriteOptions) => void` |  |
| `clearRange` | `(range: string, options?: WriteOptions) => void` |  |
| `getStyle` | `(address: string) => CellStyle \| undefined` |  |
| `setStyle` | `(range: string, style: CellStyle \| null, mode?: 'merge' \| 'replace', options?: WriteOptions) => void` |  |
| `getCellControl` | `(address: string) => CellControl \| undefined` |  |
| `setCellControl` | `(range: string, control: CellControl \| null, options?: WriteOptions) => void` |  |
| `mergeCells` | `(range: string, options?: WriteOptions) => void` |  |
| `unmergeCells` | `(range: string, options?: WriteOptions) => void` |  |
| `setColumnWidth` | `(column: number \| string, width: number, options?: WriteOptions) => void` |  |
| `setRowHeight` | `(row: number, height: number, options?: WriteOptions) => void` |  |
| `setFreeze` | `(rows: number, columns: number) => void` |  |
| `splitPanes` | `(cell?: string) => void` |  |
| `removeSplit` | `() => void` |  |
| `insertRows` | `(row: number, count?: number, options?: WriteOptions) => void` |  |
| `deleteRows` | `(row: number, count?: number, options?: WriteOptions) => void` |  |
| `insertColumns` | `(column: number \| string, count?: number, options?: WriteOptions) => void` |  |
| `deleteColumns` | `(column: number \| string, count?: number, options?: WriteOptions) => void` |  |
| `insertCells` | `(range: string, shift?: 'right' \| 'down', options?: WriteOptions) => boolean` |  |
| `deleteCells` | `(range: string, shift?: 'left' \| 'up', options?: WriteOptions) => boolean` |  |
| `sortRange` | `(range: string, column: number \| string, descending?: boolean, options?: WriteOptions) => void` |  |
| `setAutoFilter` | `(range: string \| null, options?: WriteOptions) => void` |  |
| `addConditionalFormat` | `(rule: ConditionalFormat, sheet?: string) => void` |  |
| `clearConditionalFormats` | `(sheet?: string) => void` |  |
| `getConditionalFormats` | `(sheet?: string) => ConditionalFormat[]` |  |
| `setConditionalFormats` | `(rules: ConditionalFormat[], sheet?: string) => void` |  |
| `addValidation` | `(rule: DataValidation, sheet?: string) => void` |  |
| `clearValidations` | `(sheet?: string) => void` |  |
| `find` | `(text: string, options?: FindOptions) => string[]` |  |
| `replaceAll` | `(text: string, replacement: string, options?: FindOptions, writeOptions?: WriteOptions) => number` |  |
| `getSheetNames` | `() => string[]` |  |
| `getActiveSheet` | `() => string` |  |
| `addSheet` | `(name?: string, index?: number, options?: WriteOptions) => string` |  |
| `removeSheet` | `(name: string, options?: WriteOptions) => void` |  |
| `renameSheet` | `(name: string, newName: string, options?: WriteOptions) => void` |  |
| `moveSheet` | `(name: string, index: number, options?: WriteOptions) => void` |  |
| `setSheetHidden` | `(name: string, hidden: boolean, options?: WriteOptions) => void` |  |
| `setActiveSheet` | `(name: string) => void` |  |
| `defineName` | `(name: string, formula: string, sheet?: string) => void` |  |
| `formatEditorSelection` | `(format: EditorTextFormat) => boolean` |  |
| `undo` | `() => boolean` |  |
| `redo` | `() => boolean` |  |
| `canUndo` | `() => boolean` |  |
| `canRedo` | `() => boolean` |  |
| `recalculate` | `() => RecalculatedEvent` |  |
| `getCalculationMode` | `() => CalculationMode` |  |
| `getRibbonMode` | `() => { mode: RibbonMode; resolved: RibbonLayout }` |  |
| `whenCalculated` | `() => Promise<void>` |  |
| `registerFunction` | `(name: string, impl: CustomFunctionImpl, options?: CustomFunctionOptions) => void` |  |
| `unregisterFunction` | `(name: string) => boolean` |  |
| `listFunctions` | `() => FunctionInfo[]` |  |
| `select` | `(range: string) => void` |  |
| `goTo` | `(reference: string) => boolean` |  |
| `selectSpecial` | `(kind: GoToSpecialKind, range?: string) => string[]` |  |
| `getSelection` | `() => SelectionChangeEvent` |  |
| `importXlsx` | `(data: Uint8Array \| ArrayBuffer \| Blob, options?: XlsxOpenOptions) => Promise<void>` |  |
| `importCsv` | `(data: string \| Uint8Array \| ArrayBuffer, options?: CsvImportOptions) => void` |  |
| `exportCsv` | `(options?: CsvExportOptions) => string` |  |
| `importOds` | `(data: Uint8Array \| ArrayBuffer, options?: OdsImportOptions) => Promise<void>` |  |
| `exportOds` | `(options?: OdsExportOptions) => Promise<Uint8Array>` |  |
| `exportXlsx` | `(options?: XlsxExportOptions) => Promise<Uint8Array>` |  |
| `downloadXlsx` | `(fileName: string) => Promise<void>` |  |
| `exportPdf` | `(options?: PdfExportOptions) => Promise<Uint8Array>` |  |
| `downloadPdf` | `(fileName: string, options?: PdfExportOptions) => Promise<void>` |  |
| `openFile` | `(file: Blob \| Uint8Array \| ArrayBuffer, fileName?: string, options?: FileOpenOptions) => Promise<boolean>` |  |
| `saveAs` | `(format: FileSaveFormat, fileName?: string) => Promise<boolean>` |  |
| `getFileName` | `() => string` |  |
| `toJSON` | `() => WorkbookJSON` |  |
| `fromJSON` | `(json: WorkbookJSON) => void` |  |
| `getNames` | `() => DefinedNameInfo[]` |  |
| `removeName` | `(name: string, sheet?: string) => boolean` |  |
| `setNote` | `(address: string, note: string \| CellNote \| null) => void` |  |
| `getNote` | `(address: string) => CellNote \| undefined` |  |
| `getNotes` | `(sheet?: string) => Record<string, CellNote>` |  |
| `setHyperlink` | `(address: string, link: string \| Hyperlink \| null) => void` |  |
| `getHyperlink` | `(address: string) => Hyperlink \| undefined` |  |
| `followHyperlink` | `(address: string) => boolean` |  |
| `protectSheet` | `(options?: ProtectSheetOptions, sheet?: string) => void` |  |
| `unprotectSheet` | `(password?: string, sheet?: string) => boolean` |  |
| `isSheetProtected` | `(sheet?: string) => boolean` |  |
| `protectWorkbook` | `(password?: string) => void` |  |
| `unprotectWorkbook` | `(password?: string) => boolean` |  |
| `isWorkbookProtected` | `() => boolean` |  |
| `isCellLocked` | `(address: string) => boolean` |  |
| `addTable` | `(range: string, options?: TableOptions) => string` |  |
| `removeTable` | `(name: string) => void` |  |
| `getTables` | `(sheet?: string) => TableJSON[]` |  |
| `getTable` | `(name: string) => TableJSON \| undefined` |  |
| `updateTable` | `(name: string, changes: Partial<Omit<TableJSON, 'name' \| 'range' \| 'columns'>> & { name?: string }) => void` |  |
| `resizeTable` | `(name: string, range: string) => void` |  |
| `groupRows` | `(first: number, last: number) => void` |  |
| `ungroupRows` | `(first: number, last: number) => void` |  |
| `groupColumns` | `(first: number \| string, last: number \| string) => void` |  |
| `ungroupColumns` | `(first: number \| string, last: number \| string) => void` |  |
| `collapseGroup` | `(axis: 'rows' \| 'columns', index: number \| string) => void` |  |
| `expandGroup` | `(axis: 'rows' \| 'columns', index: number \| string) => void` |  |
| `showOutlineLevel` | `(axis: 'rows' \| 'columns', level: number) => void` |  |
| `addImage` | `(image: Omit<ImageJSON, 'id'> & { id?: string }, sheet?: string) => string` |  |
| `updateImage` | `(id: string, changes: Partial<Omit<ImageJSON, 'id'>>) => void` |  |
| `removeImage` | `(id: string) => void` |  |
| `getImages` | `(sheet?: string) => ImageJSON[]` |  |
| `addChart` | `(chart: Omit<ChartJSON, 'id'> & { id?: string }, sheet?: string) => string` |  |
| `updateChart` | `(id: string, changes: Partial<Omit<ChartJSON, 'id'>>) => void` |  |
| `removeChart` | `(id: string) => void` |  |
| `getCharts` | `(sheet?: string) => ChartJSON[]` |  |
| `addSparklines` | `(group: SparklineGroup, sheet?: string) => void` |  |
| `clearSparklines` | `(range?: string, sheet?: string) => void` |  |
| `getSparklines` | `(sheet?: string) => SparklineGroup[]` |  |
| `setPageSetup` | `(setup: PageSetup \| null, sheet?: string) => void` |  |
| `getPageSetup` | `(sheet?: string) => PageSetup \| undefined` |  |
| `setPageBreak` | `(axis: 'row' \| 'column', index: number \| string, on?: boolean) => void` |  |
| `print` | `(options?: PrintOptions) => void` |  |
| `getPrintHtml` | `(options?: PrintOptions) => string` |  |
| `getPrecedents` | `(address: string) => string[]` |  |
| `getDependents` | `(address: string) => string[]` |  |
| `tracePrecedents` | `(address?: string) => void` |  |
| `traceDependents` | `(address?: string) => void` |  |
| `clearArrows` | `() => void` |  |
| `evaluateFormulaSteps` | `(address: string) => FormulaStep[]` |  |
| `listCellStyles` | `() => NamedCellStyle[]` |  |
| `applyCellStyle` | `(range: string, name: string, options?: WriteOptions) => void` |  |
| `autoSum` | `(range?: string, options?: WriteOptions) => void` |  |
| `openDialog` | `(dialog: SpreadsheetDialog) => void` |  |
| `setComment` | `(address: string, comment: string \| CommentThread \| null) => void` |  |
| `getComment` | `(address: string) => CommentThread \| undefined` |  |
| `getComments` | `(sheet?: string) => Record<string, CommentThread>` |  |
| `addCommentReply` | `(address: string, reply: string \| CommentReply) => void` |  |
| `resolveComment` | `(address: string, resolved?: boolean) => void` |  |
| `insertPivotTable` | `(definition: PivotTableOptions, sheet?: string) => string` |  |
| `updatePivotTable` | `(name: string, changes: Partial<Omit<PivotTableJSON, 'name' \| 'range'>>) => void` |  |
| `refreshPivotTable` | `(name?: string) => void` |  |
| `removePivotTable` | `(name: string) => void` |  |
| `getPivotTables` | `(sheet?: string) => PivotTableJSON[]` |  |
| `drillDownPivot` | `(address: string) => string \| undefined` |  |
| `addSlicer` | `(slicer: Omit<SlicerJSON, 'id'> & { id?: string }, sheet?: string) => string` |  |
| `updateSlicer` | `(id: string, changes: Partial<Omit<SlicerJSON, 'id'>>) => void` |  |
| `removeSlicer` | `(id: string) => void` |  |
| `getSlicers` | `(sheet?: string) => SlicerJSON[]` |  |
| `addShape` | `(shape: Omit<ShapeJSON, 'id'> & { id?: string }, sheet?: string) => string` |  |
| `updateShape` | `(id: string, changes: Partial<Omit<ShapeJSON, 'id'>>) => void` |  |
| `removeShape` | `(id: string) => void` |  |
| `getShapes` | `(sheet?: string) => ShapeJSON[]` |  |
| `insertEmbeddedObject` | `(object: EmbeddedObjectInput, sheet?: string) => string` |  |
| `updateEmbeddedObject` | `(id: string, changes: EmbeddedObjectChanges) => void` |  |
| `removeEmbeddedObject` | `(id: string) => void` |  |
| `getEmbeddedObjects` | `(sheet?: string) => EmbeddedObjectJSON[]` |  |
| `getEmbeddedObjectData` | `(id: string) => Uint8Array \| undefined` |  |
| `getEmbeddedObjectType` | `(id: string) => EmbeddedFileType \| undefined` |  |
| `openEmbeddedObject` | `(id: string) => void` |  |
| `downloadEmbeddedObject` | `(id: string) => boolean` |  |
| `setCellImage` | `(address: string, image: CellImage \| null) => void` |  |
| `getCellImage` | `(address: string) => CellImage \| undefined` |  |
| `sortRangeBy` | `(range: string, levels: SortLevel[], options?: SortOptions, writeOptions?: WriteOptions) => void` |  |
| `removeDuplicates` | `(range: string, options?: RemoveDuplicatesOptions, writeOptions?: WriteOptions) => number` |  |
| `textToColumns` | `(range: string, options?: TextToColumnsOptions, writeOptions?: WriteOptions) => void` |  |
| `flashFill` | `(range?: string, options?: WriteOptions) => number` |  |
| `subtotal` | `(range: string, options: SubtotalOptions, writeOptions?: WriteOptions) => void` |  |
| `removeSubtotals` | `(range: string, options?: WriteOptions) => void` |  |
| `goalSeek` | `(options: GoalSeekOptions) => GoalSeekResult` |  |
| `addDataTable` | `(table: DataTableJSON) => void` |  |
| `removeDataTable` | `(range: string, options?: RemoveDataTableOptions) => boolean` |  |
| `getDataTables` | `(sheet?: string) => DataTableInfo[]` |  |
| `setColumnFilter` | `(column: number \| string, condition: FilterCondition \| null) => void` |  |
| `pasteSpecial` | `(options?: PasteSpecialOptions, writeOptions?: WriteOptions) => void` |  |
| `pasteValues` | `(writeOptions?: WriteOptions) => boolean` |  |
| `getPasteOptions` | `() => { current: PasteOption; available: PasteOption[] } \| undefined` |  |
| `checkSpelling` | `(range?: string) => Promise<SpellingMatch[]>` |  |
| `getSpellingIssues` | `() => SpellingMatch[]` |  |
| `replaceSpelling` | `(match: Pick<SpellingMatch, 'sheet' \| 'address' \| 'from' \| 'to'>, text: string) => boolean` |  |
| `ignoreSpelling` | `(word: string) => void` |  |
| `getSheetViews` | `(sheet?: string) => SheetViewInfo[]` |  |
| `saveSheetView` | `(name: string, sheet?: string) => string \| undefined` |  |
| `applySheetView` | `(name: string \| null, sheet?: string) => boolean` |  |
| `deleteSheetView` | `(name: string, sheet?: string) => boolean` |  |
| `getErrorChecks` | `(sheet?: string) => ErrorCheckInfo[]` |  |
| `ignoreError` | `(address: string, kind?: ErrorCheckKind) => void` |  |
| `applyPasteOption` | `(option: PasteOption, writeOptions?: WriteOptions) => boolean` |  |
| `setFormatPainter` | `(mode: boolean \| 'locked') => void` |  |
| `setZoom` | `(percent: number) => void` |  |
| `getZoom` | `() => number` |  |
| `hideRows` | `(first: number, last?: number, options?: WriteOptions) => void` |  |
| `unhideRows` | `(first: number, last?: number, options?: WriteOptions) => void` |  |
| `hideColumns` | `(first: number \| string, last?: number \| string, options?: WriteOptions) => void` |  |
| `unhideColumns` | `(first: number \| string, last?: number \| string, options?: WriteOptions) => void` |  |
| `duplicateSheet` | `(name: string, newName?: string, options?: WriteOptions) => string` |  |
| `setTabColor` | `(name: string, color: string \| null) => void` |  |
| `getSheetView` | `(sheet?: string) => SheetView` |  |
| `setSheetView` | `(view: Partial<SheetView>, sheet?: string) => void` |  |
| `onOperation` | `(listener: (event: SheetOperationEvent) => void) => () => void` |  |
| `applyRemoteOperation` | `(operation: SheetOperation) => boolean` |  |
| `setPresence` | `(cursors: PresenceCursor[]) => void` |  |
| `getPresence` | `() => PresenceCursor[]` |  |
| `getImportReport` | `() => XlsxImportReport \| undefined` |  |
| `getProperties` | `() => DocumentProperties` |  |
| `setProperties` | `(properties: Partial<DocumentProperties>) => void` |  |
| `readonly element` | `HTMLElement` | Inherited from Widget. |
| `update` | `(options: Partial<SpreadsheetOptions>) => void` | Inherited from Widget. |
| `on` | `<K extends keyof TEvents & string>(event: K, listener: Listener<TEvents[K]>) => () => void` | Inherited from Widget. |
| `destroy` | `() => void` | Inherited from Widget. |

### SpreadsheetErrorEvent

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SpreadsheetErrorEvent
```

| Property | Type | Description |
| --- | --- | --- |
| `code` | `SpreadsheetErrorCode` |  |
| `message` | `string` |  |
| `sheet?` | `string` |  |
| `address?` | `string` |  |

### SpreadsheetEvents

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SpreadsheetEvents
```

| Property | Type | Description |
| --- | --- | --- |
| `ready` | `{ api: SpreadsheetApi }` |  |
| `cellChange` | `CellChangeEvent` |  |
| `selectionChange` | `SelectionChangeEvent` |  |
| `sheetChange` | `SheetChangeEvent` |  |
| `recalculated` | `RecalculatedEvent` |  |
| `error` | `SpreadsheetErrorEvent` |  |
| `hyperlinkClick` | `HyperlinkClickEvent` |  |
| `mention` | `MentionEvent` |  |
| `viewportScroll` | `{ sheet: string; top: number; left: number; firstRow: number; firstColumn: number }` |  |
| `zoomChange` | `{ zoom: number }` |  |
| `pivotTableRefreshed` | `{ sheet: string; name: string; range: string }` |  |
| `importReport` | `{ report: XlsxImportReport }` |  |
| `embeddedObjectOpen` | `EmbeddedObjectOpenEvent` |  |
| `beforeOpen` | `BeforeOpenEvent` |  |
| `beforeSave` | `BeforeSaveEvent` |  |
| `ribbonModeChange` | `RibbonModeChangeEvent` |  |

### SpreadsheetOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SpreadsheetOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `licenseKey?` | `string` |  |
| `data?` | `WorkbookJSON` |  |
| `theme?` | `SpreadsheetTheme` |  |
| `sheetTheme?` | `SheetTheme` |  |
| `height?` | `number \| string` |  |
| `readOnly?` | `boolean` |  |
| `injectStyles?` | `boolean` |  |
| `formulaBar?` | `boolean` |  |
| `autoComplete?` | `boolean` |  |
| `pasteOptionsButton?` | `boolean` |  |
| `errorChecking?` | `boolean` |  |
| `csvImportDialog?` | `boolean` |  |
| `datePicker?` | `boolean` |  |
| `spellcheck?` | `SpellChecker` |  |
| `sheetTabs?` | `boolean` |  |
| `statusBar?` | `boolean` |  |
| `toolbar?` | `ToolbarMode` |  |
| `toolbarOptions?` | `ToolbarOptions` |  |
| `ribbon?` | `RibbonOptions` |  |
| `zoom?` | `number` |  |
| `headings?` | `boolean` |  |
| `userName?` | `string` |  |
| `mentions?` | `MentionOptions` |  |
| `gridlines?` | `boolean` |  |
| `defaultColumnWidth?` | `number` |  |
| `defaultRowHeight?` | `number` |  |
| `dynamicArrays?` | `boolean` |  |
| `iterativeCalculation?` | `boolean \| { maxIterations?: number; maxChange?: number }` |  |
| `now?` | `() => Date` |  |
| `ariaLabel?` | `string` |  |
| `localeText?` | `LocaleTextInput` |  |
| `rtl?` | `boolean` |  |
| `locale?` | `string \| FormatLocale` |  |
| `localizedFormulas?` | `boolean` |  |
| `customLists?` | `string[][]` |  |
| `calculation?` | `CalculationMode` |  |
| `calculationWorker?` | `() => WorkerLike` |  |
| `resolveImage?` | `(request: ImageResolveRequest) => string \| undefined` |  |
| `functions?` | `CustomFunctionSet` |  |
| `validation?` | `ValidationMode` |  |
| `enforceProtection?` | `boolean` |  |
| `fileDrop?` | `boolean` |  |

### SubtotalOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface SubtotalOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `groupBy` | `number \| string` |  |
| `function?` | `SubtotalFunction` |  |
| `columns` | `(number \| string)[]` |  |
| `hasHeaders?` | `boolean` |  |
| `replace?` | `boolean` |  |

### TableColumn

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TableColumn
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `totalsFunction?` | `TableTotalsFunction` |  |
| `totalsLabel?` | `string` |  |
| `totalsFormula?` | `string` |  |
| `formula?` | `string` |  |

### TableFilterState

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TableFilterState
```

| Property | Type | Description |
| --- | --- | --- |
| `columns?` | `Record<number, string[]>` |  |
| `criteria?` | `Record<number, FilterCriteria>` |  |
| `special?` | `Record<number, ColumnFilter>` |  |

### TableJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TableJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `name` | `string` |  |
| `range` | `string` |  |
| `columns` | `TableColumn[]` |  |
| `headerRow?` | `boolean` |  |
| `totalsRow?` | `boolean` |  |
| `style?` | `string` |  |
| `showRowStripes?` | `boolean` |  |
| `showColumnStripes?` | `boolean` |  |
| `showFirstColumn?` | `boolean` |  |
| `showLastColumn?` | `boolean` |  |
| `autoFilter?` | `boolean` |  |
| `filter?` | `TableFilterState` |  |
| `sortState?` | `SortState` |  |

### TableOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TableOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `name?` | `string` |  |
| `headerRow?` | `boolean` |  |
| `totalsRow?` | `boolean` |  |
| `style?` | `string` |  |
| `showRowStripes?` | `boolean` |  |
| `showColumnStripes?` | `boolean` |  |
| `showFirstColumn?` | `boolean` |  |
| `showLastColumn?` | `boolean` |  |
| `autoFilter?` | `boolean` |  |
| `columns?` | `TableJSON['columns']` |  |

### TextRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TextRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'text'` |  |
| `range` | `string` |  |
| `operator` | `'contains' \| 'notContains' \| 'beginsWith' \| 'endsWith'` |  |
| `text` | `string` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### TextToColumnsOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TextToColumnsOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `delimiters?` | `string[]` |  |
| `fixedWidths?` | `number[]` |  |
| `treatConsecutiveAsOne?` | `boolean` |  |
| `textQualifier?` | `string` |  |
| `destination?` | `string` |  |

### ThemeColor

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ThemeColor
```

| Property | Type | Description |
| --- | --- | --- |
| `theme` | `number` |  |
| `tint?` | `number` |  |

### ToolbarCustomItem

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ToolbarCustomItem
```

| Property | Type | Description |
| --- | --- | --- |
| `id` | `string` |  |
| `tab` | `ToolbarTabId` |  |
| `label` | `string` |  |
| `group?` | `string` |  |
| `glyph?` | `string` |  |
| `title?` | `string` |  |
| `onClick` | `(api: SpreadsheetApi) => void` |  |

### ToolbarOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ToolbarOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `hiddenTabs?` | `ToolbarTabId[]` |  |
| `hiddenItems?` | `string[]` |  |
| `customItems?` | `ToolbarCustomItem[]` |  |
| `keyTips?` | `boolean` |  |

### TopBottomRule

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TopBottomRule
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'topBottom'` |  |
| `range` | `string` |  |
| `direction` | `'top' \| 'bottom'` |  |
| `rank` | `number` |  |
| `percent?` | `boolean` |  |
| `style` | `CellStyle` |  |
| `stopIfTrue?` | `boolean` |  |

### TopFilterCriteria

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface TopFilterCriteria
```

| Property | Type | Description |
| --- | --- | --- |
| `type` | `'top'` |  |
| `value` | `number` |  |
| `bottom?` | `boolean` |  |
| `percent?` | `boolean` |  |

### WorkbookJSON

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkbookJSON
```

| Property | Type | Description |
| --- | --- | --- |
| `version` | `1` |  |
| `activeSheet?` | `string` |  |
| `sheets` | `SheetJSON[]` |  |
| `names?` | `{ name: string; formula: string; sheet?: string }[]` |  |
| `settings?` | `{ iterative?: boolean; maxIterations?: number; maxChange?: number }` |  |
| `protection?` | `WorkbookProtection` |  |
| `cellStyles?` | `CellStyleDefinition[]` |  |
| `defaultFont?` | `{ family?: string; size?: number }` |  |
| `properties?` | `DocumentProperties` |  |
| `calculation?` | `CalculationSettings` |  |
| `view?` | `WorkbookView` |  |
| `preserved?` | `PreservedWorkbook` |  |

### WorkbookProtection

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkbookProtection extends Pick< SheetProtection, 'passwordHash' | 'algorithmName' | 'hashValue' | 'saltValue' | 'spinCount' >
```

| Property | Type | Description |
| --- | --- | --- |
| `structure?` | `boolean` |  |
| `passwordHash?` | `string \| undefined` | Inherited from SheetProtection. |
| `algorithmName?` | `string \| undefined` | Inherited from SheetProtection. |
| `hashValue?` | `string \| undefined` | Inherited from SheetProtection. |
| `saltValue?` | `string \| undefined` | Inherited from SheetProtection. |
| `spinCount?` | `number \| undefined` | Inherited from SheetProtection. |

### WorkbookView

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkbookView
```

| Property | Type | Description |
| --- | --- | --- |
| `firstSheet?` | `number` |  |
| `tabRatio?` | `number` |  |
| `showSheetTabs?` | `boolean` |  |
| `showHorizontalScroll?` | `boolean` |  |
| `showVerticalScroll?` | `boolean` |  |

### WorkerEngine

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkerEngine
```

| Property | Type | Description |
| --- | --- | --- |
| `readonly calculation` | `'worker' \| 'main'` |  |
| `readonly sheetNames` | `readonly string[]` |  |
| `readonly pending` | `number` |  |
| `ready` | `() => Promise<void>` |  |
| `load` | `(json: WorkbookJSON) => Promise<void>` |  |
| `loadXlsx` | `(bytes: Uint8Array, options?: { transfer?: boolean }) => Promise<void>` |  |
| `apply` | `(operations: EngineOperation[], read?: RangeQuery[]) => Promise<AppliedChanges>` |  |
| `setCell` | `(sheet: string, address: string, input: CellInput) => Promise<RecalculatedEvent>` |  |
| `setRange` | `(sheet: string, topLeft: string, rows: CellInput[][]) => Promise<RecalculatedEvent>` |  |
| `clearRange` | `(sheet: string, range: string) => Promise<RecalculatedEvent>` |  |
| `recalculate` | `() => Promise<RecalculatedEvent>` |  |
| `whenCalculated` | `() => Promise<void>` |  |
| `readRanges` | `(ranges: RangeQuery[]) => Promise<EncodedRange[]>` |  |
| `getRange` | `(sheet: string, range: string) => Promise<CellValue[][]>` |  |
| `getValue` | `(sheet: string, address: string) => Promise<CellValue>` |  |
| `getFormula` | `(sheet: string, address: string) => Promise<string \| undefined>` |  |
| `evaluate` | `(formula: string, context?: { sheet?: string; address?: string }) => Promise<CellValue \| CellValue[][]>` |  |
| `toJSON` | `() => Promise<WorkbookJSON>` |  |
| `on` | `<K extends keyof WorkerEngineEvents>(event: K, listener: (payload: WorkerEngineEvents[K]) => void) => () => void` |  |
| `terminate` | `() => void` |  |

### WorkerEngineEvents

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkerEngineEvents
```

| Property | Type | Description |
| --- | --- | --- |
| `recalculated` | `RecalculatedEvent` |  |
| `circularReference` | `CircularReferenceEvent` |  |
| `functionError` | `FunctionErrorEvent` |  |
| `asyncResolved` | `AsyncResolvedEvent` |  |

### WorkerEngineInit

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkerEngineInit extends WorkerEngineOptions, ExposeOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `calculation?` | `'worker' \| 'main'` |  |
| `worker?` | `WorkerLike \| (() => WorkerLike)` |  |
| `functionsModule?` | `string \| URL` |  |
| `sheets?` | `string[] \| undefined` | Inherited from FormulaEngineOptions. |
| `dynamicArrays?` | `boolean \| undefined` | Inherited from FormulaEngineOptions. |
| `iterative?` | `boolean \| undefined` | Inherited from FormulaEngineOptions. |
| `maxIterations?` | `number \| undefined` | Inherited from FormulaEngineOptions. |
| `maxChange?` | `number \| undefined` | Inherited from FormulaEngineOptions. |
| `importXlsx?` | `((bytes: Uint8Array) => Promise<WorkbookJSON>) \| undefined` | Inherited from ExposeOptions. |
| `functions?` | `CustomFunctionSet \| undefined` | Inherited from ExposeOptions. |

### WorkerLike

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WorkerLike extends MessageEndpoint
```

| Property | Type | Description |
| --- | --- | --- |
| `terminate?` | `() => void` |  |
| `postMessage` | `(message: unknown, transfer?: Transferable[]) => void` | Inherited from MessageEndpoint. |
| `addEventListener` | `(type: "message", listener: (event: { data: unknown; }) => void) => void` | Inherited from MessageEndpoint. |
| `removeEventListener?` | `((type: "message", listener: (event: { data: unknown; }) => void) => void) \| undefined` | Inherited from MessageEndpoint. |

### WriteOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface WriteOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `force?` | `boolean` |  |

### XlsImportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsImportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `limits?` | `Partial<XlsLimits>` |  |

### XlsImportResult

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsImportResult
```

| Property | Type | Description |
| --- | --- | --- |
| `workbook` | `WorkbookJSON` |  |
| `report` | `XlsxImportReport` |  |

### XlsLimits

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsLimits
```

| Property | Type | Description |
| --- | --- | --- |
| `maxRecords` | `number` |  |
| `maxCells` | `number` |  |
| `maxSharedStrings` | `number` |  |
| `maxStringLength` | `number` |  |
| `maxTextBytes` | `number` |  |

### XlsxExportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `compress?` | `boolean` |  |
| `password?` | `string` |  |
| `onReport?` | `(report: XlsxExportReport) => void` |  |

### XlsxExportReport

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxExportReport
```

| Property | Type | Description |
| --- | --- | --- |
| `adjusted` | `XlsxReportEntry[]` |  |

### XlsxImportOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxImportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `licenseKey?` | `string` |  |
| `password?` | `string` |  |
| `onProgress?` | `(progress: XlsxImportProgress) => void` |  |
| `signal?` | `AbortSignal` |  |
| `limits?` | `Partial<ZipLimits>` |  |
| `xlsLimits?` | `Partial<XlsLimits>` |  |

### XlsxImportProgress

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxImportProgress
```

| Property | Type | Description |
| --- | --- | --- |
| `phase` | `XlsxImportPhase` |  |
| `fraction` | `number` |  |
| `sheet?` | `string` |  |
| `sheetIndex?` | `number` |  |
| `sheetCount?` | `number` |  |

### XlsxImportReport

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxImportReport
```

| Property | Type | Description |
| --- | --- | --- |
| `modelled` | `XlsxReportEntry[]` |  |
| `preserved` | `XlsxReportEntry[]` |  |
| `dropped` | `XlsxReportEntry[]` |  |
| `adjusted` | `XlsxReportEntry[]` |  |

### XlsxImportResult

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxImportResult
```

| Property | Type | Description |
| --- | --- | --- |
| `workbook` | `WorkbookJSON` |  |
| `report` | `XlsxImportReport` |  |

### XlsxOpenOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxOpenOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `password?` | `string` |  |
| `onProgress?` | `(progress: XlsxImportProgress) => void` |  |
| `signal?` | `AbortSignal` |  |
| `limits?` | `Partial<ZipLimits>` |  |
| `xlsLimits?` | `Partial<XlsLimits>` |  |

### XlsxReportEntry

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxReportEntry
```

| Property | Type | Description |
| --- | --- | --- |
| `feature` | `string` |  |
| `sheet?` | `string` |  |
| `count?` | `number` |  |
| `parts?` | `string[]` |  |
| `elements?` | `string[]` |  |
| `note?` | `string` |  |

### XlsxValidateOptions

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxValidateOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `limits?` | `Partial<ZipLimits>` |  |

### XlsxValidationIssue

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface XlsxValidationIssue
```

| Property | Type | Description |
| --- | --- | --- |
| `part` | `string` |  |
| `rule` | `string` |  |
| `message` | `string` |  |

### ZipLimits

Kind: interface. Import from `@birchui/spreadsheet`.

```ts
interface ZipLimits
```

| Property | Type | Description |
| --- | --- | --- |
| `maxEntries` | `number` |  |
| `maxEntryBytes` | `number` |  |
| `maxTotalBytes` | `number` |  |
| `maxRatio` | `number` |  |

### BorderStyle

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type BorderStyle =
  | 'thin'
  | 'medium'
  | 'thick'
  | 'dashed'
  | 'dotted'
  | 'double'
  | 'hair'
  | 'mediumDashed'
  | 'dashDot'
  | 'mediumDashDot'
  | 'dashDotDot'
  | 'mediumDashDotDot'
  | 'slantDashDot';
```

### CalculationMode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CalculationMode = 'sync' | 'worker';
```

### CellControl

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CellControl = 'checkbox' | 'dropdown';
```

### CellInput

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CellInput = CellValue | Date;
```

### CellValue

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CellValue = number | string | boolean | null | CellError;
```

### ChangeSource

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ChangeSource =
  'edit' | 'api' | 'paste' | 'fill' | 'undo' | 'redo' | 'replace' | 'clear' | 'sort' | 'remote';
```

### ChartLabelPosition

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ChartLabelPosition =
  'center' | 'insideEnd' | 'insideBase' | 'outsideEnd' | 'above' | 'below' | 'left' | 'right' | 'bestFit';
```

### ChartMarkerShape

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ChartMarkerShape = 'none' | 'circle' | 'square' | 'diamond' | 'triangle' | 'x';
```

### ChartType

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ChartType =
  | 'column'
  | 'bar'
  | 'line'
  | 'area'
  | 'pie'
  | 'doughnut'
  | 'scatter'
  | 'bubble'
  | 'radar'
  | 'combo'
  | 'waterfall'
  | 'histogram'
  | 'treemap'
  | 'sunburst'
  | 'funnel'
  | 'boxWhisker'
  | 'stock';
```

### ClientMessage

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ClientMessage =
  | { type: 'join'; clientId: string; revision: number; user: CollaborationUser }
  | { type: 'operation'; clientId: string; id: string; revision: number; operation: SheetOperation }
  | { type: 'presence'; clientId: string; presence: PresenceState | null }
  | { type: 'resync'; clientId: string };
```

### CollaborationStatus

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CollaborationStatus = 'connecting' | 'connected' | 'offline' | 'closed';
```

### ColumnFilter

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ColumnFilter = ColorFilter | IconFilter | DateGroupFilter;
```

### ComparisonOperator

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ComparisonOperator =
  | 'between'
  | 'notBetween'
  | 'equal'
  | 'notEqual'
  | 'greaterThan'
  | 'lessThan'
  | 'greaterThanOrEqual'
  | 'lessThanOrEqual';
```

### ConditionalFormat

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ConditionalFormat =
  | CellValueRule
  | FormulaRule
  | TextRule
  | ColorScaleRule
  | DataBarRule
  | TopBottomRule
  | AverageRule
  | DuplicateRule
  | IconSetRule
  | CellStateRule
  | DateOccurringRule;
```

### CsvDateOrder

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CsvDateOrder = 'dmy' | 'mdy' | 'ymd';
```

### CsvLineEnding

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CsvLineEnding = '\r\n' | '\n' | '\r';
```

### CustomFunctionArgument

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CustomFunctionArgument = CellValue | CellValue[][];
```

### CustomFunctionImpl

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CustomFunctionImpl = (
  ...args: CustomFunctionArgument[]
) => CustomFunctionResult | Promise<CustomFunctionResult>;
```

### CustomFunctionResult

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CustomFunctionResult = CellInput | undefined | { error: string } | (CellInput | undefined)[][];
```

### CustomFunctionSet

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type CustomFunctionSet =
  | readonly CustomFunctionDefinition[]
  | Readonly<Record<string, CustomFunctionImpl | Omit<CustomFunctionDefinition, 'name'>>>;
```

### DataBarBoundType

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type DataBarBoundType = 'automatic' | 'min' | 'max' | 'number' | 'percent' | 'percentile' | 'formula';
```

### DatePeriod

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type DatePeriod =
  | 'yesterday'
  | 'today'
  | 'tomorrow'
  | 'last7Days'
  | 'lastWeek'
  | 'thisWeek'
  | 'nextWeek'
  | 'lastMonth'
  | 'thisMonth'
  | 'nextMonth';
```

### EmbeddedFileKind

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type EmbeddedFileKind =
  | 'document'
  | 'spreadsheet'
  | 'presentation'
  | 'pdf'
  | 'message'
  | 'email'
  | 'image'
  | 'text'
  | 'csv'
  | 'archive'
  | 'audio'
  | 'video'
  | 'file';
```

### EncryptionErrorCode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type EncryptionErrorCode = 'passwordRequired' | 'wrongPassword' | 'unsupported' | 'corrupt';
```

### EngineOperation

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type EngineOperation =
  | { type: 'setCell'; sheet: string; address: string; input: CellInput }
  | { type: 'setRange'; sheet: string; topLeft: string; rows: CellInput[][] }
  | { type: 'clearRange'; sheet: string; range: string }
  | { type: 'insertRows' | 'deleteRows'; sheet: string; row: number; count?: number }
  | { type: 'insertColumns' | 'deleteColumns'; sheet: string; column: number | string; count?: number }
  | { type: 'insertCells'; sheet: string; range: string; shift: 'right' | 'down' }
  | { type: 'deleteCells'; sheet: string; range: string; shift: 'left' | 'up' }
  | { type: 'sortRange'; sheet: string; range: string; keys: { column: number | string; descending?: boolean }[] }
  | { type: 'addSheet'; name?: string; index?: number }
  | { type: 'removeSheet'; name: string }
  | { type: 'renameSheet'; from: string; to: string }
  | { type: 'moveSheet'; name: string; index: number }
  | { type: 'defineName'; name: string; formula: string; sheet?: string }
  | { type: 'removeName'; name: string; sheet?: string }
  | { type: 'addTable'; sheet: string; range: string; options?: CreateTableOptions }
  | { type: 'removeTable'; name: string };
```

### ErrorCheckKind

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ErrorCheckKind =
  | 'numberStoredAsText'
  | 'formula'
  | 'formulaRange'
  | 'evalError'
  | 'twoDigitTextYear'
  | 'emptyCellReference'
  | 'listDataValidation'
  | 'calculatedColumn'
  | 'unlockedFormula';
```

### ErrorCode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ErrorCode =
  | '#NULL!'
  | '#DIV/0!'
  | '#VALUE!'
  | '#REF!'
  | '#NAME?'
  | '#NUM!'
  | '#N/A'
  | '#SPILL!'
  | '#CALC!'
  | '#GETTING_DATA'
  | '#BLOCKED!'
  | '#BUSY!';
```

### FileOpenFormat

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FileOpenFormat = 'xlsx' | 'xls' | 'csv' | 'ods';
```

### FileOpenSource

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FileOpenSource = 'picker' | 'drop' | 'api';
```

### FileSaveFormat

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FileSaveFormat = 'xlsx' | 'csv' | 'ods' | 'pdf';
```

### FillPattern

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FillPattern =
  | 'darkGray'
  | 'mediumGray'
  | 'lightGray'
  | 'gray125'
  | 'gray0625'
  | 'darkHorizontal'
  | 'darkVertical'
  | 'darkDown'
  | 'darkUp'
  | 'darkGrid'
  | 'darkTrellis'
  | 'lightHorizontal'
  | 'lightVertical'
  | 'lightDown'
  | 'lightUp'
  | 'lightGrid'
  | 'lightTrellis';
```

### FilterCondition

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FilterCondition =
  | {
      kind: 'condition';
      operator:
        | 'equals'
        | 'notEquals'
        | 'greaterThan'
        | 'greaterThanOrEqual'
        | 'lessThan'
        | 'lessThanOrEqual'
        | 'between'
        | 'contains'
        | 'notContains'
        | 'beginsWith'
        | 'endsWith';
      value: string | number;
      value2?: string | number;
    }
  | { kind: 'top'; direction: 'top' | 'bottom'; count: number; percent?: boolean }
  | { kind: 'color'; target: 'fill' | 'font'; color: string | null }
  | { kind: 'dateGroup'; year: number; month?: number; day?: number }
  | { kind: 'values'; values: string[] };
```

### FilterCriteria

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FilterCriteria = CustomFilterCriteria | TopFilterCriteria | DynamicFilterCriteria;
```

### FilterOperator

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FilterOperator =
  'equal' | 'notEqual' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual';
```

### FormatKind

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FormatKind =
  'general' | 'number' | 'percent' | 'scientific' | 'fraction' | 'currency' | 'date' | 'time' | 'text';
```

### FunctionCategory

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type FunctionCategory =
  | 'math'
  | 'statistical'
  | 'logical'
  | 'lookup'
  | 'text'
  | 'date'
  | 'financial'
  | 'information'
  | 'engineering'
  | 'database'
  | 'custom';
```

### GoToSpecialKind

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type GoToSpecialKind =
  | 'blanks'
  | 'constants'
  | 'formulas'
  | 'errors'
  | 'visibleCells'
  | 'currentRegion'
  | 'conditionalFormats'
  | 'dataValidation'
  | 'notes'
  | 'lastCell';
```

### IconSetName

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type IconSetName =
  | '3Arrows'
  | '3ArrowsGray'
  | '3Flags'
  | '3TrafficLights1'
  | '3TrafficLights2'
  | '3Signs'
  | '3Symbols'
  | '3Symbols2'
  | '3Stars'
  | '3Triangles'
  | '4Arrows'
  | '4ArrowsGray'
  | '4RedToBlack'
  | '4Rating'
  | '4TrafficLights'
  | '5Arrows'
  | '5ArrowsGray'
  | '5Rating'
  | '5Quarters'
  | '5Boxes';
```

### ImageRasterizer

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ImageRasterizer = (image: RasterRequest) => Promise<string | undefined> | string | undefined;
```

### MetafileShapeKind

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type MetafileShapeKind =
  'line' | 'polyline' | 'polygon' | 'rectangle' | 'ellipse' | 'arc' | 'path' | 'text' | 'image';
```

### PaperSize

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PaperSize = 'letter' | 'legal' | 'tabloid' | 'a3' | 'a4' | 'a5';
```

### PasteOption

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PasteOption = 'all' | 'values' | 'formulas' | 'formats' | 'transpose' | 'columnWidths' | 'link';
```

### PasteSpecialMode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PasteSpecialMode = 'all' | 'values' | 'formulas' | 'formats';
```

### PivotAggregate

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotAggregate = 'sum' | 'count' | 'average' | 'min' | 'max' | 'distinctCount';
```

### PivotDateFilterOperator

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotDateFilterOperator =
  | 'equals'
  | 'doesNotEqual'
  | 'before'
  | 'beforeOrEqual'
  | 'after'
  | 'afterOrEqual'
  | 'between'
  | 'notBetween'
  | PivotDatePeriod;
```

### PivotDateGrouping

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotDateGrouping = 'year' | 'quarter' | 'month';
```

### PivotDatePeriod

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotDatePeriod =
  | 'today'
  | 'yesterday'
  | 'tomorrow'
  | 'thisWeek'
  | 'lastWeek'
  | 'nextWeek'
  | 'thisMonth'
  | 'lastMonth'
  | 'nextMonth'
  | 'thisQuarter'
  | 'lastQuarter'
  | 'nextQuarter'
  | 'thisYear'
  | 'lastYear'
  | 'nextYear'
  | 'yearToDate';
```

### PivotLabelFilterOperator

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotLabelFilterOperator =
  | 'equals'
  | 'doesNotEqual'
  | 'beginsWith'
  | 'doesNotBeginWith'
  | 'endsWith'
  | 'doesNotEndWith'
  | 'contains'
  | 'doesNotContain'
  | 'greaterThan'
  | 'greaterThanOrEqual'
  | 'lessThan'
  | 'lessThanOrEqual'
  | 'between'
  | 'notBetween';
```

### PivotLayout

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotLayout = 'compact' | 'outline' | 'tabular';
```

### PivotShowAs

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotShowAs = 'value' | 'percentOfTotal' | 'percentOfRow' | 'percentOfColumn';
```

### PivotValueFilterOperator

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type PivotValueFilterOperator = FilterOperator | 'between' | 'top' | 'bottom';
```

### RejectionReason

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type RejectionReason = 'conflict' | 'invalid' | 'reload';
```

### RibbonLayout

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type RibbonLayout = 'classic' | 'simplified' | 'collapsed';
```

### RibbonMode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type RibbonMode = 'classic' | 'simplified' | 'collapsed' | 'auto';
```

### RibbonModeChangeSource

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type RibbonModeChangeSource = 'user' | 'resize';
```

### ServerMessage

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ServerMessage =
  | { type: 'joined'; revision: number; operations: CommittedOperation[]; peers: CollaborationPeer[] }
  | { type: 'reload'; revision: number; workbook: WorkbookJSON; peers: CollaborationPeer[] }
  | ({ type: 'operation' } & CommittedOperation)
  | { type: 'ack'; id: string; revision: number }
  | { type: 'rejected'; id: string; message: string }
  | { type: 'peer'; peer: CollaborationPeer }
  | { type: 'peerLeft'; clientId: string };
```

### ShapeDash

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ShapeDash =
  | 'dash'
  | 'dot'
  | 'dashDot'
  | 'lgDash'
  | 'lgDashDot'
  | 'lgDashDotDot'
  | 'sysDash'
  | 'sysDot'
  | 'sysDashDot'
  | 'sysDashDotDot';
```

### ShapeType

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ShapeType =
  | 'rect'
  | 'roundRect'
  | 'ellipse'
  | 'line'
  | 'arrow'
  | 'textBox'
  | 'bentConnector3'
  | 'curvedConnector3'
  | 'triangle'
  | 'rtTriangle'
  | 'diamond'
  | 'parallelogram'
  | 'trapezoid'
  | 'pentagon'
  | 'hexagon'
  | 'octagon'
  | 'rightArrow'
  | 'leftArrow'
  | 'upArrow'
  | 'downArrow'
  | 'leftRightArrow'
  | 'upDownArrow'
  | 'chevron'
  | 'homePlate'
  | 'plus'
  | 'star5'
  | 'leftBrace'
  | 'rightBrace'
  | 'leftBracket'
  | 'rightBracket'
  | 'bracePair'
  | 'bracketPair'
  | 'wedgeRectCallout'
  | 'wedgeRoundRectCallout'
  | 'wedgeEllipseCallout'
  | 'flowChartProcess'
  | 'flowChartDecision'
  | 'flowChartTerminator';
```

### SheetAction

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SheetAction = 'activate' | 'add' | 'remove' | 'rename' | 'move' | 'hide' | 'show';
```

### SheetOperation

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SheetOperation =
  | CellsOperation
  | RowsOperation
  | ColumnsOperation
  | ShiftCellsOperation
  | AddSheetOperation
  | RemoveSheetOperation
  | RenameSheetOperation
  | MoveSheetOperation
  | DefineNameOperation
  | RemoveNameOperation
  | SnapshotOperation;
```

### SheetOperationType

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SheetOperationType = SheetOperation['type'];
```

### SheetTheme

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SheetTheme = 'light' | 'match';
```

### SparklineType

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SparklineType = 'line' | 'column' | 'winLoss';
```

### SpellChecker

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SpellChecker = (
  text: string,
  language: string,
) => Promise<readonly SpellingIssue[]> | readonly SpellingIssue[];
```

### SpreadsheetDialog

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SpreadsheetDialog =
  | 'formatCells'
  | 'nameManager'
  | 'cellStyles'
  | 'note'
  | 'hyperlink'
  | 'evaluateFormula'
  | 'pageSetup'
  | 'createTable'
  | 'find'
  | 'replace'
  | 'pasteSpecial'
  | 'insertCells'
  | 'deleteCells'
  | 'goTo'
  | 'goToSpecial'
  | 'sort'
  | 'removeDuplicates'
  | 'textToColumns'
  | 'subtotal'
  | 'goalSeek'
  | 'dataTable'
  | 'dataValidation'
  | 'conditionalFormat'
  | 'conditionalRules'
  | 'insertFunction'
  | 'insertPivotTable'
  | 'pivotFields'
  | 'insertChart'
  | 'formatChart'
  | 'saveSheetView'
  | 'spelling'
  | 'insertSparkline'
  | 'comments'
  | 'notes'
  | 'protectSheet'
  | 'importReport'
  | 'documentProperties'
  | 'insertObject'
  | 'objectProperties';
```

### SpreadsheetErrorCode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SpreadsheetErrorCode =
  | 'circularReference'
  | 'validation'
  | 'formula'
  | 'import'
  | 'export'
  | 'readOnly'
  | 'protected'
  | 'table'
  | 'dataTable'
  | 'collaboration';
```

### SpreadsheetTheme

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SpreadsheetTheme = 'light' | 'dark' | 'auto';
```

### SubtotalFunction

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type SubtotalFunction = 'sum' | 'count' | 'average' | 'max' | 'min';
```

### TableTotalsFunction

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type TableTotalsFunction =
  'none' | 'sum' | 'average' | 'count' | 'countNums' | 'max' | 'min' | 'stdDev' | 'var' | 'custom';
```

### ToolbarMode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ToolbarMode = 'ribbon' | 'compact' | false;
```

### ToolbarTabId

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ToolbarTabId = 'file' | 'home' | 'insert' | 'pageLayout' | 'formulas' | 'data' | 'review' | 'view';
```

### TransformOrder

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type TransformOrder = 'after' | 'before';
```

### ValidationMode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ValidationMode = 'ui' | 'always';
```

### ValidationType

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ValidationType = 'list' | 'whole' | 'decimal' | 'date' | 'time' | 'textLength' | 'custom';
```

### WorkerEngineOptions

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type WorkerEngineOptions = Pick<
  FormulaEngineOptions,
  'sheets' | 'dynamicArrays' | 'iterative' | 'maxIterations' | 'maxChange'
>;
```

### XlsxImportPhase

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type XlsxImportPhase = 'unzip' | 'styles' | 'sheets' | 'features' | 'done';
```

### ZipLimitCode

Kind: type. Import from `@birchui/spreadsheet`.

```ts
type ZipLimitCode = 'too-many-entries' | 'entry-too-large' | 'archive-too-large' | 'ratio-too-high';
```

## @birchui/spreadsheet/xlsx

### canvasImageRasterizer

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function canvasImageRasterizer(image: RasterRequest): Promise<string | undefined>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `image` | `RasterRequest` |  |

### exportXlsxBytes

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function exportXlsxBytes(source: WorkbookJSON, options: XlsxExportOptions = {}): Promise<Uint8Array>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `WorkbookJSON` |  |
| `options?` | `XlsxExportOptions` |  |

### exportXlsxWithReport

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function exportXlsxWithReport(source: WorkbookJSON, options: XlsxExportOptions = {}): Promise<{ bytes: Uint8Array; report: XlsxExportReport }>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `source` | `WorkbookJSON` |  |
| `options?` | `XlsxExportOptions` |  |

### fromFileFormula

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function fromFileFormula(formula: string, hostTable?: string): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `hostTable?` | `string` |  |

### importXlsx

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function importXlsx(data: Uint8Array | ArrayBuffer | Blob, options: XlsxImportOptions = {}): Promise<WorkbookJSON>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `Uint8Array \| ArrayBuffer \| Blob` |  |
| `options?` | `XlsxImportOptions` |  |

### importXlsxWithReport

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function importXlsxWithReport(data: Uint8Array | ArrayBuffer | Blob, options: XlsxImportOptions = {}): Promise<XlsxImportResult>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `Uint8Array \| ArrayBuffer \| Blob` |  |
| `options?` | `XlsxImportOptions` |  |

### inspectXlsx

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function inspectXlsx(data: Uint8Array | ArrayBuffer | Blob, options: XlsxImportOptions = {}): Promise<XlsxImportReport>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `data` | `Uint8Array \| ArrayBuffer \| Blob` |  |
| `options?` | `XlsxImportOptions` |  |

### toFileFormula

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function toFileFormula(formula: string, hostTable?: string): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `formula` | `string` |  |
| `hostTable?` | `string` |  |

### toXlsxStyle

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function toXlsxStyle(style: CellStyle | undefined): XlsxCellStyle | undefined
```

| Parameter | Type | Description |
| --- | --- | --- |
| `style` | `CellStyle \| undefined` |  |

### validateXlsxPackage

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function validateXlsxPackage(bytes: Uint8Array | ArrayBuffer, options: XlsxValidateOptions = {}): Promise<XlsxValidationIssue[]>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `bytes` | `Uint8Array \| ArrayBuffer` |  |
| `options?` | `XlsxValidateOptions` |  |

### workbookToXlsx

Kind: function. Import from `@birchui/spreadsheet/xlsx`.

```ts
function workbookToXlsx(json: WorkbookJSON): XlsxWorkbook
```

| Parameter | Type | Description |
| --- | --- | --- |
| `json` | `WorkbookJSON` |  |

### RasterRequest

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface RasterRequest
```

| Property | Type | Description |
| --- | --- | --- |
| `src` | `string` |  |
| `mime` | `string` |  |
| `width` | `number` |  |
| `height` | `number` |  |

### XlsxExportOptions

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxExportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `compress?` | `boolean` |  |
| `licenseKey?` | `string` |  |
| `rasterizeImage?` | `ImageRasterizer` |  |
| `password?` | `string` |  |
| `encryptionSpinCount?` | `number` |  |
| `defaultColumnWidth?` | `number` |  |
| `defaultRowHeight?` | `number` |  |
| `onReport?` | `(report: XlsxExportReport) => void` |  |
| `now?` | `Date` |  |
| `checkboxes?` | `'values' \| 'excel'` |  |

### XlsxExportReport

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxExportReport
```

| Property | Type | Description |
| --- | --- | --- |
| `adjusted` | `XlsxReportEntry[]` |  |

### XlsxImportOptions

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxImportOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `licenseKey?` | `string` |  |
| `password?` | `string` |  |
| `onProgress?` | `(progress: XlsxImportProgress) => void` |  |
| `signal?` | `AbortSignal` |  |
| `limits?` | `Partial<ZipLimits>` |  |
| `xlsLimits?` | `Partial<XlsLimits>` |  |

### XlsxImportProgress

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxImportProgress
```

| Property | Type | Description |
| --- | --- | --- |
| `phase` | `XlsxImportPhase` |  |
| `fraction` | `number` |  |
| `sheet?` | `string` |  |
| `sheetIndex?` | `number` |  |
| `sheetCount?` | `number` |  |

### XlsxImportReport

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxImportReport
```

| Property | Type | Description |
| --- | --- | --- |
| `modelled` | `XlsxReportEntry[]` |  |
| `preserved` | `XlsxReportEntry[]` |  |
| `dropped` | `XlsxReportEntry[]` |  |
| `adjusted` | `XlsxReportEntry[]` |  |

### XlsxImportResult

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxImportResult
```

| Property | Type | Description |
| --- | --- | --- |
| `workbook` | `WorkbookJSON` |  |
| `report` | `XlsxImportReport` |  |

### XlsxReportEntry

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxReportEntry
```

| Property | Type | Description |
| --- | --- | --- |
| `feature` | `string` |  |
| `sheet?` | `string` |  |
| `count?` | `number` |  |
| `parts?` | `string[]` |  |
| `elements?` | `string[]` |  |
| `note?` | `string` |  |

### XlsxValidateOptions

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxValidateOptions
```

| Property | Type | Description |
| --- | --- | --- |
| `limits?` | `Partial<ZipLimits>` |  |

### XlsxValidationIssue

Kind: interface. Import from `@birchui/spreadsheet/xlsx`.

```ts
interface XlsxValidationIssue
```

| Property | Type | Description |
| --- | --- | --- |
| `part` | `string` |  |
| `rule` | `string` |  |
| `message` | `string` |  |

### ImageRasterizer

Kind: type. Import from `@birchui/spreadsheet/xlsx`.

```ts
type ImageRasterizer = (image: RasterRequest) => Promise<string | undefined> | string | undefined;
```

### XlsxImportPhase

Kind: type. Import from `@birchui/spreadsheet/xlsx`.

```ts
type XlsxImportPhase = 'unzip' | 'styles' | 'sheets' | 'features' | 'done';
```
