/* assets/css/print_standard.css */
@media print {

    /* Hide Web UI Elements */
    body * {
        visibility: hidden;
    }

    /* Show Only the Printable Area */
    #printableArea,
    #printableArea * {
        visibility: visible;
    }

    #printableArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Page Setup */
    @page {
        size: A4;
        margin: 10mm;
    }

    /* Typography & Layout */
    body {
        background: white;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12pt;
        color: #000;
    }

    /* Standard Header */
    .invoice-header {
        border-bottom: 2px solid #333;
        margin-bottom: 20px;
        padding-bottom: 10px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }

    .company-info h2 {
        margin: 0;
        font-size: 24px;
        text-transform: uppercase;
        font-weight: 700;
    }

    /* Tables */
    .table-print {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
    }

    .table-print th,
    .table-print td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    .table-print th {
        background-color: #f8f9fa !important;
        /* Force light gray */
        color: #000;
        -webkit-print-color-adjust: exact;
    }

    /* Totals Section */
    .totals-area {
        float: right;
        width: 40%;
        margin-top: 20px;
    }

    .totals-row {
        display: flex;
        justify-content: space-between;
        padding: 5px 0;
        border-bottom: 1px solid #eee;
    }

    .totals-row.grand-total {
        font-weight: bold;
        font-size: 14pt;
        border-top: 2px solid #000;
        border-bottom: none;
        margin-top: 10px;
        padding-top: 10px;
    }

    /* Footer */
    .invoice-footer {
        margin-top: 50px;
        text-align: center;
        font-size: 10pt;
        color: #666;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    /* Utility */
    .text-end {
        text-align: right;
    }

    .text-center {
        text-align: center;
    }

    .fw-bold {
        font-weight: bold;
    }

    /* Hide Buttons inside printable area just in case */
    .btn,
    .no-print {
        display: none !important;
    }
}