.tt-table th.tt-header {
  position: relative;
  padding-right: 33px;
  cursor: grab;
  user-select: none;
}
.tt-heading {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tt-heading > .btn {
  flex: none;
  padding: 2px 4px;
}
.tt-menu-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #747b91;
  font:
    20px/1 system-ui,
    sans-serif;
  cursor: pointer;
}
.tt-menu-toggle:hover,
.tt-menu-toggle[aria-expanded='true'] {
  color: #6553bd;
  background: #ece8f8;
}
.tt-menu-toggle:disabled {
  cursor: wait;
  opacity: 0.45;
}
.tt-resize {
  position: absolute;
  top: 0;
  right: -4px;
  z-index: 2;
  width: 9px;
  height: 100%;
  cursor: col-resize;
  touch-action: none;
}
.tt-resize::after {
  content: '';
  position: absolute;
  width: 1px;
  left: 4px;
  top: 9px;
  bottom: 9px;
  background: #dddfea;
}
.tt-resize:hover::after,
.tt-resize:focus-visible::after {
  width: 3px;
  background: #8270d0;
}
.tt-menu-toggle:focus-visible,
.tt-resize:focus-visible,
.tt-menu button:focus-visible {
  outline: 2px solid #8270d0;
  outline-offset: -2px;
}
.tt-table th.tt-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.tt-table th.tt-before {
  box-shadow: inset 3px 0 #8270d0;
}
.tt-table th.tt-after {
  box-shadow: inset -3px 0 #8270d0;
}
body.tt-resizing,
body.tt-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}
.tt-menu {
  position: fixed;
  z-index: 1100;
  width: 212px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #e4e3ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 28px #28204024;
}
.tt-menu button {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #4c5367;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.tt-menu button:hover,
.tt-menu button:focus-visible {
  background: #f3f0fb;
  color: #6553bd;
}
.tt-menu button:disabled {
  color: #b3b7c2;
  cursor: default;
  background: transparent;
}
.tt-menu hr {
  border: 0;
  border-top: 1px solid #eeedf3;
  margin: 4px 5px;
}
.tt-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (pointer: coarse) {
  .tt-menu-toggle {
    width: 28px;
    right: 7px;
  }
  .tt-menu button {
    min-height: 44px;
  }
  .tt-table th.tt-header {
    padding-right: 39px;
  }
}
