/* Chart Overlays: position overlay labels, order overlay labels, drag guide */

/* ─── Chart Position Overlay ──────────────────────────────────────── */

.chart-position-overlay {
  position: absolute;
  inset: 0 0 0 var(--chart-dock-width);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.chart-pos-label {
  position: absolute;
  display: inline-flex;
  align-items: stretch;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(47, 180, 99, 0.85);
  color: #fff;
  font-family: var(--mono, monospace);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: auto;
  transform: translateY(-50%);
}

.chart-pos-label.short {
  background: rgba(255, 93, 115, 0.85);
}

.chart-pos-label-info {
  display: flex;
  align-items: center;
  padding: 0 8px;
  line-height: 1;
  cursor: default;
  user-select: none;
}

.chart-pos-x-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.1s;
}

.chart-pos-x-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* ─── Chart Order Overlay ────────────────────────────────────────── */

.chart-order-overlay {
  position: absolute;
  inset: 0 0 0 var(--chart-dock-width);
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.chart-ord-label {
  position: absolute;
  display: inline-flex;
  align-items: stretch;
  height: 24px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(47, 180, 99, 0.55);
  color: #fff;
  font-family: var(--mono, monospace);
  font-size: 11px;
  white-space: nowrap;
  pointer-events: auto;
  transform: translateY(-50%);
  cursor: ns-resize;
  user-select: none;
  transition: box-shadow 0.15s;
}

.chart-ord-label.sell {
  background: rgba(255, 93, 115, 0.55);
}

.chart-ord-label.dragging {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  z-index: 10;
  opacity: 1;
}

.chart-ord-label-info {
  display: flex;
  align-items: center;
  padding: 0 8px;
  line-height: 1;
}

.chart-ord-x-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.1s;
}

.chart-ord-x-btn:hover {
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

.chart-ord-drag-guide {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transform: translateY(-50%);
}
