/* ==========================================================================
   assets/css/column-resize.css
   Contract: SALES-COLRESIZE-v1 (ErpColumnResize styles)
   ========================================================================== */

/* Grip handle base styling */
.erp-col-grip {
  position: absolute;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: transparent;
}

.erp-col-grip::after {
  content: '';
  width: 2px;
  height: 65%;
  background: var(--border, #d2d2d7);
  border-radius: 1px;
  transition: background-color 0.15s ease, width 0.15s ease;
  pointer-events: none;
}

.erp-col-grip:hover::after,
.erp-col-grip:focus-visible::after,
.erp-col-grip.is-dragging::after {
  background: var(--accent, #2b5ea3);
  width: 3px;
}

.erp-col-grip:focus-visible {
  outline: 2px solid var(--accent, #2b5ea3);
  outline-offset: -1px;
  border-radius: 2px;
}

/* Parent header item relative positioning guard */
th.has-erp-col-grip,
.erp-col-cell.has-erp-col-grip {
  position: relative !important;
}

/* Horizontal overflow protection for resized grids/tables */
.erp-col-resize-container {
  overflow-x: auto !important;
}

/* Active resizing state */
body.is-erp-column-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
