/* rb.pointshop.orders — dark-mode polish, no-hover */
.rbp {
  --btn-h: 36px;
  color: var(--rd-text-primary);
  font-size: 15px;
}

.rbp .list-title {
  color: var(--rd-text-primary);
  font-weight: 700;
  font-size: 20px;
  margin: 0;
}

/* table */
.rbp .tbl_wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.rbp .rbp-table {
  width: 100%;
  min-width: 800px;
  border-collapse: collapse;
  background: var(--rd-bg-card);
  color: var(--rd-text-primary);
  table-layout: fixed;
}

.rbp .rbp-table thead th {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-family: "font-B", sans-serif;
  font-weight: normal;
  background-color: var(--rd-bg-second);
  color: var(--rd-text-primary);
  font-size: 14px;
  border-bottom: 1px solid var(--rd-border);
  white-space: nowrap;
}

.rbp .rbp-table td,
.rbp .rbp-table th {
  border-bottom: 1px solid var(--rd-border);
  padding: 12px 8px;
  vertical-align: middle;
}

/* 컬럼 너비 명시적 지정 */
.rbp .rbp-table th:first-child,
.rbp .rbp-table td:first-child {
  width: 100px;
  min-width: 100px;
}

.rbp .rbp-table th:nth-child(2),
.rbp .rbp-table td:nth-child(2) {
  width: 120px;
  min-width: 120px;
}

.rbp .rbp-table th:nth-child(3),
.rbp .rbp-table td:nth-child(3) {
  width: 120px;
  min-width: 120px;
}

.rbp .rbp-table th:nth-child(4),
.rbp .rbp-table td:nth-child(4) {
  width: 100px;
  min-width: 100px;
}

.rbp .rbp-table th:nth-child(5),
.rbp .rbp-table td:nth-child(5) {
  width: 100px;
  min-width: 100px;
}

.rbp .rbp-table th:last-child,
.rbp .rbp-table td:last-child {
  width: 280px;
  min-width: 280px;
}

/* center helpers */
.rbp .tcenter {
  text-align: center !important;
}

/* thumbnails */
.rbp .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--rd-border);
  background: var(--rd-bg-second);
  display: block;
  margin: 0 auto;
}

.rbp .noimg {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  border: 1px dashed var(--rd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rd-text-second);
  font-size: 11px;
  margin: 0 auto;
  background: var(--rd-bg-second);
}

/* manage area */
.rbp .manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.rbp .manage.center {
  justify-content: center;
}

.rbp .manage-form {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

/* inputs */
.rbp .frm_input {
  height: var(--btn-h);
  border: 1px solid var(--rd-border);
  border-radius: 6px;
  background: var(--rd-bg);
  color: var(--rd-text-primary);
  padding: 0 8px;
  font-size: 14px;
}

.rbp input[type="number"] {
  padding: 0 6px;
  text-align: center;
}

.rbp input[type="number"][disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}

.rbp .frm_input.full {
  width: 100%;
}

.rbp .frm_input.short {
  width: 180px;
}

.rbp .select {
  height: var(--btn-h);
  border: 1px solid var(--rd-border);
  border-radius: 6px;
  background: var(--rd-bg);
  color: var(--rd-text-primary);
  padding: 0 10px;
  font-size: 14px;
}

.rbp ::placeholder {
  color: var(--rd-text-third);
  opacity: 1;
}

.rbp .img-prev img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 1px solid var(--rd-border);
  background: var(--rd-bg-second);
  display: inline-block;
}

/* buttons */
.rbp .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--rd-border);
  background: var(--rd-bg-second);
  color: var(--rd-text-primary);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.rbp .btn.big {
  height: 40px;
  font-size: 14px;
}

.rbp .btn-primary {
  background: var(--rd-primary);
  border-color: transparent;
  color: #fff;
}

.rbp .btn-danger {
  background: var(--rd-error);
  border-color: transparent;
  color: #fff;
}

.rbp .btn-buy {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 0;
  background: var(--rd-primary);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.rbp .btn-buy[disabled] {
  background: var(--rd-text-third);
  cursor: not-allowed;
}

/* badges */
.rbp .status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  border: 1px solid var(--rd-border);
  background: var(--rd-bg-second);
  color: var(--rd-text-primary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.rbp .status-on {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #16a34a;
}

.rbp .status-off {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
}

.rbp .status-end {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #d97706;
}

/* quantity */
.rbp .qty-input {
  width: 60px;
  height: 32px;
}

/* admin buttons */
.rbp .admin-wrap {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.rbp .admin-wrap .btn {
  min-width: 50px;
  font-size: 12px;
  height: 28px;
}

/* topbar */
.rbp .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--rd-border);
  background: var(--rd-bg-card);
}

/* pagination wrapper */
.rbp .rbp-pg {
  margin: 16px 0;
  color: var(--rd-text-primary);
}

/* 상품명 스타일 */
.rbp .td_left {
  text-align: left;
  padding: 0 8px;
}

.rbp .row-head {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  word-break: break-word;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .rbp {
    font-size: 14px;
    padding: 0 20px;
  }

  .rbp .rbp-table {
    min-width: 750px;
  }

  .rbp .rbp-table td,
  .rbp .rbp-table th {
    padding: 10px 6px;
  }

  .rbp .rbp-table thead th {
    font-size: 13px;
    padding: 10px 6px;
  }

  .rbp .thumb {
    width: 50px;
    height: 50px;
  }

  .rbp .noimg {
    width: 50px;
    height: 50px;
    font-size: 10px;
  }

  .rbp .row-head {
    font-size: 13px;
  }

  .rbp .qty-input {
    width: 50px;
    height: 30px;
    font-size: 13px;
  }

  .rbp .btn-buy {
    height: 30px;
    font-size: 12px;
    padding: 0 10px;
  }

  .rbp .status-badge {
    font-size: 11px;
    padding: 3px 6px;
  }

  /* 컬럼 너비 조정 */
  .rbp .rbp-table th:first-child,
  .rbp .rbp-table td:first-child {
    width: 80px;
    min-width: 80px;
  }

  .rbp .rbp-table th:last-child,
  .rbp .rbp-table td:last-child {
    width: 250px;
    min-width: 250px;
  }

  .rbp .topbar {
    gap: 12px;
    padding: 12px;
  }

  .rbp .list-title {
    font-size: 18px;
  }
}

/* 매우 작은 화면 (480px 이하) */
@media (max-width: 480px) {
  .rbp {
    font-size: 14px;
  }

  .rbp .rbp-table {
    min-width: 700px;
    font-size: 13px;
  }

  .rbp .rbp-table td,
  .rbp .rbp-table th {
    padding: 8px 4px;
  }

  .rbp .rbp-table thead th {
    font-size: 12px;
    padding: 8px 4px;
  }

  .rbp .thumb {
    width: 40px;
    height: 40px;
  }

  .rbp .noimg {
    width: 40px;
    height: 40px;
    font-size: 9px;
  }

  .rbp .qty-input {
    width: 45px;
    height: 28px;
    font-size: 12px;
  }

  .rbp .btn-buy {
    height: 28px;
    font-size: 11px;
    padding: 0 8px;
  }

  .rbp .admin-wrap .btn {
    height: 26px;
    font-size: 11px;
    min-width: 45px;
  }

  .rbp .status-badge {
    font-size: 10px;
    padding: 2px 5px;
  }

  .rbp .rbp-table th:last-child,
  .rbp .rbp-table td:last-child {
    width: 230px;
    min-width: 230px;
  }
}

/* 가로모드 대응 */
@media (max-width: 768px) and (orientation: landscape) {
  .rbp .rbp-table {
    min-width: 700px;
  }
}

/* 테이블 스크롤 시 헤더 고정 */
@media (max-width: 768px) {
  .rbp .tbl_wrap {
    position: relative;
    border: 1px solid var(--rd-border);
  }

  .rbp .rbp-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
  }
}

/* reset hover */
.rbp .btn:hover,
.rbp .btn-danger:hover,
.rbp .btn-primary:hover,
.rbp .btn-buy:hover:not([disabled]) {
  filter: none;
  background: inherit;
  color: inherit;
}

.rbp .btn-primary:hover {
  background: var(--rd-primary);
  color: #fff;
}

.rbp .btn-danger:hover {
  background: var(--rd-error);
  color: #fff;
}

.rbp .btn-buy:hover:not([disabled]) {
  background: var(--rd-primary-second);
  color: #fff;
}

/* === OneCSS merge & fixes === */
.rbp {
  --btn-h: 36px;
  color: var(--rd-text-primary);
}

/* Pagination visibility guard */
.rbp .rbp-pg:empty {
  /* display: none; */
}

/* Table dark mode readability */
:root[data-theme="dark"] .rbp .rbp-table {
  background: var(--rd-bg-card, #24262c);
  color: #fff;
}

:root[data-theme="dark"] .rbp .rbp-table td,
:root[data-theme="dark"] .rbp .rbp-table th {
  color: #fff;
  border-color: var(--rd-border, #3a3a3f);
}

:root[data-theme="dark"] .rbp .rbp-table thead th {
  background: var(--rd-bg-second, #2a2e3a);
}

:root[data-theme="dark"] .rbp .rbp-table tbody tr:hover {
  background: transparent !important;
}

/* Status badges for readability in dark */
:root[data-theme="dark"] .rbp .status-badge {
  background: #2a2e3a;
  border-color: #3a3a3f;
  color: #fff;
}

:root[data-theme="dark"] .rbp .status-on {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
  color: #4ade80;
}

:root[data-theme="dark"] .rbp .status-off {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}

:root[data-theme="dark"] .rbp .status-end {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}

/* Inputs contrast tweak */
:root[data-theme="dark"] .rbp .frm_input,
:root[data-theme="dark"] .rbp .select {
  background: #1f2025;
  color: #fff;
  border-color: #3a3a3f;
}

/* override */
.tbl_wrap table {
  border-top: none !important;
}

.tbl_head01 tbody tr:hover td {
  background: inherit !important;
}

/* ==== Hard-hide all pagination variants ==== */
.rbp .rbp-pg,
.pg_wrap,
.pagination,
.pg,
.pg_page,
.pg_current {
  /* display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important; */
}

/* empty state */
.rbp .empty_table {
  text-align: center;
  padding: 40px 20px;
  color: var(--rd-text-second);
  font-size: 14px;
}

/* muted text */
.rbp .muted {
  color: var(--rd-text-second);
  font-size: 13px;
}

/* Improve table header stickiness on small screens */
.rbp .tbl_wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 모바일에서의 추가 가독성 향상 */
@media (max-width: 768px) {
  .rbp .td_left {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
