/* The DataGridView (DomGrid.kt) - the desktop's GridComponent rebuilt in the DOM: a JScrollPane whose header strip
   and rows are PAINTED on one canvas (by the app's cell code, through CanvasGraphics) under a transparent native
   scroll box, with the cell editor laid over the cell inside the scrolled content. Colours, fonts, sizes, the border
   (BorderStyle) and which scroll bars may show (ScrollBars) come from the model and are set inline; this is the frame. */

.gss-grid { position: absolute; box-sizing: border-box; overflow: hidden; outline: none; margin: 0;
  user-select: none; -webkit-user-select: none; }

/* Inside the grid's border: the inner line of a Fixed3D bevel (no border otherwise). Its client area is the grid's. */
.gss-grid-frame { position: absolute; left: 0; top: 0; right: 0; bottom: 0; box-sizing: border-box; overflow: hidden; }

/* The painted header + body, under the scroll box. */
.gss-grid-canvas { position: absolute; left: 0; top: 0; display: block; }

/* The body's viewport (its top is the header's height, set inline). Transparent: the canvas shows through. A wheel at
   its end does not scroll what is behind it - a JScrollPane keeps its wheel. */
.gss-grid-scroll { position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: auto; background: transparent;
  overscroll-behavior: contain; outline: none; }

/* All rows x all columns: what the scroll box scrolls; the cell editors are placed in it in body coordinates. */
.gss-grid-sizer { position: relative; left: 0; top: 0; }

/* The cell editor - Swing's JTextField over the cell: white, no frame, 3 px either side, the Windows highlight. */
.gss-grid-editor { position: absolute; box-sizing: border-box; margin: 0; padding: 0 3px; border: none; border-radius: 0;
  outline: none; background: #fff; color: #000; user-select: text; -webkit-user-select: text; }
.gss-grid-editor::selection { background: #0078D7; color: #fff; }

/* A combo column's editor - the plain, non-editable list of the WinForms combo cell (the shell's <select> look). */
.gss-grid-combo { position: absolute; box-sizing: border-box; margin: 0; padding: 0 2px; border: 1px solid #9A9A9A;
  border-radius: 0; outline: none; background: #fff; color: #000; }
.gss-grid-combo:focus { border-color: #0078D7; }

/* The ▼ / ▲ keys either side of the editor of a cell that asks for them (CellStepperNeeded); drawn as SVG. */
.gss-grid-step { position: absolute; box-sizing: border-box; overflow: hidden; cursor: default;
  user-select: none; -webkit-user-select: none; }
.gss-grid-step svg { display: block; }
