/* 관리자 화면 — 거래 내역 · 실행 로그 정리 (2026-10-03)
   예전에는 두 카드가 .g2 2열로 나란히 있어서 표가 반쪽 폭에 갇혔다. 시각("13시 26분 13초")과
   Gate 실현손익이 여러 줄로 꺾여 한 거래가 3~4줄을 차지했다.
   · 실행 로그 카드가 들어 있는 .g2(= 관리자 화면)만 1열로 바꿔 로그를 거래 내역 아래로 내린다.
     일반 사용자 화면은 이 칸에 로그가 없어(class 없음) 영향이 없다.
   · 거래 내역: 글자를 줄이고 줄바꿈을 막아 한 거래 = 한 줄. Gate 손익은 <br> 대신 같은 줄에 붙인다.
   · 실행 로그: 글자·줄간격을 줄이고, 줄이 넘치면 시각 아래가 아니라 메시지 들여쓰기로 이어 쓴다.
   번들(src/components)을 다시 빌드할 수 없어 CSS 만으로 한다 — 원본: Work/layout-v1.css */

.g2:has(> .log-card){grid-template-columns:1fr}

/* ── 거래 내역 ── */
.g2:has(> .log-card) .hist-scroll{max-height:560px}
.g2:has(> .log-card) .hist-scroll .tbl{font-size:10.5px;font-variant-numeric:tabular-nums}
.g2:has(> .log-card) .hist-scroll .tbl th,
.g2:has(> .log-card) .hist-scroll .tbl td{padding:3px 6px;white-space:nowrap;line-height:1.35}
.g2:has(> .log-card) .hist-scroll .tbl th{position:sticky;top:0;z-index:1;background:var(--bg2);font-size:9.5px}
.g2:has(> .log-card) .hist-scroll .tbl tbody tr:hover td{background:rgba(127,140,160,.08)}
/* 실현수익 칸의 "Gate +172.07 (차이 +0.54)" — 다음 줄 대신 같은 줄 */
.g2:has(> .log-card) .hist-scroll .tbl td br{display:none}
.g2:has(> .log-card) .hist-scroll .tbl td br + span{margin-left:5px}
/* 롱/숏 배지·버튼도 행 높이에 맞춘다 */
.g2:has(> .log-card) .hist-scroll .pill{padding:0 6px;font-size:9.5px;line-height:15px}
.g2:has(> .log-card) .hist-scroll .btn-sm{padding:1px 6px;font-size:9.5px;min-height:0}

/* ── 실행 로그 ── */
.g2:has(> .log-card) .log-box{font-size:10px;line-height:1.4;max-height:320px;min-height:140px}
/* 시각("13:26:12") 폭만큼 내어쓰기 — 넘친 줄이 시각 칸 아래로 들어가지 않게 */
.g2:has(> .log-card) .log-box > div{padding:1px 0 1px 5em;text-indent:-5em;border-bottom:1px solid rgba(127,140,160,.08)}
