/* ============================================================
   Components — design/components.md와 1:1
   ============================================================ */

/* ---------- 카드 ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-card); box-shadow: var(--sh-card);
}
.card + .card, .card + .table-wrap, .table-wrap + .card { margin-top: var(--s-6); }
/* D692 — 카드 머리: 시안의 «좌측 청록 강조 막대 + 제목 18» · 높이 64 · 오른쪽 캡션/밑줄 링크 */
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 64px; padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--c-line);
}
.card__head .h2 { position: relative; padding-left: 14px; }
.card__head .h2::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 18px; margin-top: -9px;
  border-radius: 1px; background: var(--c-primary);
}
.card__head-left { display: flex; align-items: baseline; gap: var(--s-3); min-width: 0; }
.card__caption { font-size: var(--fs-caption); color: var(--c-text-mute); white-space: nowrap; }
.card__body { --card-pad: var(--s-6); padding: var(--card-pad); }
.card--flush .card__body { padding: 0; }
/* 카드 머리 오른쪽 «전체 보기» 류 링크 — 시안: 청록 굵은 글자 + 밑줄(화살표 없음) */
.link-more { font-size: var(--fs-table); font-weight: 700; color: var(--c-primary-text); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.link-more:hover { color: var(--c-primary-hover); }

/* ---------- 진행 막대 (D522 — 일괄 처리 진행 표시) ----------
   200건 규모의 일괄 서명·발송은 처리에 시간이 걸린다(사용자 지적 2026-09-09) — 진행 모달이 이 막대로 처리량을 보여 준다. */
.progress { height: 8px; border-radius: 999px; background: var(--c-line); overflow: hidden; }
.progress__fill { height: 100%; width: 0; border-radius: 999px; background: var(--c-primary); transition: width .12s linear; }
.progress__fill.is-done { background: var(--c-success); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 20px; border-radius: var(--r-ctrl);   /* D1331 — 가이드 Medium 40 · 14 Bold · 좌우 20 · r-4 */
  font-size: var(--fs-body); font-weight: 700; border: 1px solid transparent;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap; user-select: none;
}
/* D1331 — 가이드 Disabled: 투명도가 아니라 회색 채움(gray/100 · 글자 gray/400 · 보더 gray/200) */
.btn:disabled { cursor: not-allowed; pointer-events: none; background: var(--c-fill); color: var(--c-disabled); border-color: var(--c-line); }

/* ---------- 버튼 힌트 툴팁 ----------
   비활성 버튼이 "왜 아직 누를 수 없는지" 알리는 안내.
   `.btn:disabled`는 pointer-events가 없어 버튼 자신에는 걸 수 없으므로(포인터가 부모로 통과한다)
   감싸는 `.btn-hint`에 data-tip을 두고 그 hover로 띄운다.
   위쪽으로 띄우는 이유 — 이 버튼들은 화면 하단 액션바에 있어 아래로 띄우면 창 밖으로 잘린다. */
.btn-hint { position: relative; display: inline-flex; }
.btn-hint[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); right: 0;
  width: max-content; max-width: 300px;
  padding: 8px 10px; border-radius: var(--r-ctrl);
  background: var(--c-text); color: var(--c-on-dark);
  font-size: var(--fs-caption); font-weight: 400; line-height: 1.55; text-align: left; white-space: normal;
  box-shadow: var(--sh-drop);
}
.btn-hint[data-tip]::before {
  content: ""; position: absolute; bottom: calc(100% + 3px); right: 24px;
  border: 5px solid transparent; border-top-color: var(--c-text);
}
.btn-hint[data-tip]::after, .btn-hint[data-tip]::before {
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 40;
  transition: opacity .15s ease, visibility .15s;
}
.btn-hint[data-tip]:hover::after, .btn-hint[data-tip]:hover::before { opacity: 1; visibility: visible; }
.btn--primary { background: var(--c-primary); color: var(--c-on-primary); }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--primary:active { background: var(--c-primary-pressed); }
.btn--secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line-strong); }
.btn--secondary:hover { background: var(--c-surface-sub); border-color: var(--gray-400); }
.btn--secondary:active { background: var(--c-fill); }
.btn--outline { background: var(--c-surface); color: var(--c-primary-deep); border-color: var(--c-primary); }   /* 가이드 Outline — 강조 보조·미리보기·연계 */
.btn--outline:hover { background: var(--c-primary-soft); }
.btn--outline:active { background: var(--c-primary-soft-hover); }
.btn--ghost, .btn--text { color: var(--c-primary-text); padding: 0 10px; }   /* 가이드 Text — 링크형·계약서 이력·회차 보기 */
.btn--ghost:hover, .btn--text:hover { background: var(--c-primary-soft); }
.btn--ghost:active, .btn--text:active { background: var(--c-primary-soft-hover); }
.btn--ghost:disabled, .btn--text:disabled { background: none; border-color: transparent; }
.btn--danger { background: var(--c-surface); color: var(--c-danger-strong); border-color: var(--c-danger); }   /* 가이드 Danger Outline — 보조·계약 중지·서명 거부 */
.btn--danger:hover { background: var(--c-danger-soft); }
.btn--danger:active { background: color-mix(in srgb, var(--c-danger) 16%, var(--c-surface)); }
.btn--danger-fill, .btn--seal { background: var(--c-seal); color: var(--c-on-primary); }   /* 가이드 Danger — 위험·서명 액션·계약자 서명 */
.btn--danger-fill:hover, .btn--seal:hover { background: var(--c-seal-hover); }
.btn--danger-fill:active, .btn--seal:active { background: var(--c-seal-pressed); }
/* 크기 — 가이드 §03 Size: xLarge 52/16 · Large 44/15 · mLarge 42/15 · Medium 40/14(기본) · Small 38/13 · xSmall 32/13. Large 이상 Bold · Small 이하 SemiBold.
   레거시 .btn--sm(32)은 xSmall과 같다 */
.btn--xl { height: 52px; font-size: var(--fs-lg); }
.btn--lg { height: 44px; font-size: var(--fs-body-l); }
.btn--ml { height: 42px; font-size: var(--fs-body-l); }
.btn--s { height: 38px; font-size: var(--fs-table); font-weight: 600; }
.btn--sm, .btn--xs { height: 32px; font-size: var(--fs-table); font-weight: 600; }
/* 표 안 액션 묶음 — 한 셀에 버튼이 둘 이상일 때 줄바꿈 없이 가운데로 모은다(D169 진행 목록 «품의 결재» 열) */
.cell-actions { display: inline-flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
/* 아이콘 단독 버튼 — 가이드 §07: 38(Medium) · 32(Small) · aria-label + Hover Tooltip 필수 */
.btn-icon { width: 38px; height: 38px; padding: 0; border: 1px solid var(--c-line-strong); border-radius: var(--r-ctrl); background: var(--c-surface); color: var(--c-text-sub); display: inline-flex; align-items: center; justify-content: center; }
.btn-icon:hover { background: var(--c-fill); color: var(--c-text); }
.btn-icon:active { background: var(--c-line); }
.btn-icon:disabled { background: var(--c-fill); color: var(--c-disabled); border-color: var(--c-line); cursor: not-allowed; }
.btn-icon--sm { width: 32px; height: 32px; }
/* 처리 중 — 가이드 §07: 클릭 비활성 + 스피너(0.3초 이상 Loading · 중복 실행 위험 액션은 재클릭 차단) */
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.spinner { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--c-line); border-top-color: var(--c-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--block { width: 100%; }
.btn .ico { font-size: 15px; line-height: 1; }
.btn .svg-ico { flex: none; }

/* ---------- 입력 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* .field의 display:flex가 브라우저 기본 [hidden]{display:none}보다 우선해 hidden이 먹지 않던 문제 */
.field[hidden] { display: none; }
/* D598 — 같은 이유로 .btn의 display:inline-flex가 [hidden]을 덮는다(내 정보 팝업의 탭별 푸터 버튼) */
.btn[hidden] { display: none; }
.field__label { font-size: var(--fs-table); line-height: 18px; color: var(--c-text); font-weight: 700; }
/* D742 — ~~.field__chks(검색 카드 안 체크박스 묶음 · 체결 목록 «이행 조건» D648)~~ 는 칸 삭제로 읽는 곳이 없어 걷어냈다 */
.input, .select, .textarea {
  height: 40px; padding: 0 12px; border: 1px solid var(--c-line-strong);   /* D692 — 시안 컨트롤 높이 40 */
  border-radius: var(--r-ctrl); background: var(--c-surface); font-size: var(--fs-body);
  width: 100%; min-width: 0;
}
.textarea { height: auto; padding: 10px 12px; line-height: 20px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-focus-ring);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-mute); }
/* 날짜 입력 — 네이티브 캘린더 피커 사용, 다른 인풋과 서체·높이 통일 */
.input[type="date"] { font-family: inherit; color: var(--c-text); }
.input[type="date"]:invalid, .input[type="date"]:not(:focus):placeholder-shown { color: var(--c-text-mute); }
.input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .55; }
.input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }
.input:hover:not(:disabled):not([readonly]):not(:focus), .select:hover:not(:disabled):not(:focus), .textarea:hover:not(:disabled):not(:focus) { border-color: var(--gray-400); }
.input[readonly], .input:disabled, .select:disabled, .textarea:disabled {
  background: var(--c-fill); border-color: var(--c-line); color: var(--c-text-sub);   /* D1331 — 가이드 Disabled: gray/100 채움 */
}
.input.error, .select.error, .textarea.error { border-color: var(--c-danger); }
.field__error { font-size: var(--fs-caption); color: var(--c-danger); display: none; }
.field.has-error .field__error { display: block; }
.field__help { font-size: var(--fs-caption); color: var(--c-text-mute); }
/* D1331 — 가이드 §04: 도움말은 ⓘ, 오류는 ● 아이콘을 앞세운다(색 + 아이콘 병행) */
.field__help::before, .field__error::before {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 4px; vertical-align: -2px; background: currentColor;
}
.field__help::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.4'/%3E%3Cpath d='M8 7.2v3.6M8 4.9v.1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.4'/%3E%3Cpath d='M8 7.2v3.6M8 4.9v.1'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }
.field__error::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zM7.2 4h1.6v5H7.2zm0 6.4h1.6V12H7.2z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zM7.2 4h1.6v5H7.2zm0 6.4h1.6V12H7.2z'/%3E%3C/svg%3E") center / contain no-repeat; }
.textarea__count { display: block; text-align: right; font-size: var(--fs-caption); color: var(--c-text-mute); margin-top: 4px; }   /* 가이드 Textarea 0 / 500 카운터 */
.select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2355707C' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px;
}
.input--amount { text-align: right; font-feature-settings: "tnum"; }
.input-group { display: flex; gap: var(--s-2); align-items: center; }
.input-group .input, .input-group .select { flex: 1; }
.input-suffix { color: var(--c-text-sub); font-size: var(--fs-table); flex: none; }
.checkbox, .radio { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-body); cursor: pointer; }
.checkbox input, .radio input { width: 17px; height: 17px; accent-color: var(--c-primary); margin: 0; cursor: pointer; }
.checkbox-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; min-height: 36px; }
/* D799(사용자 지시 2026-09-15 «토글 버튼으로 디자인 변경») — 토글 스위치: 켜기/끄기 한 칸을 바로 바꾸는 표 안 제어(매뉴얼 관리 «노출»).
   <button type="button" class="switch is-on" role="switch" aria-checked="true"> + .switch__knob · 켜짐 = Primary 트랙 · 꺼짐 = 강한 선 색 · 토큰만 사용 */
.switch { position: relative; display: inline-block; flex: none; width: 44px; height: 24px;   /* D1331 — 가이드 Toggle 44×24 · r-full */ padding: 0; border: 0; border-radius: var(--r-badge);
  background: var(--c-line-strong); cursor: pointer; vertical-align: middle; transition: background-color .15s ease; }
.switch__knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-surface);
  box-shadow: var(--sh-card); transition: transform .15s ease; }
.switch.is-on { background: var(--c-primary); }
.switch.is-on .switch__knob { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.switch:disabled { opacity: .5; cursor: not-allowed; }   /* 가이드 Disabled On/Off — 트랙을 옅게 */

/* D1331 — 체크박스·라디오(가이드 §04): 16px · 체크박스 r-4 · Off(gray/400 테두리) · On(Primary 채움) · Indeterminate(— 표시) · Disabled Off/On(옅게).
   네이티브 모양 대신 그린다 — 체크 표시는 마스크라 색 토큰만 쓴다 */
input[type="checkbox"], input[type="radio"] {
  appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 16px; height: 16px; margin: 0;
  border: 1.5px solid var(--gray-400); background: var(--c-surface); cursor: pointer; vertical-align: -3px;
}
input[type="checkbox"] { border-radius: var(--r-ctrl); }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not(:disabled), input[type="radio"]:hover:not(:disabled) { border-color: var(--c-primary); }
input[type="checkbox"]:checked, input[type="checkbox"]:indeterminate { background: var(--c-primary); border-color: var(--c-primary); }
input[type="checkbox"]:checked::before, input[type="checkbox"]:indeterminate::before {
  content: ""; position: absolute; inset: 0; background: var(--c-on-primary);
  -webkit-mask: var(--chk) center / 12px no-repeat; mask: var(--chk) center / 12px no-repeat;
}
input[type="checkbox"]:checked { --chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.4 6.4l2.4 2.4 4.8-5.2' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type="checkbox"]:indeterminate { --chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6h6.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
input[type="radio"]:checked { border-color: var(--c-primary); background: var(--c-primary); box-shadow: inset 0 0 0 3px var(--c-surface); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { background: var(--c-fill); border-color: var(--c-line); cursor: not-allowed; }
input[type="checkbox"]:disabled:checked { background: var(--c-disabled); border-color: var(--c-disabled); }
input[type="radio"]:disabled:checked { background: var(--c-disabled); border-color: var(--c-disabled); box-shadow: inset 0 0 0 3px var(--c-fill); }

/* 기간 입력 + 숏컷 */
.daterange { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.daterange .input { width: 140px; flex: none; padding: 0 10px; }
/* D943 — 폼 한 칸 폭을 채우는 기간 입력(오프라인 계약서 등록 팝업 · 2열 폼의 반 칸) — 시작·종료 입력이 칸을 반씩 나눈다(고정 140px×2는 반 칸 밖으로 삐져나온다) */
.daterange--fill .input { flex: 1; width: auto; min-width: 0; }
.daterange__sep { color: var(--c-text-mute); }
.daterange__shortcuts { display: flex; gap: 6px; margin-left: 8px; }
.chip-btn {
  height: 36px; padding: 0 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-ctrl);
  font-size: var(--fs-table); color: var(--c-text-sub); background: var(--c-surface);
}
.chip-btn:hover { background: var(--c-surface); border-color: var(--c-text-sub); color: var(--c-text); }   /* 가이드 Chip Tab Hover — 테두리를 진하게 */
.chip-btn:disabled { color: var(--c-disabled); border-color: var(--c-line); cursor: not-allowed; }
.chip-btn.active { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-deep); font-weight: 700; }

/* 파일 첨부 */
/* D692 — 시안: 첨부 칸은 점선 상자(버튼 + 허용 형식 안내) · 올린 파일은 둥근 칩으로 한 줄에 */
.filebox__drop {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 8px 12px;
  border: 1px dashed var(--c-line-strong); border-radius: var(--r-ctrl); background: var(--c-surface-sub);
}
.filebox__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.filebox__list:empty { display: none; }
.filebox__item {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 12px;
  border: 1px solid var(--c-line); border-radius: var(--r-badge); background: var(--c-surface);
  font-size: var(--fs-table); color: var(--c-text);
}
.filebox__item .rm { color: var(--c-text-mute); font-size: var(--fs-caption); padding: 2px 4px; }
.filebox__item .rm:hover { color: var(--c-danger); }

/* ---------- 검색 카드 ---------- */
/* D692 — 시안: 검색 카드 = «회색 라벨 셀 | 입력» 칸이 줄마다 채워지는 표 + 하단 행(조회 범위 · [초기화][조회]).
   칸 너비는 조건마다 다르고(시안도 행마다 칸 위치가 다르다) 줄 끝 칸이 남는 폭을 채운다(flex-wrap).
   첫 칸의 왼쪽 선이 카드 테두리와 겹치도록 격자를 1px 당긴다(선 두 줄 방지).
   D737(사용자 지시 2026-09-15 «고정 열 격자로 다시 짜서 라인 맞춰줘») — 고정 열 격자다: 열 수는 카드 폭이 정하고(한 열 최소 413px = w240·소속 고정 칸
   → 1920 기준 3열 · 1368·1280 2열) 모든 칸 경계선이 열 경계에 선다. 칸이 차지할 열 수(넓은 칸 2열 · 줄 끝 칸이 남는 열 채움)는 EC.ui.searchGridFit가 정한다.
   ~~D692 «칸 너비는 조건마다 다르고 줄 끝 칸이 남는 폭을 채운다(flex-wrap)»~~ · ~~D735 «한 줄의 칸이 남는 폭을 같은 몫으로»~~ 는 칸 수가 다른 줄·기간 칸이 든 줄에서 선이 어긋나 대체. */
.search-card { padding: 0; }
.search-card__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(413px, 1fr)); gap: 0; margin-left: -1px; }
.search-card__grid > .field {
  flex-direction: row; align-items: stretch; gap: 0; min-height: 58px;
  border-left: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.search-card__grid > .field > .field__label {
  flex: none; width: 140px; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px;
  padding: 8px 16px; background: var(--c-surface-sub); border-right: 1px solid var(--c-line);
}
.search-card__grid > .field:first-child > .field__label { border-top-left-radius: calc(var(--r-card) - 1px); }
.search-card__grid > .field > :not(.field__label) { align-self: center; flex: 1 1 auto; min-width: 0; margin: 9px 16px; }
/* D737 — ~~field--w130~260 · field--locked 칸 최소 폭~~ 은 열 폭(≥ 413px)이 대신한다. w 클래스는 이제 «한 열 칸» 표시로만 읽힌다(EC.ui.searchGridFit) */
/* 검색 카드 뒤 필터 배너(서명기한 임박 · 만료예정 등) — 카드와 결과 카드 사이에 한 줄 */
.search-card ~ .banner { margin: var(--s-4) 0 0; }
.ct-kind { color: var(--c-text-sub); white-space: nowrap; }
.search-card__actions {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2);
  padding: 12px var(--s-5); margin: 0;
}
/* [초기화]·[조회] 선 아이콘 — 목록 화면 마크업을 건드리지 않고 공용으로 붙인다(마스크 = 글자색) */
.search-card__actions [data-reset]::before, .search-card__actions [data-search]::before {
  content: ""; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.search-card__actions [data-reset] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12a7.5 7.5 0 1 0 2.2-5.3'/%3E%3Cpath d='M4.5 4.5v4h4'/%3E%3C/svg%3E"); }
.search-card__actions [data-search] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.3-4.3'/%3E%3C/svg%3E"); min-width: 96px; }
/* 버튼 앞 선 아이콘 — data-ico="download|help|clip|pen" (프로토타입 EC.ui.icon 과 같은 모양 · 마스크 = 글자색) */
.btn[data-ico]:not(.is-loading)::before {
  content: ""; width: 15px; height: 15px; flex: none; background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.btn[data-ico="download"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='M7 10.5l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E"); }
.btn[data-ico="clip"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5l-8.2 8.2a5 5 0 0 1-7-7l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.5 8.5a1.7 1.7 0 0 1-2.4-2.4l7.8-7.8'/%3E%3C/svg%3E"); }
.btn[data-ico="pen"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20l1-4.5L15.5 5a2.1 2.1 0 0 1 3 3L8 18.5z'/%3E%3Cpath d='M13.5 7l3 3'/%3E%3C/svg%3E"); }
.btn[data-ico="help"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14v-2a8 8 0 0 1 16 0v2'/%3E%3Crect x='3' y='13' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='13' width='4' height='6' rx='1.5'/%3E%3Cpath d='M19 19c0 1.6-1.9 2.5-5 2.5'/%3E%3C/svg%3E"); }
/* 조회 범위 안내는 하단 행 왼쪽에 둔다(시안) — 카드 밖 띠 모양 대신 강조 막대 + 한 줄 */
.search-card__actions .scope-note { margin: 0 auto 0 0; padding: 0 0 0 12px; background: none; border: 0; border-left: 3px solid var(--c-primary); border-radius: 0; }
/* 기간 필드 앞 강제 줄바꿈 — 라벨 셀 표에서는 칸이 스스로 줄을 채우므로 쓰지 않는다 */
.search-card__grid .search-card__break { display: none; }
.field--locked .input, .field--locked .select { background: var(--c-fill); }
.locked-hint { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-caption); font-weight: 500; color: var(--c-text-mute); white-space: nowrap; }

/* ---------- 상태 칩 필터 ---------- */
.chips { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
/* D725(사용자 지시 2026-09-15 «상하좌우 여백 추가») — 검색 카드 안에 둔 칩 줄(1:1 문의 목록 · FAQ)은 카드 패딩이 0이라(D692) 왼쪽·아래 테두리에 붙었다 → 안쪽 여백 */
.search-card > .chips { margin: 0; padding: var(--s-4) var(--s-5); }
.chip {
  height: 30px; padding: 0 12px; border-radius: var(--r-badge);
  border: 1px solid var(--c-line); background: var(--c-surface);
  font-size: var(--fs-table); color: var(--c-text-sub); display: inline-flex; align-items: center; gap: 6px;
}
.chip b { font-weight: 700; font-feature-settings: "tnum"; }
.chip:hover { background: var(--c-surface-sub); }
.chip.active { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary-text); font-weight: 600; }
/* D692 — 목록 상태 필터는 결과 카드 머리의 밑줄 탭이다(시안 «전체 10 · 임시저장 3 …») — 툴바·표와 한 카드로 이어 붙는다 */
.chips--tabs {
  flex-wrap: nowrap; gap: 0; overflow-x: auto; margin-top: var(--s-6); padding: 0 var(--s-4);
  background: var(--c-surface); border: 1px solid var(--c-line); border-bottom: 0;
  border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: inset 0 -1px 0 var(--c-line);
}
.chips--tabs .chip {
  height: 54px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; font-size: var(--fs-body-l); color: var(--c-text-sub); gap: 8px; white-space: nowrap; flex: none;   /* 가이드 Body L 15 — 탭 */
}
.chips--tabs .chip b { font-weight: 600; color: var(--c-text-mute); }
.chips--tabs .chip:hover { background: var(--c-fill); color: var(--c-text); border-bottom-color: var(--c-line-strong); }   /* 가이드 Line Tab Hover */
.chips--tabs .chip:disabled { color: var(--c-disabled); cursor: not-allowed; background: none; border-bottom-color: transparent; }
.chips--tabs .chip.active { background: none; border-bottom-color: var(--c-primary); color: var(--c-primary-text); font-weight: 700; }
.chips--tabs .chip.active b { color: var(--c-primary-text); font-weight: 700; }
/* D872(사용자 지시 2026-09-16 «붉은색으로 텍스트 컬러 수정» · 요소 선택 진행 목록 탭 «서명거부»·«계약중지») —
   종결 2종 탭은 배지와 같은 빨강(--st-declined)이다. D865가 배지 글자를 통일한 것의 연장으로, 같은 상태를 가리키는 표시가
   자리마다 다른 색으로 읽히지 않게 한다. 활성 탭은 밑줄·건수도 같은 색을 따른다 — 탭 하나가 두 색으로 갈리지 않는다.
   이 두 키를 쓰는 탭은 진행 목록에만 있다(계약 목록은 D851에서 4종으로 줄었고 거래처 포털 칩 키는 다르다).
   D875(사용자 지시 2026-09-16 «밑줄은 청록으로 되돌려줘») — ~~활성 탭 밑줄도 빨강~~ 폐지. **밑줄은 «어느 탭이 선택됐나»를 가리키는 표시라
   전 탭 공통으로 브랜드색(--c-primary)**이고, 빨강이 말하는 것은 상태다 — 두 축이 한 탭에서 각자 제 일을 한다. 글자·건수는 빨강 그대로. */
.chips--tabs .chip[data-st="DECLINED_SIGN"], .chips--tabs .chip[data-st="DECLINED_SIGN"]:hover { color: var(--st-declined-text); }   /* 서명거부 = Red */
.chips--tabs .chip[data-st="DECLINED_SIGN"].active b { color: var(--st-declined-text); }
.chips--tabs .chip[data-st="REJECTED"], .chips--tabs .chip[data-st="REJECTED"]:hover { color: var(--st-stopped-text); }   /* 계약중지 = Orange(가이드 라벨표) */
.chips--tabs .chip[data-st="REJECTED"].active b { color: var(--st-stopped-text); }

/* ---------- 툴바 ---------- */
/* D692 — 툴바는 표 카드의 머리 줄이다(전체 n건 · n개씩 보기 · 엑셀 · 보조 액션) — 아래 .table-wrap과 한 카드로 이어 붙는다 */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  margin: var(--s-6) 0 0; padding: 12px var(--s-5); background: var(--c-surface);
  border: 1px solid var(--c-line); border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0;
}
/* D1373 — 카드 안 머리 자리의 상태 탭(컴플라이언스 검토대기) — 카드가 테두리·모서리를 가지므로 탭 줄은 밑줄만 */
.card > .chips--tabs { margin: 0; border: 0; border-radius: 0; }
.chips--tabs + .toolbar, .chips--tabs + [data-list] > .toolbar:first-child { margin-top: 0; border-top: 0; border-radius: 0; }
/* D1499 — 진행 계약 목록 «서명대기» 탭 바로 아래 «서명 차례» 칩 줄(탭 안의 세부 구분 · 하나 고르기) — 탭 줄과 툴바 사이에 끼어 한 카드로 이어 붙는다 */
.subchips {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding: 12px var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-line); border-top: 0;
}
.subchips__label { font-size: var(--fs-table); color: var(--c-text-sub); font-weight: 600; margin-right: var(--s-2); }
.subchips + .toolbar { margin-top: 0; border-top: 1px solid var(--c-line); border-radius: 0; }
.toolbar + .table-wrap { border-radius: 0 0 var(--r-card) var(--r-card); }
.toolbar__left { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-table); color: var(--c-text-sub); }
.toolbar__left b { color: var(--c-text); font-weight: 700; }
.toolbar__right { display: flex; gap: var(--s-2); }
.select--compact { height: 34px; width: auto; font-size: var(--fs-table); padding: 0 30px 0 12px; }

/* ---------- 테이블 ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface); }   /* 가이드 elev/0 — 표는 보더만 */
.table { min-width: 100%; }
/* D692 — 시안: 머리 행 회색 44 · 본문 행 52 · 첫·끝 열은 카드 안쪽 여백(20)만큼 들인다(열이 많은 .table--dense는 제외 — D302·D317 폭 계산 유지) */
.table th {
  background: var(--c-fill); font-size: var(--fs-table); font-weight: 600; color: var(--c-text-sub);   /* 가이드: 헤더 gray/100 · Caption 13 */
  padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--c-line); white-space: nowrap;
  height: 44px;
}
.table td { padding: 12px 12px; border-bottom: 1px solid var(--c-line); font-size: var(--fs-body); height: 52px;   /* D1331 §8 Gate — 본문 Body M 14 */ vertical-align: middle; }   /* 좌우 12 — 계약 목록 12열이 1440에서도 가로 스크롤 없이 들어간다 */
.table:not(.table--dense) th:first-child, .table:not(.table--dense) td:first-child { padding-left: var(--s-5); }
.table:not(.table--dense) th:last-child, .table:not(.table--dense) td:last-child { padding-right: var(--s-5); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.row-link { cursor: pointer; }
.table tbody tr.row-link:hover { background: var(--c-fill); }
.table tbody tr.row-link:hover .cell-link { color: var(--c-primary-text); }
/* D516 — 대량 선택 목록(계약기간 일괄변경 200건 규모)에서 «지금 고른 행»을 한눈에 본다.
   체크박스만으로는 150건 규모에서 선택 상태가 읽히지 않는다. 기존 브랜드 연한색 토큰만 쓴다(신규 토큰 0). */
.table tbody tr.row-picked > td { background: var(--c-primary-soft); }
/* D1119 — «일괄발송 목록» 변경서 번호 그룹 머리 행(표 안 소제목 · 기존 토큰만) */
.table tbody tr.row-group > td { background: var(--c-surface-sub); font-weight: 600; }
.table tbody tr.row-group .caption { font-weight: 400; }
.table .cell-r { text-align: right; font-feature-settings: "tnum"; }
.table .cell-c { text-align: center; }
.table .cell-link { color: var(--c-text); font-weight: 700; }   /* D692 — 시안: 계약명은 진한 굵은 글자(행 전체가 링크 · hover 시 청록) */
.table .cell-mono { font-family: var(--font-sans); font-size: var(--fs-body); font-variant-numeric: tabular-nums; color: var(--c-text-sub); }   /* D1207 — 시안 B안: 계약번호 열도 본문 서체 13px(~~var(--font-mono) 12px~~) */
.table .col-check { width: 40px; text-align: center; }
.table .col-check input { width: 16px; height: 16px; accent-color: var(--c-primary); }
.table .cell-ellipsis { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* D858·D860·D861(사용자 지시 2026-09-16 «다운로드 버튼은 제거하고 원본파일명 클릭 하면 다운로드 하는걸로 수정해» · «둘 다 같이 수정해줘») — 파일명 자체가 다운로드 버튼이다(목록 칸 · 요청 상세 팝업 · 버전이력 열 공용).
   ~~D845의 «파일명 + [다운로드]» 2요소 칸(.cell-file·__row·__name)~~ 은 버튼이 사라져 읽는 곳이 없다(D008) — 칸은 .cell-ellipsis(240px)로 돌아갔다.
   버튼 요소는 그대로 쓰되(키보드 포커스·Enter·Space가 기본 동작) .btn 꼴을 벗기고 링크 표기만 입혀 칸 폭을 파일명이 온전히 쓴다. */
.filelink { display: inline; max-width: 100%; text-align: left; padding: 0; border: 0; background: none; font: inherit;
  color: var(--c-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.filelink:hover { color: var(--c-primary-text); }
/* 표 칸에서는 말줄임을 **링크 자신**이 건다 — inline 요소에는 max-width가 먹지 않아 칸(.cell-ellipsis)만으로는 긴 파일명이 «…» 없이 잘린다(D858 QA에서 확인).
   D860·D861 — 팝업 «라벨 | 값» 행(.info-grid)에서는 뒤에 용량·종류 캡션이 이어지므로 inline 그대로 둔다. */
.table .filelink { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 계약번호·날짜·기간 등 고정 폭 값은 줄바꿈 금지 — 컬럼이 늘어도 두 줄로 깨지지 않게 */
.table .cell-mono, .table .num { white-space: nowrap; }
/* D645 — 관계자 1열: 담당자 본문 + «등록/참조» 부기 1줄(전체 3축은 셀 툴팁).
   D646 — 계약번호 / 품의번호 1열 2줄. 미연계 건에서는 [품의 연계] 버튼이 둘째 줄 자리에 온다.
   D647 — «서명대기» 안의 차례 캡션(배지 아래 한 줄 · 색은 브랜드 = 내가 움직일 자리).
   계약등록·계약진행·계약체결 세 목록이 같은 표기를 쓰므로(D234·D006) 규칙도 .table 공통에 둔다. */
.table .cell-party { white-space: nowrap; line-height: 17px; }
.table .cell-party__sub {
  display: block; color: var(--c-text-mute); font-size: var(--fs-caption); line-height: 15px;
  overflow: hidden; text-overflow: ellipsis;
}
.table .cell-turn.cell-turn--fail { color: var(--c-danger); }
.table .cell-turn.cell-turn--sub { color: var(--c-text-sub); font-weight: 400; }   /* D1499 — «다른 담당자 차례»는 회색(내 차례가 아니다) */
.table .cell-turn.cell-gwnote:not(.cell-turn--fail) { color: var(--c-text-sub); font-weight: 400; }   /* D1241 — 연동 상태 캡션(품의 미확인·결재 진행)은 회색 · 확인 실패만 빨강 */
.table .cell-gwbtn { height: 24px; padding: 0 6px; font-size: var(--fs-caption); }   /* D1241 — 상태 칸 [상태 갱신](행이 높아지지 않게 btn--sm보다 낮은 24px) */
/* D1242 — 연동 상태 캡션 오른쪽에 [상태 갱신](어느 폭에서든 한 줄 — 1440에서 상태 칸이 넓어지는 만큼 계약명 칸이 줄어든다) */
.table .cell-gwrow { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 4px; margin-top: 4px; white-space: nowrap; }
.table .cell-gwrow .cell-turn { display: inline; margin-top: 0; }
/* D1244(사용자 지시 2026-09-29 «품의결재 대기와 결재진행 좌측 라인 정렬 맞춰줘 텍스트 첫글자 라인으로 맞추면 돼») — 배지·캡션 줄을 왼쪽 정렬 묶음으로 두고(묶음째 칸 가운데)
   캡션 줄을 배지 마커 폭(7px) + 간격(6px)만큼 들여 «품의결재 대기»와 «결재 진행»의 첫 글자가 한 세로줄에 선다 */
.table .cell-gwstack { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; }
.table .cell-gwstack .cell-gwrow { justify-content: flex-start; padding-left: 13px; }   /* D1239 — 진행 목록 상태 칸 «확인 실패»(그룹웨어 API 오류 연속 10회 · 구 «품의결재 상태» 열 배지) */
.table .cell-nos { white-space: nowrap; line-height: 17px; }
.table .cell-nos > * { display: block; }
.table .cell-nos__gw { color: var(--c-text-mute); font-size: var(--fs-caption); line-height: 15px; }
.table .cell-nos .btn { margin-top: 2px; }
.table .cell-turn {
  display: block; margin-top: 3px; font-size: var(--fs-caption); line-height: 14px;
  color: var(--c-primary-text); font-weight: 600; white-space: nowrap;
}
/* 낙찰정보 검색·선택 팝업 전용 — 10열이라 셀이 두 줄로 접히면 표가 넘친다(D292). 공고명만 줄임표로 흡수한다 */
.table--award th, .table--award td { white-space: nowrap; padding-left: 8px; padding-right: 8px; }
.table--award .cell-ellipsis { max-width: 174px; }
/* 계약 목록 공용(진행 · 체결) — 열이 12~13종이라 기본 여백(12px)·자동 폭으로는 표가 컨테이너를 넘긴다.
   D298이 진행 목록 전용(.table--dense)으로 만든 것을 D301에서 두 목록 공용(.table--dense)으로 승격했다.
   열을 빼지 않고 «여백 · 최장 열 · 줄바꿈» 셋만 손봐 흡수한다:
   ① 좌우 여백 12 → 8px(12열 × 8px) ② 계약기간을 시작일/종료일 2줄로(단일 열 189 → 100px대)
   ③ 거래처는 줄바꿈 대신 줄임표 — 한 셀이 접히면 행 전체가 두 줄이 된다(D292와 같은 판정 기준).
   D317 — 1440에서 다시 넘쳤다(사용자 지시 «1440도 가로 스크롤 0으로»). 가장 큰 원인은 «컴플라이언스 승인완료» 배지 한 종류다 —
   이 배지가 섞인 페이지에서 «진행상태» 열이 88 → 153px로 넓어진다(그 상태가 진행 목록 1페이지에 없던 동안 드러나지 않았다).
   여기서도 열을 빼지 않고 같은 3레버로 흡수한다: ④ 긴 상태 배지만 두 줄로 접고(.cell-status — «서명대기»·«체결»은 한 줄 그대로)
   ⑤ 결재 상태 열의 캡션을 접고(.cell-gwstate — 폭의 기준은 [상태 갱신] 버튼) ⑥ 참조자 열에 상한(.cell-cc)
   ⑦ 계약명 상한 132 → 120px ⑧ 배지 좌우 여백 9 → 6px ⑨ 셀 좌우 여백 8 → 6px.
   실측(19행 최악 조합 · 1440 · 표 영역 1143px): 넘침 82 → 0px · 넘침 임계 1145 → 1110px(여유 35px). */
.table--dense th, .table--dense td { padding-left: 6px; padding-right: 6px; }
.table--dense .cell-partner { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* D317 — 배지 좌우 여백 9 → 6px(열이 많은 두 목록에서만). 상태 열 3종(진행상태·열람·결재 상태)이 함께 좁아진다 */
/* D692 — 배지 바탕이 없어져(사각 마커 + 글자) 좌우 여백이 0이다 — ~~좌우 여백 6px(D317)~~ 는 읽는 곳이 없어졌다 */
/* D299 — «품의번호» 열이 늘면서 1440에서 다시 42px 넘쳤다. 남는 폭을 흡수하던 계약명을 조여 되돌린다
   (전체 이름은 셀 툴팁에 있다 · 기본값 240px는 열이 적은 표의 값이다) */
/* D645·D646 — 관계자 3열 → 1열 · 번호 2열 → 1열로 진행 −262px · 체결 −254px가 풀렸다.
   그 폭을 **가장 좁았던 식별 열**(계약명)에 되돌린다: 실측에서 계약명이 진행 141px · 체결 156px로
   계약번호+품의번호(250·276px)보다 좁았고, 계약명이 진행 56% · 체결 97% 잘리고 있었다. */
.table--dense .cell-ellipsis { max-width: 240px; }
/* D1170 — 계약 목록 «품목» 열(EC.ui.itemCell) — 한 줄 말줄임 · 전체는 칸 툴팁. 열이 많은 두 목록(.table--dense)은 더 조인다 */
.table .cell-item { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 거래처 포털 진행·체결 목록 — «품목» 열이 늘며 1440에서 16~19px 넘쳐 계약명 상한을 조인다(전체 이름은 칸 툴팁 · 계열사 목록의 240px는 그대로) */
.table--plist .cell-ellipsis { max-width: 190px; }
/* D1178 — 계약 목록(02-5 · 13열 — 체크 · 낙찰순위 · 등록일 · 최종 처리일시가 진행·체결 목록보다 많다)은 1600px 이하에서 계약명 상한을 조인다(1440 가로 스크롤 0 · 1920은 240 그대로 · 전체 이름은 칸 툴팁) */
@media (max-width: 1600px) { .table--reglist .cell-ellipsis { max-width: 124px; } .table--reglist .cell-partner { max-width: 78px; } }   /* D1350 — «계약번호» 열 추가로 1536에서 43px 넘쳐 ~~160px~~ → 124 · 거래처 상한 78 */
/* D1232 — 컴플라이언스 «체결 계약 목록»(CP03-1 · 12열)도 «품목» 열이 늘며 1440에서 40px 넘쳐 같은 방식으로 1600px 이하에서만 계약명 상한을 조인다 */
@media (max-width: 1600px) { .table--cpdone .cell-ellipsis { max-width: 160px; } }
/* D1421 — 거래처 진행·체결 목록에 «품종» 열이 늘어 1440·1536에서 21~50px 넘쳐 1600px 이하에서만 계약명 상한 120(~~1500 이하 150~~) · 품목·품종 칸 84로 조인다
   (진행 «요청일시»는 날짜/시각 두 줄 · 전체는 칸 툴팁 · 1920은 계약명 190 · 품목 120 그대로) */
@media (max-width: 1600px) { .table--plist .cell-ellipsis { max-width: 120px; } .table--plist .cell-item { max-width: 84px; } }
/* D1242 — 진행 계약 목록은 대기 행 상태 칸이 «캡션 [상태 갱신]» 한 줄이라 넓어져(1440 · 전체 탭 대기 행이 섞인 12쪽 43px 넘침) 1600px 이하에서만 계약명 상한 140 · 계약 담당자 부기 상한 96(~~116~~)으로 조인다(전 쪽 넘침 0 확인 · 1920은 그대로) */
@media (max-width: 1600px) { .table--proglist .cell-ellipsis { max-width: 140px; } .table--proglist .cell-party__sub { max-width: 96px; } }
/* D1247(사용자 지시 2026-09-29 «체결대기, 서면계약 대기 좌측 라인 정렬 맞춰줘») — 진행 계약 목록 상태 칸은 왼쪽 정렬(~~가운데 D317~~ · 배지 길이가 달라도 마커가 한 세로줄) · 머리 «상태»도 왼쪽 */
.table--proglist td.cell-status { text-align: left; }
.table--dense .cell-item { max-width: 96px; }   /* 1440에서 진행·체결 목록이 가로 스크롤 없이 들어가는 폭(104px는 1px 넘쳤다) */
/* 관계자·번호 2줄 셀의 상한은 열이 많은 두 목록에서만 조인다(계약 목록은 .table이라 상한 없이 그대로 늘어난다) */
.table--dense .cell-party__sub,
.table--dash .cell-party__sub { max-width: 116px; }   /* D1040(사용자 지시 2026-09-18 «표기해야할 이름이 많은 경우에는 말줄임표하고 마우스 오버시 툴팁으로 모두 나오게해») — 대시보드 «계약 진행현황»도 목록과 같은 상한 · 전체는 칸 툴팁(EC.ui.partyCells) */
/* D1331 — 표 본문 14px(가이드 Body M)로 키우면서 1500 이하에서는 말줄임 칸 상한을 한 단계 줄여 밀집 목록의 칸 안 가로 스크롤을 최소로 한다 */
@media (max-width: 1500px) {
  .table--dense .cell-ellipsis, .table--reglist .cell-ellipsis, .table--cpdone .cell-ellipsis, .table--proglist .cell-ellipsis { max-width: 104px; }
  .table--dense .cell-partner { max-width: 78px; }
  .table--dense .cell-item { max-width: 68px; }
  .table--dense .cell-party__sub, .table--proglist .cell-party__sub { max-width: 84px; }
  /* D1350 — 계약 목록(02-5)에 «계약번호» 열이 늘어 1440에서 21px 넘쳐(날짜 2열은 한 칸으로 합친 뒤) 이 목록만 거래처·계약명 상한을 한 단계 더 줄인다(전체는 칸 툴팁 · 1920은 그대로) */
  .table--reglist .cell-partner { max-width: 66px; }
  .table--reglist .cell-ellipsis { max-width: 94px; }
  .table:not(.table--dense) th, .table:not(.table--dense) td { padding-left: 8px; padding-right: 8px; }
  .table:not(.table--dense) th:first-child, .table:not(.table--dense) td:first-child { padding-left: var(--s-5); }
  .table:not(.table--dense) th:last-child, .table:not(.table--dense) td:last-child { padding-right: var(--s-5); }
}
/* D961 — ~~.cell-period__due(체결 목록 «계약기간» 셋째 줄 잔여 D-day · D648)~~ 는 칸 삭제로 읽는 곳이 없어 걷어냈다 */
/* D317 — 진행·체결 목록의 상태 열. «컴플라이언스 승인완료»(10자)만 두 줄로 접히고 «서명대기»·«체결»은 한 줄 그대로다.
   배지 폭이 아니라 열 폭을 줄이는 것이 목적이라 상한만 두고 정렬·색·글자 크기는 건드리지 않는다. */
/* word-break: keep-all — 한글은 기본값이면 음절마다 쪼개진다(«컴플라이 / 언스 승인 / 완료»). 어절(띄어쓰기)에서만 나눈다 */
/* 상한(max-width)은 두지 않는다 — 폭이 넉넉한 1920에서는 한 줄 그대로 두고(캡처 기준 화면은 종전과 같다),
   1440처럼 표가 좁아질 때만 열이 min-content(어절 «컴플라이언스»)까지 줄면서 두 줄로 접힌다. */
.table--dense .cell-status .badge { white-space: normal; word-break: keep-all;
  height: auto; min-height: 22px; padding-top: 3px; padding-bottom: 3px; line-height: 15px; text-align: left; }
/* ~~.cell-gwstate(진행 목록 결재 상태 열 — [상태 갱신] 버튼 폭 기준 · 캡션 접기)~~ — D1239 열 폐지로 읽는 곳이 없어 걷었다(D008) */
/* D962·D966 — 진행 목록 «거래처 서명기한»·«거래처 열람» 머리(~~«서명기한»·«열람»~~)도 같은 규칙으로 접는다: 폭이 넉넉하면 한 줄 그대로,
   1440처럼 표가 좁아질 때만 어절(«거래처 / 서명기한»)에서 두 줄이 되어 늘어난 머리 폭만큼 표가 넘치지 않는다 */
.table--dense th.cell-headwrap { white-space: normal; word-break: keep-all; line-height: 17px; }
/* D645 — ~~.cell-cc(참조자 열 상한)~~ 는 관계자 1열 병합으로 읽는 곳이 없어졌다(.cell-party__sub가 대신한다 · D008) */
/* D653 — 차트 카드 안의 비교 표(컴플라이언스 대시보드 «계열사별 계약 현황»)는 전폭까지 늘리지 않는다.
   열에 고정 폭을 주면 남는 폭이 폭 지정 없는 마지막 열(계약금액)로 몰려 956px 문제가 자리만 옮긴다 —
   표 자체에 상한을 두어 열 폭이 내용에 맞게 유지되도록 한다(그래프는 전폭 그대로 쓴다). */
/* D655 — ~~.chart-card__body > .table-wrap 상한 900px(D653)~~ 은 반폭 전환으로 필요 없어졌다(카드 폭이 이미 상한이다) */

/* D653 — 조회 전용 요약행(컴플라이언스 대시보드 «계열사별 계약 현황» 아래).
   카드 자리를 쓰지 않고 한 줄로 읽는 지표 묶음이다 — KPI 카드와 달리 클릭 대상이 아니다. */
.stat-line { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 12px;
  border-top: 1px solid var(--c-line); font-size: var(--fs-caption); color: var(--c-text-sub); }
.stat-line b { color: var(--c-text); font-size: var(--fs-body); font-weight: 700; margin: 0 2px; }

/* D650 — 컴플라이언스 검토 목록 «검토요청 / 경과일» 한 칸 2줄. 임계(EC.cp.ELAPSED_WARN)를 넘긴 대기 건만 경고색이다 */
.table--dense .cell-req { line-height: 17px; }
.table--dense .cell-req__d { display: block; font-size: var(--fs-caption); line-height: 15px; color: var(--c-text-mute); }
.table--dense .cell-req__d--warn { color: var(--c-warn); font-weight: 700; }
/* 줄은 <br>로만 나눈다 — nowrap을 풀면 좁은 폭에서 «2026-09-01»이 하이픈마다 쪼개진다(1280px에서 재현) */
/* D428·D429 — 분류 배지 열(현행 «계약서 구분» · D438·D446). «비표준계약»은 어절 하나라 기본값이면 «비표준계 / 약»으로 쪼개진다(1280 이하에서 재현) —
   cell-status와 같은 규칙으로 어절에서만 나눈다(«표준계약 · 서면 대체»는 가운뎃점 뒤에서 접힌다) */
.table--dense .cell-form { white-space: normal; word-break: keep-all; line-height: 17px; }
/* D758 — 계약 목록(.table · dense 아님)에도 «계약기간» 2줄 셀이 생겨 규칙을 표 공통으로 넓혔다(~~.table--dense 한정~~ · 값·높이 불변) */
.table .cell-period { white-space: nowrap; line-height: 17px; }
.table .cell-period__to { color: var(--c-text-mute); }

/* 반려·서명거부·해지 사유 — 구분·상태 배지 셀의 마커 + hover 툴팁 */
.reason-cell { cursor: help; white-space: nowrap; }
.reason-mark {
  font-size: var(--fs-caption); font-weight: 700; line-height: 1; vertical-align: middle;
  color: var(--c-danger); border: 1px solid currentColor; border-radius: 4px;
  padding: 2px 5px; margin-left: 4px; cursor: pointer;
}
/* [사유] 팝업 — 항목명 + 값 한 줄씩, 사유 전문은 줄바꿈을 살려 보인다 */
.reason-list { margin: 0; }
.reason-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--c-line); }
.reason-row dt { color: var(--c-text-sub); font-size: var(--fs-caption); font-weight: 700; }
.reason-row dd { margin: 0; word-break: break-word; }
.reason-row--text dd { white-space: pre-wrap; }
/* 배지(inline-flex 22px)와 마커(17px)는 높이가 달라 baseline으로는 어긋난다 — 둘 다 middle로 세로 중심을 맞춘다 */
.reason-cell .badge { vertical-align: middle; }
.reason-mark:hover { background: var(--c-danger-soft); }
.tiplayer {
  position: fixed; z-index: var(--z-toast, 300); display: none; max-width: 340px;
  background: var(--c-text); color: var(--c-on-dark); border-radius: 8px; padding: 10px 12px;
  box-shadow: var(--sh-tip); font-size: var(--fs-table); line-height: 18px;
  pointer-events: none;
}
.tiplayer__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tiplayer__meta { color: var(--c-tip-meta); font-size: var(--fs-caption); }
.tiplayer__reason { color: var(--c-tip-text); }

/* 차트 호버 툴팁 (커서 추종) — EC.ui.bindChartTips · 배경은 --c-text 토큰(D398) */
.chart-tip {
  position: fixed; z-index: var(--z-toast); background: var(--c-text); color: var(--c-on-dark);
  border-radius: 6px; padding: 6px 10px; font-size: var(--fs-caption); line-height: 18px; white-space: nowrap;
  box-shadow: var(--sh-tip); pointer-events: none;
  opacity: 0; transition: opacity .12s;
}
.chart-tip.show { opacity: 1; }
.chart-tip--multi { white-space: pre-line; max-width: 360px; }   /* D1310 — «계약 담당자» 칸 툴팁: 계약 담당자 · 등록자 · 참조자 세 줄(참조자가 많으면 줄바꿈) */

.table tr.row-mine td { background: var(--c-row-mine); }
.table tr.row-mine:hover td { background: var(--c-row-mine-hover); }

/* Empty */
.empty { padding: 56px 0; text-align: center; color: var(--c-text-sub); }
/* D1331 — 가이드 Empty State: 80px gray/100 원형 일러스트 + 상황 메시지 + 다음 행동(CTA). 일러스트는 문서 아이콘을 CSS로 그린다 */
.empty::before {
  content: ""; display: block; width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 50%; background-color: var(--c-fill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='%23B4BEC6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8h11l6 6v18H12z'/%3E%3Cpath d='M23 8v6h6M16 20h9M16 25h9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 40px;
}
.empty__title { font-size: var(--fs-body-l); font-weight: 700; margin-bottom: 4px; color: var(--c-text); }
.empty__desc { font-size: var(--fs-caption); color: var(--c-text-mute); }
/* 스켈레톤 — 가이드: 데이터 영역 로딩 1초 이상 예상 시 · shimmer 1.2s linear gray/100→gray/200 · 실제 레이아웃과 같은 크기 · aria-busy */
.skeleton { display: block; border-radius: var(--r-ctrl); background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.empty .btn { margin-top: var(--s-4); }

/* ---------- 페이지네이션 ---------- */
/* D692 — 시안: 표 카드 바닥 줄(전체 n건 · p/n 페이지 | 테두리 사각 페이지 버튼) */
.tfoot { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--s-5); border-top: 1px solid var(--c-line); }
.tfoot__count { font-size: var(--fs-table); color: var(--c-text-sub); white-space: nowrap; flex-shrink: 0; }   /* D1121 — 페이지 버튼이 많아도 문구가 접히지 않는다 */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }   /* D1121 — 10페이지 블록 창(EC.ui.PAGE_WINDOW) · 좁은 폭에서는 줄바꿈 */
.pagination button {
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: var(--r-ctrl); border: 1px solid var(--c-line);   /* 가이드 Pagination 32×32 · r-4 · gap 6 */
  background: var(--c-surface); font-size: var(--fs-table); color: var(--c-text-sub);
  display: inline-flex; align-items: center; justify-content: center;
}
.pagination button:hover { background: var(--c-fill); color: var(--c-text); border-color: var(--c-line-strong); }
.pagination button.current { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); font-weight: 700; }
.pagination button:disabled { background: var(--c-fill); color: var(--c-disabled); border-color: var(--c-line); cursor: not-allowed; }

/* ---------- 배지 ---------- */
/* D692 — 시안: 상태는 «사각 마커 + 색 글자»(바탕 없음) · 분류(계약서 구분 등 .badge--outline)는 «연한 바탕 사각 태그».
   색은 종전 상태 시맨틱 팔레트 그대로 글자에만 쓴다(colors.md §4 — 색 + 텍스트 병행). */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0;
  border-radius: var(--r-tag); font-size: var(--fs-caption); font-weight: 700; white-space: nowrap; background: transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--badge-dot, currentColor); flex: none; }   /* D1331 — 마커는 Status 기본색 · 글자는 Dark 톤(-text) */
.badge--plain::before { display: none; }
.badge--outline {
  height: 24px; padding: 0 10px; border: 0; font-size: var(--fs-caption);
  background: color-mix(in srgb, currentColor 10%, var(--c-surface)) !important;
}
.badge--outline::before { display: none; }
/* 계약상태 */
.badge--TEMP_SAVED { color: var(--st-temp-text); --badge-dot: var(--st-temp); }
.badge--AWAITING_SIGN { color: var(--st-awaiting-text); --badge-dot: var(--st-awaiting); }
.badge--MOD_REQUESTED { color: var(--st-cpreview-text); --badge-dot: var(--st-cpreview); } /* 수정요청(D136) — 조치 대기 계열 색 재사용(신규 토큰 0) */
.badge--CP_CHECK { color: var(--st-cpreview-text); --badge-dot: var(--st-cpreview); } /* 컴플라이언스 확인(D155) — 검토·조치 대기 계열 색 재사용(신규 토큰 0) */
.badge--CP_APPROVED { color: var(--st-confirm-text); --badge-dot: var(--st-confirm); }   /* D1331 — 가이드 라벨표: 승인 = Purple */
.badge--AWAITING_CONCLUDE { color: var(--st-confirm-text); --badge-dot: var(--st-confirm); }   /* D1331 — 체결대기 = Purple(가이드 라벨표) · STATUS는 서명대기 그대로 */
.badge--GW_PENDING { color: var(--st-approval-text); --badge-dot: var(--st-approval); }  /* 품의대기(D225) — 표준계약의 품의 대기 자리. 비표준의 «계약서승인완료»와 같은 자리라 같은 색을 쓰고 라벨로 구분한다(신규 토큰 0) */
.badge--PAPER_SIGN { color: var(--st-awaiting-text); --badge-dot: var(--st-awaiting); }  /* 서면계약 대기(D224) — 서명대기 계열 색 재사용(AWAITING_SIGN과 같은 자리 · 신규 토큰 0) */
/* 결재반려는 --st-returned(자홍) — 서식제작 요청 반려(.badge--TR_RETURNED)·KPI 강조(.kpi--magenta)와 같은 토큰 */
.badge--GW_REJECTED { color: var(--st-returned-text); --badge-dot: var(--st-returned); }  /* 결재반려(D169) — 그룹웨어 계약서 품의 반려 */
/* 계약상태가 아닌 배지 — 역할(roleBadge)·할 일 종류. «계약확인» 폐지(D169)로 남은 --st-confirm의 소비처다 */
.badge--role { color: var(--st-confirm-text); --badge-dot: var(--st-confirm); }
.badge--CONCLUDED { color: var(--st-concluded-text); --badge-dot: var(--st-concluded); }
/* D865(사용자 지시 2026-09-16 «서명거부와, 계약중지 텍스트 색상 붉은색으로 변경») — 종결 2종은 같은 빨강(--st-declined)이다.
   ~~계약중지 적갈(--st-rejected #8A4B2A)~~ 폐지 — 토큰도 함께 걷었다(읽는 곳 0 · D008). 두 상태를 가르는 것은 색이 아니라 라벨과 [사유] 마커다. */
.badge--DECLINED_SIGN { color: var(--st-declined-text); --badge-dot: var(--st-declined); }
.badge--REJECTED { color: var(--st-stopped-text); --badge-dot: var(--st-stopped); }  /* 계약중지 — D1331 가이드 라벨표: Orange(~~D865 서명거부와 같은 빨강~~) */
/* 발송 결과 — 채널명 + 결과 배지를 한 쌍으로 묶어 알림톡·이메일을 나란히 보여준다 */
.ch-results { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ch-result { display: inline-flex; align-items: center; gap: 6px; }
.ch-result__ch { font-size: var(--fs-caption); color: var(--c-text-sub); }
.ch-result__try { font-size: var(--fs-caption); color: var(--c-text-mute); }
.badge--TERMINATED { color: var(--st-terminated-text); --badge-dot: var(--st-terminated); }
.badge--EXPIRED { color: var(--st-expired-text); --badge-dot: var(--st-expired); }
/* 처리 필요 표시 — Q&A 답변대기 배지가 사용(screens-common) */
.badge--AP_PENDING { color: var(--st-awaiting-text); --badge-dot: var(--st-awaiting); }
/* 일반 */
.badge--ok { color: var(--st-green-text); --badge-dot: var(--st-green); }
.badge--stop { color: var(--st-stopped-text); --badge-dot: var(--st-stopped); }
/* D1151(사용자 지시 2026-09-24 «배지 빨간색으로 수정해줘») — 기능 빨강(실패·전체 롤백·불일치·중지·반려 · 계약서 이력의 거부·중지·수정요청 종류).
   코드가 쓰던 tone인데 정의가 없어 기본색으로 보였다 — 배너·KPI·버튼의 --danger와 같은 이름 · 작은 굵은 글자라 strong(#C2362F = --st-declined) · 신규 토큰 0 */
.badge--danger { color: var(--st-red-text); --badge-dot: var(--st-red); }
.badge--req { color: var(--st-awaiting-text); --badge-dot: var(--st-awaiting); }
.badge--neutral { color: var(--st-temp-text); --badge-dot: var(--st-temp); }
.badge--info { color: var(--st-approval-text); --badge-dot: var(--st-approval); }
.badge--teal { color: var(--badge-teal); }
/* 기한 */
.due { font-size: var(--fs-caption); font-weight: 700; font-feature-settings: "tnum"; }
.due--warn { color: var(--c-warn); }
.due--over { color: var(--c-danger); }

/* ---------- 탭 ---------- */
/* D692 — 시안: 화면 안 구획 탭은 테두리 상자 안의 세그먼트형(활성 = 청록 채움 · 흰 글자) */
.tabs {
  display: flex; width: max-content; max-width: 100%; overflow-x: auto; gap: 0; margin-bottom: var(--s-6);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-ctrl);
}
.tab {
  height: 44px; padding: 0 26px; font-size: var(--fs-body-l); color: var(--c-text-sub); white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tab + .tab { box-shadow: inset 1px 0 0 var(--c-line); }
.tab:first-child { border-radius: calc(var(--r-ctrl) - 1px) 0 0 calc(var(--r-ctrl) - 1px); }
.tab:last-child { border-radius: 0 calc(var(--r-ctrl) - 1px) calc(var(--r-ctrl) - 1px) 0; }
.tab:hover { color: var(--c-text); background: var(--c-fill); }
.tab.active { color: var(--c-on-primary); font-weight: 700; background: var(--c-primary); box-shadow: none; }
.tab.active + .tab { box-shadow: none; }
.tab:disabled { color: var(--c-text-mute); cursor: not-allowed; background: none; }
.tab__err {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--c-danger);
  color: var(--c-on-primary); font-size: var(--fs-caption); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- 스테퍼 ---------- */
.stepper { display: flex; align-items: flex-start; padding: var(--s-4) var(--s-5); }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; min-width: 0; }
.step__dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c-surface);
  border: 2px solid var(--c-line-strong); color: var(--c-text-mute);
  font-size: var(--fs-caption); font-weight: 700; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.step__label { margin-top: 6px; font-size: var(--fs-caption); color: var(--c-text-mute); text-align: center; }
.step::before, .step::after {
  content: ""; position: absolute; top: 13px; height: 2px; background: var(--c-line); width: 50%;
}
.step::before { left: 0; } .step::after { right: 0; }
.step:first-child::before, .step:last-child::after { display: none; }
.step--done .step__dot { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.step--done .step__label { color: var(--c-text-sub); }
.step--done::before, .step--done::after { background: var(--c-primary); }
.step--current .step__dot { border-color: var(--c-primary); color: var(--c-primary-text); box-shadow: 0 0 0 4px var(--c-focus-ring); }
.step--current .step__label { color: var(--c-primary-text); font-weight: 700; }
.step--current::before { background: var(--c-primary); }
.step--danger .step__dot { background: var(--c-danger); border-color: var(--c-danger); color: var(--c-on-primary); }
.step--danger .step__label { color: var(--c-danger); font-weight: 700; }
/* D1253 — 단계 아래 보조 캡션(개별 계약 «거래처 발송» 아래 «자동발송» · 12px 회색) */
.step__sub { margin-top: 2px; font-size: var(--fs-caption); color: var(--c-text-mute); text-align: center; }

/* ---------- 승인 라인 (D363 — 검토자 → 승인자 2단계 · 컴플라이언스 검토) ---------- */
.aline { display: flex; align-items: stretch; gap: var(--s-3); }
.aline__step { flex: 1; min-width: 0; border: 1px solid var(--c-line); border-radius: 10px; padding: var(--s-3) var(--s-4); background: var(--c-surface); }
.aline__step--done { border-color: var(--c-primary); }
.aline__step--current { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-focus-ring); }
.aline__step--danger { border-color: var(--c-danger); }
.aline__role { font-size: var(--fs-caption); color: var(--c-text-sub); }
.aline__name { font-size: var(--fs-body); font-weight: 700; margin-top: 2px; }
.aline__state { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.aline__arrow { align-self: center; color: var(--c-text-mute); font-size: 18px; flex: none; }

/* ---------- 정보 그리드 (읽기전용) ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-8); }
.info-grid--1col { grid-template-columns: 1fr; }
.info-row { display: flex; border-bottom: 1px solid var(--c-line); min-height: 44px; align-items: center; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { width: 150px; flex: none; font-size: var(--fs-table); color: var(--c-text-sub); padding: 10px 0; }
.info-row dd { flex: 1; font-size: var(--fs-body); padding: 10px 0; min-width: 0; }
/* 레이어 팝업 안에서는 항목을 한 열로 세워 가로 스크롤 없이 한눈에 보이게 한다 */
/* D549 — 라벨과 값 사이 여백을 줄인 4열 요약(사용자 지시 2026-09-09 «여백 줄여줘»).
   4열에서는 라벨이 «계약번호»·«계열사»처럼 짧아 기본 150px가 값과 멀어진다 — 라벨 폭만 좁힌다(다른 화면의 .info-row는 그대로). */
.info-grid--tight .info-row dt { width: 96px; }
.modal .info-grid { grid-template-columns: 1fr; gap: 0; }
.modal .info-row { min-height: 38px; }
.modal .info-row dt { width: 108px; }
/* 팝업 안의 표는 행 높이를 줄여 스크롤 없이 전체가 보이도록 한다 */
.modal .table td { padding: 8px 10px; height: 36px; }
.modal .table th { padding-top: 8px; padding-bottom: 8px; }
/* 행 수가 많은 참조표(알림 발송 정책 20종 등)는 한 단계 더 압축해 하단 안내까지 한 화면에 담는다 */
.modal .table--tight td { padding: 5px 10px; height: 32px; }
.modal .table--tight th { padding-top: 6px; padding-bottom: 6px; }
.modal .form-grid { gap: var(--s-3) var(--s-6); }
/* 모달 안 배너는 여백을 줄이되 아이콘 자리는 남긴다 — padding-left를 줄이면 절대배치된 아이콘이 본문과 겹친다 */
.modal .banner { padding: 10px 12px 10px 34px; }
.modal .banner__ico { left: 12px; top: 10px; }

/* ---------- 폼 그리드 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-6); }
.form-grid .span-2 { grid-column: span 2; }
/* D692 — 시안: 화면(카드) 안의 폼·읽기 정보는 «회색 라벨 셀 | 값» 표다. 카드 안쪽 여백을 걷어 표가 카드 테두리에 붙고,
   세로 구분선은 칸마다 왼쪽 안쪽 선(inset)으로 그린다 — 첫 열의 선은 1px 당겨 카드 테두리와 겹친다.
   팝업(.modal) 안은 좁아 종전 «라벨 상단» 그대로 둔다(.content 범위만 적용). */
.content .card__body > .form-grid,
.content .card__body > .info-grid {
  gap: 0; margin-left: calc(-1 * var(--card-pad, var(--s-6)) - 1px); margin-right: calc(-1 * var(--card-pad, var(--s-6)));
  border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line);
}
.content .card__body > .form-grid:first-child,
.content .card__body > .info-grid:first-child { margin-top: calc(-1 * var(--card-pad, var(--s-6))); border-top: 0; }
.content .card__body > .form-grid:last-child,
.content .card__body > .info-grid:last-child { margin-bottom: calc(-1 * var(--card-pad, var(--s-6)) - 1px); }
/* 표가 카드 본문의 유일한 내용이면 본문 여백 자체를 없앤다 — 화면마다 다른 본문 여백(인라인 padding)에 음수 여백이 어긋나지 않게 */
.content .card__body:has(> .form-grid:only-child),
.content .card__body:has(> .info-grid:only-child) { padding: 0 !important; }   /* 인라인 padding(종전 라벨 상단 배치용)보다 우선 */
.content .card__body > .form-grid:only-child,
.content .card__body > .info-grid:only-child { margin: 0 0 -1px -1px; border: 0; }
.content .card__body > .form-grid > .field {
  position: relative; justify-content: center; min-height: 58px; gap: 6px;
  padding: 9px var(--s-5) 9px calc(var(--w-label, 180px) + var(--s-5));
  border-bottom: 1px solid var(--c-line); box-shadow: inset 1px 0 0 var(--c-line);
}
.content .card__body > .form-grid > .field > .field__label {
  position: absolute; left: 1px; top: 0; bottom: 0; width: var(--w-label, 180px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; padding: 0 var(--s-5);
  background: var(--c-surface-sub); border-right: 1px solid var(--c-line);
}
.content .card__body > .info-grid .info-row {
  min-height: 52px; align-items: stretch; border-bottom: 1px solid var(--c-line); box-shadow: inset 1px 0 0 var(--c-line);
}
.content .card__body > .info-grid .info-row:last-child { border-bottom: 1px solid var(--c-line); }
.content .card__body > .info-grid .info-row dt {
  width: var(--w-label, 180px); display: flex; align-items: center; padding: 10px var(--s-5); margin-left: 1px;
  background: var(--c-surface-sub); border-right: 1px solid var(--c-line);
  font-size: var(--fs-table); font-weight: 700; color: var(--c-text);
}
.content .card__body > .info-grid .info-row dd { align-self: center; padding: 10px var(--s-5); }   /* 값 안의 인라인 흐름(배지 · 부기 · 링크)을 그대로 둔다 */
.content .card__body > .info-grid--tight .info-row dt { width: 120px; }
/* 라벨 셀 안의 보조 설명(«(최대 3인 · 열람 전용)» 등)은 라벨 아래 줄의 가는 글자 */
.content .card__body > .form-grid > .field > .field__label .caption { flex-basis: 100%; font-weight: 400; color: var(--c-text-mute); }
/* 합계 강조 행(시안) — 라벨·값 칸 모두 연한 청록 · 큰 청록 숫자 */
.content .card__body > .form-grid > .field--total { background: var(--c-primary-soft); }
.content .card__body > .form-grid > .field--total > .field__label { background: var(--c-primary-soft); color: var(--c-primary-deep); border-right-color: var(--c-line); }
.field--total .input[readonly] {
  height: 48px; border: 0; background: transparent; padding-right: 4px; box-shadow: none;
  font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.5px; color: var(--c-primary-text);
}
.field--total .input-suffix { font-size: var(--fs-body); color: var(--c-text-sub); }
/* D489 — 좁은 폭에서 한 행을 통째로 쓰는 필드([거래처 조회] 버튼처럼 입력창을 밀어내는 컨트롤을 이고 있는 경우) */
@media (max-width: 767px) { .form-grid .field--wrap { grid-column: span 2; } }

/* ~~우측 «도움말» 도크 .help-dock* · html.has-help-dock · .help-panel__*(D321 → D337 → D427)~~ — D1110(사용자 지시 2026-09-21 «우측 도움말 위젯 삭제») 폐지 · 읽는 곳 0 */

/* ---------- Sticky 액션바 ---------- */
.actionbar {
  position: sticky; bottom: 0; z-index: 30;
  /* D692 — 시안: 하단 액션바는 테두리 카드(좌 [취소] · 우 보조·Primary · 버튼 44) */
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card);
  /* D328(사용자 지시 2026-09-03 «세로 스크롤 제거») — 종전 margin: 32px -24px -24px 의 음수 여백이 .content__inner 밖으로 24px씩 넘쳐
     .content(overflow-x:auto = 스크롤 컨테이너)에 세로·가로 안쪽 스크롤바를 만들었다(D321 메모 ②). 본문에 패딩이 없어 블리드가 닿을 여백도 없으므로 0으로 둔다 —
     카드와 같은 폭으로 정렬되고 sticky bottom은 그대로다. */
  margin: var(--s-8) 0 0;
  padding: var(--s-5) var(--s-6);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
}
.actionbar__left, .actionbar__right { display: flex; align-items: center; gap: var(--s-2); }
.actionbar .btn:not(.btn--sm) { height: 44px; padding: 0 22px; }

/* ---------- 모달 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: var(--c-dim); z-index: var(--z-backdrop);
  display: flex; align-items: center; justify-content: center; padding: var(--s-6);
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--c-surface); border-radius: var(--r-card); box-shadow: var(--sh-modal);   /* r-8 · elev/3 */
  width: 100%; max-height: calc(100vh - 56px); display: flex; flex-direction: column;
  animation: pop .15s ease; z-index: var(--z-modal);
}
.modal--s { max-width: 400px; } .modal--m { max-width: 560px; }   /* D1331 — 가이드 Modal Width 560 / 400 */
.modal--l { max-width: 900px; } .modal--xl { max-width: 1100px; }
/* D874(사용자 지시 2026-09-16 «가로 스크롤 생기지 않게 팝업 사이즈 키워줘» · 화면 주석 일괄 계약서 미리보기 [별표] 표) —
   문서 조판을 그대로 싣는 팝업용 한 단계. 8열 표(No·원/신규 계약번호·계약명·거래처·원/신규 계약기간·계약금액)가
   xl(1100)에서 30px가량 모자라 칸 안 가로 스크롤이 생겼다 — 여백을 깎는 대신 폭을 넓힌다(본문 40px 좌우 여백은 «문서» 조판의 일부다).
   기준 1920은 물론 최소 지원 1280(D302)에서도 max-width 아래로 자동으로 줄어든다(.modal은 width:100%). */
.modal--xxl { max-width: 1240px; }
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: var(--s-2) var(--s-6); border-bottom: 1px solid var(--c-line); flex: none;   /* 가이드 Header 56 */
}
.modal__close { font-size: var(--fs-title); color: var(--c-text-mute); padding: 4px 8px; border-radius: 6px; }
.modal__close:hover { background: var(--c-surface-sub); color: var(--c-text); }
.modal__body { padding: var(--s-6); overflow-y: auto; }
.modal__foot {
  display: flex; justify-content: flex-end; gap: var(--s-2);
  align-items: center; min-height: 64px; padding: var(--s-3) var(--s-6); border-top: 1px solid var(--c-line); flex: none;   /* 가이드 Footer 64 */
}
.modal__foot .to-left { margin-right: auto; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.97); } }

/* ---------- 토스트 ---------- */
.toasts { position: fixed; top: 16px; right: 16px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--gray-800); color: var(--c-on-dark); font-size: var(--fs-body); padding: 14px 16px;   /* 가이드 Toast: Dark 서피스 gray/800 */
  border-radius: 8px; box-shadow: var(--sh-modal); display: flex; align-items: center; gap: 8px;
  animation: slideIn .2s ease; max-width: 380px;
}
.toast--success .toast__ico { color: var(--c-toast-success); }
.toast--error .toast__ico { color: var(--c-toast-error); }
.toast--info .toast__ico { color: var(--c-toast-info); }
@keyframes slideIn { from { opacity: 0; transform: translateX(12px); } }
.toast__close { margin-left: auto; padding: 0 0 0 16px; font-size: var(--fs-caption); color: var(--c-tip-meta); white-space: nowrap; }   /* 가이드: [닫기] · 사용자 닫기 */
.toast__close:hover { color: var(--c-on-dark); }

/* ---------- 배너 ---------- */
/* 아이콘을 절대배치해 본문은 일반 인라인 흐름 유지 —
   flex로 두면 본문 안의 <b>·<br>·배지가 각각 별도 아이템으로 쪼개져 줄이 끊긴다 */
.banner {
  position: relative; padding: 12px 16px 12px 42px;
  border-radius: var(--r-ctrl); font-size: var(--fs-table); line-height: 19px; margin-bottom: var(--s-4);
}
.banner__ico { position: absolute; left: 16px; top: 12px; font-size: var(--fs-body); line-height: 19px; }
.banner--info { background: var(--st-blue-bg); color: var(--c-info-text); }   /* 가이드 Alert 5종: Blue·Green·Orange·Red 연한 배경 */
.banner--warn { background: var(--st-orange-bg); color: var(--c-warn-text); }
.banner--danger { background: var(--st-red-bg); color: var(--c-danger-text); }
.banner--ok { background: var(--st-green-bg); color: var(--c-success-text); }
/* D1089 — 진행 상세 제목 아래 «계약 주요 내용»(계약 담당자가 계약 등록에서 남긴 한두 문장 · EC.blocks.keyNote · 도움말 도크와 다른 자리 · c.keyNote가 있는 건에만)
   D1097(사용자 지시 2026-09-21 «좌측 라인 제거해» · 요소 선택 02-10 블록) — ~~좌측 4px 강조선~~ 폐지 · 사방 1px(02-10·02-12 블록과 02-6 입력 카드 공통) */
.keynote {
  display: flex; align-items: flex-start; gap: var(--s-3); margin-bottom: var(--s-4);
  padding: 14px 20px; border-radius: var(--r-card);
  border: 1px solid var(--c-primary); background: var(--c-primary-soft); color: var(--c-text);
}
.keynote__label { flex: none; font-size: var(--fs-caption); font-weight: 700; color: var(--c-primary-text); line-height: 22px; white-space: nowrap; }
.keynote__text { flex: 1 1 auto; margin: 0; font-size: var(--fs-lg); font-weight: 600; line-height: 22px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.keynote__by { flex: none; font-size: var(--fs-caption); color: var(--c-text-sub); line-height: 22px; white-space: nowrap; }
/* D1093 — 계약 등록(02-6) 탭 위의 입력 변형: 상세 블록과 같은 꼴 안에 textarea(«어디에 어떻게 보일지»가 입력 자리에서 보인다)
   D1096(사용자 지시 2026-09-21 «좌측의 라인은 제거해» · 요소 선택 이 카드) — 입력 카드 좌측 4px 강조선 없이 사방 1px → D1097에서 .keynote 공통 규칙이 같은 값이 되어 개별 덮어쓰기는 걷었다
   D1094(«삭제») — ~~.keynote__hint~~(textarea 아래 힌트 문장) 폐지 */
.keynote--edit { padding: 12px 20px; }
.keynote--edit .keynote__label { padding-top: 8px; }
.keynote__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.keynote__input { width: 100%; font-size: var(--fs-body); font-weight: 400; line-height: 20px; background: var(--c-surface); resize: vertical; }
@media (max-width: 767px) { .keynote { flex-wrap: wrap; } .keynote__by { width: 100%; } .keynote__body { width: 100%; } }

/* 알림 메시지 미리보기 — 발송 템플릿을 실제 수신 화면에 가깝게 보여준다.
   치환 변수({계약명} 등)는 발송 시점에 값이 들어가는 자리라 warn 톤으로 짚어 준다(배너와 같은 조합). */
.msg-preview {
  background: var(--c-surface-sub); border: 1px solid var(--c-line);
  border-radius: 10px; padding: 14px 16px;
}
.msg-preview__ch {
  display: inline-block; margin-bottom: 8px; padding: 2px 8px;
  background: var(--c-primary-soft); color: var(--c-primary-text);
  border-radius: 999px; font-size: var(--fs-caption); font-weight: 700;
}
.msg-preview__body { font-size: var(--fs-body); line-height: 22px; white-space: pre-line; color: var(--c-text); }
.tpl-var {
  background: var(--c-warn-soft); color: var(--c-warn-text);
  border-radius: 4px; padding: 0 3px; font-weight: 600;
}

/* 팁 — 배너보다 가벼운 인라인 안내. 좁은 영역(모달 푸터·액션바 옆)에 쓴다 */
.tip {
  display: inline-flex; align-items: flex-start; gap: 6px;
  background: var(--c-primary-soft); color: var(--c-info-text);
  font-size: var(--fs-caption); line-height: 17px; padding: 6px 10px; border-radius: var(--r-ctrl);
}

/* ---------- KPI 카드 ---------- */
/* D692 — 시안: KPI는 한 장의 카드를 칸으로 나눈 띠다(칸 사이 1px 선 = 격자 간격으로 비친 선 색) ·
   색 숫자 44 + 짧은 색 밑줄 + 힌트. 칸의 강조색은 --kpi-accent(없으면 본문색)이다. */
.kpi-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px;
  background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-kpi); overflow: hidden;   /* 가이드 r-12 — 대시보드 KPI 카드 */
}
/* 카드 5장 행 — 대시보드에 «체결대기»가 들어가면서 4열로는 한 장이 다음 줄로 떨어진다(D231).
   기본 .kpi-row(4열)는 그대로 두고 이 행만 5열로 나눈다 — 좁은 화면에서는 2열로 접는다. */
.kpi-row--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }   /* 본문 최소 폭 960에서도 5칸이 들어간다(D692 — 좁은 화면 2열 접기 폐지) */
/* 카드 3장 행 — 컴플라이언스 대시보드의 계약서식 지표(D265). 좁은 화면에서는 1열로 접는다. */
/* D654 — ~~.kpi-row--3~~ 는 컴플라이언스 «계약서식» KPI 3종이 폐지되면서 읽는 곳이 없어졌다(D637 선례 · D008) */
.kpi {
  background: var(--c-surface); padding: 26px 28px 24px; text-align: left; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 0; transition: background .12s;
}
.kpi:hover { background: var(--c-surface-sub); }
/* 클릭 대상이 아닌 지표 카드 — 갈 곳이 없는 숫자에 링크 어포던스를 주지 않는다(D265) */
.kpi--static { cursor: default; }
.kpi--static:hover { background: var(--c-surface); }
.kpi__label { font-size: var(--fs-table); font-weight: 600; color: var(--c-text-sub); display: flex; align-items: center; gap: 6px; }
.kpi__value {
  position: relative; margin-top: 10px; padding-bottom: 16px; max-width: 100%;
  font-size: var(--fs-kpi); line-height: 56px; font-weight: 800; letter-spacing: -0.02em; font-feature-settings: "tnum";
  color: var(--kpi-accent, var(--c-text)); overflow-wrap: anywhere;
}
.kpi__value::after { content: ""; position: absolute; left: 2px; bottom: 0; width: 32px; height: 3px; border-radius: 1px; background: currentColor; }
.kpi__value small { font-size: var(--fs-body); font-weight: 500; letter-spacing: 0; color: var(--c-text-mute); margin-left: 8px; }
.kpi__hint { margin-top: 14px; font-size: var(--fs-caption); color: var(--c-text-mute); }
/* 칸 강조색 — 상태 시맨틱 팔레트에서 고른다(신규 색 0) */
.kpi--primary { --kpi-accent: var(--st-blue); }   /* D1331 — 가이드 Status Blue(진행/결재) */   /* D1207 — KPI 색은 채널 테마와 무관(사용자 지시 «KPI 컬러 유지») */
.kpi--warn { --kpi-accent: var(--st-orange); }
.kpi--danger { --kpi-accent: var(--st-red); }
.kpi--magenta { --kpi-accent: var(--st-returned); }
.kpi--ok { --kpi-accent: var(--st-green); }
.kpi--violet { --kpi-accent: var(--st-confirm); }
.kpi--info { --kpi-accent: var(--st-blue); }
.kpi--terminated { --kpi-accent: var(--st-terminated); }   /* D1032 — 거래처 대시보드 «해지» KPI · 숫자 색 = «해지» 배지 색(토큰 재사용 · 신규 색 0) */

/* ---------- 대시보드 ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-8); align-items: start; }   /* D692 — 시안 비율 */
/* D655 — 반반 2열(컴플라이언스 대시보드 «계열사별 계약 현황» | «검토자별 처리 현황»).
   두 카드가 같은 무게의 비교 위젯이라 380px 사이드바 비율이 아니라 1:1이다. */
.dash-grid--half { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1279px) { .dash-grid--half { grid-template-columns: 1fr; } }
/* --fill: 좌우 카드 높이 동일화(우측 카드 본문은 수직 중앙 정렬) — 통계 차트 행 */
.dash-grid--fill { align-items: stretch; }
.dash-grid--fill .chart-card { display: flex; flex-direction: column; }
.dash-grid--fill .chart-card .chart-card__body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* 검색 카드 ↔ KPI 카드 사이 여백 */
.search-card + .kpi-row { margin-top: var(--s-6); }

/* ---------- 공지 노출 대상 선택 (D271) ---------- */
/* 채널 한 줄(체크박스 + 전체/특정 라디오) 아래에 «특정» 선택 목록이 접혔다 펼쳐진다. */
.aud-box { border: 1px solid var(--c-line); border-radius: var(--r-ctrl); padding: 4px 12px 10px; }
.aud-row { display: flex; align-items: center; gap: 18px; min-height: 38px; flex-wrap: wrap; }
.aud-row + .aud-row { border-top: 1px solid var(--c-line); }
.aud-pick {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 10px;
  background: var(--c-surface-sub); border: 1px solid var(--c-line); border-radius: 6px; padding: 12px;
}

/* ---------- 비밀번호 규칙 체크리스트 (비밀번호 정책) ---------- */
/* 비밀번호 생성 규칙 카드 — 입력에 따라 충족 수·강도·항목이 실시간으로 바뀐다 (EC.pw.rulesHtml) */
.pw-guide {
  margin: 8px 0 0; padding: 12px 14px 11px;
  background: var(--c-surface-sub); border: 1px solid var(--c-line); border-radius: var(--r-ctrl);
}
.pw-guide__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.pw-guide__title { font-size: var(--fs-caption); font-weight: 700; color: var(--c-text); }
.pw-guide__count {
  font-size: var(--fs-caption); font-weight: 700; color: var(--c-text-mute);
  font-feature-settings: "tnum"; white-space: nowrap;
}
.pw-guide__count.is-done { color: var(--c-success); }

/* 강도 막대 — 4단. 규칙을 다 지키기 전에는 3단 이상으로 올라가지 않는다 */
.pw-meter { display: flex; align-items: center; gap: var(--s-2); margin-top: 7px; }
.pw-meter__track { display: flex; gap: 3px; flex: 1; }
.pw-meter__seg { flex: 1; height: 4px; border-radius: 999px; background: var(--c-line); transition: background .15s; }
.pw-meter__seg.tone-danger  { background: var(--c-danger); }
.pw-meter__seg.tone-warn    { background: var(--c-warn); }
.pw-meter__seg.tone-primary { background: var(--c-primary); }
.pw-meter__seg.tone-ok      { background: var(--c-success); }
.pw-meter__label { font-size: var(--fs-caption); font-weight: 700; color: var(--c-text-mute); white-space: nowrap; }
.pw-meter__label.tone-danger  { color: var(--c-danger-strong); }
.pw-meter__label.tone-warn    { color: var(--c-warn); }
.pw-meter__label.tone-primary { color: var(--c-primary-text); }
.pw-meter__label.tone-ok      { color: var(--c-success); }

.pw-guide__list {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5px 12px;
}
.pw-rule { display: flex; align-items: flex-start; gap: 6px; font-size: var(--fs-caption); line-height: 17px; color: var(--c-text-mute); }
.pw-rule--wide { grid-column: 1 / -1; }
.pw-rule__mark { width: 13px; text-align: center; font-weight: 700; flex: none; }
.pw-rule.is-ok { color: var(--c-success); }
.pw-rule.is-ng { color: var(--c-danger-strong); }
.pw-guide__note {
  margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--c-line);
  font-size: var(--fs-caption); line-height: 16px; color: var(--c-text-mute);
}

/* 비밀번호 표시/숨김 토글 */
/* D969 — 눈 아이콘 버튼(로그인 폼 .login-input__eye와 같은 꼴 · ~~글자 «표시»/«숨김» 버튼~~) */
.input-pw { position: relative; }
.input-pw .input { padding-right: 44px; }
.input-pw__eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 0; background: none; cursor: pointer; padding: 0; border-radius: var(--r-ctrl); color: var(--c-text-mute);
}
.input-pw__eye:hover { color: var(--c-primary-text); background: var(--c-primary-soft); }

/* 비밀번호 강제 변경 단독 페이지 */
.pw-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--c-bg); padding: var(--s-8) var(--s-4); }
.pw-page__card {
  width: 100%; max-width: 480px; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-card); box-shadow: var(--sh-modal);
  padding: var(--s-8);
}
.pw-page__logo { height: 32px; width: auto; display: block; margin: 0 auto var(--s-5); }   /* width:auto — <img width="194"> 속성이 가로를 고정하지 않게(높이만 정하고 비율을 따른다) */
.pw-page__title { font-size: var(--fs-h1); line-height: 28px; font-weight: 700; text-align: center; }
.pw-page__sub { font-size: var(--fs-table); color: var(--c-text-sub); text-align: center; margin-top: 6px; }
.pw-page__meta {
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  margin-top: var(--s-4); padding: 10px 12px;
  background: var(--c-surface-sub); border: 1px solid var(--c-line); border-radius: var(--r-ctrl);
  font-size: var(--fs-caption); color: var(--c-text-sub);
}
.pw-page__meta b { color: var(--c-text); font-weight: 600; }
.pw-page__actions { display: flex; gap: var(--s-2); margin-top: var(--s-6); }
.pw-page__actions .btn { flex: 1; }

/* ---------- 집계 범위 표기 (완료 계약 조회 범위 정책) ---------- */
.scope-note {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: var(--s-4); padding: 8px 12px;
  background: var(--c-surface-sub); border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-primary); border-radius: var(--r-ctrl);
  font-size: var(--fs-table); font-weight: 700; color: var(--c-text);
}
.scope-note b { color: var(--c-primary-text); }
.scope-note .mute { font-weight: 400; font-size: var(--fs-caption); }
.scope-note + .kpi-row,
.scope-note + .card,
.scope-note + .toolbar,
.scope-note + [data-list] { margin-top: var(--s-4); }
/* 가로 배치이므로 세로 스택용 인접 카드 여백(.card + .card)을 무효화 — 좌우 카드 상단 정렬 */
.dash-grid > .card + .card { margin-top: 0; }
/* D1207 — 거래처 대시보드 «서명대기» 카드 캐러셀(디자인 시안 B안 · §8 Gate Q2 «시안 그대로 카드형»).
   브랜드 연한 바탕 전폭 영역 · 머리(아이콘 칩 · 제목 · 건수 알약 · 전체 보기) · 카드 4장 폭 가로 스크롤(scroll-snap) · 넘칠 때만 좌우 버튼 */
.sign-wait { margin-top: var(--s-8); padding: var(--s-5) var(--s-6) var(--s-6); background: var(--c-primary-soft); border: 1px solid var(--c-line); border-radius: var(--r-card); }
.sign-wait__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.sign-wait__ico { width: 34px; height: 34px; flex: none; border-radius: var(--r-ctrl); background: var(--c-primary); color: var(--c-on-primary); display: inline-flex; align-items: center; justify-content: center; }
.sign-wait__head .h2 { margin: 0; }
.sign-wait__count { padding: 2px 10px; border-radius: var(--r-badge); background: var(--c-warn); color: var(--c-on-primary); font-size: var(--fs-caption); font-weight: 700; }
.sign-wait__more { margin-left: auto; }
.sign-wait__rail { position: relative; }
.sign-wait__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--s-4)) / 4); gap: var(--s-4);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px;
}
.sign-wait__track::-webkit-scrollbar { display: none; }
.sign-wait__nav {
  position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-text); box-shadow: var(--sh-drop);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sign-wait__nav--prev { left: -19px; }
.sign-wait__nav--next { right: -19px; background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.sign-wait__nav:disabled { opacity: .35; cursor: default; }
.sign-wait__nav[hidden] { display: none; }
.sw-card {
  scroll-snap-align: start; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: var(--s-5);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-card); cursor: pointer;
}
.sw-card:hover, .sw-card:focus-visible { border-color: var(--c-primary); outline: none; }
.sw-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 24px; }
.sw-card__dday .due { padding: 2px 8px; border-radius: var(--r-badge); background: var(--c-danger-soft); }
.sw-card__title { font-size: var(--fs-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sw-card__item { font-size: var(--fs-caption); color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: calc(-1 * var(--s-1)); }   /* D1230 — 품목 한 줄(계약명 아래) */
.sw-card__item span { color: var(--c-text-sub); margin-right: var(--s-1); }
.sw-card__meta { display: flex; gap: var(--s-3); font-size: var(--fs-caption); color: var(--c-text-sub); padding-bottom: var(--s-3); border-bottom: 1px solid var(--c-line); min-width: 0; }
.sw-card__meta .num { flex: none; color: var(--c-text-mute); }
.sw-card__amt { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); padding: var(--s-2) 0 var(--s-1); font-size: var(--fs-caption); color: var(--c-text-sub); }
.sw-card__amt b { font-size: var(--fs-lg); color: var(--c-text); }
.sw-card__amt small { font-size: var(--fs-caption); font-weight: 500; color: var(--c-text-sub); margin-left: 3px; }
.sw-card__btn { width: 100%; justify-content: center; gap: 6px; height: 44px; font-size: var(--fs-body); }
.widget-list { display: flex; flex-direction: column; }
.widget-item {
  display: flex; align-items: center; gap: var(--s-3); padding: 12px var(--s-6);
  border-bottom: 1px solid var(--c-line); cursor: pointer; min-height: 56px;
}
.widget-item:last-child { border-bottom: 0; }
.widget-item:hover { background: var(--c-surface-sub); }
.widget-item__title { flex: 1; min-width: 0; font-size: var(--fs-body); }
.widget-item__meta { font-size: var(--fs-caption); color: var(--c-text-mute); flex: none; font-feature-settings: "tnum"; }
/* D692 — 시안: «중요»는 빨간 세로 막대 + 빨간 글자(테두리 상자 없음)
   D753(사용자 지시 2026-09-15 «중요 태그 표시한 라인과 제목 라인이 안맞는데 높이 가운데 정렬») — 표 칸처럼 글자와 한 줄에 흐르는 자리에서는
   inline-flex의 기준선이 첫 항목(막대 ::before)의 아래 끝으로 잡혀 태그가 제목보다 2px 높게 섰다 → 줄 윗선에 맞춘다(줄 높이가 같은 두 상자라 가운데가 맞는다).
   위젯·상세·팝업처럼 flex로 가운데 정렬하는 자리에는 vertical-align이 적용되지 않아 그대로다 */
.notice-imp { display: inline-flex; align-items: center; gap: 6px; color: var(--c-danger); font-weight: 700; font-size: var(--fs-caption); flex: none; vertical-align: top; }
.notice-imp::before { content: ""; width: 3px; height: 14px; border-radius: 1px; background: currentColor; }
/* 대시보드 표 — 기한 임박 행 왼쪽 빨간 막대(시안 «계약자 서명 D-3») */
.table tr.row-urgent > td:first-child { box-shadow: inset 3px 0 0 var(--c-danger); }
.table .cell-strong { font-weight: 700; color: var(--c-text); }
.table .cell-sub { color: var(--c-text-sub); }
.table .nowrap { white-space: nowrap; }
/* 카드 안에 붙는 표 — 카드가 테두리를 갖고 표는 선을 두지 않는다(종전 인라인 style="border:0;box-shadow:none" 대체) */
.table-wrap--flush { border: 0; border-radius: 0; box-shadow: none; }
/* D692 — 대시보드 표: 열이 적어 본문 크기(14) · 행 56 · 제목 칸은 남는 폭을 차지하고 넘치면 줄임표 */
.table--dash td { font-size: var(--fs-body); height: 56px; }
.table--dash .cell-title { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table--dash .cell-item { max-width: 88px; }   /* D1230 — 대시보드 «품목» 열(반 폭 «내 할 일»에서 계약명 칸 폭을 지키는 상한 · 넘치면 말줄임 + 툴팁) */
.table--dash tbody tr:hover .cell-strong { color: var(--c-primary-text); }
/* D712 — 대시보드 «내 할 일»은 할 일 전건(EC.myTodos)을 싣는다(~~7건 제한~~):
   7행 반 높이를 넘으면 카드 안에서 스크롤하고 머리 행은 고정한다(border-collapse라 밑줄은 그림자로 붙인다) */
.table-wrap--scroll { max-height: calc(44px + 57px * 7.5); overflow-y: auto; }
.table-wrap--scroll .table th { position: sticky; top: 0; z-index: 1; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--c-line); }

/* ---------- 도장 스탬프 (시그니처) ---------- */
.stamp {
  width: 74px; height: 74px; border: 3px solid var(--c-seal); border-radius: 50%;
  color: var(--c-seal); display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; letter-spacing: 3px; padding-left: 3px; flex: none;
  /* D1207 — 시안 B안: 흰 바탕 원 + 서명 색 링 + 연한 번짐(~~기울인 투명 도장 rotate(-8deg) · opacity .9~~) */
  background: var(--c-surface); box-shadow: 0 0 0 5px var(--c-seal-soft), 0 4px 14px rgba(28,37,54,.18);
}
.stamp--sm { width: 56px; height: 56px; font-size: var(--fs-body); border-width: 2.5px; }
/* D1549 — 직인 생성 도장(EC.ui.stampText): 최대 9자를 글자 수별로 줄바꿈 배치(1·2·3자 한 줄 · 4자 2×2 · 5~6자 3+2/3+3 · 7~8자 4+3/4+4 · 9자 3×3).
   글자 수가 늘면 도장 지름도 키운다(5자부터 92px · 작은 치수 74px) — 원 안쪽 정사각형에 글자 덩어리가 들어가도록 크기를 맞춘 값이다.
   퍼블리싱 v1.1.4(2507633d)에서 이 블록만 옮겼다 — 이 파일은 그 밖에 프로젝트 보정이 섞여 있어 통째로 덮지 않는다. */
.stamp--txt { --st-w: 74px; --st-fs: 19px; --st-ls: 0px; width: var(--st-w); height: var(--st-w); font-size: var(--st-fs);
  flex-direction: column; padding: 0; letter-spacing: 0; line-height: 1.12; text-align: center; }
.stamp--txt.stamp--sm { --st-w: 56px; }
.stamp--sq { border-radius: 8px; }
.stamp__ln { display: block; white-space: nowrap; letter-spacing: var(--st-ls); padding-left: var(--st-ls); }
.stamp--n1 { --st-fs: 30px; }
.stamp--n2 { --st-fs: 21px; --st-ls: 3px; }
.stamp--n3 { --st-fs: 15px; --st-ls: 1px; }
.stamp--n4 { --st-fs: 18px; --st-ls: 1px; }
.stamp--n5, .stamp--n6, .stamp--n7, .stamp--n8, .stamp--n9 { --st-w: 92px; }
.stamp--n5, .stamp--n6 { --st-fs: 17px; }
.stamp--n7, .stamp--n8, .stamp--n9 { --st-fs: 15px; }
.stamp--sm.stamp--n1 { --st-fs: 22px; }
.stamp--sm.stamp--n2 { --st-fs: 15px; --st-ls: 2px; }
.stamp--sm.stamp--n3 { --st-fs: 11px; }
.stamp--sm.stamp--n4 { --st-fs: 13px; }
.stamp--sm.stamp--n5, .stamp--sm.stamp--n6, .stamp--sm.stamp--n7, .stamp--sm.stamp--n8, .stamp--sm.stamp--n9 { --st-w: 74px; }
.stamp--sm.stamp--n5, .stamp--sm.stamp--n6 { --st-fs: 14px; }
.stamp--sm.stamp--n7, .stamp--sm.stamp--n8, .stamp--sm.stamp--n9 { --st-fs: 12px; }

/* ---------- 서명 카드 ---------- */
.sign-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.sign-card { border: 1px solid var(--c-line); border-radius: var(--r-card); padding: var(--s-4); cursor: pointer; background: var(--c-surface); text-align: left; }
.sign-card:hover { border-color: var(--c-primary); }
.sign-card--default { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-focus-ring); }

/* ---------- eForm Mock 뷰어 ---------- */
.eform {
  background: var(--c-doc-backdrop); border-radius: var(--r-ctrl); padding: var(--s-6); display: flex; justify-content: center;
  /* align-items 기본값(stretch)이면 종이 높이가 flex 라인 크로스 크기(= min-height 640px)로 고정돼
     서명란 등 그 아래 내용이 종이 밖으로 넘친다. flex-start로 두어 내용만큼 늘어나게 한다. */
  align-items: flex-start;
  /* D349 — ~~max-height: 480px; overflow-y: auto~~ 폐지(사용자 지시 2026-09-03 «계약서 한눈에 보이게 해» — D344 거래처 서명 상세에 이어 체결 상세에서도).
     계약서 뷰어는 어디서나 안쪽 스크롤 없이 내용만큼 자라고 페이지가 스크롤한다. 미리보기 팝업은 .modal__body가 스크롤한다. */
}
.eform__paper {
  background: var(--c-paper); width: 560px; min-height: 640px; padding: 44px 48px; box-shadow: var(--sh-paper);
  font-size: 12.5px; line-height: 20px; flex: none;
}
.eform__title { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 6px; margin-bottom: 24px; }
/* D764 — 미리보기 팝업은 계약서 면 뒤에 별지·별첨 면을 잇는다: 회색 바탕 한 벌 안에 종이를 세로로 쌓는다(면 사이 간격만 남긴다) */
.eform-pages { background: var(--c-doc-backdrop); border-radius: var(--r-ctrl); }
.eform-pages > .eform { background: transparent; border-radius: 0; }
.eform-pages > .eform + .eform { padding-top: 0; }
/* D773 — 거래처 서명 화면의 비표준 서명본(.esign-doc · 아래 여백 16px) 뒤에 면이 붙으면 면 사이 간격을 eForm 면끼리와 같은 24px로 맞춘다 */
.eform-pages > .eform-pages__esign + .eform { padding-top: var(--s-2); }
.eform__paper--annex { min-height: 0; }
.eform__paper--wide { width: 800px; min-height: 0; }   /* [별지] 단가 리스트 — 10열이라 가로 면 */
.eform__title--annex { font-size: var(--fs-lg); letter-spacing: 2px; margin-bottom: 16px; }
.eform .eform__annex { width: 100%; border-collapse: collapse; }
.eform .eform__annex td, .eform .eform__annex th { padding: 4px 6px; font-size: var(--fs-caption); }
.eform .eform__annex th { background: var(--c-surface-sub); white-space: nowrap; }
.eform .eform__annex .r { text-align: right; white-space: nowrap; }
.eform .eform__annex .c { text-align: center; white-space: nowrap; }
.eform__clause { margin-bottom: 12px; }
.eform__clause b { display: block; margin-bottom: 2px; }
/* D660 — 입력 항목 조항은 «라벨 | 입력» 한 줄(항목당 두 줄 → 한 줄). 좁아지면 라벨이 위로 접힌다 */
.eform__clause--field { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.eform__clause--field > b { display: inline; margin-bottom: 0; flex: none; min-width: 104px; }
.eform table { margin: 10px 0; }
.eform td, .eform th { border: 1px solid var(--c-line-strong); padding: 5px 8px; font-size: 12px; }
.eform__signs { display: flex; justify-content: space-between; margin-top: 28px; gap: 16px; }
.eform__signbox { flex: 1; border: 1px dashed var(--c-line-strong); border-radius: 6px; padding: 12px; text-align: center; }
.eform__signbox.signable { border: 2px dashed var(--c-sign-spot); cursor: pointer; background: var(--c-sign-spot-bg); padding: 11px; }   /* D1207 — 내 서명 자리: 계열사 청록 · 거래처 서명 색 점선(시안) */
.eform__signbox.signable:hover { filter: brightness(.97); }
.eform__signbox .who { font-size: 11.5px; color: var(--c-text-sub); margin-bottom: 6px; }
.eform__signbox .sig { font-family: cursive; font-size: 24px; height: 34px; display:flex; align-items:center; justify-content:center; }
.eform__signbox .sig .stamp--mini {
  width: 30px; height: 30px; border: 2px solid var(--c-seal); border-radius: 50%; color: var(--c-seal);
  font-size: 9px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 6px; transform: rotate(-8deg); letter-spacing: 0;
}
/* D1312 — 서명란의 법인 인장(EC.ui.signSeal) — 이름 없이 인장만 찍히므로 가운데 · 한 치수 크게 */
.eform__signbox .sig .stamp--seal { margin-left: 0; width: 34px; height: 34px; }

.eform__signhint { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-sans); font-size: 12px; font-weight: 700; color: var(--c-sign-spot); }   /* D1207 — 내 서명 자리 안내(연필 + 서명 자리 색) */

/* ---------- 서명 화면 2열 · 서명 정보 패널 (D1207 — 디자인 시안 B안 · §8 Gate Q1 «시안 그대로») ----------
   왼쪽 계약서(회색 바탕 + A4 종이) | 오른쪽 «서명 정보»(정보 표 · 서명 순서 · 서명 방법 · 서명 전 확인 · 서명 버튼).
   종이(560 + 여백)가 들어가도록 왼쪽 열 최소 640 — 본문 최소 폭 960(1280 뷰포트)에서 640 + 20 + 300이 딱 맞는다. 패널은 스크롤해도 따라온다(sticky). */
.sign-layout { display: grid; grid-template-columns: minmax(640px, 1fr) minmax(300px, 420px); gap: var(--s-5); align-items: start; }
.sign-layout > .card + .card { margin-top: 0; }
.card + .sign-layout { margin-top: var(--s-6); }   /* 스테퍼 카드 다음(계약자 서명 상세) */
.sign-panel { position: sticky; top: calc(var(--h-header) + var(--s-4)); }
.sign-panel__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-5); }
.sign-panel__title { font-size: var(--fs-body); font-weight: 700; margin: 0 0 var(--s-2); }
.sign-order { list-style: none; margin: 0; padding: var(--s-2) var(--s-4); border: 1px solid var(--c-line); border-radius: var(--r-card); }
.sign-order__step { position: relative; display: flex; align-items: center; gap: var(--s-3); padding: 10px 0; }
.sign-order__step + .sign-order__step::before { content: ""; position: absolute; left: 13px; top: -14px; width: 2px; height: 28px; background: var(--c-line-strong); z-index: 0; }
.sign-order__no { position: relative; z-index: 1; }
.sign-order__no {
  width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--c-line-strong); background: var(--c-surface);
  color: var(--c-text-mute); font-size: var(--fs-caption); font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.sign-order__step.is-turn .sign-order__no, .sign-order__step.is-done .sign-order__no { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.sign-order__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sign-order__role { font-size: var(--fs-body); }
.sign-order__who { font-size: var(--fs-caption); color: var(--c-text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sign-order__st { flex: none; font-size: var(--fs-caption); font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.sign-order__st--done { color: var(--c-success); }
.sign-order__st--turn { color: var(--c-warn); }
.sign-order__st--wait { color: var(--c-text-mute); font-weight: 500; }
.sign-order__st--done::before, .sign-order__st--turn::before { content: ""; width: 7px; height: 7px; background: currentColor; }
.sign-method {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4);
  border: 2px solid var(--c-primary); border-radius: var(--r-card); background: var(--c-primary-soft);
}
.sign-method__radio { position: relative; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--c-primary); background: var(--c-surface); }
.sign-method__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c-primary); }
.sign-method__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sign-method__text b { font-size: var(--fs-body); }
.sign-method__text span { font-size: var(--fs-caption); color: var(--c-text-sub); }
.sign-method__ico { flex: none; color: var(--c-primary-text); display: inline-flex; }
.sign-checks { display: flex; flex-direction: column; gap: 10px; padding: 2px; border-radius: var(--r-ctrl); transition: background .2s; }
.sign-checks .checkbox { align-items: flex-start; font-size: var(--fs-table); line-height: 1.5; }
.sign-checks .checkbox input { margin-top: 1px; flex: none; }
.sign-checks.is-alert { background: var(--c-danger-soft); box-shadow: 0 0 0 6px var(--c-danger-soft); }
.sign-panel__note { margin: 0; padding: var(--s-3) var(--s-4); list-style: none; background: var(--c-surface-sub); border-radius: var(--r-ctrl); font-size: var(--fs-caption); color: var(--c-text-sub); line-height: 1.7; }
.sign-panel__note li::before { content: "· "; }
.sign-panel__foot { padding: var(--s-4) var(--s-5) var(--s-5); border-top: 1px solid var(--c-line); }
.sign-panel__foot .btn-hint { display: flex; }
.sign-panel__foot .btn { width: 100%; justify-content: center; gap: 6px; }
@media (max-width: 1100px) {   /* 좁은 화면 — 패널을 계약서 아래로 내린다 */
  .sign-layout { grid-template-columns: minmax(0, 1fr); }
  .sign-panel { position: static; }
}

/* ---------- 차트 ---------- */
.chart-card__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.chart-legend { display: flex; gap: var(--s-4); font-size: var(--fs-caption); color: var(--c-text-sub); flex-wrap: wrap; }
.chart-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.bar-click { cursor: pointer; }
.bar-click:hover { opacity: .8; }

/* ---------- 로그인 폼 ---------- */
.login-form { display: flex; flex-direction: column; gap: var(--s-3); }

/* D1441(2026-10-07 · 사용자 지시 «모바일은 없어 제거해») — ~~모바일 여정(M-0~M-6) 폰 프레임 목업 · .mobile-stage · .phone · .m-card · .m-accordion · .m-eform · .phone-note~~ 폐지 */

/* ---------- 유틸 ---------- */
.row { display: flex; align-items: center; gap: var(--s-2); }
.row--between { justify-content: space-between; }
.mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); } .mt-8 { margin-top: var(--s-8); }
.mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* ── 콤보박스 — 키워드 입력과 목록 선택을 한 필드에서 처리한다.
   조회 조건에서 "직접 입력"과 "등록된 값 중 선택"이 모두 필요할 때 쓴다(필드를 둘로 나누지 않는다).
   신규 색상 토큰 없이 기존 토큰만 사용한다. */
.combo { position: relative; }
.combo .input { width: 100%; padding-right: 30px; }
.combo__toggle {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 28px;
  border: 0; background: transparent; cursor: pointer; color: var(--c-text-sub);
  display: flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1;
}
.combo__toggle:hover { color: var(--c-primary-text); }
.combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  max-height: 224px; overflow-y: auto; margin: 0; padding: 4px; list-style: none;
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-ctrl); box-shadow: 0 6px 18px rgba(28, 37, 54, .12);
}
.combo__list li {
  padding: 7px 10px; border-radius: var(--r-ctrl); cursor: pointer;
  font-size: var(--fs-table); color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.combo__list li:hover { background: var(--c-primary-soft); }
.combo__list li.is-empty { color: var(--c-text-mute); cursor: default; }
.combo__list li.is-empty:hover { background: transparent; }

/* D637 — ~~.cp-stage-row / .cp-stage*(컴플라이언스 대시보드 «계약 진행 단계» 5단계 카드)~~ 폐지.
   화면 조각이 사라져 읽는 규칙이 없다(사용자 지시 2026-09-10 «삭제해» · 도달 코드 없는 CSS를 두지 않는다 · D008). */

/* ── 표준서식 관리 (컴플라이언스 · MySuit 편입 — D098 · D099 단순화) ──────────
   서식 상태 배지 5종은 기존 상태 토큰만 재사용한다(신규 색상 토큰 없음). */
.badge--TPL_EDITING    { color: var(--st-awaiting-text); --badge-dot: var(--st-awaiting); }
.badge--TPL_PUBLISHED  { color: var(--st-confirm-text); --badge-dot: var(--st-confirm); }
.badge--TPL_ACTIVE     { color: var(--st-concluded-text); --badge-dot: var(--st-concluded); }
.badge--TPL_DEPRECATED { color: var(--st-expired-text); --badge-dot: var(--st-expired); }
.badge--TPL_RETIRED    { color: var(--st-terminated-text); --badge-dot: var(--st-terminated); }

/* 서식제작 요청 상태 4종 (D171) — 서식 상태(TPL_*)와 별개 도메인. 기존 상태 토큰을 재사용한다(신규 색 토큰 0) */
.badge--TR_REQUESTED { color: var(--st-awaiting-text); --badge-dot: var(--st-awaiting); }
.badge--TR_ACCEPTED  { color: var(--st-cpreview-text); --badge-dot: var(--st-cpreview); }
.badge--TR_DONE      { color: var(--st-confirm-text); --badge-dot: var(--st-confirm); }
.badge--TR_RETURNED  { color: var(--st-returned-text); --badge-dot: var(--st-returned); }
/* D217 — 요청 «승인 완료»(파생 표시 상태)는 서식 «사용 중»과 같은 결로 읽는다 */
.badge--TR_APPROVED  { color: var(--st-concluded-text); --badge-dot: var(--st-concluded); }

/* Viewer 분할 레이아웃(③ 검수) */
.tpl-viewer { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-5); align-items: start; }
.tpl-viewer > div > .card + .card { margin-top: var(--s-5); }

/* 상세 헤더 정보 그리드 — 라벨 폭 축소·한 줄 유지 */
.tpl-info .info-row { min-width: 0; }                       /* 1fr 트랙이 내용 폭으로 늘어나 4열이 화면 밖으로 밀리지 않게(D117) */
.tpl-info .info-row dt { width: 96px; }
.tpl-info .info-row dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-info .info-row--wide { grid-column: span 2; }           /* 서식 구성처럼 긴 값은 2열 폭 */
.tpl-info .info-row--wrap dd { white-space: normal; overflow: visible; }   /* 적용범위: 배지·계열사명·[변경]이 잘리지 않게 줄바꿈 허용 */


/* Viewer — 자동 채움 값·본문 입력 */
.tpl-auto {
  background: var(--c-surface-sub); border: 1px solid var(--c-line);
  border-radius: 4px; padding: 1px 6px; color: var(--c-text-sub); font-weight: 600;
}
.eform .tpl-in { height: 30px; font-size: 12.5px; display: inline-block; width: auto; vertical-align: middle; }
.eform .checkbox, .eform .radio { font-size: 12.5px; }

/* 서식 감사로그 타임라인 */
.tpl-tl { display: flex; flex-direction: column; }
.tpl-tl__item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tpl-tl__item:last-child { padding-bottom: 0; }
.tpl-tl__item::before { content: ""; position: absolute; left: 4px; top: 14px; bottom: 0; width: 2px; background: var(--c-line); }
.tpl-tl__item:last-child::before { display: none; }
.tpl-tl__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-strong); flex: none; margin-top: 5px; z-index: 1; }
.tpl-tl__dot.is-primary { background: var(--c-primary); }
.tpl-tl__dot.is-danger { background: var(--c-danger); }
.tpl-tl__body { min-width: 0; }
.tpl-tl__head { font-size: var(--fs-table); }
.tpl-tl__detail { font-size: var(--fs-caption); color: var(--c-text-sub); margin-top: 1px; }
.tpl-tl__meta { font-size: var(--fs-caption); color: var(--c-text-mute); margin-top: 2px; font-feature-settings: "tnum"; }

@media (max-width: 1100px) {
  .tpl-viewer { grid-template-columns: 1fr; }
  .tpl-info { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- 표준서식 적용범위 선택기 (D102) ---------- */
.tpl-scope { border: 1px solid var(--c-line); border-radius: var(--r-ctrl); padding: var(--s-3) var(--s-4); background: var(--c-surface-sub); }
.tpl-scope__affs { border-top: 1px dashed var(--c-line); padding-top: var(--s-3); }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.chk-grid .checkbox { align-items: flex-start; }
.field.has-error .tpl-scope { border-color: var(--c-danger); }
@media (max-width: 767px) { .chk-grid { grid-template-columns: 1fr; } }



/* ---------- ~~D683 — 권한설정(포털 탭 · 메뉴 단위 행 · 사용자 유형 열) · .perm-sec · .perm-note · .perm-table · .perm-role~~ ----------
   D1005(«시스템관리자 권한설정 메뉴 제거해» · §8 Gate ⓐ) — 쓰던 화면(#/admin/permissions)이 없어져 규칙째 걷었다(D979 미사용 CSS 정리 선례) */

/* ---------- D119 — 특약 조건 (계약 등록 입력 · eForm «특약 조건» 영역 · 읽기전용 행) — 기존 토큰만 ---------- */
.sp-list { display: flex; flex-direction: column; gap: 10px; }
.sp-row {
  display: grid; grid-template-columns: 64px 220px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface-sub);
}
.sp-row__no { font-size: var(--fs-caption); font-weight: 700; color: var(--c-primary-text); padding-top: 30px; white-space: nowrap; }
.sp-row__rm { margin-top: 24px; }
.sp-row .field { margin: 0; }
@media (max-width: 767px) { .sp-row { grid-template-columns: 1fr; } .sp-row__no, .sp-row__rm { padding-top: 0; margin-top: 0; } }
.eform__sp { margin: 6px 0 0; padding-left: 18px; }
.eform__sp li { margin-bottom: 4px; }
.sp-read { margin: 0; padding-left: 18px; }
.sp-read li { margin-bottom: 2px; }

/* D229 — 특약 내용을 편집기로 쓰는 행(비표준계약·서면계약): 제목·편집기를 세로로 쌓아 편집 폭을 넓힌다 */
.sp-row--rich { grid-template-columns: 64px minmax(0, 1fr) auto; }
.sp-row__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 767px) { .sp-row--rich { grid-template-columns: 1fr; } }

/* 편집기로 쓴 특약의 읽기 표시 — 제목 아래 블록으로 싣는다(목록 들여쓰기 안에서 여백만 다듬는다) */
.sp-rich { margin-top: 3px; }
.sp-rich > :first-child { margin-top: 0; }
.sp-rich > :last-child { margin-bottom: 0; }
/* 문서 밖(진행 상세·거래처 포털)에서도 목록 표식을 살린다 — .contract-doc가 없는 자리다 */
.sp-rich ul { list-style: disc; padding-left: 18px; margin: 0 0 4px; }
.sp-rich ol { list-style: decimal; padding-left: 18px; margin: 0 0 4px; }
.sp-rich p { margin: 0 0 4px; }

/* ---------- 레드라인(변경 표시) — D155 ----------
   비표준 계약서 본문의 상신본 대비 변경분을 줄 단위로 보여준다. 색은 기존 상태 토큰을 재사용한다(신규 토큰 0). */
/* D1035 — ~~SSO 로그인 시나리오 선택·흐름(.sso-cases · .sso-case · .sso-flow — D156 · SSO인터페이스 §7)~~ 는 SSO 팝업 폐지로 읽는 곳이 없어 걷었다(D008) */

/* ~~.redline 줄 목록(D155)~~ — D306에서 제거. 변경 표시는 아래 .rl-* (D303) 한 벌이다. */

/* ── 워드식 레드라인 «변경 내용 창» (D303) ────────────────────────────────
   왼쪽 문서(인라인 마크업)와 오른쪽 변경 목록 2단. 컴플라이언스 검토·계열사 재작성·버전 간 보기가 같은 셸을 쓴다.
   색은 --st-concluded(삽입)·--st-declined(삭제)·--c-primary(선택) 재사용 — 신규 토큰 0. */
.rl-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s-4); align-items: start; }
.rl-doc { border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface);
  padding: var(--s-5) var(--s-6) var(--s-5) 28px; max-height: 640px; overflow: auto; min-width: 0; }
.rl-panel { border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface);
  position: sticky; top: var(--s-4); max-height: 640px; display: flex; flex-direction: column; min-width: 0; }
.rl-panel__head { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); flex: none; }
.rl-panel__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-2); }
.rl-panel__sp { flex: 1; }
.rl-panel__list { list-style: none; margin: 0; padding: 0; overflow: auto; }
.rl-item { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); cursor: pointer; }
.rl-item:last-child { border-bottom: 0; }
.rl-item:hover { background: var(--c-surface-sub); }
.rl-item.is-active { background: var(--c-surface-sub); box-shadow: inset 3px 0 0 var(--c-primary); }
.rl-item:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.rl-item__head { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.rl-item__text { font-size: var(--fs-table); line-height: 1.6; margin-top: 4px; word-break: break-word; }
.rl-item__text del { color: var(--st-declined); }
.rl-item__text ins { color: var(--st-concluded-text); text-decoration: underline; }
.rl-item__acts { display: flex; gap: 6px; margin-top: 6px; }
.rl-kind { font-size: var(--fs-caption); font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.rl-kind--ins { color: var(--st-concluded-text); background: var(--st-concluded-bg); }
.rl-kind--del { color: var(--st-declined); background: var(--st-declined-bg); }
.rl-kind--rep { color: var(--c-primary-text); background: var(--c-surface-sub); }
/* D568 — 0건인 종류의 태그(변경 비교 카드 머리 요약). 색을 빼서 실제로 바뀐 종류만 눈에 들어오게 한다 · 기존 토큰만 쓴다 */
.rl-kind--none { color: var(--c-text-mute); background: var(--c-surface-sub); }
.rl-empty { padding: var(--s-5); text-align: center; color: var(--c-text-sub); }
.rl-shell--doc { grid-template-columns: 1fr; }
.rl-shell--doc .rl-doc { max-height: none; border: 0; border-radius: 0; padding: var(--s-4) var(--s-5) var(--s-4) 24px; }
/* D1368 — [계약서 이력] «버전 · 변경 보기»는 목록 없이 문서만(전폭) · 테두리·높이 상한은 종전 문서 칸 그대로 */
[data-vcmp] .rl-shell--doc .rl-doc { max-height: 640px; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: var(--s-5) var(--s-6) var(--s-5) 28px; }
/* D1160(회의록 2026-09-28 결정 3) — 변경 건별 «변경 사유»: 계열사 [계약서 이력] 변경 목록의 읽기 줄 · 기존 토큰만 */
.rl-item__why { margin-top: 6px; font-size: var(--fs-table); line-height: 1.6; word-break: break-word; }
.rl-item__why-l { font-size: var(--fs-caption); font-weight: 700; color: var(--c-primary-text); margin-right: 6px; }
/* D1163(사용자 지시 «제거해» · §8 Gate «본문 표시를 눌러 적기») — 검토 화면은 목록 없이 본문 표시를 눌러 사유를 적는다:
   누를 수 있는 표시는 손가락 커서, 사유를 적은 변경은 끝에 «사유» 표시(마지막 마크 하나 · 취소선·밑줄을 물려받지 않게 inline-block) */
.rl--pick { cursor: pointer; }
.rl--why::after { content: "사유"; display: inline-block; margin-left: 3px; padding: 0 4px; border-radius: 3px; vertical-align: super;
  font-size: var(--fs-caption); font-weight: 700; line-height: 1.4; color: var(--c-primary-text); background: var(--c-primary-soft); }
/* D1159(결정 2 · 워드 변경 추적 형태) — 본문 전체 + 삭제·삽입 표시가 칸 높이를 채우고 안쪽에서 스크롤한다.
   높이는 왼쪽 편집기 카드(도구 모음 + 편집 영역 520)에 맞춘다 · D1163 — ~~아래 «변경 내용» 목록~~ 폐지(검토 화면은 noPanel) */
.rl-shell--stack { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 0; height: 600px; align-items: stretch; }
/* 검토 화면 칸 안에서는 카드 몸통을 꽉 채운다 — 칸이 행 높이를 키우지 않게(긴 본문이 왼쪽 편집기까지 늘리지 않게) 절대 배치하고, 칸의 최소 높이만 준다 */
.ed-split > .card > .card__body > [data-compare] { position: relative; min-height: 600px; }
[data-compare] > .rl-shell--stack { position: absolute; inset: 0; height: auto; }
.rl-shell--stack .rl-doc { border: 0; border-radius: 0; max-height: none; min-height: 0; padding: var(--s-4) var(--s-5) var(--s-4) 24px; }
@media (max-width: 767px) {
  .rl-shell { grid-template-columns: 1fr; }
  .rl-panel { position: static; max-height: none; }
  .rl-doc { max-height: 420px; }
}

/* ── 변경 비교 2열 (D544 · 사용자 지시 2026-09-09 «첨부이미지 참고해서 화면구성해줘») ─────────
   «변경 표시» 탭을 없애고 편집기 옆에 붙인 패널이다 — 머리는 «추가 N · 삭제 N · 수정 N»,
   본문은 변경마다 «원본 | 수정본» 2열이고 편집 가능 건에는 [수락]·[거부]가 붙는다.
   ⚠ D303 «저장 시 비교형»은 그대로다 — «수정본»은 [레드라인 저장]된 본문이지 편집 중 입력이 아니다.
   색·배지는 레드라인(.rl-kind · del · ins)이 쓰던 것을 그대로 쓴다 — 신규 토큰 0. */
.rl-cmp { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.rl-cmp__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4);
  padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--c-line);
  background: var(--c-surface-sub); font-weight: 700; font-size: var(--fs-table); flex: none; }
.rl-cmp__body { flex: 1 1 auto; min-height: 0; overflow: auto; }
.rl-cmp__row { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-line); }
.rl-cmp__row:last-child { border-bottom: 0; }
.rl-cmp__cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); margin-top: 6px; }
.rl-cmp__cell { font-size: var(--fs-table); line-height: 1.6; word-break: break-word;
  padding: 6px 8px; border-radius: var(--r-ctrl); background: var(--c-surface-sub); }
.rl-cmp__cell del { color: var(--st-declined); }
.rl-cmp__cell ins { color: var(--st-concluded-text); text-decoration: underline; }
@media (max-width: 767px) { .rl-cmp__head, .rl-cmp__cells { grid-template-columns: 1fr; } }

/* ── 검토 편집기 «분할 보기» (D370 · §8 Gate B안) ─────────────────────────
   좌 «원본»(기준본 대비 **저장된** 변경 표시 · 읽기 전용) | 우 편집기. D303 «저장 시 비교형»은 그대로다 —
   좌측 마크업은 저장된 본문으로 계산한 결과이고 편집 중 키 입력을 추적하지 않는다.
   토글([전폭 편집]/[분할 보기])은 DOM을 다시 그리지 않고 --off 클래스만 바꾼다 — 편집기 인스턴스와 작성 중 내용을 지킨다.
   1400 미만에서는 좌우가 아니라 세로로 쌓는다 — 실측 1280에서 열 폭이 485px까지 줄어 조항 한 줄이 30자 남짓밖에 들어가지 않는다.
   기준 해상도 1920(D302 · 열 폭 623px)과 1440(≈570px)에서 좌우로 두고, 그보다 좁으면 원본을 위에 쌓아 전폭으로 읽는다. */
.ed-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); align-items: stretch; }
/* D372 — 두 면의 «높이»를 맞춘다: 편집기 카드(도구 모음 + 편집 영역 520)가 행 높이를 정하고 좌측 «원본»이 그만큼 늘어난다.
   늘어난 만큼 원본은 안쪽에서 스크롤한다(나란히 읽으려면 문서마다 안쪽 스크롤이 필요하다 — «변경 표시» 탭과 같은 방식). */
.ed-split > .card { display: flex; flex-direction: column; min-width: 0; }
.ed-split > .card > .card__body { flex: 1 1 auto; min-height: 0; }
/* D544 — ~~.ed-split__orig(좌측 «원본» 문서 패널)~~ 제거. 대조는 «변경 비교» 패널(.rl-cmp)이 맡는다. */
.ed-split > .card > .card__body > [data-compare] { height: 100%; }
/* D372 — 편집 중 본문 서식도 원본과 같게 한다: 계약서 조판 규칙(.contract-doc — 제목 가운데·밑줄 · 조항 11.5pt · 본문 10.5pt/1.75)을
   편집 영역에 그대로 입힌다(신규 서식 정의 0 · CLAUDE §11). 여백만 원본 문서(.rl-doc)와 맞춘다. */
.ed-split .note-editable.contract-doc { padding: var(--s-5) var(--s-6); }
.ed-split .note-editable.contract-doc h1 { margin-top: 0; }
/* 2열에서 «.card + .card» 세로 간격(20px)이 오른쪽 카드를 아래로 밀어 두 면의 높이를 어긋내게 한다 — 행에서는 끈다 */
.ed-split > .card + .card { margin-top: 0; }
/* 편집 영역이 카드 높이를 그대로 채운다(써머노트 height 옵션 대신 flex로 늘린다 — 좌측 원본과 같은 높이가 된다) */
.ed-split > .card > .card__body > [data-editor] { height: 100%; }
/* .note-editor·.note-editing-area·.note-editable의 flex 규칙은 doc-editor.css에 있다 */
@media (max-width: 1399px) { .ed-split { grid-template-columns: minmax(0, 1fr); } }

/* ── 핵심 계약 조건 강조 (D279 · econtract-prototype-spec §8.5) ────────────
   현업 피드백 «무채색 일변도라 중요한 항목과 아닌 항목이 구분되지 않는다»에 대한 답이다.
   단가·수량·계약기간·연동 조건처럼 계약의 뼈대가 되는 값만 색으로 각인시키고,
   표준 약관·공통 안내는 강조하지 않는다. 새 색을 만들지 않고 tokens.css의 기존 토큰만 쓴다. */
.card--key { border-left: 3px solid var(--c-primary); }
.card--key > .card__head .h2 { color: var(--c-primary-deep); }
.keyterm {
  display: inline-block; padding: 1px 6px; border-radius: var(--r-ctrl);
  background: var(--c-primary-soft); color: var(--c-primary-deep); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.keyterm b { font-weight: 700; }
td.keyterm { display: table-cell; padding: 0 10px; border-radius: 0; background: transparent; color: var(--c-text); }
td.keyterm b, td.keyterm > span:not(.mute) { color: var(--c-primary-deep); }
.input--amount.keyterm { background: var(--c-primary-soft); color: var(--c-primary-deep); font-weight: 700; }


/* ---------- 계약서 파일 (D573) ----------
   파일 갈래의 «본문» 자리 — 계약서 원본이 파일 하나이므로 파일명·형식·버전을 한 줄로 읽고 [원본 다운로드]를 둔다.
   문서 맥락(서명본·PDF 미리보기)에서는 버튼 없이 같은 줄만 실린다(EC.ui.docFileBody opt.doc). 기존 토큰만 쓴다. */
.doc-file { border: 1px solid var(--c-line); border-radius: var(--r-ctrl); padding: var(--s-4); background: var(--c-surface-sub); }
.doc-file__row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.doc-file__ico { font-size: var(--fs-title); line-height: 1; }
.doc-file__name { font-weight: 600; word-break: break-all; }
.doc-file__row .btn { margin-left: auto; }
.doc-file__note { margin: var(--s-3) 0 0; }

/* ---------- 공동인증서 선택창 — KTNET 인증서 선택창 꼴 (D887 · 계열사·거래처 인증 팝업 공용) ---------- */
.certwin { border: 1px solid var(--c-line); border-radius: var(--r-card); background: var(--c-surface); overflow: hidden; }
.certwin__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; background: var(--c-surface-sub); border-bottom: 1px solid var(--c-line); }
.certwin__title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-body); color: var(--c-text); }
.certwin__issuer { font-size: var(--fs-caption); color: var(--c-text-sub); white-space: nowrap; }
.certwin__media { display: flex; border-bottom: 1px solid var(--c-line); }
.certwin__tab { flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--c-text-sub); font-size: var(--fs-caption); cursor: pointer; }
.certwin__tab:hover { background: var(--c-surface-sub); color: var(--c-text); }
.certwin__tab.active { color: var(--c-primary-text); border-bottom-color: var(--c-primary); background: var(--c-primary-soft); font-weight: 600; }
.certwin__list { min-height: 150px; max-height: 224px; overflow: auto; }
.certwin__table { margin: 0; }
.certwin__table th { position: sticky; top: 0; z-index: 1; }
.certwin__row { cursor: pointer; }
.certwin__row:hover td { background: var(--c-surface-sub); }
.certwin__row.is-selected td { background: var(--c-primary-soft); }
.certwin__row.is-selected .certwin__subject { font-weight: 600; color: var(--c-primary-text); }
.certwin__row:focus-visible { outline: 2px solid var(--c-primary); outline-offset: -2px; }
.certwin__empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; color: var(--c-text-sub); font-size: var(--fs-table); padding: 16px; }
.certwin__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px; border-top: 1px solid var(--c-line); background: var(--c-surface-sub); }
.certwin__pw { flex: 1; min-width: 0; }
.certwin__pw .input { max-width: 320px; }
.certwin__pw .field__help { display: block; margin-top: 4px; }   /* 도움말이 입력 옆으로 흐르지 않게 */
.certwin__tools { display: flex; gap: 6px; flex-shrink: 0; padding-bottom: 20px; }
.certwin__info th { width: 110px; text-align: left; color: var(--c-text-sub); font-weight: 500; }
@media (max-width: 767px) {
  .certwin__foot { flex-direction: column; align-items: stretch; }
  .certwin__tools { padding-bottom: 0; }
}

/* ---------- 배치 모니터링 (08-5 · D886) ---------- */
.batch-row--active td { background: var(--c-primary-soft); }
.kv-table th { width: 120px; text-align: left; color: var(--c-text-sub); font-weight: 500; vertical-align: top; }
.batch-log { margin: 0; padding-left: 20px; font-size: var(--fs-table); line-height: 22px; }
.batch-log .num { margin-right: 6px; }

/* D1361 — 열 너비 고정 표(.table--fixed · 사용자 지시 2026-10-02 «목록 1·2페이지 넘어갈 때 열 너비가 바뀐다 — 고정»). 자동 레이아웃은 쪽마다 내용 길이로 열 폭이 바뀌므로
   table-layout 고정 + <colgroup> % 폭을 쓴다. 긴 글은 칸 안에서 말줄임(전체는 칸 툴팁) · 좁은 화면은 table-wrap 안 가로 스크롤 */
.table--fixed { table-layout: fixed; width: 100%; min-width: 1180px; }
.table--fixed td, .table--fixed th { overflow: hidden; }
.table--fixed td.cell-ellipsis, .table--fixed td.cell-partner, .table--fixed td.cell-item { max-width: none; text-overflow: ellipsis; white-space: nowrap; }

/* D1399 — 멀티셀렉트(컴플라이언스 그룹 «팀장»·«검토 담당자») — 닫힌 모양은 .select와 같고, 펼치면 체크 목록.
   패널은 position:fixed — 표(.table-wrap overflow)에 잘리지 않게 버튼 위치를 JS가 읽어 놓는다 */
.mselect { max-width: 280px; }
.mselect__btn { display: block; height: 40px; line-height: 38px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text); }
.mselect__btn.is-empty { color: var(--c-text-mute); }
.mselect__panel { position: fixed; z-index: var(--z-drop); min-width: 220px; padding: 6px 0; background: var(--c-surface);
  border: 1px solid var(--c-line); border-radius: var(--r-ctrl); box-shadow: var(--sh-drop); }
.mselect__opt { display: flex; width: 100%; padding: 8px 12px; }
.mselect__opt:hover { background: var(--c-surface-sub); }
.mselect__empty { padding: 8px 12px; color: var(--c-text-mute); font-size: var(--fs-table); }
