/* E-1 Part 2b: Teacher 뷰 전용 스타일.
 *  - 강사 홈 / 내 시간표 / 내 담당 학생 / 내 수업일지 공용
 *  - 기존 dash/stat/list/timetable 스타일 재사용하고 Teacher-specific 보강만 */

/* =========================================================================
   Teacher Home
   ========================================================================= */
.th-card {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 360px;
}
.th-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--divider);
}
.th-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-primary);
  margin: 0;
}

.th-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.th-row {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
}
.th-row:hover { border-color: var(--slate-300); }
.th-time {
  font-weight: 600;
  color: var(--fg-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.th-name { font-weight: 500; color: var(--fg-primary); }
.th-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg-secondary);
  font-size: 12px;
}
.th-meta i { width: 12px; height: 12px; }
.th-pending-pill {
  margin-left: 6px;
  padding: 2px 7px;
  background: #FEE2E2;
  color: #B91C1C;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.th-att-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.th-att-btn:hover { background: var(--accent-hover); }
.th-att-btn i { width: 12px; height: 12px; }

.th-empty {
  padding: 28px 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
}

.th-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.th-log-row {
  display: grid;
  grid-template-columns: 90px 160px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
  cursor: pointer;
}
.th-log-row:last-child { border-bottom: 0; }
.th-log-row:hover { background: var(--color-bg-subtle); }
.th-log-date { color: var(--fg-secondary); font-variant-numeric: tabular-nums; }
.th-log-class { font-weight: 500; color: var(--fg-primary); }
.th-log-summary { color: var(--fg-secondary); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* =========================================================================
   Teacher Session Logs (B 패턴)
   ========================================================================= */
.tsl-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tsl-filters .f-label {
  font-size: 12px;
  color: var(--fg-secondary);
  font-weight: 500;
}
.tsl-kpi {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px;
  background: var(--color-brand-primary-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.tsl-kpi-label { font-size: 13px; color: var(--fg-secondary); }
.tsl-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tsl-kpi-sub { font-size: 12px; color: var(--fg-muted); }

.tsl-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.tsl-row {
  display: grid;
  grid-template-columns: 110px 240px 120px 1fr 120px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  font-size: 13px;
}
.tsl-row:last-child { border-bottom: 0; }
.tsl-row:hover { background: var(--color-bg-subtle); }
.tsl-row.is-unwritten { background: #FEF9F5; }

.tsl-date { font-variant-numeric: tabular-nums; color: var(--fg-secondary); }
.tsl-class { font-weight: 500; color: var(--fg-primary); }
.tsl-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}
.tsl-pill-written { background: #CCFBF1; color: #0F766E; }
.tsl-pill-unwritten { background: #FEE2E2; color: #B91C1C; }
.tsl-summary {
  color: var(--fg-secondary);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tsl-action {
  justify-self: end;
  display: inline-flex;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  color: var(--fg-primary);
}
.tsl-action:hover { border-color: var(--accent); color: var(--accent); }
.tsl-action.is-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tsl-action.is-primary:hover { background: var(--accent-hover); color: #fff; }

.tsl-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--fg-muted);
  font-size: 13px;
}

/* =========================================================================
   Teacher Timetable — Admin 과 동일한 레이아웃 재사용,
   KPI 한 줄로 축소 / 강사 필터 드롭다운 숨김만 처리
   ========================================================================= */
.tt-teacher-note {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 8px;
}

@media (max-width: 1024px) {
  .th-row { grid-template-columns: 90px 1fr auto; }
  .th-att-btn { grid-column: 1 / -1; justify-self: end; }
  .th-log-row { grid-template-columns: 80px 1fr; }
  .th-log-summary { grid-column: 1 / -1; }
  .tsl-row { grid-template-columns: 90px 1fr 100px; }
  .tsl-summary, .tsl-action { grid-column: 1 / -1; }
  .tsl-action { justify-self: end; }
}
