/* 제작내역 페이지 */
.nm-list-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif;
}

.nm-list-title {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin: 0 0 20px;
}

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

/* ---- 카드 ---- */
.nm-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

/* 제목 줄 */
.nm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.nm-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  flex: 1 1 auto;
}

/* 상태 배지 */
.nm-card-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.nm-card-badge.paid {
  background: #e6f4ea;
  color: #2d7a3f;
}
.nm-card-badge.unpaid {
  background: #fff3e0;
  color: #a0560d;
}

/* 만료일 */
.nm-card-expires {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.nm-card-expires.expired { color: #b00; }
.nm-expire-badge {
  font-size: 11px;
  font-weight: 600;
  background: #fdecea;
  color: #c62828;
  border-radius: 12px;
  padding: 2px 8px;
}
.nm-expire-hint {
  font-size: 11px;
  color: #999;
}

/* 구분선 */
.nm-card-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 10px 0;
}

/* 버튼 행 */
.nm-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nm-card-row--wm { margin-top: 2px; }

/* ---- 공통 버튼 ---- */
.nm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1.3;
  white-space: nowrap;
}
.nm-btn:hover { background: #f5f5f5; }

.nm-btn.primary {
  background: #4F8BED;
  border-color: #4F8BED;
  color: #fff;
}
.nm-btn.primary:hover { background: #3d7ad4; border-color: #3d7ad4; }

.nm-btn.danger {
  color: #c00;
  border-color: #f0c0c0;
}
.nm-btn.danger:hover { background: #fff0f0; }

.nm-btn.large {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 10px;
}

/* 워터마크 안내 */
.nm-wm-notice {
  font-size: 12px;
  color: #999;
}

/* 빈 목록 */
.nm-list-empty {
  font-size: 14px;
  color: #888;
  text-align: center;
  padding: 36px 16px;
  margin: 0;
}

/* 하단 액션 */
.nm-list-footer {
  margin-top: 24px;
}

/* 배지 그룹 */
.nm-card-badges {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* 조회수 배지 */
.nm-views-badge {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
}

/* 예식일 D-day 필 */
.nm-card-dday {
  margin-bottom: 4px;
}
.nm-dday-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: #e8f1fd;
  color: #4F8BED;
  letter-spacing: .02em;
}
.nm-dday-pill.past {
  background: #f3f3f3;
  color: #aaa;
}

/* 카카오 공유 버튼 */
.nm-btn-kakao {
  color: #3c1e1e;
  border-color: #f9e000;
  background: #ffe812;
}
.nm-btn-kakao:hover { background: #f0d800; }

/* 통계 행 */
.nm-card-row--stats {
  margin-top: 4px;
  flex-wrap: wrap;
  gap: 6px;
}
.nm-stat-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid #d0e4ff;
  background: #f0f6ff;
  color: #3c6ab0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.nm-stat-btn:hover { background: #deeaff; }
.nm-stat-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  font-size: 12px;
  color: #6a6a6a;
  background: #f5f5f5;
  border-radius: 6px;
  white-space: nowrap;
}

/* RSVP 모달 */
.nm-list-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.nm-list-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}
.nm-list-modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(520px, calc(100vw - 32px));
  max-height: 80vh;
  background: #fff;
  border-radius: 14px;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.nm-list-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.nm-list-modal-title { font-size: 15px; font-weight: 600; color: #222; }
.nm-list-modal-x { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: #888; padding: 0; line-height: 1; }
.nm-list-modal-body { padding: 14px 18px 20px; }

.nm-rsvp-summary { font-size: 14px; color: #444; margin-bottom: 12px; }
.nm-rsvp-table { width: 100%; border-collapse: collapse; font-size: 13px; font-family: "Pretendard", sans-serif; }
.nm-rsvp-table th { padding: 6px 8px; background: #f7f7f7; color: #555; text-align: left; font-weight: 600; border-bottom: 1px solid #eee; }
.nm-rsvp-table td { padding: 7px 8px; border-bottom: 1px solid #f2f2f2; color: #333; }
.nm-attend-yes  { color: #2d7a3f; font-weight: 600; }
.nm-attend-no   { color: #c00;    font-weight: 600; }
.nm-attend-unk  { color: #888; }

/* 구버전 호환 (기존 CSS 클래스) */
.nemodi-mcard-list-wrap { max-width: 560px; margin: 0 auto; padding: 24px 16px 48px; font-family: "Pretendard", -apple-system, BlinkMacSystemFont, sans-serif; }
.nemodi-preview-private { padding: 40px 16px; text-align: center; color: #888; font-size: 15px; }
