/* columns.css — resizable grid columns (colwidths.js). The widths themselves are inline on the
   table's <colgroup>; this file is the drag handle, the auto-fit measuring state, and the footer
   control. The header cells are position:sticky, so each one anchors its own handle. */

/* The handle: the right edge of every data column header. Hover shows a thin bar. */
.bc-colw-handle{position:absolute;top:0;right:0;bottom:0;width:9px;cursor:col-resize;touch-action:none;z-index:1}
.bc-colw-handle::after{content:"";position:absolute;top:20%;bottom:20%;right:3px;width:2px;border-radius:1px;
  background:transparent;transition:background .12s}
.bc-grid thead th:hover .bc-colw-handle::after{background:rgba(128,128,128,.45)}
.bc-colw-handle:hover::after,.bc-colw-handle.bc-colw-active::after{background:#1E7A4C}
/* Fingers need a wider target and can't hover, so the bar is always faintly there. */
@media (pointer:coarse){
  .bc-colw-handle{width:18px}
  .bc-colw-handle::after{right:6px;background:rgba(128,128,128,.3)}
}
.bc-colw-dragging,.bc-colw-dragging *{cursor:col-resize!important;-webkit-user-select:none;user-select:none}

/* Auto-fit (double-click a handle) measures every cell on one line. */
.bc-colw-measure th,.bc-colw-measure td{white-space:nowrap!important}

/* A picklist cell never pushes past its column. */
.bc-grid tbody td .bc-select{max-width:100%;box-sizing:border-box}
/* A lazy select's measured width (grid-body.js), on screen only: printed, it holds its full list and sizes to it. */
@media not print{.bc-grid tbody td .bc-select[style*="--bc-sel-w"]{width:var(--bc-sel-w)}}

/* Footer control: "Save widths as default" · "Reset to default". */
.bc-gridfoot .bc-colw-ctl{float:right;display:inline-flex;gap:14px}
.bc-gridfoot .bc-colw-ctl[hidden],.bc-colw-btn[hidden]{display:none}
.bc-colw-btn{border:0;background:none;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;
  text-decoration:underline;text-underline-offset:2px}
.bc-colw-btn:hover{opacity:1;color:#1E7A4C}
.bc-colw-btn:disabled{opacity:.5;cursor:default}
