/* Estilos para impressão e PDF */
@media print {
    /* Esconde elementos que não devem ser impressos */
    body * {
        visibility: hidden;
    }
    
    #print-area, #print-area * {
        visibility: visible;
    }
    
    #print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
        font-family: Arial, sans-serif;
        font-size: 12px;
        color: #333;
    }
    
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #eee;
    }
    
    .print-logo {
        max-height: 50px;
        margin-bottom: 10px;
    }
    
    .print-title {
        font-size: 18px;
        margin: 10px 0;
        color: #2c3e50;
        font-weight: 600;
    }
    
    .print-date {
        color: #666;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .print-section {
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .print-section h3 {
        font-size: 14px;
        color: #2c3e50;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
        margin: 15px 0 10px;
    }
    
    .print-table {
        width: 100%;
        border-collapse: collapse;
        margin: 10px 0;
        font-size: 11px;
    }
    
    .print-table th, 
    .print-table td {
        padding: 8px;
        border: 1px solid #ddd;
        text-align: left;
    }
    
    .print-table th {
        background-color: #f5f5f5;
        font-weight: 600;
    }
    
    .print-table .text-right {
        text-align: right;
    }
    
    .print-table .negative {
        color: #d9534f;
    }
    
    .print-footer {
        margin-top: 30px;
        padding-top: 15px;
        border-top: 1px solid #eee;
        font-size: 10px;
        color: #777;
        text-align: center;
    }
    
    .print-watermark {
        position: fixed;
        bottom: 10px;
        right: 10px;
        opacity: 0.2;
        font-size: 60px;
        transform: rotate(-30deg);
        pointer-events: none;
    }
    
    .no-print {
        display: none !important;
    }
    
    @page {
        margin: 1cm;
    }
}
