.invoice-wrapper {
    width: 700px;
    margin: 0 auto;
    background-color: #f9f9f9; /* Off-white background */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Shadow effect */
    padding: 20px;
    font-family: Arial, sans-serif;
}

.invoice-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.logo {
    max-width: 200px;
}

.logo img {
    width: 100%;
    height: auto;
}

.user-info {
    max-width: 400px;
}

.invoice-title {
    text-align: right;
}

.invoice-title h2 {
    margin: 0;
}

.invoice-title p {
    margin: 5px 0;
}

.invoice-body {
    margin-top: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f9f9f9;
}

.invoice-total {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.invoice-terms-conditions {
    margin-top: 40px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.invoice-footer {
    margin-top: 40px;
    text-align: center;
}

h3 {
    margin: 0;
}

/* Floating buttons container */
.invoice-actions {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000; /* Ensures the buttons stay on top of other content */
}

/* Style for each button */
.invoice-actions button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Button for downloading PDF */
.invoice-actions #download-pdf {
    background-color: #007bff;
    color: white;
}

/* Button for printing PDF */
.invoice-actions #print-pdf {
    background-color: #28a745;
    color: white;
}

/* Hover effect for both buttons */
.invoice-actions button:hover {
    opacity: 0.9;
}

/* Optional: Add a small shadow effect for better visibility */
.invoice-actions button {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Existing styles for the invoice */
.invoice-wrapper {
    width: 700px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto;  /* Center the invoice on the page */
    padding: 20px;
}

/* Remove shadow, border, and enforce white background when printing */
.print-mode {
    box-shadow: none !important;
    border: none !important;
    background-color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}


/* Add this CSS rule for print */
@media print {
    /* Set the page size for the printed PDF */
    @page {
        size: A4;  /* A4 size */
        margin: 0;  /* Remove default margin */
    }

    .invoice-wrapper {
        width: 100%; /* Make it fit to the page width */
        box-shadow: none; /* Remove the shadow for printing */
        padding: 10px 30px;  /* Adjust padding if necessary */
        box-sizing: border-box; /* Ensure padding is included in the width */
    }

    /* Force content to fit within one page */
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px;  /* Reduce font size if necessary */
    }

    /* Prevent content overflow */
    .invoice-table table {
        table-layout: fixed; /* This ensures columns do not expand beyond the page */
        width: 100%;
    }

    .invoice-table table th,
    .invoice-table table td {
        word-wrap: break-word; /* Allow text to break and prevent overflow */
        white-space: normal;  /* Prevent text from overflowing horizontally */
    }

}


