/* 부품 table — 표 — 빈 상태는 state 부품. 묶음: templates/ui/table.html · static/ui/parts/table/table.css · table.md.
   바탕(static/ui/base/ui.css)의 변수 · 단추 클래스에 기댄다. CDN·의존 없음. */
.nx-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nx-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.nx-table th, .nx-table td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); vertical-align: top;
                             overflow-wrap: break-word; }  /* 바탕의 anywhere 는 칸 최소 폭을 한 글자로 만든다 — 표는 단어를 지키고 넘치면 옆으로 민다 */
.nx-table th { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); white-space: nowrap; }
.nx-table tr:last-child td { border-bottom: 0; }
.nx-table tbody tr:hover { background: var(--surface-2); }
.nx-table .nx-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nx-table .nx-nowrap { white-space: nowrap; }
.nx-table .nx-act { text-align: right; white-space: nowrap; width: 1%; }
.nx-table td.nx-table-empty { padding: 0; }
/* 남은 폭을 차지하는 칸(이름 등) — 좁아도 글이 한 글자씩 꺾이지 않게 최소 폭 */
.nx-table .nx-grow { width: 100%; min-width: 10em; }
/* 좁은 화면(≤600px)에서 숨기는 칸(날짜 같은 덧정보) */
@media (max-width: 600px) { .nx-table .nx-hide-sm { display: none; } }
/* 동작 칸(act) — 단추를 한 줄로 나란히(칸 폭 1% 라도 세로로 쌓지 않는다) */
.nx-table .nx-act .nx-row { flex-wrap: nowrap; justify-content: flex-end; }
.nx-table .nx-act form { margin: 0; display: inline-flex; }
/* 칸 안 글 단추(이름 → 창 열기) — 단추 여백 없이 옆 칸 글과 같은 높이 · 같은 크기로, 누를 수 있게 강조색 */
.nx-table td .nx-btn-ghost { min-height: 0; padding: 0; border: 0; font-size: inherit; line-height: inherit; vertical-align: baseline;
                             color: var(--acc); background: none; text-align: left; white-space: inherit; }
.nx-table td .nx-btn-ghost:hover { background: none; text-decoration: underline; }
