

.dg-table-shell { position: relative; min-width: 0; overflow: visible; }

.dg-table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 18px; margin: 0 0 16px; }
.dg-table-toolbar .dg-toolbar-block { display: flex; align-items: center; gap: 10px; margin: 0; }
.dg-table-toolbar .dg-toolbar-block > label { display: inline; color: var(--dg-text-muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dg-table-toolbar .dg-toolbar-block .select-wrapper, .dg-table-toolbar .dg-toolbar-block .dg-control, .dg-table-toolbar .dg-toolbar-block .multi-select-dropdown { width: auto; min-width: 190px; }
.dg-table-toolbar .dg-grid-length, .dg-table-toolbar .dg-grid-search { margin: 0; }
.dg-table-toolbar .dg-grid-search { margin-left: auto; }
.dg-table-shell .dg-grid-length, .dg-table-shell .dg-grid-search, .dg-table-shell .dg-grid-info, .dg-table-shell .dg-grid-pagination { color: var(--dg-text-muted); }
.dg-table-shell .dg-grid-length label, .dg-table-shell .dg-grid-search label { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }

.dg-table-shell .dg-grid-search input, .dg-table-shell .dg-grid-length select {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-md);
  background: rgba(11, 15, 20, .7);
  color: var(--dg-text);
}

.dg-table-shell .dg-grid-search input:focus, .dg-table-shell .dg-grid-length select:focus { outline: none; border-color: rgba(var(--dg-highlight-rgb), .55); }

.dg-table-frame, .dg-config-table-wrap, .stats-table-wrap { min-width: 0; overflow-x: auto; border: 1px solid var(--dg-line); border-radius: var(--dg-r-lg); background: rgba(8, 11, 16, .45); }

.card .dg-table-frame, .card .dg-config-table-wrap, .card .stats-table-wrap { --card-pad: 22px; margin-right: calc(var(--card-pad) * -1); margin-left: calc(var(--card-pad) * -1); border-width: 1px 0; border-radius: 0; background: transparent; }
.card .dg-table-frame :is(th, td):first-child, .card .dg-config-table-wrap :is(th, td):first-child, .card .stats-table-wrap :is(th, td):first-child { padding-left: var(--card-pad); }
.card .dg-table-frame :is(th, td):last-child, .card .dg-config-table-wrap :is(th, td):last-child, .card .stats-table-wrap :is(th, td):last-child { padding-right: var(--card-pad); }
.card .dg-table-frame:last-child, .card .dg-config-table-wrap:last-child, .card .stats-table-wrap:last-child { margin-bottom: -22px; border-bottom: 0; }
@media (max-width: 640px) {
  .card .dg-table-frame, .card .dg-config-table-wrap, .card .stats-table-wrap { --card-pad: 16px; }
  .card .dg-table-frame:last-child, .card .dg-config-table-wrap:last-child, .card .stats-table-wrap:last-child { margin-bottom: -16px; }
}
.dg-native-table, .dg-table, .dg-config-table, .stats-table { width: 100% !important; border-collapse: separate; border-spacing: 0; color: var(--dg-text); background: transparent; }
.dg-config-table { min-width: 640px; }

.dg-native-table thead th, .dg-config-table thead th, .stats-table thead th {
  position: relative;
  padding: 13px 16px;
  border-bottom: 1px solid var(--dg-line);
  background: rgba(255, 255, 255, .025);
  color: var(--dg-text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.dg-native-table thead th.dg-sortable { cursor: pointer; user-select: none; transition: color .2s var(--dg-ease); }
.dg-native-table thead th.dg-sortable:hover { color: var(--dg-text); }
.dg-native-table thead th.dg-sortable::after { content: '↕'; margin-left: 8px; color: rgba(255, 255, 255, .25); }
.dg-native-table thead th.is-sorted { color: var(--dg-highlight); }
.dg-native-table thead th.is-sorted[data-sort-direction='asc']::after { content: '↑'; color: var(--dg-highlight); }
.dg-native-table thead th.is-sorted[data-sort-direction='desc']::after { content: '↓'; color: var(--dg-highlight); }

.dg-native-table tbody td, .dg-config-table tbody td, .stats-table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--dg-border-soft); background: transparent; vertical-align: middle; }
.dg-native-table tbody tr, .dg-config-table tbody tr, .stats-table tbody tr { transition: background .15s var(--dg-ease); }
.dg-native-table tbody tr:hover td, .dg-config-table tbody tr:hover td, .stats-table tbody tr:hover td { background: rgba(var(--dg-highlight-rgb), .04); }
.dg-native-table tbody tr:last-child td, .dg-config-table tbody tr:last-child td, .stats-table tbody tr:last-child td { border-bottom: 0; }
.dg-native-table td:last-child { min-width: 150px; }
.dg-config-table td strong, .stats-table td strong { color: #fff; font-weight: 600; }
.dg-config-table td small, .stats-table td small { display: block; margin-top: 2px; color: var(--dg-text-dim); font-size: .78rem; }
.dg-native-table .dg-empty-row td { padding: 40px 18px; color: var(--dg-text-muted); text-align: center; }
.dg-native-table .dg-child-row td { padding: 14px 16px; background: rgba(255, 255, 255, .015); }

.dg-native-table .dg-table-action, .dg-config-table .dg-table-action, .stats-table .dg-table-action { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.dg-row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; width: 100%; }

.dg-row-more, .dg-icon-action {
  display: inline-grid;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-sm);
  background: transparent;
  color: var(--dg-text-muted);
  cursor: pointer;
  transition: border-color .2s var(--dg-ease), background .2s var(--dg-ease), color .2s var(--dg-ease);
}

.dg-row-more:hover, .dg-icon-action:hover { border-color: rgba(var(--dg-highlight-rgb), .45); background: rgba(var(--dg-highlight-rgb), .1); color: var(--dg-highlight); }
.dg-icon-action.is-danger:hover { border-color: rgba(239, 91, 100, .5); background: rgba(239, 91, 100, .12); color: var(--dg-danger); }

.dg-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; color: var(--dg-text-muted); font-size: 13px; }
.dg-table-pagination, .dg-table-shell .dg-grid-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }

.dg-page-button, .dg-table-shell .dg-grid-pagination .dg-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  min-width: 38px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--dg-line);
  border-radius: var(--dg-r-md);
  background: rgba(255, 255, 255, .03);
  color: var(--dg-text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s var(--dg-ease), background .2s var(--dg-ease), color .2s var(--dg-ease);
}

.dg-page-button:hover:not(:disabled), .dg-page-button.is-current, .dg-page-button.current { border-color: rgba(var(--dg-highlight-rgb), .45); background: rgba(var(--dg-highlight-rgb), .12); color: var(--dg-highlight); }
.dg-page-button:disabled, .dg-page-button.disabled { cursor: default; opacity: .4; }
.dg-table-shell.is-loading .dg-table-frame { opacity: .55; }

@media (max-width: 760px) {
  .dg-table-toolbar, .dg-table-footer { align-items: stretch; flex-direction: column; }
  .dg-table-toolbar .dg-grid-search { margin-left: 0; }
}
