:root {
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-border: #e2e4e9;
  --color-text: #1c1e26;
  --color-text-muted: #6b7280;
  --color-accent: #2f5fdb;
  --color-accent-hover: #2650b8;
  --color-error: #c0392b;
  --color-error-bg: #fdf0ef;
  --color-pastel-green: #a8e6cf;
  --color-pastel-green-hover: #8fd6b8;
  --color-pastel-green-text: #2d5a3f;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
    "Malgun Gothic", sans-serif;

  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);

  /* 사이드바 전용 */
  --sidebar-width: 250px;
  --sidebar-bg: #2c3e50;
  --sidebar-text: #ecf0f1;
  --sidebar-text-muted: #bdc3c7;
  --sidebar-active-bg: #34495e;
  --sidebar-active-border: #3498db;
}

/* [핵심 수정] html 태그에 가로 스크롤 방지
   문서 전체가 가로로 넘치지 않도록 최상위에서 차단 */
html {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* [핵심 수정] body 스타일 통합 및 Flex 제거
   1. display: flex 제거 (position: fixed 사이드바와 충돌 방지)
   2. overflow-x: hidden 추가 (이중 안전장치)
   3. min-height: 100vh 유지 (페이지 최소 높이) */
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  /* display: flex; 제거됨 */
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

/* =========================================
   인증 대기 상태 (Auth Pending)
   ========================================= */

html.auth-pending body {
  visibility: hidden;
}

/* =========================================
   상단 바 (기존 유지)
   ========================================= */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.topbar__brand {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
}

.topbar__brand:hover {
  color: var(--color-accent);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.btn-link:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.btn-link.is-active {
  color: var(--color-accent);
  font-weight: 500;
}

/* =========================================
   사이드바 & 레이아웃 (수정)
   ========================================= */

/* [핵심 수정] body의 flex 제거로 인해,
   사이드바는 position: fixed로 독립적으로 동작합니다.
   메인 콘텐츠는 margin-left로 사이드바 공간을 확보합니다. */

/* --- 사이드바 컨테이너 --- */
#sidebar-placeholder {
  width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  transition: transform 0.3s ease;

  /* [핵심] 기본값은 hidden으로 두고, PC에서만 auto로 전환
     (모바일에서 fixed 요소의 overflow가 body 높이에 영향을 주는 버그 방지) */
  overflow-y: hidden;

  /* PC 기본: 열려 있음 */
  transform: translateX(0);
}

/* 사이드바 닫힘 (PC & Mobile 공통) */
#sidebar-placeholder.is-collapsed {
  transform: translateX(-100%);
}

/* --- 사이드바 내부 구조 --- */
.sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px 0;
}

.sidebar__brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.sidebar__brand a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  display: block;
}

.sidebar__menu {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.sidebar-link {
  display: block;
  padding: 12px 20px;
  color: var(--sidebar-text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.sidebar-link.is-active {
  background-color: var(--sidebar-active-bg);
  color: white;
  border-left: 4px solid var(--sidebar-active-border);
  font-weight: 500;
}

.sidebar__footer {
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#company-name {
  color: var(--sidebar-text-muted);
  font-size: 0.9rem;
  word-break: break-all;
}

/* --- 메인 콘텐츠 래퍼 --- */
.main-content-wrapper {
  /* [핵심] flex-grow 제거 (body가 flex가 아니므로)
     margin-left로 사이드바 공간 확보 */
  margin-left: var(--sidebar-width);
  padding: 20px;
  transition: margin-left 0.3s ease;
  position: relative;
  min-height: 100vh;
  /* [추가] overflow-x: hidden으로 내부 요소가 body 폭을 넘지 못하게 이중 차단 */
  overflow-x: hidden;
}

/* 사이드바 닫힘 시 메인 콘텐츠 전체 폭 */
.main-content-wrapper.is-expanded {
  margin-left: 0;
}

/* --- 햄버거 버튼 (메인 영역 좌측 상단) --- */
.hamburger-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  font-size: 20px;
  transition: background 0.2s;
}

.hamburger-btn:hover {
  background: var(--color-bg);
}

/* --- 오버레이 (모바일 전용) --- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-visible {
  display: block;
  opacity: 1;
}

/* =========================================
   메인 컨테이너 (기존 유지)
   ========================================= */

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px;
  /* 햄버거 버튼 공간 확보 */
  padding-top: 80px;
}

.page--wide {
  max-width: 1440px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.card h3 {
  margin: 24px 0 12px;
  font-size: 14px;
  font-weight: 600;
}

/* =========================================
   로그인 페이지 (기존 유지)
   ========================================= */

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
}

.login-card__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 4px;
}

.login-card__subtitle {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text);
}

.field .radio-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 0;
  cursor: pointer;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.field textarea {
  resize: vertical;
  min-height: 72px;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-text-muted);
}

.field-hint--error {
  color: var(--color-error);
}

/* =========================================
   라디오 그룹 (기존 유지)
   ========================================= */

.radio-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.radio-option input[type="radio"],
.radio-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  flex-shrink: 0;
}

.radio-option span {
  display: inline-flex;
  align-items: center;
  line-height: normal;
}

/* =========================================
   버튼 (기존 유지)
   ========================================= */

.btn-primary {
  width: 100%;
  padding: 10px 12px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-primary:disabled {
  background: var(--color-border);
  cursor: not-allowed;
}

.error-box {
  display: none;
  background: var(--color-error-bg);
  color: var(--color-error);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

.error-box.show {
  display: block;
}

.success-box {
  background: #e7f5ea;
  color: #1e7a35;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* =========================================
   유틸리티 (기존 유지)
   ========================================= */

.text-muted {
  color: var(--color-text-muted);
}

.hidden {
  display: none !important;
}

/* =========================================
   페이지 헤더 (기존 유지)
   ========================================= */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.btn {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  background: var(--color-bg);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

.btn-danger {
  color: var(--color-error);
  border-color: var(--color-border);
}

.btn-danger:hover {
  background: var(--color-error-bg);
  border-color: var(--color-error);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* =========================================
   테이블 (기존 유지)
   ========================================= */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  white-space: nowrap;
}

th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 12px;
}

tbody tr:hover {
  background: var(--color-bg);
}

.cell-stacked {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cell-stacked__sub {
  font-size: 11px;
  color: var(--color-text-muted);
}

/* =========================================
   배지 (기존 유지)
   ========================================= */

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 500;
}

.badge-active {
  background: #e7f5ea;
  color: #1e7a35;
}

.badge-inactive {
  background: #f0f1f3;
  color: var(--color-text-muted);
}

.badge-admin {
  background: #eef1fd;
  color: var(--color-accent);
}

.badge-agency {
  background: #dcfbd4;
  color: var(--color-accent);
}

/* =========================================
   모달 (기존 유지)
   ========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
}

.modal h3 {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.modal--detail {
  max-width: 480px;
  max-height: 85vh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}

.modal__header h3 {
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal__close:hover {
  color: var(--color-text);
}

.modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal--detail .modal-actions {
  padding: 16px 24px;
  margin-top: 0;
  border-top: 1px solid var(--color-border);
  flex-shrink: 0;
}

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

.process-section__title {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
}

.company-share-value {
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
}

.company-share-value.is-negative {
  color: var(--color-error);
  border-color: var(--color-error);
  background: var(--color-error-bg);
}

.process-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.detail-row {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row__label {
  flex: 0 0 96px;
  font-size: 12px;
  color: var(--color-text-muted);
  padding-top: 1px;
}

.detail-row__value {
  flex: 1;
  font-size: 13px;
  word-break: break-all;
}

/* =========================================
   체크박스 (기존 유지)
   ========================================= */

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.checkbox-field label {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.checkbox-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* =========================================
   빈 상태 (기존 유지)
   ========================================= */

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

/* =========================================
   탭 (기존 유지)
   ========================================= */

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.tab-item {
  padding: 8px 16px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab-item:hover {
  color: var(--color-text);
}

.tab-item.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* =========================================
   기타 (기존 유지)
   ========================================= */

.input-with-action {
  display: flex;
  gap: 8px;
}

.input-with-action input {
  flex-grow: 1;
}

.btn-pastel-green {
  background: var(--color-pastel-green);
  color: white;
  border-color: var(--color-pastel-green);
}

.btn-pastel-green:hover {
  background: var(--color-pastel-green-hover);
  color: white;
  border-color: var(--color-pastel-green-hover);
}

.calc-result {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--color-bg);
  color: var(--color-text);
}

.calc-result--error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.field-hint.success {
  color: #28a745;
}

.field-hint.error {
  color: #dc3545;
}

/* =========================================
   [신규] 코드 리스트 전용 테이블 스크롤 컨테이너
   ========================================= */

/* [핵심] 
   1. width: 100%로 부모(.card)의 폭을 정확히 따름
   2. overflow-x: auto로 내부에서만 가로 스크롤 발생
   3. -webkit-overflow-scrolling: touch로 iOS 부드러운 스크롤 지원
   4. max-width: 100%로 부모를 넘지 못하게 이중 제한 */
.code-list-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: 0;
}

.code-list-table-wrap table {
  min-width: 600px;
  /* 모바일에서 최소 가독성 확보 */
  width: auto;
  /* 콘텐츠 길이에 따라 자동 확장 */
  border-collapse: collapse;
  font-size: 13px;
}

.code-list-table-wrap th,
.code-list-table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  white-space: nowrap;
  /* 줄바꿈 방지, 가로 스크롤 유도 */
}

.code-list-table-wrap th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 12px;
}

/* [핵심] 셀의 최대 폭 제한 (너무 긴 URL 등이 컬럼을 과도하게 늘리는 것 방지) */
.code-list-table-wrap td {
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================
   모바일 대응 (기존 + 사이드바)
   ========================================= */

@media (max-width: 480px) {
  .modal-overlay {
    /* align-items: flex-end; */
    align-items: center;
  }

  .modal--detail {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .detail-row {
    flex-direction: column;
    gap: 4px;
  }

  .detail-row__label {
    flex: none;
  }
}

/* [핵심] PC에서만 사이드바 내부 스크롤 허용
   (모바일에서는 overflow-y: hidden으로 유지하여 레이아웃 오류 방지) */
@media (min-width: 769px) {
  #sidebar-placeholder {
    overflow-y: auto;
  }
}

/* 모바일: 사이드바 기본 닫힘 */
@media (max-width: 768px) {
  #sidebar-placeholder {
    transform: translateX(-100%);
    overflow-y: hidden;
    /* 모바일에서는 내부 스크롤 비활성화 */
  }

  #sidebar-placeholder.is-open {
    transform: translateX(0);
    overflow-y: auto;
    /* 열렸을 때만 스크롤 허용 */
  }

  .main-content-wrapper {
    margin-left: 0 !important;
    padding: 16px;
  }

  .hamburger-btn {
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
  }

  .page {
    padding: 60px 16px 20px;
  }
}

/* =========================================
   [신규] 코드 상세 모달 전용 스타일
   ========================================= */

/* 모달 내부 기본 정보 영역 (매체명, SubID 등) */
.detail-basic-info {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* 모달 내부 탭 컨테이너 */
.detail-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  /* 모바일에서 탭이 많으면 가로 스크롤 */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* Firefox 스크롤바 숨김 */
}

.detail-tabs::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari 스크롤바 숨김 */
}

.detail-tab-item {
  padding: 8px 12px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  /* 탭 라벨 줄바꿈 방지 */
  flex-shrink: 0;
}

.detail-tab-item:hover {
  color: var(--color-text);
}

.detail-tab-item.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* 탭 패널 (내용 영역) */
.detail-tab-panel {
  display: none;
}

.detail-tab-panel.is-active {
  display: block;
}

/* 개별 항목 카드 (행) */
.detail-item-row {
  display: flex;
  align-items: flex-start;
  /* 상단 정렬 */
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

/* 좌측: 정보 영역 */
.detail-item-info {
  flex: 1;
  min-width: 0;
  /* flex child가 overflow 방지 */
}

.detail-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.detail-item-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* 미리보기 영역 (URL/스크립트) */
.detail-item-preview {
  font-family: monospace;
  font-size: 12px;
  color: var(--color-text);
  background: var(--color-surface);
  padding: 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  word-break: break-all;
  /* 긴 URL 줄바꿈 */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* 최대 2줄 표시 */
  -webkit-box-orient: vertical;
}

/* 우측: 복사 버튼 */
.btn-copy {
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-copy.btn-copied {
  background: var(--color-pastel-green);
  color: var(--color-pastel-green-text);
  border-color: var(--color-pastel-green);
}

/* =========================================
   PC/모바일 표시 제어
   ========================================= */

/* 기본값: 모바일 (mobile-only 표시, desktop-only 숨김) */
.desktop-only {
  display: none;
}

.mobile-only {
  display: block;
}

/* PC (769px 이상): desktop-only 표시, mobile-only 숨김 */
@media (min-width: 769px) {
  .desktop-only {
    display: block;
  }

  .mobile-only {
    display: none;
  }
}

/* =========================================
   [신규] 코드 상세 모달 - 기본 정보 (한 줄) 스타일
   ========================================= */

.detail-basic-info-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  /* 모바일에서 너무 길면 줄바꿈 허용 (보통은 한 줄에 맞음) */
  gap: 8px;
  /* 요소 간 간격 */
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text);
}

.basic-info-item {
  font-weight: 500;
  word-break: break-all;
  /* 긴 문자열 줄바꿈 방지용 (필요시) */
}

.basic-info-sep {
  color: var(--color-text-muted);
  font-weight: 400;
}

/* 클릭 가능한 Sub ID 스타일 */
.clickable-subid {
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

.clickable-subid:hover {
  color: var(--color-accent-hover);
  text-decoration: none;
  /* 호버 시 밑줄 제거 (선택) */
}

.badge-pending {
  background-color: #f0ad4e;
  color: white;
}