/* 온라인 마감보고 — 보고서 톤(남색 한 색, 직각, 가는 괘선). 카드·그림자·둥근 모서리 없음. */

@font-face { font-family: Pretendard; font-weight: 400; font-style: normal; font-display: block; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 500; font-style: normal; font-display: block; src: url("fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 600; font-style: normal; font-display: block; src: url("fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family: Pretendard; font-weight: 700; font-style: normal; font-display: block; src: url("fonts/Pretendard-Bold.woff2") format("woff2"); }

:root {
  --navy: #1b3355;
  --navy-2: #2a4a75;
  --label: #e8edf4;
  --label-ink: #1b3355;
  --rule: #b7c1ce;
  --ink: #1a1d21;
  --muted: #6d7580;
  --good: #1e8449;
  --bad: #c0392b;
  --flat: #6b7079;
}

* { box-sizing: border-box; }
html { word-break: keep-all; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  font-feature-settings: "tnum"; -webkit-font-smoothing: antialiased;
}

/* ───── 보고서 시트 (PNG 영역, 시안 v6 그대로) ───── */
.sheet {
  width: 760px; height: 760px; padding: 30px 30px 22px; background: #fff; color: var(--ink);
  font-family: Pretendard, "Malgun Gothic", sans-serif; font-feature-settings: "tnum";
  display: flex; flex-direction: column; overflow: hidden;
}
.sheet .body { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }

.sheet .head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 12px; border-bottom: 3px solid var(--navy); }
.sheet .datebox { display: flex; border: 1px solid var(--navy); font-size: 16px; }
.sheet .datebox .k { background: var(--navy); color: #fff; font-weight: 600; padding: 8px 16px; }
.sheet .datebox .v { font-weight: 700; padding: 8px 18px; color: var(--navy); white-space: nowrap; }
.sheet .datebox .v small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.sheet .head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.sheet .subline { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--navy); margin-top: 2px; }
/* html-to-image 캡처는 글자 폭이 조금 좁게 그려진다 → 오른쪽 글자를 끝에 붙여 둔다(화면 표시는 그대로) */
.sheet .subline span:last-child { text-align: right; }

/* 소제목·표 — 시트와 화면 전용 표가 같이 쓴다 */
.sheet h2, .extras h2 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--navy); }
.sheet h2 .t::before, .extras h2 .t::before { content: "■"; font-size: 11px; margin-right: 6px; vertical-align: 2px; }

.sheet table, .extras table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); border-bottom: 1px solid var(--navy); }
.sheet table { table-layout: fixed; }
.sheet th, .sheet td, .extras th, .extras td { border: 1px solid var(--rule); padding: 12px 12px; font-size: 16px; }
.sheet tr > :first-child, .extras tr > :first-child { border-left: 0; }
.sheet tr > :last-child, .extras tr > :last-child { border-right: 0; }
.sheet th, .extras th { background: var(--navy-2); color: #fff; font-weight: 600; text-align: center; border-color: #5a7298; font-size: 15px; }
.sheet td.lb, .extras td.lb { background: var(--label); color: var(--label-ink); font-weight: 600; text-align: center; }
.sheet td.num, .extras td.num { text-align: right; font-weight: 700; font-size: 19px; padding-right: 18px; white-space: nowrap; }
.sheet td.num u { text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.sheet td.num.fit1 { font-size: 16px; padding-right: 10px; }
.sheet td.num.fit2 { font-size: 14px; padding-right: 8px; }
.sheet td.num.fit1 u, .sheet td.num.fit2 u { font-size: 12px; margin-left: 2px; }
.sheet td.txt, .extras td.txt { text-align: center; font-weight: 500; }
.sheet td.ch { text-align: center; font-weight: 700; color: var(--navy); }

.sheet .note { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ───── 화면 전용 표 (같은 스타일, 행이 많아 조금 촘촘하게) ───── */
.extras { margin-top: 36px; }
.extras-title { margin: 0 0 20px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.extras section { margin-bottom: 28px; }
.extras th, .extras td { padding: 9px 12px; font-size: 14.5px; }
.extras th { font-size: 14px; }
.extras td.num { font-size: 15.5px; padding-right: 14px; }
.extras .days td { padding-top: 6px; padding-bottom: 6px; }
.extras td.tone-good { color: var(--good); }
.extras td.tone-bad { color: var(--bad); }
.extras td.tone-flat { color: var(--flat); }
.extras td.weekend { color: var(--bad); }
/* 좁은 화면: 표는 내용 폭만큼 늘고 자기 상자 안에서 가로로 스크롤한다 */
.extras .scroll { overflow-x: auto; }
.extras .days td.txt { white-space: nowrap; }
@media (max-width: 560px) {
  .extras th, .extras td { padding: 7px 8px; font-size: 13px; }
  .extras td.num { font-size: 13.5px; padding-right: 8px; }
}

/* ───── 화면 틀 ───── */
.page { max-width: 792px; margin: 0 auto; padding: 16px 16px 48px; }
.sheet-wrap { width: 100%; max-width: 760px; margin-top: 12px; overflow: hidden; outline: 1px solid var(--rule); }

.bar { border-bottom: 3px solid var(--navy); padding-bottom: 10px; margin-bottom: 10px; }
.bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.brand { font-size: 18px; font-weight: 700; color: var(--navy); }
.who { font-size: 13px; color: var(--muted); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bar-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 8px; }
.pick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; color: var(--navy); font-weight: 600; }
.tilde { color: var(--muted); }
.quick { display: flex; gap: 14px; font-size: 14px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline { display: inline; margin: 0; }

a { color: var(--navy-2); }
.quick a { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rule); }
.quick a:hover { border-bottom-color: var(--navy); }

input, button { font: inherit; border-radius: 0; }
input[type="date"], input[type="text"], input[type="password"] {
  border: 1px solid var(--rule); background: #fff; color: var(--ink); padding: 6px 8px; font-size: 14px; font-weight: 500;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--navy-2); outline-offset: 1px; }
button {
  border: 1px solid var(--navy); background: #fff; color: var(--navy); padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer;
}
button:hover { background: var(--label); }
button.primary { background: var(--navy); color: #fff; }
button.primary:hover { background: var(--navy-2); }
button.link { border: 0; padding: 0; background: none; color: var(--navy-2); font-size: inherit; font-weight: 400; text-decoration: underline; }
button:disabled { opacity: 0.5; cursor: default; }

.status { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.warning, .error { margin: 4px 0; font-size: 14px; font-weight: 600; color: var(--bad); }
.notice { margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--navy); border-bottom: 1px solid var(--navy); font-size: 14px; font-weight: 600; color: var(--navy); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: var(--navy); color: #fff; padding: 10px 18px; font-size: 14px; font-weight: 600;
}

/* ───── 로그인·비밀번호 ───── */
.form-page { max-width: 360px; margin: 64px auto; padding: 0 16px; }
.form-title { margin: 0; padding-bottom: 10px; border-bottom: 3px solid var(--navy); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.form-sub { margin: 2px 0 16px; padding-top: 6px; border-top: 1px solid var(--navy); font-size: 14px; font-weight: 600; color: var(--navy); }
.plain-form { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.plain-form label { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--navy); }
.plain-form input { padding: 9px 10px; font-size: 15px; }
.plain-form button { margin-top: 16px; padding: 10px; font-size: 15px; }
.form-help { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.form-links { display: flex; gap: 16px; align-items: baseline; margin-top: 20px; font-size: 14px; }
