/* 「자금 현황」 전용 — .screen-funds 아래로 가둔다(상세 창은 body 에 붙어서 .fx-side 로 가둔다) */
.screen-funds .fx-lead { margin: 0; font-size: var(--fs-14); color: var(--ink-2); }
.screen-funds .fx-nowrap { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.screen-funds .tbl td.fx-strong { font-weight: 600; color: var(--ink); }

/* 계정별 흐름 */
.screen-funds .fx-acc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-6); align-items: start; }
.screen-funds .fx-flow { display: flex; flex-direction: column; gap: var(--sp-4); }
.screen-funds .fx-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-12); color: var(--ink-2); }
.screen-funds .fx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.screen-funds .fx-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.screen-funds .fx-acc { display: flex; flex-direction: column; gap: 4px; }
.screen-funds .fx-acc-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; font-size: var(--fs-14); }
.screen-funds .fx-acc-head b { font-weight: 600; }
.screen-funds .fx-moves { display: inline-flex; gap: var(--sp-4); font-size: var(--fs-13); color: var(--muted); }
.screen-funds .fx-bar-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 64px; gap: var(--sp-2); align-items: center; font-size: var(--fs-13); }
.screen-funds .fx-bar-lbl { color: var(--muted); font-size: var(--fs-12); }
.screen-funds .fx-bar-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.screen-funds .fx-bar-row .fx-bal { color: var(--ink); font-weight: 600; }
.screen-funds .fx-track { display: flex; height: 12px; background: var(--paper); border-radius: 2px; overflow: hidden; }
.screen-funds .fx-track i { display: block; height: 100%; }
/* 지출에 파랑을 쓰지 않는다 — 남은 돈은 흐린 회청, 나간 자리는 빈 점선 칸, 들어온 돈은 먹. 방향은 ▲▼ 글자로 */
.screen-funds .fx-keep { background: var(--c-series-3); }
.screen-funds .fx-dec { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.screen-funds .fx-inc { background: var(--ink); }
.screen-funds .fx-moves b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.screen-funds .fx-line text.fx-halo { paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }

/* 입출금 거르기 */
.screen-funds .fx-filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }
.screen-funds .fx-search {
  flex: 1 1 220px; max-width: 320px; min-height: 32px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--surface); font-size: var(--fs-13);
}
.screen-funds .fx-search:hover { border-color: var(--line-strong); }
.screen-funds .fx-chips { gap: var(--sp-2); }

@media (max-width: 1023px) {
  .screen-funds .fx-acc-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .screen-funds .fx-search { max-width: none; flex-basis: 100%; }
  .screen-funds .fx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
}

/* 입출금 상세(오른쪽 창) */
.fx-side .fx-side-amt { display: flex; align-items: baseline; gap: var(--sp-2); }
.fx-side .fx-side-amt b { font-size: var(--fs-28); font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-side .fx-dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 6px var(--sp-3); margin: 0; font-size: var(--fs-14); }
.fx-side .fx-dl dt { color: var(--muted); }
.fx-side .fx-dl dd { margin: 0; }
.fx-side .fx-side-h { margin: var(--sp-3) 0 0; font-size: var(--fs-14); font-weight: 600; }
.fx-side p { margin: 0; font-size: var(--fs-13); }
.screen-funds .fx-aside { font-size: var(--fs-12); color: var(--muted); white-space: nowrap; }

/* 고객 요구 23 — 증가·감소 숫자를 누르면 아래 입출금 내역으로 */
.screen-funds .fx-move { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.screen-funds .fx-move:hover { text-decoration-color: var(--ink); }
.screen-funds .fx-move:focus-visible { outline: 2px solid var(--filament); outline-offset: 2px; border-radius: 2px; }
.screen-funds .fx-move-off { color: var(--muted); }
.screen-funds #fx-txns { scroll-margin-top: 120px; }
.screen-funds #fx-txns:focus { outline: none; }
