/* ColumnPicker — dropdown menu + per-page items (Phase D5).
 *
 * The picker is a small absolutely-positioned panel that
 * drops down from the "Columns" button in the page toolbar.
 * Each row is a label-wrapped checkbox so clicking the text
 * or the box itself toggles the column.
 *
 * Tokens come from heyron.css (--surface, --border, --radius,
 * --surface-2). Keeping the styles in a separate file means
 * the picker is opt-in — pages that don't load this CSS still
 * render fine, they just don't get the menu visuals.
 */

.column-picker-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  z-index: 100;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.column-picker-menu__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 4px;
  user-select: none;
}

.column-picker-menu__item:hover {
  background: var(--surface-2);
}

.column-picker-menu__item input[type='checkbox'] {
  margin: 0;
  cursor: pointer;
}

/* When a column is hidden, applyHidden() forces display:none
 * on the [data-col] element directly. No class needed. */
