/*
 * steno-roster.css — 담당 학생 목록 · 학생 상세
 *
 * 배지에 색을 거의 쓰지 않는다. 학생마다 다른 색이 붙으면 그 색이 곧
 * 등급표가 되고, 선생님이 숫자를 열어 보기 전에 색으로 판단하게 된다.
 * 색은 '아직 할 일이 남았다'(피드백)에만 쓴다.
 */

.steno-roster-table {
  width: 100%;
  min-width: 1180px;
}

.steno-roster-table .numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------------------------------------------------------
 * 제출 상태
 *
 * 셋 다 같은 무채색이다. '냈다/안 냈다'는 사실이지 잘잘못이 아니다.
 * 다만 '제출 기록 없음'은 한 번도 없었다는 뜻이라 조금 더 흐리게 둔다.
 * ------------------------------------------------------------------ */

.steno-submit-state {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid #e0e4ea;
  border-radius: 999px;
  background: #f6f8fa;
  font-size: 12px;
  color: #4a5262;
  white-space: nowrap;
}

.steno-submit-state.is-idle {
  border-style: dashed;
}

.steno-submit-state.is-never {
  color: #8a92a0;
  border-style: dashed;
}

/* 연속 내림. 값이 아니라 센 횟수이므로 작게, 조용히 둔다. */
.steno-roster-drops {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8a6d1f;
  white-space: nowrap;
}

/* ------------------------------------------------------------------
 * 작은 꺾은선
 * ------------------------------------------------------------------ */

.steno-spark {
  display: block;
  width: 110px;
  height: 30px;
  overflow: visible;
}

.steno-spark path {
  fill: none;
  stroke: #2f6bd8;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steno-spark-empty {
  font-size: 11px;
  color: #a2a9b5;
}

/* ------------------------------------------------------------------
 * 학생 상세 머리
 * ------------------------------------------------------------------ */

.steno-student-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.steno-student-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.steno-student-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b7484;
}

.steno-student-figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px 18px;
  margin: 0;
  flex: 1 1 380px;
}

.steno-student-figures dt {
  font-size: 11px;
  color: #8a92a0;
  margin-bottom: 2px;
}

.steno-student-figures dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2430;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------
 * 정확도 흐름 그래프
 * ------------------------------------------------------------------ */

.steno-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
}

.steno-chart-line {
  fill: none;
  stroke: #2f6bd8;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steno-chart-dot {
  fill: #2f6bd8;
}

.steno-chart-axis {
  stroke: #dfe3ea;
  stroke-width: 1;
}

.steno-chart-label {
  fill: #8a92a0;
  font-size: 11px;
}

/* ------------------------------------------------------------------
 * 태그 세기
 * ------------------------------------------------------------------ */

.steno-issue-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  margin-bottom: 10px;
}

.steno-issue-count {
  font-size: 12px;
  color: #6b7484;
  font-variant-numeric: tabular-nums;
}

.steno-issue-bar {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #eef1f5;
  position: relative;
  overflow: hidden;
}

.steno-issue-bar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ratio, 0%);
  background: #b9c7de;
  border-radius: 999px;
}

/* ------------------------------------------------------------------
 * 메모 쓰는 칸
 * ------------------------------------------------------------------ */

#detailNoteInput {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #d5dae2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

#detailNoteSaveBtn {
  margin: 8px 0 14px;
}

@media (max-width: 900px) {
  .steno-student-head { flex-direction: column; align-items: flex-start; }
}
