/* ============================================================
   BORA 관리자 주문관리 전용 스타일
   파일명: /css/admin_order.css
   ============================================================ */

.orderadmin-wrapper {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  border-radius: 10px;
  padding: 30px 40px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 1200px;
  margin: 0 auto;
}

/* =======================
   제목
   ======================= */
.orderadmin-title {
  font-size: 24px;
  font-weight: 700;
  color: #222;
  margin-bottom: 25px;
}

/* =======================
   상태 대시보드 (Pie Charts)
   ======================= */
.orderadmin-dashboard {
  display: flex;
  gap: 40px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin: 20px 0 40px;
}
.pie {
  --val: 0;
  --color: #4caf50;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--color) calc(var(--val)*1%), #eee 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 700;
  font-size: 18px;
  color: #333;
  transition: background 1.5s ease;
}
.pie::after {
  content: attr(data-label);
  position: absolute;
  bottom: -25px;
  font-size: 13px;
  color: #555;
}

/* =======================
   필터 영역
   ======================= */
.orderadmin-filter {
  margin-bottom: 20px;
}

.orderadmin-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.orderadmin-form label {
  font-weight: 600;
  margin-right: 4px;
  color: #333;
}

.orderadmin-form select,
.orderadmin-form input[type="text"] {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
  height: 34px;
  color: #333;
  transition: 0.2s;
}

.orderadmin-form input[type="text"]:focus,
.orderadmin-form select:focus {
  outline: none;
  border-color: #4caf50;
}

.orderadmin-form button {
  background: #333;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

.orderadmin-form button:hover {
  background: #000;
}

/* =======================
   주문 목록 테이블
   ======================= */
.orderadmin-table-container {
  overflow-x: auto;
}

.orderadmin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
  border: 1px solid #ddd;
}

.orderadmin-table thead {
  background: #f7f7f7;
  border-bottom: 2px solid #ccc;
}

.orderadmin-table th,
.orderadmin-table td {
  padding: 10px 12px;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
}

.orderadmin-table th {
  color: #333;
  font-weight: 600;
}

.orderadmin-table tr:hover {
  background: #fafafa;
}

/* =======================
   상태 뱃지
   ======================= */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.badge.green { background: #4caf50; }
.badge.blue { background: #2196f3; }
.badge.gray { background: #777; }
.badge.red { background: #f44336; }

/* =======================
   버튼 / 드롭다운
   ======================= */
.orderadmin-table button {
  border: none;
  background: #5bc0de;
  color: #fff;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}
.orderadmin-table button:hover {
  background: #31b0d5;
}

.orderadmin-table .btn-cancel {
  background: #d9534f;
}
.orderadmin-table .btn-cancel:hover {
  background: #c9302c;
}

.orderadmin-table select {
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
  background: #fff;
}

/* =======================
   데이터 없음
   ======================= */
.orderadmin-nodata {
  text-align: center;
  color: #999;
  padding: 30px 0;
  font-style: italic;
}

/* =======================
   테이블 영역 width 보정
   ======================= */
.orderadmin-table-container {
  overflow-x: auto;
  box-sizing: border-box;
}

.orderadmin-table {
  width: 100%;
  min-width: 900px; /* 너무 좁아지는 것 방지 */
  border-collapse: collapse;
  font-size: 14px;
}
