.recent-order-product-title,
.top-selling-product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Giới hạn tối đa 2 dòng */
  -webkit-box-orient: vertical;
  overflow: hidden; /* Ẩn phần dư */
  text-overflow: ellipsis; /* Hiển thị dấu "..." */
  max-width: 130px; /* Giới hạn chiều rộng */
  word-wrap: break-word;
}

/* Định dạng container chứa ảnh */
.product-thumbnail-recent-orders {
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background-color: #ddd; /* Màu xám nhẹ */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative; /* Giữ ảnh đúng vị trí */
}

/* Khi ảnh tải về, ẩn placeholder */
.product-thumbnail-recent-orders img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh hiển thị tốt */
  border-radius: 3px;
  display: none; /* Ẩn ảnh ban đầu */
}

#recent-orders-container table {
  width: 100%;
  border-collapse: collapse; /* Đảm bảo viền không bị đúp */
}

#recent-orders-container th,
#recent-orders-container td {
  border: 1px solid #ddd; /* Viền màu xám nhẹ */
  padding: 10px; /* Tạo khoảng cách giữa nội dung và viền */
  text-align: left; /* Căn lề văn bản */
  font-size: 14px;
  font-family: Arial, sans-serif;
}

#recent-orders-container th {
  background-color: #e8e8e8;
  font-weight: bold;
  padding: 12px;
  color: #000 !important;
}
#recent-orders-container td {
  vertical-align: middle; /* Giữ nội dung căn giữa theo chiều dọc */
}

/* Nếu muốn các số căn phải */
#recent-orders-container td:nth-child(4),
#recent-orders-container td:nth-child(5),
#recent-orders-container td:nth-child(6),
#recent-orders-container td:nth-child(7) {
  text-align: right; /* Căn phải cho cột số liệu */
}

.order-pagination,
.bookmark-pagination,
.my3dmodel-pagination,
.recentorders-pagination,
.ContactList-pagination,
.LoadDeletion-pagination,
.OrderAdminList-pagination,
.WithdrawalsList-pagination,
.TopSelling-pagination
 {
  margin-top: 20px;
  text-align: center;
}

.order-page-btn,
.bookmark-page-btn,
.my3dmodel-page-btn,
.recentorders-page-btn,
.ContactList-page-btn,
.LoadDeletion-page-btn,
.OrderAdminList-page-btn,
.WithdrawalsList-page-btn,
.TopSelling-page-btn  
{
	padding: 8px 12px;
	margin: 0 2px;
	background-color: #fff;
	color: black;
	border: 1px solid #bfbfbf;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

.order-page-btn.active, 
.bookmark-page-btn.active,
.my3dmodel-page-btn.active,
.recentorders-page-btn.active,
.ContactList-page-btn.active,
.LoadDeletion-page-btn.active,
.OrderAdminList-page-btn.active,
.WithdrawalsList-page-btn.active,
.TopSelling-page-btn.active
{
  background-color: #6f6f6f;
  color: white;
  font-weight: bold;
}

.order-page-btn:hover
.bookmark-page-btn:hover
.my3dmodel-page-btn:hover
.recentorders-page-btn:hover,
.ContactList-page-btn:hover,
.LoadDeletion-page-btn:hover,
.OrderAdminList-page-btn:hover
.WithdrawalsList-page-btn:hover,
.TopSelling-page-btn:hover
 {
  background-color: #d1d1d1;
}

.dots {
  padding: 8px 12px;
  margin: 0 4px;
  font-weight: bold;
  color: #555;
}

/* Định dạng container để tránh bị lỗi xuống hàng */
.product-cell-recent-orders {
  display: flex;
  align-items: center;
  gap: 10px;
}
button#search-recent-order-button,
button#clear-search-recent-order-button {
  padding: 5px 10px;
  background: #0073aa;
  color: white;
  border: none;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
}
input#search-recent-order {
  height: 15px;
  background: #f7f7f7;
  width: 50% !important;
}
