/* ═══════════ Relatório de Diários (Professor) ═══════════ */

.dr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.dr-subject-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dr-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.dr-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--fg);
}

.dr-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dr-stat {
  background: var(--bg3);
  border-radius: 7px;
  padding: 8px 6px;
  text-align: center;
}

.dr-stat-n {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.dr-stat-l {
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 700;
}

.dr-stat-warn .dr-stat-n {
  color: var(--orange);
}

.dr-top-students {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dr-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.dr-chip small {
  font-weight: 400;
  color: var(--muted2);
}

.dr-diff-preview {
  background: rgba(251, 146, 60, 0.06);
  border-left: 2px solid var(--orange);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.74rem;
  line-height: 1.5;
}

.dr-diff-preview strong {
  color: var(--orange);
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.dr-diff-preview ul {
  margin: 0;
  padding-left: 16px;
}

.dr-diff-preview li {
  margin-bottom: 3px;
  color: var(--fg);
}

.dr-diff-preview em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

/* ── Modal: detalhes ── */
.dr-entry-row {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--teal);
  border-radius: 7px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.dr-entry-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.dr-date {
  font-size: 0.7rem;
  color: var(--muted2);
  font-weight: 700;
}

.dr-block {
  font-size: 0.78rem;
  color: var(--fg);
  line-height: 1.5;
  padding: 6px 9px;
  border-radius: 5px;
  background: var(--bg);
  margin-top: 4px;
}

.dr-block strong {
  color: var(--gold);
  font-weight: 800;
  margin-right: 4px;
}

.dr-block.dr-learned { border-left: 2px solid var(--green); }
.dr-block.dr-diff    { border-left: 2px solid var(--orange); background: rgba(251, 146, 60, 0.05); }

/* ── Modal: gerar exercícios — lista de alunos ── */
.dr-ex-stud-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 5px;
  font-size: 0.78rem;
  cursor: pointer;
}

.dr-ex-stud-row:hover {
  background: var(--bg3);
}

.dr-ex-stud-row input[type=checkbox] {
  accent-color: var(--teal);
  width: 14px;
  height: 14px;
}

.dr-ex-stud-row span {
  flex: 1;
}

/* ── Modal: gerar exercícios — preview ── */
.dr-preview {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 12px 14px;
}

.dr-preview-hd {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.dr-preview-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 4px;
}

.dr-preview-intro {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 10px;
  line-height: 1.4;
}

.dr-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: ex;
}

.dr-preview-item {
  background: var(--bg2);
  border-left: 2px solid var(--teal);
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 8px;
  counter-increment: ex;
}

.dr-preview-item::before {
  content: counter(ex) ". ";
  font-weight: 900;
  color: var(--teal);
  margin-right: 4px;
}

.dr-preview-type {
  display: inline-block;
  margin-bottom: 4px;
}

.dr-preview-stmt {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 6px;
  font-weight: 600;
}

.dr-preview-alts {
  margin: 4px 0 6px 0;
  padding-left: 16px;
  list-style: none;
}

.dr-preview-alts li {
  font-size: 0.76rem;
  padding: 2px 0;
  color: var(--muted);
}

.dr-preview-alts li.dr-correct {
  color: var(--green);
  font-weight: 800;
}

.dr-preview-vf {
  font-size: 0.76rem;
  margin: 4px 0;
  color: var(--muted);
}

.dr-preview-expl {
  font-size: 0.72rem;
  color: var(--muted2);
  background: var(--bg);
  border-radius: 5px;
  padding: 5px 8px;
  margin-top: 4px;
  font-style: italic;
}

@media (max-width: 600px) {
  .dr-grid {
    grid-template-columns: 1fr;
  }
  .dr-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .dr-stat-n {
    font-size: 1rem;
  }
}
