.mtek-table-viewport {
  width: 100%;
  min-height: 620px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  border-radius: 14px;
}

.mtek-table-viewport table {
  margin-bottom: 0;
}

.mtek-table-viewport thead th {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 20;
  box-shadow: inset 0 -1px 0 #e5e7eb;
}

.mtek-filter-th {
  position: relative;
  white-space: nowrap;
  vertical-align: middle;
  cursor: grab;
  user-select: none;
  padding-right: 34px !important;
}

.mtek-filter-th:active {
  cursor: grabbing;
}

.mtek-filter-label {
  display: inline-block;
}

.mtek-filter-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 24px;
  height: 22px;
  transform: translateY(-50%);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 5px;
  font-size: 13px;
  line-height: 18px;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.mtek-filter-btn:hover {
  background: #e2e8f0;
}

.mtek-filter-menu {
  display: none;
  position: fixed;
  min-width: 230px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  z-index: 999999;
  padding: 8px;
}

.mtek-filter-menu.show {
  display: block;
}

.mtek-filter-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #0f172a;
  cursor: pointer;
}

.mtek-filter-menu button:hover {
  background: #eff6ff;
}

.mtek-filter-search {
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 6px 0;
  padding: 8px 0;
}

.mtek-filter-search input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 7px 8px;
  font-size: 14px;
}

.mtek-dragging {
  opacity: 0.55;
}

.mtek-drag-over {
  outline: 2px dashed #2563eb;
  outline-offset: -4px;
  background: #eff6ff !important;
}
