:root {
  --nx-grid-fg: inherit;
  --nx-grid-border: #E0E0E0;
  --nx-grid-header-bg: #F0F0F0;
  --nx-grid-header-border: #999999;
  --nx-grid-row-even-bg: #f5f5f5;
  --nx-grid-row-odd-bg: #ffffff;
  --nx-grid-surface: #fff;
  --nx-grid-selection-bg: #C7C7C7;
  --nx-grid-selected-border: #AFAFAF;
  --nx-grid-focus-cell-bg: #d6f5e3;
  --nx-grid-accent: #0078d4;
  --nx-grid-accent-dark: #005a9e;
  --nx-grid-selection-border: #217346;
  --nx-grid-pick-border: #0078d4;
  --nx-grid-row-number-fg: #666;
  --nx-grid-icon-fg: #000;
  --nx-grid-icon-muted-fg: #555;
  --nx-grid-hover-bg: #f0f0f0;
  --nx-grid-item-hover-bg: #e8f4ff;
  --nx-grid-muted-fg: #888;
  --nx-grid-shadow: rgba(0, 0, 0, 0.15);
  --nx-grid-group-header-bg: #E8E8E8;
  --nx-grid-group-header-fg: #333333;
  --nx-grid-footer-bg: #F0F0F0;
  --nx-grid-footer-color: inherit;
  --nx-grid-font-family: inherit;
  --nx-grid-font-size: 14px;
  --nx-grid-menu-bg: #fff;
  --nx-grid-menu-icon: #0078d4;
  --nx-grid-checkbox-border: #c0c0c0;
  --nx-grid-checkbox-bg: #fff;
  --nx-grid-checkbox-fill: #0078d4;
  --nx-grid-checkbox-check: #ffffff;
  --nx-grid-readonly-bg: rgba(128, 128, 128, 0.14);
}

/* Every scroll container that holds a <Virtualize> states `overflow-anchor: none` (here, the
   combo dropdown, and the filter value list). Virtualize resizes its spacer divs on every
   update, and scroll anchoring answers a change in content above the anchor by moving the scroll
   offset — which Virtualize then reads as a scroll and answers with another spacer change. The two
   drive each other, so a flick that outruns the renderer leaves the list scrolling on its own,
   at a steady several rows a frame, until it hits the end.

   Blazor's Virtualize already sets this from JS, but as an *inline* style on the container it
   found — and all three of these carry a `style` attribute that Blazor's renderer owns and
   rewrites, which drops the property. Stating it in the stylesheet is what makes it survive. */
.nx-grid {
  border: 1px solid var(--nx-grid-border);
  overflow-x: auto;
  overflow-y: auto;
  overflow-anchor: none;
  position: relative;
  font-size: var(--nx-grid-font-size);
  font-family: var(--nx-grid-font-family);
  color: var(--nx-grid-fg);
  outline: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.nx-grid > [aria-hidden=true]:not([class]) {
  min-width: var(--nx-grid-content-width, 0);
}

.nx-grid-header-row {
  border-bottom: 1px solid var(--nx-grid-border);
  font-weight: bold;
  display: flex;
  position: sticky;
  top: 0;
  background-color: var(--nx-grid-header-bg);
  z-index: 2;
}

.nx-grid-column-title {
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nx-grid-column-title.nx-grid-column-title-no-sort {
  cursor: default;
}

.nx-grid-column-title-template {
  display: block;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.nx-grid-column-title-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.nx-grid-sort-icon {
  flex-shrink: 0;
  margin-left: 4px;
  color: var(--nx-grid-accent);
  display: inline-flex;
  align-items: center;
}

.nx-grid-row {
  display: flex;
  background-color: var(--nx-grid-row-even-bg);
}

.nx-grid-row .nx-grid-cell,
.nx-grid-row .nx-grid-row-start {
  border-bottom: 1px solid var(--nx-grid-border);
}

.nx-grid-row:nth-child(odd) {
  background-color: var(--nx-grid-row-odd-bg);
}

.nx-grid-no-banding .nx-grid-row,
.nx-grid-no-banding .nx-grid-row:nth-child(odd) {
  background-color: var(--nx-grid-surface);
}

.nx-grid-cell {
  border-right: 1px solid var(--nx-grid-border);
  padding: 2px 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.nx-grid-cell-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: pre;
  min-width: 0;
  flex: 1;
}

.nx-grid-cell-template {
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: inherit;
}

.nx-grid-cell-text-btn-pad {
  padding-right: calc(var(--nx-grid-row-height) - 6px);
}

.nx-grid-header-row {
  border-bottom-color: var(--nx-grid-header-border);
}

.nx-grid-header-row .nx-grid-cell,
.nx-grid-header-row .nx-grid-row-start,
.nx-grid-row .nx-grid-row-start {
  border-right-color: var(--nx-grid-header-border);
  border-bottom-color: var(--nx-grid-header-border);
}

.nx-grid-header-row .nx-grid-cell {
  position: relative;
}

.nx-grid-header-row .nx-grid-cell:hover .nx-grid-resize-grip,
.nx-grid-resize-grip.nx-grid-resize-grip-active {
  border-color: var(--nx-grid-accent);
}

.nx-grid-row .nx-grid-cell.nx-grid-cell-anchor {
  border-right-color: var(--nx-grid-selected-border);
  border-bottom-color: var(--nx-grid-selected-border);
}

.nx-grid-row .nx-grid-cell.nx-grid-cell-focus-highlight {
  background-color: var(--nx-grid-focus-cell-bg);
}

.nx-grid-row .nx-grid-cell.nx-grid-cell-selected {
  background-color: var(--nx-grid-selection-bg);
  border-right-color: var(--nx-grid-selected-border);
  border-bottom-color: var(--nx-grid-selected-border);
}

.nx-grid-row .nx-grid-cell.nx-grid-cell-pick-range {
  background-color: rgba(0, 120, 212, 0.07);
}

.nx-grid-edit-input {
  position: absolute;
  inset: 0;
  padding: 2px 6px;
  border: 2px solid var(--nx-grid-selection-border);
  box-sizing: border-box;
  background: var(--nx-grid-surface);
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  outline: none;
  z-index: 2;
}

.nx-grid-edit-textarea {
  position: absolute;
  inset: 0;
  padding: 2px 6px;
  border: 2px solid var(--nx-grid-selection-border);
  box-sizing: border-box;
  background: var(--nx-grid-surface);
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  outline: none;
  z-index: 2;
  resize: none;
  overflow-y: hidden;
}

.nx-grid-cell-editing-ml {
  overflow: visible;
}

.nx-grid-edit-textarea-sl {
  position: absolute;
  inset: 0;
  padding: 2px 6px;
  border: 2px solid var(--nx-grid-selection-border);
  box-sizing: border-box;
  background: var(--nx-grid-surface);
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  outline: none;
  z-index: 2;
  resize: none;
  white-space: nowrap;
  overflow: hidden;
}

.nx-grid-cell-text-multiline {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  text-overflow: clip;
}

.nx-grid-multiline .nx-grid-cell {
  align-items: flex-start;
}

.nx-grid-template-header .nx-grid-header-row .nx-grid-cell {
  align-items: flex-end;
  padding-bottom: calc((var(--nx-grid-row-height) - 16px) / 2);
}

.nx-grid-template-header .nx-grid-column-title-wrap {
  align-items: flex-end;
}

.nx-grid-row-start {
  border-right: 1px solid var(--nx-grid-border);
  width: 32px;
  min-width: 32px;
  background-color: var(--nx-grid-header-bg);
  position: sticky;
  left: 0;
  z-index: 1;
}

.nx-grid-row-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--nx-grid-row-number-fg);
}

.nx-grid-menu-button {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  cursor: pointer;
  color: var(--nx-grid-icon-fg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nx-grid-menu-button:hover {
  color: var(--nx-grid-accent);
}

.nx-grid-menu-button:active {
  color: var(--nx-grid-accent-dark);
}

.nx-grid-popup,
.nx-grid-popup-backdrop {
  position: fixed;
  top: calc(var(--nx-popup-y, 0px) - var(--nx-grid-fixed-y, 0px));
  left: calc(var(--nx-popup-x, 0px) - var(--nx-grid-fixed-x, 0px));
  right: auto;
  bottom: auto;
  margin: 0;
  color: inherit;
}

.nx-grid-popup {
  max-height: min(var(--nx-popup-cap, calc(100vh - 20px)), var(--nx-popup-avail, 100vh));
  overflow-y: auto;
}

.nx-grid-popup-backdrop {
  width: 100vw;
  height: 100vh;
}

.nx-grid-top-layer {
  --nx-grid-fixed-x: 0px;
  --nx-grid-fixed-y: 0px;
}

.nx-grid-menu-backdrop {
  display: none;
  z-index: 999;
}

.nx-grid-chooser-backdrop {
  z-index: 999;
}
@media (max-width: 768px) {
  .nx-grid-menu-backdrop {
    display: block;
    background: rgba(0, 0, 0, 0.3);
  }
}

.nx-grid-column-menu {
  width: 300px;
  background-color: var(--nx-grid-menu-bg);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 4px 12px var(--nx-grid-shadow);
  z-index: 1000;
  padding: 4px 0;
}

.nx-grid-column-menu-mobile {
  border-radius: 8px;
  --nx-popup-cap: 80vh;
  overflow-y: auto;
}

.nx-grid-resize-grip {
  width: 10px;
  border-right: 4px solid transparent;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  cursor: col-resize;
}

.nx-grid-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
}

.nx-grid-menu-item:hover {
  background-color: var(--nx-grid-item-hover-bg);
}

.nx-grid-menu-item:active {
  background-color: var(--nx-grid-selection-bg);
}

.nx-grid-menu-item-icon {
  flex-shrink: 0;
  color: var(--nx-grid-menu-icon);
  display: inline-flex;
  align-items: center;
}

.nx-grid-menu-divider {
  height: 1px;
  background-color: var(--nx-grid-border);
  margin: 4px 0;
}

.nx-grid-context-menu {
  background-color: var(--nx-grid-menu-bg);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 4px 12px var(--nx-grid-shadow);
  border-radius: 4px;
  padding: 4px 0;
  min-width: 120px;
  width: max-content;
  max-width: calc(100vw - 20px);
  z-index: 1000;
}

.nx-grid-context-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  box-sizing: border-box;
}

.nx-grid-context-shortcut {
  color: var(--nx-grid-muted-fg);
  font-size: 0.85em;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 16px;
}

.nx-grid-context-item:hover {
  background-color: var(--nx-grid-item-hover-bg);
}

.nx-grid-context-item-disabled,
.nx-grid-context-item[disabled] {
  color: var(--nx-grid-muted-fg);
  cursor: default;
  pointer-events: none;
}

.nx-grid-filter-body {
  padding: 4px 12px 8px 36px;
}

.nx-grid-filter-row {
  margin-bottom: 8px;
}

.nx-grid-filter-date-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.nx-grid-filter-date-label {
  width: 35px;
  flex-shrink: 0;
  font-size: 13px;
}

.nx-grid-filter-input {
  display: block;
  width: 100%;
  padding: 4px 8px;
  font-size: 13px;
  font-family: inherit;
  color: inherit;
  border: 1px solid var(--nx-grid-border);
  background: var(--nx-grid-surface);
  box-sizing: border-box;
  outline: none;
}

.nx-grid-filter-input:focus {
  border-color: var(--nx-grid-accent);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.nx-grid-filter-listbox {
  border: 1px solid var(--nx-grid-border);
  height: 300px;
  overflow-y: auto;
  /* A virtualized value list, so no scroll anchoring — see .nx-grid above. */
  overflow-anchor: none;
  padding: 8px;
  margin-bottom: 8px;
  background: var(--nx-grid-surface);
  box-sizing: border-box;
}

.nx-grid-filter-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 4px;
}

.nx-grid-filter-item input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  min-width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 3px;
  border: 1.5px solid var(--nx-grid-checkbox-border);
  background: var(--nx-grid-checkbox-bg);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.1s, background 0.1s;
}

.nx-grid-filter-item input[type=checkbox]:not(:checked):hover {
  border-color: var(--nx-grid-checkbox-fill);
}

.nx-grid-filter-item input[type=checkbox]:checked {
  background: var(--nx-grid-checkbox-fill);
  border-color: var(--nx-grid-checkbox-fill);
}

.nx-grid-filter-item input[type=checkbox]:checked:hover {
  filter: brightness(0.85);
}

.nx-grid-filter-item input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-grid-checkbox-check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px 8px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px 8px no-repeat;
}

.nx-grid-filter-item label {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nx-grid-filter-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 12px;
}

.nx-grid-btn {
  padding: 5px 16px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid transparent;
  line-height: 1.4;
}

.nx-grid-btn-primary {
  background-color: var(--nx-grid-accent);
  color: #fff;
  border-color: var(--nx-grid-accent);
}

.nx-grid-btn-primary:hover {
  background-color: var(--nx-grid-accent-dark);
  border-color: var(--nx-grid-accent-dark);
}

.nx-grid-btn-secondary {
  background-color: transparent;
  color: var(--nx-grid-accent);
  border-color: var(--nx-grid-border);
}

.nx-grid-btn-secondary:hover {
  background-color: var(--nx-grid-hover-bg);
  border-color: var(--nx-grid-accent);
}

.nx-grid-combo-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--nx-grid-selection-border);
  box-sizing: border-box;
  background: var(--nx-grid-surface);
  z-index: 2;
}

.nx-grid-combo-input {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: var(--nx-grid-fg);
  font-size: inherit;
  font-family: inherit;
  outline: none;
}

.nx-grid-combo-button {
  background: none;
  border: none;
  border-left: 1px solid var(--nx-grid-border);
  padding: 0;
  width: var(--nx-grid-row-height);
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  color: var(--nx-grid-icon-muted-fg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nx-grid-combo-button:hover {
  color: var(--nx-grid-accent);
  background-color: var(--nx-grid-hover-bg);
}

.nx-grid-combo-button:active {
  color: var(--nx-grid-accent-dark);
}

.nx-grid-combo-button-idle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--nx-grid-row-height);
  border: none;
  border-left: 1px solid var(--nx-grid-border);
  border-radius: 0;
  background: transparent;
  z-index: 1;
}

.nx-grid-combo-dropdown {
  background: var(--nx-grid-surface);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 2px 8px var(--nx-grid-shadow);
  --nx-popup-cap: 200px;
  overflow-y: auto;
  /* A virtualized option list, so no scroll anchoring — see .nx-grid above. */
  overflow-anchor: none;
  z-index: 1001;
}

.nx-grid-combo-item {
  padding: 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: inherit;
}

.nx-grid-combo-item:hover {
  background-color: var(--nx-grid-item-hover-bg);
}

.nx-grid-combo-item-active {
  background-color: var(--nx-grid-selection-bg);
}

.nx-grid-combo-dropdown-virtual .nx-grid-combo-item {
  height: var(--nx-grid-combo-item-h);
  box-sizing: border-box;
}

.nx-grid-combo-no-options {
  padding: 4px 8px;
  color: var(--nx-grid-muted-fg);
  font-style: italic;
  font-size: 13px;
}

.nx-grid-datepicker-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--nx-grid-selection-border);
  box-sizing: border-box;
  background: var(--nx-grid-surface);
  z-index: 2;
}

.nx-grid-datepicker-input {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  outline: none;
}

.nx-grid-datepicker-button {
  background: none;
  border: none;
  border-left: 1px solid var(--nx-grid-border);
  padding: 0;
  width: var(--nx-grid-row-height);
  justify-content: center;
  cursor: pointer;
  color: var(--nx-grid-icon-muted-fg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.nx-grid-datepicker-button:hover {
  color: var(--nx-grid-accent);
  background-color: var(--nx-grid-hover-bg);
}
.nx-grid-datepicker-button:active {
  color: var(--nx-grid-accent-dark);
}

.nx-grid-datepicker-button-idle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--nx-grid-row-height);
  border: none;
  border-left: 1px solid var(--nx-grid-border);
  border-radius: 0;
  background: transparent;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--nx-grid-icon-muted-fg);
}
.nx-grid-datepicker-button-idle:hover {
  color: var(--nx-grid-accent);
  background-color: var(--nx-grid-hover-bg);
}

.nx-grid-datepicker-popup {
  background: var(--nx-grid-surface);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 2px 8px var(--nx-grid-shadow);
  width: 228px;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1001;
}

.nx-grid-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 2px;
  border-bottom: 1px solid var(--nx-grid-border);
}

.nx-grid-datepicker-title {
  font-weight: 600;
  font-size: 13px;
  flex: 1;
  text-align: center;
}

.nx-grid-datepicker-nav {
  background: none;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  color: var(--nx-grid-icon-muted-fg);
  display: flex;
  align-items: center;
  border-radius: 3px;
}
.nx-grid-datepicker-nav:hover {
  color: var(--nx-grid-accent);
  background-color: var(--nx-grid-hover-bg);
}

.nx-grid-datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px;
  gap: 1px;
}

.nx-grid-datepicker-dow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--nx-grid-muted-fg);
  padding: 2px 0 4px;
}

.nx-grid-datepicker-day {
  text-align: center;
  padding: 4px 2px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}
.nx-grid-datepicker-day:hover {
  background-color: var(--nx-grid-item-hover-bg);
}

.nx-grid-datepicker-day-other {
  color: var(--nx-grid-muted-fg);
}

.nx-grid-datepicker-day-today {
  font-weight: 700;
  color: var(--nx-grid-accent);
}

.nx-grid-datepicker-day-highlight {
  background-color: var(--nx-grid-selection-bg);
}

.nx-grid-datepicker-day-selected {
  background-color: var(--nx-grid-accent);
  color: #fff;
}
.nx-grid-datepicker-day-selected:hover {
  background-color: var(--nx-grid-accent-dark);
}

.nx-grid-cell-text-color {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nx-grid-colorpicker-cell-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid var(--nx-grid-border);
  flex-shrink: 0;
  display: inline-block;
}

.nx-grid-colorpicker-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  border: 2px solid var(--nx-grid-selection-border);
  box-sizing: border-box;
  background: var(--nx-grid-surface);
  z-index: 2;
}

.nx-grid-colorpicker-input {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
  border: none;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  outline: none;
}

.nx-grid-colorpicker-swatch-button {
  border: none;
  border-left: 1px solid var(--nx-grid-border);
  padding: 0;
  width: var(--nx-grid-row-height);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 1;
}
.nx-grid-colorpicker-swatch-button:hover {
  opacity: 0.85;
}
.nx-grid-colorpicker-swatch-button:active {
  opacity: 0.7;
}

.nx-grid-colorpicker-swatch-button-idle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--nx-grid-row-height);
  border: none;
  border-left: 1px solid var(--nx-grid-border);
  border-radius: 0;
  z-index: 1;
  cursor: pointer;
}
.nx-grid-colorpicker-swatch-button-idle:hover {
  opacity: 0.85;
}

.nx-grid-colorpicker-popup {
  background: var(--nx-grid-surface);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 2px 8px var(--nx-grid-shadow);
  width: 256px;
  user-select: none;
  -webkit-user-select: none;
  z-index: 1001;
}

.nx-grid-colorpicker-tabs {
  display: flex;
  border-bottom: 1px solid var(--nx-grid-border);
}

.nx-grid-colorpicker-tab {
  flex: 1;
  padding: 6px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-family: inherit;
  color: var(--nx-grid-muted-fg);
  cursor: pointer;
}
.nx-grid-colorpicker-tab:hover {
  color: var(--nx-grid-fg);
  background-color: var(--nx-grid-hover-bg);
}

.nx-grid-colorpicker-tab-active {
  color: var(--nx-grid-accent);
  border-bottom-color: var(--nx-grid-accent);
  font-weight: 600;
}

.nx-grid-colorpicker-palette {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  padding: 8px;
  gap: 3px;
}

.nx-grid-colorpicker-swatch {
  aspect-ratio: 1;
  border: 1px solid var(--nx-grid-border);
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}
.nx-grid-colorpicker-swatch:hover {
  transform: scale(1.15);
  z-index: 1;
  position: relative;
  border-color: var(--nx-grid-fg);
}

.nx-grid-colorpicker-custom {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nx-grid-colorpicker-gradient {
  position: relative;
  height: 120px;
  cursor: crosshair;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.nx-grid-colorpicker-gradient-thumb {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.nx-grid-colorpicker-hue-track {
  margin-top: 6px;
  padding: 3px 0;
}

.nx-grid-colorpicker-hue-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(to right, hsl(0, 100%, 50%), hsl(30, 100%, 50%), hsl(60, 100%, 50%), hsl(90, 100%, 50%), hsl(120, 100%, 50%), hsl(150, 100%, 50%), hsl(180, 100%, 50%), hsl(210, 100%, 50%), hsl(240, 100%, 50%), hsl(270, 100%, 50%), hsl(300, 100%, 50%), hsl(330, 100%, 50%), hsl(0, 100%, 50%));
  outline: none;
  cursor: pointer;
  display: block;
}
.nx-grid-colorpicker-hue-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--nx-grid-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.nx-grid-colorpicker-hue-input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--nx-grid-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  border: none;
}

.nx-grid-colorpicker-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--nx-grid-border);
}

.nx-grid-colorpicker-preview {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  border: 1px solid var(--nx-grid-border);
  flex-shrink: 0;
}

.nx-grid-colorpicker-inputs-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.nx-grid-colorpicker-input-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--nx-grid-muted-fg);
}

.nx-grid-colorpicker-text-input {
  flex: 1;
  min-width: 0;
  padding: 2px 4px;
  border: 1px solid var(--nx-grid-border);
  background: var(--nx-grid-surface);
  color: inherit;
  font-size: 12px;
  font-family: monospace;
  border-radius: 2px;
  outline: none;
}
.nx-grid-colorpicker-text-input:focus {
  border-color: var(--nx-grid-accent);
}

.nx-grid-colorpicker-rgb-row {
  display: flex;
  gap: 4px;
}

.nx-grid-colorpicker-rgb-input {
  width: 44px;
  padding: 2px 4px;
  border: 1px solid var(--nx-grid-border);
  background: var(--nx-grid-surface);
  color: inherit;
  font-size: 12px;
  border-radius: 2px;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}
.nx-grid-colorpicker-rgb-input:focus {
  border-color: var(--nx-grid-accent);
}
.nx-grid-colorpicker-rgb-input::-webkit-inner-spin-button, .nx-grid-colorpicker-rgb-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.nx-grid-checkbox-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  border: 1.5px solid var(--nx-grid-checkbox-border);
  background: var(--nx-grid-checkbox-bg);
  color: var(--nx-grid-checkbox-check);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.1s, background 0.1s;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.nx-grid-checkbox-wrap:not(.nx-grid-checkbox-disabled):not(.nx-grid-checkbox-blocked):hover {
  border-color: var(--nx-grid-checkbox-fill);
}

.nx-grid-checkbox-checked {
  background: var(--nx-grid-checkbox-fill);
  border-color: var(--nx-grid-checkbox-fill);
}

.nx-grid-checkbox-checked:not(.nx-grid-checkbox-disabled):not(.nx-grid-checkbox-blocked):hover {
  filter: brightness(0.85);
}

.nx-grid-checkbox-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.nx-grid-checkbox-blocked {
  opacity: 0.4;
  cursor: not-allowed;
}

.nx-grid-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 16px;
  color: var(--nx-grid-muted-fg);
}

.nx-grid-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
}

.nx-grid-status-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 3px 8px;
  background-color: var(--nx-grid-header-bg);
  border-top: 1px solid var(--nx-grid-border);
  font-size: 12px;
  color: var(--nx-grid-icon-muted-fg);
  z-index: 2;
  min-width: 100%;
  box-sizing: border-box;
}

.nx-grid-status-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nx-grid-status-label {
  font-weight: 600;
}

.nx-grid-footer-row {
  position: sticky;
  bottom: 0;
  background-color: var(--nx-grid-footer-bg);
  border-top: 2px solid var(--nx-grid-header-border);
  color: var(--nx-grid-footer-color);
  display: flex;
  font-weight: bold;
  z-index: 2;
  min-width: 100%;
  box-sizing: border-box;
}
.nx-grid-footer-row .nx-grid-cell {
  border-right-color: var(--nx-grid-header-border);
}

.nx-grid:has(.nx-grid-status-bar) .nx-grid-footer-row {
  bottom: 26px;
}

.nx-grid-chooser-panel {
  background-color: var(--nx-grid-surface);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 4px 12px var(--nx-grid-shadow);
  z-index: 1000;
  padding: 4px 0 8px;
  min-width: 180px;
  max-height: 320px;
  overflow-y: auto;
}

.nx-grid-chooser-title {
  padding: 6px 12px 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--nx-grid-muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--nx-grid-border);
  margin-bottom: 4px;
}

.nx-grid-chooser-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
}
.nx-grid-chooser-item:hover {
  background-color: var(--nx-grid-item-hover-bg);
}
.nx-grid-chooser-item input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  min-width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--nx-grid-checkbox-border);
  background: var(--nx-grid-checkbox-bg);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.1s, background 0.1s;
}
.nx-grid-chooser-item input[type=checkbox]:not(:checked):hover {
  border-color: var(--nx-grid-checkbox-fill);
}
.nx-grid-chooser-item input[type=checkbox]:checked {
  background: var(--nx-grid-checkbox-fill);
  border-color: var(--nx-grid-checkbox-fill);
}
.nx-grid-chooser-item input[type=checkbox]:checked:hover {
  filter: brightness(0.85);
}
.nx-grid-chooser-item input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nx-grid-checkbox-check);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px 8px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8'%3E%3Cpath d='M1 4L3.5 6.5L9 1' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E") center/10px 8px no-repeat;
}

.nx-grid-tooltip {
  background-color: var(--nx-grid-surface);
  border: 1px solid var(--nx-grid-border);
  box-shadow: 0 2px 8px var(--nx-grid-shadow);
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 13px;
  max-width: 320px;
  line-height: 1.4;
  word-break: break-word;
  color: inherit;
  pointer-events: none;
  z-index: 1002;
}

.nx-print-dialog-backdrop {
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-print-dialog {
  background: var(--nx-grid-surface);
  border: 1px solid var(--nx-grid-border);
  border-radius: 6px;
  box-shadow: 0 8px 32px var(--nx-grid-shadow);
  width: min(820px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  font-family: var(--nx-grid-font-family);
  font-size: inherit;
}

.nx-print-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--nx-grid-border);
  flex-shrink: 0;
}

.nx-print-dialog-title {
  font-weight: 600;
  font-size: 15px;
}

.nx-print-dialog-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--nx-grid-muted-fg);
  padding: 0 4px;
  line-height: 1;
}
.nx-print-dialog-close:hover {
  color: var(--nx-grid-icon-fg);
}

.nx-print-dialog-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 12px;
  min-height: 0;
}

.nx-print-dialog-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.nx-print-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nx-print-option.nx-print-option-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.nx-print-preview-wrap {
  flex: 1;
  overflow: auto;
  border: 1px solid var(--nx-grid-border);
  min-height: 0;
}

.nx-print-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
.nx-print-table th {
  background: var(--nx-grid-header-bg);
  border: 1px solid var(--nx-grid-header-border);
  padding: 5px 8px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
.nx-print-table tr:nth-child(even) td {
  background: var(--nx-grid-row-even-bg);
}
.nx-print-table tr:nth-child(odd) td {
  background: var(--nx-grid-row-odd-bg);
}
.nx-print-table td {
  border: 1px solid var(--nx-grid-border);
  padding: 4px 8px;
}

.nx-print-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--nx-grid-border);
  flex-shrink: 0;
}

.nx-print-btn-cancel {
  background: none;
  border: 1px solid var(--nx-grid-border);
  border-radius: 4px;
  padding: 6px 16px;
  min-width: 80px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}
.nx-print-btn-cancel:hover {
  background: var(--nx-grid-hover-bg);
}

.nx-print-btn-print {
  background: var(--nx-grid-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 16px;
  min-width: 80px;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}
.nx-print-btn-print:hover {
  background: var(--nx-grid-accent-dark);
}

.nx-grid-drag-handle-gutter {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nx-grid-drag-handle {
  cursor: grab;
  color: var(--nx-grid-row-number-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.nx-grid-drag-handle:active {
  cursor: grabbing;
}

.nx-grid-drop-indicator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--nx-grid-accent);
  pointer-events: none;
  z-index: 10;
  display: none;
}

.nx-grid-group-header {
  display: flex;
  align-items: center;
  padding: 0 8px;
  background: var(--nx-grid-group-header-bg);
  color: var(--nx-grid-group-header-fg);
  font-weight: 600;
  border-bottom: 1px solid var(--nx-grid-border);
  user-select: none;
  -webkit-user-select: none;
}
.nx-grid-group-header.nx-grid-group-header-collapsible {
  cursor: pointer;
}
.nx-grid-group-header.nx-grid-group-header-collapsible:hover {
  filter: brightness(0.96);
}

.nx-grid-group-toggle {
  margin-right: 6px;
  font-size: 10px;
  color: var(--nx-grid-icon-muted-fg);
  flex-shrink: 0;
}

.nx-print-area {
  position: fixed;
  left: 100vw;
  top: 0;
  min-width: 100vw;
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
  visibility: hidden;
  pointer-events: none;
}
.nx-print-area .nx-print-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}
.nx-print-area .nx-print-date {
  font-size: 12px;
  color: #666;
  margin: 0 0 16px;
}

.nx-grid-fill-handle {
  position: fixed;
  visibility: hidden;
  width: 7px;
  height: 7px;
  background-color: var(--nx-grid-selection-border);
  border: 1px solid var(--nx-grid-surface);
  cursor: crosshair;
  z-index: 5;
  box-sizing: border-box;
}

.nx-grid-fill-preview {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  box-sizing: border-box;
  border: 1.5px dashed var(--nx-grid-selection-border);
  background-color: rgba(33, 115, 70, 0.06);
}

/*# sourceMappingURL=nx-grid.css.map */
