/* style.css */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.container {
    padding-top: 20px;
}

h1 {
    font-weight: bold;
    color: #0d6efd;
}

.card-header {
    background-color: #0d6efd !important;
    color: white !important;
    font-weight: bold;
}

#add-product-btn {
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: bold;
}

.product-item {
    transition: background-color 0.2s ease-in-out;
}

.product-item:hover {
    background-color: #e9ecef !important;
}

/* Sửa lỗi căn chỉnh các ô input và nút xóa trong hàng sản phẩm */
.product-item .row.g-3 {
    align-items: center; /* Căn giữa tất cả các cột con theo chiều dọc */
}

.remove-product-btn {
    align-self: center;
}

#grandTotal {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.ui-menu-item {
    padding: 0.5rem 1rem;
}

.ui-menu-item:hover,
.ui-menu-item-active {
    background-color: #0d6efd;
    color: white;
}

/* --- Bắt đầu phần CSS dành cho in ấn --- */
@media print {
    /* Ẩn các thành phần không cần thiết như header, footer, sidebar */
    body > :not(.print-container) {
        display: none !important;
    }

    /* Hiển thị nội dung in và reset lại các style */
    .print-container {
        display: block !important;
        width: 100%;
        font-family: Arial, sans-serif;
        color: #000;
        margin: 0;
        padding: 20px;
    }

    /* Tùy chỉnh các style cho bảng, chữ, v.v. */
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
    }

    .table {
        border-collapse: collapse;
        width: 100%;
        margin-bottom: 1rem;
    }

    .table th, .table td {
        border: 1px solid #ccc;
        padding: 8px;
    }
}
/* --- Kết thúc phần CSS dành cho in ấn --- */