/* s-client 영역 결정 반영: DECISIONS R-xx로 새로 생긴 규칙만(규칙마다 결정 번호 주석). 원본 CSS 바이트는 고치지 않는다. */
/* R-19 P-1: 공급사 계약서 올리기 · 서명 칸 안내 글(shared/progress/esign-step.tsx) */
:is(.x-body, .x-sheet) .es-note {
  margin: 0;
  font: var(--ui-t-secondary-medium);
  color: var(--ui-ink-2);
}

/* e-s-deal */
/* R-10: 방문 장소 고르기(정기 방문 rr-seg 모양 · 장소 이름이 길거나 많으면 줄바꿈) */
.x-body .sv-places {
  flex-wrap: wrap;
  align-self: flex-start;
  justify-self: start;
  max-width: 100%;
}
/* R-21 · 태스크 3(3-6): 계약 뒤 신고 전 띠(sv-other 모양 · 좁으면 칩이 아래로) */
.x-body .sv-filing-band {
  flex-wrap: wrap;
}

/* e-s-client */
/* R-19 P-7: s/visits 방문일 제안 시트의 방문 시간 · 전할 말 칸(원본 .ss-field input과 같은 모양) */
.ss-field :is(select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 12px;
  background: var(--ui-surface);
  font: 500 16px / 1.4 var(--ui-font);
  color: var(--ui-ink);
}

/* e9-esign */
/* C-76(나+): 서명 자리 놓기 쪽 그림 · 끌 수 있는 상자(shared/progress/sign-spots.tsx · new-sm contract-brokered.css cpdf-place 값 · 고객 = 보라 · 공급사 = 파랑) */
:is(.x-body, .x-sheet) .ss-spot-page {
  position: relative;
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--ui-line);
  background: #fff;
  touch-action: none;
  user-select: none;
}
:is(.x-body, .x-sheet) .ss-spot-page > img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
:is(.x-body, .x-sheet) .ss-place {
  --ss-c: var(--ui-brand);
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 2px dashed var(--ss-c);
  border-radius: 6px;
  background: color-mix(in srgb, var(--ss-c) 12%, transparent);
  cursor: move;
}
:is(.x-body, .x-sheet) .ss-place.is-supplier {
  --ss-c: #1b64da;
}
:is(.x-body, .x-sheet) .ss-place:focus-visible {
  outline: 3px solid var(--ss-c);
  outline-offset: 2px;
}
:is(.x-body, .x-sheet) .ss-place-label {
  padding: 0 4px;
  color: var(--ss-c);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
:is(.x-body, .x-sheet) .ss-place-remove {
  position: absolute;
  top: -11px;
  right: -11px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ui-ink);
  color: #fff;
  cursor: pointer;
}
:is(.x-body, .x-sheet) .ss-place-resize {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 3px;
  background: var(--ss-c);
  cursor: nwse-resize;
  touch-action: none;
}

/* 손 서명본(2026-11-10): 업무 보고서 서명 자리 · 이름 상자 = 파랑 · 서명 상자 = 보라(shared/progress/report-upload-step.tsx) */
:is(.x-body, .x-sheet) .ss-place.is-name {
  --ss-c: #1b64da;
}
/* 서명 자리 정하기가 열린 보고서 줄 = 줄 단추([보고서 올리기] · [바꾸기])를 숨김(progress-view hidden) */
:is(.x-body, .x-sheet) :is(.sa-acts, .sv-acts)[hidden] {
  display: none !important;
}
:is(.x-body, .x-sheet) .rs-step {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: var(--ui-surface);
}
/* 보고서 줄(날짜 칸 + 내용) 안의 서명 자리 정하기 = 다음 줄 전체 폭 */
.x-body .sv-ticket:has(> .rs-step) {
  flex-wrap: wrap;
}
.x-body .sv-ticket > .rs-step {
  flex: 1 0 100%;
  margin-top: 0;
}
:is(.x-body, .x-sheet) .rs-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:is(.x-body, .x-sheet) .rs-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid var(--ui-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ui-ink);
  font: 500 13px / 1.3 var(--ui-font);
}
:is(.x-body, .x-sheet) button.rs-file {
  cursor: pointer;
}
:is(.x-body, .x-sheet) .rs-file.is-on {
  border-color: var(--ui-brand);
  box-shadow: inset 0 0 0 1px var(--ui-brand);
}
:is(.x-body, .x-sheet) .rs-file.is-attach {
  color: var(--ui-ink-2);
}
:is(.x-body, .x-sheet) .rs-file-n {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
:is(.x-body, .x-sheet) .rs-file-c,
:is(.x-body, .x-sheet) .rs-line-c {
  flex: none;
  color: var(--ui-ink-2);
  font-size: 12px;
}
:is(.x-body, .x-sheet) .rs-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
:is(.x-body, .x-sheet) .rs-line-n {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* QA27: 첫 방문 결과보고서 줄. 원본 .sa-file 글 모양(views/s-after.css) · sa-file은 공급사 신청 화면 칸 이름과 겹쳐 버튼이 44px로 눌림 */
.x-body .sa-rfile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font: var(--ui-t-secondary-medium);
  color: var(--ui-ink);
}
.x-body .sa-rfile svg {
  flex: none;
  color: var(--ui-ink-2);
}

/* W2: 다음 방문 카드의 전할 말(공급사 · shared/progress/progress-view.tsx · es-note와 같은 글 모양) */
.x-body .sv-tk .sv-note {
  margin: 0;
  font: var(--ui-t-secondary-medium);
  color: var(--ui-ink-2);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* 11-05 클린이(공용 .ci-seat · decisions-c-front.css): 공급사 거래 머리 줄 오른쪽 끝(대화 버튼 뒤 12px) PC 72 · 760 이하 64. 발 = 머리 줄 바닥 */
@media (max-width: 760px) {
  .x-body .sa-prog > .sw-head > .ci-seat {
    --ci: 64px;
  }
}
/* 11-05 클린이: 고객사 머리 오른쪽 끝 PC 80 · 760 이하 72(일정 링크 뒤). 위 앱 막대와 12px까지 올라가고 남는 만큼 아래로 걸쳐,
   머리 아래 여백을 늘려 아래 판과 12px(PC 16 → 44 · 휴대폰 16 → 40) */
.x-body .sc-v3-head > .ci-seat {
  --ci: 80px;
  --ci-down: 32px;
}
.x-body .sc-v3-head:has(> .ci-seat) {
  margin-bottom: 44px;
}
/* 고객사 0곳 = 빈 칸 기다리는 중 96(원본 office-building 40 자리) */
.x-body .sc-empty > .cleani {
  width: 96px;
  height: 96px;
}
.x-body .sc-empty > .cleani img {
  width: 100%;
  height: 100%;
}
/* 신고 판 · 보고서 판 머리(아래 구분선 있음): 아이콘 · 제목은 왼쪽 그대로, 클린이 발 = 구분선 위 12px.
   카드 윗선과 12px이 되도록 판 머리 위 여백을 늘린다(PC 0 → 46 · 휴대폰 0 → 39) */
.x-body .sc-rc-h > .ci-seat {
  --ci: 80px;
  --ci-down: 1px;
}
.x-body .sc-rc-h:has(> .ci-seat) {
  padding-top: 46px;
}
.x-body .sc-rc-h:has(> .ci-seat.is-after) > .sc-rc-side {
  margin-left: auto;
}
@media (max-width: 760px) {
  .x-body .sc-v3-head > .ci-seat {
    --ci: 72px;
    --ci-down: 28px;
  }
  .x-body .sc-v3-head:has(> .ci-seat) {
    margin-bottom: 40px;
  }
  .x-body .sc-rc-h > .ci-seat {
    --ci: 72px;
    --ci-down: -3px;
  }
  .x-body .sc-rc-h:has(> .ci-seat) {
    padding-top: 39px;
  }
}
/* 11-05 클린이: 일정 머리 오른쪽 끝(버튼들 뒤 12px) PC 80 · 760 이하 72. PC는 아래로 28 걸쳐 머리 아래 여백 14 → 40 */
.x-body .sk-heading:has(> .ci-seat) > .sk-head-acts {
  margin-left: auto;
}
.x-body .sk-heading > .ci-seat {
  --ci: 80px;
  --ci-down: 28px;
}
.x-body .sk-heading:has(> .ci-seat) {
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .x-body .sk-heading > .ci-seat {
    --ci: 72px;
    --ci-down: 0px;
  }
  .x-body .sk-heading:has(> .ci-seat) {
    margin-bottom: 14px;
  }
}

/* QA 25: 공급사 선임 신고 칸 · 신고 서류 안내 글 */
.x-body .sv-doc-note {
  margin: 10px 0;
  font: 400 13px / 1.55 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
  word-break: keep-all;
}

/* QA 17: 공급사 채팅 입력칸 포커스 = 바깥 상자(.sa-compose:focus-within) 하나. market.css .market-app :is(textarea…):focus-visible(0,2,1)이 원본 .sa-in outline: 0(0,2,0)을 이겨 안쪽 테두리가 겹쳤다 */
.x-body .sa-compose .sa-in:focus-visible {
  outline: 0;
}

/* QA 13: 거래 카드 칩 링크(「수수료 약정」 등) 긴 글이 잘리지 않게 두 줄 허용. 원본 s-after.css .sa-chip-link를 같은 선택자로 뒤에서 덮는다 */
.x-body a.sw-chip.sa-chip-link {
  height: auto;
  padding-block: 4px;
  white-space: normal;
  text-align: right;
  line-height: 1.35;
  border-radius: 14px;
}
