/* open-xlsx-editor. A host page may set these on .oxe-root (or an ancestor) to restyle the editor:
 *   --oxe-bg            the sheet's background            --oxe-fg            cell text
 *   --oxe-gridline      gridlines                         --oxe-head-bg       row and column headings
 *   --oxe-head-fg       heading text                      --oxe-head-line     lines between headings
 *   --oxe-font          the cell font stack (Calibri, then its metric-compatible stand-in Carlito)
 *   --oxe-ui-font       headings and other chrome
 * Light and dark follow the system unless data-theme="light" or "dark" is set on .oxe-root. The sheet itself (cells,
 * gridlines, fills) stays paper-white in dark mode, as Excel's dark mode leaves it by default: workbooks colour their
 * text and fills for white paper (theme colour 1, the usual text colour, is black).
 * Geometry (--oxe-x, --oxe-y, --oxe-w, --oxe-h and the sheet size) is set by the grid; cell text size by celltext.js. */

.oxe-root {
  --oxe-bg: #ffffff;
  --oxe-fg: #000000;
  --oxe-gridline: #d4d4d4;
  --oxe-head-bg: #f3f3f3;
  --oxe-head-fg: #333333;
  --oxe-head-line: #c8c8c8;
  --oxe-focus: #1a73e8;
  --oxe-sel: #217346;
  --oxe-sel-fill: rgba(33, 115, 70, 0.12);
  --oxe-font: Calibri, Carlito, 'Liberation Sans', Arial, sans-serif;
  --oxe-ui-font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: var(--oxe-bg);
  color: var(--oxe-fg);
}
@media (prefers-color-scheme: dark) {
  .oxe-root:not([data-theme="light"]) {
    --oxe-head-bg: #2b2b2b;
    --oxe-head-fg: #d6d6d6;
    --oxe-head-line: #4a4a4a;
    --oxe-focus: #8ab4f8;
  }
}
.oxe-root[data-theme="dark"] {
  --oxe-head-bg: #2b2b2b;
  --oxe-head-fg: #d6d6d6;
  --oxe-head-line: #4a4a4a;
  --oxe-focus: #8ab4f8;
}

/* The scrolling view and the sheet-sized canvas inside it. */
.oxe-grid {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--oxe-bg);
}
.oxe-grid:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: -2px;
}
.oxe-sheet {
  position: relative;
  width: var(--oxe-sheet-w);
  height: var(--oxe-sheet-h);
}

/* Headings: the column headings stick to the top, each row's heading to the left, the corner to both. */
.oxe-colheads {
  position: sticky;
  top: 0;
  z-index: 3;
  height: var(--oxe-colhead-h);
  width: var(--oxe-sheet-w);
}
.oxe-corner {
  position: sticky;
  left: 0;
  z-index: 4;
  width: var(--oxe-rowhead-w);
  height: var(--oxe-colhead-h);
  box-sizing: border-box;
  background: var(--oxe-bg);
}
/* (The headings' own corner, below and right of the outline bar's.) */
.oxe-corner::after {
  content: '';
  position: absolute;
  left: var(--oxe-outline-w, 0px);
  top: var(--oxe-outline-h, 0px);
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  background: var(--oxe-head-bg);
  border-right: 1px solid var(--oxe-head-line);
  border-bottom: 1px solid var(--oxe-head-line);
}
.oxe-colhead,
.oxe-rowhead {
  box-sizing: border-box;
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 12px/1 var(--oxe-ui-font);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
}
.oxe-colhead {
  position: absolute;
  top: var(--oxe-outline-h, 0px);
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  width: var(--oxe-w);
  height: calc(var(--oxe-colhead-h) - var(--oxe-outline-h, 0px));
  border-right: 1px solid var(--oxe-head-line);
  border-bottom: 1px solid var(--oxe-head-line);
}
.oxe-rows,
.oxe-lines,
.oxe-fills,
.oxe-edges,
.oxe-overlay {
  position: absolute;
  top: var(--oxe-colhead-h);
  left: 0;
  width: var(--oxe-sheet-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
}
.oxe-row {
  position: absolute;
  left: 0;
  top: var(--oxe-y);
  width: var(--oxe-sheet-w);
  height: var(--oxe-h);
}
/* An empty cell in view (gridlayers.js drawRows): there for screen readers' count of the row's cells, drawing nothing. */
.oxe-blank-cell {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.oxe-rowhead {
  position: sticky;
  left: var(--oxe-outline-w, 0px);
  margin-left: var(--oxe-outline-w, 0px);
  z-index: 2;
  width: calc(var(--oxe-rowhead-w) - var(--oxe-outline-w, 0px));
  height: 100%;
  border-right: 1px solid var(--oxe-head-line);
  border-bottom: 1px solid var(--oxe-head-line);
}

/* View > Headings off: the headings take no room and aren't drawn, but stay for assistive technology (Excel's grid is
   still read with its column letters and row numbers). */
.oxe-noheads .oxe-colhead,
.oxe-noheads .oxe-rowhead,
.oxe-noheads .oxe-corner,
.oxe-noheads .oxe-colheads-pin {
  border: 0;
  padding: 0;
  color: transparent;
  background: transparent;
}

/* The outline bar (outlinebar.js): the rows' strip stuck to the left under the column headings, the columns' along the
   top of the column headings, the level buttons in the corner; each button a slot's square, the lines of a group shown
   along its rows or columns. */
.oxe-outline-rows {
  position: sticky;
  left: 0;
  z-index: 2;
  width: var(--oxe-outline-w, 0px);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  margin-bottom: calc(var(--oxe-colhead-h) - var(--oxe-sheet-h));
  background: var(--oxe-bg);
}
.oxe-outline-cols {
  position: absolute;
  top: 0;
  left: var(--oxe-rowhead-w);
  width: calc(var(--oxe-sheet-w) - var(--oxe-rowhead-w));
  height: var(--oxe-outline-h, 0px);
  background: var(--oxe-bg);
}
/* (The frozen rows' part, stuck under the column headings over the frozen pane; the frozen columns' part in the pinned
   headings, which start at their own left edge.) */
.oxe-outline-rows-pin {
  display: none;
  top: var(--oxe-colhead-h);
  z-index: 3;
  height: var(--oxe-pane-h);
  margin-bottom: calc(-1 * var(--oxe-pane-h));
  overflow: clip;
}
.oxe-frozen-rows .oxe-outline-rows-pin { display: block; }
.oxe-outline-cols-pin {
  width: var(--oxe-pane-w);
  overflow: clip;
}
.oxe-outline-levels {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.oxe-ol-button {
  position: absolute;
  left: var(--oxe-x);
  top: var(--oxe-y);
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1px solid var(--oxe-head-fg);
  background: var(--oxe-bg);
  color: var(--oxe-head-fg);
  font: 11px/13px var(--oxe-ui-font);
  text-align: center;
  cursor: pointer;
  user-select: none;
}
.oxe-ol-button:hover { background: var(--oxe-head-bg); }
.oxe-ol-line {
  position: absolute;
  left: var(--oxe-x);
  top: var(--oxe-y);
  box-sizing: border-box;
  border: 0 solid var(--oxe-head-fg);
}
.oxe-ol-line.oxe-ol-row { width: 5px; height: var(--oxe-h); border-left-width: 1px; }
.oxe-ol-line.oxe-ol-col { width: var(--oxe-w); height: 5px; border-top-width: 1px; }
/* (The tick at the end away from the summary line.) */
.oxe-ol-row.oxe-ol-start { border-top-width: 1px; }
.oxe-ol-row.oxe-ol-end { border-bottom-width: 1px; }
.oxe-ol-col.oxe-ol-start { border-left-width: 1px; }
.oxe-ol-col.oxe-ol-end { border-right-width: 1px; }

/* Gridlines: each cell's right and bottom pixel. */
.oxe-vline,
.oxe-hline {
  position: absolute;
  background: var(--oxe-gridline);
}
.oxe-vline {
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: 1px;
  height: var(--oxe-h);
}
.oxe-hline {
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: var(--oxe-w);
  height: 1px;
}

/* Cells: bottom-aligned (Excel's default), text left, numbers right, booleans and errors centred, never wrapped. */
/* Formulas > Error Checking (errorbox.js): the cell and its error, the choices in a column beside. */
.oxe-errcheck-box {
  min-width: 360px;
  /* (Out of the way of the cell it is showing, at the bottom right, as Excel's box stands aside.) */
  inset: auto 24px 48px auto;
  margin: 0;
}
.oxe-errcheck-name {
  font-weight: 600;
}
.oxe-errcheck-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 8px 0;
}
/* Formulas > Evaluate Formula (evalbox.js): the formula as it is worked out, in a box of its own. */
.oxe-evaluate-box {
  width: min(560px, 90vw);
}
.oxe-evaluate-text {
  min-height: 72px;
  padding: 6px 8px;
  border: 1px solid #a6a6a6;
  background: #ffffff;
  font-family: var(--oxe-ui-font);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.oxe-evaluate-note {
  font-size: 0.9em;
}
/* A menu's heading (Excel's error menu): bold, not an item. */
.oxe-menuhead {
  padding: 4px 10px;
  font-weight: 600;
}
/* Excel's error button beside the active cell when it has an error indicator (errormenu.js). */
.oxe-err-btn {
  position: absolute;
  left: var(--oxe-x);
  top: var(--oxe-y);
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #a6a6a6;
  border-radius: 2px;
  background: #ffffff;
  color: #c38b00;
  font: bold 12px/16px var(--oxe-ui-font);
  text-align: center;
  pointer-events: auto;
  cursor: default;
}
/* Excel's error indicator (ooxml/errorcheck.js): a green triangle in the cell's top-left corner. */
.oxe-errmark::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  border-top: 6px solid #00a050;
  border-right: 6px solid transparent;
  pointer-events: none;
}
.oxe-cell {
  --oxe-pad-l: 2px;
  --oxe-pad-r: 2px;
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: var(--oxe-w);
  height: calc(var(--oxe-h) - 1px);
  box-sizing: border-box;
  padding: 0 calc(var(--oxe-pad-r) + var(--oxe-pad-x, 0px)) 0 calc(var(--oxe-pad-l) + var(--oxe-pad-x, 0px));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  font-family: var(--oxe-font);
  font-size: var(--oxe-cell-fs);
  color: var(--oxe-fg);
}
/* The text span carries the line height and, per alignment, the shift that puts its baseline where Excel's is
   (celltext.js); the cell itself only places it. */
.oxe-tx {
  position: relative;
  top: var(--oxe-row-shift, 0px);
  white-space: pre;
  line-height: var(--oxe-cell-lh);
}
.oxe-h-left {
  justify-content: flex-start;
}
.oxe-h-center {
  justify-content: center;
}
.oxe-h-right {
  justify-content: flex-end;
}
.oxe-v-top {
  align-items: flex-start;
}
.oxe-v-center {
  align-items: center;
}
.oxe-v-top > .oxe-tx {
  top: var(--oxe-top-shift);
}
.oxe-v-center > .oxe-tx {
  top: var(--oxe-mid-shift);
}
.oxe-indent-l {
  padding-left: calc(var(--oxe-pad-l) + var(--oxe-pad-x, 0px) + var(--oxe-indent));
}
.oxe-indent-r {
  padding-right: calc(var(--oxe-pad-r) + var(--oxe-pad-x, 0px) + var(--oxe-indent));
}
/* Wrapped text: lines step by the font's default row height, broken within the cell's width. Stacked text's letters
   (each a line of its own, cells.js) step the same way (Excel's PDF of test/fixtures/rotate.xlsx). */
.oxe-wrap > .oxe-tx,
.oxe-stack > .oxe-tx {
  flex: 1 1 auto;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: var(--oxe-wrap-lh);
  top: var(--oxe-wrap-bottom);
}
.oxe-wrap.oxe-v-top > .oxe-tx,
.oxe-stack.oxe-v-top > .oxe-tx {
  top: var(--oxe-wrap-top);
}
.oxe-wrap.oxe-v-center > .oxe-tx,
.oxe-stack.oxe-v-center > .oxe-tx {
  top: var(--oxe-wrap-mid);
}
.oxe-wrap.oxe-h-center > .oxe-tx,
.oxe-stack.oxe-h-center > .oxe-tx {
  text-align: center;
}
.oxe-wrap.oxe-h-right > .oxe-tx {
  text-align: right;
}
/* Stacked letters set left or right: each centred in a column as wide as a line is tall, at that side (Excel's PDF
   of rotate.xlsx: right-set letters centred 9.4px in from where right-aligned text ends; left-set not measured). */
.oxe-stack.oxe-h-left > .oxe-tx,
.oxe-stack.oxe-h-right > .oxe-tx {
  flex: 0 0 var(--oxe-wrap-lh);
  text-align: center;
}
.oxe-page-cells .oxe-stack.oxe-h-left > .oxe-tx,
.oxe-page-cells .oxe-stack.oxe-h-right > .oxe-tx {
  flex-basis: var(--oxe-pwrap-lh);
}
/* Text orientation (Format Cells > Alignment): turned about its middle by Excel's angle, or its letters stacked one
   above the other (above); either may reach past the cell. Superscript and subscript raise or lower the text a third
   of a line. (Measured in print against Excel's PDF of test/fixtures/rotate.xlsx: docs/LAYOUT.md.) */
.oxe-cell.oxe-rot,
.oxe-cell.oxe-stack {
  overflow: visible;
}
.oxe-rot > .oxe-tx {
  display: inline-block;
  transform: translate(var(--oxe-rot-dx, 0px), var(--oxe-rot-dy, 0px)) rotate(calc(var(--oxe-rot) * -1));
  transform-origin: center;
}
/* Shrunk to fit: lowered to keep the full-size text's baseline (cells.js fitNumbers; in print with the page's own
   shift, below). */
.oxe-cell[data-oxe-shrink] > .oxe-tx {
  translate: 0 var(--oxe-shrink-dy, 0px);
}
.oxe-sup > .oxe-tx {
  top: -0.33em;
}
.oxe-sub > .oxe-tx {
  top: 0.25em;
}
/* Diagonal lines (Format Cells > Border): corner to corner across the cell, under the text. */
.oxe-diag {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: var(--oxe-w);
  height: var(--oxe-h);
  pointer-events: none;
}
.oxe-diag-up {
  background: linear-gradient(to top left, transparent calc(50% - var(--oxe-bw) / 2), var(--oxe-ec) calc(50% - var(--oxe-bw) / 2),
    var(--oxe-ec) calc(50% + var(--oxe-bw) / 2), transparent calc(50% + var(--oxe-bw) / 2));
}
.oxe-diag-down {
  background: linear-gradient(to top right, transparent calc(50% - var(--oxe-bw) / 2), var(--oxe-ec) calc(50% - var(--oxe-bw) / 2),
    var(--oxe-ec) calc(50% + var(--oxe-bw) / 2), transparent calc(50% + var(--oxe-bw) / 2));
}
/* Number formats: a section's colour ([Red]) over the font's; padding (_x) as a hidden x; fill (*x) as x repeated
   across whatever room is left, pushing what follows it to the right (format.js, grid.js textSpan). */
.oxe-root .oxe-cell.oxe-nf-color.oxe-nf-color {
  color: var(--oxe-nf-color);
}
.oxe-tx.oxe-parts {
  display: flex;
}
.oxe-tx.oxe-parts-fill {
  flex: 1 1 auto;
  min-width: 0;
}
.oxe-pad {
  visibility: hidden;
}
.oxe-repeat {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: pre;
}
.oxe-cell.oxe-merged {
  height: calc(var(--oxe-h) - 1px);
  width: calc(var(--oxe-w) - 1px);
}

/* Fills under the text (a merged range without one gets the sheet's colour, hiding the gridlines inside it) and
   border edges over it (decor.js: geometry; cellstyles.js: colours and line styles). Borders stay under the sticky
   headings. */
.oxe-edges {
  z-index: 1;
  pointer-events: none;
}
.oxe-fill {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: var(--oxe-w);
  height: var(--oxe-h);
}
.oxe-fill.oxe-blank {
  background: var(--oxe-bg);
}
.oxe-edge {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
}
.oxe-edge-v {
  width: var(--oxe-bw);
  height: var(--oxe-h);
  border-left: var(--oxe-bw) var(--oxe-es) var(--oxe-ec);
}
.oxe-edge-h {
  width: var(--oxe-w);
  height: var(--oxe-bw);
  border-top: var(--oxe-bw) var(--oxe-es) var(--oxe-ec);
}
/* In print a solid line (dashes are pieces of their own, decor.js; dotted and hair print solid, as in Excel's PDF) is a
   filled box rather than a border: Chromium rounds a printed border's width down (3.84px to 3) but a box's edges to
   the nearest pixel, which keeps both edges of the line within a pixel of Excel's. */
.oxe-edge.oxe-edge-solid {
  border: 0;
  background: var(--oxe-ec);
}

/* Printing: the pages renderPrint built, one sheet of paper each; the grid and the host's chrome are not printed. */
.oxe-print {
  display: none;
}
@media print {
  .oxe-root {
    display: block;
    height: auto;
    background: #ffffff;
    --oxe-bg: #ffffff;
    --oxe-fg: #000000;
  }
  .oxe-root > .oxe-grid,
  .oxe-root > .oxe-bar,
  .oxe-root > .oxe-tabbar,
  .oxe-menu,
  .oxe-dialog {
    display: none;
  }
  .oxe-print {
    display: block;
    --oxe-rowhead-w: 0px;
  }
}
/* PDF export (pdf.js): the printed pages shown off-screen while they are measured, in print's colours. */
.oxe-exporting > .oxe-print {
  display: block;
  position: fixed;
  left: -100000px;
  top: 0;
  background: #ffffff;
  --oxe-bg: #ffffff;
  --oxe-fg: #000000;
  --oxe-rowhead-w: 0px;
}
.oxe-page {
  position: relative;
  width: var(--oxe-page-w);
  height: var(--oxe-page-h);
  overflow: hidden;
  break-after: page;
}
.oxe-page:last-child {
  break-after: auto;
}
.oxe-page-area {
  position: absolute;
  left: var(--oxe-ml);
  top: var(--oxe-mt);
  width: var(--oxe-aw);
  height: var(--oxe-ah);
  overflow: hidden;
}
/* Printed cell text starts 3.2px into its cell and right-aligned text ends 1.9px before the cell's right edge (Excel's
   PDF of test/fixtures/widths.xlsx: every column's text and number). The cell takes the row's full height in print;
   the baseline's height in it comes from the line height (fonts.js cellLineHeight). */
.oxe-page-cells .oxe-cell {
  --oxe-pad-l: 3.2px;
  --oxe-pad-r: 1.9px;
  height: var(--oxe-h);
}
.oxe-page-cells .oxe-wrap > .oxe-tx,
.oxe-page-cells .oxe-stack > .oxe-tx {
  line-height: var(--oxe-pwrap-lh);
  top: var(--oxe-pwrap-bottom);
}
.oxe-page-cells .oxe-wrap.oxe-v-top > .oxe-tx,
.oxe-page-cells .oxe-stack.oxe-v-top > .oxe-tx {
  top: var(--oxe-pwrap-top);
}
.oxe-page-cells .oxe-wrap.oxe-v-center > .oxe-tx,
.oxe-page-cells .oxe-stack.oxe-v-center > .oxe-tx {
  top: var(--oxe-pwrap-mid);
}
/* The page's cells at the print scale (print.js): a box zoomed by it, holding the title and body blocks, each clipped
   to its cells. */
.oxe-page-zoom {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--oxe-zw);
  height: var(--oxe-zh);
  zoom: var(--oxe-zoom);
}
/* Headers and footers on the page (print.js drawHeaderFooter): a line placed by its top and height, its left section
   from the left, its right one to the right, its centre centred. */
.oxe-hf {
  position: absolute;
  top: var(--oxe-hf-top);
  line-height: var(--oxe-hf-lh);
  white-space: pre;
  font-family: var(--oxe-hf-font);
  font-size: var(--oxe-hf-size);
  color: #000000;
}
.oxe-hf-left { left: var(--oxe-hf-left); }
.oxe-hf-right { right: calc(var(--oxe-page-w) - var(--oxe-hf-left)); text-align: right; }
.oxe-hf-center { left: var(--oxe-hf-left); translate: -50% 0; text-align: center; }
.oxe-hf span { font-size: var(--oxe-hf-run-size, inherit); font-family: var(--oxe-hf-run-font, inherit); color: var(--oxe-hf-run-color, inherit); }
.oxe-hf .oxe-hf-b { font-weight: bold; }
.oxe-hf .oxe-hf-i { font-style: italic; }
.oxe-hf .oxe-hf-u { text-decoration: underline; }
.oxe-hf .oxe-hf-s { text-decoration: line-through; }
.oxe-hf .oxe-hf-pic { width: var(--oxe-hf-pw); height: var(--oxe-hf-ph); vertical-align: var(--oxe-hf-drop, 0px); }
.oxe-page-zoom .oxe-tx {
  translate: 0 calc(var(--oxe-pshift, 0px) + var(--oxe-shrink-dy, 0px));
}
.oxe-page-zoom .oxe-cell:not(.oxe-h-right) > .oxe-tx {
  translate: var(--oxe-pshift-x, 0px) calc(var(--oxe-pshift, 0px) + var(--oxe-shrink-dy, 0px));
}
/* Printed headings (print.js drawHeadings): the row numbers and column letters, their rules. */
.oxe-print-heads { position: absolute; left: 0; top: 0; }
.oxe-print-head-rule {
  position: absolute;
  left: var(--oxe-rx);
  top: var(--oxe-ry);
  width: max(var(--oxe-rw), var(--oxe-rt));
  height: max(var(--oxe-rh), var(--oxe-rt));
  background: #000000;
}
.oxe-print-head-rule.oxe-heavy { --oxe-rt: 1.28px; }
/* Printed gridlines (print.js drawBlock): hairlines at the cells' edges, as Excel prints them. */
.oxe-print-grid {
  position: absolute;
  background: #000000;
  pointer-events: none;
}
.oxe-print-grid-h { left: 0; top: var(--oxe-gy); width: var(--oxe-gl); height: 0.25px; }
.oxe-print-grid-v { top: var(--oxe-gt, 0); left: var(--oxe-gx); height: var(--oxe-gl); width: 0.25px; }
.oxe-page-block {
  position: absolute;
  left: var(--oxe-bx);
  top: var(--oxe-by);
  width: var(--oxe-bw);
  height: var(--oxe-bh);
  overflow: hidden;
}
.oxe-page-cells, .oxe-page-objs {
  position: absolute;
  left: calc(-1 * var(--oxe-ox));
  top: calc(-1 * var(--oxe-oy));
}

/* The formula bar: the active cell's name, then its contents to edit. */
.oxe-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 4px 6px;
  border-bottom: 1px solid var(--oxe-head-line);
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 13px var(--oxe-ui-font);
}
.oxe-namebox {
  width: 96px;
  min-width: 64px;
  padding: 3px 6px;
  border: 1px solid var(--oxe-head-line);
  background: var(--oxe-bg);
  color: #1b1b1b;
  font: inherit;
}
/* The Name Box with its drop-down arrow and list of names (namelist.js), the list under the box. */
.oxe-namebox-wrap {
  position: relative;
  display: flex;
  flex: none;
}
.oxe-namebox-wrap .oxe-namebox {
  border-right: 0;
}
.oxe-namebox-arrow {
  width: 18px;
  padding: 0;
  border: 1px solid var(--oxe-head-line);
  border-left: 0;
  background: var(--oxe-bg);
  color: #1b1b1b;
  font: inherit;
  cursor: pointer;
}
.oxe-namelist {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  min-width: 100%;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--oxe-head-line);
  background: #ffffff;
  color: #1b1b1b;
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
}
.oxe-namelist[hidden] {
  display: none;
}
.oxe-namelist-item {
  padding: 2px 8px;
  white-space: nowrap;
  cursor: default;
}
.oxe-namelist-item:hover,
.oxe-namelist-item[aria-selected="true"] {
  background: #0b57d0;
  color: #ffffff;
}
.oxe-formula {
  flex: 1;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid var(--oxe-head-line);
  background: #ffffff;
  color: #1b1b1b;
  font: inherit;
}
.oxe-formula:focus-visible,
.oxe-namebox:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: -1px;
}

/* The sheet tabs (tabs.js) under the grid: the sheet shown on the sheet's own white with the selection's green, as
   Excel marks it; a tab colour fills the other tabs and underlines the one shown. Too many to fit: the strip scrolls,
   the New sheet button stays. */
.oxe-tabbar {
  display: flex;
  flex: none;
  min-width: 0;
  border-top: 1px solid var(--oxe-head-line);
  background: var(--oxe-head-bg);
  font: 13px var(--oxe-ui-font);
}
.oxe-status {
  flex: none;
  margin-left: auto;
  padding: 0 12px;
  align-self: center;
  white-space: pre;
}
.oxe-tabs {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  overflow-x: auto;
}
.oxe-tab-add {
  flex: none;
  width: 30px;
  border: 0;
  background: transparent;
  color: var(--oxe-head-fg);
  font: 18px/1 var(--oxe-ui-font);
  cursor: pointer;
}
.oxe-tab-add:hover {
  color: var(--oxe-sel);
}
.oxe-tab-add:focus-visible,
.oxe-tab-edit:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: -2px;
}
.oxe-tab-edit {
  flex: none;
  margin: 2px 4px;
  padding: 1px 4px;
  border: 1px solid var(--oxe-sel);
  background: #ffffff;
  color: #1b1b1b;
  font: inherit;
}
.oxe-tab.oxe-drop-before {
  box-shadow: inset 3px 0 0 var(--oxe-sel);
}
.oxe-tab.oxe-drop-after {
  box-shadow: inset -3px 0 0 var(--oxe-sel);
}
.oxe-tab {
  flex: none;
  padding: 4px 14px 3px;
  border: 0;
  border-right: 1px solid var(--oxe-head-line);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--oxe-head-fg);
  font: inherit;
  white-space: pre;
  cursor: pointer;
}
.oxe-tab-colored {
  background: var(--oxe-tab-color);
  color: var(--oxe-tab-text);
}
.oxe-tab[aria-selected="true"] {
  background: #ffffff;
  color: var(--oxe-sel);
  font-weight: 600;
  border-bottom-color: var(--oxe-sel);
}
.oxe-tab-colored[aria-selected="true"] {
  border-bottom-color: var(--oxe-tab-color);
}
/* (A grouped sheet's tab white as the one shown, as Excel marks a group; only the one shown in bold.) */
.oxe-tab-grouped[aria-selected="true"]:not([tabindex="0"]) {
  font-weight: 400;
}
.oxe-tab[aria-disabled="true"] {
  cursor: default;
  font-style: italic;
}
.oxe-tab:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: -2px;
}

/* The tab menu (sheetmenu.js) and the message boxes (dialogs.js), in the headings' colours. */
.oxe-menu {
  position: fixed;
  z-index: 20;
  min-width: 160px;
  padding: 4px 0;
  border: 1px solid var(--oxe-head-line);
  border-radius: 6px;
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  font: 13px var(--oxe-ui-font);
}
.oxe-menuitem {
  display: block;
  width: 100%;
  padding: 5px 24px 5px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* Customize Status Bar: a tick before an item that's on, its value at the right. */
.oxe-menuitem-check { padding-left: 26px; position: relative; }
.oxe-menuitem-check[aria-checked="true"]::before { content: '\2713'; position: absolute; left: 9px; }
.oxe-menuitem-value { float: right; margin-left: 24px; opacity: 0.75; }
.oxe-menuitem-sub::after {
  content: '\25B8';
  float: right;
  margin-right: -14px;
}
.oxe-menuitem:hover:not(:disabled),
.oxe-menuitem:focus-visible {
  background: var(--oxe-sel-fill);
  outline: none;
}
.oxe-menuitem:disabled {
  opacity: 0.55;
  cursor: default;
}
.oxe-menu hr {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--oxe-head-line);
}
.oxe-swatches {
  display: grid;
  grid-template-columns: repeat(10, 18px);
  gap: 4px;
  padding: 6px 10px;
}
.oxe-swatch {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--oxe-head-line);
  cursor: pointer;
}
.oxe-swatch:focus-visible,
.oxe-swatch:hover {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-swatch-none {
  width: auto;
  height: auto;
  margin: 2px 10px 4px;
  padding: 3px 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.oxe-dialog {
  max-width: min(440px, calc(100vw - 32px));
  padding: 16px 18px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 8px;
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 13px var(--oxe-ui-font);
}
.oxe-dialog::backdrop {
  background: rgba(0, 0, 0, 0.25);
}
.oxe-dialog-title {
  margin: 0 0 10px;
  font-size: 15px;
}
.oxe-dialog-text {
  display: block;
  margin: 0 0 12px;
  white-space: pre-line;
}
.oxe-dialog-field {
  width: 100%;
  min-width: 200px;
  box-sizing: border-box;
  padding: 3px 6px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
  background: var(--oxe-head-bg);
  color: inherit;
  font: inherit;
}
.oxe-dialog-field:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-dialog-label {
  display: block;
  height: auto;
  overflow: visible;
  clip-path: none;
  margin-bottom: 4px;
  white-space: normal;
}
.oxe-dialog-note {
  min-height: 1.2em;
  margin: 4px 0 0;
  font-size: 12px;
}
.oxe-dialog-list {
  width: 100%;
  min-width: 220px;
  font: inherit;
}
/* Text to Columns' Fixed width preview: the first lines in a fixed-width font, a | at each column break. */
.oxe-ttc-preview {
  margin: 6px 0;
  padding: 4px 6px;
  border: 1px solid #c8c8c8;
  max-width: 420px;
  overflow: auto;
  font: 12px/1.4 Consolas, "Courier New", monospace;
  white-space: pre;
}
.oxe-dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.oxe-dialog-button {
  min-width: 76px;
  padding: 4px 12px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
  background: var(--oxe-bg);
  color: #1b1b1b;
  font: inherit;
}
.oxe-dialog-button:focus-visible,
.oxe-dialog-list:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}

/* The selection (selection.js): view state over the cells and under the sticky headings. */
.oxe-overlay {
  z-index: 1;
  pointer-events: none;
}
.oxe-sel-range,
.oxe-sel-active {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 1px);
  top: calc(var(--oxe-y) - 1px);
  width: calc(var(--oxe-w) + 1px);
  height: calc(var(--oxe-h) + 1px);
}
.oxe-sel-range {
  background: var(--oxe-sel-fill);
  border: 1px solid var(--oxe-sel);
}
.oxe-sel-active {
  border: 2px solid var(--oxe-sel);
}

/* The fill handle (selection.js): a small square on the selection's bottom-right corner; dragged, the cells it will
   fill outlined in grey dashes. */
.oxe-fill-handle {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 4px);
  top: calc(var(--oxe-y) - 4px);
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  background: var(--oxe-sel);
  border: 1px solid var(--oxe-bg, #fff);
}
.oxe-fill-drag {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 1px);
  top: calc(var(--oxe-y) - 1px);
  width: calc(var(--oxe-w) + 1px);
  height: calc(var(--oxe-h) + 1px);
  border: 2px dashed #8c8c8c;
}
.oxe-grid.oxe-fill-cursor {
  cursor: crosshair;
}
/* Over a hyperlink's cell: the hand, as Excel's (linkfollow.js). */
.oxe-grid.oxe-link-cursor {
  cursor: pointer;
}

/* A formula's ranges while it is typed (selection.js drawMarks): each in its colour, the one pointed at dashed. */
.oxe-layer {
  position: absolute;
  inset: 0;
}
/* Tracer arrows (arrows.js) and Circle Invalid Data's ovals (dvcircles.js), in the sheet's coordinates: the row
   headings' width included in their x. */
.oxe-arrows, .oxe-circles {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--oxe-sheet-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  overflow: visible;
}
.oxe-mark {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 1px);
  top: calc(var(--oxe-y) - 1px);
  width: calc(var(--oxe-w) + 1px);
  height: calc(var(--oxe-h) + 1px);
  border: 2px solid var(--oxe-mark);
  background: color-mix(in srgb, var(--oxe-mark) 10%, transparent);
}
.oxe-mark-point {
  border-style: dashed;
  background: transparent;
}

/* Other people's cursors in a co-edited workbook (peers.js), as Excel for the web shows co-authors: the active cell
   outlined in the person's colour, their ranges lightly shaded, their name on a flag at the cell's top-right corner.
   The colour (--oxe-peer) and the flag's text colour (--oxe-peer-ink: black or white, whichever contrasts more) are
   set per person. */
.oxe-peer-range,
.oxe-peer-active {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 1px);
  top: calc(var(--oxe-y) - 1px);
  width: calc(var(--oxe-w) + 1px);
  height: calc(var(--oxe-h) + 1px);
}
.oxe-peer-range {
  background: color-mix(in srgb, var(--oxe-peer) 12%, transparent);
  border: 1px solid var(--oxe-peer);
}
.oxe-peer-active {
  border: 2px solid var(--oxe-peer);
}
.oxe-peer-flag {
  position: absolute;
  bottom: 100%;
  right: -2px;
  max-width: 16em;
  padding: 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 11px/16px var(--oxe-ui-font);
  background: var(--oxe-peer);
  color: var(--oxe-peer-ink);
}
.oxe-peer-flag-below {
  top: 100%;
  bottom: auto;
}

/* The cells copied or cut, until pasted or let go (Esc): a dashed outline that moves, as Excel's does. */
.oxe-clip {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 1px);
  top: calc(var(--oxe-y) - 1px);
  width: calc(var(--oxe-w) + 1px);
  height: calc(var(--oxe-h) + 1px);
  border: 2px dashed var(--oxe-sel);
  animation: oxe-ants 0.6s steps(2) infinite;
}
@keyframes oxe-ants {
  50% { border-color: color-mix(in srgb, var(--oxe-sel) 35%, transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .oxe-clip { animation: none; }
  .oxe-edit-caret { animation: none; }
}

/* Frozen panes (grid.js drawPanes): the rows above the freeze stick under the column headings, the columns left of it
   beside the row headings, the corner where they meet stays put; each is in the sheet's flow so that it can stick,
   with a negative margin so that it takes no room. Inside a pane its layers start at 0 (the headings' sizes made 0
   there), and only the top pane keeps row headings. A thin line marks the freeze, as Excel draws it. */
.oxe-pane { display: none; }
.oxe-frozen-rows .oxe-pane-top,
.oxe-frozen-cols .oxe-pane-left,
.oxe-frozen-rows.oxe-frozen-cols .oxe-pane-corner {
  display: block;
}
.oxe-pane {
  position: sticky;
  /* (clip, not hidden: hidden would make the pane a scroll container, and the row headings and the corner inside it
     would stick to the pane instead of the sheet) */
  overflow: clip;
  background: var(--oxe-bg);
}
.oxe-pane-top {
  top: var(--oxe-colhead-h);
  z-index: 3;
  width: var(--oxe-sheet-w);
  height: var(--oxe-pane-h);
  margin-bottom: calc(-1 * var(--oxe-pane-h));
  box-shadow: 0 1px 0 color-mix(in srgb, var(--oxe-fg) 45%, transparent);
}
.oxe-pane-left {
  left: var(--oxe-rowhead-w);
  z-index: 2;
  width: var(--oxe-pane-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  margin-left: var(--oxe-rowhead-w);
  margin-bottom: calc(var(--oxe-colhead-h) - var(--oxe-sheet-h));
  box-shadow: 1px 0 0 color-mix(in srgb, var(--oxe-fg) 45%, transparent);
}
.oxe-pane-corner {
  left: var(--oxe-rowhead-w);
  z-index: 3;
  width: var(--oxe-pane-w);
  height: var(--oxe-pane-h);
  margin-left: var(--oxe-rowhead-w);
  margin-bottom: calc(-1 * var(--oxe-pane-h));
  box-shadow: 1px 0 0 color-mix(in srgb, var(--oxe-fg) 45%, transparent);
}
.oxe-pane-inner {
  position: absolute;
  inset: 0;
  --oxe-colhead-h: 0px;
}
/* (A freeze made while scrolled starts further in: the pane's own part of the sheet moved up and left to it.) */
.oxe-pane-top > .oxe-pane-inner,
.oxe-pane-corner > .oxe-pane-inner {
  top: calc(-1 * var(--oxe-pane-y0, 0px));
}
.oxe-pane-left > .oxe-pane-inner,
.oxe-pane-corner > .oxe-pane-inner,
.oxe-colheads-pin > .oxe-colheads-pin-inner {
  left: calc(-1 * var(--oxe-pane-x0, 0px));
}
/* (The corner sits in the top pane's part, so it is moved back down by as much.) */
.oxe-pane-top > .oxe-pane-inner > .oxe-pane-corner {
  margin-top: var(--oxe-pane-y0, 0px);
}
.oxe-pane-left > .oxe-pane-inner,
.oxe-pane-corner > .oxe-pane-inner {
  --oxe-rowhead-w: 0px;
}
.oxe-pane-left .oxe-rowhead,
.oxe-pane-corner .oxe-rowhead {
  display: none;
}
.oxe-colheads { z-index: 4; }
.oxe-colheads-pin {
  position: sticky;
  left: var(--oxe-rowhead-w);
  z-index: 4;
  width: var(--oxe-pane-w);
  height: var(--oxe-colhead-h);
  margin-top: calc(-1 * var(--oxe-colhead-h));
  margin-left: var(--oxe-rowhead-w);
  background: var(--oxe-head-bg);
}
.oxe-colheads-pin-inner {
  position: absolute;
  inset: 0;
  --oxe-rowhead-w: 0px;
}

/* Resizing a row or column from its heading's edge: the cursor, the guide where the edge will be, Excel's tip. */
.oxe-grid.oxe-resize-col { cursor: col-resize; }
.oxe-grid.oxe-resize-row { cursor: row-resize; }
.oxe-guide {
  position: absolute;
  z-index: 5;
  left: var(--oxe-x);
  top: var(--oxe-y);
  width: var(--oxe-w);
  height: var(--oxe-h);
  border-left: 1px dashed var(--oxe-fg);
  border-top: 1px dashed var(--oxe-fg);
  pointer-events: none;
}
.oxe-guide-tip {
  position: absolute;
  z-index: 5;
  left: var(--oxe-x);
  top: var(--oxe-y);
  padding: 2px 6px;
  border: 1px solid var(--oxe-head-line);
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 12px var(--oxe-ui-font);
  white-space: nowrap;
  pointer-events: none;
}

/* Editing in a cell (celleditor.js): a box over it in the cell's font, growing with its text. */
.oxe-editor {
  position: absolute;
  box-sizing: border-box;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 1px);
  top: calc(var(--oxe-y) - 1px);
  width: calc(var(--oxe-edit-w) + 2px);
  height: calc(var(--oxe-edit-h) + 1px);
  margin: 0;
  padding: 0 2px;
  border: 2px solid var(--oxe-sel);
  outline: none;
  resize: none;
  overflow: hidden;
  white-space: pre;
  pointer-events: auto;
  background: #ffffff;
  color: #000000;
  font-family: var(--oxe-font);
  font-size: var(--oxe-cell-fs);
  line-height: var(--oxe-cell-lh);
}

/* Part of the text being edited formatted (celleditor.js, richview.js): the text box's own text and caret hidden and
   its runs drawn in a view under it, with the caret and selection placed by the drawn text. */
/* (Over a cell format's own colour, .oxe-root[data-oxe-id] .oxe-sN.) */
.oxe-root textarea.oxe-editor.oxe-editor-rich {
  color: transparent;
  caret-color: transparent;
  background: transparent;
}

.oxe-root textarea.oxe-editor.oxe-editor-rich::selection {
  background: transparent;
}

.oxe-editor.oxe-edit-view {
  pointer-events: none;
}

.oxe-edit-runs {
  position: relative;
}

.oxe-edit-marks {
  position: absolute;
  inset: 0;
}

.oxe-edit-sel,
.oxe-edit-caret {
  position: absolute;
  left: var(--oxe-mark-x);
  top: var(--oxe-mark-y);
  width: var(--oxe-mark-w);
  height: var(--oxe-mark-h);
}

.oxe-edit-sel {
  background: rgb(0 120 215 / 30%);
}

.oxe-edit-caret {
  background: #000000;
  animation: oxe-caret-blink 1.06s steps(1) infinite;
}

@keyframes oxe-caret-blink {
  50% {
    visibility: hidden;
  }
}

/* Read by screen readers only (live.js announcements). */
.oxe-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ==== The ribbon (ribbon.js, hometab.js): from open-docx-editor's, in the headings' colours. A pressed toggle is
   tinted with the selection's green, as Excel's are. ==== */
.oxe-toolbar {
  position: relative;
  flex: none;
  border-bottom: 1px solid var(--oxe-head-line);
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 13px var(--oxe-ui-font);
}
.oxe-toolbar[hidden],
.oxe-toolbar [hidden] {
  display: none;
}
.oxe-toolbar button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.oxe-toolbar button:hover:not(:disabled) {
  background: var(--oxe-sel-fill);
}
.oxe-toolbar button.on {
  border-color: var(--oxe-sel);
  background: var(--oxe-sel-fill);
}
.oxe-toolbar button:disabled {
  opacity: 0.45;
  cursor: default;
}
.oxe-toolbar select {
  height: 28px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
  background: var(--oxe-head-bg);
  color: inherit;
  font: inherit;
}
.oxe-toolbar button:focus-visible,
.oxe-toolbar select:focus-visible,
.oxe-pop button:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-toolbar .oxe-font { width: 130px; }
.oxe-toolbar .oxe-size { width: 58px; }
.oxe-toolbar .oxe-numfmt { width: 128px; }
.oxe-rtabs {
  display: flex;
  gap: 2px;
  align-items: center;
  padding: 4px 8px 0;
}
.oxe-rtablist {
  display: flex;
  flex-wrap: wrap; /* (a narrow window, 320px at 400% zoom: the tabs wrap, 1.4.10) */
  gap: 2px;
  min-width: 0;
}
.oxe-rtabs-fill { flex: 1; }
.oxe-toolbar button.oxe-rtab {
  height: 30px;
  padding: 0 12px;
  border-width: 0 0 3px;
  border-radius: 0;
  border-bottom-color: transparent;
}
.oxe-toolbar button.oxe-rtab.on {
  border-bottom-color: var(--oxe-sel);
  background: transparent;
  font-weight: 600;
}
.oxe-ribbon {
  position: relative;
  padding: 4px 8px 6px;
}
.oxe-panel {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: stretch;
  overflow: hidden;
}
.oxe-panel > .oxe-group { flex: none; }
.oxe-panel > .oxe-group.oxe-cut { visibility: hidden; }
.oxe-ribbon.oxe-expand .oxe-panel {
  flex-wrap: wrap;
  row-gap: 6px;
  padding-right: 36px;
}
.oxe-toolbar .oxe-more {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 1;
  font-size: 16px;
  line-height: 1;
}
.oxe-ribbon.oxe-expand .oxe-more { background: var(--oxe-sel-fill); }
.oxe-group {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 8px 0 4px;
  border-right: 1px solid var(--oxe-head-line);
}
.oxe-group:last-child { border-right: 0; }
.oxe-group > .oxe-rrow {
  display: flex;
  flex: 1;
  gap: 2px;
  align-items: center;
}
.oxe-rcol {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.oxe-rline {
  display: flex;
  gap: 2px;
  align-items: center;
}
.oxe-toolbar .oxe-rcol > button { text-align: left; }
.oxe-glabel {
  padding-top: 2px;
  font-size: 11px;
  text-align: center;
  opacity: 0.8;
}
.oxe-toolbar button.oxe-big {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 56px;
  padding: 2px 6px;
}
.oxe-big .oxe-ico { font-size: 20px; line-height: 1; }
.oxe-ico > svg, .oxe-ctxico > svg { vertical-align: -0.15em; }
.oxe-lbl { margin-left: 4px; font-size: 12px; white-space: nowrap; }
.oxe-big .oxe-lbl { margin-left: 0; }
.oxe-caret { margin-left: 2px; font-size: 9px; opacity: 0.7; }
.oxe-toolbar .oxe-b { font-weight: 700; }
.oxe-toolbar .oxe-i { font-style: italic; font-family: Georgia, serif; }
.oxe-toolbar .oxe-u { text-decoration: underline; }
.oxe-toolbar .oxe-s { text-decoration: line-through; }
/* A split button: the part that applies the last choice and its ▾. */
.oxe-split { display: inline-flex; }
.oxe-toolbar .oxe-split > button:first-child { border-radius: 4px 0 0 4px; }
.oxe-toolbar .oxe-split > .oxe-split-more {
  min-width: 16px;
  padding: 0 2px;
  border-radius: 0 4px 4px 0;
}
/* The colour buttons show the colour they apply as a bar under the glyph. */
.oxe-toolbar button.oxe-colorbtn .oxe-ico {
  display: inline-block;
  border-bottom: 4px solid var(--oxe-swatch, #000000);
  line-height: 1.1;
}
.oxe-fontcolor .oxe-ico { font-weight: 700; }
/* The ribbon's drop-down menu. */
.oxe-pop {
  position: absolute;
  z-index: 20;
  min-width: 170px;
  padding: 4px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 6px;
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.oxe-pop[hidden] { display: none; }
.oxe-pop hr {
  margin: 4px 0;
  border: 0;
  border-top: 1px solid var(--oxe-head-line);
}
.oxe-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 28px;
  padding: 4px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.oxe-item > span:last-of-type { flex: 1; }
.oxe-item small { opacity: 0.75; font-size: 11px; }
.oxe-item:hover,
.oxe-item.on { background: var(--oxe-sel-fill); }
.oxe-cap { padding: 6px 6px 2px; font-size: 11px; opacity: 0.85; }
.oxe-pop .oxe-swatches { padding: 2px 6px 4px; grid-template-columns: repeat(10, 24px); gap: 2px; }
.oxe-pop .oxe-swatches-theme { row-gap: 0; }
.oxe-pop .oxe-swatch { width: 24px; height: 24px; }
/* Find and Replace (findbar.js): under the ribbon, in the headings' colours. */
/* Formulas > Watch Window (watchwindow.js): docked under the Find bar, its table scrolling. */
.oxe-watchbar {
  flex: none;
  padding: 6px 8px;
  border-bottom: 1px solid var(--oxe-head-line);
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 13px var(--oxe-ui-font);
}
.oxe-watchbar[hidden] {
  display: none;
}
.oxe-watch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.oxe-watch-btn {
  padding: 3px 12px;
  border: 1px solid #a6a6a6;
  border-radius: 4px;
  background: var(--oxe-sheet-bg, #ffffff);
  color: inherit;
  font: inherit;
}
.oxe-watch-btn:disabled {
  opacity: 0.5;
}
.oxe-watch-head .oxe-find-close {
  margin-left: auto;
  min-width: 0;
  width: 28px;
  flex: none;
}
.oxe-watch-scroll {
  max-height: 140px;
  overflow: auto;
  background: var(--oxe-sheet-bg, #ffffff);
  border: 1px solid var(--oxe-head-line);
}
.oxe-watch-table {
  width: 100%;
  border-collapse: collapse;
}
.oxe-watch-table th, .oxe-watch-table td {
  padding: 2px 8px;
  text-align: left;
  white-space: nowrap;
}
.oxe-watch-table tr[aria-selected="true"] {
  background: var(--oxe-sel-fill);
}
/* Data > Queries & Connections (queriespane.js): docked under the Watch Window, its two tabs and its list. */
.oxe-query-tabs {
  display: flex;
  gap: 2px;
}
.oxe-query-tab {
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
  background: none;
  color: inherit;
  font: inherit;
}
.oxe-query-tab[aria-selected="true"] {
  border-color: var(--oxe-head-line);
  border-bottom-color: var(--oxe-sheet-bg, #ffffff);
  background: var(--oxe-sheet-bg, #ffffff);
  font-weight: 600;
}
.oxe-query-scroll {
  max-height: 220px;
}
.oxe-query-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.oxe-query-item, .oxe-query-none {
  padding: 4px 8px;
  border-bottom: 1px solid var(--oxe-head-line);
}
.oxe-query-name {
  font-weight: 600;
}
.oxe-query-line {
  font-size: 12px;
  opacity: 0.85;
}
.oxe-query-btns {
  display: flex;
  gap: 6px;
  margin-top: 3px;
}
.oxe-query-btn {
  padding: 1px 8px;
}
.oxe-query-editor {
  width: min(720px, 92vw);
}
.oxe-query-m {
  box-sizing: border-box;
  width: 100%;
  font: 13px/1.4 Consolas, 'Courier New', monospace;
  white-space: pre;
  tab-size: 4;
}
.oxe-findbar {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--oxe-head-line);
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 13px var(--oxe-ui-font);
}
.oxe-bar[hidden],
.oxe-findbar[hidden],
.oxe-findbar [hidden] { display: none; }
.oxe-findrow,
.oxe-replrow {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.oxe-findbox {
  width: min(260px, 100%);
  height: 26px;
  box-sizing: border-box;
  padding: 0 6px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
  background: var(--oxe-head-bg);
  color: inherit;
  font: inherit;
}
.oxe-findbar button,
.oxe-findbar select {
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
  background: var(--oxe-head-bg);
  color: inherit;
  font: inherit;
}
.oxe-findbar button { cursor: pointer; }
.oxe-findbar button:hover { background: var(--oxe-sel-fill); }
.oxe-findbar button:focus-visible,
.oxe-findbar select:focus-visible,
.oxe-findbar input:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-find-opt {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 12px;
}
.oxe-findinfo { min-height: 1em; font-size: 12px; }
.oxe-findinfo:empty { display: none; }
/* A filter list of dates: years, their months indented, the days further. */
.oxe-filter-month { padding-left: 16px; }
.oxe-filter-day { padding-left: 32px; }
/* Find and Replace's formats: what is set, Format..., Clear. */
.oxe-find-formats { display: inline-flex; align-items: center; gap: 4px; }
.oxe-find-format { min-width: 90px; padding: 1px 6px; border: 1px solid #b0b0b0; font-size: 12px; text-align: center; }
.oxe-find-format-set { background: var(--oxe-find-fill, transparent); color: var(--oxe-find-ink, inherit); }
.oxe-find-format-bold { font-weight: bold; }
.oxe-find-format-italic { font-style: italic; }
.oxe-picking, .oxe-picking * { cursor: crosshair; }
/* Find All's list: a row a cell found, its sheet, cell, value and formula. */
.oxe-findall { max-height: 160px; overflow: auto; border-top: 1px solid #d0d0d0; font-size: 12px; }
.oxe-findall-row { display: grid; grid-template-columns: 1fr 70px 2fr 2fr; gap: 8px; width: 100%; padding: 2px 6px; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.oxe-findall-row:hover, .oxe-findall-row:focus { background: #e8f0e8; }
.oxe-findall-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media print {
  .oxe-findbar { display: none; }
}

.oxe-zoomlabel { align-self: center; padding: 0 6px; font-size: 12px; }

/* Simplified (one-line) ribbon. */
.oxe-simple .oxe-ribbon { padding: 3px 8px; }
.oxe-simple .oxe-panel { gap: 2px; align-items: center; }
.oxe-simple .oxe-more { top: 3px; }
.oxe-simple .oxe-group { flex-direction: row; align-items: center; padding: 0 6px 0 2px; }
.oxe-simple .oxe-glabel { display: none; }
.oxe-simple .oxe-rcol { flex-direction: row; align-items: center; }
.oxe-simple .oxe-rcol > button .oxe-lbl { display: none; }
@media print {
  .oxe-toolbar { display: none; }
}

/* The radio groups and check boxes of optionsBox (dialogs.js): Excel's Insert, Delete and Paste Special boxes. */
.oxe-dialog-group {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(var(--oxe-rows), auto);
  justify-content: start;
  column-gap: 24px;
  row-gap: 4px;
  margin: 0 0 10px;
  padding: 6px 10px 8px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
}
.oxe-dialog-group legend {
  padding: 0 4px;
}
.oxe-dialog-option {
  display: flex;
  align-items: center;
  gap: 6px;
}
.oxe-dialog-option input:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-dialog-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
}

/* Insert > PivotTable's boxes (pivotbox.js): the source and where it goes; the fields, each to an area. */
.oxe-pivot-box .oxe-dialog-field:disabled {
  opacity: 0.55;
}
.oxe-pivot-table {
  border-collapse: collapse;
  margin: 0 0 8px;
}
.oxe-pivot-table th,
.oxe-pivot-table td {
  padding: 3px 8px 3px 0;
  text-align: left;
  font-weight: normal;
}
.oxe-pivot-table thead th {
  font-weight: 600;
}
.oxe-pivot-why:empty {
  display: none;
}

/* Formulas > Name Manager (namesbox.js): its names in a list, the one chosen marked; the New / Edit Name box. */
.oxe-names-list {
  max-height: 14em;
  overflow: auto;
  border: 1px solid var(--oxe-head-line);
  margin: 6px 0 10px;
}
.oxe-names-table {
  width: 100%;
  margin: 0;
}
.oxe-names-row {
  cursor: default;
}
.oxe-names-row[aria-selected="true"] {
  background: var(--oxe-sel-fill, rgba(33, 115, 70, 0.15));
}
.oxe-names-row:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: -2px;
}
.oxe-names-actions {
  justify-content: flex-start;
}
.oxe-name-box textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

/* Excel's Go To Special box (specialbox.js): its choices in two columns, each one's options indented under it. */
.oxe-special-choices {
  margin: 0 0 10px;
  padding: 6px 10px 8px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
}
.oxe-special-choices legend {
  padding: 0 4px;
}
.oxe-special-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
}
.oxe-special-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.oxe-special-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 22px;
}
.oxe-special-sub input:disabled + label {
  opacity: 0.55;
}

/* Excel's Sort box (dialogs.js sortBox): its tools and headers check box over the levels, one level marked. */
.oxe-dialog.oxe-sort-box {
  max-width: min(600px, calc(100vw - 32px));
}
.oxe-sort-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.oxe-sort-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.oxe-sort-tools .oxe-dialog-button {
  min-width: 0;
  padding: 3px 8px;
}
.oxe-sort-levels {
  min-height: 120px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
}
.oxe-sort-level {
  display: grid;
  /* (Sort by, the column, Sort On, its colour when by colour, the order; a custom list on a line of its own.) */
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
}
.oxe-sort-colour[hidden] { display: block; visibility: hidden; width: 0; }
.oxe-sort-custom { grid-column: 2 / -1; }
.oxe-sort-level.oxe-on {
  background: var(--oxe-sel-fill);
}
.oxe-sort-select {
  min-width: 0;
  font: inherit;
}
.oxe-sort-select:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-sort-tools .oxe-dialog-button:disabled {
  opacity: 0.45;
}

/* The AutoFilter's buttons (filterbuttons.js): a small dropdown in each heading cell, the filtered ones marked. */
.oxe-filters {
  position: absolute;
  top: var(--oxe-colhead-h);
  left: 0;
  width: var(--oxe-sheet-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  z-index: 2;
  pointer-events: none;
}
.oxe-filter-btn {
  position: absolute;
  /* (Past the row headings, as everything over the cells: --oxe-x is from column A's left edge; 0 in the left panes.) */
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid #a6a6a6;
  border-radius: 2px;
  background: #ffffff;
  color: #444444;
  font: 9px/14px var(--oxe-ui-font);
  text-align: center;
  pointer-events: auto;
  cursor: default;
}
.oxe-filter-btn.oxe-on {
  color: var(--oxe-sel);
  border-color: var(--oxe-sel);
}
/* A filter button's list (dialogs.js filterBox): opened under its button. */
.oxe-dialog.oxe-filter-box {
  position: fixed;
  inset: var(--oxe-fy) auto auto var(--oxe-fx);
  margin: 0;
  width: 260px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - var(--oxe-fy) - 16px);
  overflow-y: auto;
  padding: 10px 12px;
}
.oxe-filter-title {
  font-size: 13px;
  margin-bottom: 6px;
}
.oxe-filter-actions {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}
.oxe-filter-item {
  min-width: 0;
  text-align: left;
}
.oxe-filter-item:disabled {
  opacity: 0.45;
}
.oxe-filter-list {
  display: grid;
  gap: 2px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 6px;
  padding: 4px 6px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
}
.oxe-filter-list .oxe-dialog-option[hidden] {
  display: none;
}

/* Notes and comment threads (notemarks.js): Excel's red corner mark, purple for a thread, and the box beside the cell. */
.oxe-notes {
  position: absolute;
  top: var(--oxe-colhead-h);
  left: 0;
  width: var(--oxe-sheet-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  z-index: 2;
  pointer-events: none;
}
.oxe-note-mark {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x) - 6px);
  top: var(--oxe-y);
  width: 0;
  height: 0;
  border-top: 6px solid #e00000;
  border-left: 6px solid transparent;
}
.oxe-note-mark.oxe-thread-mark {
  border-top-color: #9c27b0;
}
/* A resolved thread's mark: grey (threadbox.js Resolve thread). */
.oxe-note-mark.oxe-thread-mark.oxe-thread-done {
  border-top-color: #8a8a8a;
}
/* A note at its own size, as its VML shape has it. */
.oxe-note-box.oxe-note-sized { width: var(--oxe-nw); height: var(--oxe-nh); overflow: hidden; }
.oxe-note-box {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: 200px;
  box-sizing: border-box;
  padding: 4px 6px;
  border: 1px solid #767676;
  background: #ffffe1;
  color: #000000;
  font: 12px/1.35 var(--oxe-ui-font);
  white-space: pre-wrap;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}
.oxe-thread-box {
  width: 240px;
  background: #ffffff;
  border-color: #9c27b0;
  white-space: normal;
}
.oxe-thread-item + .oxe-thread-item {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #dddddd;
}
.oxe-thread-date {
  color: #595959;
  font-size: 11px;
}
.oxe-thread-text {
  white-space: pre-wrap;
}

/* Data bars and icon sets (ooxml/cfbars.js): a bar inside its cell under the text, a dashed axis; an icon at the
   cell's left, the text keeping its alignment in the room beside it. */
.oxe-fill.oxe-cf-bar,
.oxe-fill.oxe-cf-axis {
  box-sizing: border-box;
}
/* Sparklines (sparkview.js): an SVG the size of its cell, under the text, clipped to the cell. */
.oxe-fill.oxe-spark {
  overflow: hidden;
  pointer-events: none;
}
/* The Sparkline tab's style gallery (sparklinetab.js): six by six previews, a bar of the series colour with the high
   and low points' colours. */
.oxe-spark-styles {
  display: grid;
  grid-template-columns: repeat(6, 34px);
  gap: 4px;
  padding: 4px;
}
.oxe-spark-style {
  position: relative;
  width: 34px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--oxe-head-line);
  cursor: pointer;
  background: #ffffff;
}
.oxe-spark-style:hover,
.oxe-spark-style:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-spark-style-line {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 10px;
  height: 3px;
}
.oxe-spark-style-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
}
.oxe-spark-style-high {
  left: 6px;
  top: 4px;
}
.oxe-spark-style-low {
  right: 6px;
  top: 14px;
}
/* The table style gallery (tablegallery.js): each style a five by five table in it, seven to a row, scrolled when
   taller than the window. */
.oxe-tstyle-menu {
  max-height: 60vh;
  overflow-y: auto;
}
.oxe-tstyles {
  display: grid;
  grid-template-columns: repeat(7, 44px);
  gap: 6px;
  padding: 4px;
}
.oxe-tstyle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  width: 44px;
  height: 34px;
  padding: 1px;
  border: 1px solid var(--oxe-head-line);
  background: #ffffff;
  cursor: pointer;
}
.oxe-tstyle:hover,
.oxe-tstyle:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-tstyle-cell {
  box-sizing: border-box;
  position: relative;
}
.oxe-tstyle-cell::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  top: 40%;
  height: 1px;
  background: var(--oxe-tstyle-ink);
  opacity: 0.6;
}
/* The cell style gallery (cellstylegallery.js): each style a chip named and drawn in it, four to a row. */
.oxe-cstyles {
  display: grid;
  grid-template-columns: repeat(4, 92px);
  gap: 4px;
  padding: 4px;
}
.oxe-cstyle {
  height: 24px;
  padding: 0 4px;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  border: 1px solid var(--oxe-head-line);
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  cursor: pointer;
}
.oxe-cstyle:hover,
.oxe-cstyle:focus-visible {
  outline: 2px solid var(--oxe-focus);
  outline-offset: 1px;
}
.oxe-table-name {
  width: 9em;
  font: inherit;
}
.oxe-cell .oxe-cf-icon {
  position: absolute;
  left: 2px;
  bottom: 3px;
  width: 12px;
  height: 12px;
  line-height: 0;
}
.oxe-cell.oxe-cf-iconed {
  --oxe-pad-l: 17px;
}
.oxe-cell.oxe-cf-novalue > .oxe-tx {
  visibility: hidden;
}
/* Conditional formats (ooxml/condformat.js): a rule's fill and font over the cell's own (four parts, to outrank the
   cell format classes cellstyles.js scopes to the editor). */
.oxe-fill.oxe-cf-fill {
  background: var(--oxe-cf);
}
.oxe-root .oxe-grid .oxe-cell.oxe-cf-color {
  color: var(--oxe-cf-color);
}
.oxe-root .oxe-grid .oxe-cell.oxe-cf-bold {
  font-weight: 700;
}
.oxe-root .oxe-grid .oxe-cell.oxe-cf-normal {
  font-weight: 400;
}
.oxe-root .oxe-grid .oxe-cell.oxe-cf-italic {
  font-style: italic;
}
.oxe-root .oxe-grid .oxe-cell.oxe-cf-upright {
  font-style: normal;
}
.oxe-root .oxe-grid .oxe-cell.oxe-cf-strike {
  text-decoration: line-through;
}
/* Table styles (ooxml/tablestyle.js): a table's fill, edges and font under the cell's own format (four parts with
   .oxe-tbl, to outrank the cell format classes; tableLooks leaves out what the cell's own format sets). */
.oxe-fill.oxe-tbl-fill {
  background: var(--oxe-tbl);
}
.oxe-root .oxe-cell.oxe-tbl.oxe-tbl-color {
  color: var(--oxe-tbl-color);
}
.oxe-root .oxe-cell.oxe-tbl.oxe-tbl-bold {
  font-weight: 700;
}
.oxe-root .oxe-cell.oxe-tbl.oxe-tbl-normal {
  font-weight: 400;
}
.oxe-root .oxe-cell.oxe-tbl.oxe-tbl-italic {
  font-style: italic;
}
.oxe-root .oxe-cell.oxe-tbl.oxe-tbl-upright {
  font-style: normal;
}

/* Data validation (dvmarks.js): a list's button beside the active cell, the input message under it. */
.oxe-dv {
  position: absolute;
  top: var(--oxe-colhead-h);
  left: 0;
  width: var(--oxe-sheet-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  z-index: 3;
  pointer-events: none;
}
.oxe-dv-btn {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: 17px;
  height: var(--oxe-h);
  padding: 0;
  border: 1px solid #a6a6a6;
  background: #f3f3f3;
  color: #444444;
  font: 10px var(--oxe-ui-font);
  pointer-events: auto;
}
.oxe-dv-prompt {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  max-width: 220px;
  padding: 4px 6px;
  border: 1px solid #767676;
  background: #ffffe1;
  color: #000000;
  font: 12px/1.35 var(--oxe-ui-font);
  white-space: pre-wrap;
}
.oxe-dv-prompt-text {
  margin-top: 2px;
}
/* A note being written (dialogs.js noteBox): beside its cell, in a note's colours. */
.oxe-dialog.oxe-note-edit {
  position: fixed;
  inset: var(--oxe-fy) auto auto var(--oxe-fx);
  margin: 0;
  width: 240px;
  background: #ffffe1;
  color: #000000;
}
.oxe-note-edit .oxe-note-author {
  margin: 0 0 4px;
  font-weight: bold;
}
.oxe-note-edit .oxe-note-text {
  box-sizing: border-box;
  width: 100%;
  font: 12px/1.35 var(--oxe-ui-font);
  background: #ffffff;
  color: #000000;
}
.oxe-dialog.oxe-pick-box {
  position: fixed;
  inset: var(--oxe-fy) auto auto var(--oxe-fx);
  margin: 0;
  padding: 2px;
  min-width: 120px;
}
.oxe-pick-box .oxe-dialog-list {
  min-width: 120px;
}

/* Charts (chartview.js), pictures and shapes (drawview.js): each a picture over the cells, where its anchor puts it;
   under the row headings and frozen panes, which stay over what scrolls. */
.oxe-charts {
  position: absolute;
  top: var(--oxe-colhead-h);
  left: 0;
  width: var(--oxe-sheet-w);
  height: calc(var(--oxe-sheet-h) - var(--oxe-colhead-h));
  z-index: 1;
  pointer-events: none;
}
.oxe-obj {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  width: var(--oxe-w);
  height: var(--oxe-h);
  line-height: 0;
  pointer-events: auto;
  cursor: move;
}
.oxe-obj > svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.oxe-obj-text {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  line-height: normal;
}
.oxe-obj-text-ctr { justify-content: center; }
.oxe-obj-text-b { justify-content: flex-end; }
.oxe-obj-para { margin: 0; }
.oxe-obj.oxe-chart-on {
  outline: 1px solid var(--oxe-accent, #217346);
}
.oxe-chart {
  position: absolute;
  left: calc(var(--oxe-rowhead-w) + var(--oxe-x));
  top: var(--oxe-y);
  line-height: 0;
  pointer-events: auto;
  cursor: move;
}
/* A picked chart (chartpick.js): outlined, with eight handles; sized, an outline of its new size. */
.oxe-chart.oxe-chart-on {
  outline: 2px solid var(--oxe-accent, #217346);
  outline-offset: 1px;
}
.oxe-chart-h {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -5px 0 0 -5px;
  border: 1px solid var(--oxe-accent, #217346);
  background: #ffffff;
}
.oxe-chart-h-nw, .oxe-chart-h-n, .oxe-chart-h-ne { top: 0; }
.oxe-chart-h-w, .oxe-chart-h-e { top: 50%; }
.oxe-chart-h-sw, .oxe-chart-h-s, .oxe-chart-h-se { top: 100%; }
.oxe-chart-h-nw, .oxe-chart-h-w, .oxe-chart-h-sw { left: 0; }
.oxe-chart-h-n, .oxe-chart-h-s { left: 50%; }
.oxe-chart-h-ne, .oxe-chart-h-e, .oxe-chart-h-se { left: 100%; }
.oxe-chart-h-nw, .oxe-chart-h-se { cursor: nwse-resize; }
.oxe-chart-h-ne, .oxe-chart-h-sw { cursor: nesw-resize; }
.oxe-chart-h-n, .oxe-chart-h-s { cursor: ns-resize; }
.oxe-chart-h-e, .oxe-chart-h-w { cursor: ew-resize; }
.oxe-chart.oxe-chart-sizing::after, .oxe-obj.oxe-chart-sizing::after {
  content: '';
  position: absolute;
  left: var(--oxe-ghost-x);
  top: var(--oxe-ghost-y);
  width: var(--oxe-ghost-w);
  height: var(--oxe-ghost-h);
  outline: 1px dashed #404040;
}
.oxe-chart-figures {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Select Data (chartdatabox.js): reference fields with Excel's collapse button (refpick.js), the series list, and the
   bar that stands in for the boxes while cells are picked on the sheet. */
.oxe-dialog.oxe-select-data, .oxe-dialog.oxe-series-box { width: min(480px, calc(100vw - 32px)); max-width: min(480px, calc(100vw - 32px)); }
.oxe-ref-field { display: flex; gap: 4px; align-items: center; }
.oxe-ref-field .oxe-dialog-field { flex: 1; min-width: 0; }
.oxe-ref-collapse { flex: none; min-width: 0; padding-inline: 8px; }
.oxe-series-list { width: 100%; margin: 6px 0; }
.oxe-select-data-note:empty { display: none; }
.oxe-refbar {
  position: fixed;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 6px;
  align-items: center;
  width: min(480px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 6px;
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 13px var(--oxe-ui-font);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.oxe-refbar .oxe-dialog-field { flex: 1; min-width: 0; }
.oxe-refbar-label { flex: none; }

/* The Format Cells box (formatbox.js): its tabs in a row, one panel shown, fields label above control. */
.oxe-dialog.oxe-format-box {
  max-width: min(620px, calc(100vw - 32px));
  width: 620px;
}
.oxe-fc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--oxe-head-line);
  margin-bottom: 10px;
}
.oxe-fc-tab {
  padding: 5px 10px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.oxe-fc-tab[aria-selected="true"] {
  border-color: var(--oxe-head-line);
  background: var(--oxe-bg);
  font-weight: 600;
}
.oxe-fc-panel {
  min-height: 260px;
}
.oxe-fc-grid,
.oxe-fc-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 16px;
  align-items: start;
}
.oxe-format-box fieldset,
.oxe-chart-format-box fieldset {
  margin: 0;
  padding: 6px 10px 8px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
}
.oxe-chart-format-box fieldset {
  margin-bottom: 8px;
}
.oxe-chart-format-box fieldset[hidden] {
  display: none;
}
.oxe-fc-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
}
.oxe-fc-check {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}
.oxe-fc-num {
  width: 6em;
}
.oxe-fc-sample {
  display: block;
  min-height: 1.5em;
  margin: 0 0 8px;
  padding: 4px 6px;
  border: 1px solid var(--oxe-head-line);
}
.oxe-fc-color {
  display: flex;
  gap: 6px;
  align-items: center;
}
.oxe-fc-preview,
.oxe-fc-fill-sample {
  grid-column: 1 / -1;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--oxe-head-line);
  background: #ffffff;
  color: #000000;
}
.oxe-fc-presets {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
/* The Border tab's pad: side buttons around a preview cell, as Excel lays them out. */
.oxe-fc-border-pad {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 1fr 28px;
  grid-template-rows: 28px 28px 28px 28px;
  gap: 4px;
}
.oxe-fc-side {
  width: 28px;
  height: 28px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 3px;
  background: var(--oxe-bg) no-repeat center / 16px 16px;
  color: inherit;
  cursor: pointer;
}
.oxe-fc-side[aria-pressed="true"] {
  background-color: var(--oxe-sel-fill);
  border-color: var(--oxe-accent, #217346);
}
.oxe-fc-side::before { content: ''; display: block; margin: auto; background: currentColor; }
.oxe-fc-side-top { grid-area: 1 / 1; }
.oxe-fc-side-horizontal { grid-area: 2 / 1; }
.oxe-fc-side-bottom { grid-area: 3 / 1; }
.oxe-fc-side-diagonalUp { grid-area: 4 / 1; }
.oxe-fc-side-left { grid-area: 4 / 2; }
.oxe-fc-side-vertical { grid-area: 4 / 3; }
.oxe-fc-side-right { grid-area: 4 / 4; }
.oxe-fc-side-diagonalDown { grid-area: 4 / 5; }
.oxe-fc-side-top::before, .oxe-fc-side-horizontal::before, .oxe-fc-side-bottom::before { width: 16px; height: 2px; }
.oxe-fc-side-left::before, .oxe-fc-side-vertical::before, .oxe-fc-side-right::before { width: 2px; height: 16px; }
.oxe-fc-side-diagonalUp::before, .oxe-fc-side-diagonalDown::before { width: 2px; height: 18px; transform: rotate(45deg); }
.oxe-fc-side-diagonalDown::before { transform: rotate(-45deg); }
.oxe-fc-border-preview {
  grid-area: 1 / 2 / 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #000000;
  outline: 1px dotted var(--oxe-head-line);
}
.oxe-fc-diag-up {
  background: linear-gradient(to top left, transparent calc(50% - 0.5px), #000 calc(50% - 0.5px), #000 calc(50% + 0.5px), transparent calc(50% + 0.5px)) #ffffff;
}
.oxe-fc-diag-down {
  background: linear-gradient(to top right, transparent calc(50% - 0.5px), #000 calc(50% - 0.5px), #000 calc(50% + 0.5px), transparent calc(50% + 0.5px)) #ffffff;
}
.oxe-fc-diag-up.oxe-fc-diag-down {
  background: linear-gradient(to top left, transparent calc(50% - 0.5px), #000 calc(50% - 0.5px), #000 calc(50% + 0.5px), transparent calc(50% + 0.5px)),
    linear-gradient(to top right, transparent calc(50% - 0.5px), #000 calc(50% - 0.5px), #000 calc(50% + 0.5px), transparent calc(50% + 0.5px)) #ffffff;
}
/* Format Painter waiting for cells: a brush beside the pointer over the grid. */
.oxe-root.oxe-painting .oxe-grid {
  cursor: copy;
}
/* Draw Borders on (drawborders.js): a pen over the grid, a cross while erasing. */
.oxe-root.oxe-drawing-borders .oxe-grid {
  cursor: crosshair;
}
.oxe-root.oxe-erasing-borders .oxe-grid {
  cursor: cell;
}
/* The Line Style menu: each line drawn beside its name. */
.oxe-linestyle {
  display: inline-block;
  width: 36px;
  height: 0;
  vertical-align: middle;
  border-bottom: 1px solid currentColor;
}
.oxe-ls-hair { border-bottom-color: color-mix(in srgb, currentColor 55%, transparent); }
.oxe-ls-dotted, .oxe-ls-dashDotDot, .oxe-ls-mediumDashDotDot { border-bottom-style: dotted; }
.oxe-ls-dashDot, .oxe-ls-dashed, .oxe-ls-mediumDashDot, .oxe-ls-mediumDashed, .oxe-ls-slantDashDot { border-bottom-style: dashed; }
.oxe-ls-medium, .oxe-ls-mediumDashDotDot, .oxe-ls-slantDashDot, .oxe-ls-mediumDashDot, .oxe-ls-mediumDashed { border-bottom-width: 2px; }
.oxe-ls-thick { border-bottom-width: 3px; }
.oxe-ls-double { border-bottom: 3px double currentColor; }
/* More Colors (colorbox.js): the fields in a column, the new colour over the current one. */
.oxe-colorbox-row {
  display: grid;
  grid-template-columns: 4.5em 8em;
  gap: 6px;
  align-items: center;
  margin: 0 0 6px;
}
.oxe-colorbox-samples {
  display: flex;
  gap: 12px;
  margin: 4px 0 8px;
}
.oxe-colorbox-sample {
  display: flex;
  gap: 6px;
  align-items: center;
}
.oxe-colorbox-swatch {
  display: inline-block;
  width: 40px;
  height: 24px;
  border: 1px solid var(--oxe-head-line);
  background: var(--oxe-swatch, #000000);
}

/* A comment thread (threadbox.js): its comments listed, each with its author, time and buttons, the reply box under. */
.oxe-dialog.oxe-thread-box {
  width: 340px;
}
.oxe-thread-list {
  max-height: 280px;
  overflow: auto;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}
.oxe-thread-item {
  padding: 6px 0;
  border-bottom: 1px solid var(--oxe-head-line);
}
.oxe-thread-head,
.oxe-thread-text {
  margin: 0 0 4px;
  white-space: pre-wrap;
}
.oxe-thread-acts {
  display: flex;
  gap: 6px;
}

/* Long menus (the Function Library's lists) scroll. */
.oxe-pop { max-height: min(70vh, 520px); overflow-y: auto; }

/* Insert Function (functionbox.js). */
.oxe-function-box { width: min(460px, calc(100vw - 32px)); }
.oxe-function-search { display: flex; gap: 6px; }
.oxe-function-search .oxe-dialog-field { flex: 1; min-width: 0; }
.oxe-function-list { width: 100%; }
.oxe-function-syntax { min-height: 2.6em; font-family: Consolas, 'Courier New', monospace; overflow-wrap: anywhere; }
.oxe-function-about { min-height: 2.6em; }

/* Function Arguments (fnargsbox.js): a row per argument, its name (bold when required), its box and its value. */
.oxe-fnargs-box { width: min(560px, calc(100vw - 32px)); }
.oxe-fnargs-group { margin: 0 0 12px; padding: 6px 10px; border: 1px solid var(--oxe-head-line); border-radius: 4px; }
.oxe-fnargs-group legend { margin: 0; padding: 0 4px; font-weight: 600; }
.oxe-fnargs-rows { max-height: min(40vh, 260px); overflow-y: auto; }
.oxe-fnargs-row { display: grid; grid-template-columns: minmax(6em, 9em) minmax(0, 1fr) auto minmax(0, 10em); gap: 6px; align-items: center; margin: 4px 0; }
.oxe-fnargs-row .oxe-dialog-field { min-width: 0; }
.oxe-fnargs-name { margin: 0; overflow-wrap: anywhere; }
.oxe-fnargs-required { font-weight: 700; }
.oxe-fnargs-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oxe-fnargs-help { min-height: 2.6em; }
.oxe-fnargs-hint { opacity: 0.7; }
.oxe-fnargs-fold { padding: 0 6px; border: 1px solid var(--oxe-head-line); border-radius: 4px; background: var(--oxe-head-bg); color: inherit; font: inherit; cursor: pointer; }
.oxe-fnargs-fold:focus-visible { outline: 2px solid var(--oxe-focus); outline-offset: 1px; }
@media (max-width: 480px) {
  .oxe-fnargs-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px; }
  .oxe-fnargs-name, .oxe-fnargs-value { grid-column: 1 / -1; }
}
/* The box doesn't hold the page (the sheet is pointed at), so it sits at the lower right, the sheet's first columns
   clear, and the ribbon and the formula bar wait while it is open. */
.oxe-dialog-modeless { position: fixed; inset: auto 16px 36px auto; z-index: 40; margin: 0; }
@media (max-width: 600px) { .oxe-dialog-modeless { inset: auto 0 0; margin: 0 auto; } }
.oxe-holding .oxe-toolbar, .oxe-holding .oxe-bar { pointer-events: none; opacity: 0.6; }
/* The cell being edited, while another sheet is shown to point at from Function Arguments. */
.oxe-pointing-away .oxe-editor { visibility: hidden; }
/* Collapse Dialog: only the argument with focus, its box and its Expand button. */
.oxe-fnargs-collapsed { padding: 6px 8px; }
.oxe-fnargs-collapsed > :not(.oxe-fnargs-group), .oxe-fnargs-collapsed .oxe-fnargs-group > legend,
.oxe-fnargs-collapsed .oxe-fnargs-row:not(.oxe-fnargs-current), .oxe-fnargs-collapsed .oxe-fnargs-name,
.oxe-fnargs-collapsed .oxe-fnargs-value { display: none; }
.oxe-fnargs-collapsed .oxe-fnargs-group { margin: 0; padding: 0; border: 0; }
.oxe-fnargs-collapsed .oxe-fnargs-row { grid-template-columns: minmax(0, 1fr) auto; margin: 0; }

/* The function screen tip under a cell being edited (fntip.js). */
.oxe-fntip {
  position: absolute;
  z-index: 6;
  padding: 2px 6px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 3px;
  background: var(--oxe-head-bg);
  color: var(--oxe-head-fg);
  font: 12px 'Segoe UI', system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* The iterative calculation box (iterbox.js): each number beside its label. */
.oxe-iteration-box .oxe-dialog-row, .oxe-page-setup .oxe-dialog-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}
.oxe-iteration-box .oxe-dialog-row .oxe-dialog-label { min-width: 10em; }
.oxe-page-setup .oxe-dialog-row .oxe-dialog-label { min-width: 13em; }
.oxe-page-setup .oxe-dialog-field { width: 14em; }
.oxe-iteration-box .oxe-dialog-field { width: 8em; }

/* The Style box (stylebox.js): New Cell Style and Modify. Each part's check box with what it is beside it. */
.oxe-style-includes {
  margin: 8px 0 10px;
  padding: 6px 10px 8px;
  border: 1px solid var(--oxe-head-line);
  border-radius: 4px;
}
.oxe-style-includes legend {
  padding: 0 4px;
}
.oxe-style-row {
  display: grid;
  grid-template-columns: minmax(7em, auto) 1fr;
  align-items: baseline;
  column-gap: 12px;
}
.oxe-style-part {
  font-size: 12px;
  overflow-wrap: anywhere;
}

/* @mentions in comments (mentions.js, notemarks.js mentionText): the name highlighted as Excel shows it, and the list of
   people @ offers under the comment box. */
.oxe-mention {
  color: var(--oxe-mention-ink, #0f5ca8);
  background: var(--oxe-mention-bg, #e5effa);
  border-radius: 3px;
  padding: 0 1px;
}
.oxe-root[data-theme="dark"] .oxe-mention { --oxe-mention-ink: #9cc7f5; --oxe-mention-bg: #1e3550; }
@media (prefers-color-scheme: dark) {
  .oxe-root:not([data-theme="light"]) .oxe-mention { --oxe-mention-ink: #9cc7f5; --oxe-mention-bg: #1e3550; }
}
.oxe-mention-list {
  margin: 2px 0 6px;
  padding: 2px 0;
  max-height: 180px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--oxe-head-line);
  background: var(--oxe-bg, #fff);
}
.oxe-mention-option { padding: 3px 8px; cursor: pointer; }
.oxe-mention-option[aria-selected="true"] { background: var(--oxe-head-bg, #e8e8e8); font-weight: 600; }
.oxe-mention-id { opacity: 0.75; font-size: 11px; }

/* The Text Import box (textimportbox.js): its settings in a wrapping row, the file's first rows in a scrolled table
   with each column's data format over it, a skipped column greyed. */
.oxe-textimport-box { max-width: min(760px, 96vw); }
.oxe-textimport-top { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.oxe-textimport-other { display: flex; align-items: center; gap: 4px; }
.oxe-textimport-scroll { max-height: 260px; max-width: 100%; overflow: auto; border: 1px solid #c8c8c8; margin-top: 8px; }
.oxe-textimport-preview { border-collapse: collapse; font-size: 12px; }
.oxe-textimport-preview th, .oxe-textimport-preview td { border: 1px solid #e0e0e0; padding: 2px 6px; white-space: pre; text-align: left; vertical-align: top; }
.oxe-textimport-preview .oxe-dialog-select { font-size: 12px; }
.oxe-textimport-skip { opacity: 0.45; }
.oxe-textimport-raw {
  margin: 6px 0;
  padding: 4px 6px;
  border: 1px solid #c8c8c8;
  max-width: 100%;
  max-height: 160px;
  overflow: auto;
  font: 12px/1.4 Consolas, "Courier New", monospace;
  white-space: pre;
  cursor: crosshair;
}
/* The Save As box (saveasbox.js). */
.oxe-saveas-box { max-width: min(520px, 96vw); }
.oxe-saveas-name { width: 22em; max-width: 100%; }
.oxe-saveas-note { max-width: 32em; }
.oxe-textimport-delims > .oxe-fc-check, .oxe-textimport-delims > .oxe-textimport-other { display: inline-flex; margin-right: 14px; }
.oxe-textimport-delims .oxe-fc-field { align-items: flex-start; }
