/* ====================== PAGE-SPECIFIC CSS ====================== */

/* 페이지 컨테이너(이 페이지 전용 max-width 유지) */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* 60/40 그리드(페이지 전용) - common.css와 충돌 방지를 위해 !important 사용 */
.page .grid,
div.grid {
  display: grid !important;
  grid-template-columns: 3fr 2fr !important; /* 60 / 40 */
  gap: 16px !important;
}
@media (max-width: 1024px) {
  .page .grid,
  div.grid {
    grid-template-columns: 1fr !important;
  } /* 스택 */
}

/* 입력 필드와 라벨은 common.css에서 가져옴 */
/* 추가 오버라이드가 필요한 경우에만 여기에 작성 */

/* 버튼 색깔 통일 - gold-silver/exchange와 동일 */
.btn,
.uni-btn,
button.btn,
button.uni-btn {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

.btn:hover,
.uni-btn:hover,
button.btn:hover,
button.uni-btn:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.btn:disabled,
.uni-btn:disabled,
button.btn:disabled,
button.uni-btn:disabled {
  background: var(--muted-light) !important;
  border-color: var(--muted-light) !important;
  color: #ffffff !important;
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Block 2: 티켓 핵심 필드 (페이지 전용) ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin: 10px 0;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
}

.files-list .file-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 4px 0;
}

/* 뱃지 톤 통일 */
.badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
}
.badge.UNPAID {
  background: #fff7ed;
  border-color: #fed7aa;
}
.badge.PARTIAL {
  background: #fef9c3;
  border-color: #fde68a;
}
.badge.PAID {
  background: #dcfce7;
  border-color: #86efac;
}
.badge.REFUNDED {
  background: #fee2e2;
  border-color: #fecaca;
}

/* Preorder 모듈 전용: list-head와 list-row를 5개 컬럼으로 설정 */
.list-head,
.list-row {
  grid-template-columns: 1fr 1.5fr 1fr 1.2fr 1fr !important;
}

