/* CSS cho form chỉnh sửa */
            form label {
                margin-top: 10px;
                font-weight: bold;
            }
            form input {
                padding: 8px;
                margin-top: 5px;
                margin-bottom: 10px;
                border: 1px solid #ccc;
                border-radius: 4px;
            }
            .order-options button {
                margin-right: 10px;
                padding: 10px;
                cursor: pointer;
            }
            .order-content {
                margin-top: 20px;
            }
            .order-content table {
                width: 100%;
                border-collapse: collapse;
            }
            .order-content table, .order-content th, .order-content td {
                border: 1px solid #ddd;
                padding: 8px;
            }
            .order-content th {
                background-color: #f2f2f2;
            }

/* Container chính */
.custom-background {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Căn đều bên trái */
    padding: 0px;
    background: #7ebbf9 !important;
    border-radius: 10px 10px 0px 0px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Phần bên trái (Avatar + Tên đăng nhập) */
.left-section {
    flex: 1; /* Chiếm 1 phần */
    text-align: center;
    margin-right: 20px; /* Khoảng cách với phần link */
}

.avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: auto;
    border: 3px solid #fff;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.username {
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    color: #fff;
}

/* Phần link */
.link-section {
    flex: 2; /* Chiếm 2 phần */
    display: flex;
    flex-direction: column; /* Hiển thị theo chiều dọc */
    align-items: flex-start; /* Căn trái */
    gap: 0px; /* Khoảng cách giữa các nút */
}

/* Banner chung */
.banner-container {
    width: 100%; /* Chiếm toàn bộ chiều rộng */
    height: 60px; /* Chiều cao */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    border-radius: 0px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.banner-container:hover {
    transform: scale(1.05);
}

.banner-text {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 0px 0;
    color: white;
    font-size: 11px;
    font-weight: bold;
    background: rgba(0, 0, 0, 2.5); /* Nền mờ */
}

/* Ảnh bìa riêng cho từng nút */
.banner-container:first-child {
    border-radius: 0px 10px 0px 0px;
    background-image: url('https://omemart.com/wp-content/uploads/2025/01/omewa-capture.png');
}

.banner-container:last-child {
    border-radius: 0px 0px 0px 0px;
    background-image: url('https://omemart.com/wp-content/uploads/2025/01/omewa-capture2.png'); /* Thay bằng URL ảnh thực tế */
}
/* Overlay cho popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Nội dung popup */
.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Nút đóng popup */
/* Overlay nền mờ */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Màu nền mờ */
    display: none; /* Mặc định ẩn */
    align-items: center; /* Canh giữa theo chiều dọc */
    justify-content: center; /* Canh giữa theo chiều ngang */
    z-index: 1000; /* Ưu tiên hiển thị trên cùng */
}

/* Nội dung của popup */
.popup-content {
    background-color: #fff; /* Màu nền trắng */
    border-radius: 8px; /* Bo góc */
    padding: 20px; /* Khoảng cách bên trong */
    width: 300px; /* Chiều rộng cố định */
    max-width: 90%; /* Đảm bảo không tràn màn hình */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Hiệu ứng đổ bóng */
    position: relative; /* Để định vị nút đóng */
}

/* Nút đóng (×) */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* Thêm hiệu ứng khi popup hiển thị */
.popup-overlay.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#change-password-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#change-password-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#confirmPasswordButton {
    background-color: #ff6600;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#confirmPasswordButton:hover {
    background-color: #e65500;
}
            /* CSS cho tab */
            .tab {
                display: none;
                justify-content: space-around;
                background-color:#0058bf;
                padding: 0;
                overflow: hidden;
                margin-top: 0; /* Đặt ngay dưới ảnh nền */
                border-radius: 0; /* Bỏ border-radius */
                flex-wrap: nowrap; /* Đảm bảo các nút không xuống dòng */
                border: none; /* Bỏ border */
            }
            .tab button {
                flex: 1;
                background-color: inherit;
                border: none; /* Bỏ border */
                padding: 10px 12px;
                font-size: 0.9rem;
                color: #fff;
                cursor: pointer;
                text-align: center;
                transition: background-color 0.3s, color 0.3s;
                text-transform: none;
            }
            .tab button:hover {
                background-color: #3179cd;
            }
            .tab button.active {
                background-color: #0a4a70;
                font-weight: bold;
                color: #fff;
            }
            
            /* Thu nhỏ cỡ chữ và padding trên màn hình nhỏ để đảm bảo nằm trên 1 hàng */
            @media screen and (max-width: 480px) {
                .tab button {
                    font-size: 0.7rem;
                    padding: 8px 6px;
                }
            }
            .tabcontent {
                
                display: flex;
                padding: 20px;
               /* background-color: #f0f0f0;*/
                color: #333;
                border: none; /* Bỏ border */
                border-radius: 0; /* Bỏ border-radius */
                margin-top: 0;
            }
            .account-info-container {
                display: flex;
                justify-content: space-between;
                align-items: center;
                background-color: #ecf0f1; /* Màu nền giống màu của tab */
                padding: 15px 0;
                font-weight: bold;
                color:#333;
            }
            
            .account-info-item {
                flex: 1;
                text-align: center;
                position: relative;
            }
            
            .account-info-item:not(:last-child)::after {
                content: "";
                position: absolute;
                right: 0;
                top: 10%;
                bottom: 10%;
                width: 1px;
                background-color: #fff; /* Màu đường kẻ phân cách */
                opacity: 0.6; /* Độ trong suốt của đường kẻ */
            }
            
            .account-info-item .label {
                font-size: 14px;
            }
            
            .account-info-item .value {
                font-size: 12px;
                font-weight: bold;
            }

/* tài khoản */
.profile-header {
    display: flex; /* Canh hàng ngang */
    align-items: center; /* Canh giữa theo chiều dọc */
    gap: 10px; /* Khoảng cách giữa avatar và tên đăng nhập */
    width: 100%; /* Đảm bảo chiếm toàn bộ chiều ngang */
    justify-content: space-between;
}

/* Avatar Container */
.avatar-wrapper {
    position: relative;
    width: 40% !important;  /* Kích thước cố định */
    height: 40% !important; /* Tỷ lệ 1:1 */
}

/* Avatar Wrapper */
.avatar-wrapper {
    position: relative;
    width: 30% !important;
    height: 30% !important;
    border-radius: 0%; /* Làm tròn */
    overflow: hidden; /* Ẩn phần thừa */
    background-color: #f0f0f0;
}

/* Edit Overlay */
.edit-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 5px 0;
    cursor: pointer;
}

/* Login Info */
.login-info {
    flex: 1; /* Chiếm không gian còn lại */
    max-width: calc(100% - 120px); /* Chiều rộng trừ đi kích thước avatar và khoảng cách */
}

.login-info label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.login-info input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #666;
    cursor: not-allowed;
}

/* Các trường thông tin cá nhân */
.personal-info {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

.personal-info .form-group {
    width: 48%; /* Hai cột ngang */
}

.personal-info label {
    display: block;
    margin-bottom: 0px;
    font-weight: bold;
}

.personal-info input,
.personal-info select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Nút lưu */
button#saveButton {
    background-color: #ff4500;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

button#saveButton:hover {
    background-color: #e63e00;
}
@media (max-width: 768px) {
    .personal-info .form-group {
    width: 100%; /* Hai cột ngang */
}
}
.actions-container {
    display: flex; /* Hiển thị theo hàng ngang */
    justify-content: space-between; /* Đưa các phần tử về hai bên */
    align-items: center; /* Canh giữa theo chiều dọc */
}

.change-password {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.change-password:hover {
    text-decoration: underline;
}

.contract-link {
    margin-left: auto; /* Đẩy liên kết "Hợp đồng" sát lề phải */
}

            
            .order-options {
                display: flex;
                justify-content: space-between; /* Đặt mỗi span sát một lề */
                margin-top: 10px;
            }
            
            .order-link {
                cursor: pointer;
                font-weight: normal;
                text-decoration: none;
                color: #0073aa;
            }
            
            .order-link.active {
                font-weight: bold;
                text-decoration: underline;
                color: #000;
            }
            .action-buttons-table {
                        width: auto; /* Để bảng có độ rộng tự động theo nội dung */
                        border-collapse: collapse; /* Loại bỏ khoảng cách giữa các ô */
                    }
            
                    .action-buttons-table td {
                        padding: 0; /* Xóa khoảng cách padding giữa các ô */
                        border: none; /* Loại bỏ vạch kẻ */
                    }
            
                    .button-link {
                        display: inline-block;
                        padding: 5px 10px;
                        text-decoration: none;
                        margin-bottom: 2px; /* Thêm khoảng cách nhỏ giữa các nút */
                    }
                    .tab {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
        }

        /* Các nút tab */
        .tablinks {
            font-size: 10px; /* Cỡ chữ mặc định */
        }
        #incomeChart {
    max-height: 400px; /* Giới hạn chiều cao */
    width: 100%; /* Chiều rộng linh hoạt */
    margin: 0 auto; /* Căn giữa */
}
/* Ẩn tất cả các tab mặc định */
.tabcontent {
    display: block; /* Mặc định ẩn */
}

/* Tab "Sản phẩm" hiển thị mặc định */
#thongtin {
    display: block; /* Hiển thị mặc định */
}

/* Hiển thị tab được kích hoạt */
.tabcontent.active {
    display: block;
}

/* Định dạng nút khi được chọn */
.tab button.active {
    background-color: #0a4a70; /* Màu nền cho nút đang được chọn */
    font-weight: bold;
    color: #fff;
}
#orderDetailsOverlay {
                        position: fixed;
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        background: rgba(0, 0, 0, 0.8);
                        display: none;
                        align-items: center;
                        justify-content: center;
                        z-index: 1000;
                    }
                    .order-details-content {
                        background: #fff;
                        padding: 20px;
                        border-radius: 8px;
                        width: 90%;
                        max-width: 600px;
                        max-height: 80%;
                        overflow-y: auto;
                        position: relative;
                    }
                    .close-button {
                        position: absolute;
                        top: 10px;
                        right: 20px;
                        font-size: 24px;
                        cursor: pointer;
                        color: #333;
                    }
                    h3, h4 {
                        color: #4CAF50;
                        text-align: center;
                        margin-top: 0;
                    }
                    p {
                        margin: 5px 0;
                    }
                    .order-details-content p strong {
                        font-size: 16px;
                    }
.hidden-field {
    display: none !important;
}
button#saveButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
 .pending-withdrawal {
            background-color: #fff3cd;
            padding: 15px;
            margin-top: 10px;
            border-left: 5px solid #d4a100;
        }
        .cancel-button {
            background-color: #d9534f;
            color: white;
            border: none;
            padding: 10px;
            cursor: pointer;
        }
        .withdraw-button {
            background-color: #28a745;
            color: white;
            padding: 10px;
            cursor: pointer;
            border: none;
        }
        .withdraw-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: white;
            padding: 20px;
            border: 1px solid #ddd;
            box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
        }
        .withdraw-popup-content {
            text-align: center;
        }
        .close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 20px;
            cursor: pointer;
        }
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.transaction-table tr {
    border-bottom: 1px solid #ddd;
}

.positive {
    color: green; /* Màu xanh cho doanh thu đơn hàng */
    font-weight: bold;
}

.negative {
    color: red; /* Màu đỏ cho lệnh rút tiền đã hoàn thành */
    font-weight: bold;
}

.pending {
    color: orange; /* Màu vàng cho lệnh rút tiền đang chờ xử lý */
    font-weight: bold;
}

.no-transaction {
    text-align: center;
    color: gray;
    font-style: italic;
    padding: 15px;
}
/* Style cho popup */
.custom-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Nút đóng popup giống hệ thống */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #555;
    transition: 0.3s;
}

.close-popup:hover {
    color: red;
}
.policy-content {
    text-align: justify; /* Căn đều hai bên */
    font-size: 14px; /* Giảm cỡ chữ */
    line-height: 1.6; /* Giãn dòng giúp dễ đọc */
    margin: 0 5px; /* Cách lề trái và phải */
}

.policy-content h3, 
.policy-content h4 {
    text-align: left; /* Tiêu đề căn giữa */
    font-size: 16px; /* Giảm cỡ chữ tiêu đề */
    font-weight: bold;
    margin: 0 0px;
}
.policy-content p, 
.policy-content li {
    font-size: 13px; /* Giảm cỡ chữ của đoạn văn và danh sách */
    line-height: 1.5; /* Điều chỉnh khoảng cách dòng */
}
.checkbox-container label {
    display: flex;
    align-items: center; /* Căn giữa theo chiều dọc */
    gap: 8px; /* Khoảng cách giữa checkbox và chữ */
    cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: auto;
    justify-content: space-between;
}

.product-lazu-item {
    background-color: white;
    border-radius: 20px;
    text-align: center;
    box-sizing: border-box;
    padding: 15px;
    flex: 1 1 calc(16.66% - 20px);
    max-width: calc(16.66% - 20px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Tiêu đề */
.product-lazu-item h4 {
    color: #1f4daa;
    font-size: 1rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Nội dung mô tả */
.product-lazu-item p {
    color: #333;
    font-size: 0.85rem;
    margin: 5px 10px;
    line-height: 1.5;
}

/* Thiết kế trên di động */
@media (max-width: 768px) {
    .product-lazu-item {
        flex: 1 1 calc(50% - 20px); /* Hiển thị 2 sản phẩm mỗi hàng */
        max-width: calc(50% - 20px);
    }
}
.myorder {
    color: blue;
    text-decoration: underline;
}

.feedback-table table {
    width: 100%;
    border-collapse: collapse;
}
.feedback-table th, .feedback-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.feedback-table th {
    background-color: #f2f2f2;
}
.feedback-table p {
    text-align: center;
    color: #777;
}