/* ─── COLUMN CONFIG PANEL ─── */
.col-config-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--body);
  transition: all .18s;
  white-space: nowrap;
}

.col-config-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.col-panel {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 400;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  width: 260px;
  animation: modalIn .15s ease;
}

.col-panel.open {
  display: block;
}

.col-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: .6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.col-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  transition: background .12s;
  border: 1px solid transparent;
}

.col-item:hover {
  background: var(--bg);
}

.col-item.dragging {
  opacity: .4;
}

.col-item.drag-over {
  border-color: var(--accent);
  background: var(--accent-lt);
}

.col-drag-handle {
  color: var(--text3);
  font-size: 14px;
  cursor: grab;
  flex-shrink: 0;
}

.col-label {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.col-toggle {
  width: 34px;
  height: 18px;
  border-radius: 20px;
  background: var(--border2);
  border: none;
  cursor: pointer;
  position: relative;
  transition: background .18s;
  flex-shrink: 0;
}

.col-toggle.on {
  background: var(--accent);
}

.col-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}

.col-toggle.on::after {
  left: 18px;
}

.col-panel-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.col-panel-wrap {
  position: relative;
}

/* ─── SORTABLE COLUMNS ─── */
#panel-equip thead th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

#panel-equip thead th.sortable:hover {
  color: var(--accent);
}

#panel-equip thead th .sort-icon {
  display: inline-block;
  margin-left: 5px;
  font-size: 10px;
  color: var(--text3);
  transition: color .15s;
}

#panel-equip thead th.sort-asc .sort-icon,
#panel-equip thead th.sort-desc .sort-icon {
  color: var(--accent);
}
