/* 부품조회 화면 스타일 (독립 실행, 부품-#178 — 옛 hr/static/view_etc1.css 그대로). 클래스는 전부 etc- 로 시작한다. */

/* .hidden 이 이기게 하는 짝 규칙. */
#etc1View.hidden { display: none; }

.etc-body {
  padding: 8px 12px 12px;
}

/* 갈래 줄 (부품-#34) - 근태 탭의 갈래와 같은 모양 */
.etc-subtabs {
  max-width: 360px;                 /* 갈래 줄은 왼쪽 판 폭 안에서 접힌다 — 넘쳐 뷰어 단추 위로 가지 않게 (2026-10-01) */
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 6px 12px 0;              /* 찾는 줄과 **왼쪽·오른쪽을 맞춘다** — 16px 이라 4px 어긋나 있었다 (2026-09-30 "오와열 맞춰") */
}
.etc-subtab {
  border: 1px solid var(--line, #d7dbe0);
  background: var(--surface, #fff);
  padding: 4px 8px;                 /* 갈래가 넷이 되며 줄였다 — **판 폭(360px)은 그대로 두고 단추를 줄인다** (대표님 2026-10-01 "컨테이너 폭을 늘리면 어떡해 … 버튼크기를 줄여야지"). 뷰어가 핵심이라 오른쪽을 깎지 않는다 */
  border-radius: 12px;
  font: inherit;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted, #6b7280);
  cursor: pointer;
}
.etc-subtabs-br { flex: 0 0 100%; height: 0; }   /* 갈래 줄을 **일부러** 두 줄로: MAKER 둘 / OTHER 둘 (대표님 2026-10-01) */
.etc-subtab:hover { border-color: var(--line-strong, #b9c0c8); }
.etc-subtab.etc-on { background: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); color: #fff; font-weight: 600; }
.etc-pane.hidden { display: none; }
.etc-tree-head { margin: 12px 0 4px; font-weight: 600; }

/* 위아래 빈 공간 없이 (대표님 2026-09-30). `center` 였을 때는 툴바 키를 TVH 칸(56px)이
   정하는데 Search(32px)가 그 한가운데 떠서 위아래로 12px 씩 비었다. 둘 다 **위에 붙인다**. */
.etc-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 2px;
}
.etc-search {
  flex: 0 1 420px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 0;                   /* 각지게 — 이 화면은 다 각졌다(CMD 결, 대표님 2026-09-28) */
  font-size: 14px;
  background: var(--card-bg);
  color: inherit;
}
.etc-count {
  white-space: nowrap;                 /* "100 / 35,978" 이 두 줄로 꺾이지 않게 (대표님 2026-09-28) */
  color: var(--text-muted, #6b7280);
  font-size: 11px;                     /* 단위 글자는 11px (CONVENTIONS 8절). 나무 머리의 `N files` 와 같은 크기 — 13px 이라 탭마다 달라 보였다 */
}

.etc-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  font-size: 13px;
}
.etc-table th {
  background: var(--header-bg);
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  white-space: nowrap;
}
.etc-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.etc-table tbody tr:hover { background: var(--header-bg); }
.etc-c-code { width: 140px; white-space: nowrap; }
.etc-c-model { width: 220px; white-space: nowrap; }
/* 발췌 메이커 칸 · 상세조회 판 (대표님 2026-09-28 "maker, model" · "메이커 칸도 넣어줘") */
.etc-c-mk { font-size: 11px; line-height: 1.3; color: var(--text-muted, #6b7280); margin-top: 1px; }   /* 품목코드 밑 작은 메이커 */
/* [Filter] 는 **파란 단추** (대표님 2026-09-28) — 활성 갈래(.etc-subtab.etc-on)와 같은 파랑.
   조건이 걸려 있으면 더 진하게 해 "지금 걸러 보는 중" 을 한눈에 알린다. */
.filter-btn.etc-edit-btn { white-space: nowrap; flex: 0 0 auto; align-self: flex-start; height: 32px; padding: 0 14px;   /* 좁아져도 안 찌그러진다 */
                display: inline-flex; align-items: center; justify-content: center;   /* 글자를 정중앙에 — 단추 기본 정렬은 글꼴에 따라 떠 보인다 */
                border-radius: 0; font-size: 13px; line-height: 1;
                background: var(--card-bg, #fff); border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); font-weight: 600; }
.filter-btn.etc-edit-btn:hover { background: #eaf1fb; border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); }
/* **조건이 걸렸을 때만 채운다** — 규격 칩(.etc-spec-chip)과 같은 결이다: 평소엔 테두리, 켜지면 채움.
   꽉 찬 파랑을 늘 두면 옆의 옅은 서치바와 따로 논다 (대표님 2026-09-28 "색깔 좀 등신같지않아?"). */
.filter-btn.etc-edit-btn.on { background: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); color: #fff; }
/* 도구 줄 오른쪽 — TVH 셋(배지·[TVH 연결]·[카탈로그 동기화])과 진척 글을 **작게 줄여 ECOUNT SYNC 옆에 몰아 둔다**
   (대표님 2026-09-28 "셋 다 축소시켜서 ecount sync 옆으로 짱박아놔"). 자주 누르는 것이 아니라 상태를 알리는 자리다.
   `margin-left: auto` 를 맨 앞(배지)에 걸면 그 뒤가 통째로 오른쪽에 붙는다. */
.etc-toolbar .etc-tvh-box { margin-left: auto; }        /* 세 줄 칸이 통째로 오른쪽에 붙는다 (부품-#394) */
.etc-toolbar .etc-tvh-badge, .etc-toolbar #etc1___tvhConnect, .etc-toolbar #etc1___tvhSync,
.etc-toolbar #etc1___ecSync, .etc-toolbar .etc-sync-status {
  font-size: 11px; line-height: 1.25; white-space: nowrap; flex: 0 0 auto; }
/* 눌러 담은 치수 (대표님 2026-09-30 "컨테이너 압축") — 규약 8-1 의 칩과 같은 20px 로 선다 */
.etc-toolbar #etc1___tvhConnect, .etc-toolbar #etc1___tvhSync, .etc-toolbar #etc1___ecSync {
  height: 18px; padding: 0 5px; display: inline-flex; align-items: center; }
.etc-toolbar .etc-sync-status { max-width: 300px; overflow: hidden; text-overflow: ellipsis;
  color: var(--text-muted, #6b7280); }
/* 배지는 짧게 쓰되(parts.js loadTvhBadge) 칸도 넉넉히 — 잘려서 못 읽던 것 (대표님 2026-09-28) */
.etc-toolbar .etc-tvh-badge { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

/* 주요부품 (공용 노출) — 톱니, 켜지면 **노란불** (대표님 2026-09-28).
   ★(개인)과 **같은 판·같은 자리·같은 노랑**으로 맞춘다 — 나란히 있는 두 표시가 크기·색이 다르면 눈에 거슬린다
   (대표님 "별이랑 기어랑 색상, 크기, 위치 통일성이 없잖아"). 차이는 **모양뿐**이다. */
.etc-major { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
             padding: 0; border: 0; background: transparent; cursor: pointer; vertical-align: middle;
             line-height: 1; margin: 0 4px 0 -1px; color: var(--text-muted, #6b7280); flex-shrink: 0; }   /* ★ 바로 옆에 붙인다 */
.etc-major[disabled] { cursor: default; }
.etc-major:not([disabled]):hover { color: #f5c400; }
.etc-major .etc-major-ico { width: 16px; height: 16px; display: block; }
.etc-major .etc-major-ico path, .etc-major .etc-major-ico circle {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.etc-major.is-on { color: #f5c400; }
.etc-major.is-on .etc-major-ico path { fill: #ffd84d; stroke: #d9a300; }   /* 테두리를 한 단 진하게 — 이빨이 뭉개지지 않게 */
.etc-major.is-on .etc-major-ico circle { fill: #fff; stroke: #f5c400; }   /* 가운데 구멍은 비워 둬야 톱니로 읽힌다 */

/* ── 필터 상자 — 규약 `docs/검색과필터.md` 8-1 (대표님 2026-09-30 "filter 색상이나 모양, 방식 전부 통일화").
   이름·치수를 모듈 건너 같게 쓴다. **색은 토큰만** — 값을 직접 적으면 그 모듈의 다른 화면과 따로 논다.
   모서리 2px(CMD 풍이라 둥글리지 않는다) · 칩 높이 20px · 글자 11px · 좌우 8px. */
.filter-box { border: 1px solid var(--border); border-top: 0; background: var(--card-bg, #fff);
              padding: 6px 10px 8px; margin: -6px 0 8px; border-radius: 2px; }
.filter-row { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.filter-row.hidden { display: none; }        /*  가 flex 라  을 이긴다 — 같은 세기로 눌러 준다 */
.filter-name { flex: 0 0 52px; text-align: right; color: var(--text-muted, #6b7280); font-size: 11px; }
.filter-chips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 3px; }
.filter-chip { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px;
               font: inherit; font-size: 11px; line-height: 18px; border-radius: 2px; cursor: pointer;
               border: 1px solid var(--border); background: var(--bg, #fff); color: var(--text, #1f2937); }
.filter-chip:hover { border-color: var(--primary, var(--link, #1a5fb4)); }
/* **켜짐을 색 하나로만 알리지 않는다** — 테두리와 바탕이 함께 바뀐다 (규약 8-1) */
.filter-chip.on { border-color: var(--primary, var(--link, #1a5fb4));
                  background: var(--primary, var(--link, #1a5fb4)); color: #fff; }
.filter-n { opacity: .65; }
/* 딸린 갈래 (규약 검색과필터 8-2) — 위엣것을 고른 뒤에만 선다. 한 칸 들여쓰고 이름 앞에 `▸` */
.filter-chip.sub { margin-left: 10px; }
.filter-foot { display: flex; gap: 8px; align-items: center; padding: 4px 0 0; }
body.is-mobile .filter-box { margin: 0 0 6px; }
.etc-c-ko { width: 160px; }                                /* 한글이름 (부품-#208) */
.etc-c-rem { width: 180px; color: var(--text-muted, #6b7280); }   /* 코멘트 */
/* 부품리스트 표 (부품-#246): 열 폭 고정 — 규격(모델 수십 개)이 표를 옆으로 밀어 품목명이 4줄로 접히고 가로 스크롤이 생기던 것.
   품목명은 접어도 되고, 한글이름·코멘트·규격은 한 줄 + 말줄임(전문은 title). */
.etc-plist { table-layout: fixed; }
.etc-plist .etc-c-code { width: 110px; }
.etc-plist .etc-c-ko { width: 15%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etc-plist .etc-c-rem { width: 15%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 한글이름·코멘트 바로 고치기 (2026-09-21): 상자는 평소 테두리 없이 글자처럼, 포커스·값 바뀜에 테두리, 오른쪽 끝 [저장] */
.etc-inline { display: flex; align-items: center; gap: 4px; width: 100%; }
.etc-inline-in { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13px; padding: 2px 4px; border: 1px solid transparent; border-radius: 0; background: transparent; color: inherit; }
.etc-inline-in:hover { border-color: var(--border, #d0d7de); }
.etc-inline-in:focus { outline: none; border-color: var(--link, #1a5fb4); background: var(--card-bg, #fff); }
/* **찾는 칸의 포커스 모양을 정해 둔다** (대표님 2026-09-30 "셋다 묘하게 다른 이유가 뭐냐").
   안 정해 두면 브라우저 기본 링(검고 두꺼운 테두리)이 나온다 — 본문검색 칸은 탭을 열 때 자동으로
   포커스를 받아서, 치수가 똑같은데도 Parts 쪽과 "묘하게 달라" 보였다. 집 결(파란 테두리)로 맞춘다. */
.etc-search:focus, .etc-serial-in:focus { outline: none; border-color: var(--link, #1a5fb4); }
.etc-inline-save { flex: 0 0 auto; font: inherit; font-size: 12px; padding: 1px 8px; color: #fff; background: var(--link, #1a5fb4); border: 1px solid var(--link, #1a5fb4); border-radius: 0; cursor: pointer; }
.etc-inline-save.hidden { display: none; }
.etc-inline-saved .etc-inline-in { border-color: #2e8b57; }
.etc-c-rem .etc-inline-in { color: var(--text-muted, #6b7280); }
.etc-plist .etc-c-model { width: 28%; overflow: hidden; text-overflow: ellipsis; }
.etc-plist .etc-c-btn { width: 96px; }
.etc-plist th:nth-child(2), .etc-plist td:nth-child(2) { width: auto; }
.etc-row-edit .etc-edit-input { width: 100%; box-sizing: border-box; }
.etc-c-btn { width: 96px; text-align: right; white-space: nowrap; }

/* 줄 끝 [수정] · 편집 모드 (부품-#146). 품목코드는 잠금, 품목명만 입력칸. */
.etc-edit-btn, .etc-edit-save, .etc-edit-cancel { font: inherit; font-size: 12px; padding: 2px 10px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); cursor: pointer; border-radius: 0; }
.etc-edit-btn:hover, .etc-edit-cancel:hover { border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); }
.etc-edit-save { background: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); color: #fff; font-weight: 600; }
.etc-edit-save:disabled { opacity: .6; cursor: default; }
.etc-table tbody tr.etc-row-edit { background: var(--header-bg); }
.etc-edit-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--link, #1a5fb4); border-radius: 0; background: var(--card-bg); color: var(--text); }
.etc-lock, .etc-edited { font-size: 11px; color: var(--text-muted, #6b7280); margin-left: 4px; }
.etc-muted { color: var(--text-muted, #6b7280); }

/* TVH 연결 배지 (부품-#155) */
/* TVH 칸 — 진행률 / 단추 / 연결상태 세 줄 (부품-#394) */
/* **한 줄로 세운다** (대표님 2026-09-30 "아직도 빈공간 많아 · 싱크버튼들 상단정렬로").
   세 줄일 때는 이 칸(56px)이 툴바 키를 정해서 Search(32px) 아래가 24px 비었다.
   한 줄이면 칸이 18px 이라 툴바 키를 Search 가 정한다 → 빈 공간이 없다. */
.etc-tvh-box { margin-left: auto; display: flex; flex-direction: row; flex-wrap: wrap; gap: 3px;
               align-items: flex-start; align-self: flex-start; width: auto; padding: 0; }
.etc-tvh-row { display: flex; align-items: center; gap: 3px; line-height: 1; }
/* 한 줄 짜임 — 세 묶음이 옆으로 선다 (2026-09-30) */
/* 툴바 단추에 붙은 margin-left:6px 때문에 윗줄만 6px 밀려 있었다 — 두 줄의 왼쪽을 맞춘다 (대표님 2026-09-28) */
.etc-tvh-row > #etc1___tvhConnect { margin-left: 0; }    /* 187줄 ID 규칙(margin-left:6px)을 이기려면 ID 로 받아야 한다 */
.etc-tvh-row > #etc1___ecSync { margin-left: 0; }
/* 늘이지 않는다 — 제 글자만큼만 (2026-09-30 "빈공간 없도록") */
.etc-toolbar .etc-tvh-row > #etc1___ecSync,
.etc-toolbar .etc-tvh-row > .etc-tvh-badge { flex: 0 0 auto; max-width: none; }
.etc-tvh-num { font-size: 11px; white-space: nowrap; }
/* 긴 사유는 줄에 안 늘어놓는다 — 막대에 마우스를 올리면 뜬다 (대표님 2026-09-29) */
.etc-tvh-row .etc-sync-status, .etc-tvh-num { display: none; }

/* 연결 배지 = 진행률 막대 (대표님 2026-09-28 "연결됨 박스에서 진행률을 시각화").
   채운 폭이 전체 진척이고, 동기화가 도는 동안에는 빗금이 흐른다 — 숫자가 몇 분씩 안 변해도
   살아 있는지 죽었는지가 보인다. 글자는 채움 위에 올린다. */
/* inline-flex 라야 안의 채움(absolute, width %)이 제대로 계산된다 — span 그대로면 폭이 0 이 된다 */
.etc-tvh-badge { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.etc-tvh-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0;
                background: #8fb8e8; transition: width .4s ease; }          /* 진하게 — 옅으면 안 보인다 */
.etc-tvh-badge.etc-tvh-off .etc-tvh-fill { background: #e59a9a; }
/* 돌고 있을 때: ① 빗금이 흐르고 ② 맨 앞에서 빛이 지나간다. 둘 다 있어야 멀리서도 '도는 중' 이 보인다. */
.etc-tvh-fill.is-running {
  background-image: repeating-linear-gradient(135deg, #6ea3df 0 7px, #8fb8e8 7px 14px);
  animation: etc-tvh-flow .7s linear infinite; }
.etc-tvh-fill.is-running::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 14px;
  background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.85));
  animation: etc-tvh-pulse 1.4s ease-in-out infinite; }
/* 멈췄을 때 — 빨강 + 애니메이션 정지 + 천천히 깜빡인다. 멀쩡해 보이면 안 된다 (대표님 2026-09-29) */
.etc-tvh-fill.is-stopped { background: #e59a9a !important; background-image: none !important;
                           animation: etc-tvh-alarm 1.6s ease-in-out infinite !important; }
.etc-tvh-fill.is-stopped::after { content: none; }
.etc-tvh-num.is-bad { color: #c62828; font-weight: 600; }
@keyframes etc-tvh-alarm { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes etc-tvh-flow { from { background-position: 0 0; } to { background-position: 19.8px 0; } }
@keyframes etc-tvh-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.etc-tvh-label { position: relative; color: #16324f; }        /* 채움 위에 — 진한 파랑 위에서도 읽히게 */

.etc-tvh-badge { font-size: 11px; height: 18px; padding: 0 6px; border: 1px solid var(--border);
                 color: var(--text-muted, #6b7280); white-space: nowrap; }
.etc-tvh-badge:empty { display: none; }
.etc-tvh-badge.etc-tvh-on { border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); }
.etc-tvh-badge.etc-tvh-off { border-color: #c62828; color: #c62828; }
#etc1___tvhConnect, #etc1___tvhSync { margin-left: 6px; }
.etc-sync-status { font-size: 11.5px; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }   /* 동기화 진척 (부품-#181) */
#etc1___tvhModal textarea { font-family: Consolas, monospace; font-size: 12px; }

/* 부품 즐겨찾기 별 & 필터 (부품-#324) */
.etc-fav { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; cursor: pointer; vertical-align: middle; line-height: 1; margin: 0 4px; color: var(--text-muted, #6b7280); flex-shrink: 0; }
.etc-fav:hover { color: #f5c400; }
.etc-fav .etc-fav-ico { width: 16px; height: 16px; display: block; }
.etc-fav .etc-fav-ico path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.etc-fav[aria-pressed="true"], .etc-fav.is-on { color: #f5c400; }
.etc-fav[aria-pressed="true"] .etc-fav-ico path, .etc-fav.is-on .etc-fav-ico path { fill: #f5c400; stroke: #f5c400; }
.etc-fav-only { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted, #6b7280); cursor: pointer; user-select: none; white-space: nowrap; margin-left: 4px; }
.etc-fav-only input[type="checkbox"] { cursor: pointer; margin: 0; }
.etc-pn-fav { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 6px; }
.etc-fit-pop-head .etc-fav { margin: 0 4px; }

/* 판매처 단추 [TVH] (부품-#144 · #145) — 품목명 바로 뒤 파란 단추 → 줄 아래 컨테이너 하나에 TVH 정보 전부. 모서리 직각 · 이모지 없음. */
.etc-detail-btn { font: inherit; font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 7px; margin-left: 6px; border: 1px solid var(--link, #1a5fb4); background: var(--link, #1a5fb4); color: #fff; cursor: pointer; border-radius: 0; vertical-align: 1px; }
.etc-detail-btn:hover { background: #164f96; border-color: #164f96; }
.etc-detail-btn.etc-src-off { background: #c62828; border-color: #c62828; }           /* 자료 없음 → 누르면 수집 시도 (부품-#147) */
.etc-detail-btn.etc-src-off:hover { background: #a61f1f; border-color: #a61f1f; }
.etc-detail-btn.etc-src-none { background: #9aa0a6; border-color: #9aa0a6; }
/* **다른 메이커에 있음** — 회색(없음)과 갈라 둔다 (대표님 2026-09-28 "표시만 해줘").
   TVH 에 같은 번호가 있는데 메이커가 달라 자동으로 안 이은 것이다. 사람이 보고 판단할 자리라 주황. */
.etc-detail-btn.etc-src-other { background: #b36b00; border-color: #b36b00; }
.etc-detail-btn.etc-src-other:hover { background: #8f5500; border-color: #8f5500; }          /* 조회했는데 TVH 에 없음 (부품-#148) */
.etc-detail-btn.etc-src-none:hover { background: #7d838a; border-color: #7d838a; }
.etc-table tbody tr.etc-row-open { background: var(--header-bg); }
.etc-table tbody tr.etc-row-open .etc-detail-btn.etc-src-on { background: #0f3d78; border-color: #0f3d78; }   /* 열린 줄 — 빨강/회색은 색 뜻을 지킨다 */
.etc-table tbody tr.etc-detail-row:hover { background: transparent; }
.etc-detail-row > td { padding: 0; border-left: 3px solid var(--link, #1a5fb4); }
/* 규격 칩 → 적용장비 펼침 (2026-09-20 부품리스트 규격) */
.etc-spec-chip { display: inline-block; margin: 1px 3px 1px 0; padding: 0 6px; font: inherit; font-size: 12px; line-height: 18px; color: var(--link, #1a5fb4); background: #fff; border: 1px solid var(--link, #1a5fb4); border-radius: 2px; cursor: pointer; }
.etc-spec-chip:hover { background: #eaf1fb; }
.etc-pop-models .etc-spec-chip { font-size: 11.5px; line-height: 16px; }
body.viewer-only .etc-pop-models .etc-spec-chip { font-size: 13px; line-height: 20px; }
.etc-spec-chip.etc-on { color: #fff; background: #0f3d78; border-color: #0f3d78; }
.etc-plist .etc-c-model { white-space: normal; overflow: visible; text-overflow: clip; }
.etc-modal.etc-float #etc1___bookModal .etc-modal-box, #etc1___bookModal .etc-modal-box, .etc-modal.etc-float #cp___bookModal .etc-modal-box, #cp___bookModal .etc-modal-box { width: min(1100px, 96vw); height: min(88vh, 900px); left: max(24px, calc(50vw - 550px)); top: 40px; padding: 8px 10px 10px; display: flex; flex-direction: column; }   /* 책 모달 (2026-09-21) */
.etc-book-frame { flex: 1; width: 100%; border: 1px solid var(--border, #d0d7de); background: #fff; }
/* Other parts list 들여다보기 (CATP-012, 대표님 2026-10-02) — 품목명에 손을 얹으면 그 줄이 나온 자리를 오려 보여 준다.
   쪽 그림을 창보다 크게 늘려 놓고 네모 가운데를 창 가운데로 민다(`overflow:hidden` 이 자른다) — 자르기용 그림을 따로 만들지 않는다. */
.cp-peek { position: fixed; z-index: 65; width: 260px; background: var(--card-bg, #fff); border: 1px solid var(--link, #1a5fb4); box-shadow: 0 6px 18px rgba(0,0,0,.22); pointer-events: none; }
.cp-peek-win { width: 260px; height: 200px; display: flex; align-items: center; justify-content: center; background: #fff; }
/* 조립도를 보여 줄 때는 **잘라서** 보여 준다 (CATP-016) — 쪽 그림을 늘려 놓고 조립도 영역만 창에 들인다 */
.cp-peek.cp-peek-fig .cp-peek-win { display: block; position: relative; overflow: hidden; }
.cp-peek.cp-peek-fig .cp-peek-win img { position: absolute; max-width: none; max-height: none; }
.cp-peek-win img { max-width: 100%; max-height: 100%; }   /* 화면-01: 그림은 늘이지 않는다 */
.cp-peek-cap { padding: 2px 6px; font-size: 11px; border-top: 1px solid var(--border, #d0d7de); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-name[data-peek] { cursor: help; }
/* 쪽 넘기기 (규약 목록쪽넘김, 대표님 2026-10-02) — 목록 네 갈래 공용. 그리는 것은 App.Pager 한 곳 */
/* 모양도 셈도 **거래처 모듈과 같게** (ERP assets/style.css `.pager`) — 같은 규약을 쓰는 화면이다. */
.etc-pager { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; margin: 10px 0 4px; }
.etc-page-num, .etc-page-step {
  min-width: 22px; height: 22px; padding: 0 5px; border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 12px; color: var(--text, #24292f); background: transparent; border: 0; cursor: pointer;
}
.etc-page-num:hover, .etc-page-step:hover { background: var(--header-bg, #eef2f7); }
/* 지금 쪽은 **채운 동그라미** — 눌리지 않는다 */
.etc-page-num.etc-on { background: var(--link, #1a5fb4); color: #fff; border-radius: 50%; font-weight: 600; cursor: default; }
.etc-page-step { color: var(--text-muted, #6b7280); }
.etc-page-jump { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.etc-page-go { width: 52px; height: 22px; padding: 0 6px; text-align: center; font: inherit; font-size: 12px;
  border: 1px solid var(--border, #d0d7de); border-radius: 2px; }
.etc-page-go::-webkit-outer-spin-button, .etc-page-go::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.etc-page-of, .etc-page-count { font-size: 11px; color: var(--text-muted, #6b7280); }
.etc-page-count { margin-left: 10px; }
/* Other parts list 의 품목코드는 **치수가 섞여 길다** — 원영씰 `CASSETTE 121.8*150*13` 처럼 110px 를 넘겨
   품목명 위로 겹쳐 찍혔다(대표님 2026-10-02). 품번은 줄여서 보여 줄 수 없으니(…으로 끊으면 번호가 못 쓰게 된다)
   칸을 넓히고 **접어서** 받는다 — 품목명 칸이 이미 그렇게 두 줄로 접힌다. 가로 스크롤을 만들지 않는다.
   칸은 **비율로** 잡는다 — 픽셀로 박으면 좁은 창에서 품목명이 48px 로 눌려 이번엔 그쪽이 넘친다. */
#etc1___paneCatparts .etc-plist .etc-c-code { width: 18%; white-space: normal; overflow-wrap: anywhere; }
#etc1___paneCatparts .etc-plist .etc-c-ko { width: 12%; }
#etc1___paneCatparts .etc-plist .etc-c-rem { width: 12%; }
#etc1___paneCatparts .etc-plist .etc-c-model { width: 22%; white-space: normal; overflow-wrap: anywhere; }
.etc-fit-pop { position: fixed; z-index: 60; min-width: 460px; max-width: calc(100vw - 24px); max-height: 70vh; display: flex; flex-direction: column; background: var(--card-bg, #fff); border: 1px solid var(--link, #1a5fb4); border-radius: 4px; box-shadow: 0 6px 18px rgba(0,0,0,.22); font-size: 12.5px; }
.etc-fit-pop-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; background: var(--header-bg, #eef2f7); border-bottom: 1px solid #d0d7de; cursor: move; user-select: none; }
.etc-fit-pop-sp { flex: 1; }
.etc-fit-pop-x { font: inherit; font-size: 14px; line-height: 18px; width: 22px; padding: 0; background: transparent; border: 1px solid transparent; cursor: pointer; }
.etc-fit-pop-x:hover { border-color: #d0d7de; background: #fff; }
.etc-fit-pop-body { overflow: auto; padding: 6px 10px 8px; display: flex; flex-wrap: nowrap; gap: 8px 14px; align-items: flex-start; }   /* 모델 = 열, 늘 옆으로(대표님 2026-09-21 "행으로 늘리지 말고 열로, 좀 길어지더라도") — 화면보다 넓으면 컨테이너 안에서만 가로 스크롤 */
.etc-fit-col { flex: 0 0 auto; min-width: 340px; }
.etc-fit-col-head { display: flex; align-items: center; gap: 6px; padding: 2px 0 3px; border-bottom: 2px solid var(--link, #1a5fb4); margin-bottom: 2px; }
.etc-fit-pop-hint { font-size: 11px; }
.etc-fit-head { margin-bottom: 4px; }
.etc-fit-line { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; border-top: 1px dotted #d0d7de; font-size: 12px; }
.etc-fit-book { font-family: Consolas, monospace; font-size: 12px; padding: 0; line-height: 18px; color: var(--link, #1a5fb4); background: transparent; border: 0; cursor: pointer; text-align: left; }   /* 글자 링크: 구간 (책 p/n) → 비교 뷰어 */
.etc-fit-book:hover { text-decoration: underline; }
.etc-fit-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 380px; }
/* 진행 막대 (업로드 기록 머리, 세 탭 공통 — core.js App.Bars): 얇은 직각 막대 + %, 글자와 같은 줄 */
/* 뷰어 내용검색 */
.etc-findhl { position: absolute; background: rgba(255, 213, 0, .45); outline: 1px solid rgba(230, 160, 0, .9); pointer-events: none; z-index: 3; }   /* 찾은 글자 (2026-09-21) */
.etc-find-in { width: 120px; font: inherit; font-size: 12px; padding: 1px 4px; }
.etc-find-out { font-size: 11px; white-space: nowrap; }
.etc-tvh { padding: 12px 14px 14px; font-size: 12.5px; }
.etc-tvh-top { display: flex; gap: 16px; align-items: flex-start; }
.etc-tvh-img { display: flex; gap: 6px; flex-shrink: 0; }
.etc-tvh-img img, .etc-tvh-noimg { width: 140px; height: 140px; object-fit: contain; border: 1px solid var(--border); background: #fff; display: block; }
.etc-tvh-thumbclick { cursor: zoom-in; }
/* 사진 확대 모달 (부품-#175) */
.etc-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .82); display: flex; align-items: center; justify-content: center; }
.etc-lightbox.hidden { display: none; }
.etc-lightbox img { max-width: 92vw; max-height: 90vh; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.etc-lightbox-x { position: absolute; top: 12px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 0; background: rgba(255, 255, 255, .15); color: #fff; font: inherit; font-size: 26px; line-height: 36px; cursor: pointer; }
.etc-lightbox-x:hover { background: rgba(255, 255, 255, .3); }
.etc-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 72px; border: 0; border-radius: 0; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 34px; line-height: 72px; cursor: pointer; opacity: .7; }
.etc-lightbox-nav:hover { opacity: 1; background: rgba(255, 255, 255, .25); }
.etc-lightbox-nav[data-dir="-1"] { left: 16px; }
.etc-lightbox-nav[data-dir="1"] { right: 16px; }
.etc-lightbox.etc-lightbox-single .etc-lightbox-nav { display: none; }
.etc-lightbox-idx { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; }
.etc-tvh-noimg { display: flex; align-items: center; justify-content: center; color: var(--text-muted, #6b7280); }
.etc-tvh-main { flex: 1; min-width: 0; }
.etc-tvh-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
/* 이름표가 다른데 이은 줄의 사유 한 줄 (부품-#394 인계 ㈟) */
.etc-tvh-viaother { margin-top: 2px; font-size: 11px; color: #a06000; }
.etc-tvh-sub { font-weight: 400; color: var(--text-muted, #6b7280); font-size: 12px; }
.etc-tvh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 3px 18px; }
.etc-tvh-kv { display: flex; gap: 8px; min-width: 0; }
.etc-tvh-k { flex: 0 0 84px; color: var(--text-muted, #6b7280); }
.etc-tvh-v { min-width: 0; overflow-wrap: anywhere; }
.etc-tvh-cols { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 16px; margin-top: 12px; }
.etc-tvh-block { min-width: 0; }
.etc-tvh-h { font-weight: 600; margin-bottom: 4px; }
.etc-tvh-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.etc-tvh-table th, .etc-tvh-table td { padding: 3px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; overflow: hidden; text-overflow: ellipsis; }
.etc-tvh-table th { background: var(--header-bg); font-weight: 600; white-space: nowrap; }
.etc-tvh-table tbody td:first-child { color: var(--text-muted, #6b7280); }
.etc-tvh-alts tbody td:first-child { color: inherit; }
/* 다른 메이커로 있는 것 — 주황 결로 (단추 색과 맞춘다) */
.etc-tvh-other { border-left: 3px solid #b36b00; background: #fff8ef; margin: 0 14px 10px; padding: 10px 12px; }
.etc-tvh-other .etc-tvh-h { color: #8f5500; }
.etc-tvh-other .etc-tvh-img img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.etc-tvh-none { color: var(--text-muted, #6b7280); padding: 10px 14px; }
.etc-tvh-refetch { display: flex; align-items: center; gap: 10px; padding: 6px 14px 10px; font-size: 12px; }   /* 재수집 규칙 줄 (부품-#157) */
.etc-tvh .etc-tvh-refetch { padding: 10px 0 0; }

.etc-empty {
  color: var(--text-muted, #6b7280);
  font-size: 0.95em;
}
.etc-more {
  text-align: center;
  padding: 10px;
}
.etc-more .hidden { display: none; }

/* 매뉴얼 올리기 (부품-#29) */
.etc-drop {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted, #6b7280);
  margin: 12px 0 8px;
  font-size: 12.5px;
}
.etc-drop p { margin: 4px 0; }
.etc-drop-over { border-color: var(--accent, #2563eb); background: var(--header-bg); }
body.etc-dragging .etc-drop { border-color: var(--link, #1a5fb4); border-width: 3px; background: #eef4ff; box-shadow: 0 0 0 4px rgba(26, 95, 180, .15); }   /* 파일을 끌고 들어오면 상자 강조 (부품-#186) */
.etc-drop-status { font-size: 13px; }
/* 올리기 칸 — 규약 `knowledge/규약/올리기칸.md` (대표님 2026-10-05). 동작은 core.js 의 App.Drop 한 곳 */
.etc-drop { cursor: pointer; }
.etc-drop:focus { outline: none; }
/* 한 번 누른 칸 = Ctrl+V 가 갈 칸 */
.etc-drop.etc-drop-here { border: 2px solid var(--link, #1a5fb4); color: var(--link, #1a5fb4); background: #eef4ff; }
/* 아무 칸도 안 골랐을 때의 기본 칸 — 옅게 */
.etc-drop.etc-drop-default { border-color: #9db4dc; }
/* 안내 글 앞 마우스 + 굵은 2X (그림 안에 글자를 넣지 않는다 — 안 보인다) */
.etc-drop-2x { display: inline-flex; align-items: center; gap: 2px; margin-right: 4px; vertical-align: -3px; color: var(--text-muted, #6b7280); }
.etc-drop-2x b { font-size: 12px; font-weight: 700; letter-spacing: -.3px; }
.etc-drop.etc-drop-here .etc-drop-2x { display: none; }
.etc-report { margin: 8px 0; font-size: 13px; }
.etc-report.hidden { display: none; }
.etc-report-item { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 6px; background: var(--card-bg); }
.etc-report-err { border-color: #dc2626; }
.etc-report-head { margin-bottom: 4px; }
.etc-report-var { margin-top: 6px; color: var(--text-muted, #6b7280); }
.etc-report-var ul { margin: 2px 0 2px 16px; padding: 0; }
/* 폴더 나무 (부품-#32) */
.etc-tree { margin: 4px 0 10px; font-size: 13px; }
.etc-tree-node > summary { cursor: pointer; padding: 3px 0; font-weight: 600; list-style: none; }
.etc-tree-node > summary::before { content: '▸'; display: inline-block; width: 14px; color: var(--text-muted, #6b7280); }
.etc-tree-node[open] > summary::before { content: '▾'; }
.etc-tree-children { margin-left: 22px; border-left: 1px dashed var(--border); padding-left: 10px; }
.etc-tree-d3 > summary { font-weight: 500; }
.etc-tree-book { padding: 2px 0 2px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etc-tree-file { font-weight: 500; }
.etc-tree-link { color: var(--link, #1a5fb4); text-decoration: none; }
.etc-tree-link:hover { text-decoration: underline; }
.etc-dim { color: var(--text-muted, #6b7280); }

/* 책 ▸ 장 ▸ 절 나무 + 절 뷰어 (부품-#36 A) */
.etc-split { display: flex; gap: 16px; align-items: stretch; min-height: calc(100vh - 120px); }
/* 스플릿 고정 (대표님 2026-09-21 "IPC 스플릿은 스크롤 없이 항상 최대 크기, 왼쪽 나무에 별도 스크롤"): body.etc-fixed 는 PC 에서 parts.js fitSplits 가 붙이고
   .etc-split 의 높이를 창 바닥까지로 맞춘다. 왼쪽은 제 스크롤, 오른쪽 뷰어는 남는 높이를 다 쓴다(전체화면 규칙과 같은 꼴). 모바일·새 창은 제외 */
body.etc-fixed { overflow: hidden; }
body.etc-fixed .etc-split { min-height: 0; }
body.etc-fixed .etc-split-left { overflow-y: auto; overflow-x: hidden; min-height: 0; }
body.etc-fixed .etc-split-right { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
body.etc-fixed .etc-split-right .etc-figure, body.etc-fixed .etc-split-right .etc-pdf, body.etc-fixed .etc-split-right .svc-vbody { height: auto; flex: 1 1 auto; min-height: 0; margin-bottom: 0; }
/* 갈래 줄(Parts manual · Parts list)은 왼쪽 판 머리로 — 오른쪽 뷰어가 그 줄만큼 위로 올라간다 (대표님 2026-09-21 "오른쪽 상단 한 줄 낭비, 최대한 위로").
   갈래 줄을 절대 위치로 띄우고 스플릿을 그만큼 끌어올린 뒤 왼쪽 판만 그 높이를 비워 둔다. 갈래 없는 판(부품리스트)은 원래 자리 */
body.etc-fixed .top-view { position: relative; }
body.etc-fixed .etc-subtabs { position: absolute; top: 0; left: 0; z-index: 2; padding: 8px 12px 0; }
body.etc-fixed .etc-body { padding-top: 46px; }
body.etc-fixed .etc-split { margin-top: -38px; }
body.etc-fixed .etc-split-left { margin-top: var(--etc-subtabs-h, 38px); }   /* 갈래 줄 자리는 판 "바깥"에 비운다 — padding 이면 왼쪽 나무를 스크롤할 때 내용이 갈래 줄 밑을 지나가 둥둥 떠 보인다 (2026-09-26) */
.etc-split-left { flex: 0 0 360px; min-width: 0; border-right: 1px solid var(--border); padding-right: 16px; }   /* 왼쪽/오른쪽 나누는 선 (부품-#81). **폭은 360px 그대로** — 갈래가 늘면 판을 넓히지 말고 단추를 줄인다 (대표님 2026-10-01) */
.etc-split-right { position: relative; flex: 1 1 auto; min-width: 0; border: 1px solid var(--border); border-radius: 8px; background: var(--card-bg); padding: 10px 12px; }
.etc-split-right.hidden { display: none; }
.etc-tree-bookNode { font-weight: 500; }
.etc-tree-open { font: inherit; font-size: 11px; margin-left: 6px; padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--card-bg); color: var(--text-muted, #6b7280); cursor: pointer; }
.etc-tree-open:hover { color: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); }
.etc-tree-open.etc-on { background: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); color: #fff; }
.etc-pdf { width: 100%; height: 78vh; border: 1px solid var(--border); background: #fff; }
.etc-pdf.hidden, .etc-figure.hidden, .etc-hot-status.hidden, .etc-sec-table.hidden, .etc-viewer-tools .hidden { display: none; }
.etc-tree-d5 > summary { font-weight: 500; }
.etc-tree-sec { padding: 2px 6px; cursor: pointer; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etc-tree-sec:hover { background: var(--header-bg); }
.etc-tree-sec.etc-on { background: var(--link, #1a5fb4); color: #fff; }
.etc-tree-sec.etc-on .etc-dim { color: #dbe7ff; }
.etc-viewer-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.etc-viewer-tools { flex-basis: 100%; justify-content: flex-end; display: flex; gap: 4px; align-items: center; }
.etc-report-btn ~ .etc-tools-gap:first-of-type { margin-left: auto; }
/* [Register] 는 머리 줄 **맨 왼쪽 구석**이다 (대표님 2026-10-01 "제일 왼쪽으로 치우라니까").
   도구 묶음이 오른쪽 정렬(justify-content:flex-end)이라 그냥 두면 가운데로 밀린다 — 남는 자리를 이 단추 오른쪽에 몰아준다.
   Parts 뷰어는 debug 뒤 `.etc-tools-gap` 이 이미 같은 일을 하므로 거기선 왼쪽 무리(Register·debug·!·⊕)가 함께 왼쪽에 붙는다. */
#svc___vRegister, #cat___vRegister { margin-right: auto; }   /* 카탈로그 뷰어도 같은 규칙 (2026-10-01) */
.etc-viewer-tools button, .etc-viewer-tools a { font: inherit; font-size: 12px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; background: var(--card-bg); color: inherit; cursor: pointer; text-decoration: none; }
.etc-figure { overflow: auto; height: calc(100vh - 168px); min-height: 420px; border: 1px solid var(--border); background: #e9ecef; margin-bottom: 10px; }
.etc-sec-table tbody tr { cursor: pointer; }
.etc-c-pos { width: 50px; text-align: right; }
.etc-c-qty { width: 60px; text-align: right; }

/* 그림 위 동그라미 번호 (부품-#36 B) */
/* 이어 붙인 쪽들 (부품-#44): --pw = 쪽 너비(px). 높이 맞춤이면 한 쪽이 화면에 다 들어온다 */
.etc-figure-inner { position: relative; padding: 8px 0; --pw: 600px; user-select: none; }   /* 클릭·끌기로 그림이 파랗게 선택되지 않게 (부품-#49) */
.etc-pg img { -webkit-user-drag: none; }
.etc-pg { position: relative; width: var(--pw); margin: 0 auto 8px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.etc-pg::before { content: ''; display: block; padding-bottom: var(--pg-pad, 129.4%); }     /* 그림 오기 전 자리. 기본은 레터 비율, 책이 열리면 JS 가 그 책 비율로 --pg-pad 를 준다 (2026-10-01) */
.etc-pg-sized::before { display: none; }   /* 비가 다른 쪽(가로 도면)은 JS 가 제 너비·높이를 준다 — 레터 자리잡이를 쓰면 늘어난다 (2026-09-26) */
.etc-pg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }   /* 화면-01: 쪽 그림은 **늘이지 않는다**. 상자가 틀리면 찌그러지는 대신 빈 자리가 보인다(틀린 것이 드러난다) */
.etc-pg-on { outline: 2px solid var(--link, #1a5fb4); }
.etc-pg-no { position: absolute; right: 4px; top: 4px; font-size: 11px; color: #999; background: rgba(255,255,255,.8); padding: 0 4px; border-radius: 3px; z-index: 2; }
.etc-pg-hot { position: absolute; inset: 0; z-index: 3; }
.etc-ink { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }
body.etc-inking .etc-ink { pointer-events: auto; touch-action: none; cursor: crosshair; }
body.etc-inking.etc-erasing .etc-ink { cursor: cell; }
.etc-ink-btn { padding: 0 5px; min-height: 24px; line-height: 1; vertical-align: middle; }
.etc-ink-btn svg { vertical-align: middle; stroke: currentColor; }
.etc-ink-btn.etc-on { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); }
.etc-ink-tools { display: none; align-items: center; gap: 3px; margin-left: 2px; }
body.etc-inking .etc-ink-tools { display: inline-flex; }
.etc-ink-color { width: 20px; height: 20px; min-height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--border, #d0d7de); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.etc-ink-color .etc-ink-dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.etc-ink-color.etc-on { outline: 2px solid var(--link, #1a5fb4); outline-offset: 1px; }
.etc-ink-width { height: 20px; min-height: 20px; padding: 0 4px; font-size: 11px; font-weight: 600; border: 1px solid var(--border, #d0d7de); border-radius: 3px; background: var(--card-bg, #fff); cursor: pointer; }
.etc-ink-width.etc-on { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); }
.etc-ink-tool-btn { height: 20px; min-height: 20px; padding: 0 4px; border: 1px solid var(--border, #d0d7de); border-radius: 3px; background: var(--card-bg, #fff); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.etc-ink-tool-btn svg { vertical-align: middle; stroke: currentColor; }
.etc-ink-tool-btn.etc-on { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); }
.etc-hot { position: absolute; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border: 2px solid transparent; border-radius: 50%; background: transparent; padding: 0; cursor: pointer; box-sizing: border-box; }   /* 중심 배치 · 테두리 안쪽 (부품-#197) */
.etc-hot:hover { border-color: var(--link, #1a5fb4); background: rgba(26, 95, 180, 0.12); }
.etc-hot-on { border-color: var(--link, #1a5fb4); background: rgba(26, 95, 180, 0.25); }
/* 사람 등록 · 로직 미발견 자리(.etc-hot-user)는 평소 뷰어에선 다른 자리와 똑같이 투명 — 회색은 debug 창에서만 (부품-#153 · #156) */
.etc-sec-table tbody tr.etc-on { background: #dbe7ff; }
.etc-hot-status { margin: -4px 0 8px; font-size: 12px; }

/* 쪽 넘김 (부품-#42) */
.etc-page-input { width: 56px; font: inherit; font-size: 12px; padding: 2px 4px; border: 1px solid var(--border); border-radius: 4px; text-align: right; background: var(--card-bg); color: inherit; }
.etc-tools-gap { width: 10px; }

/* 번호 팝업 (부품-#43) */
.etc-pop { position: absolute; z-index: 5; min-width: 260px; max-width: 420px; background: var(--card-bg); border: 1px solid var(--link, #1a5fb4); border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.18); padding: 6px 8px; font-size: 12.5px; }
.etc-pop.hidden { display: none; }
/* 기능 이름표 — 떠 있는 요소 머리의 빈자리에 작은 회색 글씨 (대표님 2026-09-21 "각기 기능 표현하기 어려우니 빈자리에 작은 글씨로"). 이름은 CODE_MAP 3절과 같게 */
.etc-feat { cursor: text; margin-left: auto; margin-right: 6px; font-size: 8px; font-weight: 400; color: #c4c9d0; letter-spacing: 0; white-space: nowrap; user-select: none; }   /* 거의 안 보일 만큼 (대표님 2026-09-21) — 두 번 누르면 이름 바꾸기는 그대로 */
.etc-feat:hover { color: var(--text-muted, #6b7280); }
.etc-pop-head .etc-feat + .etc-pop-close, .etc-modal-head .etc-feat + .etc-pop-close { margin-left: 0; }
.etc-fit-pop-head .etc-feat { margin-left: 0; }
body.viewer-only .etc-feat { font-size: 9px; }
/* 긴 팝업(Pos. 507 처럼 부품 열 개 넘게)은 안에서 스크롤 — 머리는 붙박이 (대표님 2026-09-21 "너무 길어서 … 부품코드 선택 못함") */
body:not(.viewer-only) .etc-pop { max-height: min(72vh, 680px); overflow: auto; padding-top: 0; }
body:not(.viewer-only) .etc-pop-head { position: sticky; top: 0; z-index: 1; background: var(--card-bg); padding: 6px 0 4px; margin-bottom: 0; }
.etc-pop-head { font-weight: 600; display: flex; align-items: center; margin-bottom: 4px; cursor: move; }   /* 잡고 끌기 (부품-#174) */
.etc-pop-edit { cursor: text; }
.etc-ico { width: 14px; height: 14px; fill: currentColor; display: block; }   /* 단색 그림 단추 (톱니 · 자물쇠, 대표님 2026-09-21) */
.etc-pop-cmt { margin-left: 6px; padding: 0; color: #8a929c; background: transparent; border: 0; cursor: pointer; vertical-align: -2px; display: inline-block; }
.etc-pop-cmt:hover { color: var(--link, #1a5fb4); }
/* IPC-코멘트 창 (2026-09-21): 작은 고정 창, 저장은 [저장] 만 */
.etc-cmt-pop { position: fixed; z-index: 70; width: 360px; background: var(--card-bg, #fff); border: 1px solid var(--link, #1a5fb4); box-shadow: 0 6px 18px rgba(0,0,0,.22); font-size: 12.5px; }
.etc-cmt-pop.hidden { display: none; }
.etc-cmt-head { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; background: var(--header-bg, #eef2f7); border-bottom: 1px solid #d0d7de; }
.etc-cmt-head > .etc-dim { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etc-cmt-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px 0; }
.etc-cmt-row > span:first-child { flex: 0 0 56px; color: var(--text-muted, #6b7280); }   /* 왼쪽 이름표만 — .etc-cmt-field(span) 에 걸리지 않게 */
.etc-cmt-row > input { flex: 1; font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid var(--border, #d0d7de); border-radius: 0; }
.etc-cmt-row textarea { flex: 1 1 auto; width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; line-height: 1.3; padding: 3px 6px; border: 1px solid var(--border, #d0d7de); border-radius: 0; resize: none; min-width: 0; }
.etc-cmt-row textarea[readonly] { background: var(--header-bg, #eef2f7); color: var(--text-muted, #6b7280); }
.etc-cmt-field { position: relative; flex: 1 1 auto; display: flex; min-width: 0; width: 100%; }   /* 상자 안 오른쪽 위에 [잠금] (대표님 2026-09-21 "자리 차지하지 말고 텍스트박스 안에") */
.etc-cmt-field > textarea { width: 100%; padding-right: 26px; }
.etc-cmt-lock { position: absolute; right: 4px; top: 4px; padding: 0; color: #8a929c; background: transparent; border: 0; cursor: pointer; }   /* 자물쇠 그림 — 잠김 회색 / 풀림 파랑 */
.etc-cmt-lock .etc-ico { width: 16px; height: 16px; }
.etc-cmt-lock:hover { color: var(--link, #1a5fb4); }
.etc-cmt-lock.etc-on { color: var(--link, #1a5fb4); }
.etc-cmt-head { cursor: move; user-select: none; }
.etc-cmt-foot { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.etc-cmt-msg { flex: 1; }
.etc-cmt-save { font: inherit; font-size: 12px; padding: 2px 12px; color: #fff; background: var(--link, #1a5fb4); border: 1px solid var(--link, #1a5fb4); border-radius: 0; cursor: pointer; }
.etc-pop-fold { font: inherit; font-size: 12px; line-height: 1; padding: 0 4px; border: 0; background: transparent; color: var(--text-muted, #6b7280); cursor: pointer; }   /* 접기/펼치기 (부품-#174) */
.etc-pop-fold:hover { color: var(--link, #1a5fb4); }
.etc-pop-close { margin-left: auto; border: 0; background: transparent; font-size: 16px; line-height: 1; cursor: pointer; color: var(--text-muted, #6b7280); }
.etc-pop-row { padding: 3px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 18px 28px auto 1fr auto; gap: 4px 6px; align-items: baseline; }   /* 5열 = 별 + Pos + PN + Desc + 접기 (부품-#324) */
.etc-pop-row .etc-fav { align-self: center; margin: 0; }
.etc-pop-ref .etc-pop-pos { grid-column: 2; }
.etc-pop-pos { color: var(--text-muted, #6b7280); text-align: right; }
.etc-pop-pn { font: inherit; font-weight: 600; color: var(--link, #1a5fb4); background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left; }
.etc-pop-pn:hover { text-decoration: underline; }
.etc-pop-info { grid-column: 2 / -1; font-size: 12px; background: var(--header-bg); border-radius: 4px; padding: 4px 6px; }
.etc-pop-info.hidden { display: none; }
.etc-pop-tvh { display: block; margin-top: 4px; }                                          /* 팝업 안 판매처 요약 (부품-#158 · #161 · #164): 사진은 상자 폭의 절반, 비율 유지, ‹ › 로 넘김 */
.etc-pop.etc-pop-flagging .etc-pop-info { display: none; }                                  /* [!] 리포트 중엔 정보 상자(품목명·모델·사진·가격) 통째로 숨김 (부품-#165) */
.etc-pop-imgbox { position: relative; width: 50%; margin-bottom: 3px; }
.etc-pop-imgbox img { display: block; width: 100%; height: auto; max-height: 200px; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.etc-pop-imgnav { position: absolute; top: 50%; transform: translateY(-50%); width: 20px; height: 28px; padding: 0; border: 0; border-radius: 0; background: rgba(0, 0, 0, .28); color: #fff; font: inherit; font-size: 16px; line-height: 28px; cursor: pointer; opacity: .55; }
.etc-pop-imgnav:hover { opacity: .95; }
.etc-pop-imgnav[data-dir="-1"] { left: 0; }
.etc-pop-imgnav[data-dir="1"] { right: 0; }
.etc-pop-imgidx { position: absolute; right: 2px; bottom: 2px; font-size: 10px; padding: 0 4px; background: rgba(0, 0, 0, .35); color: #fff; }
#etc1___pnModal .etc-modal-box { width: min(1000px, calc(100vw - 48px)); max-height: 88vh; overflow: auto; left: 24px; top: 60px; }   /* 품목 모달 (부품-#158) — 크게 */
#etc1___pnModal .etc-tvh-cols { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); }
#etc1___pnModal .etc-tvh-alts { table-layout: auto; }
.etc-pn-table { margin-bottom: 4px; }
.etc-pn-src-box { border-left: 3px solid var(--link, #1a5fb4); margin-top: 8px; }
.etc-pn-src-head { font-weight: 600; font-size: 12.5px; padding: 6px 14px 0; }
.etc-pop-info b { margin-right: 4px; }
.etc-pop-search { margin-left: auto; font: inherit; font-size: 11px; padding: 0 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--card-bg); cursor: pointer; color: var(--link, #1a5fb4); }

/* 부품 인덱스 접기 (부품-#45 ①) */
.etc-pit > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.etc-pit.hidden { display: none; }
.etc-split-right { position: relative; }

/* 리포트 (부품-#53) */
.etc-report-btn { background: #f28c28 !important; border-color: #f28c28 !important; color: #fff !important; font-weight: 600; }
.etc-report-btn:hover { background: #e07b1a !important; }
.etc-report-btn:disabled { opacity: .45; cursor: default; }
.etc-modal { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 50; display: flex; align-items: center; justify-content: center; }
.etc-modal.hidden { display: none; }
.etc-modal-box { width: min(560px, 92vw); background: var(--card-bg); border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.3); padding: 12px 14px; }
.etc-modal-head { font-weight: 600; display: flex; align-items: center; margin-bottom: 6px; font-size: 15px; }
.etc-report-ctx { font-size: 12.5px; margin-bottom: 8px; }
.etc-report-status { font-size: 12px; min-height: 0; margin-bottom: 4px; }
.etc-report-ref { font: inherit; color: var(--link, #1a5fb4); background: transparent; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }   /* "#392 참고" 링크 (부품-#167) */
/* 리포트 내역 로그 모양 (부품-#168) */
.etc-log { font-size: 12.5px; border-top: 1px solid var(--border); }
.etc-log-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); border-bottom: 1px solid var(--border); }   /* NO 열 / 접수내용+처리결과 2행 열 */
.etc-log-no { padding: 6px 6px; font-weight: 600; color: var(--link, #1a5fb4); text-align: right; background: var(--header-bg); }
.etc-log-body { padding: 6px 8px; min-width: 0; }
.etc-log-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.etc-log-text { font-weight: 600; }
.etc-log-head .etc-report-go { margin-left: auto; }
.etc-log-res { margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.etc-log-item.etc-report-hit { background: #fff3d6; }
.etc-log-item.etc-report-inline { background: var(--header-bg); border-left: 3px solid var(--link, #1a5fb4); }
.etc-report-inline-x { margin-left: auto; }
.etc-report-status:empty { display: none; }
.etc-modal-box textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 8px; border: 1px solid var(--border); border-radius: 6px; resize: vertical; }
.etc-modal-foot { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.etc-modal-foot button { margin-left: auto; font: inherit; font-size: 13px; padding: 5px 16px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; }

/* 목록 쪽 줄 핫스팟 (부품-#55) */
.etc-rowhot { position: absolute; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 3px; z-index: 2; }
.etc-rowhot:hover { background: rgba(26, 95, 180, 0.12); }
.etc-rowhot-on { background: rgba(26, 95, 180, 0.25); outline: 2px solid var(--link, #1a5fb4); }   /* 파랑 하나로 (부품-#69 · #80 · #94) */
.etc-rowhot-target { background: rgba(255, 196, 0, .28); outline: 2px solid #e0a800; }   /* 비교 뷰어 대상 부품 줄 — 붙박이 (2026-09-21) */
.etc-hot-target { border-color: #e0a800 !important; background: rgba(255, 196, 0, .35) !important; box-shadow: 0 0 0 2px rgba(224, 168, 0, .6); }   /* 대상 부품의 조립도 번호 */

/* PDF 내부 링크 (jlg_t3): 투명 배경, hover 때 파랑 얇은 테두리(직각), etc-rowhot 아래 z-order */
.etc-linkhot { position: absolute; border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 0 !important; z-index: 1; box-sizing: border-box; }
.etc-linkhot:hover { outline: 1px solid var(--link, #1a5fb4); }

/* 업로드 실행 리스트 (부품-#56) */
.etc-uplog { margin-top: 6px; font-size: 12px; table-layout: fixed; }
.etc-uplog th, .etc-uplog td { padding: 4px 6px; }
.etc-c-when { white-space: nowrap; }
.etc-uplog-file { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etc-uplog-sum { white-space: nowrap; overflow: hidden; }
.etc-uplog th:nth-child(1), .etc-uplog td:nth-child(1) { width: 70px; }
.etc-uplog th:nth-child(2), .etc-uplog td:nth-child(2) { width: 96px; }
.etc-uplog th:nth-child(3), .etc-uplog td:nth-child(3) { width: auto; min-width: 120px; }
.etc-uplog tbody tr:hover { background: var(--header-bg); }
.etc-uplog-err td { color: inherit; }   /* 실패도 색 없이 (부품-#195) */
#etc1___paneManuals { position: relative; }
.etc-uplog-pop { max-width: 520px; min-width: 360px; z-index: 6; }

/* 모델 대장 (부품-#58) */
.etc-registry { margin-top: 10px; }
.etc-registry > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.etc-alias-row { cursor: pointer; }
.etc-name-btn { font: inherit; font-size: 11px; margin-left: 4px; padding: 0 6px; border: 1px solid #f28c28; border-radius: 4px; background: #fff3e6; color: #c2410c; cursor: pointer; }
.etc-modal-row { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 13px; }
.etc-modal-row input[type="radio"] { flex: 0 0 auto; margin: 0 2px 0 0; }
.etc-modal-row input[type="text"] { flex: 1; font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 6px; }

.etc-progress { color: #c2410c; font-size: 11px; margin-left: 4px; }

/* 모델 고르기 칸칸이 (부품-#63) */
.etc-model-pick { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.etc-model-opt { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; font-size: 13px; }
.etc-model-opt:has(input:checked) { border-color: #f28c28; background: #fff3e6; }
.etc-chip { display: inline-block; padding: 0 6px; border: 1px solid var(--border); border-radius: 10px; font-size: 11px; background: var(--header-bg); }

/* 표지 · 모델 설정 (부품-#64) */
.etc-tree-cover { padding-left: 20px; font-weight: 500; }              /* 다른 절 줄과 같은 글자·색 (부품-#71). 화살표 자리만큼 들여쓴다 */
.etc-model-btn { background: #fff3e6 !important; border-color: #f28c28 !important; color: #c2410c !important; font-weight: 600; }
.etc-viewer-tools .etc-model-btn.hidden { display: none; }

.etc-model-extra { border-style: dashed; }
.etc-model-del { border: 0; background: transparent; cursor: pointer; color: var(--text-muted, #6b7280); padding: 0 2px; font-size: 14px; line-height: 1; }
.etc-modal-row button { font: inherit; font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--card-bg); cursor: pointer; }

/* 표지 값 교정 (부품-#66) */
.etc-cover-box { border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; margin-bottom: 8px; background: var(--header-bg); }
.etc-cover-box.hidden { display: none; }
.etc-lab { flex: 0 0 auto; min-width: 58px; font-size: 12px; color: var(--text-muted, #6b7280); }
.etc-modal-row input.etc-short { flex: 1 1 80px; min-width: 60px; }
.etc-lab-s { min-width: 0; }
.etc-ranges { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
/* 구간 줄 = 격자 한 줄 (부품-#212): 근원 | 모델 | from | ~ | to | × — 가로 스크롤 없이 칸 비율로 맞춘다 */
/* 모델 × 구간 한 줄씩(21줄) 이라 촘촘하게 — 근원 글자(코드 가족·표지…)는 안 보이고 data-src 로만 (대표님 2026-09-20 "의미없는 데이터면 지워") */
.etc-range-row { display: grid; grid-template-columns: 18px minmax(80px, 110px) minmax(0, 1fr) 10px minmax(0, 1fr) 18px; align-items: center; gap: 3px; font-size: 12px; margin: 1px 0; }   /* 맨 앞은 대표(플래그십) 라디오 — 구간과 모델을 한 줄로 (2026-09-25) */
.etc-range-row input { min-width: 0; width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; padding: 1px 5px; line-height: 1.3; border: 1px solid var(--border); border-radius: 4px; font-family: Consolas, monospace; }
.etc-range-row .etc-rg-src { display: none; }
.etc-range-row input.etc-rg-model { font-family: inherit; }
.etc-range-row.etc-rg-same input.etc-rg-model { display: none; }               /* 같은 모델이 이어지면 첫 줄만 이름, 아래는 〃 */
.etc-range-row .etc-rg-ditto { display: none; color: var(--text-muted, #6b7280); text-align: center; }
.etc-range-row.etc-rg-same .etc-rg-ditto { display: block; }
.etc-range-row .etc-rg-del { width: 20px; padding: 0; }
.etc-rg-src { font-size: 10.5px; color: var(--text-muted, #6b7280); font-family: Consolas, monospace; white-space: nowrap; overflow: hidden; }   /* 근원 (부품-#210) */
#etc1___cvRanges { max-height: 60vh; overflow-y: auto; overflow-x: hidden; }   /* 슬랩 GS 는 모델×구간 21~70줄 — 세로만 스크롤 */
#etc1___modelModal .etc-modal-box { width: min(760px, calc(100vw - 48px)); max-height: 92vh; overflow: auto; }   /* 표지 창은 구간 표가 있어 넓게 (부품-#212) */
.etc-rg-del { border: 0; background: transparent; cursor: pointer; color: var(--text-muted, #6b7280); font-size: 14px; }
/* 낱개 시리얼 비고 (부품-#302 / jlg_t6) */
.etc-range-remark { font-size: 11.5px; color: var(--text-muted, #6b7280); padding: 4px 2px; display: flex; align-items: center; gap: 8px; }
.etc-range-remark-btn { font: inherit; font-size: 11px; padding: 1px 8px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); cursor: pointer; border-radius: 0; }
.etc-range-remark-btn:hover { border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); }
.etc-range-remark-list { font-size: 11.5px; color: var(--text-muted, #6b7280); background: var(--header-bg, #f8f9fa); border: 1px solid var(--border); padding: 6px 8px; margin: 2px 0 6px 0; white-space: normal; word-break: break-all; line-height: 1.5; border-radius: 0; user-select: text; }
.etc-range-remark-list.hidden { display: none; }

/* 표지 파싱 근원 상자 (부품-#67) */
.etc-cvhot { position: absolute; border: 0; border-radius: 3px; background: rgba(26,95,180,.14); cursor: pointer; padding: 0; }   /* 파란 하이라이트 (부품-#69) */
.etc-cvhot:hover { background: rgba(26,95,180,.32); }
/* 이름표는 겹치지 않게 마우스 올렸을 때만, 상자 왼쪽 바깥에 (부품-#70 시인성) */
.etc-cvhot span { display: none; position: absolute; right: 100%; top: 50%; transform: translateY(-50%); margin-right: 4px; font-size: 10px; line-height: 14px; background: var(--link, #1a5fb4); color: #fff; padding: 0 5px; border-radius: 3px; white-space: nowrap; }
.etc-cvhot:hover span { display: block; }
.etc-focus { outline: 2px solid var(--link, #1a5fb4) !important; box-shadow: 0 0 0 3px rgba(26,95,180,.2); border-radius: 6px; }

/* 끌어 옮기는 창 (부품-#73, ECOUNT 처럼): 뒤 화면을 가리지 않고 제목 줄을 잡고 옮긴다 */
.etc-modal.etc-float { background: transparent; pointer-events: none; align-items: flex-start; justify-content: flex-start; }
.etc-modal.etc-float .etc-modal-box { pointer-events: auto; position: absolute; left: 24px; top: 80px; box-shadow: 0 10px 34px rgba(0,0,0,.35); border: 1px solid var(--border); }
.etc-drag { cursor: move; user-select: none; }

/* 리포트 내역 (부품-#76) */
.etc-report-hist { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 6px; }
.etc-report-hist > summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.etc-report-table { table-layout: auto; }
.etc-report-table td { white-space: normal; vertical-align: top; }
.etc-c-no { width: 34px; text-align: right; }
.etc-c-res { width: 120px; }
.etc-c-go { width: 70px; }
.etc-res-ok { color: #15803d; }
.etc-res-no { color: #b91c1c; }
.etc-report-go { font: inherit; font-size: 11px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--card-bg); cursor: pointer; color: var(--link, #1a5fb4); }
.etc-modal.etc-float #etc1___reportModal .etc-modal-box, #etc1___reportModal .etc-modal-box { width: min(640px, 94vw); max-height: 80vh; overflow: auto; }

/* 리포트 확인하기 강조 (부품-#77) */
.etc-pulse { border-color: var(--link, #1a5fb4) !important; background: rgba(26,95,180,.35) !important; }   /* 애니메이션 없이 파란 하이라이트만 (부품-#80) */

/* 진행 막대 (부품-#83): CMD 처럼 글자로 */
.etc-bar { display: inline-block; margin-left: 6px; vertical-align: middle; font-family: Consolas, "Courier New", monospace; font-size: 10px; letter-spacing: 0; white-space: pre; overflow: hidden; color: var(--link, #1a5fb4); }   /* 한 줄에, 넘치면 자름 (부품-#89) — 처음 그대로(대표님 2026-09-21 "작게 만들어 그냥") */
.etc-registry > summary { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
/* 단위 글자(N files · N entries)는 굵기 빼고 작게 — 중요한 정보 아님 (대표님 2026-09-21) */
.etc-tree-head > .etc-dim, .etc-tree-node > summary .etc-dim, .etc-registry > summary > .etc-dim, .etc-reg-head .etc-dim { font-weight: 400; font-size: 11px; color: var(--text-muted, #6b7280); }   /* 제목 · 줄 수 · 막대 한 줄 (13px — 막대 둘까지 360px 판에 들어가게) */
.etc-bar-item { display: inline-flex; align-items: center; gap: 2px; margin-left: 5px; vertical-align: middle; }   /* 진행 막대 한 덩이: 작은 라벨 + 칸 막대 + % (2026-09-21) */
.etc-bar-lab { font-size: 9.5px; font-weight: 400; color: var(--text-muted, #6b7280); letter-spacing: 0; }
.etc-tight .etc-bar-lab { font-size: 0; }
.etc-tight .etc-bar-lab::before { content: attr(data-short); font-size: 9.5px; }   /* 좁으면 짧은 라벨 (Map · Trans · Rev) */
.etc-cells { display: inline-flex; gap: 1px; }
.etc-cells > i { display: block; width: 4px; height: 9px; background: #d5dae1; }   /* 빈 칸 */
.etc-cells > i.on { background: var(--link, #1a5fb4); }                            /* 찬 칸 */
.etc-bar-pct { font-size: 9.5px; font-weight: 600; color: var(--link, #1a5fb4); font-variant-numeric: tabular-nums; min-width: 0; margin-left: 1px; }

/* 직각 테두리 (부품-#85): 부품조회 안의 창·팝업·칩·상자는 모서리 둥글리지 않는다 */
.etc-pop, .etc-modal-box, .etc-report-item, .etc-cover-box, .etc-model-opt, .etc-chip, .etc-drop, .etc-search, .etc-subtab, .etc-tree-open,
.etc-viewer-tools button, .etc-viewer-tools a, .etc-modal-foot button, .etc-modal-row input, .etc-range-row input, .etc-modal-row button,
.etc-report-go, .etc-pop-search, .etc-name-btn, .etc-cvhot, .etc-rowhot, .etc-linkhot, .etc-split-right, .etc-page-input, .etc-pop-info, .etc-tree-sec, .etc-model-del, .etc-range-remark-btn, .etc-range-remark-list { border-radius: 0 !important; }
.etc-detail-head { font-weight: 600; margin-bottom: 4px; }
.etc-detail { border-collapse: collapse; font-size: 12px; width: 100%; }
.etc-detail th { text-align: left; white-space: nowrap; padding: 2px 8px 2px 0; color: var(--text-muted, #6b7280); font-weight: 500; vertical-align: top; width: 92px; }
.etc-detail td { padding: 2px 0; }

/* 리포트 창이 열려 있는 동안 매핑된 자리 전부 표시 (부품-#90) */
.etc-showmap .etc-hot { border-color: var(--link, #1a5fb4); background: rgba(26,95,180,.14); }            /* 로직이 찾은 자리 = 파랑 */
.etc-showmap .etc-hot-user { border-color: #9aa0a6; background: rgba(154,160,166,.35); }                /* 사람 등록 · 로직 미발견 = 회색 (부품-#153 · #156) */
.etc-showmap .etc-hot-user:hover, .etc-showmap .etc-hot-user.etc-hot-on { border-color: #6b7280; background: rgba(107,114,128,.5); }
.etc-showmap .etc-rowhot { background: rgba(26,95,180,.12); outline: 1px solid rgba(26,95,180,.5); }
.etc-showmap .etc-cvhot { background: rgba(26,95,180,.22); }

/* 핫스팟 [!] 신고 (부품-#92) · 참조 줄 (부품-#93) */
.etc-pop-flag { margin-left: 8px; width: 18px; height: 18px; line-height: 16px; padding: 0; font: inherit; font-weight: 700; font-size: 12px; border: 1px solid #b45309; color: #b45309; background: transparent; cursor: pointer; }
.etc-pop-flag:hover { background: #b45309; color: #fff; }
.etc-pop-flag:disabled { opacity: .5; cursor: default; }
.etc-pop-verdict { font-size: 11.5px; color: var(--text-muted, #6b7280); border-top: 1px solid var(--border); padding: 3px 0; }
.etc-pop-sec { font: inherit; color: var(--link, #1a5fb4); background: transparent; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }

/* 머리 [!] 매핑 재실행 퀵 단추 (부품-#98) */
.etc-remap-btn { width: 26px; padding: 0 !important; font-size: 14px; line-height: 1; font-weight: 700; border: 1px solid #b45309 !important; color: #b45309 !important; background: transparent !important; }
.etc-remap-btn:hover { background: #b45309 !important; color: #fff !important; }

/* [+] 누락 표시 모드 (부품-#99) */
.etc-remap-btn.etc-on { background: #b45309 !important; color: #fff !important; }
.etc-missed .etc-pg-hot { cursor: crosshair; }
.etc-missed-pick { min-width: 200px; }
.etc-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.etc-chip { font: inherit; font-size: 12px; padding: 1px 7px; border: 1px solid var(--link, #1a5fb4); color: var(--link, #1a5fb4); background: transparent; cursor: pointer; }
.etc-chip:hover { background: var(--link, #1a5fb4); color: #fff; }
.etc-missed-other { display: flex; gap: 4px; margin-top: 4px; }
.etc-missed-input { width: 70px; font: inherit; font-size: 12px; padding: 1px 4px; border: 1px solid var(--border); background: var(--card-bg); color: inherit; }
.etc-missed-go { font: inherit; font-size: 12px; padding: 1px 8px; border: 1px solid var(--border); background: var(--card-bg); color: inherit; cursor: pointer; }

/* 모델 대장 (부품-#104): 칩 줄바꿈 · 뺀 칩은 꺼진 표시 */
.etc-registry td { white-space: normal; vertical-align: top; }
/* 모델 대장 표 열 폭 (대표님 2026-09-20 "열조정바람" — 좁은 화면에서 첫 열이 70px 로 잡혀 칩이 한 줄에 하나씩 세로로 늘어지던 것).
   etc-uplog 의 nth-child 폭을 덮어 쓴다: 표지 모델 줄 38% · 통합 모델 14% · 하위 모델 30% · 책 18%. 칩은 작게, 가로로 흐르게. */
table.etc-registry th:nth-child(1), table.etc-registry td:nth-child(1) { width: 32%; min-width: 0; max-width: none; }
table.etc-registry th:nth-child(2), table.etc-registry td:nth-child(2) { width: 78px; min-width: 0; white-space: normal; overflow-wrap: anywhere; }   /* 통합 이름: GS-5390 · Z-45/25JDC 는 한 줄, 긴 이름(Maintenance Manual …)은 접어서 — 옆 칸을 덮지 않게 */
table.etc-registry th:nth-child(3), table.etc-registry td:nth-child(3) { width: 32%; min-width: 0; }
table.etc-registry th:nth-child(4), table.etc-registry td:nth-child(4) { width: 82px; min-width: 82px; white-space: nowrap; }   /* 책 p/n 은 한 줄에 하나, 중간에서 안 끊음 (대표님 2026-09-20 "책번호가 두줄로 되잖아") */
.etc-reg-books span { display: block; font-family: Consolas, monospace; font-size: 11px; }
table.etc-registry { table-layout: fixed; }
table.etc-registry td { padding: 3px 4px; line-height: 1.3; }
table.etc-registry th { white-space: normal; padding: 4px; font-size: 11px; }   /* 머리글도 접힘 — '표지 모델 줄' 이 옆 칸을 덮지 않게 */
.etc-registry .etc-chip { display: inline-block; margin: 1px 2px 1px 0; padding: 0 4px; font-size: 11px; line-height: 16px; cursor: inherit; white-space: nowrap; }
.etc-model-off { opacity: .45; text-decoration: line-through; }

.etc-missed-all { font: inherit; font-size: 12px; padding: 1px 8px; border: 1px solid var(--border); background: var(--card-bg); color: inherit; cursor: pointer; margin-top: 4px; }
.etc-missed-allchips { max-width: 300px; max-height: 160px; overflow-y: auto; }

.etc-flag-pick { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.etc-flag-none { border-color: #b45309; color: #b45309; margin-left: 4px; font-size: 11.5px; padding: 0 6px; height: 18px; line-height: 16px; }
.etc-pop-flag.etc-on { background: #b45309; color: #fff; }
.etc-flag-none:hover { background: #b45309; color: #fff; }

.etc-remap-book { width: auto; padding: 0 10px !important; margin-left: auto; margin-right: 4px; font-size: 12px; font-weight: 500; }   /* 리포트 창 머리 오른쪽, × 에 바짝 (부품-#118 · #124) */
.etc-remap-book + .etc-pop-close { margin-left: 0; }

/* 미반영 흔적 (부품-#122) */
.etc-trace { position: absolute; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border: 2px dashed var(--link, #1a5fb4); border-radius: 50%; box-sizing: border-box; pointer-events: none; }
.etc-trace i { position: absolute; left: 100%; top: -4px; margin-left: 2px; font: 700 10px/1 Consolas, monospace; font-style: normal; color: var(--link, #1a5fb4); background: var(--card-bg, #fff); padding: 0 2px; }
.etc-trace-no { border-color: #9ca3af; }
.etc-trace-no i { color: #9ca3af; }

/* 조준점(스코프) 아이콘 — 대표님이 준 모양을 SVG 로 (부품-#129): 모서리 괄호 + 십자 눈금 + 가운데 점 */
.etc-scope { display: block; margin: 0 auto; color: #b45309; font-size: 0; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%3E%3Cpath%20d='M3%208V3h5'/%3E%3Cpath%20d='M16%203h5v5'/%3E%3Cpath%20d='M3%2016v5h5'/%3E%3Cpath%20d='M16%2021h5v-5'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='5.6'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2.6'/%3E%3Cpath%20d='M12%204.5v3.5'/%3E%3Cpath%20d='M12%2016v3.5'/%3E%3Cpath%20d='M4.5%2012H8'/%3E%3Cpath%20d='M16%2012h3.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='1.9'%20stroke-linecap='round'%3E%3Cpath%20d='M3%208V3h5'/%3E%3Cpath%20d='M16%203h5v5'/%3E%3Cpath%20d='M3%2016v5h5'/%3E%3Cpath%20d='M16%2021h5v-5'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='5.6'/%3E%3Ccircle%20cx='12'%20cy='12'%20r='2.6'/%3E%3Cpath%20d='M12%204.5v3.5'/%3E%3Cpath%20d='M12%2016v3.5'/%3E%3Cpath%20d='M4.5%2012H8'/%3E%3Cpath%20d='M16%2012h3.5'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }   /* 조준 아이콘 (대표님 2026-09-21 "AIM" 그림, #328) — currentColor 마스크라 hover·켜짐의 흰색이 그대로 먹는다. 옛 ⊕ 글자는 font-size 0 */
#etc1___vRemap { font-weight: 800; font-size: 15px; }   /* ! 굵게 (부품-#133) */
.etc-remap-btn:hover .etc-scope, .etc-remap-btn.etc-on .etc-scope { color: #fff; }
/* 머리 단추 셋은 높이·모서리 통일 (부품-#129) */
.etc-viewer-tools .etc-report-btn, .etc-viewer-tools .etc-remap-btn { height: 24px; line-height: 22px; box-sizing: border-box; vertical-align: middle; }
.etc-viewer-tools .etc-remap-btn { width: 28px; display: inline-flex; align-items: center; justify-content: center; }

/* 사람 확정 자리 (부품-#128): 이중 테두리 파란 원 */


/* 서버 식별 띠 (부품-#188) — 테스트서버는 노란 띠. 현대스틸 터미널의 빨간 띠와 같은 자리·같은 역할 */
.test-server-banner { position: sticky; top: 0; z-index: 6000; background: repeating-linear-gradient(45deg, #f5c400 0 14px, #e0b000 14px 28px); color: #222; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-align: center; padding: 6px 10px; }
.test-server-banner.hidden { display: none; }
.test-server-banner a { color: #1a3d7a; margin-left: 10px; font-weight: 600; }

/* 실행 리스트 실패 숨김 토글 (부품-#193) */
.etc-uplog-filter { font-weight: 400; font-size: 11.5px; color: var(--text-muted, #6b7280); margin-left: 8px; white-space: nowrap; cursor: pointer; }
.etc-uplog-filter input { vertical-align: -2px; margin: 0 3px 0 0; }

/* 실행 리스트 상태 (부품-#194 · #195): 색 없이 글자로만 — CMD 스타일 (feedback_hr_no_emoji) */
.etc-state { display: inline-block; min-width: 52px; }

/* 표지 대표모델 미설정 강조 (부품-#199) — 색 대신 글자 표시 + 점선 밑줄 (CMD 톤) */
.etc-tree-unset > summary { text-decoration: underline dotted; text-underline-offset: 3px; }
.etc-tree-flag { font-weight: 400; font-size: 11px; color: var(--text-muted, #6b7280); }
.etc-tree-norange { color: #b45309; }                    /* 구간 0줄 — 시리얼로 못 찾는 책 (부품-#381) */

/* 저장 폴더 실제 경로 · 메이커(맨 위) 노드는 볼드 없이 (부품-#205) */
.etc-tree-root { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-muted, #6b7280); font-family: Consolas, monospace; }
.etc-tree-d1 > summary { font-weight: 400; }

/* 전체화면 (부품-#201 · #206): 뷰어 상자가 화면 전체, 조립도 영역이 남는 높이를 다 씀 — 서비스매뉴얼과 같은 규칙 */
.etc-split-right.etc-full, .etc-split-right:fullscreen { border: 0; border-radius: 0; padding: 6px 10px; background: var(--card-bg); width: 100vw; height: 100vh; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; }
.etc-split-right.etc-full .etc-figure, .etc-split-right:fullscreen .etc-figure { height: auto; flex: 1; min-height: 0; }
.etc-split-right.etc-full .etc-pdf, .etc-split-right:fullscreen .etc-pdf { height: auto; flex: 1; min-height: 0; }

/* 시리얼번호로 책 찾기 (부품-#209) — 두 탭 같은 모양 */
/* 찾는 줄은 셋 다 같은 치수다 — `.etc-toolbar`(목록) · `.svc-search-bar`(본문) · `.etc-serial`(시리얼).
   규약 `docs/검색과필터.md` 4·8 (대표님 2026-09-30 "셋다 묘하게 다른 이유가 뭐냐 표준화좀"). */
.etc-serial { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 10px; }
.etc-serial .etc-serial-in { flex: 1 1 200px; min-width: 0; font-family: Consolas, monospace; }
.etc-serial-hits { flex: 0 0 100%; border: 1px solid var(--border); background: var(--card-bg); font-size: 12px; }
.etc-serial-hits.hidden { display: none; }
.etc-serial-head { padding: 3px 8px; border-bottom: 1px solid var(--border); }
.etc-serial-hit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 8px; border-bottom: 1px solid var(--border); }
.etc-serial-hit:last-child { border-bottom: 0; }
.etc-serial-kind { font-family: Consolas, monospace; color: var(--text-muted, #6b7280); min-width: 40px; }
.etc-serial-rg { flex: 0 0 100%; color: var(--text-muted, #6b7280); font-family: Consolas, monospace; font-size: 11px; white-space: normal; word-break: break-all; }
.etc-serial-hit .etc-tree-open { margin-left: auto; }
.etc-tree-bookNode.etc-tree-hit { background: var(--header-bg); outline: 1px solid var(--link, #1a5fb4); outline-offset: -1px; }   /* 나무에서 맞는 책 */
.etc-range-row.etc-focus, .etc-model-opt.etc-focus { outline: 2px solid var(--link, #1a5fb4); outline-offset: 1px; background: #eef4ff; }   /* 상자 ↔ 항목 대조 (부품-#211) */

/* 메이커 [Tip] (부품-#227) */
.etc-tip-btn { font: inherit; font-size: 11px; padding: 0 5px; margin-left: 6px; border: 1px solid var(--border); border-radius: 4px; background: var(--card-bg); color: var(--text-muted, #6b7280); cursor: pointer; vertical-align: 1px; }
.etc-tip-btn:hover { color: var(--text); border-color: var(--text-muted, #6b7280); }
#etc1___tipModal .etc-tip-box { width: min(760px, calc(100vw - 48px)); max-height: 90vh; overflow: auto; }
.etc-tip-body { font-size: 13px; line-height: 1.55; }
.etc-tip-body h2 { font-size: 16px; margin: 4px 0 10px; }
.etc-tip-body h3 { font-size: 13.5px; margin: 16px 0 6px; }
.etc-tip-body p { margin: 6px 0; }
.etc-tip-body ul, .etc-tip-body ol { margin: 4px 0 6px; padding-left: 22px; }
.etc-tip-body li { margin: 2px 0; }
.etc-tip-body code { font-family: Consolas, "D2Coding", monospace; font-size: 12px; background: var(--hover-bg, rgba(0,0,0,.05)); padding: 0 3px; border-radius: 3px; }
.etc-tip-body table { border-collapse: collapse; width: 100%; margin: 6px 0 8px; table-layout: fixed; }
.etc-tip-body th, .etc-tip-body td { border: 1px solid var(--border); padding: 4px 6px; text-align: left; vertical-align: top; font-size: 12px; overflow-wrap: anywhere; }
.etc-tip-body th { background: var(--hover-bg, rgba(0,0,0,.04)); font-weight: 600; }
.etc-tip-body th:first-child, .etc-tip-body td:first-child { width: 24%; }

/* 이미 쓰는 통합 모델 — 종류별 라디오 칩 (부품-#231) */
.etc-model-used { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 8px; }
.etc-used-group { display: grid; grid-template-columns: 78px 1fr; align-items: start; gap: 6px 10px; }
.etc-used-lab { font-size: 12px; color: var(--text-muted, #6b7280); padding-top: 6px; }
.etc-used-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.etc-used-opt { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 88px; padding: 4px 12px; border: 1px solid var(--border); border-radius: 12px; cursor: pointer; font-size: 12px; }
.etc-used-opt:has(input:checked) { border-color: #f28c28; background: #fff3e6; }
.etc-used-head { margin-top: 6px; }

/* 이카운트 대조 결과 (부품-#212) — 읽기 전용 요약 */
.etc-ec-body { padding: 8px 10px; max-height: 340px; overflow: auto; }
.etc-ec-row { display: flex; align-items: baseline; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--etc-line, #eee); }
.etc-ec-k { min-width: 84px; font-weight: 600; }
.etc-ec-v { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.etc-ec-note { margin-top: 6px; }
.etc-ec-err { color: #b00; padding: 6px 0; }

/* 표지 창 정합성 줄 · 줄 색 (표지-029) */
.etc-cvcheck { font-size: 12px; padding: 3px 6px; margin: 0 0 4px; border: 1px solid var(--border); }
.etc-cvcheck-ok { color: #1a5fb4; }
.etc-cvcheck-warn { color: #8a6d00; background: #fff8e1; }
.etc-cvcheck-bad { color: #b00020; background: #fdecec; font-weight: 600; }
.etc-range-row[data-src="all"] input, .etc-range-row[data-src="none"] input { border-color: #b00020; background: #fdecec; }
.etc-range-row[data-src="family"] input { border-color: #c9a400; background: #fff8e1; }

/* ---------------- 모바일 (부품-#271) ----------------
   폰 폭(≤760px, body.is-mobile): 매뉴얼 탭은 나무 페이지로만 — 오른쪽 뷰어 자리·올리기 상자는 감추고 나무가 전체 폭
   (업로드 기록·모델 대장 접힘 칸은 남김, #284). 책은 새 창(body.viewer-only, ?v=탭&m=책&p=쪽)에서 뷰어만: 탭바·갈래·나무 없이 뷰어가 화면 전체.
   debug · ! · ⊕ (매핑 도구)는 모바일에서 뺀다. 세 탭(부품조회·서비스·오퍼레이터) 공통. */
body.is-mobile:not(.viewer-only) .etc-split { display: block; min-height: 0; }
body.is-mobile:not(.viewer-only) .etc-split-left { border-right: 0; padding-right: 0; }
body.is-mobile:not(.viewer-only) .etc-split-right,
body.is-mobile:not(.viewer-only) .etc-drop { display: none !important; }              /* 올리기 상자만 뺌 — 업로드 기록·모델 대장 접힘 칸은 그대로 (부품-#284, #271 에서 뺐다가 복원) */
body.is-mobile:not(.viewer-only) .etc-uplog-box .table-scroll, body.is-mobile:not(.viewer-only) .etc-registry .table-scroll { overflow-x: auto; }
body.is-mobile:not(.viewer-only) .etc-uplog-box, body.is-mobile:not(.viewer-only) .etc-registry { overflow-x: auto; }
body.is-mobile .etc-tree-children { margin-left: 10px; padding-left: 6px; }
body.is-mobile .etc-tree-open { padding: 3px 10px; font-size: 12px; }
body.is-mobile .etc-tree-sec { white-space: normal; padding: 5px 6px; }
body.is-mobile .etc-report-btn, body.is-mobile .etc-remap-btn, body.is-mobile .etc-tools-gap:first-of-type { display: none !important; }

/* 부품검색(Parts list)·TVH 화면 — 폰에서는 **가로로 넘치면 안 된다** (대표님 2026-09-28
   "모바일에서 부품검색 들어갔을때 레이아웃이 영 별로야, 특히 tvh 화면보기가 영 안좋네").
   PC 는 사진 옆에 표를 세우지만 폰은 좁아 그 배치가 그대로 나오면 판이 두 배가 된다
   — 375px 화면에 756px 이었다(실측). 사진은 작게 줄 바꿈, 표는 **한 칸씩 세로로** 쌓는다. */
body.is-mobile .etc-tvh { padding: 10px; font-size: 12px; }
body.is-mobile .etc-tvh-top { display: block; }                                  /* 사진 → 그 아래 표 */
body.is-mobile .etc-tvh-img { flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
body.is-mobile .etc-tvh-img img, body.is-mobile .etc-tvh-noimg { width: 78px; height: 78px; }
body.is-mobile .etc-tvh-grid { grid-template-columns: 1fr; gap: 2px; }
body.is-mobile .etc-tvh-cols { grid-template-columns: 1fr; gap: 12px; margin-top: 10px; }
body.is-mobile .etc-tvh-k { flex: 0 0 66px; }
body.is-mobile .etc-tvh-title { font-size: 13px; margin-bottom: 6px; }
body.is-mobile .etc-tvh-table { font-size: 11.5px; }
body.is-mobile .etc-tvh-table th, body.is-mobile .etc-tvh-table td { padding: 3px 4px; }
body.is-mobile .etc-tvh-refetch { flex-wrap: wrap; gap: 6px; padding: 8px 0 0; }
/* 부품 줄 자체도 화면 폭에 맞춘다 — 상세가 넓어지면 표 전체가 늘어난다 */
body.is-mobile .etc-plist { table-layout: fixed; width: 100%; }
body.is-mobile .etc-fit-note { max-width: none; white-space: normal; }

body.viewer-only .top-level-tabs, body.viewer-only .etc-subtabs, body.viewer-only .etc-split-left { display: none !important; }
body.viewer-only .etc-body { padding: 0; }
body.viewer-only .etc-split { gap: 0; min-height: 0; }
body.viewer-only .etc-split-right { border: 0; border-radius: 0; padding: 4px 6px; }
body.viewer-only .etc-viewer-head { gap: 6px; margin-bottom: 4px; }
body.viewer-only .etc-viewer-tools { margin-left: 0; flex-wrap: wrap; width: 100%; }
body.viewer-only .etc-viewer-tools button, body.viewer-only .etc-viewer-tools a { min-height: 26px; padding: 2px 6px; font-size: 12px; line-height: 20px; }
body.viewer-only .etc-page-input { height: 26px; padding: 0 3px; font-size: 12px; }
body.viewer-only .etc-figure, body.viewer-only .svc-scroll { scrollbar-width: none; }      /* 브라우저 기본 스크롤바는 숨김 — 슬라이더가 대신 */
body.viewer-only .etc-figure::-webkit-scrollbar, body.viewer-only .svc-scroll::-webkit-scrollbar { display: none; }
body.viewer-only .etc-figure, body.viewer-only .svc-vbody { height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 0; margin-bottom: 0; }
/* 쪽 슬라이더 (부품-#272): 544쪽을 한 스크롤에 이어 붙이면 폰의 스크롤바가 너무 작아 한 장씩 밀게 된다 — 새 창에서만 굵은 슬라이더로 쪽 이동. 끄는 동안 숫자만 바뀌고 놓으면 이동 */
.etc-page-slider { display: none; }
body.viewer-only .etc-page-slider { display: block; position: absolute; z-index: 6; height: 22px; margin: 0; padding: 0; accent-color: var(--link, #1a5fb4); opacity: .75; transform-origin: 0 0; transform: rotate(90deg); touch-action: none; }   /* 그림 오른쪽 가장자리 세로, 기본 스크롤바처럼 얇게 얹힘 (부품-#281 · #288) — 자리·길이는 App.Mobile.vslider */
body.viewer-only .etc-pdf { height: calc(100vh - 110px); height: calc(100dvh - 110px); }
body.viewer-only .etc-hot-status { order: 4; flex: 0 0 auto; display: block; margin: 2px 0 0; font-size: 12px; line-height: 1.3; max-height: 2.6em; overflow: hidden; }   /* 못 찾은 번호 안내는 모바일에서도 맨 아래에 (부품-#278 — #274 에서 뺐다가 되살림) */
body.viewer-only .etc-pop { border-radius: 0; border-width: 2px 0 0; box-shadow: 0 -6px 18px rgba(0,0,0,.25); box-sizing: border-box; z-index: 50; font-size: 14px; padding: 8px 12px; }   /* 아래 판 (부품-#273) */
body.viewer-only .etc-pop-head { cursor: default; font-size: 15px; }
body.viewer-only .etc-pop-close { font-size: 22px; padding: 0 6px; }
/* 모바일 반투명 부품번호 상자 (부품-#275): 번호 옆에 P/N 글자만, 그림을 안 가림. 누르면 상세 판(위 .viewer-only .etc-pop) */
body.viewer-only .etc-pop.etc-pop-mini { position: absolute; width: auto; min-width: 0; max-width: 72%; max-height: none; overflow: visible; transform: none; background: rgba(18, 22, 28, .38); color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.9), 0 0 1px rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.3); border-radius: 6px; padding: 5px 10px; font-size: 14px; line-height: 1.35; box-shadow: none; cursor: pointer; backdrop-filter: none; }   /* 더 투명하게 — 글자는 그림자로 식별 (부품-#287) */
body.viewer-only .etc-pop-mini .etc-pop-head, body.viewer-only .etc-pop-mini .etc-pop-desc, body.viewer-only .etc-pop-mini .etc-pop-fold, body.viewer-only .etc-pop-mini .etc-pop-info, body.viewer-only .etc-pop-mini .etc-pop-ref { display: none; }
body.viewer-only .etc-pop-mini .etc-pop-row { display: flex; gap: 8px; border: 0; padding: 1px 0; pointer-events: none; }
body.viewer-only .etc-pop-mini .etc-pop-pos { color: #cfd6e0; text-align: left; }
body.viewer-only .etc-pop-mini .etc-pop-pn { color: #fff; font-weight: 600; }
body.viewer-only .etc-pop-mini .etc-fav { pointer-events: auto; }
.etc-viewer-exit { display: none; }                                   /* [닫기] 는 새 창(모바일)에서만 (부품-#276) */
body.viewer-only .etc-viewer-tools .etc-viewer-exit { display: inline-block; margin-left: 0; font-size: 0; padding: 0 4px; min-height: 24px; }   /* 글자 대신 X 아이콘 (대표님 2026-09-21, #327) */
.etc-viewer-tools .etc-viewer-exit::before { content: ''; display: inline-block; width: 14px; height: 14px; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23222'%20stroke-width='2.6'%20stroke-linecap='round'%3E%3Cpath%20d='M5%205l14%2014'/%3E%3Cpath%20d='M19%205L5%2019'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
/* 모바일 새 창 머리 줄 간소화 (부품-#277): 위는 [전체화면][쪽/전체][영문][한글][닫기] 한 줄 + 슬라이더뿐, 제목·책 정보 글은 아래로.
   뷰어 상자를 세로 flex 로 세우고 order 로 자리를 바꾼다(머리 줄은 display:contents 로 풀어 자식이 직접 참여). */
body.viewer-only .etc-split-right { display: flex; flex-direction: column; height: 100vh; height: 100dvh; box-sizing: border-box; overflow: hidden; padding: 4px 6px; }
body.viewer-only .etc-viewer-head { display: contents; }
body.viewer-only .etc-viewer-tools { order: 0; flex-wrap: nowrap; width: 100%; margin: 0; gap: 4px; }   /* 한 줄 얇게 — 단추·상자를 줄여 내용검색까지 넣는다 (대표님 2026-09-21 "한줄로 만들어 얇게") */
body.viewer-only .etc-viewer-tools > button, body.viewer-only .etc-viewer-tools > .etc-dim, body.viewer-only .etc-find button { white-space: nowrap; flex: 0 0 auto; }   /* 단추 글자가 세로로 꺾이지 않게 */
body.viewer-only .etc-figure, body.viewer-only .etc-pdf, body.viewer-only .svc-vbody { order: 2; flex: 1 1 auto; min-height: 0; height: auto; margin: 0; }   /* 슬라이더는 띠를 안 차지하고 오른쪽 가장자리에 얹힘 (부품-#288) */
body.viewer-only .etc-viewer-tools { flex: 0 0 auto; }
body.viewer-only .etc-viewer-foot > b, body.viewer-only .etc-viewer-foot > .etc-dim { order: 3; flex: 0 0 auto; display: block; width: 100%; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
body.viewer-only .etc-viewer-foot > b { margin-top: 3px; font-weight: 600; }
body.viewer-only .etc-viewer-tools > *:not(.etc-viewer-exit) { display: none; }                 /* 필요한 것만 다시 켠다 */
body.viewer-only .etc-viewer-tools > .etc-page-input, body.viewer-only .etc-viewer-tools > .etc-dim { display: inline-block; }
body.viewer-only #etc1___vFull, body.viewer-only #svc___vFull, body.viewer-only #op___vFull,
body.viewer-only #svc___langToggle, body.viewer-only .etc-viewer-tools > .etc-ink-btn { display: inline-block; }
body.viewer-only.etc-inking .etc-viewer-tools > .etc-ink-tools { display: inline-flex; order: 6; }   /* 펜 도구 줄은 펜 바로 뒤 */
body.viewer-only #svc___trStatus { display: none; }
body.viewer-only #etc1___vFull, body.viewer-only #svc___vFull, body.viewer-only #op___vFull { order: 4; }
body.viewer-only .etc-viewer-tools > .etc-ink-btn { order: 5; }   /* 펜은 전체화면 다음 (PC 차례와 같게 — 대표님 2026-09-23 "펜 위치가 애매해") */
body.viewer-only .etc-viewer-tools > .etc-find { display: inline-flex; align-items: center; gap: 3px; order: 0; flex: 1 1 auto; min-width: 0; }   /* 내용검색은 새 창·책 모달에서도 (대표님 2026-09-21 "공통기능") — 맨 앞, 남는 폭은 입력 상자가 다 씀 */
body.viewer-only .etc-viewer-tools > .etc-find button { min-height: 26px; padding: 2px 5px; }
body.viewer-only .etc-viewer-tools > .etc-find button[id$='FindGo'] { display: none; }   /* 폰 자판의 검색(Enter) 키가 대신 — 폭 절약. ▲▼ 는 둘 다 둔다(대표님 "이전조회도 중요", 부품-#325) */
/* [INDEX]·[전체화면] 은 반 크기 (부품-#325): 글자 10px·여백 3px, 전체화면은 새 창에서 '전체'/'끝' 두 글자(글자는 CSS 가 바꾼다 — JS 의 textContent 는 그대로) */
body.viewer-only .etc-viewer-tools > .etc-viewer-index, body.viewer-only #etc1___vFull, body.viewer-only #svc___vFull, body.viewer-only #op___vFull { font-size: 0; padding: 0 4px; min-height: 24px; }   /* 글자 없이 아이콘만 — 이 규칙이 아래 #id 규칙보다 우선순위가 높아 10px 이면 글자가 다시 보인다 (대표님 "모바일에 텍스트없애") */
.etc-fit-btn { padding-left: 5px; padding-right: 5px; line-height: 16px; }   /* [맞춤] 은 ⤢ 기호 — 글자는 가늘어 굵은 SVG 로 (대표님 2026-09-21 "좀 굵게", #328) */
.etc-fit-btn::before { content: ''; display: inline-block; width: 14px; height: 14px; vertical-align: middle; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2019L19%205'/%3E%3Cpath%20d='M12%205h7v7'/%3E%3Cpath%20d='M12%2019H5v-7'/%3E%3C/svg%3E") center / 14px 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23000'%20stroke-width='2.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M5%2019L19%205'/%3E%3Cpath%20d='M12%205h7v7'/%3E%3Cpath%20d='M12%2019H5v-7'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
#etc1___vFull, #svc___vFull, #op___vFull { font-size: 0; }
#etc1___vFull::before, #svc___vFull::before, #op___vFull::before { content: ''; display: inline-block; width: 14px; height: 14px; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23222'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M3%209V3h6'/%3E%3Cpath%20d='M3%203l7%207'/%3E%3Cpath%20d='M15%203h6v6'/%3E%3Cpath%20d='M21%203l-7%207'/%3E%3Cpath%20d='M3%2015v6h6'/%3E%3Cpath%20d='M3%2021l7-7'/%3E%3Cpath%20d='M15%2021h6v-6'/%3E%3Cpath%20d='M21%2021l-7-7'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }   /* 네 귀 화살표 아이콘 (대표님 2026-09-21 그림) */
.etc-full #etc1___vFull::before, .etc-full #svc___vFull::before, .etc-full #op___vFull::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23222'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M10%204v6H4'/%3E%3Cpath%20d='M10%2010L3%203'/%3E%3Cpath%20d='M14%204v6h6'/%3E%3Cpath%20d='M14%2010l7-7'/%3E%3Cpath%20d='M4%2014h6v6'/%3E%3Cpath%20d='M10%2014l-7%207'/%3E%3Cpath%20d='M20%2014h-6v6'/%3E%3Cpath%20d='M14%2014l7%207'/%3E%3C/svg%3E"); }   /* 전체화면 중엔 안쪽 화살표 = 나가기 */
/* [INDEX] 는 PC 에서도 쓴다 (대표님 2026-09-23 "웹에도 목차표", 전체화면이든 아니든) — 부품-#341 */                                   /* [INDEX] 는 새 창(모바일)에서만 — PC 는 왼쪽 나무가 있다 (부품-#324) */
body.viewer-only .etc-viewer-tools > .etc-viewer-index { display: inline-block; order: 1; font-size: 0; }   /* 크기는 아래 #325, 글자 대신 목록 아이콘 (대표님 2026-09-21 그림, #327) */
.etc-viewer-tools > .etc-viewer-index::before { content: ''; display: inline-block; width: 14px; height: 14px; vertical-align: middle; background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23222'%20stroke-width='1.7'%3E%3Crect%20x='2'%20y='2.5'%20width='4.5'%20height='4.5'/%3E%3Cpath%20d='M9.5%203.5H22'/%3E%3Cpath%20d='M9.5%206.0H19'/%3E%3Crect%20x='2'%20y='9.5'%20width='4.5'%20height='4.5'/%3E%3Cpath%20d='M9.5%2010.5H22'/%3E%3Cpath%20d='M9.5%2013.0H19'/%3E%3Crect%20x='2'%20y='16.5'%20width='4.5'%20height='4.5'/%3E%3Cpath%20d='M9.5%2017.5H22'/%3E%3Cpath%20d='M9.5%2020.0H19'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }
/* 목차 판 (부품-#324): 그림 위에 겹치는 아래 판, 나무의 절 목록(sectionsHtml)을 그대로 */
.etc-index-panel { position: fixed; right: 18px; top: 120px; bottom: 18px; width: 330px; max-width: calc(100% - 28px); z-index: 30; display: flex; flex-direction: column; background: var(--card-bg, #fff); border-top: 2px solid var(--link, #1a5fb4); box-shadow: 0 -6px 18px rgba(0,0,0,.25); font-size: 14px; }
.etc-index-panel.hidden { display: none; }
.etc-index-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--border, #d0d7de); }
.etc-index-head .etc-dim { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.etc-index-x { font: inherit; font-size: 22px; line-height: 1; padding: 0 8px; background: transparent; border: 0; cursor: pointer; }
.etc-index-body { overflow: auto; padding: 4px 10px 10px; -webkit-overflow-scrolling: touch; }
.etc-index-body .etc-tree-sec { padding: 7px 6px; white-space: normal; }
.etc-index-body .etc-tree-node > summary { padding: 7px 0; }
/* 새 창·모바일은 아래 판(부품-#324 그대로) — 폭이 좁아 옆에 둘 자리가 없다 */
body.viewer-only .etc-index-panel, body.is-mobile .etc-index-panel { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; max-width: none; z-index: 50; max-height: 60vh; max-height: 60dvh; }
body.force-mobile .etc-index-panel { left: 50%; right: auto; width: 420px; transform: translateX(-50%); }
body.viewer-only .etc-find-in { width: auto; flex: 1 1 50px; min-width: 0; min-height: 26px; height: 26px; padding: 0 4px; }
body.viewer-only .etc-find-out { font-size: 10px; }
body.viewer-only .etc-viewer-tools > .etc-page-input { order: 2; width: 40px; text-align: right; margin-left: 0; }
body.viewer-only .etc-viewer-tools > .etc-dim { order: 3; }
.etc-lang-toggle { min-width: 40px; }                                 /* 영문 ⇄ 한글 단추 하나 (부품-#338, 옛 [영문][한글] 두 개 없앰). 글자가 바뀌어도 폭이 안 흔들리게 */
body.viewer-only #svc___langToggle { order: 7; margin-left: 0; }
body.viewer-only .etc-viewer-exit { order: 9; margin-left: 0; }
body.viewer-only .etc-pop-mini .etc-pop-row:nth-child(n+5) { display: none; }   /* 머리 다음 3줄만 (부품-#275) */
body.viewer-only.in-frame .etc-pop-mini { cursor: default; }
body.viewer-only.in-frame .etc-pop-mini .etc-pop-more { display: none; }   /* 비교분: '누르면 상세' 문구도 없음 (2026-09-21) */
.etc-pop-more { display: none; }
body.viewer-only .etc-pop-mini .etc-pop-more { display: block; font-size: 12px; color: #cfd6e0; padding-top: 2px; }
.etc-pg img.etc-pg-thumb { image-rendering: auto; }   /* 훑기용 썸네일 — .etc-pg img 규칙(absolute · 100%)을 그대로 씀 (부품-#279) */

/* 모델 대장 카드 (2026-09-20): 통합 모델 · 표지 줄 칩 · 책 p/n. 채운 칩 = 플래그십(통합 모델과 같은 이름), 나머지 = 하위 모델 */
.etc-reg-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.etc-alias-row { padding: 5px 6px; border-bottom: 1px solid var(--border); cursor: pointer; }
.etc-alias-row:hover { background: var(--header-bg); }
.etc-reg-head { font-size: 13px; line-height: 1.3; }
.etc-reg-cover { margin: 2px 0 1px; }
.etc-reg-cover .etc-chip { display: inline-block; margin: 1px 3px 1px 0; padding: 0 5px; font-size: 11px; line-height: 16px; cursor: inherit; white-space: nowrap; }
.etc-reg-cover .etc-chip-flag { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); }
.etc-reg-books { font-family: Consolas, monospace; font-size: 11px; color: var(--text-muted, #6b7280); }
.etc-reg-books span { display: inline-block; margin-right: 8px; white-space: nowrap; }
.etc-pg.etc-pg-fail::after { content: '↻'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 40px; color: #6b7280; }   /* 못 받은 쪽 표시 — 누르면 다시 (부품-#293) */

/* 메뉴얼 분류 창 — 마스터 모델 (모델관리-001~003, 2026-09-20) */
.etc-range-row select.etc-rg-model { min-width: 0; width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; padding: 1px 2px; line-height: 1.3; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
.etc-range-row.etc-rg-same select.etc-rg-model { display: none; }
.etc-range-row select.etc-rg-model.etc-rg-nomaster { border-color: #b00020; background: #fdecec; }      /* 마스터에 없는 이름 — 저장 막힘 */
.etc-model-opt.etc-model-nomaster { border-style: dotted; color: #b00020; cursor: pointer; }   /* 누르면 [모델 추가] 폼으로 (2026-09-21) */
.etc-model-opt.etc-model-nomaster input { visibility: hidden; width: 0; }
.etc-used-opt small { color: var(--text-muted, #6b7280); font-size: 10px; }
.etc-master-new .etc-chip { cursor: pointer; margin: 0 3px 0 0; }
.etc-master-form { display: grid; grid-template-columns: 60px 1fr 60px 1fr; gap: 4px 6px; align-items: center; padding: 6px 8px; margin: 4px 0; border: 1px dashed var(--border); border-radius: 6px; font-size: 12px; }
.etc-master-form input, .etc-master-form select { font: inherit; font-size: 12px; padding: 2px 5px; border: 1px solid var(--border); border-radius: 4px; min-width: 0; width: 100%; box-sizing: border-box; }
.etc-master-form .etc-master-foot { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.etc-master-foot .etc-feat { margin-left: 0; margin-right: auto; }   /* 폼 이름표는 왼쪽 */

.etc-ec-push { padding: 8px 10px; border-top: 1px solid var(--etc-line, #eee); }
.etc-ec-push .etc-ec-row { flex-wrap: wrap; }
.etc-ec-push .etc-ec-k { min-width: 96px; white-space: nowrap; }
.etc-ec-push .etc-ec-v { min-width: 0; flex: 1 1 auto; text-align: left; }
.etc-ec-push .etc-dim { flex: 1 0 100%; text-align: left; }
.etc-ec-confirm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.etc-ec-input { width: 64px; padding: 4px 6px; border: 1px solid var(--etc-line, #ccc); background: transparent; color: inherit; font: inherit; }
.etc-ec-input:disabled { opacity: .5; }
.etc-ec-log { max-height: 160px; overflow-y: auto; overflow-x: hidden; white-space: pre-wrap; overflow-wrap: anywhere; font: 11px/1.5 Consolas, monospace; padding: 6px; border: 1px solid var(--etc-line, #eee); }
/* ?mobile=1 (부품-#312): PC 브라우저에서 폰 화면 확인용 — 폰 폭(420px)으로 가운데 모아 보인다. 새 창 주소에도 따라간다 */
body.force-mobile #appShell, body.force-mobile #loginScreen { max-width: 420px; margin: 0 auto; }
/* 모바일 나무 페이지의 적용장비 컨테이너(.etc-fit-pop): 화면 아래 판, 모델은 열 대신 행으로 쌓음 (대표님 2026-09-21 "모바일에서는 팝업창이 행으로"). PC 는 열 그대로 */
body.is-mobile:not(.viewer-only) .etc-fit-pop { left: 0 !important; right: 0; top: auto !important; bottom: 60px; min-width: 0; max-width: none; max-height: 55vh; border-radius: 8px 8px 0 0; box-shadow: 0 -6px 18px rgba(0,0,0,.22); }
body.force-mobile:not(.viewer-only) .etc-fit-pop { left: 50% !important; right: auto; width: 420px; transform: translateX(-50%); }
body.is-mobile:not(.viewer-only) .etc-fit-pop-head { cursor: default; }
body.is-mobile:not(.viewer-only) .etc-fit-pop-body { flex-direction: column; flex-wrap: nowrap; gap: 8px; overflow-x: hidden; }
body.is-mobile:not(.viewer-only) .etc-fit-col { min-width: 0; width: 100%; }
body.is-mobile:not(.viewer-only) .etc-fit-note { max-width: none; white-space: normal; }
body.force-mobile.viewer-only .etc-split-right { max-width: 420px; margin: 0 auto; }
/* 모바일 부품리스트 (부품-#315): 표 → 줄마다 카드(품목코드 굵게 · 품목명 · 한글이름 · 코멘트 · 규격 작게). 관리 단추(TVH 연결·카탈로그 동기화·ECOUNT SYNC·수정)는 뺌 */
body.is-mobile:not(.viewer-only) .etc-toolbar { flex-wrap: wrap; gap: 6px; }
body.is-mobile:not(.viewer-only) .etc-toolbar .etc-search { flex: 1 1 100%; }
body.is-mobile:not(.viewer-only) #etc1___tvhConnect, body.is-mobile:not(.viewer-only) #etc1___tvhSync, body.is-mobile:not(.viewer-only) #etc1___ecSync,
body.is-mobile:not(.viewer-only) .etc-toolbar .etc-sync-status, body.is-mobile:not(.viewer-only) .etc-tvh-badge,
body.is-mobile:not(.viewer-only) .etc-tvh-box { display: none !important; }
body.is-mobile:not(.viewer-only) .etc-plist { table-layout: auto; }
body.is-mobile:not(.viewer-only) .etc-plist thead { display: none; }
body.is-mobile:not(.viewer-only) .etc-plist tbody tr { display: block; padding: 8px 6px; border-bottom: 1px solid var(--border); }
body.is-mobile:not(.viewer-only) .etc-plist td { display: block; width: auto !important; max-width: none; border: 0; padding: 1px 0; white-space: normal; overflow: visible; text-overflow: clip; }
body.is-mobile:not(.viewer-only) .etc-plist td:empty { display: none; }
body.is-mobile:not(.viewer-only) .etc-plist td.etc-c-code code { font-size: 14px; font-weight: 700; }
body.is-mobile:not(.viewer-only) .etc-plist td.etc-c-model { font-size: 12px; color: var(--text-muted, #6b7280); }
body.is-mobile:not(.viewer-only) .etc-plist td.etc-c-btn { display: none; }
body.is-mobile:not(.viewer-only) .etc-plist .etc-detail-btn { margin-left: 6px; }
/* 부품 줄을 카드로 펴는 규칙(#315)이 **그 안에 든 TVH 표까지** 펴 버렸다 — 대체품 여덟 칸이
   줄마다 하나씩 쌓여 무슨 값인지 알 수 없었다(2026-09-28). 안쪽 표는 표로 되돌리고,
   넓으면 **그 상자 안에서만** 옆으로 민다 (쪽 전체가 옆으로 밀리면 안 된다 — 화면규칙). */
body.is-mobile:not(.viewer-only) .etc-tvh-table { display: block; width: 100%; overflow-x: auto; table-layout: auto; }
body.is-mobile:not(.viewer-only) .etc-tvh-table thead { display: table-header-group; }
body.is-mobile:not(.viewer-only) .etc-tvh-table tbody { display: table-row-group; }
body.is-mobile:not(.viewer-only) .etc-tvh-table tbody tr { display: table-row; padding: 0; border-bottom: 0; }
body.is-mobile:not(.viewer-only) .etc-tvh-table th,
body.is-mobile:not(.viewer-only) .etc-tvh-table td { display: table-cell; width: auto !important; white-space: nowrap; border-bottom: 1px solid var(--border); padding: 3px 5px; }
body.is-mobile:not(.viewer-only) .etc-tvh-alts td:nth-child(4) { white-space: normal; min-width: 130px; }
body.is-mobile:not(.viewer-only) .etc-tvh-alts td:first-child { white-space: normal; min-width: 66px; max-width: 78px; }

/* IPC-품목 상세창 — 폰에서 **규격 칸이 밖으로 튀어나갔다** (대표님 2026-09-28).
   `.etc-c-model` 이 `width:220px; white-space:nowrap` 이라 칩이 한 줄로 늘어서고, 표가 375px 창에 441px 로 섰다.
   부품리스트는 이미 풀어 줬지만(줄 145) 이 표는 안 풀려 있었다. 아래 부품팝업처럼 **칩을 접어** 내린다.
   새 창(viewer-only)에서도 같은 창이 뜨므로 `:not(.viewer-only)` 를 걸지 않는다. */
body.is-mobile .etc-pn-table { table-layout: fixed; width: 100%; }
body.is-mobile .etc-pn-table th, body.is-mobile .etc-pn-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
body.is-mobile .etc-pn-table .etc-c-code { width: 31%; }
body.is-mobile .etc-pn-table .etc-c-model { width: 32%; white-space: normal; }
body.is-mobile .etc-pn-table .etc-spec-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }


/* ---- 머리 줄 단추 상자 규격 (대표님 2026-09-23 "아이콘 박스크기가 제각각", 부품-#339) ----
   글자 단추든 아이콘 단추든 PC 에서 22px 한 판 · 아이콘 그림은 14px · 좌우 여백 4px — 아이콘(14px)+여백이 정확히 22px 정사각 (대표님 "작게, 컨테이너 키우지 마").
   새 창(body.viewer-only)은 위쪽 제 규칙이 더 강하므로 그대로 얇게 간다. */
.etc-viewer-tools button, .etc-viewer-tools a,
.etc-viewer-tools .etc-report-btn, .etc-viewer-tools .etc-remap-btn,
.etc-viewer-tools .etc-ink-tools button, .etc-viewer-tools .etc-ink-tool-btn, .etc-viewer-tools .etc-ink-width {
  box-sizing: border-box; height: 22px; min-height: 22px; min-width: 22px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; vertical-align: middle; }
.etc-viewer-tools .etc-find { display: inline-flex; align-items: center; gap: 4px; }   /* 검색 묶음도 같은 줄 가운데 — 이게 없으면 돋보기가 글자 밑줄에 걸려 혼자 튄다 (대표님 2026-09-23) */
.etc-viewer-tools .etc-remap-btn { width: 22px; }
.etc-viewer-tools .etc-ink-color { box-sizing: border-box; width: 22px; height: 22px; min-height: 22px; padding: 0; }
.etc-viewer-tools button > svg { width: 14px; height: 14px; display: block; }
.etc-viewer-tools button:has(> svg) { width: 22px; padding: 0; }   /* 그림만 든 단추는 정사각 22x22 */
.etc-viewer-tools .etc-ink-tool-btn > svg { width: 13px; height: 13px; }
.etc-viewer-tools .etc-page-input, .etc-viewer-tools .etc-find-in { box-sizing: border-box; height: 22px; }
.etc-viewer-tools .etc-dim { line-height: 22px; white-space: nowrap; }
/* 위 한 판 규칙이 display 까지 정하므로, PC 에서 감춰야 할 단추는 여기서 다시 감춘다 (새 창 규칙이 더 강해 그쪽은 그대로 켜진다) */
.etc-viewer-tools > .etc-viewer-exit, .etc-viewer-tools > .etc-viewer-index { display: none; }   /* PC 목차는 왼쪽 세로 bar 로 (부품-#343) — 새 창 규칙이 더 강해 거기선 단추가 그대로 */
.etc-viewer-tools .etc-lang-toggle { min-width: 44px; }   /* 영문 ⇄ 한글 — 글자가 바뀌어도 폭 고정 (부품-#338) */

/* 목차 (PC, 부품-#341 · #343): 뷰어 왼쪽 빈 자리의 세로 bar 를 누르면 판이 펼쳐진다(다시 누르면 접힘) */
.etc-index-panel { border: 1px solid var(--border, #d0d7de); border-radius: 0; box-shadow: 2px 2px 0 rgba(0,0,0,.10); overflow: hidden;
  opacity: 0; transform: translateX(-6px); transition: opacity .12s linear, transform .12s linear; }   /* CMD 결: 짧고 각지게 (부품-#348) */
.etc-index-panel.is-open { opacity: 1; transform: none; }
.etc-index-head { border-bottom: 1px solid var(--border, #e3e7ec); }
body.viewer-only .etc-index-panel, body.is-mobile .etc-index-panel { border-radius: 0; transform: translateY(10px); }   /* 새 창은 아래에서 올라온다 */
body.viewer-only .etc-index-panel.is-open, body.is-mobile .etc-index-panel.is-open { transform: none; }
.etc-viewer-index.etc-on { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); }

/* 목차 여닫기 — 상자 없이 꺾쇠 하나 (대표님 2026-09-23 "손잡이 없애고 > 표시만 심플하게", 부품-#349) */
.etc-index-grip { position: fixed; z-index: 32; width: 16px; height: 44px; padding: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(70, 80, 92, .45); border-left: 0; background: rgba(255, 255, 255, .92); box-shadow: 1px 1px 0 rgba(0,0,0,.10);
  color: #39424e; cursor: pointer; transition: left .12s linear, color .12s linear, background .12s linear; }   /* 접혔을 때도 눈에 띄게 — 작은 탭 (대표님 2026-09-23) */
.etc-index-grip:hover { background: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); color: #fff; }
.etc-index-grip svg { display: block; transition: transform .12s linear; }
.etc-index-grip.etc-on svg { transform: rotate(180deg); }                 /* 펼쳐져 있으면 < 로 (접기) */
.etc-index-grip.hidden { display: none; }
body.viewer-only .etc-index-grip, body.is-mobile .etc-index-grip { display: none; }   /* 새 창·모바일은 머리 줄 [INDEX] + 아래 판 */

/* 목차 판 CMD 결 (대표님 2026-09-23 "너무 동글거린다", 부품-#348) */
/* 드로어 판 자체를 반투명으로 (대표님 2026-09-23) — 뒤 도면이 비쳐 보이되 글자는 흐릿해지지 않게 blur 한 겹 */
.etc-index-panel { background: rgba(255, 255, 255, .84); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.etc-index-head { background: rgba(240, 243, 246, .86); padding: 5px 8px; }
.etc-index-body { background: transparent; }
.etc-index-head > b { font-family: Consolas, monospace; font-size: 12px; letter-spacing: 1px; }
.etc-index-x { font-size: 16px; }

/* 목차 줄 촘촘하게 — PC (대표님 2026-09-23 "글자 작게, 행간 넓다", 부품-#350). 새 창·모바일은 손가락으로 눌러야 해 그대로 둔다 */
body:not(.viewer-only):not(.is-mobile) .etc-index-panel { font-size: 12px; }
body:not(.viewer-only):not(.is-mobile) .etc-index-body { padding: 2px 8px 8px; }
body:not(.viewer-only):not(.is-mobile) .etc-index-body .etc-tree-sec { padding: 1px 4px; line-height: 1.35; }
body:not(.viewer-only):not(.is-mobile) .etc-index-body .etc-tree-node > summary { padding: 1px 0; line-height: 1.35; }
body:not(.viewer-only):not(.is-mobile) .etc-index-body .etc-tree-children { margin-left: 8px; }
body:not(.viewer-only):not(.is-mobile) .etc-index-head { padding: 4px 8px; }

/* 조회 전용 계정(viewer): 보기만 — 고치는 단추·입력은 아예 안 보인다 (대표님 2026-09-23 "세팅도 수정 못 하게, 표지 관련 수정 막아놔", 부품-#354).
   서버는 이미 admin 이상만 받지만(ADMIN_POST), 눌러 놓고 403 을 보는 것도 막는다. */
body.ro-viewer .etc-edit-btn:not(.etc-tvh-price):not(.etc-tvh-again):not(.etc-pn-fetch):not(.filter-btn),   /* TVH 조회는 조회 계정도 (대표님 2026-09-23 "tvh 기능은 살려놔도 돼") */
/* **[Filter] 는 조회 계정도 쓴다** — 거르기는 **읽는 일**이지 고치는 일이 아니다. 네 목록에 [Filter] 를
   `etc-edit-btn` 으로 달면서 이 줄에 함께 걸려 **viewer 계정에는 필터 칸이 통째로 안 보였다**
   (대표님 2026-10-02 "kmrent 계정으로 들어가면 filter 없앴어?"). 쓰기 단추가 아닌 것은 여기서 뺀다. */
body.ro-viewer .etc-inline-save,
body.ro-viewer .etc-cmt-save,
body.ro-viewer .etc-cmt-lock,
body.ro-viewer .etc-name-btn,
body.ro-viewer .etc-model-del,
body.ro-viewer .etc-rg-del,
body.ro-viewer .etc-range-remark-btn,
body.ro-viewer .etc-missed-go,
body.ro-viewer .etc-missed-all,
body.ro-viewer .etc-remap-btn,

body.ro-viewer .etc-report-go { display: none !important; }
body.ro-viewer .etc-pop-cmt { display: none !important; }              /* IPC 코멘트(톱니) — 조회 계정은 창 자체가 없다 (부품-#357) */
body.ro-viewer .etc-ro, body.ro-viewer .etc-inline-in { background: transparent; border-color: transparent; color: inherit; cursor: default; }
body.ro-viewer .etc-cvhot, body.ro-viewer .etc-rowhot { cursor: default; }

/* 책 제목 줄 — 머리에서 그림 아래로, 오른쪽 정렬 (대표님 2026-09-23 "하단 텍스트 있는 곳 오른쪽 정렬로", 부품-#355) */
.etc-viewer-foot { display: flex; align-items: baseline; gap: 8px; margin: -2px 0 6px; min-width: 0; }
.etc-viewer-foot .etc-hot-status { flex: 1 1 auto; margin: 0; min-width: 0; }
.etc-viewer-foot > b, .etc-viewer-foot > .etc-dim { flex: 0 1 auto; margin-left: auto; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etc-viewer-foot > .etc-dim { margin-left: 0; font-weight: 400; }
body.viewer-only .etc-viewer-foot { display: contents; }   /* 새 창에서는 예전처럼 각자 한 줄 (order 로 자리) */

/* 문제 신고(설문) 창 — 조회 계정 [debug] (부품-#359). CMD 결: 각진 모서리·얇은 그림자 */
.etc-survey-pop { position: fixed; left: 16px; top: 120px; z-index: 60; width: 340px; max-width: calc(100vw - 28px); box-sizing: border-box;
  background: var(--card-bg, #fff); border: 1px solid var(--border, #d0d7de); box-shadow: 2px 2px 0 rgba(0,0,0,.10); font-size: 12px; }
.etc-survey-pop.hidden { display: none; }
.etc-survey-head { display: flex; align-items: center; gap: 6px; padding: 5px 8px; cursor: move; background: var(--header-bg, #f3f5f7); border-bottom: 1px solid var(--border, #d0d7de); }
.etc-survey-head > b { font-family: Consolas, monospace; letter-spacing: 1px; white-space: nowrap; }   /* 제목은 한 줄 */
.etc-survey-head .etc-dim { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etc-survey-q { padding: 8px 8px 4px; font-weight: 600; }
.etc-survey-items { display: flex; flex-wrap: wrap; gap: 3px; padding: 0 8px 6px; max-height: 148px; overflow: auto; }
.etc-survey-item { min-width: 26px; height: 22px; padding: 0 5px; font: inherit; font-size: 12px; border: 1px solid var(--border, #d0d7de); background: var(--card-bg, #fff); cursor: pointer; }
.etc-survey-item:hover { border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); }
.etc-survey-item.etc-on { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); }
.etc-survey-item.etc-survey-done { color: var(--text-muted, #9aa3ad); border-style: dashed; }
.etc-survey-none { padding: 0 8px 6px; }
.etc-survey-pick { padding: 4px 8px; border-top: 1px solid var(--border, #eef1f4); }
.etc-survey-kinds { display: flex; gap: 4px; padding: 6px 8px; }
.etc-survey-kind { flex: 1 1 auto; height: 24px; font: inherit; font-size: 12px; border: 1px solid var(--border, #d0d7de); background: var(--card-bg, #fff); cursor: pointer; }
.etc-survey-kind:hover { border-color: var(--link, #1a5fb4); color: var(--link, #1a5fb4); }
.etc-survey-kind.etc-survey-off { color: var(--text-muted, #9aa3ad); border-style: dashed; }   /* 번호를 고르기 전 (부품-#362) */
.etc-survey-etc { display: flex; gap: 4px; padding: 0 8px 6px; }
.etc-survey-etc.hidden { display: none; }
.etc-survey-text { flex: 1 1 auto; min-width: 0; font: inherit; font-size: 12px; padding: 2px 5px; border: 1px solid var(--border, #d0d7de); }
.etc-survey-send { height: 24px; padding: 0 8px; font: inherit; font-size: 12px; border: 1px solid var(--link, #1a5fb4); background: var(--link, #1a5fb4); color: #fff; cursor: pointer; }
.etc-survey-msg { padding: 0 8px 8px; }

/* 구간 줄 맨 앞 대표(플래그십) 라디오 — 구간과 모델을 한 줄로 (2026-09-25) */
.etc-rg-pick { display: inline-flex; align-items: center; justify-content: center; }
.etc-rg-pick input { margin: 0; }
.etc-rg-pick-off { display: block; }
.etc-reg-more > summary { cursor: pointer; color: var(--dim, #888); font-size: 12px; }

/* Model register — 모델이 행인 표 (대표님 2026-09-25 B안) */
#etc1___modelModal .etc-modal-box { max-width: min(96vw, 880px); }   /* 표가 한눈에 (2026-09-25 B안) */
#etc1___cvRanges { overflow-x: auto; }
.etc-reg-tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 12px; }
.etc-reg-tbl th { text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: .04em; color: var(--text-muted, #6b7280); padding: 0 6px 4px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.etc-reg-tbl td { padding: 3px 5px; border-bottom: 1px solid var(--border); vertical-align: top; }
.etc-reg-tbl tr:last-child td { border-bottom: none; }
.etc-reg-pick { width: 34px; text-align: center; padding-top: 7px !important; }
.etc-reg-name { width: 104px; padding-top: 7px !important; }
.etc-reg-node { width: 116px; }
.etc-reg-badge { width: 74px; white-space: nowrap; padding-top: 7px !important; }
.etc-reg-rgs { min-width: 230px; }
.etc-rg-add { font-size: 11px; padding: 1px 7px; margin-top: 2px; }
.etc-pill { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: 10.5px; line-height: 16px; border: 1px solid; }
.etc-pill-has { color: #0f766e; border-color: #0f766e; background: #e6f4f1; }
.etc-pill-new { color: #b45309; border-color: #b45309; background: #fdf2e3; }
/* 표 안의 구간 줄은 모델 칸이 빠졌다 — 근원 · from · ~ · to · × */
.etc-reg-rgs .etc-range-row { grid-template-columns: minmax(0, 1fr) 10px minmax(0, 1fr) 18px; }

.etc-reg-tbl select { max-width: 100%; font-size: 11.5px; padding: 1px 3px; }
.etc-reg-rgs .etc-range-row { gap: 2px; }
.etc-reg-rgs .etc-range-row input { font-size: 11.5px; padding: 1px 4px; }
.etc-reg-rgs .etc-rg-src { display: none; }
/* 같은 마디끼리 왼쪽에 띠 — 묶인 것이 눈에 보이게 */
.etc-reg-tr td:first-child { position: relative; }
.etc-reg-tr.etc-reg-grouped td:first-child::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--link, #1a5fb4); border-radius: 2px; }
.etc-reg-mname { font-family: Consolas, monospace; font-size: 12px; white-space: nowrap; }

/* [저장 디렉토리] — 이 책이 들어갈 폴더 (대표님 2026-09-25 '대표모델 개념 없이') */
.etc-savedir { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0 9px; font-size: 12px; }
.etc-savedir code { font-family: Consolas, monospace; font-size: 11.5px; color: var(--muted, #6a7684); }
.etc-savedir select { font-size: 12px; padding: 2px 6px; }
.etc-reg-tbl .etc-reg-name { width: auto; min-width: 104px; }

/* ===== 2026-09-25 Model register 최소화 (대표님 "화면 다 없애줘") — 되돌리려면 이 블록만 지운다 ===== */
#etc1___modelModal .etc-reg-step,
#etc1___modelModal .etc-report-ctx,
#etc1___pickWrap,
#etc1___regMore,
#etc1___autoNote { display: none !important; }
#etc1___modelModal .etc-modal-row:has(> #etc1___autoNote) { display: none !important; }
#etc1___modelStatus { font-size: 11.5px; }

/* 저장 디렉토리: 모델 위, 동력 아래 두 줄 (대표님 2026-09-25 "두줄로 해줘") */
.etc-sd-stack { display: inline-flex; flex-direction: column; gap: 2px; vertical-align: middle; }
.etc-sd-stack select { width: 100%; }
/* 나무 묶음 (나무정책-02): 평소엔 아무 표시도 없고, [설정] 을 누른 동안에만 줄을 끌 수 있다 */
.etc-tg-btn { margin-left: 6px; font-size: 11px; padding: 1px 7px; font-weight: 400; }
.etc-tg-btn.etc-on { border-color: var(--primary); color: var(--primary); }
.etc-tg-btn.etc-tg-held { color: var(--muted, #888); border-style: dashed; }   /* 남이 수정 중 — 단추에 누구인지 적힌다 (설정잠금-01) */
.etc-tg-barwrap { margin: 0 0 4px; }
.etc-tg-bar.hidden { display: none; }   /* style.css 29줄 규약: display 를 주는 클래스에는 .hidden 겹침도 같이 둔다 (2026-10-01) */
.etc-tg-bar { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; padding: 5px 7px; border: 1px dashed var(--border); background: var(--header-bg); }
.etc-tg-bar .etc-dim { font-size: 11px; line-height: 1.45; }
.etc-tg-acts { display: flex; gap: 4px; flex: 0 0 auto; }
.etc-tg-acts button { font: inherit; font-size: 11px; padding: 2px 9px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text); cursor: pointer; border-radius: 0; }
.etc-tg-acts .etc-tg-save { border-color: var(--primary); color: var(--primary); font-weight: 600; }
/* 모델 한 칸 = 블록(칩). 묶음 줄은 칩이 나란히 서고, 그 안의 모델 머리 줄도 같은 칩이다 */
.etc-tg-chip { display: inline-block; margin: 0 3px 0 0; padding: 0 6px; border: 1px solid var(--border); background: var(--card-bg); font-size: 11px; line-height: 17px; white-space: nowrap; }
.etc-tg-chip.etc-tg-on { cursor: grab; border-style: dashed; }
.etc-tg-chip.etc-tg-on:active { cursor: grabbing; }
.etc-tg-chip .etc-tg-x { margin-left: 6px; color: var(--text-muted); cursor: pointer; font-weight: 400; }
.etc-tg-chip .etc-tg-x:hover { color: var(--danger); }
.etc-tg-name { font-weight: 600; margin-right: 5px; }
.etc-tg-edit [data-tg-kind="model"] > summary, .etc-tg-edit [data-tg-kind="group"] > summary, .etc-tg-edit [data-tg-kind="scope"] > summary { outline: 1px dotted var(--border); outline-offset: 1px; }   /* 받는 자리 */
.etc-tg-edit .etc-tg-over > summary { background: var(--header-bg); outline: 1px solid var(--primary); color: var(--primary); }
.etc-tg-edit .etc-tg-chip.etc-tg-over { background: var(--primary); border-color: var(--primary); color: #fff; }
/* 끼우는 자리: 칩은 왼쪽·오른쪽, 줄은 위·아래에 파란 선 하나 */
.etc-tg-edit .etc-tg-chip.etc-tg-ins-a { box-shadow: -2px 0 0 0 var(--primary); }
.etc-tg-edit .etc-tg-chip.etc-tg-ins-b { box-shadow: 2px 0 0 0 var(--primary); }
.etc-tg-edit details.etc-tg-ins-a > summary { box-shadow: 0 -2px 0 0 var(--primary); }
.etc-tg-edit details.etc-tg-ins-b > summary { box-shadow: 0 2px 0 0 var(--primary); }
/* 묶음을 통째로 옮기는 손잡이 */
.etc-tg-handle { display: inline-block; margin-right: 5px; padding: 0 5px; border: 1px solid var(--border); color: var(--text-muted, #6b7280); background: var(--card-bg); font-size: 11px; line-height: 17px; cursor: grab; }
.etc-tg-handle:active { cursor: grabbing; }

/* ---- 쪽 위 포스트잇 메모 (메모-001~004, 2026-09-27) · 로직은 static/memo.js ---- */
/* 머리 줄 그림 단추는 **다 같은 색**이다 (대표님 2026-09-28 "색상이 묘하게 다르네? 좀 통일시켜").
   '이 쪽에 메모가 있나' 는 흐리기가 아니라 **파랑 + 개수**로만 가른다 — 흐린 색은 꺼진 단추로 읽힌다. */
.memo-btn { padding: 0 5px; min-height: 24px; line-height: 1; vertical-align: middle; }
.memo-btn svg { vertical-align: middle; stroke: currentColor; }
.memo-btn.memo-has { color: var(--link, #1a5fb4); border-color: var(--link, #1a5fb4); opacity: 1; font-weight: 600; }
.memo-btn.etc-on { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); opacity: 1; }
.memo-btn:disabled { opacity: .35; cursor: default; }
.memo-btn-n { font-size: 11px; margin-left: 3px; }

body.memo-aiming .etc-pg, body.memo-aiming .svc-pg { cursor: crosshair; }

/* 핀 — 평소엔 작게, 누르면 말풍선 (대표님 2026-09-27) */
.memo-pin { position: absolute; z-index: 4; transform: translate(-50%, -100%);
            min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px 9px 9px 2px;
            border: 1px solid #b58900; background: #ffd94a; color: #3a2f00;
            font: inherit; font-size: 11px; font-weight: 700; line-height: 16px; cursor: pointer;
            box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.memo-pin:hover { background: #ffe680; }
.memo-pin-new { background: #fff3b0; border-style: dashed; cursor: default; }

/* 말풍선 */
.memo-pop { position: fixed; z-index: 75; width: min(340px, 92vw); max-height: 70vh; overflow: auto;
            background: var(--card-bg, #fff); color: inherit; border: 1px solid var(--border, #d0d7de);
            border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.22); padding: 8px 10px; }
.memo-pop.hidden { display: none; }
.memo-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 5px; }
.memo-head b { font-size: 12px; }
.memo-who { font-size: 11px; color: var(--text-muted, #6b7280); }
.memo-x { margin-left: auto; border: 0; background: transparent; cursor: pointer; font-size: 14px; line-height: 1; color: inherit; }
.memo-text { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.memo-in, .memo-rep-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 13px; padding: 4px 6px;
            border: 1px solid var(--border, #d0d7de); border-radius: 4px; background: var(--card-bg, #fff); color: inherit; resize: vertical; }
.memo-acts { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
.memo-acts .memo-hint { font-size: 11px; color: var(--text-muted, #6b7280); margin-right: auto; }
.memo-acts button { font: inherit; font-size: 11px; padding: 2px 8px; border: 1px solid var(--border, #d0d7de);
            border-radius: 4px; background: var(--card-bg, #fff); color: inherit; cursor: pointer; }
.memo-acts .memo-save { background: var(--link, #1a5fb4); color: #fff; border-color: var(--link, #1a5fb4); font-weight: 600; }
.memo-acts .memo-del { color: #b3261e; }
.memo-reps { margin-top: 7px; border-top: 1px solid var(--border, #d0d7de); padding-top: 5px; }
.memo-rep { display: flex; align-items: baseline; gap: 5px; padding: 2px 0; }
.memo-rep-t { font-size: 12px; flex: 1 1 auto; white-space: pre-wrap; word-break: break-word; }
.memo-rep-x { border: 0; background: transparent; cursor: pointer; font-size: 11px; color: var(--text-muted, #6b7280); }
.memo-new { display: flex; gap: 4px; align-items: flex-end; margin-top: 6px; }
.memo-rep-go { font: inherit; font-size: 11px; padding: 3px 8px; border: 1px solid var(--border, #d0d7de);
            border-radius: 4px; background: var(--card-bg, #fff); color: inherit; cursor: pointer; white-space: nowrap; }

/* 크게 볼 때 덧대는 것 (부품-#401): 조각은 그 자리만, 벡터는 쪽 전체 — 둘 다 동그라미·펜보다 아래 */
.etc-pg-tile { position: absolute; display: block; pointer-events: none; }
.etc-pg-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; object-fit: contain; }   /* 화면-01 */

/* PDF 속성 제목 (CAT-011) — 누르면 이름 칸으로 가져온다. 눌러지는 글자라는 것을 밑줄로 알린다 */
.etc-pdf-title { cursor: pointer; text-decoration: underline dotted; }

/* 분류관리 창 (CAT-012) — 분류·제조사 두 칸을 나란히. 줄은 [이름 · 쓰는 수 · ✕] 셋 */
.cat-mst-cols { display: flex; gap: 16px; padding: 4px 12px 0; }
.cat-mst-col { flex: 1 1 0; min-width: 0; }
.cat-mst-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line, #e5e7eb); border-radius: 3px; }
.cat-mst-row { display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-bottom: 1px solid var(--line, #f1f2f4); }
.cat-mst-row:last-child { border-bottom: 0; }
.cat-mst-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cat-mst-used { flex: 0 0 auto; min-width: 18px; text-align: right; }
.cat-mst-del { flex: 0 0 auto; padding: 0 6px; }
.cat-mst-add { display: flex; gap: 6px; margin-top: 6px; }
.cat-mst-add input { flex: 1 1 auto; min-width: 0; }
/* 빈 분류 줄은 흐리게 (CAT-014) — 있지만 아직 안 꽂힌 갈래라는 표시 */
.cat-grp-empty > summary { color: var(--text-muted, #6b7280); }
.cat-empty-grp { padding: 2px 0 2px 14px; }

/* 카탈로그 [설정] 모드 (CAT-015) — **모델 나무의 칩을 그대로 쓴다**(.etc-tg-chip.etc-tg-on: 점선 테두리·grab 커서).
   여기서 새 모양을 만들지 않는다. 고르기(다중선택)는 기준에 없으므로 두지 않는다 (2026-10-01) */
.cat-arranging .cat-book .etc-tree-open, .cat-arranging .cat-book .cat-edit { display: none; }
/* 설정 모드에서 분류 줄도 끈다 (CAT-018) — 모델 나무의 묶음 줄과 같은 손 모양 */
.cat-arranging summary[data-grow] { cursor: grab; }

/* OEM parts (OEM-001~) — 표는 Parts list 와 같은 모양(.etc-plist). 단가만 오른쪽 맞춤 */
.etc-plist td.etc-num { text-align: right; }

/* Other parts list (CATP-001) — 추출본 줄. 사람이 확인한 줄은 옅은 표시, 출처 창은 책·쪽 한 줄씩 */
.cp-ok td:first-child { border-left: 3px solid var(--link, #1a5fb4); }
.cp-maker { font-size: 10px; border: 1px solid var(--border); padding: 0 3px; }
.cp-src-row { padding: 4px 0; border-bottom: 1px solid var(--line, #f1f2f4); }
.cp-src-row:last-child { border-bottom: 0; }
.cp-raw { font-size: 11px; overflow-wrap: anywhere; }
.cp-brand { font-size: 11px; }   /* 품목코드 아래 제조사 — Maker parts list 의 발췌 메이커 자리와 같다 */
