/* 지원금길 양식 「자유 편집」 (free8.css)
   .sheet 가 들어간 규칙은 공유용 PDF(그림 PDF)에도 같이 들어가요. 편집 화면에서만 보일 꾸밈은 #f8paper 로 써요. */

/* 위쪽 버튼 */
.tb-b.f8go{display:inline-flex;align-items:center;gap:6px;background:#13233f;border-color:#13233f;color:#fff}
.tb-b.f8go:hover{background:#0b1730;border-color:#0b1730;color:#fff}
.tb-b.f8go[aria-pressed=true]{background:#fff;color:#13233f;border-color:#13233f}
.tb-b.f8go[aria-pressed=true]:hover{background:#13233f;color:#fff}

/* 자유 편집 중에는 칸 채우기 쪽 도구를 숨겨요 */
body.f8on #sheet{display:none!important}
body.f8on #btnEdit,body.f8on #btnClear,body.f8on #btnSeal,body.f8on #sealPick,body.f8on .mysel,body.f8on .pgo{display:none!important}
body.f8on #fill,body.f8on #edit,body.f8on #panel>.ptitle{display:none!important}

/* 이어서 고치기 알림 */
.f8resume{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;background:#e8edf6;border:1.5px solid #13233f;border-radius:12px;padding:10px 14px;margin:-6px 0 16px}
.f8resume[hidden]{display:none!important}
.f8resume .f8rt{flex:1 1 220px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.f8resume b{font-size:15.5px;font-weight:900;color:#13233f}
.f8resume small{font-size:12.5px;color:var(--sub,#555)}
.f8resume button{font:inherit;font-size:14.5px;font-weight:800;border:1.5px solid #13233f;background:#fff;color:#13233f;border-radius:999px;padding:7px 14px;cursor:pointer}
.f8resume button.pri{background:#13233f;color:#fff}
.f8resume button:hover{filter:brightness(.95)}

/* 왼쪽 안내 */
.f8guide{display:none;padding:16px 16px 18px}
body.f8on .f8guide{display:block}
.f8gh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;margin-bottom:10px}
.f8gh b{font-size:18px;font-weight:900;color:#13233f}
.f8gh span{font-size:13px;color:#d30310;font-weight:800}
.f8guide ul{list-style:none;display:grid;gap:7px;margin:0 0 14px;padding:0}
.f8guide li{font-size:14.5px;line-height:1.6;padding-left:14px;position:relative;color:#22252a}
.f8guide li::before{content:'';position:absolute;left:1px;top:.7em;width:5px;height:5px;border-radius:50%;background:#13233f}
.f8back{font:inherit;width:100%;font-size:15.5px;font-weight:900;border:1.5px solid #111;background:#fff;color:#111;border-radius:10px;padding:11px;cursor:pointer}
.f8back:hover{background:#111;color:#fff}
.f8gn{font-size:12.5px;color:var(--mute,#888);margin-top:6px;text-align:center}

/* 편집 도구 줄 (종이 위, 붙어 다녀요) */
.f8bar{display:none}
body.f8on .f8bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 4px;position:sticky;top:0;z-index:3;background:#fff;border:1.5px solid #13233f;border-radius:12px;padding:6px 7px;margin:0 0 10px;box-shadow:0 6px 16px rgba(19,35,63,.10)}
.f8bar .f8g{display:inline-flex;align-items:center;gap:3px;padding-right:5px;margin-right:1px;border-right:1px solid #e3e5ea}
.f8bar .f8g:last-child{border-right:0}
.f8bar button{font:inherit;font-size:13.5px;font-weight:800;border:1px solid #d3d6dc;background:#fff;color:#111;border-radius:8px;min-height:34px;min-width:34px;padding:4px 8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap;line-height:1.2}
.f8bar button:hover:not(:disabled){border-color:#13233f;background:#f3f5f9}
.f8bar button[aria-pressed=true]{background:#13233f;border-color:#13233f;color:#fff}
.f8bar button[aria-expanded=true]{border-color:#13233f;box-shadow:inset 0 0 0 1px #13233f}
.f8bar button:disabled{opacity:.38;cursor:default}
.f8bar button.ic{padding:4px 6px}
.f8bar button em{font-style:normal;font-size:10px;color:#777}
.f8bar .f8gl{font-size:15px;line-height:1;font-family:'S-Core Dream','Malgun Gothic',sans-serif}
.f8bar b.f8gl{font-weight:900}.f8bar i.f8gl{font-style:italic;font-weight:600}.f8bar u.f8gl{font-weight:600;text-underline-offset:2px}
.f8bar .f8tbl small{font-size:12px;font-weight:900;color:#13233f;margin:0 2px 0 1px}
.f8bar.incell .f8tbl{background:#eef2f9;border-radius:9px;padding:2px 4px}
.f8bar button.del:not(:disabled){color:#b0020d}
.f8on-chip{font-size:12px;font-weight:900;color:#fff;background:#d30310;border-radius:999px;padding:4px 9px;white-space:nowrap}

/* 작은 창 */
.f8pop{position:fixed;z-index:80;background:#fff;border:1.5px solid #13233f;border-radius:12px;padding:10px;box-shadow:0 12px 30px rgba(0,0,0,.18);min-width:170px;max-width:calc(100vw - 16px);font-size:14px}
.f8pl{font-size:13.5px;font-weight:900;color:#13233f;margin-bottom:8px}
.f8ph{font-size:12px;color:#777;margin-top:7px}
.f8sz{display:grid;gap:4px}
.f8sz button{font:inherit;display:flex;align-items:center;gap:10px;border:1px solid #e1e3e8;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer;font-weight:800;text-align:left}
.f8sz button span{display:inline-block;width:28px;text-align:center;font-weight:800}
.f8sz button small{margin-left:auto;color:#888;font-weight:600}
.f8sz button:hover{border-color:#13233f;background:#f3f5f9}
.f8tg{display:grid;grid-template-columns:repeat(8,22px);gap:3px}
.f8tg button{width:22px;height:22px;border:1px solid #c9ccd2;background:#fff;border-radius:3px;padding:0;cursor:pointer}
.f8tg button.on{background:#13233f;border-color:#13233f}
.f8pc{display:flex;gap:6px}
.f8pc button{font:inherit;flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid #e1e3e8;background:#fff;border-radius:10px;padding:8px 10px;cursor:pointer;font-weight:800;min-width:76px}
.f8pc button img{width:44px;height:44px;object-fit:contain}
.f8pc button:hover:not(:disabled){border-color:#13233f;background:#f3f5f9}
.f8pc button:disabled{opacity:.4;cursor:default}
.f8pm{font:inherit;width:100%;margin-top:7px;border:1.5px dashed #13233f;background:#fff;color:#13233f;border-radius:8px;padding:7px;font-weight:800;cursor:pointer}

/* 편집 종이 */
#f8paper{outline:none;cursor:text;caret-color:#d30310}
#f8paper:focus{box-shadow:0 0 0 2px rgba(31,95,214,.35),0 10px 30px rgba(0,0,0,.12)}
#f8paper .f8b{background:rgba(31,95,214,.07)}
#f8paper img{cursor:default}
#f8paper.f8p-s font[size="7"]{font-size:9pt}
#f8paper.f8p-n font[size="7"]{font-size:10.5pt}
#f8paper.f8p-l font[size="7"]{font-size:14pt}
#f8paper.f8p-t font[size="7"]{font-size:20pt}
#f8paper .f8pb{display:block;position:relative;height:0;border-top:1.5px dashed #6b7380;margin:6mm 0 5mm;user-select:none}
#f8paper .f8pb span{position:absolute;right:0;top:-9px;font-size:8pt;line-height:1.4;color:#555;background:#fff;padding:0 5px;font-weight:700}
/* 종이(인쇄·공유 PDF에도 같이) */
.sheet .f8b{border-bottom:1px solid #111;white-space:pre-wrap}
.sheet font[size="7"]{font-size:inherit}
.sheet .f8sz-s{font-size:9pt}
.sheet .f8sz-n{font-size:10.5pt}
.sheet .f8sz-l{font-size:14pt}
.sheet .f8sz-t{font-size:20pt}
.sheet ol,.sheet ul{padding-left:7mm;margin:1mm 0}
.sheet ol{list-style:decimal}
.sheet ul{list-style:disc}
.sheet li{margin:.4mm 0}
.sheet img.f8img{display:inline-block;vertical-align:middle;object-fit:contain;mix-blend-mode:multiply}
.sheet .tb.f8t td{vertical-align:top}

@media (max-width:980px){
  body.f8on .f8bar{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;border-radius:10px;margin:0 -2px 10px;padding:6px}
  .f8bar .f8g{flex:none}
  .f8bar button{min-height:38px}
  .f8resume{margin:0 0 12px}
}
@media print{
  .f8bar,.f8pop,.f8resume,.f8guide{display:none!important}
  #f8paper{box-shadow:none!important;caret-color:transparent}
  #f8paper .f8b{background:none!important}
  #f8paper .f8pb{break-after:page;page-break-after:always;border:0!important;margin:0!important;height:0}
  #f8paper .f8pb span{display:none!important}
}
