/* 호가 줄맞춤 — 헤더·행·체결 동일 그리드, 숫자열 고정폭 */
.cpf-orderbook-panel .cpf-ob-cols,
.cpf-orderbook-panel .cpf-orderbook-head,
.cpf-orderbook-panel .cpf-orderbook-row,
.cpf-orderbook-panel .cpf-ob-trades-list > *,
.cpf-orderbook-panel .cpf-trades-head,
.cpf-orderbook-panel .cpf-trade-row {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) 64px 64px;
  column-gap: 8px;
  align-items: center;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.cpf-orderbook-panel .cpf-ob-cols,
.cpf-orderbook-panel .cpf-orderbook-head,
.cpf-orderbook-panel .cpf-trades-head {
  height: 20px;
  min-height: 20px;
  max-height: 20px;
  overflow: hidden;
  font-size: 11px;
  line-height: 20px;
}
.cpf-orderbook-panel .cpf-ob-cols > span,
.cpf-orderbook-panel .cpf-orderbook-head > span,
.cpf-orderbook-panel .cpf-orderbook-row > span,
.cpf-orderbook-panel .cpf-ob-trades-list > * > span,
.cpf-orderbook-panel .cpf-trade-row > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 20px;
}
.cpf-orderbook-panel .cpf-ob-book .cpf-ob-cols > span:nth-child(2),
.cpf-orderbook-panel .cpf-ob-book .cpf-ob-cols > span:nth-child(3),
.cpf-orderbook-panel .cpf-ob-trades .cpf-ob-cols > span:nth-child(2),
.cpf-orderbook-panel .cpf-ob-trades .cpf-ob-cols > span:nth-child(3) {
  font-size: 0;
}
.cpf-orderbook-panel .cpf-ob-book .cpf-ob-cols > span:nth-child(2)::before,
.cpf-orderbook-panel .cpf-ob-trades .cpf-ob-cols > span:nth-child(2)::before {
  content: "수량";
  font-size: 11px;
  line-height: 20px;
}
.cpf-orderbook-panel .cpf-ob-book .cpf-ob-cols > span:nth-child(3)::before {
  content: "누적";
  font-size: 11px;
  line-height: 20px;
}
.cpf-orderbook-panel .cpf-ob-trades .cpf-ob-cols > span:nth-child(3)::before {
  content: "시간";
  font-size: 11px;
  line-height: 20px;
}
.cpf-orderbook-panel .cpf-ob-cols > span:first-child,
.cpf-orderbook-panel .cpf-orderbook-head > span:first-child,
.cpf-orderbook-panel .cpf-orderbook-row > span:first-child,
.cpf-orderbook-panel .cpf-ob-trades-list > * > span:first-child,
.cpf-orderbook-panel .cpf-trade-row > span:first-child {
  text-align: left;
}
.cpf-orderbook-panel .cpf-ob-cols > span:not(:first-child),
.cpf-orderbook-panel .cpf-orderbook-head > span:not(:first-child),
.cpf-orderbook-panel .cpf-orderbook-row > span:not(:first-child),
.cpf-orderbook-panel .cpf-ob-trades-list > * > span:not(:first-child),
.cpf-orderbook-panel .cpf-trade-row > span:not(:first-child) {
  text-align: right;
}

/* 매매점검 — 터미널 상단에서 숨기지 않고 일반 메뉴처럼 */
.cpf-tools-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--cpf-line, #2B3139);
  border-radius: 2px;
  background: transparent;
  color: var(--cpf-ink, #F4F5F7);
  font-size: 13px;
  font-weight: 600;
  line-height: 32px;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}
.cpf-tools-link:hover {
  border-color: var(--cpf-brand, #24496f);
  color: var(--cpf-brand, #7ea3c7);
}
@media (max-width: 23.375rem) {
  .cpf-market-bar-end a[href="/tools/"] { display: inline-flex !important; }
}
