/* c-agency 영역 결정 반영: DECISIONS R-xx로 새로 생긴 규칙만(규칙마다 결정 번호 주석). 원본 CSS 바이트는 고치지 않는다. */

/* M-1 · R-20: 알림 설정 받는 곳 아래 안내(휴대폰 없으면 알림톡 없음 · 메일 = 계약 · 청구 · 결제만) */
.x-body .dl-noti .dl-fields {
  margin-top: 12px;
}
.x-body .dl-noti-hint {
  margin: 8px 0 0;
  font: 500 14px / 1.45 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
  word-break: keep-all;
}

/* R-23 B1-5: 휴대폰 · 인증번호 칸 옆 단추 · 확인함 */
.x-body .dl-noti-ph {
  display: flex;
  align-items: center;
  gap: 8px;
}
.x-body .dl-noti-ph .ui-input {
  flex: 1;
  min-width: 0;
}
.x-body .dl-noti-ph .ui-btn {
  flex: none;
}
.x-body .dl-noti-ok {
  flex: none;
  font: 600 14px / 1.4 var(--ui-font, inherit);
  color: var(--ui-brand, #4c00ff);
}

/* 태스크 3 · R-21 · R-24 Q-13: 선임 신고 전 띠(업체 관리 판 머리 아래 · 일정 관리 머리 아래) · 기한 2일 안 = 진한 칩 */
.x-body .ca-fband {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 12px 0 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ui-brand-tint, #f4f0ff);
}
.x-body .ca-fband-ic {
  flex: none;
  display: grid;
  place-items: center;
}
.x-body .ca-fband-t {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  word-break: keep-all;
}
.x-body .ca-fband-t b {
  font: 700 15px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink, #191f28);
}
.x-body .ca-fband-t span {
  font: 500 14px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
}
.x-body .ca-fband .ca-st.is-solid {
  background: var(--ui-brand, #4c00ff);
  color: #fff;
}
.x-body .ca-fband .ca-fbtn {
  flex: none;
}

/* R-10: 방문 장소가 둘 이상이면 칸마다 장소 이름 칩 · 방문 장소 줄을 장소마다 */
.x-body .vx-work.is-place {
  background: #fff;
  color: var(--ui-ink, #191f28);
  box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb);
}
.x-body .vx-sec > .vx-place + .vx-place,
.x-body .ca-place-one + .ca-place-one {
  margin-top: 8px;
}

/* R-08 · Q-19(확인 대기): 고객사 현장 담당 줄(방문 장소마다 · 안 적으면 견적 요청자) */
.x-body .vx-site {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 8px;
  padding-top: 10px;
  box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6);
}
.x-body .vx-site-k {
  flex: none;
  font: 600 14px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
}
.x-body .vx-site-v {
  flex: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
  font: 500 15px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink, #191f28);
}
.x-body .vx-site .vx-map {
  flex: none;
}
.x-body .vx-site-hint {
  margin: 4px 2px 0;
  font: 500 13px / 1.45 var(--ui-font, inherit);
  color: var(--ui-ink-3, #8b95a1);
  word-break: keep-all;
}

/* 태스크 8(지금 기능 · 기획서에 없음): 업체 관리 계약 판 지정업체 바꾸기 */
.x-body .ca-swap .vx-line {
  font: 700 16px / 1.4 var(--ui-font, inherit);
}

/* C-92 · 태스크 5: 업체 평가하기 시트 [후기 기준] 열고 닫기(글 단추 · 왼쪽 정렬 · 원본 .x-body .ca-link 꼴) */
.x-sheet .dl-rate .ca-link {
  justify-self: start;
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--ui-brand, #4c00ff);
  font: 600 14px / 1.4 var(--ui-font, inherit);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* W2 · FU-32: 첫 방문 · 다음 방문 카드의 업체 전할 말(c-agency/visit-view.tsx · 업체 판 카드 · 일정 화면 카드 · vx-site-hint와 같은 글 모양) */
.x-body .vx-note {
  margin: 0;
  font: 500 13px / 1.45 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* W11: 알림 설정 「휴대폰」 줄 = 본인인증한 번호(읽기만) · 인증 전 글 */
.x-body .dl-noti-num {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  font: 600 15px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink, #191f28);
}
.x-body .dl-noti-num.is-empty {
  font-weight: 500;
  color: var(--ui-ink-3, #8b95a1);
}
.x-body .dl-noti .x-err {
  margin: 6px 0 0;
}

/* fu2 16 위험성평가 평가 방식(어드민 방식 고르기를 안전인 판에): 공급사 표 머리 고르개 · 빈도·강도 가능성 · 중대성 단추 · 넓은 등급 칩(부적정 · n점) · 고객 업무 고르기 */
.x-body .sv-ra-method {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 12px;
  margin: 0 0 12px;
}
.x-body .sv-ra-method .ui-field {
  flex: 1 1 180px;
  min-width: 0;
}
.x-body .sv-ra-ls {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}
.x-body .sv-ra-ax {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.x-body .sv-ra-ax > span {
  flex: none;
  width: 44px;
  color: var(--ui-ink-2, #4e5968);
  font: 600 13px / 1 var(--ui-font, inherit);
}
.x-body .sv-ra-lv.is-n .sv-lv {
  min-width: 36px;
  padding: 0 6px;
}
.x-body .sv-ra-score {
  margin: 0;
  color: var(--ui-ink, #191f28);
  font: 700 14px / 1.4 var(--ui-font, inherit);
}
.x-body .ra-lv.is-wide,
.x-sheet .ra-lv.is-wide {
  width: auto;
  min-width: 28px;
  padding: 0 8px;
}
/* 2026-11-06: 안전 · 보건을 같이 맡은 업체 = 기능 칸 맨 위 업무 탭 */
.x-body .ca-fns-works {
  display: flex;
}
.x-body .ca-fns-works .ui-seg-btn {
  flex: 1 1 0;
}
.x-body .ra-g-acts .ca-st {
  margin-right: auto;
}
/* fu2 16 사망 직결(어드민 fix) 체크 */
.x-body .sv-ra-fatal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-ink-2, #4e5968);
  font: 600 13px / 1.4 var(--ui-font, inherit);
  cursor: pointer;
}
.x-body .sv-ra-fatal input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ui-brand, #4c00ff);
}

/* 2026-10-26 업체 관리 계약서 카드: 미리보기 = 카드 폭에 맞춤(양옆 여백 16 → 8px) · 높이 300 → 480px ·
   쪽 그림이 없을 때 자리 아이콘이 미리보기 그림 규칙에 걸려 카드 폭만큼 늘어난 흰 띠로 보이던 것 고침(아이콘 그대로 56px) */
/* 판이 600px 이상일 때 원본이 카드를 420px로 묶어 오른쪽이 비던 것 = 판 폭 그대로 */
.x-body .vx .vx-sec .ca-doc-card {
  max-width: none;
}
.x-body .vx .ca-doc-card img {
  width: calc(100% - 16px);
  max-height: 480px;
  margin: 8px 8px 0;
}
.x-body .vx .ca-doc-card .ca-doc-ph img {
  width: 56px;
  height: 56px;
  margin: 0;
  object-fit: contain;
  background: none;
  box-shadow: none;
  border-radius: 0;
}

/* QA 28: 업체 관리 판 안 장소별 묶음(장소가 둘 이상일 때) */
.x-body .vx-pg {
  display: grid;
  gap: 8px;
}
.x-body .vx-pg + .vx-pg {
  margin-top: 16px;
}
.x-body .vx-pg-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  padding: 0 2px;
}
.x-body .vx-pg-t {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  font: 700 15px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink, #191f28);
}
.x-body .vx-pg-tag {
  font: 600 12px / 1.4 var(--ui-font, inherit);
  font-style: normal;
  color: var(--ui-brand, #4c00ff);
}
.x-body .vx-pg-m {
  font: 400 13px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink-3, #8b95a1);
}
.x-body .vx-pg-s {
  margin-left: auto;
  font: 600 13px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
}

/* 손 서명본(2026-11-10): 고객 보고서 서명 시트(c-agency/report-sign-sheet.tsx · shared/sign-pad.tsx) */
.x-sheet .rs-sign {
  display: grid;
  gap: 14px;
}
.x-sheet .rs-sign h3 {
  margin: 0;
  font: 600 15px / 1.4 var(--ui-font);
}
.x-sheet .rs-prevs {
  display: grid;
  gap: 12px;
}
.x-sheet .rs-prev {
  margin: 0;
  display: grid;
  gap: 4px;
}
.x-sheet .rs-prev-page {
  position: relative;
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--ui-line);
  background: #fff;
}
.x-sheet .rs-prev-page > img {
  display: block;
  width: 100%;
  height: 100%;
}
.x-sheet .rs-prev-spot {
  position: absolute;
  display: grid;
  place-items: center;
  container-type: size;
  outline: 1px dashed color-mix(in srgb, var(--ui-brand) 60%, transparent);
}
.x-sheet .rs-prev-spot > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.x-sheet .rs-prev-name {
  color: #111;
  font: 600 60cqh / 1 var(--ui-font);
  white-space: nowrap;
}
.x-sheet .rs-prev-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: 640px;
  padding: 10px 12px;
  border: 1px solid var(--ui-line);
  border-radius: 10px;
}
.x-sheet .rs-prev-file > b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.x-sheet .rs-prev-empty {
  color: var(--ui-brand);
  font-size: 12px;
}
.x-sheet .rs-field {
  display: grid;
  gap: 6px;
  font: 500 14px / 1.4 var(--ui-font);
}
.x-sheet .rs-pad-canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 1;
  border: 1px solid var(--ui-line);
  border-radius: 12px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
}
.x-sheet .rs-pad-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
}
.x-sheet .rs-agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 14px / 1.4 var(--ui-font);
}
.x-sheet .rs-sign-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
