/* Global Receipt Styles */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #000;
    background: #fff;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.company-name {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 5px 0;
}

.receipt-title {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    background: #f0f0f0;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.section {
    margin-bottom: 25px;
}

.section-header {
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.receipt-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.receipt-label {
    width: 140px;
    color: #555;
    font-weight: 500;
}

.receipt-value {
    font-weight: bold;
    flex: 1;
}

/* For Closure Receipt specifically */
.receipt-row-alt {
    display: flex;
    margin-bottom: 12px;
    font-size: 15px;
    border-bottom: 1px solid #f9fafb;
    padding-bottom: 8px;
}

.receipt-label-alt {
    width: 200px;
    color: #555;
    font-weight: 600;
}

.status-box {
    background: #fff;
    border: 2px solid #000;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tables */
.receipt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.receipt-table th,
.receipt-table td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

.receipt-table th {
    background-color: #f9f9f9;
}

/* Footer */
.receipt-footer {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    page-break-inside: avoid;
}

.signature-box {
    text-align: center;
}

.signature-line {
    width: 200px;
    border-top: 1px solid #000;
    margin-bottom: 5px;
}

/* Print Button */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2563eb;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

@media print {
    .print-btn {
        display: none;
    }

    body {
        padding: 0;
        max-width: 100%;
        margin: 0;
    }
}

/* Payment Specific Box */
.amount-box {
    background: #fdf2f8;
    border: 2px solid #fbcfe8;
    padding: 20px;
    text-align: center;
    margin: 30px 0;
    border-radius: 8px;
}

.amount-received {
    font-size: 14px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.amount-large {
    font-size: 32px;
    font-weight: bold;
    color: #be185d;
}

.breakdown {
    background: #f9fafb;
    padding: 15px;
    border-radius: 6px;
    font-size: 14px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

/* Summary Box */
.summary-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
}