/* Roadsign Drawings — price line button/menu, drawing grid/forms, price line form/list */

.chart-price-line-shell {
  position: relative;
  flex: 0 0 auto;
  z-index: 14;
}

.chart-drawing-shell {
  position: relative;
  flex: 0 0 auto;
  z-index: 14;
}

.chart-price-line-btn {
  min-width: 80px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2f7;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.chart-price-line-btn.active,

.chart-price-line-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.chart-price-line-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 332px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(19, 23, 32, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  padding: 12px;
  z-index: 21;
  display: none;
  gap: 12px;
}

.chart-drawing-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(19, 23, 32, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  padding: 12px;
  z-index: 21;
  display: none;
  gap: 12px;
}

.chart-price-line-menu.visible {
  display: grid;
}

.chart-drawing-menu.visible {
  display: grid;
}

.chart-drawing-grid {
  display: grid;
  gap: 8px;
}

.chart-drawing-anchor-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.chart-drawing-anchor-row strong {
  font-size: 11px;
  color: #eef2f7;
}

.chart-drawing-anchor-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-drawing-field.hidden,

.chart-drawing-anchor-group.hidden {
  display: none;
}

.chart-drawing-selection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.chart-drawing-selection-row span {
  color: var(--muted);
  font-size: 11px;
}

.chart-price-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-price-line-head strong {
  font-size: 12px;
  letter-spacing: 0.01em;
}

.chart-price-line-head span {
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
}

.chart-price-line-quick {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chart-price-line-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  gap: 8px;
}

.chart-price-line-form input,

.chart-price-line-form select {
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: #eef2f7;
  padding: 0 11px;
  min-width: 0;
}

.chart-price-line-form select {
  appearance: none;
}

.chart-price-line-submit {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 61, 0.40);
  background: rgba(245, 184, 61, 0.10);
  color: #ffe1a0;
  cursor: pointer;
  white-space: nowrap;
}

.chart-price-line-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.chart-price-line-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart-drawing-row {
  cursor: pointer;
}

.chart-drawing-row.selected {
  border-color: rgba(245, 184, 61, 0.55);
  background: rgba(245, 184, 61, 0.12);
  box-shadow: inset 0 0 0 1px rgba(245, 184, 61, 0.18);
}

.chart-price-line-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.chart-price-line-meta strong {
  font-size: 11px;
  letter-spacing: 0.01em;
}

.chart-price-line-meta span {
  color: #eef2f7;
  font-family: var(--mono);
  font-size: 12px;
}

.chart-price-line-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.chart-price-line-status {
  color: var(--muted);
  font-size: 11px;
}

.chart-price-line-status.hit {
  color: #ffe1a0;
}

.chart-price-line-remove {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef2f7;
  height: 28px;
  padding: 0 10px;
  cursor: pointer;
}

.chart-price-line-empty {
  color: var(--muted);
  font-size: 11px;
  padding: 8px 2px 2px;
}
