/* A4 결과지 한 장. 뼈대는 Dr.PEA 결과지(pidu_academy/css/sheet.css)를 옮겼다:
   굵은 윗줄 머리글 → 정보 줄 → 점수 띠 → 굵은 윗줄로 나눈 칸들 → 아래 고지.
   바꾼 것: 점수 띠는 스탠드업 남색, 상태 색은 낮음 초록·보통 주황·높음 빨강(종이에서 읽히게 진하게).
   폭 794px(A4 96dpi)로 박고 화면 폭에 맞게 통째로 줄여 보여 준다(result.js fitSheet). */

.sheet {
  --ink: #121417; --ink2: #3A3F47; --muted: #6E737C; --line: #E3E5E8; --soft: #F4F5F6;
  --navy: #1B2559; --orange: #E8552F;
  --ok: #157A3A; --ok-soft: #E2F3E8; --wa: #9A5B00; --wa-soft: #FFF0D2; --bad: #B3261E; --bad-soft: #FBE1DE;
  display: flex; flex-direction: column; width: 794px; min-height: 1123px; box-sizing: border-box;
  padding: 30px 34px 22px; background: #fff; color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; font-size: 12px; line-height: 1.45; letter-spacing: 0;
  transform-origin: top left; word-break: keep-all;
}
.sheet *, .sheet *::before, .sheet *::after { box-sizing: border-box; }
.sheet h1, .sheet h2, .sheet h3, .sheet p { margin: 0; }
.sheet-wrap { overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); border-radius: 4px; margin: 0 auto; }

.sheet .hd { display: flex; align-items: flex-end; justify-content: space-between; border-top: 3px solid var(--ink); padding-top: 12px; }
.sheet .hd .l { display: flex; align-items: center; gap: 12px; }
.sheet .hd .l img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.sheet .hd h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.sheet .hd .l small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 700; letter-spacing: .1em; margin-top: 2px; }
.sheet .hd .r { text-align: right; }
.sheet .hd .r small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .08em; }
.sheet .hd .r b { font-size: 16px; font-weight: 700; }

.sheet .info { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sheet .info div { padding: 7px 0; min-width: 0; }
.sheet .info small { display: block; font-size: 9.5px; color: var(--muted); font-weight: 700; letter-spacing: .06em; }
.sheet .info b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sheet .band { display: grid; grid-template-columns: 170px minmax(0, 1fr) 180px; background: var(--navy); color: #fff; border-radius: 6px; overflow: hidden; margin-bottom: 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet .band.solo { grid-template-columns: 170px minmax(0, 1fr); }
.sheet .band .sc { padding: 12px 16px; display: flex; align-items: baseline; gap: 4px; }
.sheet .band .sc b { font-size: 56px; font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.sheet .band .sc span { font-size: 14px; color: #AEB6DA; }
.sheet .band .st { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 12px 10px 12px 16px; border-left: 1px solid #2E3A75; min-width: 0; }
.sheet .band .st small { color: #AEB6DA; font-size: 10px; }
.sheet .band .st b { font-size: 18px; font-weight: 800; }
.sheet .band .st small em.pt { font-size: 10px; color: #FFB59E; }
.sheet .band .st em { font-style: normal; color: #FFB59E; font-weight: 700; font-size: 13px; }
.sheet .band .tr { border-left: 1px solid #2E3A75; padding: 10px 14px; }
.sheet .band .tr small { display: block; font-size: 9.5px; color: #AEB6DA; font-weight: 700; letter-spacing: .06em; }
.sheet .band .tr svg { display: block; width: 100%; height: 40px; }
.sheet .band .tr b { font-size: 12px; color: #FFB59E; white-space: nowrap; }

.sheet .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 12px; }
.sheet .sec { border-top: 2px solid var(--ink); padding-top: 6px; min-width: 0; margin-bottom: 12px; }
.sheet .sec > h2 { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; }
.sheet .sec > h2 small { font-size: 10px; color: var(--muted); font-weight: 600; }
.sheet .none { font-size: 10px; color: var(--muted); margin-top: 4px; }

.sheet .p { display: inline-block; font-size: 9.5px; font-weight: 800; padding: 1px 6px; border-radius: 3px; line-height: 1.5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet .p.ok { background: var(--ok-soft); color: var(--ok); }
.sheet .p.wa { background: var(--wa-soft); color: var(--wa); }
.sheet .p.bad { background: var(--bad-soft); color: var(--bad); }
.sheet .p.ref { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

.sheet .risk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet .risk i { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.sheet .risk b { font-size: 15px; }
.sheet .risk.low { background: var(--ok-soft); } .sheet .risk.low i { background: var(--ok); }
.sheet .risk.moderate { background: var(--wa-soft); } .sheet .risk.moderate i { background: #E09A00; }
.sheet .risk.high { background: var(--bad-soft); } .sheet .risk.high i { background: var(--bad); }
.sheet .risk span { font-size: 10.5px; color: var(--ink2); }

.sheet table.mt { width: 100%; border-collapse: collapse; }
.sheet table.mt th { font-size: 9.5px; color: var(--muted); font-weight: 700; text-align: right; padding: 2px 0; }
.sheet table.mt th:first-child { text-align: left; }
.sheet table.mt td { padding: 4px 0; border-top: 1px solid var(--line); font-size: 11.5px; white-space: nowrap; }
.sheet table.mt td.n { color: var(--ink2); white-space: normal; }
.sheet table.mt td.v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; padding-left: 6px; }
.sheet table.mt td.o { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 6px; }
.sheet table.mt td.s { text-align: right; width: 44px; padding-left: 6px; }

.sheet .sppb { display: grid; grid-template-columns: repeat(3, 1fr) 70px; gap: 6px; margin-bottom: 6px; align-items: end; }
.sheet .sppb div { text-align: center; }
.sheet .sppb i { display: flex; gap: 2px; height: 8px; margin: 3px 0; }
.sheet .sppb i u { flex: 1; border-radius: 2px; background: var(--soft); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet .sppb i u.on { background: var(--navy); }
.sheet .sppb small { font-size: 9.5px; color: var(--muted); display: block; }
.sheet .sppb b { font-size: 12px; }
.sheet .sppb .tot b { font-size: 22px; }

.sheet .tk h3 { font-size: 10.5px; color: var(--muted); font-weight: 800; margin: 6px 0 2px; letter-spacing: .04em; }
.sheet .tr2 { display: grid; grid-template-columns: minmax(0, 1fr) 90px 26px 26px; gap: 6px; align-items: center; font-size: 10.5px; padding: 1.5px 0; }
.sheet .tr2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .tr2 i { height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; display: block; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet .tr2 i u { display: block; height: 100%; background: var(--navy); border-radius: 3px; }
.sheet .tr2.hi i u { background: var(--orange); }
.sheet .tr2.hi span { font-weight: 800; }
.sheet .tr2 b { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .tr2 em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.sheet small.mi { font-size: 8.5px; font-weight: 800; color: var(--wa); background: var(--wa-soft); padding: 0 4px; border-radius: 3px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sheet .fnd p { font-size: 12px; padding: 4px 0 4px 10px; border-left: 3px solid var(--orange); margin-bottom: 4px; }
.sheet .photo { float: right; width: 110px; margin: 0 0 6px 10px; border-radius: 4px; }

.sheet .ft { margin-top: auto; padding-top: 7px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: 9px; color: var(--muted); line-height: 1.5; }
.sheet .ft .brandline { flex: none; text-align: right; white-space: nowrap; }

@media print {
  @page { size: A4 portrait; margin: 0; }
  body.printing-sheet main > :not(.sheet-wrap) { display: none !important; }
  body.printing-sheet .sheet-wrap { box-shadow: none; border-radius: 0; height: auto !important; width: auto !important; }
  body.printing-sheet .sheet { transform: none !important; }
}
