/* 학교 리포트 — 유비온 양식: 파랑 한 계열 + 회색, 코스모스 마크·COURSEMOS 머리글, 번호 달린 장, A4 인쇄 */
.rp-bar { max-width: 940px; margin: 0 auto 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: #fff; border: 1px solid #e3e6ea; border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.rp-bar label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.rp-bar select { font: inherit; padding: 4px 8px; border: 1px solid #e3e6ea; border-radius: 6px; background: #fff; }
.rp-bar-btns { margin-left: auto; display: flex; gap: 8px; }
.rp, .rp-cards { --fg: #16181d; --muted: #5c636e; --line: #e3e6ea; --card: #f7f8fa; --accent: #1f5fd6; --accent-soft: #e8f0fd; --thead: #f3f8ff; }
.rp { max-width: 940px; margin: 0 auto; padding: 48px 28px 56px; background: #fff; color: var(--fg); border: 1px solid var(--line); border-radius: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif;
  line-height: 1.7; font-size: 15px; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: break-word; }
.rp header { border-bottom: 2px solid var(--fg); padding-bottom: 20px; margin-bottom: 8px; }
.rp-brand { margin-bottom: 22px; }
.rp-brandrow { display: flex; align-items: center; gap: 11px; }
.rp-mark { height: 26px; width: auto; display: block; }
.rp-wordmark { font-size: 22px; font-weight: 800; letter-spacing: .01em; color: #16181d; }
.rp-tagline { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; margin-top: 5px; }
.rp-eyebrow { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; margin-bottom: 8px; }
.rp h1 { font-size: 28px; line-height: 1.35; margin: 0 0 6px; letter-spacing: -.02em; color: var(--fg); }
.rp-meta { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.rp h2 { font-size: 19px; margin: 40px 0 6px; padding-top: 8px; letter-spacing: -.02em; color: var(--fg); }
.rp h2 .num { color: var(--accent); font-variant-numeric: tabular-nums; margin-right: 10px; }
.rp h3 { font-size: 15.5px; margin: 24px 0 6px; color: var(--fg); }
.rp-sub { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.rp-note { font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.rp-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.rp-card .k { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.rp-card .v { font-size: 26px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.rp-card .u { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.rp-card.hi { background: var(--accent-soft); border-color: var(--accent); }
.rp-card.hi .v { color: var(--accent); }
.rp-tablewrap { overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.rp table { border-collapse: collapse; width: 100%; font-size: 14px; table-layout: fixed; }
.rp th:nth-last-child(2), .rp th:last-child { width: 18%; }
.rp th:first-child:nth-last-child(2), .rp th:first-child:nth-last-child(2) ~ th { width: 50%; }
.rp th, .rp td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.rp th { background: var(--thead); font-weight: 650; font-size: 13px; white-space: nowrap; }
.rp tr:last-child td { border-bottom: none; }
.rp-chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: #fff; white-space: nowrap; }
.rp-chip.now { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.rp-chip.done { background: var(--card); color: var(--fg); }
.rp-foot { margin-top: 44px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

@media print {
  @page { size: A4; margin: 14mm; }
  html, body, #app { padding: 0 !important; background: #fff !important; min-height: 0 !important; }
  .rp-bar { display: none; }
  .rp { max-width: none; padding: 0; border: 0; border-radius: 0; font-size: 11pt; color: #000; zoom: .88; }
  .rp h2, .rp h3, .rp-note { break-after: avoid; page-break-after: avoid; }
  .rp-cards, .rp-tablewrap, .rp tr, .rp-foot { break-inside: avoid; page-break-inside: avoid; }
  .rp-tablewrap { overflow: visible; }
  .rp-card { background: #f6f6f6; }
  .rp-card.hi, .rp-chip.now, .rp th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
