/* ========================================
   Print Styles for Payment Documents
   ======================================== */

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    body {
        background: white !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    /* Hide all navigation and controls */
    .sidebar,
    .page-header button,
    .page-header-actions,
    .filters-bar,
    .form-actions,
    .btn,
    .nav-item,
    #userModal,
    #actionModal,
    .toast,
    .steps-indicator,
    .btn-small,
    .btn-add,
    .btn-icon,
    .login-container,
    #loginPage {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .content-page {
        padding: 0 !important;
    }
    
    .page-header {
        margin-bottom: 10px !important;
    }
    
    .page-header h1 {
        font-size: 18px !important;
    }
    
    /* Cards */
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
        margin-bottom: 10px !important;
        page-break-inside: avoid;
    }
    
    .card-header {
        background: #f0f0f0 !important;
        padding: 8px 12px !important;
        border-bottom: 1px solid #000 !important;
    }
    
    .card-header h3 {
        font-size: 12px !important;
    }
    
    .card-body {
        padding: 12px !important;
    }
    
    /* View payment content */
    .view-payment-content {
        display: block !important;
    }
    
    .view-sidebar {
        margin-top: 15px !important;
    }
    
    .view-section h4 {
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .view-grid {
        gap: 8px !important;
    }
    
    .view-item {
        padding: 6px !important;
        background: #f9f9f9 !important;
    }
    
    .view-item label {
        font-size: 9px !important;
    }
    
    .view-item span {
        font-size: 11px !important;
    }
    
    /* Tables */
    .view-items-table {
        font-size: 10px !important;
    }
    
    .view-items-table th,
    .view-items-table td {
        padding: 6px 8px !important;
        border: 1px solid #ccc !important;
    }
    
    .view-items-table th {
        background: #e5e5e5 !important;
    }
    
    .view-items-table tfoot td {
        background: #f0f0f0 !important;
    }
    
    /* Payment totals */
    .payment-totals-box {
        border: 2px solid #000 !important;
        padding: 12px !important;
        background: #f9f9f9 !important;
    }
    
    .payment-total-row {
        font-size: 12px !important;
        padding: 6px 0 !important;
    }
    
    .payment-total-row.grand-total {
        font-size: 14px !important;
        border-top: 2px solid #000 !important;
    }
    
    /* Status badge */
    .status-badge {
        border: 1px solid #000 !important;
        background: white !important;
        color: #000 !important;
        font-size: 10px !important;
    }
    
    .status-badge.approved {
        background: #d4edda !important;
    }
    
    /* Audit log - hide in print */
    .audit-log {
        display: none !important;
    }
    
    /* Page setup */
    @page {
        size: A4;
        margin: 15mm;
    }
    
    /* Signatures section for print */
    .print-signatures {
        display: flex !important;
        justify-content: space-between;
        margin-top: 40px;
        padding-top: 20px;
    }
    
    .print-signature-box {
        width: 30%;
        text-align: center;
    }
    
    .print-signature-line {
        border-top: 1px solid #000;
        padding-top: 8px;
        margin-top: 60px;
        font-weight: 600;
        font-size: 11px;
    }
    
    .print-signature-title {
        font-size: 9px;
        color: #666;
    }
}

/* Screen-only signature placeholder (hidden on screen, shown on print) */
.print-only {
    display: none;
}

@media print {
    .print-only {
        display: block !important;
    }
    
    .screen-only {
        display: none !important;
    }
}
