/* reports.css — student study progress reports: the teacher editor (Students tab) and the student "My progress" tab.
   The report itself reuses the reward-style classes of check.css (rp-*). */
.rep-intro { color: var(--muted); font-size: 14px; margin: -6px 0 16px; line-height: 1.55; }
.rep-count { color: var(--muted); font-weight: 400; font-size: 14px; }
.rep-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.rep-form { min-width: 0; }
.rep-form select, .rep-form input[type=text], .rep-form textarea { width: 100%; }
.rep-empty { min-height: 320px; display: flex; flex-direction: column; justify-content: center; padding: 8px 6px; }
.rep-empty h2 { margin-bottom: 14px; }
.rep-out { min-width: 0; }
/* the "How it works" steps: every step is one long line, so the rows must take the full width (they would otherwise
   shrink to the width of a single character) */
.rep-empty .ck-steps { grid-template-columns: minmax(0, 1fr); }
.rep-empty .ck-steps li { width: 100%; }
.rep-empty .ck-steps li div { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }

/* the teacher's remarks under the report */
.rep-edit { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: #fffaf0; border: 1px solid #f6e3bd; }
.rep-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 14px; line-height: 1.5; color: #6b4b00; font-weight: 600; }
.rep-remark-label { display: block; font: 800 17px var(--font-display); margin-bottom: 6px; }
.rep-edit textarea { width: 100%; min-height: 120px; font-size: 15px; line-height: 1.55; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; resize: vertical; }
.rep-edit textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rep-edit-foot { text-align: right; font-size: 12px; color: var(--muted); margin-top: 4px; }
.rep-edit .actions { margin-top: 12px; }
.pr-empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
table.list.rep-table td { vertical-align: top; }
table.list.rep-table tr.open td { background: #f4f7ff; }
.pr-acts { white-space: nowrap; }
.pr-grade { display: inline-block; padding: 1px 8px; border-radius: 8px; background: var(--navy); color: #fff; font: 800 12px/1.6 var(--font-display); }

/* inside the report */
.pr-chip-draft { background: #fff7e6; border-color: #f6e3bd; color: #6b4b00; }
.pr-remark-sec { padding: 14px 18px; border-radius: 16px; background: #fffaf0; border: 1px solid #f6e3bd; }
.pr-remark-sec h3 { margin-bottom: 8px; }
.pr-remark { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.pr-trend { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #3a4470; }
.pr-ev { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* student: summary tiles + progress line */
.pr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 18px; }
.pr-tile { padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #f6f8ff, #f3fbfa); border: 1px solid var(--border); }
.pr-tile b { display: block; font: 800 28px/1.1 var(--font-display); }
.pr-tile span { display: block; font-size: 13px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.pr-tile small { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--accent-deep); }
.pr-chart { margin: 6px 0 4px; }
.pr-svg { width: 100%; height: auto; display: block; }
.pr-grid { stroke: #e6e9f2; stroke-width: 1; }
.pr-ax { font-size: 11px; fill: var(--muted); font-family: var(--font-body); }
.pr-legend { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; font-size: 12.5px; color: var(--muted); font-weight: 700; margin-top: 4px; }
.pr-legend i { display: inline-block; width: 20px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.pr-sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
#prDetail { margin-top: 14px; }

/* student: progress of the class */
.pr-scroll { overflow-x: auto; }
table.pr-class-table { min-width: 640px; }
.pr-th-short { display: none; }
.pr-coin { font-weight: 400; font-style: normal; }
/* phones: the class table fits the screen without scrolling; the two widest columns step aside (the average and the trend stay) */
@media (max-width: 600px) {
  table.pr-class-table, table.pr-class-table tbody { min-width: 0; }
  .pr-th-full { display: none; }
  .pr-th-short { display: inline; }
  .pr-class-table th:nth-child(5), .pr-class-table td:nth-child(5), .pr-class-table th:nth-child(7), .pr-class-table td:nth-child(7) { display: none; }
  /* "table.pr-class-table" out-ranks the theme's "table.list th / td" rules */
  table.pr-class-table th { padding: 7px 4px; font-size: 10.5px; letter-spacing: 0; white-space: nowrap; }
  table.pr-class-table td { padding: 7px 4px; font-size: 12px; letter-spacing: 0; }
  table.pr-class-table td:nth-child(3) { font-size: 12px; letter-spacing: 0; }
  table.pr-class-table td:nth-child(2) b { font-size: 13px; }
  table.pr-class-table td:last-child { white-space: nowrap; }
  .pr-class-table .badge { display: none; }   /* the student's own row stays highlighted and bold */
  .pr-coin { font-size: 11px; }
}
.pr-trend-improving { color: var(--green); font-weight: 700; white-space: nowrap; }
.pr-trend-declining { color: var(--red); font-weight: 700; white-space: nowrap; }
.pr-trend-steady, .pr-trend-none { color: var(--muted); font-weight: 600; white-space: nowrap; }

@media (max-width: 940px) {
  .rep-grid { grid-template-columns: 1fr; }
  .rep-empty { min-height: 0; }
}
@media (max-width: 560px) {
  .pr-tiles { grid-template-columns: repeat(2, 1fr); }
  .pr-tile b { font-size: 24px; }
  .rep-edit { padding: 14px; }
}
