/* ─────────────────────────────────────────────────────────────
   케어나눔 문서 9종 · 미리보기 창 — 깔끔한 디자인 (겉모양만 변경)
   ※ 문서 안의 글자·항목·값 채우는 자리(id)는 원본 그대로. 이 파일은 스타일만 덮어씀.
   ※ PDF/이미지 생성 시에도 같은 id(#cnCareSuite_260310) 안에서 그려지므로 동일하게 적용됨.
   ───────────────────────────────────────────────────────────── */
html body #cnCareSuite_260310 {
  --dk-ink: #18212b; --dk-sub: #5d6773; --dk-line: #dbe3df; --dk-soft: #f3f7f5;
  --dk-brand: #2e8061; --dk-brand-d: #1f6149; --dk-brand-soft: #e8f3ee; --dk-accent: #0f172a;
  font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ===== 문서 공통 (종이) ===== */
html body #cnCareSuite_260310 .cns260310_preview_sheet:not(#cns260310DocDispatch) {
  background: #fff; color: var(--dk-ink);
  padding: 52px 56px 44px; font-size: 14px; line-height: 1.6; letter-spacing: -0.01em;
}
html body #cnCareSuite_260310 .cns260310_preview_sheet * { font-family: inherit; }

/* 머리: 로고 + 회사정보 */
html body #cnCareSuite_260310 .cns260310_sheet_brand { margin: 0 0 14px; padding: 0; text-align: left; }
html body #cnCareSuite_260310 .cns260310_sheet_brand img { height: 64px !important; max-height: none !important; width: auto; display: block; }
html body #cnCareSuite_260310 .cns260310_sheet_meta {
  font-size: 12px; line-height: 1.7; color: var(--dk-sub); margin: 0; padding: 0;
}
html body #cnCareSuite_260310 .cns260310_sheet_line {
  height: 0; border: 0; border-top: 2px solid var(--dk-ink); margin: 16px 0 30px; background: none;
}
html body #cnCareSuite_260310 .cns260310_sheet_title {
  font-size: 26px; font-weight: 800; letter-spacing: 0.12em; text-align: center;
  color: var(--dk-ink); margin: 0 0 26px; padding: 0; background: none;
}

/* 표 */
html body #cnCareSuite_260310 .cns260310_sheet_table {
  width: 100%; border-collapse: collapse; border-spacing: 0; table-layout: fixed;
  border-top: 2px solid var(--dk-ink); border-bottom: 1px solid var(--dk-line);
  margin: 0 0 18px; background: #fff; border-radius: 0; box-shadow: none; overflow: visible;
}
html body #cnCareSuite_260310 .cns260310_sheet_table th,
html body #cnCareSuite_260310 .cns260310_sheet_table td {
  border: 0; border-bottom: 1px solid var(--dk-line); padding: 11px 14px;
  font-size: 13.5px; line-height: 1.5; vertical-align: middle; word-break: keep-all; overflow-wrap: anywhere;
}
html body #cnCareSuite_260310 .cns260310_sheet_table th {
  background: var(--dk-soft) !important; color: var(--dk-sub) !important; font-weight: 700; text-align: left; white-space: normal;
}
html body #cnCareSuite_260310 .cns260310_sheet_table td { color: var(--dk-ink) !important; font-weight: 500; background: #fff; }
html body #cnCareSuite_260310 .cns260310_sheet_table thead th { text-align: center; }
html body #cnCareSuite_260310 .cns260310_sheet_table th + td,
html body #cnCareSuite_260310 .cns260310_sheet_table td + th { border-left: 1px solid var(--dk-line); }
html body #cnCareSuite_260310 .cns260310_sheet_table td + td,
html body #cnCareSuite_260310 .cns260310_sheet_table th + th { border-left: 1px solid var(--dk-line); }

/* 사람(간병인/환자) 표 */
html body #cnCareSuite_260310 .cns260310_sheet_people_group {
  background: var(--dk-brand-soft) !important; color: var(--dk-brand-d) !important; text-align: center !important;
  font-weight: 800; border-right: 1px solid var(--dk-line);
}
html body #cnCareSuite_260310 .cns260310_sheet_people_head { text-align: center !important; }
html body #cnCareSuite_260310 .cns260310_sheet_people_no { text-align: center; color: var(--dk-sub); font-weight: 700; }
html body #cnCareSuite_260310 .cns260310_sheet_people_table td { text-align: center; }
html body #cnCareSuite_260310 .cns260310_sheet_people_wrap { padding: 0 !important; }
html body #cnCareSuite_260310 .cns260310_receipt_people_table { width: 100%; border-collapse: collapse; }
html body #cnCareSuite_260310 .cns260310_receipt_people_table th,
html body #cnCareSuite_260310 .cns260310_receipt_people_table td { border-bottom: 0; }
html body #cnCareSuite_260310 .cns260310_receipt_people_table th { width: 18%; }

/* 안내 문구 박스 */
html body #cnCareSuite_260310 .cns260310_sheet_note {
  background: var(--dk-soft); border: 0; border-left: 3px solid var(--dk-brand); border-radius: 6px;
  padding: 14px 18px; margin: 4px 0 22px; font-size: 13px; line-height: 1.75; color: var(--dk-ink);
}

/* 영수증 금액 */
html body #cnCareSuite_260310 .cns260310_receipt_total {
  display: flex; justify-content: flex-end; align-items: baseline; gap: 14px;
  background: var(--dk-brand-soft); border: 0; border-radius: 8px; padding: 18px 22px; margin: 6px 0 16px;
}
html body #cnCareSuite_260310 .cns260310_receipt_total span { font-size: 14px; color: var(--dk-brand-d); font-weight: 700; }
html body #cnCareSuite_260310 .cns260310_receipt_total strong { font-size: 24px; font-weight: 800; color: var(--dk-ink); letter-spacing: -0.01em; }
html body #cnCareSuite_260310 .cns260310_receipt_note { font-size: 13.5px; color: var(--dk-ink); margin: 0 0 4px; }
html body #cnCareSuite_260310 .cns260310_receipt_date { font-size: 13px; color: var(--dk-sub); margin: 0 0 8px; }

/* 계약·약관 */
html body #cnCareSuite_260310 .cns260310_contract_block_title {
  font-size: 14px; font-weight: 800; color: var(--dk-ink); margin: 22px 0 10px; padding: 0 0 0 10px;
  border-left: 3px solid var(--dk-brand); background: none; line-height: 1.3;
}
html body #cnCareSuite_260310 .cns260310_contract_terms {
  font-size: 13px; line-height: 1.85; color: #2a333d; background: #fff;
  border: 1px solid var(--dk-line); border-radius: 8px; padding: 18px 20px; margin: 0 0 18px;
}
html body #cnCareSuite_260310 .cns260310_contract_terms strong,
html body #cnCareSuite_260310 .cns260310_contract_terms b { color: var(--dk-ink); }

/* 보험 안내 목록 */
html body #cnCareSuite_260310 .cns260310_insurance_list_title { font-weight: 800; color: var(--dk-brand-d); margin: 18px 0 8px; }
html body #cnCareSuite_260310 .cns260310_insurance_list { font-size: 13.5px; line-height: 1.85; color: var(--dk-ink); }

/* 서명·직인 */
html body #cnCareSuite_260310 .cns260310_sign_line3,
html body #cnCareSuite_260310 .cns260310_sign_line { margin-top: 30px; }
html body #cnCareSuite_260310 .cns260310_sign_company { font-size: 13.5px; color: var(--dk-ink); line-height: 1.7; }
html body #cnCareSuite_260310 .cns260310_sign_company strong { font-size: 16px; font-weight: 800; }
html body #cnCareSuite_260310 .cns260310_sign_person { font-size: 13.5px; }

/* ===== 간병일지 (cnlog) ===== */
html body #cnCareSuite_260310 .cnlog_260428_page { background: #fff; color: var(--dk-ink); }
html body #cnCareSuite_260310 .cnlog_260428_company { color: var(--dk-sub); }
html body #cnCareSuite_260310 .cnlog_260428_line { background: var(--dk-ink); }
html body #cnCareSuite_260310 .cnlog_260428_title { color: var(--dk-ink); }
html body #cnCareSuite_260310 .cnlog_260428_section_title { color: var(--dk-ink); }
html body #cnCareSuite_260310 .cnlog_260428_table th,
html body #cnCareSuite_260310 .cnlog_260428_table td {
  border: 1px solid var(--dk-line); color: var(--dk-ink); vertical-align: middle;
}
html body #cnCareSuite_260310 .cnlog_260428_table th { background: var(--dk-soft); color: var(--dk-sub); font-weight: 700; }
html body #cnCareSuite_260310 .cnlog_260428_care_table thead th { background: var(--dk-brand-soft); color: var(--dk-brand-d); text-align: center; }
html body #cnCareSuite_260310 .cnlog_260428_day { text-align: center; font-weight: 700; color: var(--dk-sub); }
html body #cnCareSuite_260310 .cnlog_260428_checks { color: #3c4652; }
html body #cnCareSuite_260310 .cnlog_260428_date_line,
html body #cnCareSuite_260310 .cnlog_260428_time_line,
html body #cnCareSuite_260310 .cnlog_260428_hour_line { border-bottom-color: #9aa5ae; }

/* ===== 미리보기 창 ===== */
html body #cnCareSuite_260310 .cns260310_modal_dim {
  background: rgba(15, 23, 20, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 2.5vh 2vw;
}
html body #cnCareSuite_260310 .cns260310_modal {
  width: min(1240px, 96vw); max-width: min(1240px, 96vw) !important; height: 95vh; max-height: 95vh; margin: 0 auto; border-radius: 18px; overflow: hidden;
  background: #eef2f0; box-shadow: 0 30px 80px rgba(0,0,0,.25); display: flex; flex-direction: column; border: 0; padding: 0;
}
html body #cnCareSuite_260310 .cns260310_modal_head {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border-bottom: 1px solid var(--dk-line); padding: 14px 20px; margin: 0;
}
html body #cnCareSuite_260310 .cns260310_modal_title { font-size: 16px; font-weight: 800; color: var(--dk-ink); }
html body #cnCareSuite_260310 .cns260310_modal_title span { color: var(--dk-brand); font-variant-numeric: tabular-nums; }
html body #cnCareSuite_260310 .cns260310_modal_close {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--dk-line); background: #fff;
  font-size: 22px; line-height: 1; color: var(--dk-sub); cursor: pointer; box-shadow: none;
}
html body #cnCareSuite_260310 .cns260310_modal_close:hover { background: var(--dk-soft); color: var(--dk-ink); }

html body #cnCareSuite_260310 .cns260310_modal_body {
  flex: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: 236px 1fr; padding: 0; margin: 0; background: transparent;
}
/* 문서 목록(왼쪽) */
html body #cnCareSuite_260310 .cns260310_doc_tabs {
  display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding: 14px 10px;
  background: #fff; border-right: 1px solid var(--dk-line); margin: 0; flex-wrap: nowrap;
}
html body #cnCareSuite_260310 .cns260310_doc_tab {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--dk-sub);
  font-size: 14px; font-weight: 600; padding: 11px 12px; border-radius: 10px; margin: 0; box-shadow: none; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: none;
}
html body #cnCareSuite_260310 .cns260310_doc_tab:hover { background: var(--dk-soft); color: var(--dk-ink); }
html body #cnCareSuite_260310 .cns260310_doc_tab.is_on { background: var(--dk-brand-soft); color: var(--dk-brand-d); font-weight: 800; box-shadow: inset 3px 0 0 var(--dk-brand); }
html body #cnCareSuite_260310 .cnx_doc_group { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #9aa4ad; padding: 12px 12px 4px; }
html body #cnCareSuite_260310 .cnx_doc_group:first-child { padding-top: 2px; }
html body #cnCareSuite_260310 .cnx_doc_badge { float: right; font-size: 10.5px; font-weight: 700; color: var(--dk-brand); background: #fff; border: 1px solid #cfe5da; border-radius: 99px; padding: 1px 7px; margin-left: 6px; }

/* 문서 보는 곳(오른쪽, 회색 바탕 위 종이) */
html body #cnCareSuite_260310 .cnx_stage { overflow: auto; padding: 28px 24px 40px; }
html body #cnCareSuite_260310 .cnx_stage .cns260310_doc_panel { display: none; }
html body #cnCareSuite_260310 .cnx_stage .cns260310_doc_panel.is_show { display: block; }
html body #cnCareSuite_260310 .cnx_stage .cns260310_preview_sheet {
  max-width: 820px; margin: 0 auto; border-radius: 4px; border: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(15,23,20,.10);
}
html body #cnCareSuite_260310 .cnx_stage #cns260310DocDispatch { max-width: 820px; background: transparent; }
html body #cnCareSuite_260310 .cnx_stage .cnlog_260428_page { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(15,23,20,.10); border-radius: 4px; margin: 0 auto 18px; }

/* 문서 안의 옛 버튼 묶음은 숨김 — 아래 하단 바에서 같은 기능 제공 */
html body #cnCareSuite_260310 .cns260310_doc_inline_actions { display: none !important; }

/* 하단 동작 바 */
html body #cnCareSuite_260310 .cns260310_modal_foot {
  flex: none; display: flex !important; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff; border-top: 1px solid var(--dk-line); padding: 12px 20px; margin: 0;
}
html body #cnCareSuite_260310 .cnx_foot_hint { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--dk-sub); line-height: 1.5; }
html body #cnCareSuite_260310 .cnx_foot_hint b { color: var(--dk-ink); }
html body #cnCareSuite_260310 .cns260310_foot_btn {
  border-radius: 11px; padding: 11px 16px; font-size: 14px; font-weight: 700; border: 1px solid var(--dk-line);
  background: #fff; color: var(--dk-ink); box-shadow: none; cursor: pointer; width: auto; min-width: 0; margin: 0;
  background-image: none; text-shadow: none; transform: none;
}
html body #cnCareSuite_260310 .cns260310_foot_btn:hover { background: var(--dk-soft); }
html body #cnCareSuite_260310 .cns260310_foot_btn#cns260310SingleSendBtn { background: var(--dk-brand); border-color: var(--dk-brand); color: #fff; }
html body #cnCareSuite_260310 .cns260310_foot_btn#cns260310SingleSendBtn:hover { background: var(--dk-brand-d); }
html body #cnCareSuite_260310 .cns260310_foot_btn#cns260310AllSendBtn { background: var(--dk-accent); border-color: var(--dk-accent); color: #fff; }
html body #cnCareSuite_260310 .cns260310_foot_btn#cns260310ClosePreviewBottom { border-color: transparent; color: var(--dk-sub); }

/* 휴대폰 */
@media (max-width: 860px) {
  html body #cnCareSuite_260310 .cns260310_modal_dim { padding: 0; }
  html body #cnCareSuite_260310 .cns260310_modal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  html body #cnCareSuite_260310 .cns260310_modal_body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  html body #cnCareSuite_260310 .cns260310_doc_tabs { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 8px 10px; border-right: 0; border-bottom: 1px solid var(--dk-line); gap: 6px; }
  html body #cnCareSuite_260310 .cns260310_doc_tab { width: auto; flex: none; padding: 8px 12px; font-size: 13px; border: 1px solid var(--dk-line); border-radius: 99px; }
  html body #cnCareSuite_260310 .cns260310_doc_tab.is_on { box-shadow: none; border-color: var(--dk-brand); }
  html body #cnCareSuite_260310 .cnx_doc_group, html body #cnCareSuite_260310 .cnx_doc_badge { display: none; }
  html body #cnCareSuite_260310 .cnx_stage { padding: 12px 8px 24px; }
  html body #cnCareSuite_260310 .cns260310_modal_foot { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  html body #cnCareSuite_260310 .cnx_foot_hint { order: 9; flex-basis: 100%; font-size: 11.5px; }
  html body #cnCareSuite_260310 .cns260310_foot_btn { flex: 1; padding: 12px 8px; font-size: 13px; }
  html body #cnCareSuite_260310 .cns260310_foot_btn#cns260310ClosePreviewBottom { display: none; }
}

/* ── 원본 스타일이 더 강하게 지정된 부분 덮기 ── */
html body #cnCareSuite_260310 .cns260310_preview_sheet:not(#cns260310DocDispatch) table th {
  color: var(--dk-sub) !important; font-size: 13px !important; font-weight: 700 !important; background: var(--dk-soft) !important;
}
html body #cnCareSuite_260310 .cns260310_preview_sheet:not(#cns260310DocDispatch) table th.cns260310_sheet_people_group {
  background: var(--dk-brand-soft) !important; color: var(--dk-brand-d) !important;
}
html body #cnCareSuite_260310 .cns260310_preview_sheet:not(#cns260310DocDispatch) table td { font-size: 13.5px !important; }
html body #cnCareSuite_260310 .cns260310_sheet_brand img { width: auto !important; }
html body #cnCareSuite_260310 .cns260310_modal_foot .cns260310_foot_btn {
  background: #fff !important; color: var(--dk-ink) !important; border: 1px solid var(--dk-line) !important; background-image: none !important;
}
html body #cnCareSuite_260310 .cns260310_modal_foot #cns260310SingleSendBtn { background: var(--dk-brand) !important; border-color: var(--dk-brand) !important; color: #fff !important; }
html body #cnCareSuite_260310 .cns260310_modal_foot #cns260310AllSendBtn { background: var(--dk-accent) !important; border-color: var(--dk-accent) !important; color: #fff !important; }
html body #cnCareSuite_260310 .cns260310_modal_foot #cns260310ClosePreviewBottom { border-color: transparent !important; color: var(--dk-sub) !important; }

/* 간병일지: 원본의 굵은 바깥선·잘림 정리 */
html body #cnCareSuite_260310 .cnlog_260428_table { border: 0 !important; border-top: 2px solid var(--dk-ink) !important; outline: 0 !important; box-shadow: none !important; }
html body #cnCareSuite_260310 .cnlog_260428_table th,
html body #cnCareSuite_260310 .cnlog_260428_table td { border: 1px solid var(--dk-line) !important; }
html body #cnCareSuite_260310 .cnlog_260428_table th { background: var(--dk-soft) !important; color: var(--dk-sub) !important; }
html body #cnCareSuite_260310 .cnlog_260428_care_table thead th { background: var(--dk-brand-soft) !important; color: var(--dk-brand-d) !important; }

html body #cnCareSuite_260310 .cnlog_260428_page { border: 0 !important; }

/* 휴대폰: 종이 통째로 축소 (원본 레이아웃 유지) */
html body #cnCareSuite_260310 .cnx_stage.is-zoomed .cns260310_doc_panel { width: 820px; max-width: 820px; zoom: var(--dz, 1); }
html body #cnCareSuite_260310 .cnx_stage.is-zoomed { padding: 8px; }

/* 간병일지: 간병인이 많아도(최대 4명) A4 한 장 안에 다 들어가게 — 날짜별 행만 살짝 촘촘하게 */
html body #cnCareSuite_260310 .cnlog_260428_care_table tbody td { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 1.1 !important; height: 21px !important; }
/* 그래도 넘치면 잘리지 않도록 (내용 숨김 금지) */
html body #cnCareSuite_260310 .cnlog_260428_page { height: auto !important; min-height: 1123px; overflow: visible !important; }

/* 미리보기 창: 문서 영역이 창 높이 안에서 끝까지 스크롤되게 */
html body #cnCareSuite_260310 .cns260310_modal_body { grid-template-rows: minmax(0, 1fr); }
html body #cnCareSuite_260310 .cnx_stage { min-height: 0; height: 100%; overflow-y: auto !important; overscroll-behavior: contain; }
html body #cnCareSuite_260310 .cns260310_doc_tabs { min-height: 0; }
@media (max-width: 860px) {
  html body #cnCareSuite_260310 .cns260310_modal_body { grid-template-rows: auto minmax(0, 1fr); }
}

html body #cnCareSuite_260310 .cnx_foot_hint:not(.is-busy) { display: none; }
html body #cnCareSuite_260310 .cnx_foot_hint.is-busy::before { content: '문서를 만드는 중이에요…'; display: block; color: var(--dk-brand-d); font-weight: 700; }
