﻿:where(.table-search-toolbar) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  width: 100%;
  max-width: 100%;
}

:where(.table-search-toolbar .table-search-wrap) {
  flex: 1 1 260px;
}

:where(.table-search-toolbar > .table-local-actions) {
  margin-left: auto;
}

:where(.table-tools) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  width: 100%;
  min-width: 0;
  margin-bottom: var(--gap-sm);
}

:where(.table-toolbar) {
  grid-template-columns: minmax(220px, 1.5fr) repeat(auto-fit, minmax(150px, 1fr)) auto;
  align-items: end;
}

:where(.table-toolbar input, .table-toolbar select, .table-toolbar button) {
  min-height: var(--control-height);
}

:where(.table-search-wrap, .control-search-dropdown) {
  position: relative;
  width: 100%;
  min-width: 0;
}

:where(.table-search-input) {
  width: 100%;
  padding-right: 40px;
}

.table-search-input::-webkit-search-cancel-button,
.table-search-input::-webkit-search-decoration {
  display: none;
  appearance: none;
  -webkit-appearance: none;
}

:where(.table-search-clear) {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.table-search-clear {
  display: inline-grid;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

:where(.table-search-clear:hover) {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

:where(.table-filter-reset) {
  min-width: 104px;
  white-space: nowrap;
}

:where(.table-toolbar:not(.has-active-filters) .table-filter-reset, .table-search-clear[hidden]) {
  display: none;
}

.table-toolbar:not(.has-active-filters) .table-filter-reset,
.table-search-clear[hidden] {
  display: none;
}

:where(.table-column-filters) {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: var(--gap-sm);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

:where(.table-column-filters select, .table-column-filters input) {
  flex: 0 0 auto;
  width: auto;
  min-width: 150px;
  max-width: 210px;
}

:where(.table-column-filters input[type="datetime-local"], .table-column-filters input[type="date"]) {
  min-width: 166px;
}

:where(.table-local-actions) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-xs);
  flex: 0 0 auto;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 92%, var(--soft-panel));
}

:where(.table-search-toolbar > .table-local-actions) {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

:where(.table-runtime-tools) {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg) 42%, var(--panel));
}

:where(.table-runtime-tools .table-search-wrap) {
  min-width: min(100%, 260px);
}

:where(.table-runtime-tools > .table-local-actions) {
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  border: 0;
  background: transparent;
}

:where(.table-runtime-tools--actions-only) {
  grid-template-columns: auto;
  justify-content: end;
}

:where(.table-runtime-tools--inline) {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

:where(.table-runtime-tools--inline > .table-local-actions) {
  width: auto;
}

:where(.table-runtime-tools .table-search-input) {
  min-height: 40px;
  border-color: color-mix(in srgb, var(--line) 92%, transparent);
  background: color-mix(in srgb, var(--bg) 54%, var(--panel));
  font-weight: 700;
}

:where(.table-runtime-tools .table-page-size) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 0 0 10px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 52%, var(--panel));
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

:where(.table-runtime-tools .table-page-size select) {
  min-width: 78px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-weight: 900;
}

:where(.table-selected-count, .table-runtime-count) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 52%, var(--panel));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

:where(.table-selected-count[hidden]) {
  display: none;
}

:where(.table-bulk-panel) {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 6px;
}

:where(.table-bulk-panel button) {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
}

:where(.table-bulk-panel button:disabled) {
  color: var(--muted);
  opacity: 0.54;
}

:where(.table-bulk-panel button.danger:not(:disabled)) {
  color: var(--danger, #ef4444);
}

:where(.table-select-column) {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  padding-inline: 8px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

:where(.table-select-column .row-check) {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 0 auto;
  accent-color: var(--accent);
}

:where(.table-local-actions > button, .table-local-actions > .file-button, .table-local-actions > .action-menu) {
  flex: 0 0 auto;
  min-width: max-content;
}

:where(.table-local-actions button, .table-local-actions .file-button, .table-local-actions .action-menu > summary) {
  min-height: 40px;
  padding-inline: 13px;
  font-weight: 700;
  white-space: nowrap;
}

:where(.table-local-actions .action-menu > summary) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

:where(.table-mobile-actions) {
  display: none;
}

:where(.table-view-toggle) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

:where(.table-view-toggle-button) {
  min-height: 36px;
  padding: 7px 12px;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
  font-weight: 700;
  white-space: nowrap;
}

:where(.table-view-toggle-button:hover) {
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
}

:where(.table-local-actions .action-menu > summary) {
  min-width: 96px;
}

.table-data-exchange-panel {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--soft-panel) 58%, var(--panel));
}

.table-data-exchange-panel button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: center;
  justify-content: stretch;
  min-height: 60px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
  transition: border-color 0.14s ease, background 0.14s ease, transform 0.14s ease;
}

.table-data-exchange-panel button::before {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.table-data-exchange-panel button::after {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.table-data-exchange-panel [data-table-export-open]::before {
  content: "\21E9";
  background: color-mix(in srgb, var(--accent) 13%, var(--panel));
  color: var(--accent);
}

.table-data-exchange-panel [data-table-export-open]::after {
  content: "Завантажити файл";
}

.table-data-exchange-panel [data-table-import-open]::before {
  content: "\21E7";
  background: color-mix(in srgb, var(--green) 14%, var(--panel));
  color: var(--green);
}

.table-data-exchange-panel [data-table-import-open]::after {
  content: "Додати записи з файлу";
}

.table-data-exchange-panel button:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  transform: translateY(-1px);
}

.table-data-exchange-panel button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 76%, transparent);
  outline-offset: 1px;
}

:where(.table-refresh-button) {
  min-height: 36px;
  padding: 7px 12px;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

:where(.table-refresh-button:hover) {
  background: color-mix(in srgb, var(--accent) 15%, var(--panel));
}

:where(.table-refresh-button:disabled) {
  cursor: wait;
  opacity: 0.72;
}

:where(.table-empty-refresh-cell) {
  padding: 22px 12px;
  text-align: center;
}

:where(.table-empty-refresh) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 44px;
}

:where(.table-empty-refresh-text) {
  color: var(--muted);
}

:where(.table-settings-strip) {
  display: flex;
  justify-content: flex-end;
  gap: var(--gap-xs);
  width: 100%;
  margin: 0 0 8px;
}

:where(#modalRoot, .modal-root) {
  pointer-events: none;
}

:where(#modalRoot > *, .modal-root > *) {
  pointer-events: auto;
}

:where(.table-settings-button) {
  min-height: 42px;
  padding: 9px 16px;
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

:where(.table-settings-button:hover) {
  background: color-mix(in srgb, var(--accent) 16%, var(--panel));
}

:where(.table-settings-backdrop) {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  align-items: safe center;
  justify-items: end;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(2, 8, 18, 0.56);
}

:where(.table-settings-drawer) {
  display: grid;
  width: min(420px, 100%);
  margin: auto 0 auto auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

:where(.table-settings-drawer-head) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

:where(.table-settings-drawer-head p) {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

:where(.table-settings-drawer-head h2) {
  margin: 0;
  font-size: 1.12rem;
}

:where(.table-settings-drawer-close) {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius);
}

:where(.table-settings-panel) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 16px 18px;
}

:where(.table-settings-panel[data-table-settings-panel="view"]) {
  grid-template-columns: minmax(0, 1fr);
}

:where(.table-settings-section-head) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  margin-bottom: 10px;
}

:where(.table-settings-section-head strong) {
  font-size: 0.9rem;
}

:where(.table-settings-section-head span) {
  color: var(--muted);
  font-size: 0.78rem;
}

:where(.table-settings-column-list) {
  display: grid;
  gap: 6px;
  max-height: min(360px, 48vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

:where(.table-settings-row) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, var(--soft-panel));
}

:where(.table-settings-row.is-hidden-column) {
  color: var(--muted);
  background: color-mix(in srgb, var(--soft-panel) 72%, transparent);
}

:where(.table-settings-grip) {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0;
}

:where(.table-settings-row-label) {
  min-width: 0;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:where(.table-settings-row-tools) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

:where(.table-settings-move) {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  font-weight: 900;
}

:where(.table-settings-switch) {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 24px;
}

:where(.table-settings-switch input) {
  position: absolute;
  inset: 0;
  opacity: 0;
}

:where(.table-settings-switch span) {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft-panel);
}

:where(.table-settings-switch span::after) {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
  transition: transform 0.15s ease, background 0.15s ease;
}

:where(.table-settings-switch input:checked + span) {
  border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
  background: color-mix(in srgb, var(--accent) 18%, var(--panel));
}

:where(.table-settings-switch input:checked + span::after) {
  background: var(--accent);
  transform: translateX(18px);
}

:where(.table-settings-empty, .table-settings-error) {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

:where(.table-settings-error) {
  margin-top: 10px;
  border-color: color-mix(in srgb, var(--danger, #ef4444) 50%, var(--line));
  color: var(--danger, #ef4444);
}

:where(.table-settings-drawer-footer) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

:where(.table-settings-drawer-footer button) {
  min-height: 38px;
  font-weight: 800;
}

@media (max-width: 760px) {
  :where(.table-settings-backdrop) {
    padding: 12px;
  }

  :where(.table-settings-drawer) {
    width: 100%;
  }

  :where(.table-settings-panel) {
    grid-template-columns: minmax(0, 1fr);
  }

  :where(.table-settings-column-list) {
    max-height: none;
    overflow-x: visible;
    overflow-y: visible;
  }

  :where(.table-settings-row-label) {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  :where(.table-settings-drawer-footer) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

.table-data-exchange-dialog {
  display: grid;
  gap: 16px;
}

.table-data-exchange-dialog > header,
.table-data-exchange-preview-head,
.table-data-import-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-data-exchange-dialog > header :where(h2, p),
.table-data-exchange-note,
.table-data-import-state {
  margin: 0;
}

.table-data-exchange-dialog > header p,
.table-data-exchange-note,
.table-data-import-state,
.table-data-exchange-preview-head span {
  color: var(--muted);
}

.table-data-exchange-options {
  display: grid;
  gap: 14px;
}

.table-data-exchange-options > label {
  display: grid;
  gap: 7px;
}

.table-data-exchange-options fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-data-exchange-options fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-data-exchange-options fieldset input {
  width: auto;
  min-height: 0;
}

.table-data-exchange-columns {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-data-exchange-column-controls,
.table-data-exchange-column-controls > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.table-data-exchange-column-controls > span {
  color: var(--muted);
  font-size: 13px;
}

.table-data-exchange-column-list {
  display: grid;
  gap: 8px;
  max-height: min(260px, 32dvh);
  overflow: auto;
  padding: 2px;
}

.table-data-exchange-column-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-data-exchange-column-option input {
  width: auto;
  min-height: 0;
}

.table-data-exchange-column-option small {
  margin-left: auto;
  color: var(--muted);
}

.table-data-import-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.table-data-import-actions .file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.table-data-exchange-preview {
  overflow: auto;
  max-height: min(320px, 40dvh);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-data-exchange-preview table {
  width: 100%;
  border-collapse: collapse;
}

.table-data-exchange-preview :where(th, td) {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  text-align: left;
}

.table-data-exchange-preview th {
  position: sticky;
  top: 0;
  background: var(--panel);
}

@media (max-width: 760px) {
  .table-data-exchange-preview {
    max-height: none;
    overflow: visible;
  }
}

:where(.table-detail-backdrop) {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: safe center;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  background: rgba(2, 8, 18, 0.58);
}

:where(.table-detail-dialog) {
  width: min(680px, 100%);
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

:where(.table-detail-head) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

:where(.table-detail-head p) {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

:where(.table-detail-head h2) {
  margin: 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

:where(.table-detail-close) {
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: var(--radius);
}

:where(.table-detail-grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 18px;
}

:where(.table-detail-field) {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 88%, var(--soft-panel));
}

:where(.table-detail-field dt) {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

:where(.table-detail-field dd) {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
}

:where(.table-detail-empty) {
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

:where(.table-detail-sections) {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

:where(.table-detail-actions) {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

:where(.table-detail-actions button) {
  min-height: 38px;
}

@media (max-width: 760px) {
  :where(.table-detail-backdrop) {
    padding: 12px;
  }

  :where(.table-mobile-actions) {
    display: flex;
    justify-content: stretch;
    width: 100%;
    min-width: 0;
  }

  :where(.table-mobile-actions .action-menu, .table-mobile-actions .action-menu > summary) {
    width: 100%;
    min-width: 0;
  }

  :where(.table-detail-actions) {
    display: grid;
    grid-template-columns: 1fr;
  }
}

:where(.control-search-dropdown > summary) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 7%, var(--panel));
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

:where(.control-search-dropdown > summary)::after {
  content: "\2304";
  color: var(--accent);
  font-size: 15px;
  line-height: 1;
  transition: transform 0.14s ease;
}

:where(.control-search-dropdown[open] > summary) {
  border-color: var(--accent);
  background: var(--text);
  color: var(--panel);
}

:where(.control-search-dropdown[open] > summary)::after {
  color: var(--panel);
  transform: rotate(180deg);
}

.control-search-dropdown > summary::-webkit-details-marker {
  display: none;
}

:where(.control-search-dropdown-panel) {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 60;
  display: grid;
  gap: var(--gap-sm);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: var(--gap-sm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.2);
}

:where(.control-search-dropdown:not([open]) > .control-search-dropdown-panel) {
  display: none;
}

:where(.control-search-dropdown-panel > .control-search-toolbar) {
  margin: 0;
}

@media (min-width: 761px) {
  :where(.control-search-dropdown > summary) {
    display: none;
  }

  :where(.control-search-dropdown-panel),
  :where(.control-search-dropdown:not([open]) > .control-search-dropdown-panel) {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  :where(.table-local-actions > .table-view-toggle, .table-local-actions > .table-view-toggle > .table-view-toggle-button, .table-refresh-button) {
    width: 100%;
  }
}

:where(.table-runtime-tools) {
  margin-bottom: 8px;
}

:where(.table-runtime-tools .table-search-wrap) {
  min-width: min(100%, 220px);
}

:where(.table-runtime-tools .table-page-size) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

:where(.table-runtime-tools .table-page-size select) {
  min-width: 82px;
  min-height: 36px;
}

:where(.table-runtime-count) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg) 52%, var(--panel));
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.table-column-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: center;
  cursor: grab;
}

table[data-table-runtime-header-style="compact"] .table-column-title {
  justify-content: center;
  min-height: 32px;
  padding-inline: 32px;
  overflow: hidden;
  text-align: center;
}

.table-column-title:hover {
  color: inherit;
}

.table-column-title:focus-visible {
  color: var(--accent);
  outline: none;
}

:where(.table-runtime-sort-icon) {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

:where(.table-runtime-sort-icon:empty) {
  display: none;
}

:where(.table-column-visibility-menu) {
  position: relative;
}

:where(.table-column-visibility-menu > .table-column-visibility-panel) {
  right: 0;
  left: auto;
  min-width: min(280px, calc(100vw - 24px));
}

:where(.is-table-column-hidden) {
  display: none !important;
}

:where(.table-runtime-empty-row[hidden]) {
  display: none !important;
}

:where(.table-runtime-empty-row td) {
  padding: 22px 12px;
  text-align: center;
}

:where(.table-runtime-pagination[hidden]) {
  display: none !important;
}

@media (max-width: 760px) {
  :where(.table-runtime-tools) {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  :where(.table-runtime-tools .table-local-actions) {
    justify-content: stretch;
    width: 100%;
  }

  :where(.table-runtime-tools .table-local-actions > *) {
    flex: 1 1 auto;
  }

  :where(.table-runtime-tools .table-page-size) {
    justify-content: space-between;
  }
}


