.user-page {
    font-family: 'Noto Sans KR', sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.user-page .container {
    max-width: 1000px;
    margin: 0 auto;
	
}

.user-page h1 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.user-page .edit-link {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 20px;
    text-align: right;
}

/* 공통 테이블 스타일 */
.user-page table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.user-page thead th {
    background: #f1f1f1;
    padding: 12px;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.user-page tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    text-align: center;
	min-width: 100px;
}

.user-page .detail-table {
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.user-page .detail-table th {
    background: #f1f1f1;
    padding: 12px;
    font-weight: bold;
    font-size: 14px;
    width: 80px;
    border-bottom: 1px solid #ccc;
}

.user-page .detail-table td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.user-page .detail-table tr:last-child td {
    border-bottom: none;
}

/* 상태 및 버튼 */
.user-page .cancel-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.user-page .cancel-button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.user-page .status-cancelled {
    color: #dc3545;
}

.user-page .status-disabled {
    color: #999;
}

.user-page .back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: underline;
    color: #007bff;
    font-size: 14px;
}

.user-page .order-link {
    color: #007bff;
    font-weight: 500;
    font-size: 16px;
}

.user-page .order-link:hover {
    text-decoration: none;
    color: #0056b3;
}

.user-page .tracking-button {
    background-color: #28a745;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

.user-page .tracking-button:hover {
    background-color: #218838;
}

.detail-button {
    display: inline-block;
    padding: 6px 12px;
    background-color: #007bff;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}
.detail-button:hover {
    background-color: #0056b3;
}

.order-detail-container {
	max-width: 1000px;
	margin: 0 auto;
}

/* ✅ 반응형 (mypage.php의 일반 테이블에만 적용) */
@media (max-width: 768px) {
  .user-page {
    padding: 10px;
  }

  .user-page h1 {
    font-size: 20px;
    text-align: center;
  }

  .user-page .edit-link {
	box-sizing: border-box;
    display: block;
    width: 100%;
    text-align: center;
  }

  .user-page table:not(.detail-table) {
    box-shadow: none;
    border-radius: 0;
  }

  .user-page table:not(.detail-table) thead {
    display: none;
  }

  .user-page table:not(.detail-table) tr {
    display: block;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
  }

  .user-page table:not(.detail-table) td {
    display: block;
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: relative;
  }

  .user-page table:not(.detail-table) td:last-child {
    border-bottom: none;
  }

  .user-page table:not(.detail-table) td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
    color: #555;
  }

  .user-page .cancel-button,
  .user-page .tracking-button {
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
  }

  .user-page .back-link {
    text-align: center;
    display: block;
    margin-top: 30px;
  }
}