/* Contracts Table Adjustable Column Styles */

.contracts-table-wrapper {
  overflow-x: auto;
}

table.contracts-table.contracts-columns-adjustable {
  table-layout: fixed;
  min-width: 0;
}

.contracts-columns-adjustable th {
  position: sticky;
  top: 0;
  padding-right: 22px !important;
  user-select: none;
}

.contracts-columns-adjustable td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contracts-columns-adjustable .contract-title-cell {
  max-width: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contracts-columns-adjustable .action-col {
  width: auto !important;
}

.contracts-columns-adjustable .contract-parties-cell,
.contracts-columns-adjustable .contract-loc-cell {
  max-width: none !important;
  overflow: hidden;
  min-width: 0;
  white-space: normal;
}

.contracts-columns-adjustable .contract-party-issuer,
.contracts-columns-adjustable .contract-party-acceptor,
.contracts-columns-adjustable .contract-loc-start,
.contracts-columns-adjustable .contract-loc-end,
.contracts-columns-adjustable .contract-loc-single {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.contracts-columns-adjustable .contract-primary-price,
.contracts-columns-adjustable .contract-estimate-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

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

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

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

table.contracts-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;
}

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