/**
 * Handsontable 15: меню фильтра и чеклист значений.
 * Внешнее меню — .htDropdownMenu; вложенный HOT списка — .htUIMultipleSelectHot.handsontable (без htDropdownMenu).
 * Тема задаёт синие --ht-checkbox-* на .ht-theme-main; они наследуются во вложенный инстанс — переопределяем на корне чеклиста и на input.
 */
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot.handsontable,
body.neuroege-hyperformula-page .htMenu .htUIMultipleSelectHot.handsontable,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot.handsontable,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot.handsontable,
.neuroege-hyperformula-page .htMenu .htUIMultipleSelectHot.handsontable,
.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot.handsontable,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot.handsontable,
#hyperformula-root .htMenu .htUIMultipleSelectHot.handsontable,
#hyperformula-root .handsontable.htDropdownMenu .htUIMultipleSelectHot.handsontable {
  --ht-checkbox-background-color: #ffffff !important;
  --ht-checkbox-border-color: #808080 !important;
  --ht-checkbox-checked-background-color: #ffffff !important;
  --ht-checkbox-checked-border-color: #505050 !important;
  --ht-checkbox-checked-icon-color: #000000 !important;
  --ht-checkbox-checked-focus-background-color: #ffffff !important;
  --ht-checkbox-checked-focus-border-color: #505050 !important;
  --ht-checkbox-checked-focus-icon-color: #000000 !important;
  --ht-checkbox-icon-color: rgba(0, 0, 0, 0) !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] .neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] #hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] #hyperformula-root .htMenu .htUIMultipleSelectHot.handsontable,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu .htUIMultipleSelectHot.handsontable {
  --ht-checkbox-background-color: #ffffff !important;
  --ht-checkbox-border-color: #808080 !important;
  --ht-checkbox-checked-background-color: #ffffff !important;
  --ht-checkbox-checked-border-color: #505050 !important;
  --ht-checkbox-checked-icon-color: #27272a !important;
  --ht-checkbox-checked-focus-background-color: #ffffff !important;
  --ht-checkbox-checked-focus-border-color: #505050 !important;
  --ht-checkbox-checked-focus-icon-color: #27272a !important;
  --ht-checkbox-icon-color: rgba(0, 0, 0, 0) !important;
}

body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput,
body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput,
body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput,
body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput,
body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput,
.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput,
.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput,
.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput,
.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput,
#hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput,
#hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput,
#hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput,
#hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput,
#hyperformula-root .htMenu.handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
#hyperformula-root .handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput,
#hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput {
  --ht-checkbox-background-color: #ffffff !important;
  --ht-checkbox-border-color: #808080 !important;
  --ht-checkbox-checked-background-color: #ffffff !important;
  --ht-checkbox-checked-border-color: #505050 !important;
  --ht-checkbox-checked-icon-color: #000000 !important;
  --ht-checkbox-checked-focus-background-color: #ffffff !important;
  --ht-checkbox-checked-focus-border-color: #505050 !important;
  --ht-checkbox-checked-focus-icon-color: #000000 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] .neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput,
[data-theme="dark"] #hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput {
  --ht-checkbox-background-color: #ffffff !important;
  --ht-checkbox-border-color: #808080 !important;
  --ht-checkbox-checked-background-color: #ffffff !important;
  --ht-checkbox-checked-border-color: #505050 !important;
  --ht-checkbox-checked-icon-color: #27272a !important;
  --ht-checkbox-checked-focus-background-color: #ffffff !important;
  --ht-checkbox-checked-focus-border-color: #505050 !important;
  --ht-checkbox-checked-focus-icon-color: #27272a !important;
}

/* Явный фон ::before (перебивает var и shorthand темы). */
body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput::before,
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput::before,
body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput::before,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput::before,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput::before,
.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput::before,
#hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
#hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
#hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput::before,
#hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput::before,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput::before,
#hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput::before {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #808080 !important;
}

body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::before,
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::before,
body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::before,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::before,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::before,
.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::before,
#hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
#hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
#hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::before,
#hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::before,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::before,
#hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::before {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #505050 !important;
}

body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::after,
body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::after,
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::after,
body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::after,
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::after,
body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::after,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::after,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::after,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::after,
.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::after,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::after,
.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::after,
#hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
#hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
#hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
#hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::after,
#hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
#hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
#hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
#hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::after,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::after,
#hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::after,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::after,
#hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::after {
  color: #000000 !important;
  background-color: #000000 !important;
}

/* Тёмная тема: тёмная галочка на белом квадрате (::after перебивает общий #000). */
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] .neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] .neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] .neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] .neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] .neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] .neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] #hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] #hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] #hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] #hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked::after,
[data-theme="dark"] #hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::after,
[data-theme="dark"] #hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::after {
  color: #27272a !important;
  background-color: #27272a !important;
}

body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
body.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
body.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::before,
body.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::before,
body.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::before,
.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
.neuroege-hyperformula-page .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
.neuroege-hyperformula-page [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::before,
.neuroege-hyperformula-page .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::before,
.neuroege-hyperformula-page .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::before,
#hyperformula-root .htMenu.handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
#hyperformula-root .handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
#hyperformula-root [class*="ht-theme-main"].handsontable.htDropdownMenu input.htCheckboxRendererInput:checked:focus::before,
#hyperformula-root .handsontable.htFiltersConditionsMenu input.htCheckboxRendererInput:checked:focus::before,
#hyperformula-root .htFiltersMenuValue .htUIMultipleSelectHot input.htCheckboxRendererInput:checked:focus::before,
#hyperformula-root .htUIMultipleSelectHot.handsontable input.htCheckboxRendererInput:checked:focus::before {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #505050 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Список значений фильтра: фон строки (td.current), не квадрат ::before. */
body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot tbody tr:hover td,
.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot tbody tr:hover td,
#hyperformula-root .handsontable .htFiltersMenuValue .htUIMultipleSelectHot tbody tr:hover td {
  background-color: #f2f2f2 !important;
}

body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.current,
body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.ht__highlight,
.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.current,
.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.ht__highlight,
#hyperformula-root .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.current,
#hyperformula-root .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.ht__highlight {
  background-color: #ffffff !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot tbody tr:hover td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot tbody tr:hover td,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuValue .htUIMultipleSelectHot tbody tr:hover td {
  background-color: #333333 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.current,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.ht__highlight,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.current,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.ht__highlight,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.current,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuValue .htUIMultipleSelectHot td.ht__highlight {
  background-color: #252525 !important;
}

/* Кнопки OK / Отмена в панели действий фильтра (.htItemWrapper): светлая тема — белый фон, чёрные буквы. */
html:not([data-theme="dark"]) body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input,
html:not([data-theme="dark"]) .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input,
html:not([data-theme="dark"]) #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input {
  background-color: #ffffff !important;
  border-color: #767676 !important;
  color: #000000 !important;
}

html:not([data-theme="dark"]) body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:hover,
html:not([data-theme="dark"]) .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:hover,
html:not([data-theme="dark"]) #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:hover {
  background-color: #f0f0f0 !important;
  border-color: #505050 !important;
  color: #000000 !important;
}

html:not([data-theme="dark"]) body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus,
html:not([data-theme="dark"]) body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus-visible,
html:not([data-theme="dark"]) .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus,
html:not([data-theme="dark"]) .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus-visible,
html:not([data-theme="dark"]) #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:focus,
html:not([data-theme="dark"]) #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:focus-visible {
  background-color: #ffffff !important;
  border-color: #0078d7 !important;
  color: #000000 !important;
  box-shadow: 0 0 0 2px rgba(0, 120, 215, 0.25) !important;
}

html:not([data-theme="dark"]) body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:disabled,
html:not([data-theme="dark"]) .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:disabled,
html:not([data-theme="dark"]) #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:disabled {
  background-color: #e8e8e8 !important;
  border-color: #a0a0a0 !important;
  color: #707070 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input,
[data-theme="dark"] #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input {
  background-color: #333333 !important;
  border-color: #666666 !important;
  color: #ffffff !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:hover,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:hover,
[data-theme="dark"] #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:hover {
  background-color: #404040 !important;
  border-color: #888888 !important;
  color: #ffffff !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus-visible,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:focus-visible,
[data-theme="dark"] #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:focus,
[data-theme="dark"] #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:focus-visible {
  background-color: #3a3a3a !important;
  border-color: #6bb9ff !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(107, 185, 255, 0.35) !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:disabled,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htItemWrapper .htUIInput.htUIButton input:disabled,
[data-theme="dark"] #hyperformula-root .handsontable .htItemWrapper .htUIInput.htUIButton input:disabled {
  background-color: #252525 !important;
  border-color: #555555 !important;
  color: #888888 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htCheckboxRendererLabel,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu .htCheckboxRendererLabel,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu .htCheckboxRendererLabel,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htUIMultipleSelectHot .htCheckboxRendererLabel,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htUIMultipleSelectHot .htCheckboxRendererLabel,
[data-theme="dark"] #hyperformula-root .handsontable .htUIMultipleSelectHot .htCheckboxRendererLabel {
  color: #f5f5f5 !important;
}

/*
 * Тёмная тема: полная заливка панели фильтра. В vendor HOT у table tbody tr td задано background:#fff —
 * переменные --ht-background-color на контейнере ячейки не перекрашивают, нужны явные td + .wtHolder.
 */
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable),
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable),
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable),
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable),
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable),
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) {
  --ht-background-color: #2d2d2d !important;
  --ht-foreground-color: #f0f0f0 !important;
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .wtHolder,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .wtHider,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .wtSpreader,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .wtHolder,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .wtHider,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .wtSpreader,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) .wtHolder,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) .wtHider,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) .wtSpreader {
  background-color: #2d2d2d !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuCondition,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuCondition,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuValue,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuCondition,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuValue {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuLabel,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuLabel,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuLabel {
  color: #f5f5f5 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) table tbody tr td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) table tbody tr td,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) table tbody tr td {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
  border-color: #555555 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) table tbody tr td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) table tbody tr td.htDimmed,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) table tbody tr td.htDimmed {
  color: #a1a1aa !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table tbody tr td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table tbody tr td,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table tbody tr td {
  background-color: #252525 !important;
  color: #f0f0f0 !important;
  border-color: #444444 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuCondition .htUISelectCaption,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuOperators .htUISelectCaption,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuCondition .htUISelectCaption,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuOperators .htUISelectCaption,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuCondition .htUISelectCaption,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuOperators .htUISelectCaption {
  background-color: #1e1e1e !important;
  color: #f0f0f0 !important;
  border-color: #666666 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) a,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) a,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) a {
  color: #8ab4f8 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .htUIMultipleSelectSearch input,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu:not(.htGhostTable) .htUIMultipleSelectSearch input,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu:not(.htGhostTable) .htUIMultipleSelectSearch input {
  background-color: #1a1a1a !important;
  color: #f0f0f0 !important;
  border-color: #666666 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuValue,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuValue,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuValue {
  border-bottom-color: #555555 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable .htFiltersMenuCondition .border,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable .htFiltersMenuCondition .border,
[data-theme="dark"] #hyperformula-root .handsontable .htFiltersMenuCondition .border {
  border-bottom-color: #555555 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) table tbody tr td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) table tbody tr td,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) table.htCore tbody tr td,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) table tbody tr td {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
  border-color: #555555 !important;
}

/* Тёмная тема: каркас .htMenu.handsontable.htDropdownMenu (uiContainer = body); только верхний .ht_master > .wtHolder > table. */
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu > .ht_master,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu > .ht_master,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu > .ht_master,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu > .ht_master,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu > .ht_master,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu > .ht_master,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu > .ht_master,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu > .ht_master,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu > .ht_master {
  background-color: #2d2d2d !important;
  box-shadow: 2px 2px 18px rgba(0, 0, 0, 0.55) !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htDropdownMenu table tbody tr td.htSeparator,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu table tbody tr td.htSeparator,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htDropdownMenu table tbody tr td.htSeparator,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu table tbody tr td.htSeparator,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator,
[data-theme="dark"] #hyperformula-root .handsontable.htDropdownMenu table tbody tr td.htSeparator,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu table tbody tr td.htSeparator,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu table tbody tr td.htSeparator {
  border-top-color: #444 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
  border-color: #444 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr:hover > td,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr:hover > td {
  background-color: #3a4a60 !important;
}

[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] body.neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] .neuroege-hyperformula-page .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] #hyperformula-root .htMenu.handsontable.htDropdownMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] #hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore > tbody > tr > td.htDimmed,
[data-theme="dark"] #hyperformula-root .handsontable.htFiltersConditionsMenu:not(.htGhostTable) > .ht_master > .wtHolder > table > tbody > tr > td.htDimmed {
  color: #888 !important;
}

/*
 * Vendor: `.htDropdownMenu table tbody tr td{background:#fff}` — без класса .handsontable на том же селекторе.
 * Дублируем с html + .htDropdownMenu, чтобы гарантированно перебить и для меню на body.
 */
html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable),
html[data-theme="dark"] body.neuroege-hyperformula-page .htMenu.htDropdownMenu:not(.htGhostTable),
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable),
html[data-theme="dark"] .neuroege-hyperformula-page .htMenu.htDropdownMenu:not(.htGhostTable) {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) .wtHolder,
html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) .wtHider,
html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) .wtSpreader,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) .wtHolder,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) .wtHider,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) .wtSpreader {
  background-color: #2d2d2d !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table.htCore tbody tr td,
html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table.htCore tbody tr td,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
  border-color: #555555 !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td.htDimmed,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td.htDimmed {
  color: #a1a1aa !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td.current,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td.current {
  background-color: #3a4a60 !important;
  color: #f0f0f0 !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td.htDisabled:hover,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu:not(.htGhostTable) table tbody tr td.htDisabled:hover {
  background-color: #2d2d2d !important;
  color: #888888 !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table.htCore tbody tr td,
html[data-theme="dark"] body.neuroege-hyperformula-page .htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table tbody tr td,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table.htCore tbody tr td,
html[data-theme="dark"] .neuroege-hyperformula-page .htDropdownMenu .htUIMultipleSelectHot:not(.htGhostTable) table tbody tr td {
  background-color: #252525 !important;
  color: #f0f0f0 !important;
  border-color: #444444 !important;
}

html[data-theme="dark"] body.neuroege-hyperformula-page .htFiltersConditionsMenu:not(.htGhostTable) table.htCore tbody tr td,
html[data-theme="dark"] body.neuroege-hyperformula-page .htFiltersConditionsMenu:not(.htGhostTable) table tbody tr td,
html[data-theme="dark"] .neuroege-hyperformula-page .htFiltersConditionsMenu:not(.htGhostTable) table.htCore tbody tr td,
html[data-theme="dark"] .neuroege-hyperformula-page .htFiltersConditionsMenu:not(.htGhostTable) table tbody tr td {
  background-color: #2d2d2d !important;
  color: #f0f0f0 !important;
  border-color: #555555 !important;
}

/*
 * Ресайз через CSS resize на корне htDropdownMenu отключён: при перетаскивании ручки
 * Handsontable закрывает меню (mousedown/размер). Высота списка — main.js hfBoostFilterDropdownMenuHeights.
 */

/* ПКМ HyperFormula: не обрезать shortcuts (HT td { overflow:hidden }) — дубль в конце каскада. */
body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore,
.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore,
#hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) > .ht_master > .wtHolder > table.htCore {
  min-width: 340px !important;
  width: max-content !important;
}

body.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) table tbody tr td.htCustomMenuRenderer,
.neuroege-hyperformula-page .handsontable.htContextMenu:not(.htGhostTable) table tbody tr td.htCustomMenuRenderer,
#hyperformula-root .handsontable.htContextMenu:not(.htGhostTable) table tbody tr td.htCustomMenuRenderer {
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: normal !important;
  min-width: 340px !important;
}

body.neuroege-hyperformula-page .handsontable.htContextMenu .hf-ctx-menu-item,
.neuroege-hyperformula-page .handsontable.htContextMenu .hf-ctx-menu-item,
#hyperformula-root .handsontable.htContextMenu .hf-ctx-menu-item {
  padding-right: 40px !important;
}

body.neuroege-hyperformula-page .handsontable.htContextMenu td.htCustomMenuRenderer.htSubmenu,
.neuroege-hyperformula-page .handsontable.htContextMenu td.htCustomMenuRenderer.htSubmenu,
#hyperformula-root .handsontable.htContextMenu td.htCustomMenuRenderer.htSubmenu {
  overflow: hidden !important;
}

.handsontable.htContextMenu td.htCustomMenuRenderer:not(.htSubmenu) .htItemWrapper::after,
[class*="ht-theme"].htContextMenu td.htCustomMenuRenderer:not(.htSubmenu) .htItemWrapper::after,
[class*="ht-theme-main"].htContextMenu table tbody tr td.htCustomMenuRenderer:not(.htSubmenu) .htItemWrapper::after,
body.neuroege-hyperformula-page .handsontable.htContextMenu td.htCustomMenuRenderer:not(.htSubmenu) .htItemWrapper::after,
.neuroege-hyperformula-page .handsontable.htContextMenu td.htCustomMenuRenderer:not(.htSubmenu) .htItemWrapper::after,
#hyperformula-root .handsontable.htContextMenu td.htCustomMenuRenderer:not(.htSubmenu) .htItemWrapper::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  mask: none !important;
  -webkit-mask-image: none !important;
  background: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer .htItemWrapper,
.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer .htItemWrapper,
#hyperformula-root .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer .htItemWrapper {
  position: relative;
  overflow: hidden;
}

body.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer::after,
.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer::after,
#hyperformula-root .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer::after,
body.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer ::after,
.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer ::after,
#hyperformula-root .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer ::after,
body.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer ::before,
.neuroege-hyperformula-page .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer ::before,
#hyperformula-root .handsontable.htContextMenu td.htSubmenu.htCustomMenuRenderer ::before,
.handsontable .htContextMenu td.htSubmenu.htCustomMenuRenderer ::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.handsontable.htContextMenu .hf-ctx-menu-item__submenu-arrow {
  margin-left: 20px;
  padding-right: 2px;
  opacity: 0.72;
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
  justify-self: end;
}
