/* Đảm bảo hình ảnh có kích thước vuông và cover toàn bộ card */
.product-image {
    width: 100%;
    height: 200px;  /* Thay đổi giá trị này nếu bạn muốn điều chỉnh chiều cao */
    object-fit: cover;  /* Đảm bảo hình ảnh bao phủ toàn bộ thẻ mà không bị méo */
}

/* Căn chỉnh icon và văn bản */
.info-text {
    display: inline-flex;          /* Dùng inline-flex để căn chỉnh các phần tử trong cùng một dòng */
    align-items: center;           /* Căn giữa icon và text theo chiều dọc */
    width: 20px;                   /* Đặt chiều rộng cố định cho icon */
    justify-content: flex-start;   /* Căn trái cho icon */
}

.card-text span {
    display: inline-block;
}

.card {
    font-size: 14px !important;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}

.shop_manage_product {
    height: 100vh;
    overflow: auto;
    padding-bottom: 60px;
}
#upload-box {
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #000;
}

#upload-image-product {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

#upload-image-product img {
    width: 70%;  /* Giữ kích thước ảnh của biểu tượng upload */
    opacity: 0.5;
}

#upload-image-product p {
    font-size: 12px;
}

#thumbnail-image {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Giữ ảnh tỷ lệ đúng và phủ đầy khu vực */
    border-radius: 8px; /* Đảm bảo thumbnail có góc bo tròn nếu cần */
}

.stat-card {
    border-radius: 8px;  /* Bo góc card */
    background: linear-gradient(135deg, #8e2de2, #4a00e0);  /* Màu nền gradient */
    color: white;  /* Màu chữ */
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
    margin-bottom: 20px;
}

.stat-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* Align items to the left */
    justify-content: space-between;
}

.stat-number {
    font-size: 22px;
    font-weight: bold;
    color: #ffc107;
}

.stat-info {
    font-size: 14px;
    margin-top: 5px;
}

.stat-card i {
    position: absolute;
    bottom: 10px;
    right: 10px;  /* Đặt icon ở góc dưới bên phải */
    font-size: 60px;  /* Phóng to icon */
    color: rgba(255, 255, 255, 0.5);  /* Màu icon nhẹ */
}

.agent-dropdown-content, .dropdown-content {
    padding-left: 30px;
}

.agents {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.agents-distribute {
    border-radius: 8px;  /* Bo góc card */
    background: linear-gradient(135deg, #155724, #343a40db);
    color: white;  /* Màu chữ */
    padding: 15px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.agents-distribute i {
    position: absolute;
    top: 10px;
    right: 10px;  /* Đặt icon ở góc dưới bên phải */
    font-size: 60px;  /* Phóng to icon */
    color: rgba(255, 255, 255, 0.5);  /* Màu icon nhẹ */
}

.right-top i {
    position: static;
    font-size: large;
    color: #000;

}
.transaction-log {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    padding: 10px;
    position: relative;
}

.transaction-log {
    position: relative; /* Để relative giúp con i căn theo container */
}

.transaction-log i {
    position: absolute;
    bottom: 50%; /* Đưa phần tử lên giữa chiều dọc của container */
    right: 10px; /* Căn vào bên phải với khoảng cách 10px */
    transform: translateY(50%); /* Dịch chuyển về chính giữa theo chiều dọc */
    font-size: 60px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 5px;
    margin: 0 5px;
    text-decoration: none;
    color: #007bff;
    border: 1px solid #007bff;
    border-radius: 3px;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover {
    background-color: #0056b3;
    color: white;
}

.agents_dashboard{
    height: 100vh;
    overflow: auto;
    margin: 0 auto;
}

/* Tùy chỉnh thanh cuộn cho trình duyệt hiện đại */
.agents_dashboard::-webkit-scrollbar {
    width: 8px; /* Độ rộng của thanh cuộn */
}

.agents_dashboard::-webkit-scrollbar-thumb {
    background-color: #ddd; /* Màu thanh cuộn */
    border-radius: 4px; /* Bo góc thanh cuộn */
}

.agents_dashboard::-webkit-scrollbar-thumb:hover {
    background-color: #3a3f44; /* Màu thanh cuộn khi hover */
}

.agents_dashboard::-webkit-scrollbar-track {
    background: #fff; /* Màu nền track */
}

.menu-content {
    display: block; /* Luôn hiển thị trên giao diện máy tính */
    position: sticky; /* Cố định theo màn hình khi cuộn */
    top: 10px; /* Cách đỉnh 10px */
}

/* Ẩn bảng thông báo và chỉ hiển thị icon menu trên di động */
.menu-icon {
    display: none; /* Ẩn icon menu trên màn hình lớn */
}

@media (max-width: 768px) {
    /* Chỉ hiển thị icon menu trên di động */
    .menu-icon {
        display: block;
        position: fixed;
        top: 5px;
        right: 5px;
        z-index: 1000;
        cursor: pointer;
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
        background: #fff;
        padding: 5px;
        border-radius: 100%;
    }

    /* Ẩn bảng thông báo trên di động */
    .menu-content {
        display: none; /* Mặc định ẩn trên di động */
        position: fixed; /* Hiển thị ở dạng hộp bật lên khi được kích hoạt */
        top: 50px;
        left: 10px;
        right: 10px;
        z-index: 999;
        background-color: white;
        border: 1px solid #ccc;
        border-radius: 8px;
        padding: 10px;
        box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
    }

    /* Khi menu được kích hoạt */
    .menu-content.active {
        display: block; /* Hiển thị bảng thông báo khi người dùng bấm vào icon */
    }
}

.comment-group {
    border: 2px solid #0040ff;
 }
 
.comment-divider {
    border-top: 2px solid #0040ff;
}

/* Màu nền cho thead */
.custom-table thead {
    background-color: #007bff; /* Màu xanh dương cho thead */
    color: #fff; /* Màu chữ trắng */
}

/* Màu nền cho các dòng tbody */
.custom-table tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.7); /* Màu trắng đục cho các dòng lẻ */
}
    .custom-table tbody tr:nth-child(even) {
    background-color: #f8f9fa; /* Màu nền sáng cho các dòng chẵn */
}

/* Màu chữ cho tbody */
.custom-table tbody td {
    color: #333; /* Màu chữ tối cho dễ đọc */
}

/* Thông tin so sánh */
.info-comparison {
    margin: 20px 0 20px 0;
    padding: 10px;
    text-align: justify;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.info-comparison h4 {
    font-size: 1.25rem;
    font-weight: bold;
}

.info-comparison p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.info-comparison strong {
    font-weight: bold;
}

.icon-shop {
    background: blueviolet;
    padding: 5px;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.icon-shop span {
    color: white;
    font-size: 16px;
}

.shop-info {
    border: 1px solid #dee2e6;
    padding: 5px;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}