@media print {
    #wpadminbar, #adminmenumain, .invoices-header, #wpfooter, button, a{ display:none !important;}
    .invoice-container{
        max-width: 100%;
        margin: 0 !important;
        border: none;
        border-radius:0;
        padding: 20px;
        box-shadow: none !important;
        background:white;
    }
    #wpcontent, .wp-toolbar, .wrap{
        margin: 0px !important;
        padding: 0px !important;
    }
}
.invoice-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px; /* Rounded corners */
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}
.company-info-container {
    display: flex;
    justify-content: space-between;
}
.invoice-header, .invoice-footer {
    text-align: center;
    margin-bottom: 30px;
}
.invoice-header h1 {
    color: #4A90E2;
    margin: 0;
    font-size: 28px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A90E2;
    display: inline-block;
}
.company-info, .invoice-details, .bill-to-ship-to, .item-table, .totals, .notes {
    margin-bottom: 25px;
    border-radius: 6px; /* Rounded corners for sections */
}
.company-info p, .invoice-details p {
    margin: 5px 0;
}
.invoice-details table {
    width: 100%;
    border-collapse: collapse;
}
.invoice-details table td {
    padding: 8px 0;
}
.invoice-details table td:first-child {
    font-weight: bold;
    width: 120px;
}
.bill-to-ship-to {
    display: flex; /* Using flexbox for layout */
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.bill-to, .ship-to {
    width: 48%; /* Almost half width */
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 6px; /* Rounded corners */
    box-sizing: border-box; /* Include padding in width */
}
.bill-to h3, .ship-to h3 {
    margin-top: 0;
    color: #555;
    font-size: 16px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}
.item-table table {
    width: 100%;
    border-collapse: collapse;
}
.item-table th, .item-table td {
    border: 1px solid #eee;
    padding: 12px;
    text-align: left;
}
.item-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #555;
}
.item-table td:last-child,
.item-table th:last-child {
    text-align: right; /* Align total column to right */
}
.totals table {
    width: 100%;
    border-collapse: collapse;
}
.totals td {
    padding: 8px 0;
    text-align: right;
}
.totals td:first-child {
    font-weight: bold;
    padding-right: 20px;
}
.totals .grand-total td {
    font-size: 18px;
    font-weight: bold;
    color: #4A90E2;
    border-top: 2px solid #4A90E2;
    padding-top: 15px;
}
.notes p {
    font-style: italic;
    color: #777;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #eee;
}
.invoice-footer p {
    color: #777;
    font-size: 12px;
}

.invoice-footer p:first-child {
    border-top: 1px solid #ddd;
    margin-top: 20px;
    padding-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .invoice-container {
        padding: 15px;
    }
    .bill-to-ship-to {
        flex-direction: column; /* Stack vertically on small screens */
    }
    .bill-to, .ship-to {
        width: 100%;
        margin-bottom: 15px;
    }
    .item-table th, .item-table td {
        padding: 8px; /* Reduce padding for smaller screens */
    }
}