h1 { font-family: Arial, Helvetica, sans-serif; }

/* number input 화살표(스피너) 전체 제거 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
input[type=number] { -moz-appearance: textfield !important; appearance: textfield !important; }

/* ===== STUDENT PROFILE — B-Plan Redesign ===== */
.sp-wrapper {
  display: flex;
  height: calc(100vh - 110px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  border: 1px solid #e2e8f0;
}

/* ── Left Panel ────────────────────────────── */
.sp-left {
  width: 250px;
  min-width: 200px;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  flex-shrink: 0;
}
.sp-left-header {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
}
.sp-left-title {
  font-size: 12px;
  font-weight: 700;
  color: #4f46e5;
  padding: 2px 0 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-search-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  outline: none;
  box-sizing: border-box;
  background: #f8fafc;
}
.sp-search-input:focus { border-color: #a5b4fc; background: #fff; }
.sp-semester-sel {
  width: 100%;
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 12px;
  background: #fff;
}
.sp-student-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
}
.sp-list-item {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 2px;
  transition: background .1s;
}
.sp-list-item:hover { background: #f0f4ff; }
.sp-list-item.active { background: #eef2ff; border-color: #c7d2fe; }
.sp-list-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.sp-list-meta { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.sp-list-empty { color: #94a3b8; font-size: 12px; text-align: center; padding: 24px 10px; }

/* ── Right Panel ───────────────────────────── */
.sp-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.sp-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 14px;
  color: #94a3b8;
  font-size: 14px;
}

/* ── Profile Header ────────────────────────── */
.sp-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}
.sp-profile-left { display: flex; align-items: center; gap: 14px; }
.sp-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: -1px;
}
.sp-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-name { font-size: 20px; font-weight: 700; color: #1e293b; }
.sp-sid { font-family: monospace; font-size: 11px; color: #64748b; background: #f1f5f9; padding: 2px 7px; border-radius: 4px; }
.sp-info-chips { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #64748b; margin-top: 4px; }
.sp-profile-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }

/* ── Memo Banner ───────────────────────────── */
.sp-memo-banner {
  background: #fef9c3;
  border-bottom: 1px solid #fef08a;
  padding: 7px 18px;
  font-size: 12px;
  color: #713f12;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Tab Bar ───────────────────────────────── */
.sp-tab-bar {
  display: flex;
  border-bottom: 2px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
  overflow-x: auto;
  padding: 0 14px;
}
.sp-tab-btn {
  padding: 10px 15px;
  border: none;
  background: none;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  font-weight: 500;
  transition: color .15s;
}
.sp-tab-btn:hover { color: #4f46e5; }
.sp-tab-btn.sp-tab-active { color: #4f46e5; border-bottom-color: #4f46e5; font-weight: 700; }

/* ── Tab Pane ──────────────────────────────── */
.sp-tab-panes { flex: 1; overflow-y: auto; padding: 16px 18px; }

/* ── Basic Info Tab ────────────────────────── */
.sp-basic-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px) { .sp-basic-grid { grid-template-columns: 1fr; } }
.sp-section-box {
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}
.sp-section-head {
  font-size: 11px;
  font-weight: 700;
  color: #4f46e5;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sp-field-list { padding: 4px 0; }
.sp-field-row {
  display: flex;
  align-items: flex-start;
  padding: 6px 12px;
  font-size: 13px;
  border-bottom: 1px solid #f1f5f9;
}
.sp-field-row:last-child { border-bottom: none; }
.sp-field-label { width: 68px; color: #94a3b8; font-size: 11px; flex-shrink: 0; padding-top: 1px; }
.sp-field-value { flex: 1; color: #1e293b; font-weight: 500; word-break: break-all; }

/* Enrollment table inside basic tab */
.sp-enroll-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.sp-enroll-tbl th { padding: 6px 10px; font-size: 11px; font-weight: 600; color: #64748b; background: #f8fafc; border-bottom: 2px solid #e2e8f0; text-align: left; white-space: nowrap; }
.sp-enroll-tbl td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; }
.sp-enroll-tbl tr:last-child td { border-bottom: none; }

/* Stamp summary mini cards */
.sp-stamp-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 10px 12px 12px; }
.sp-mini-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 7px; padding: 10px 6px; text-align: center; }
.sp-mini-label { font-size: 10px; color: #94a3b8; margin-bottom: 3px; }
.sp-mini-value { font-size: 20px; font-weight: 700; }

/* Status badge helpers */
.badge-active   { background: #dcfce7; color: #16a34a; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-inactive { background: #fee2e2; color: #dc2626; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.badge-reserve  { background: #fef9c3; color: #a16207; padding: 2px 9px; border-radius: 10px; font-size: 11px; font-weight: 700; }
/* Entrance exam detail tabs — pill style with per-tab color */
.ee-tab-btn {
  background: none;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
/* 성적현황 — 인디고 */
.ee-tab-btn[data-tab="scores"]           { background: #e0e7ff; color: #3730a3; }
.ee-tab-btn[data-tab="scores"]:hover     { background: #c7d2fe; color: #3730a3; }
.ee-tab-btn[data-tab="scores"].active    { background: #4338ca; color: #fff; }
/* 외부생 명단 — 에메랄드 */
.ee-tab-btn[data-tab="ext-list"]         { background: #d1fae5; color: #065f46; }
.ee-tab-btn[data-tab="ext-list"]:hover   { background: #a7f3d0; color: #065f46; }
.ee-tab-btn[data-tab="ext-list"].active  { background: #059669; color: #fff; }
/* 매핑 설정 — 주황 */
.ee-tab-btn[data-tab="mapping"]          { background: #ffedd5; color: #9a3412; }
.ee-tab-btn[data-tab="mapping"]:hover    { background: #fed7aa; color: #9a3412; }
.ee-tab-btn[data-tab="mapping"].active   { background: #ea580c; color: #fff; }
/* 외부생 답안 — 보라 */
.ee-tab-btn[data-tab="ext-answer"]       { background: #ede9fe; color: #5b21b6; }
.ee-tab-btn[data-tab="ext-answer"]:hover { background: #ddd6fe; color: #5b21b6; }
.ee-tab-btn[data-tab="ext-answer"].active { background: #7c3aed; color: #fff; }
/* 상담 설정 — 핑크 */
.ee-tab-btn[data-tab="consult-config"]       { background: #fce7f3; color: #9d174d; }
.ee-tab-btn[data-tab="consult-config"]:hover { background: #fbcfe8; color: #9d174d; }
.ee-tab-btn[data-tab="consult-config"].active { background: #db2777; color: #fff; }
.ee-tab-btn[data-tab="assign-rules"]         { background: #ecfdf5; color: #065f46; }
.ee-tab-btn[data-tab="assign-rules"]:hover   { background: #d1fae5; color: #065f46; }
.ee-tab-btn[data-tab="assign-rules"].active  { background: #059669; color: #fff; }

/* Mock exam detail tabs — pill style */
.me-tab-btn {
  background: none;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.me-tab-btn:hover { background: #e2e8f0; color: #1e293b; }
.me-tab-btn.active { background: #4A2A8A; color: #fff; }
.me-tab-btn.active:hover { background: #5b3aa0; }
