@charset "UTF-8";
/* 세이프유 웍스 건설 페이지 전용(category/works-construction.html · 2026-11-12)
 * 광산 11/12 와 같은 방식: 부품 = 제조와 같은 works-manufacturing.css(.wfm-*) · 이 파일은 건설에만 있는 것만 둔다(색은 랜딩 토큰 --wl1002-* 만 · HEX · RGB 0)
 * 옛 와이어프레임 CSS(works-wf-construction.css · .wc-*)는 이 페이지에서 읽지 않는다 */

/* 글 행(워키가 돕는 일 3가지) = 광산 .wmn-lines 값 그대로
 * 행마다 아래 선 1px · 위아래 32 · 사이 56 · 왼쪽 글 = 그림 글 토큰 보조 글색 · 오른쪽 = 소제목 토큰 · 아래 작은 글 · 767 이하 위아래로 쌓음 */
.wcs-lines { margin: 0; padding: 0; list-style: none; }
.wcs-lines__row {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); column-gap: var(--wl1002-space-56); align-items: baseline;
  padding: var(--wl1002-space-32) 0; border-bottom: 1px solid var(--wl1002-line);
}
.wcs-lines__row:first-child { padding-top: 0; }
.wcs-lines__when { margin: 0; font: var(--wl1002-figure-text); letter-spacing: var(--wl1002-tracking); color: var(--wl1002-text-sub); }
.wcs-lines__what { margin: 0; font: var(--wl1002-subtitle); letter-spacing: var(--wl1002-tracking); color: var(--wl1002-text-main); }
.wcs-lines__body { min-width: 0; }
.wcs-lines__note { margin: var(--wl1002-space-8) 0 0; font: var(--wl1002-small); letter-spacing: var(--wl1002-tracking); color: var(--wl1002-text-sub); }

/* 기존 → 웍스 비교표 = 광산 .wmn-answers 와 같음(works-industry.css .wi-diff · 공통은 본문 행 4개까지)
 * 6행이라 5 · 6번째 행 = grid-row 6 · 7 · 검정 카드 = 1 / 8 · 검정 카드 색 = 서비스 표 머리 행(.wfm-svc --wfm-svc-navy)과 같은 식 */
.wcs-answers .wi-diff__table::before { grid-row: 1 / 8; background: color-mix(in srgb, var(--wl1002-state-progress) 3%, var(--wl1002-text-main)); }
.wcs-answers .wi-diff__table tbody tr:nth-child(5) > * { grid-row: 6; }
.wcs-answers .wi-diff__table tbody tr:nth-child(6) > * { grid-row: 7; }
/* 11/13 지현 님 그림 396 · 397 「여기 디자인은 광산이랑 동일하게」 → works-mining.css .wmn-answers 덮어쓰기 그대로
 * 체크 선 굵기 2(원은 HTML 에서 걷음) · 웍스 열 글 굵기 400 · 첫 열 240 고정 → 글자 폭 + 오른쪽 24 · 검정 카드 안 행 위 선 = 보조 글색 50% · 767 이하 2열 · 체크 18 */
.wcs-answers .wi-diff__check path { stroke-width: 2; }
.wcs-answers .wi-diff__table tbody td:last-child { font-weight: 400; border-top-color: color-mix(in srgb, var(--wl1002-sub) 50%, transparent); }
.wcs-answers .wi-diff__table { grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr); }
.wcs-answers .wi-diff__table tbody th { padding-right: var(--wl1002-space-24); }

/* 실제 화면 표 열(제조 .wfm-app__table --cols 방식) — 2 현장 대시보드 협력사 TBM · 4 합동 안전보건점검 · 5 산업안전보건관리비 */
.wcs-table--partner { --cols: 150px minmax(0, 1fr) 56px 140px 150px; }
.wcs-table--joint { --cols: 150px minmax(0, 1fr) 90px 190px; }
.wcs-table--budget { --cols: 56px 170px minmax(0, 1fr) 110px 84px 100px; }

@media (max-width: 767px) {
  .wcs-lines__row { display: block; padding: var(--wl1002-space-24) 0; }
  .wcs-lines__row:first-child { padding-top: 0; }
  .wcs-lines__when { font: var(--wl1002-small); margin-bottom: var(--wl1002-space-8); }
  .wcs-answers .wi-diff__table { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } /* 광산과 같게 공용 767 이하 2열 그대로 */
  .wcs-answers .wi-diff__check { width: 18px; height: 18px; }
}

/* 11/13 대표 기능 = 제조 기능 카드 구조(.wfm-fx · 22번 24행) · 광산 .wmn-fx-* 값 그대로 · 이름만 건설(.wcs-fx-*) · 색 = 랜딩 토큰만
 * 카드 1 = 현장 사진 6장(3 × 2) → 공종 후보 1순위 + 작업단계 표 · 카드 2 = 사진 속 위험요인 번호 → 감소대책 · 관련 법령 · 카드 3 = 위험성평가 체크리스트 → TBM 일지 참석자 · QR 서명 */
.wcs-fx-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wcs-fx-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
/* 공종 후보 1순위 = 광산 작업 상황 칸(.wmn-fx-now) 모양 · 표 위라 위 여백 0 · 아래 14 */
.wcs-fx-now { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--wl1002-screen); font-weight: 600; }
.wcs-fx-now b { display: block; margin-bottom: 2px; font-size: 13px; line-height: 18px; color: var(--wl1002-sub); }
/* 사진 속 위험요인 = 사진(정사각) + 번호 · 빨강 = 사진에서 찾은 위험요인 · 점선 = 사진에 없어 표준 자료로 추가 */
.wcs-fx-face { position: relative; }
.wcs-fx-face img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.wcs-fx-dot, .wcs-fx-num { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--wl1002-state-progress); color: var(--wl1002-white); font-style: normal; font-weight: 700; }
.wcs-fx-dot { position: absolute; width: 24px; height: 24px; translate: -50% -50%; font-size: 13px; box-shadow: 0 0 0 2px var(--wl1002-white), 0 4px 10px color-mix(in srgb, var(--wl1002-text-main) 18%, transparent); }
.wcs-fx-num { width: 20px; height: 20px; font-size: 12px; }
.wcs-fx-dot.is-risk, .wcs-fx-num.is-risk { background: var(--wl1002-error); }
.wcs-fx-dot.is-added, .wcs-fx-num.is-added { background: var(--wl1002-white); color: var(--wl1002-text-sub); outline: 1.5px dashed var(--wl1002-text-sub); outline-offset: -1.5px; }
/* 작업단계 표 사진 열 = 겹친 썸네일 + 장수 · 없음 = 점선 빈 자리 */
.wcs-fx-count { display: flex; align-items: center; gap: 10px; }
.wcs-fx-thumbs { display: inline-flex; flex: none; }
.wcs-fx-thumbs img, .wcs-fx-thumbs i { display: block; width: 40px; height: 30px; border-radius: 5px; object-fit: cover; }
.wcs-fx-thumbs img { box-shadow: 0 0 0 2px var(--wl1002-white); }
.wcs-fx-thumbs img + img { margin-left: -30px; }
.wcs-fx-thumbs i { outline: 1.5px dashed var(--wl1002-line); outline-offset: -1.5px; }
/* 감소대책 · 관련 법령 = 번호 + 위험요인 이름 · 감소대책(작은 글) · 조문 번호 파랑 */
.wcs-fx-risk { display: flex; align-items: flex-start; gap: 10px; }
.wcs-fx-risk .wcs-fx-num { margin-top: 1px; }
.wcs-fx-risk b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.wcs-fx-law b { color: var(--wl1002-state-progress); }
/* 위험성평가 체크리스트 = 체크 + 점검 문장 · 작업단계(작은 글) + 오른쪽 배지 */
.wcs-fx-checks { gap: 0; }
.wcs-fx-checks li { align-items: center; }
.wcs-fx-check__text { flex: 1; min-width: 0; }
.wcs-fx-check__text b { display: block; font-weight: 600; }
.wcs-fx-check__text small { display: block; font-size: 13px; line-height: 19px; color: var(--wl1002-sub); }
.wcs-fx-checks .wfm-fx-chip { flex: none; }
/* TBM 일지 아래 = 서명 수 + QR 열기 */
.wcs-fx-qr { margin: 16px 0 0; }
.wcs-fx-qr .wfm-fx-button { flex: none; white-space: nowrap; }
@media (max-width: 1199px) {
  .wcs-fx-hint { display: none; }
}

/* 11/16 지현 님 「이부분이 뭘 말하려고하는지 이해가 안된대」 → 건설 1번 카드 = 사진 카드 아래 AI 처리 3줄 · 사진 ↔ 작업단계 파랑 번호(2번 카드 .wcs-fx-num 그대로) */
.wcs-fx-pic { position: relative; display: block; }
.wcs-fx-pic .wcs-fx-num { position: absolute; left: 6px; top: 6px; box-shadow: 0 0 0 2px var(--wl1002-white); }
/* 표 사진 열 번호 = 겹친 썸네일 왼쪽 위 모서리(사진 카드 번호와 같은 흰 테) · 열 폭이 좁은 1024 에서도 「썸네일 + 2장」 폭 그대로 */
.wcs-fx-count { position: relative; }
.wcs-fx-count .wcs-fx-num { position: absolute; left: -8px; top: -8px; z-index: 1; width: 18px; height: 18px; font-size: 11px; box-shadow: 0 0 0 2px var(--wl1002-white); }
.wcs-fx-did { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--wl1002-line); }
.wcs-fx-did__label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--wl1002-sub); }
.wcs-fx-did .wfm-fx-list { padding-top: 4px; }
.wcs-fx-did .wfm-fx-list li { padding: 6px 0; }

/* 11/16 산업안전보건관리비 블록(「영수증 증빙 땅땅땅」) — 색은 랜딩 토큰만 · 도장 = 제품 EvidenceStamp(빨간 이중 테 · 「증빙번호」 + 번호 · −6도 · 그림 오른쪽 아래)
 * 영수증 · 증빙 종이 = 흰 종이 + 선 · 읽힌 행 = 파랑 10% · 증빙번호 읽는 법 = 제품 utils/evidenceNumber.ts 설명 그대로 */
.wcs-fx-paper { position: relative; padding: 16px 18px; border-radius: 8px; background: var(--wl1002-white); box-shadow: inset 0 0 0 1px var(--wl1002-line); font-size: 13px; line-height: 20px; color: var(--wl1002-text-main); font-variant-numeric: tabular-nums; }
.wcs-fx-paper__title { margin: 0 0 10px; text-align: center; font-weight: 700; font-size: 15px; line-height: 22px; letter-spacing: 0.4em; padding-left: 0.4em; }
.wcs-fx-paper__meta { display: grid; gap: 2px; margin: 0 0 8px; }
.wcs-fx-paper__meta div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 6px; border-radius: 4px; }
.wcs-fx-paper__meta dt { color: var(--wl1002-sub); }
.wcs-fx-paper__meta dd { margin: 0; }
.wcs-fx-paper__lines { margin: 0; padding: 8px 0; list-style: none; border-top: 1px dashed var(--wl1002-line); border-bottom: 1px dashed var(--wl1002-line); }
.wcs-fx-paper__lines li { display: grid; grid-template-columns: minmax(0, 1fr) 28px 72px; gap: 6px; padding: 2px 6px; border-radius: 4px; }
.wcs-fx-paper__lines span:not(:first-child) { text-align: right; }
.wcs-fx-paper__total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 8px 0 0; padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.wcs-fx-paper__total small { font-size: 11px; font-weight: 400; color: var(--wl1002-sub); }
.wcs-fx-receipt .is-read { background: color-mix(in srgb, var(--wl1002-state-progress) 10%, var(--wl1002-white)); }
/* 증빙 읽기 5단계 = 체크 + 단계 이름 + 결과(오른쪽 · 파랑) */
.wcs-fx-read { padding-top: 0; }
.wcs-fx-read li { align-items: center; padding: 7px 0; }
.wcs-fx-read li .wfm-fx-check { margin-top: 0; }
.wcs-fx-read b { font-weight: 600; }
.wcs-fx-read li > span:last-child { margin-left: auto; font-weight: 600; color: var(--wl1002-state-progress); font-variant-numeric: tabular-nums; text-align: right; }
.wcs-fx-read + .wfm-fx-table { margin-top: 14px; }
/* 업로드한 증빙 파일 목록 */
.wcs-fx-files { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wcs-fx-files li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--wl1002-screen); }
.wcs-fx-files i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--wl1002-white); color: var(--wl1002-text-sub); font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: 0.02em; }
.wcs-fx-files span { min-width: 0; }
.wcs-fx-files b { display: block; overflow: hidden; font-weight: 600; font-size: 14px; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.wcs-fx-files small { display: block; font-size: 12px; line-height: 18px; color: var(--wl1002-sub); }
.wcs-cost .wfm-fx-tr b .wfm-fx-chip { margin-left: 4px; vertical-align: 1px; }
/* 증빙함 = 도장 찍힌 증빙 3장 + 증빙번호 읽는 법 */
.wcs-fx-stampwrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; margin-bottom: 20px; }
.wcs-fx-stamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.wcs-fx-doc { margin: 0; }
.wcs-fx-paper.is-mini { padding: 14px 16px 16px; aspect-ratio: 4 / 4.6; display: flex; flex-direction: column; }
.wcs-fx-paper.is-mini .wcs-fx-paper__title { font-size: 13px; letter-spacing: 0.25em; padding-left: 0.25em; }
.wcs-fx-paper.is-mini .wcs-fx-paper__total { margin-top: auto; padding: 8px 0 0; border-top: 1px dashed var(--wl1002-line); border-radius: 0; }
.wcs-fx-bars { display: grid; gap: 9px; padding: 4px 0 12px; }
.wcs-fx-bars i { display: block; width: var(--w, 100%); height: 7px; border-radius: 4px; background: var(--wl1002-screen); }
.wcs-fx-bars.is-lines { padding-top: 12px; border-top: 1px dashed var(--wl1002-line); }
.wcs-fx-code__label { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--wl1002-sub); }
.wcs-fx-doc figcaption { margin-top: 10px; font-size: 14px; line-height: 20px; color: var(--wl1002-sub); font-variant-numeric: tabular-nums; }
.wcs-fx-doc figcaption b { display: block; font-weight: 600; color: var(--wl1002-text-main); }
.wcs-fx-stamp { position: absolute; right: 6%; bottom: 22%; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 12px 7px; border: 2.5px solid var(--wl1002-error); border-radius: 6px; box-shadow: inset 0 0 0 2px var(--wl1002-white), inset 0 0 0 3.5px var(--wl1002-error); background: color-mix(in srgb, var(--wl1002-white) 64%, transparent); color: var(--wl1002-error); font-weight: 700; font-size: 15px; line-height: 1; letter-spacing: 0.04em; white-space: nowrap; transform: rotate(-6deg); pointer-events: none; }
.wcs-fx-stamp small { font-size: 10px; font-weight: 700; letter-spacing: 0.3em; padding-left: 0.3em; }
.wcs-fx-code { grid-template-columns: 56px minmax(0, 1fr); }
.wcs-fx-code dt { font-weight: 700; color: var(--wl1002-error); font-variant-numeric: tabular-nums; }
.wcs-fx-code dt, .wcs-fx-code dd { border-bottom: 1px solid var(--wl1002-line); }
.wcs-fx-code dt:last-of-type, .wcs-fx-code dd:last-of-type { border-bottom: 0; }
.wcs-cost .is-sheet > .wfm-fx-bar { margin-bottom: 0; }
/* 움직임 = 화면에 반쯤 보일 때 한 번(works-construction.html 맨 아래 스크립트가 is-wait → is-play) · 움직임 줄이기면 스크립트가 아무것도 안 해서 처음부터 다 보임 */
@media (prefers-reduced-motion: no-preference) {
  .wcs-fx-receipt.is-wait .is-read { background: transparent; }
  .wcs-fx-receipt.is-play .is-read { animation: wcs-read 0.4s ease-out both; animation-delay: calc(0.25s + var(--order) * 0.18s); }
  .wcs-fx-receipt.is-play::after { content: ''; position: absolute; left: 8px; right: 8px; top: 0; height: 2px; border-radius: 1px; background: var(--wl1002-state-progress); box-shadow: 0 0 10px var(--wl1002-state-progress); animation: wcs-scan 1.4s ease-in-out 0.1s both; }
  .wcs-fx-stamps.is-wait .wcs-fx-stamp { opacity: 0; }
  .wcs-fx-stamps.is-play .wcs-fx-stamp { animation: wcs-stamp 0.42s cubic-bezier(0.3, 1.3, 0.5, 1) both; animation-delay: calc(0.3s + var(--order) * 0.45s); }
  @keyframes wcs-read { from { background: transparent; } to { background: color-mix(in srgb, var(--wl1002-state-progress) 10%, var(--wl1002-white)); } }
  @keyframes wcs-scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
  @keyframes wcs-stamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.8); } 60% { opacity: 1; transform: rotate(-6deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
}
@media (max-width: 1199px) {
  .wcs-fx-stampwrap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .wcs-fx-wide-only { display: none !important; } /* 1번 카드 들어올린 행 보조 글 · 열이 좁으면 두 행으로 끊겨서 1200 이상만 */
}
@media (max-width: 767px) {
  .wcs-fx-stamps { gap: 8px; }
  .wcs-fx-paper.is-mini { padding: 8px 8px 10px; }
  .wcs-fx-paper.is-mini .wcs-fx-paper__title { font-size: 11px; letter-spacing: 0.1em; padding-left: 0.1em; margin-bottom: 6px; }
  .wcs-fx-paper.is-mini .wcs-fx-paper__total { font-size: 11px; }
  .wcs-fx-paper.is-mini .wcs-fx-paper__total span { display: none; }
  .wcs-fx-bars { gap: 5px; padding-bottom: 6px; }
  .wcs-fx-bars.is-lines { padding-top: 6px; }
  .wcs-fx-bars i { height: 5px; }
  .wcs-fx-stamp { padding: 4px 6px 5px; font-size: 9px; gap: 2px; border-width: 2px; }
  .wcs-fx-stamp small { font-size: 7px; letter-spacing: 0.15em; padding-left: 0.15em; }
  .wcs-fx-doc figcaption { font-size: 12px; line-height: 17px; }
  .wcs-fx-read li > span:last-child { font-size: 13px; }
}
