/* ppp.kr — fff.css 위에 문서 입력·종이 미리 보기·인쇄만 더한다. 종이는 늘 흰 바탕(어두운 화면에서도 인쇄와 같게). */
.cat-business { --c: light-dark(#1b3a6b, #9db8ec); --c-bg: light-dark(#e8edf6, #1c2640); }
.cat-career { --c: light-dark(#b3541e, #ffb08a); --c-bg: light-dark(#fff0e6, #3a2418); }
.tool.ppp { max-width: 1240px; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-form { display: grid; gap: 14px; }
.ed-form .opts { margin: 0; }
.opts.two { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.opt.wide { grid-column: 1 / -1; }
.ed-form textarea { width: 100%; min-height: 80px; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); resize: vertical; }
.ed-form input[type=date], .ed-form input[type=time] { width: 100%; min-height: 48px; padding: 0 12px; font: inherit; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.ed-form input[type=color] { width: 100%; min-height: 48px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ed-form input[type=file] { font: inherit; min-height: 48px; }
.grp { display: grid; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg2); min-width: 0; }
.grp legend { padding: 0 6px; font-weight: 800; }
.hint.mini { margin: -6px 0 0; font-size: .88rem; }
.items { display: grid; gap: 10px; }
.row { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); position: relative; }
.row-items { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr) 44px; align-items: end; }
.row-exp, .row-edu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; align-items: end; }
.row-exp .k-period, .row-edu .k-period { grid-column: 1 / 3; }
.row-exp .k-detail { grid-column: 1 / -1; }
.row-exp .del, .row-edu .del { grid-row: 1; grid-column: 3; }
@media (max-width: 560px) {
  .row-items { grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .9fr) 44px; }
  .row-items .k-desc { grid-column: 1 / 4; }
  .row-items .del { grid-row: 1; grid-column: 4; }
  .row-items .k-price { grid-column: 3 / 5; }
}
.row .opt { font-size: .86rem; }
.more { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.more summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; padding: 0 14px; font-weight: 700; }
.more .opts, .more .acts { padding: 0 14px 14px; margin: 0; }
.ed-view { position: sticky; top: 76px; display: grid; gap: 12px; }
@media (max-width: 900px) { .ed-view { position: static; } }
.ed-view .acts { margin: 0; }
.ed-view .acts .btn-primary { flex: 1; }
.paper-wrap { overflow: hidden; border-radius: 6px; background: var(--bg2); }

/* ── 종이 ── 794px = A4 너비(96dpi), Letter 816px */
.paper { --pc: #1b3a6b; width: 794px; min-height: 1123px; padding: 56px 54px; box-sizing: border-box; transform-origin: 0 0;
  background: #fff; color: #16181d; color-scheme: light; font: 13px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
[dir=rtl] .paper-wrap .paper { transform-origin: 100% 0; }
.paper.size-Letter { width: 816px; min-height: 1056px; }
.paper h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; color: var(--pc); }
.paper h3 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #5b616e; }
.paper p { margin: 0 0 8px; }
.paper dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.paper dt { color: #5b616e; }
.paper dd { margin: 0; overflow-wrap: anywhere; }
.pp-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding-bottom: 18px; border-bottom: 3px solid var(--pc); margin-bottom: 20px; }
.pp-head h2 { grid-column: 2; align-self: center; }
.pp-logo { max-width: 140px; max-height: 64px; object-fit: contain; }
.pp-meta { grid-column: 3; text-align: end; }
.pp-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.pp-party { position: relative; padding: 12px 14px; border: 1px solid #dfe2e8; border-radius: 8px; break-inside: avoid; }
.pp-co { font-size: 15px; font-weight: 800; margin-bottom: 6px !important; }
.pp-seal { position: absolute; inset-inline-end: 10px; bottom: 8px; width: 64px; height: 64px; object-fit: contain; opacity: .92; }
.pp-words { padding: 10px 14px; background: color-mix(in srgb, var(--pc) 8%, #fff); border-radius: 8px; }
.pp-items { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.pp-items th { background: var(--pc); color: #fff; font-weight: 700; text-align: start; padding: 8px; font-size: 12px; }
.pp-items td { padding: 8px; border-bottom: 1px solid #e6e8ec; vertical-align: top; overflow-wrap: anywhere; }
.pp-items tr { break-inside: avoid; }
.pp-items .n { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-items td:first-child, .pp-items th:first-child { width: 36px; white-space: nowrap; color: #5b616e; overflow-wrap: normal; }
.pp-items th:first-child { color: #fff; }
.pp-items thead { display: table-header-group; }
.pp-sum { margin-inline-start: auto; min-width: 46%; border-collapse: collapse; break-inside: avoid; }
.pp-sum th { text-align: start; font-weight: 600; color: #5b616e; padding: 5px 8px; }
.pp-sum td { text-align: end; padding: 5px 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-total th, .pp-total td { font-size: 16px; font-weight: 800; color: #16181d; border-top: 2px solid var(--pc); padding-top: 8px; }
.pp-paid { display: inline-block; margin: 14px 0; padding: 6px 16px; border: 3px solid #c0392b; border-radius: 6px; color: #c0392b; font-size: 18px; font-weight: 900; letter-spacing: .08em; transform: rotate(-4deg); }
.pp-note { margin-top: 16px; break-inside: avoid; }
.pp-empty { color: #9aa0ab; text-align: center; }
/* 이력서 */
.pp-rhead { display: flex; gap: 20px; align-items: center; padding-bottom: 16px; border-bottom: 3px solid var(--pc); margin-bottom: 16px; }
.pp-photo { width: 96px; height: 120px; object-fit: cover; border-radius: 6px; }
.pp-rhead h2 { font-size: 30px; }
.pp-role { font-size: 15px; font-weight: 700; color: #3a3f4a; margin: 2px 0 6px !important; }
.pp-contact { color: #5b616e; }
.pp-contact i { font-style: normal; margin: 0 8px; color: #b3b8c2; }
.pp-sec { margin-bottom: 16px; break-inside: avoid-page; }
.pp-sec h3 { color: var(--pc); border-bottom: 1px solid #e6e8ec; padding-bottom: 4px; margin-bottom: 8px; }
.pp-entry { margin-bottom: 10px; break-inside: avoid; }
.pp-entry p { display: flex; gap: 6px; margin: 0 0 4px; }
.pp-entry p span { margin-inline-start: auto; color: #5b616e; white-space: nowrap; }
.pp-entry ul, .pp-sec ul { margin: 0; padding-inline-start: 18px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chips span { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 10%, #fff); }
/* 편지 */
.pp-letter { font-size: 14px; line-height: 1.75; }
.pp-lhead { padding-bottom: 14px; border-bottom: 2px solid #16181d; margin-bottom: 22px; }
.pp-date { margin-bottom: 18px !important; }
.pp-to { margin-bottom: 18px !important; }
.pp-close { margin-top: 28px !important; }

/* ── 인쇄: 종이만, 그림자·축소 없이 ── */
#printroot { display: none; }
@media print {
  body.doc-print > *:not(main), body.doc-print main > *:not(#printroot) { display: none !important; }
  body.doc-print main { padding: 0 !important; margin: 0 !important; }
  body.doc-print #printroot { display: block !important; }
  #printroot .paper { width: auto; min-height: 0; padding: 0; box-shadow: none; transform: none; }
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── ppp 전용 얼굴(fff·coc 와 다르게): 짙은 남색 머리·바닥, 크림색 종이 첫 화면(줄 무늬), 주황 강조, 문서 종류 = 종이 카드 ── */
.b-ppp { --accent: light-dark(#c2410c, #ff9a62); --accent-ink: light-dark(#ffffff, #1a0a02); --navy: light-dark(#1b2a4a, #0d1424); --cream: light-dark(#f6f1e7, #1b1a17);
  --bg2: light-dark(#f7f5f0, #16171b); --line: light-dark(#e4dfd4, #2c2e35); --radius: 10px; }
.b-ppp .top { background: var(--navy); border-bottom: 3px solid var(--accent); }
.b-ppp .top .logo, .b-ppp .top .logo b, .b-ppp .top-nav a { color: #f6f1e7; }
.b-ppp .top .logo span { color: rgb(246 241 231 / .7); }
.b-ppp .logo .mark { background: #f6f1e7; color: #1b2a4a; border-radius: 3px 10px 3px 3px; }
.b-ppp .top-nav a:hover { background: rgb(255 255 255 / .1); }
.b-ppp .lang summary { color: #f6f1e7; border-color: rgb(255 255 255 / .28); }
.b-ppp h1, .b-ppp .doc h2 { font-family: ui-serif, "Iowan Old Style", Georgia, "Apple SD Gothic Neo", "Noto Serif KR", serif; letter-spacing: -.01em; }
.b-ppp .btn { border-radius: 8px; }
.p-hero { background: repeating-linear-gradient(180deg, transparent 0 31px, color-mix(in srgb, var(--accent) 14%, transparent) 31px 32px), var(--cream); border-bottom: 1px solid var(--line); padding: 52px 0 36px; }
.p-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.1rem); max-width: 16em; }
.p-hero .badges li { background: var(--card); box-shadow: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.p-docs { padding-top: 10px; }
.p-cat { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c, var(--dim)); margin: 30px 0 14px; padding-bottom: 6px; border-bottom: 2px solid var(--c, var(--line)); }
.p-sheets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.p-sheet { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 230px; padding: 20px 18px 18px; background: #fffdf8; color: #16181d; text-decoration: none;
  border: 1px solid #e4dfd4; border-radius: 4px 18px 4px 4px; box-shadow: 0 1px 0 #e4dfd4, 0 6px 14px rgb(27 42 74 / .08); transition: transform .15s, box-shadow .15s; }
.p-sheet:hover { transform: translateY(-2px) rotate(-.4deg); box-shadow: 0 10px 24px rgb(27 42 74 / .16); }
.p-fold { position: absolute; top: -1px; inset-inline-end: -1px; width: 22px; height: 22px; background: linear-gradient(225deg, var(--bg) 50%, #e9e2d2 50%); border-radius: 0 18px 0 6px; }
.p-sheet .ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: var(--c-bg); font-size: 1.4rem; margin-bottom: 8px; }
.p-sheet b { font-size: 1.08rem; }
.p-sheet span:not(.ico):not(.p-fold) { color: #5b616e; font-size: .92rem; line-height: 1.45; }
.p-sheet i { display: block; height: 6px; border-radius: 3px; background: #ece6d9; margin-top: 8px; }
.p-sheet i:first-of-type { margin-top: auto; background: var(--c); opacity: .35; width: 60%; }
.p-sheet i:last-of-type { width: 75%; }
@media (prefers-color-scheme: dark) { .p-sheet { background: #f3eee4; } }
.p-how { padding-top: 34px; }
.p-how h2 { font-size: 1.35rem; margin: 0 0 14px; }
.p-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.p-how li { display: flex; gap: 12px; padding: 18px; background: var(--card); border-inline-end: 1px dashed var(--line); }
.p-how li:last-child { border-inline-end: 0; }
.p-how li b { flex: none; font: 900 1.6rem/1 ui-serif, Georgia, serif; color: var(--accent); }
.b-ppp .foot { background: var(--navy); color: rgb(246 241 231 / .72); border-top: 3px solid var(--accent); }
.b-ppp .foot a, .b-ppp .foot-dir a { color: rgb(246 241 231 / .8); }
.b-ppp .foot-h { color: #f6f1e7; }
.b-ppp .foot-dir { border-bottom-color: rgb(255 255 255 / .14); }
.b-ppp [hidden] { display: none !important; }

/* 서식(2판) — 가운데 큰 제목, 번호 항목, 표, 서명 칸, 결재란. 인쇄에서 쪽 나눔이 칸 중간에 오지 않게. */
.cat-hr { --c: light-dark(#0f766e, #5eead4); --c-bg: light-dark(#e6f6f3, #12302c); }
.cat-legal { --c: light-dark(#6d28d9, #c4b5fd); --c-bg: light-dark(#f1eafe, #261b40); }
.form-src a { color: inherit; }
.pp-form { font-size: 13px; line-height: 1.55; }
.pf-title { text-align: center; font-size: 28px !important; letter-spacing: .08em !important; color: #16181d !important; margin: 0 0 18px !important; }
.pf-p { margin: 10px 0 !important; }
.pf-h { font-weight: 800; margin: 8px 0 1px !important; break-after: avoid; }
.pf-li { margin: 0 0 2px !important; padding-inline-start: 18px; }
.pf-note { font-size: 12px; color: #5b616e; margin: 4px 0 !important; white-space: pre-line; }
.pf-blank { display: inline-block; min-width: 72px; border-bottom: 1px solid #9aa0ab; height: 1em; vertical-align: -2px; }
.pf-tbl { width: 100%; border-collapse: collapse; margin: 8px 0 14px; break-inside: avoid; }
.pf-tbl th, .pf-tbl td { border: 1px solid #b8bdc7; padding: 9px 12px; vertical-align: top; text-align: start; }
.pf-tbl th { width: 26%; background: #f3f4f7; font-weight: 700; white-space: nowrap; }
.pf-tbl td { overflow-wrap: anywhere; }
.pf-date { text-align: center; margin: 18px 0 12px !important; font-size: 14px; }
.pf-sign { position: relative; display: flex; gap: 14px; justify-content: flex-end; margin: 8px 0 !important; break-inside: avoid; }
.pf-sign b { white-space: nowrap; }
.pf-sign p { margin: 0 0 2px !important; }
.pf-seal { position: absolute; inset-inline-end: -6px; bottom: -10px; width: 70px; height: 70px; object-fit: contain; opacity: .9; mix-blend-mode: multiply; }
.pf-appr { float: inline-end; border-collapse: collapse; margin: -8px 0 12px 12px; }
.pf-appr th, .pf-appr td { border: 1px solid #b8bdc7; min-width: 62px; text-align: center; font-size: 12px; }
.pf-appr th { background: #f3f4f7; padding: 4px 6px; }
.pf-appr td { height: 52px; }
.pf-appr + * { clear: none; }
.pf-tbl { clear: both; }
.pf-tbl .pf-blank { border-bottom: 0; }
/* 첫 화면 문서 찾기(11-29) */
.p-find { margin: 22px 0 4px; }
.p-find input { width: 100%; min-height: 52px; padding: 0 16px; font: inherit; font-size: 1.05rem; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.p-find input:focus { border-color: var(--accent); outline: none; }
.p-docs [hidden] { display: none !important; }
.cat-contract { --c: light-dark(#6d28d9, #c4b5fd); --c-bg: light-dark(#f1eafe, #261b40); }
.cat-admin { --c: light-dark(#a16207, #fcd34d); --c-bg: light-dark(#fef6e0, #33280f); }
.cat-family { --c: light-dark(#be185d, #f9a8d4); --c-bg: light-dark(#fde8f1, #3a1a2a); }
