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

/* R-19 P-6 · R-18 · R-19 P-1: 계약하기 질문 아래 한 줄(등록한 결제 수단 · 증빙 기본값 · 관할 묶음 · 계약 요청 뒤 안내) */
.hd-apg .dl-sg-note {
  margin: 12px 0 0;
  color: var(--ui-ink-2);
  font: var(--ui-t-secondary);
  word-break: keep-all;
}
/* R-19 P-1: 고객 서명 칸(체결 전) · 안내 · 업무 시작일 줄은 한 줄 전체 */
.x-body .ca-sign:not(.is-done) .ca-sign-b > :is(.ca-muted, .ca-kvs) {
  flex: 1 1 100%;
  margin: 0;
}

/* e-mine-money */
/* R-24 Q-13: 선임 신고 매일 알림 띠(신고 전 · 개시일 ~ 기한) */
.x-body .ca-fh .ca-fh-daily {
  margin: 10px 0 0;
  word-break: keep-all;
}
/* R-19 P-6 · R-24 Q-16: 결제 칸 한 줄 안내(자동 결제 예정 · 실패 사유 · 증빙 잠금) */
.x-body .dl-pay .dl-pay-note {
  margin: 8px 0 12px;
  color: var(--ui-ink-2);
  font: var(--ui-t-secondary);
  word-break: keep-all;
}

/* W4: 해지가 확정된 계약 = [해지 문의] 자리에 「해지 예정 · M월 D일」(단추 아님 · 단추와 같은 높이) */
.x-body .ca-sign-b .ca-ended {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 120px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ui-fill, #f2f4f6);
  font: 700 15px / 1.4 var(--ui-font, inherit);
  color: var(--ui-ink-2, #4e5968);
  white-space: nowrap;
}
@media (max-width: 420px) {
  .x-body .ca-sign-b .ca-ended {
    flex: 1 1 100%;
  }
}

/* 11-05 클린이: 선임 신고 보라 머리 판의 3D 그림 자리(OPS 선임 신고 = 기다리는 중 · 끝 = 계약 완료).
   PC = 그림 칸(art) 112 · 휴대폰(760 이하) = 사실 띠 아래 오른쪽 80. 끝난 판은 요약 칸 그림 자리(52) */
.x-body .ca-fh > .ca-fh-ci {
  grid-area: art;
  align-self: center;
  width: 112px;
  height: 112px;
}
.x-body .ca-fh-sum-art > .cleani {
  width: 52px;
  height: 52px;
}
.x-body .ca-fh-sum-art > .cleani img {
  animation: none;
}
@media (max-width: 760px) {
  .x-body .ca-fh > .ca-fh-ci {
    grid-area: auto;
    justify-self: end;
    width: 80px;
    height: 80px;
  }
}

/* 내 사업장 [로그아웃] = 줄 모양 버튼 */
button.x-mine-row {
  width: 100%;
  border: 0;
  text-align: left;
  cursor: pointer;
}
button.x-mine-row:disabled {
  cursor: default;
  opacity: 0.6;
}

/* PC 머리 「내 사업장」 메뉴 [로그아웃] = 메뉴 줄과 같은 모양 */
.x-hdd-menu .x-hdd-out {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ui-ink, #191f28);
  font: 500 15px / 1.3 var(--ui-font, inherit);
  text-align: left;
  cursor: pointer;
}
.x-hdd-menu .x-hdd-out:hover {
  background: var(--ui-press, #f2f4f6);
}
/* 로그인 전 머리 줄 [로그인] = 내 사업장 · 계정 단추 자리(넓이와 상관없이 보임) */
.market-header-actions .x-login {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ui-brand, #4c00ff);
  color: #fff;
  font: 600 15px / 1 var(--ui-font, inherit);
  white-space: nowrap;
  cursor: pointer;
}
.market-header-actions .x-login:hover {
  background: var(--ui-brand-press, #3700b8);
}

/* W2(11-07 약관 PDF = 서버 정본 · 공용 shared/terms-doc): 약관 PDF 시트 = iframe + 「PDF로 열기」 한 줄 */
.terms-pdf {
  display: grid;
  gap: 10px;
}
/* W3: 「PDF로 열기」 · [개인정보 처리방침 전문 보기] = 같은 링크 꼴(브랜드 색 · 밑줄 · 화살표) · a.terms-link = .sbiz a(이용약관·서류 시트)보다 앞서게 */
.terms-pdf > a,
a.terms-link {
  justify-self: start;
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--ui-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.terms-pdf > a::after,
a.terms-link::after {
  content: " ›";
}
/* W3: pdf.js 쪽 그림 · 불러오는 중 · 실패 한 줄(쪽 테두리는 shared/terms-doc 인라인) */
.terms-pdf-note {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: var(--ui-ink-2, #4e5968);
}
/* W3: 공급사 개인정보 글 = 항목마다 소제목 · 「목적:」 「항목:」 줄 나눔 */
.terms-privacy h4 {
  margin: 16px 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.terms-privacy section:first-child h4 {
  margin-top: 0;
}

/* 사업장 관리(SITE_MANAGE_DECISIONS · 기획서 anjeonin-plat views/p-ledger.css 7 · 8 · 10 · 13 · 14 · 30~40 · 77 · 78 · 737~761 그대로) */
.x-body .pl-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; min-width: 0; }
.x-body .pl-h1 { margin: 0; font: 800 22px/1.3 var(--ui-font); letter-spacing: -.03em; color: var(--ui-ink, #191f28); white-space: nowrap; }
.x-body .pl-site { flex: 0 1 auto; min-width: 0; max-width: 70%; font: 600 15px/1.3 var(--ui-font); color: var(--ui-ink-2, #4e5968); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 11-10 검토 = 이름은 알약 꼬리표 없이 글로 */ /* 실제 사업장 이름이 길어도 머리 줄 안 */
.x-body .pl-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 12px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .pl-tcard { padding: 6px 18px 4px; gap: 0; }
.x-body .pl-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; } /* 칸 = 카드 폭(긴 글에 줄이 카드 밖으로 밀리던 것) */
.x-body .pl-list > li + li { border-top: 1px solid #eceef1; }
.x-body .pl-row, .x-body .pl-th { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; width: 100%; min-height: 58px; padding: 8px 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.x-body .pl-row { cursor: pointer; border-radius: 12px; }
.x-body .pl-row:hover .pl-nm { color: var(--ui-brand, #4c00ff); }
.x-body .pl-row:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .pl-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #f9fafb; color: var(--ui-ink-2, #4e5968); }
.x-body .pl-nm { min-width: 0; font: 700 15.5px/1.35 var(--ui-font); letter-spacing: -.02em; color: var(--ui-ink, #191f28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-body .pl-chev { display: none; color: var(--ui-ink-3, #8b95a1); }
.x-body .pl-chev svg { display: block; }
.x-sheet .ha-site-hq { flex: none; align-self: center; height: 22px; padding: 0 7px; border-radius: 7px; background: #fff; color: var(--ui-brand, #4c00ff); font: 700 12px/22px var(--ui-font); font-style: normal; }
@media (hover: hover) and (pointer: fine) { .x-sheet .ha-site-row[aria-pressed=false]:hover { background: #eceef1; } }

/* 사업장 관리(11-11 밤 대표 "본점 바꾸기랑 사업장 빼기도 넣어 줘 · 사업장 추가하기도") = 줄(그림 · 이름 · 본점 · 지금 · 주소 · 인원 · 꺾쇠) · 줄 누름 = 할 일 창 */
.x-body .pl-sitel .pl-siterow { grid-template-columns: 34px minmax(0, 1fr) 18px; }
.x-body .pl-sitel .pl-siterow .pl-ic { display: grid; } /* 휴대폰 줄 아이콘 숨김 · 꺾쇠 숨김(할 일 줄 결)을 이 목록만 되살림 */
.x-body .pl-sitel .pl-siterow .pl-chev { display: block; }
.x-body .pl-siterow-t { display: grid; gap: 3px; min-width: 0; }
.x-body .pl-siterow-l1 { display: flex; align-items: center; gap: 6px; min-width: 0; }
.x-body .pl-siterow-l1 .pl-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-body .pl-siterow-m { font: 500 13.5px/1.3 var(--ui-font); color: var(--ui-ink-3, #8b95a1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-body .pl-hq-tag, .x-body .pl-now-tag { flex: none; height: 22px; padding: 0 7px; border-radius: 7px; font: 700 12px/22px var(--ui-font); font-style: normal; }
.x-body .pl-hq-tag { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .pl-now-tag { background: #f2f4f6; color: var(--ui-ink-2, #4e5968); }
.x-body .pl-siteadd { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.x-sheet .pl-acts { display: grid; gap: 8px; }
.x-sheet .pl-act { -webkit-appearance: none; appearance: none; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: #f4f5f7; text-align: left; font: 700 16px/1.3 var(--ui-font); letter-spacing: -.01em; color: var(--ui-ink, #191f28); cursor: pointer; transition: transform .12s ease, background-color .12s ease; }
.x-sheet .pl-act.is-red { color: #d22030; }
.x-sheet .pl-act:active { transform: scale(.98); }
.x-sheet .pl-act:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .x-sheet .pl-act:hover { background: #eceef1; } }
.x-sheet .pl-act-none, .x-sheet .pl-del-q { margin: 0; font: 500 16px/1.5 var(--ui-font); color: var(--ui-ink, #191f28); }
.x-sheet .pl-del-go { background: #d22030; }
@media (hover: hover) and (pointer: fine) { .x-sheet .pl-del-go:hover { background: #b81c2a; } }
@media (prefers-reduced-motion: reduce) { .x-sheet .pl-act { transition: none; } }
.x-body .pl-sitesv .pl-head { margin-bottom: 12px; }
.x-body .pl-ic img { width: 24px; height: 24px; }
.x-sheet .x-sheet-foot .st-add, .x-body .pl-siteadd { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.x-sheet .pl-act:disabled, .x-sheet .pl-del-go:disabled { opacity: .5; cursor: default; }
@media (max-width: 440px) { .x-body .pl-card { padding: 16px 14px 10px; } .x-body .pl-tcard { padding: 4px 14px 2px; } }
.x-body .pl-sitesv .pl-act-none { margin: 16px 0 0; font: 500 15px/1.5 var(--ui-font); color: var(--ui-ink-2, #4e5968); }
