/* Ground 표 공통 규칙 (table-cols.js, 결정 11-196). 표마다의 색·줄 간격·글자 등 모양은 각 화면 것을 그대로 쓰고, 아래 네 가지만 같게 한다. */

/* 1. 머리글 제목은 가운데 (숫자 칸·체크 칸 포함) */
thead > tr > th { text-align: center !important; }

/* 2·3. 경계 손잡이: 평소엔 보이지 않고, 머리글에 올리면 옅은 표시, 경계에 올리면 표 높이만큼 강조선 */
table.gt > thead > tr > th.gt-rel { position: relative; }
.gt-grip { position: absolute; top: 0; right: -5px; width: 10px; height: 100%; cursor: ew-resize; z-index: 3; touch-action: none; outline: none; }
.gt-grip::before { content: ""; position: absolute; left: 4.5px; top: 28%; height: 44%; width: 1px; background: var(--line-strong, #d1d1d6); opacity: 0; transition: opacity .12s; pointer-events: none; }
thead:hover .gt-grip::before { opacity: 1; }
.gt-grip::after { content: ""; position: absolute; left: 4px; top: 0; width: 2px; height: var(--gt-h, 100%); background: var(--accent, #0a84ff); opacity: 0; pointer-events: none; }
thead .gt-grip:hover::before, thead .gt-grip.on::before { opacity: 0; }
.gt-grip:hover::after, .gt-grip.on::after, .gt-grip:focus-visible::after { opacity: 1; }
thead > tr > th:last-child > .gt-grip { right: 0; }              /* 표 오른쪽 끝의 손잡이는 표 안쪽에 */
body.gt-drag, body.gt-drag * { cursor: ew-resize !important; user-select: none !important; }

/* 너비를 정한 표: 좁아진 칸의 긴 글은 줄바꿈 (한 줄 칸은 …) — 칸 안에 떠 있는 선택 창(색 견본 등)이 있는 칸은 자르지 않는다 */
table.gt-fixed td { overflow-wrap: anywhere; }
table.gt-fixed td:not(:has(.cp, .pop, .menu, .sugg, .dd, select)) { overflow: hidden; text-overflow: ellipsis; }
.gt-scroll { overflow-x: auto; max-width: 100%; }
