/* Hangar Items and Search Results Adjustable Column Styles */

.hangar-items-table-wrap {
  overflow-x: auto;
}

table.hangar-items-table.hangar-columns-adjustable,
table.search-results-table.hangar-columns-adjustable {
  table-layout: fixed;
  min-width: 0;
}

.hangar-columns-adjustable th {
  position: relative;
  padding-right: 20px !important;
  user-select: none;
}

.hangar-columns-adjustable td {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hangar-columns-adjustable .item-name-cell {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hangar-columns-adjustable .item-name-line {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
}

.hangar-columns-adjustable .item-name-line .item-name-text {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.hangar-columns-adjustable .item-inline-qty {
  flex: 0 0 auto;
}

.hangar-column-resizer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  cursor: col-resize;
  touch-action: none;
  user-select: none;
  z-index: 2;
}

.hangar-column-resizer::after {
  content: '';
  position: absolute;
  top: 20%;
  bottom: 20%;
  right: 3px;
  width: 2px;
  border-radius: 1px;
  background: #a4b7b7;
  transition: background 0.15s ease;
}

.hangar-column-resizer:hover::after,
.hangar-column-resizer:focus-visible::after {
  background: var(--teal, #0f766e);
}

.hangar-column-resizer:focus-visible {
  outline: 2px solid var(--teal, #0f766e);
  outline-offset: -2px;
}

body.hangar-column-resizing,
body.hangar-column-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

table.hangar-column-measure {
  position: fixed;
  left: -100000px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  table-layout: auto;
  width: max-content;
  min-width: 0;
  max-width: none;
}

.hangar-column-measure th,
.hangar-column-measure td,
.hangar-column-measure td * {
  white-space: nowrap !important;
  min-width: 0;
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}
