.table-toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.table-toolbar-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
}

.table-toolbar-title strong {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #f8fafc);
  letter-spacing: 0;
}

.table-toolbar-title span {
  font-size: 12px;
  color: var(--muted, #94a3b8);
  line-height: 1.35;
}

.table-toolbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.limit-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .18);
  background: linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(2, 6, 23, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 24px rgba(0, 0, 0, .18);
  color: var(--text, #e5e7eb);
  white-space: nowrap;
}

.limit-control span,
.limit-control em {
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  color: rgba(203, 213, 225, .78);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.limit-control select {
  appearance: none;
  -webkit-appearance: none;
  min-width: 62px;
  height: 28px;
  padding: 0 28px 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(86, 224, 194, .32);
  background:
    linear-gradient(180deg, rgba(20, 184, 166, .18), rgba(15, 23, 42, .92));
  color: #f8fafc;
  color-scheme: dark;
  font-size: 13px;
  font-weight: 800;
  outline: none;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #cbd5e1 50%),
    linear-gradient(135deg, #cbd5e1 50%, transparent 50%);
  background-position:
    calc(100% - 15px) 11px,
    calc(100% - 10px) 11px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.limit-control select:focus {
  border-color: rgba(86, 224, 194, .8);
  box-shadow: 0 0 0 3px rgba(86, 224, 194, .13);
}

.limit-control select option {
  background: #020617;
  color: #f8fafc;
}

.view-toggle {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(15, 23, 42, .76);
}

.view-toggle-btn {
  border: 0;
  background: transparent;
  color: rgba(203, 213, 225, .75);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.view-toggle-btn.active {
  background: rgba(86, 224, 194, .16);
  color: #f8fafc;
}

.table-density-compact table {
  font-size: 12px;
}

.table-density-compact th,
.table-density-compact td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.table-density-detail th,
.table-density-detail td {
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.empty-state-pro,
.empty-state {
  width: 100%;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, .22);
  border-radius: 16px;
  background: rgba(15, 23, 42, .42);
  color: rgba(226, 232, 240, .82);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.empty-state-pro strong,
.empty-state strong {
  font-size: 13px;
  font-weight: 800;
  color: #f8fafc;
}

.empty-state-pro span,
.empty-state span {
  font-size: 12px;
  color: rgba(148, 163, 184, .88);
}

.table-wrap,
.stock-editor-wrap {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}

.filters-collapsed {
  display: none !important;
}

@media (max-width: 760px) {
  .table-toolbar {
    align-items: flex-start;
  }

  .table-toolbar-actions {
    width: 100%;
  }

  .limit-control {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
  }

  .limit-control select {
    min-width: 82px;
  }

  .view-toggle {
    width: 100%;
  }

  .view-toggle-btn {
    flex: 1 1 0;
  }
}
