/* A4 parent report — mirrors the Tailwind output of Skolumos' PlayfulStudentReport.tsx.
   Everything is scoped and light-only: the dashboard theme must not reach the captured page. */
.playful-student-report{
  position:relative;overflow:hidden;background:#fff;color:#0f172a;
  color-scheme:light;font-family:'Segoe UI','Helvetica Neue',Arial,sans-serif;
  width:794px;min-height:1123px;box-sizing:border-box;
  /* The preview frame is a flex container: the page must never shrink below A4. */
  display:block;flex:0 0 auto;
}
.playful-student-report *{box-sizing:border-box;margin:0;padding:0}
.playful-student-report p,.playful-student-report h1,.playful-student-report h3,.playful-student-report dl,.playful-student-report dt,.playful-student-report dd,.playful-student-report ul,.playful-student-report li{margin:0}
.playful-student-report ul{list-style:none}

.rp-watermark{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;pointer-events:none;z-index:0}
.rp-watermark span{
  user-select:none;text-align:center;font-weight:600;text-transform:uppercase;
  color:#0f172a;opacity:.045;font-size:54px;letter-spacing:.16em;line-height:1.15;
  max-width:92%;transform:rotate(-45deg);transform-origin:center;white-space:normal;
}
.rp-spine{position:absolute;left:0;top:0;height:100%;width:7px;z-index:1}
.rp-body{position:relative;display:flex;min-height:100%;flex-direction:column;z-index:2}

.rp-header{padding:32px 40px 20px}
.rp-header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.rp-brand{display:flex;min-width:0;align-items:center;gap:14px}
.rp-logo{height:48px;width:48px;flex-shrink:0;object-fit:contain}
.rp-logo-fallback{display:flex;align-items:center;justify-content:center;border-radius:8px;font-size:14px;font-weight:600;color:#fff}
.rp-brand-text{min-width:0}
.rp-school{font-size:15px;font-weight:600;line-height:1.25;color:#0f172a}
.rp-subtitle{margin-top:4px;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;color:#64748b}
.rp-header-meta{flex-shrink:0;text-align:right}
.rp-parent-copy{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.18em;color:#94a3b8}
.rp-header-date{margin-top:4px;font-size:11px;font-weight:500;color:#334155}
.rp-title-block{margin-top:28px;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;padding:16px 0}
.rp-title{font-size:25px;font-weight:600;line-height:1.25;color:#020617;letter-spacing:-.02em}
.rp-title-note{margin-top:4px;font-size:11px;color:#64748b}

.rp-main{flex:1;padding:0 40px}
.rp-student-card{border:1px solid #e2e8f0;border-radius:12px;background:rgba(255,255,255,.88);padding:16px;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.rp-student-row{display:flex;gap:20px}
.rp-avatar{height:82px;width:82px;flex-shrink:0;border-radius:8px;object-fit:cover;box-shadow:0 0 0 1px #e2e8f0}
.rp-avatar-initials{display:flex;align-items:center;justify-content:center;background:#dbeafe;color:#1d4ed8;font-size:18px;font-weight:600}
.rp-student-info{min-width:0;flex:1}
.rp-student-eyebrow{font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:.16em;color:#94a3b8}
.rp-student-name{margin-top:4px;font-size:20px;font-weight:600;line-height:1.25;color:#020617}
.rp-info-grid{margin-top:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:12px}
.rp-info-label{font-size:9px;font-weight:500;text-transform:uppercase;letter-spacing:.12em;color:#94a3b8}
.rp-info-value{margin-top:2px;font-size:11.5px;font-weight:500;line-height:1.375;color:#0f172a}

.rp-sections{margin-top:20px;display:flex;flex-direction:column;gap:16px}
.rp-section{break-inside:avoid;page-break-inside:avoid}
.rp-section-head{margin-bottom:10px;display:flex;align-items:center;gap:8px}
.rp-section-mark{height:11px;width:3px;border-radius:999px;display:inline-block}
.rp-section-title{font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.16em;color:#334155}
.rp-card{border:1px solid #e2e8f0;border-radius:8px;background:rgba(255,255,255,.82);padding:12px 16px;box-shadow:0 1px 0 rgba(15,23,42,.03)}

.rp-blocks{display:flex;flex-direction:column;gap:8px}
.rp-paragraph{font-size:11.5px;line-height:1.65;color:#1e293b}
.rp-empty{font-size:12px;color:#94a3b8}
.rp-skills{display:flex;flex-direction:column;gap:6px}
.rp-skills-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px;row-gap:6px}
.rp-skill{display:flex;gap:8px;font-size:11.5px;line-height:1.55;color:#1e293b}
.rp-bullet{margin-top:7px;height:4px;width:4px;flex-shrink:0;border-radius:999px;display:inline-block}
.rp-skill-text{min-width:0}
.rp-chip{display:inline-block;background-color:#f97316;color:#fff;border-radius:999px;padding:0 7px;margin:0 1px;font-weight:650;font-size:.92em;line-height:1.55;white-space:nowrap;vertical-align:baseline}

.rp-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:1px solid #e2e8f0;border-radius:8px;background:rgba(255,255,255,.82);padding:12px}
.rp-media-cell{overflow:hidden;border-radius:6px;border:1px solid #f1f5f9}
.rp-media-img{aspect-ratio:16/9;width:100%;object-fit:cover;display:block}
.rp-media-video{display:flex;aspect-ratio:16/9;align-items:center;justify-content:center;background:#f1f5f9;font-size:9px;font-weight:500;color:#64748b}
.rp-media-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:4px 6px;font-size:8px;color:#64748b}

.rp-project-title{font-size:12px;font-weight:600;color:#0f172a}
.rp-project-kind{margin-top:2px;font-size:9px;text-transform:uppercase;letter-spacing:.025em;color:#94a3b8}
.rp-project-desc{margin-top:8px;font-size:11px;line-height:1.625;color:#334155}
.rp-project-link{margin-top:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#64748b}
.rp-project-files{margin-top:8px;display:flex;flex-direction:column;gap:2px}
.rp-project-files li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#475569}

.rp-footer{margin-top:24px;padding:16px 40px 28px}
.rp-footer-inner{border-top:1px solid #e2e8f0;padding-top:16px}
.rp-footer-grid{display:grid;grid-template-columns:auto 1fr auto;align-items:start;gap:20px}
.rp-qr{flex-shrink:0;border:1px solid #e2e8f0;border-radius:6px;background:#fff;padding:6px}
.rp-qr img{height:56px;width:56px;object-fit:contain;display:block}
.rp-footer-mid{min-width:0}
.rp-footer-eyebrow{font-size:8.5px;font-weight:600;text-transform:uppercase;letter-spacing:.18em;color:#94a3b8}
.rp-course-chips{margin-top:8px;display:flex;flex-wrap:wrap;gap:6px}
.rp-course-chip{border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;padding:4px 10px;font-size:9px;font-weight:500;color:#334155}
.rp-contact{margin-top:8px;font-size:9.5px;line-height:1.625;color:#475569}
.rp-contact-phone{font-weight:500;color:#334155}
.rp-contact-address{margin-top:2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rp-signature{width:150px;flex-shrink:0;border-top:1px solid #94a3b8;padding-top:8px;text-align:right}
.rp-signature-label{font-size:8px;font-weight:500;text-transform:uppercase;letter-spacing:.16em;color:#64748b}
.rp-signature-name{margin-top:4px;font-size:11px;font-weight:600;color:#0f172a}
.rp-footer-note{margin-top:16px;border-top:1px solid #f1f5f9;padding-top:8px;text-align:center;font-size:9px;letter-spacing:.025em;color:#94a3b8}

/* Session Reports list rows — same layout as the Skolumos CRM panel. */
.rp-list{display:flex;flex-direction:column;gap:6px}
.rp-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border:1px solid var(--line,#e5e7eb);border-radius:8px;padding:8px}
.rp-row-main{min-width:0;flex:1}
.rp-row-date{font-size:12px;font-weight:600}
.rp-row-meta{font-size:11px;opacity:.75}
.rp-row-snippet{margin-top:2px;font-size:10px;opacity:.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rp-row button{flex-shrink:0}
.rp-count{font-size:11px;font-weight:600;opacity:.8}
/* Skolumos shows the A4 page unscaled in an 860px modal (StudentReportPrintModal.tsx:94). */
.rp-print-dialog{width:min(884px,96vw);padding:20px}
.rp-print-dialog .dialog-body{padding:16px 0}
.rp-preview-frame{overflow:auto;background:#e2e8f0;padding:12px;display:flex;justify-content:center}
/* Download report, in the attendance card legend next to Remove student. */
.ops-att-report-pdf{margin-left:8px;padding:2px 8px;font-size:12px}
/* Admin edits to the printed report (date, time, instructor, program). */
.rp-edit{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin-bottom:12px;background:var(--surface-2)}
.rp-edit summary{cursor:pointer;font-weight:600;font-size:14px}
.rp-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.rp-edit-grid label{margin:0;font-size:13px}
.rp-edit-wide{grid-column:1/-1}
.rp-edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}
@media(max-width:700px){.rp-edit-grid{grid-template-columns:1fr 1fr}}
