/* ==================== 섹션 구분선 ==================== */
.section-divider {
  margin: 32px 0 16px;
}

.divider-line {
  border: none;
  border-top: 1px solid #dee2e6;
  margin-bottom: 14px;
}

.divider-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #212529;
  margin: 0 0 4px;
}

.divider-description {
  font-size: 0.82rem;
  color: #868e96;
  margin: 0;
}

/* ==================== 스피너 ==================== */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================== 비밀번호 게이트 ==================== */
.gate-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  gap: 16px;
}

.gate-icon {
  font-size: 3rem;
}

.gate-title {
  font-size: clamp(1.2rem, calc(1rem + 0.8vw), 1.5rem);
  color: #343a40;
  font-weight: 700;
}

.gate-description {
  color: #868e96;
  font-size: 0.95rem;
}

.gate-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.gate-input {
  padding: 10px 16px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-size: 0.95rem;
  width: 240px;
  outline: none;
  transition: border-color 0.2s ease;
}

.gate-input:focus {
  border-color: #4facfe;
}

/* ==================== 알림 배너 ==================== */
.alert-banner {
  background: linear-gradient(135deg, #fff3bf, #ffe066);
  color: #664d03;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  border: 1px solid #ffd43b;
  line-height: 1.6;
}

.alert-banner > strong:first-child {
  font-size: 1rem;
  display: block;
  margin-bottom: 8px;
}

.alert-list {
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.alert-list li {
  margin-bottom: 4px;
}

.alert-sub-item {
  list-style: none;
  font-size: 0.8rem;
  color: #8b6914;
  margin-top: -2px;
}

.running-text {
  color: #e67700;
  font-weight: 700;
}

/* ==================== 탭 네비게이션 ==================== */
.cp-tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0;
}

.cp-tab-button {
  padding: 12px 20px;
  border: none;
  background: none;
  color: #868e96;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cp-tab-button:hover {
  color: #495057;
}

.cp-tab-button.active {
  color: #0b7285;
  border-bottom-color: #0b7285;
}

/* ==================== 탭 컨텐츠 ==================== */
.cp-tab-content {
  display: none;
}

.cp-tab-content.active {
  display: block;
}

/* ==================== 패널 설명 ==================== */
.panel-description {
  color: #868e96;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ==================== CSV 업로드 영역 ==================== */
.upload-area {
  margin-bottom: 20px;
}

.upload-zone {
  border: 2px dashed #ced4da;
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.upload-zone:hover {
  border-color: #4facfe;
  background: #f8f9ff;
}

.upload-zone.dragover {
  border-color: #4facfe;
  background: #e7f5ff;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.upload-text {
  color: #495057;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.upload-hint {
  color: #adb5bd;
  font-size: 0.8rem;
}

.sample-download-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1971c2;
  background: #e7f5ff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.sample-download-link:hover {
  background: #d0ebff;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #e7f5ff;
  border-radius: 8px;
  margin-top: 10px;
}

.file-name {
  font-size: 0.9rem;
  color: #1971c2;
  font-weight: 600;
  flex: 1;
}

.file-remove-btn {
  background: none;
  border: none;
  color: #adb5bd;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.file-remove-btn:hover {
  color: #e03131;
  background: #fff5f5;
}

/* 업로드 차단 오버레이 */
.upload-block-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e03131;
  z-index: 10;
  pointer-events: none;
}

/* ==================== CSV 미리보기 ==================== */
.csv-preview {
  margin-bottom: 20px;
}

.preview-title {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 10px;
  font-weight: 600;
}

.preview-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e9ecef;
  border-radius: 8px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.preview-table th,
.preview-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #f1f3f5;
  white-space: nowrap;
}

.preview-table th {
  background: #f8f9fa;
  color: #495057;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.preview-table tbody tr:hover {
  background: #f8f9fa;
}

/* ==================== 실행 버튼 영역 ==================== */
.action-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.run-button.danger {
  background: linear-gradient(135deg, #e03131, #c92a2a);
  box-shadow: 0 6px 18px rgba(224, 49, 49, 0.25);
}

.run-button.danger:hover {
  box-shadow: 0 8px 20px rgba(224, 49, 49, 0.35);
}

.confirm-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  user-select: none;
}

.confirm-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2f9e44;
  cursor: pointer;
}

.confirm-check input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

/* ==================== 페이지네이션 ==================== */
.paginator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
}

.paginator-btn {
  padding: 8px 16px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: #495057;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.paginator-btn:hover:not(:disabled) {
  background: #e9ecef;
  border-color: #adb5bd;
}

.paginator-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.paginator-info {
  font-size: 1rem;
  font-weight: 700;
  color: #343a40;
  min-width: 60px;
  text-align: center;
}

/* ==================== 행 정보 카드 ==================== */
.row-info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row-info-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.row-badge.grade {
  background: #dbe4ff;
  color: #364fc7;
}

.row-badge.subject {
  background: #d3f9d8;
  color: #2b8a3e;
}

.row-badge.type {
  background: #fff3bf;
  color: #e67700;
}

.row-info-curriculum {
  display: flex;
  align-items: center;
  gap: 8px;
}

.row-curriculum-label {
  font-size: 0.85rem;
  color: #868e96;
  flex-shrink: 0;
}

.row-curriculum-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #343a40;
}

.row-config-status {
  display: flex;
  align-items: center;
}

.row-status-indicator {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.row-status-indicator.not-configured {
  background: #fff3bf;
  color: #e67700;
}

.row-status-indicator.configured {
  background: #d3f9d8;
  color: #2b8a3e;
}

/* ==================== Step 진행 표시 ==================== */
.step-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-progress-text {
  font-size: 0.85rem;
  color: #495057;
}

/* ==================== DC/SM 선택 트리 ==================== */
.select-tree {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.select-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f1f3f5;
  font-size: 0.9rem;
  font-weight: 600;
  color: #495057;
}

.select-tree-warning {
  font-size: 0.8rem;
  color: #e03131;
  font-weight: 700;
}

.select-tree-body {
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
}

/* DC 노드 */
.dc-node {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.dc-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dc-node-header:hover {
  background: #f8f9fa;
}

.dc-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex: 1;
}

.dc-radio input[type='radio'] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #1971c2;
}

/* 선택된 DC 노드 강조 */
.dc-node.selected {
  border-color: #74c0fc;
  background: #e7f5ff;
}

.dc-node.selected > .dc-node-header {
  background: #e7f5ff;
}

.dc-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.dc-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #343a40;
}

.dc-toggle {
  font-size: 0.75rem;
  color: #adb5bd;
  padding: 4px;
  user-select: none;
}

/* SM 아이템 */
.dc-children {
  padding: 4px 14px 10px 40px;
  border-top: 1px solid #f1f3f5;
  background: #fcfcfd;
}

.sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sm-item:hover {
  background: #f1f3f5;
}

.sm-item input[type='checkbox'] {
  width: 14px;
  height: 14px;
  cursor: pointer;
  accent-color: #1971c2;
}

.sm-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sm-title {
  font-size: 0.85rem;
  color: #495057;
  flex: 1;
}

.sm-su-count {
  font-size: 0.75rem;
  color: #adb5bd;
  font-weight: 500;
}

/* ==================== 실행 설정 패널 ==================== */
.exec-settings {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exec-setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.exec-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #343a40;
  min-width: 100px;
  flex-shrink: 0;
}

.exec-label-sub {
  color: #868e96;
  font-size: 0.85rem;
}

.exec-input-small {
  padding: 8px 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.9rem;
  width: 100px;
  outline: none;
  transition: border-color 0.2s ease;
}

.exec-input-small:focus {
  border-color: #4facfe;
}

.exec-input {
  padding: 8px 12px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
  outline: none;
  transition: border-color 0.2s ease;
}

.exec-input:focus {
  border-color: #4facfe;
}

/* 학교 토글 */
.school-toggle {
  display: flex;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}

.toggle-btn {
  padding: 8px 18px;
  border: none;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #868e96;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.toggle-btn:first-child {
  border-right: 1px solid #dee2e6;
}

.toggle-btn.active {
  background: #0b7285;
  color: #fff;
}

.toggle-btn:hover:not(.active) {
  background: #f1f3f5;
}

.school-specific-area {
  flex-direction: column;
  align-items: flex-start;
  padding-left: 112px;
  gap: 6px;
}

.school-specific-area .exec-input {
  width: 100%;
}

/* 그룹 조회 총 뱃지 */
.group-total-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: #d0ebff;
  color: #1864ab;
}

/* 요약 카드 내 그룹 수 칩 */
.group-count-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: auto;
}

.group-count-chip.has-groups {
  background: #d3f9d8;
  color: #2b8a3e;
}

.group-count-chip.no-groups {
  background: #ffe3e3;
  color: #e03131;
}

/* ==================== 요약 리스트 ==================== */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
}

.summary-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.summary-card-num {
  font-weight: 700;
  color: #1971c2;
  min-width: 24px;
}

.summary-card-curriculum {
  font-weight: 600;
  color: #343a40;
  flex: 1;
}

.summary-card-body {
  padding: 12px 16px;
}

.summary-dc {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1971c2;
  margin-bottom: 6px;
}

.summary-sm-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-sm-list li {
  font-size: 0.82rem;
  color: #495057;
  padding: 3px 0 3px 16px;
  position: relative;
}

.summary-sm-list li::before {
  content: '└';
  position: absolute;
  left: 0;
  color: #adb5bd;
}

/* ==================== 경고 모달 ==================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.modal-message {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e03131;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
}

.modal-btn.confirm {
  background: #e03131;
  color: #fff;
}

.modal-btn.confirm:hover {
  background: #c92a2a;
}

.modal-btn.cancel {
  background: #f1f3f5;
  color: #495057;
  border: 1px solid #dee2e6;
}

.modal-btn.cancel:hover {
  background: #e9ecef;
}

/* ==================== 검색 바 (Delete) ==================== */
.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.search-input {
  padding: 10px 16px;
  border: 2px solid #dee2e6;
  border-radius: 10px;
  font-size: 0.95rem;
  flex: 1;
  max-width: 300px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #4facfe;
}

/* ==================== 트리뷰 ==================== */
.tree-container {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 16px;
  background: #fcfcfd;
}

.tree-content {
  font-size: 0.9rem;
}

.tree-node {
  margin-bottom: 4px;
}

.tree-node-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.tree-node-header:hover {
  background: #f1f3f5;
}

.tree-node-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.tree-node-title {
  font-weight: 600;
  color: #343a40;
  flex: 1;
}

.tree-node-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.tree-node-badge.complete {
  background: #d3f9d8;
  color: #2b8a3e;
}

.tree-node-badge.open {
  background: #d0ebff;
  color: #1864ab;
}

.tree-node-badge.closed {
  background: #e9ecef;
  color: #495057;
}

.tree-node-badge.error {
  background: #ffe3e3;
  color: #c92a2a;
}

.tree-node-action {
  font-size: 0.8rem;
  padding: 4px 10px;
  border: 1px solid #ffc9c9;
  background: #fff5f5;
  color: #e03131;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tree-node-action:hover {
  background: #ffe3e3;
}

.tree-children {
  margin-left: 24px;
  border-left: 2px solid #e9ecef;
  padding-left: 12px;
}

.tree-csm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #495057;
}

.tree-csm-item .tree-node-icon {
  font-size: 0.85rem;
}

/* ==================== 빈 상태 ==================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #adb5bd;
  text-align: center;
  gap: 10px;
}

.empty-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

/* ==================== 잡 상태 ==================== */
.job-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.job-info-row {
  display: flex;
  gap: 12px;
}

.job-label {
  color: #868e96;
  font-size: 0.85rem;
  min-width: 80px;
}

.job-value {
  color: #343a40;
  font-size: 0.85rem;
  font-weight: 600;
}

.job-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.job-progress .progress-bar {
  flex: 1;
  height: 10px;
}

.job-counts {
  display: flex;
  gap: 16px;
}

.job-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  border-radius: 10px;
  min-width: 80px;
}

.job-count.success {
  background: #d3f9d8;
}

.job-count.skip {
  background: #fff3bf;
}

.job-count.fail {
  background: #ffe3e3;
}

.count-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: #343a40;
}

.count-label {
  font-size: 0.78rem;
  color: #868e96;
  font-weight: 600;
}

/* ==================== Temporal 모니터링 ==================== */
.temporal-cards {
  display: flex;
  gap: 16px;
}

.temporal-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.temporal-card.running {
  background: linear-gradient(135deg, #fff9db, #fff3bf);
  border: 1px solid #ffd43b;
}

.temporal-card.completed {
  background: linear-gradient(135deg, #d3f9d8, #b2f2bb);
  border: 1px solid #69db7c;
}

.temporal-card.failed {
  background: linear-gradient(135deg, #ffe3e3, #ffc9c9);
  border: 1px solid #ff8787;
}

.temporal-count {
  font-size: 1.8rem;
  font-weight: 700;
  color: #343a40;
}

.temporal-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #868e96;
  margin-top: 4px;
}

.refresh-indicator {
  font-size: 0.78rem;
  color: #69db7c;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.refresh-indicator::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #69db7c;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==================== 반응형 ==================== */
@media (max-width: 600px) {
  .temporal-cards {
    flex-direction: column;
  }

  .job-counts {
    flex-wrap: wrap;
  }

  .gate-form {
    flex-direction: column;
    align-items: center;
  }

  .gate-input {
    width: 100%;
    max-width: 280px;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-input {
    max-width: 100%;
  }

  .cp-tab-button {
    padding: 10px 14px;
    font-size: 0.85rem;
  }

  .paginator {
    flex-direction: column;
    gap: 8px;
  }

  .row-info-badges {
    flex-direction: column;
  }
}

/* ==================== Cancel 버튼 ==================== */
.cancel-btn {
  padding: 10px 20px;
  border: 1px solid #dee2e6;
  background: #fff;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cancel-btn:hover {
  background: #f1f3f5;
  border-color: #adb5bd;
}

/* ==================== CSM 검증 영역 ==================== */
.verify-rows-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.verify-row-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px 16px;
  background: #f8f9fa;
}

.verify-row-header {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.verify-row-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #e9ecef;
  color: #495057;
}

.verify-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.verify-csm-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #495057;
}

.verify-csm-input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
}

.verify-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: #228be6;
  color: #fff;
  transition: background 0.15s;
}

.verify-btn:hover {
  background: #1c7ed6;
}

.verify-btn:disabled {
  background: #adb5bd;
  cursor: not-allowed;
}

.verify-result {
  margin-top: 8px;
  font-size: 0.82rem;
}

.verify-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #e9ecef;
}

.vf-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: #495057;
  margin-right: 6px;
}

.vf-divider {
  width: 1px;
  height: 20px;
  background: #dee2e6;
  margin: 0 14px;
}

.verify-filter-bar .exec-input-small {
  margin-right: 0;
}

.verify-filter-bar .school-toggle {
  margin-right: 6px;
}

.verify-filter-bar .exec-input {
  margin-left: 6px;
}

.verify-result-ok {
  color: #2b8a3e;
  font-weight: 600;
}

.verify-result-error {
  color: #c92a2a;
}

.verify-result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
  font-size: 0.78rem;
}

.verify-result-table th,
.verify-result-table td {
  border: 1px solid #dee2e6;
  padding: 4px 8px;
  text-align: left;
}

.verify-result-table th {
  background: #f1f3f5;
  font-weight: 600;
}

.verify-result-table tr:nth-child(even) {
  background: #f8f9fa;
}

/* ==================== Dry-Run 패널 ==================== */
.dry-run-bucket {
  flex: 1 1 130px;
  min-width: 130px;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}
.dry-run-bucket.safe { background: #e6fcf5; border-color: #99e9d2; color: #0b7285; }
.dry-run-bucket.skip { background: #f1f3f5; border-color: #ced4da; color: #495057; }
.dry-run-bucket.consent { background: #fff4e6; border-color: #ffd8a8; color: #d9480f; }
.dry-run-bucket.blocked { background: #ffe3e3; border-color: #ffa8a8; color: #c92a2a; }
.dry-run-bucket .bucket-label { font-weight: 600; }
.dry-run-bucket .bucket-count {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.dr-list {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  background: #fff;
}
.dr-list-item {
  padding: 6px 10px;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.dr-list-item:last-child { border-bottom: none; }
.dr-list-item .dr-status {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f1f3f5;
  color: #495057;
}
.dr-list-item .dr-status.safe { background: #d3f9d8; color: #2b8a3e; }
.dr-list-item .dr-status.skip { background: #f1f3f5; color: #495057; }
.dr-list-item .dr-status.consent { background: #ffe8cc; color: #d9480f; }
.dr-list-item .dr-status.blocked { background: #ffc9c9; color: #c92a2a; }
.dr-list-item .dr-group {
  font-weight: 600;
  color: #212529;
}
.dr-list-item .dr-detail {
  color: #868e96;
  font-size: 0.78rem;
}
#dry-run-status-badge.ok { background: #d3f9d8; color: #2b8a3e; }
#dry-run-status-badge.consent { background: #ffe8cc; color: #d9480f; }
#dry-run-status-badge.blocked { background: #ffc9c9; color: #c92a2a; }

/* ====================== AE Snapshot Repair Tab ====================== */
.ae-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,0.04);
}
.ae-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ae-snapshot-id {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 4px;
  color: #334155;
  word-break: break-all;
}
.ae-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.ae-badge-ok { background: #dcfce7; color: #15803d; }
.ae-badge-warn { background: #fef3c7; color: #b45309; }
.ae-badge-err { background: #fee2e2; color: #b91c1c; }
.ae-badge-info { background: #dbeafe; color: #1d4ed8; }

.ae-diagnosis {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ae-diagnosis.ae-ok {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  color: #15803d;
}
.ae-diagnosis.ae-err {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
}
.ae-diagnosis.ae-warn {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  color: #92400e;
}

.ae-fact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 16px;
  font-size: 0.88rem;
  color: #334155;
}
.ae-fact-list li {
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.ae-fact-list code {
  font-size: 0.82rem;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
  color: #475569;
}

.ae-action {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid;
}
.ae-action-ok {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.ae-action-warn {
  background: #fffbeb;
  border-color: #fde68a;
}
.ae-action-err {
  background: #fef2f2;
  border-color: #fecaca;
}
.ae-action-title {
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 4px;
}
.ae-action-detail {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}
.ae-exec-btn,
.ae-exec-run-btn,
.ae-cache-retry-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}
.ae-exec-btn:hover,
.ae-exec-run-btn:hover,
.ae-cache-retry-btn:hover { background: #1d4ed8; }

.ae-exec-result {
  margin-top: 10px;
}

.ae-exec-host { margin-top: 12px; }
.ae-exec-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}
.ae-exec-step {
  margin-bottom: 14px;
}
.ae-exec-step:last-of-type { margin-bottom: 0; }
.ae-exec-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: #334155;
}
.ae-code {
  background: #0f172a;
  color: #e2e8f0;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  overflow: auto;
  white-space: pre;
  margin: 0;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  max-height: 320px;
}
.ae-copy-btn {
  background: #e2e8f0;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}
.ae-copy-btn:hover { background: #cbd5e1; }
.ae-exec-hint {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.6;
}

.ae-detail-err {
  margin-top: 8px;
  padding: 8px 10px;
  background: #fef2f2;
  border-radius: 6px;
  color: #991b1b;
  font-size: 0.82rem;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.ae-detail-tech {
  margin-top: 8px;
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #64748b;
}
.ae-detail-tech code {
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ==================== 누락 SMI 복구 (Replay GroupUserInvited) ==================== */

.replay-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.replay-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.replay-field-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
}

.replay-field-hint {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 400;
}

.replay-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.replay-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.replay-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.replay-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 0.92rem;
}

.replay-summary-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.replay-summary-label {
  color: #6b7280;
}

.replay-summary-value {
  font-weight: 600;
  color: #111827;
}

.replay-warn {
  color: #b45309;
}

.replay-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.replay-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.replay-table thead th {
  background: #f3f4f6;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.replay-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.replay-table tbody tr:last-child td {
  border-bottom: none;
}

.replay-table tbody tr:hover {
  background: #f9fafb;
}

.replay-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.replay-badge.ok {
  background: #dcfce7;
  color: #166534;
}

.replay-badge.blocked {
  background: #fee2e2;
  color: #991b1b;
}

.replay-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.replay-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.replay-progress-detail {
  font-size: 0.9rem;
  color: #374151;
}

.replay-progress-meter {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.replay-progress-meter-fill {
  height: 100%;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.replay-result-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.replay-stat-card {
  padding: 12px 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.replay-stat-label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.replay-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.replay-stat-card.success .replay-stat-value { color: #047857; }
.replay-stat-card.warn .replay-stat-value { color: #b45309; }
.replay-stat-card.danger .replay-stat-value { color: #b91c1c; }

.replay-result-section {
  margin-top: 12px;
}

.replay-result-section-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 6px;
  color: #374151;
}

.replay-result-section ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  color: #4b5563;
}

.replay-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.replay-download-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.replay-download-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
