﻿/* ============================================================
   RECEIPT — Print + Screen styles
   Matches the mockup: clean, professional, Jane-app style
   ============================================================ */

.receipt-document {
    max-width: 780px;
    margin: 40px auto;
    padding: 50px;
    background: #fff;
    color: #1f2937;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* Header */
.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.receipt-clinic-block {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.receipt-logo {
    width: 80px;
    height: 80px;
    background: #4b0082;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border-radius: 4px;
}

.receipt-clinic-info h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.receipt-clinic-info p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.6;
}

.receipt-meta {
    text-align: right;
}

.receipt-title {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
    letter-spacing: -0.5px;
}

.receipt-meta-row {
    font-size: 12px;
    color: #6b7280;
    margin: 2px 0;
}

    .receipt-meta-row strong {
        color: #111827;
        font-weight: 500;
    }

/* Customer block */
.receipt-customer {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
}

.receipt-customer-label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
}

.receipt-customer-info p {
    margin: 0;
    line-height: 1.6;
}

.receipt-customer-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

.receipt-customer-detail {
    font-size: 12px;
    color: #6b7280;
}

/* Items table */
.receipt-items {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0 10px 0;
}

    .receipt-items thead th {
        text-align: left;
        font-weight: 500;
        font-size: 12px;
        color: #6b7280;
        padding: 10px 8px;
        border-bottom: 1px solid #d1d5db;
    }

        .receipt-items thead th.text-right {
            text-align: right;
        }

        .receipt-items thead th.text-center {
            text-align: center;
        }

    .receipt-items tbody td {
        padding: 14px 8px;
        border-bottom: 1px solid #f3f4f6;
        font-size: 13px;
        color: #374151;
    }

        .receipt-items tbody td.text-right {
            text-align: right;
        }

        .receipt-items tbody td.text-center {
            text-align: center;
        }

        .receipt-items tbody td.line-total {
            font-weight: 600;
            color: #111827;
        }

/* Totals */
.receipt-totals {
    width: 100%;
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.receipt-totals-table {
    width: 320px;
    font-size: 13px;
}

.receipt-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 8px;
}

    .receipt-totals-row.subtotal-row {
        border-bottom: 1px solid #f3f4f6;
    }

    .receipt-totals-row.total-row {
        font-weight: 700;
        font-size: 14px;
        color: #111827;
        border-top: 1px solid #d1d5db;
        border-bottom: 1px solid #d1d5db;
        padding: 10px 8px;
        margin-top: 4px;
    }

    .receipt-totals-row .label {
        color: #6b7280;
    }

    .receipt-totals-row.total-row .label,
    .receipt-totals-row.total-row .value {
        color: #111827;
    }

/* Payment details */
.receipt-payments {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

    .receipt-payments h4 {
        font-size: 14px;
        font-weight: 600;
        color: #111827;
        margin: 0 0 12px 0;
    }

.receipt-payments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .receipt-payments-table td {
        padding: 8px 0;
        color: #374151;
    }

        .receipt-payments-table td.text-right {
            text-align: right;
            font-weight: 500;
        }

/* Print rules */
@media print {
    body * {
        visibility: hidden;
    }

    .receipt-document, .receipt-document * {
        visibility: visible;
    }

    .receipt-document {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
        padding: 30px;
    }

    .no-print {
        display: none !important;
    }
}
