/* ================================
   UNIVERSAL RECEIPT PRINT CSS
   Works for both: Website + User Panel
==================================*/

@media print {

    body * {
        visibility: hidden !important;
    }

    .receipt-container,
    .receipt-container * {
        visibility: visible !important;
    }

    .receipt-container {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: white !important;
    }

    .action-buttons {
        display: none !important;
    }

    @page {
        margin: 10mm;
    }
}

.receipt-container {
    max-width: 750px;
    margin: 120px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0px 6px 28px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
    font-family: 'Inter', sans-serif;
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.receipt-info-table th {
    width: 220px;
    background: #f7f9fc;
    font-weight: 600;
    color: #333;
}

.receipt-info-table td {
    font-weight: 500;
    color: #444;
}

.amount-box-pro {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 12px;
    margin-top: 25px;
    margin-bottom: 10px;
}

.amount-title {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 3px;
}

.amount-value {
    font-size: 26px;
    font-weight: 800;
    color: #059669;
}

.status-success {
    color: #28a745;
    font-weight: bold;
}

.status-failed {
    color: #dc3545;
    font-weight: bold;
}

.qr-box {
    text-align: center;
    margin-top: 20px;
}

.footer-note {
    text-align: center;
    font-size: 12px;
    color: #777;
    margin-top: 20px;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-sm-custom {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}