/* ═══════════════════════════════════════════════════════════════════
   assessment-report-card.css — thẻ "Kết quả đợt đánh giá" (M7/WS-G).
   Dùng token của theme.css, không hard-code màu. Xem assessment-report-card.js.
   ═══════════════════════════════════════════════════════════════════ */

.lgar-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 16px;
}
.lgar-title { font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 6px; }
.lgar-asg-title { font-weight: 600; color: var(--text); font-size: .95rem; }
.lgar-period { color: var(--dim); font-size: .82rem; margin: 4px 0 10px; }

.lgar-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.lgar-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surf3); border: 1px solid var(--border2);
  border-radius: 99px; padding: 5px 10px; font-size: .82rem;
}
.lgar-chip-skill { color: var(--dim); }
.lgar-chip-cefr { color: var(--text); font-weight: 700; }

.lgar-btn {
  appearance: none; cursor: pointer;
  background: var(--grad); color: #fff; border: 0;
  border-radius: 99px; padding: 9px 16px;
  font: inherit; font-weight: 600; font-size: .88rem;
  min-height: 40px;
}
.lgar-btn:hover { filter: brightness(1.08); }

/* ── Modal chi tiết 6 trục ─────────────────────────────────────── */
.lgar-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lgar-sheet {
  background: var(--surf); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px;
  max-width: 420px; width: 100%; max-height: 85vh; overflow-y: auto;
}
.lgar-help { color: var(--dim); font-size: .84rem; margin-bottom: 14px; }
.lgar-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.lgar-cell {
  background: var(--surf3); border: 1px solid var(--border2);
  border-radius: calc(var(--r) - 4px); padding: 10px; text-align: center;
}
.lgar-cell-empty { opacity: .5; }
.lgar-cell-skill { color: var(--dim); font-size: .74rem; margin-bottom: 4px; }
.lgar-cell-cefr { color: var(--text); font-weight: 800; font-size: 1.1rem; }

/* Audit M7 M-1: dòng so mốc trước "B1 → B2" trong ô modal */
.lgar-cell-prev { font-size: .72rem; color: var(--green,#4BC98A); margin-top: 2px; font-weight: 700; }

/* levels_28: nhãn đợt thi rút gọn ("3 bài Task 1", "Part 2") — chip + ô modal */
.lgar-chip-fmt { color: var(--dim); font-size: .74rem; }
.lgar-cell-fmt { color: var(--dim); font-size: .7rem; margin-top: 2px; }

/* Hotfix M0 (01/10): chi tiết bài làm Đọc/Nghe + nhận xét Nói trong modal */
.lgar-detail { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.lgar-detail:empty { display: none; }
.lgar-rv-row {
  background: var(--surf3); border: 1px solid var(--border2);
  border-radius: calc(var(--r) - 4px); padding: 10px 12px;
}
.lgar-rv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lgar-rv-skill { color: var(--text); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; }
.lgar-rv-score { color: var(--dim); font-size: .82rem; }
.lgar-rv-title { color: var(--dim); font-size: .8rem; margin-top: 2px; }
.lgar-rv-link {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 8px;
  min-height: 36px; color: var(--accent, #7C5CBF); font-weight: 600; font-size: .86rem;
  text-decoration: none;
}
.lgar-rv-link:hover { text-decoration: underline; }
.lgar-rv-none { color: var(--dim); font-size: .8rem; margin-top: 6px; }
.lgar-rv-crit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lgar-rv-notes {
  color: var(--text); font-size: .84rem; line-height: 1.5; margin-top: 8px;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
