/* ============================================================
   SUMMARY BOX (SUBTOTAL, DISCOUNT, TOTAL)
============================================================ */

.receipt-summary-box {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--panel-2);
    border: 1px solid var(--border);
    margin-top: 15px;
    margin-bottom: 10px;
}

.receipt-summary-box .row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.receipt-summary-box .row.total {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    font-size: 16px;
}

/* ============================================================
   PAYMENT BOX
============================================================ */

.receipt-payment-box {
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    margin-top: 12px;
    font-size: 14px;
}

.receipt-payment-box div {
    margin: 3px 0;
    font-size: 14px;
}

.receipt-payment-box strong {
    color: var(--text);
}

/* ============================================================
   ITEMS TABLE – PRO VERSION
============================================================ */

.receipt-items-wrap {
    width: 100%;
    overflow-x: auto;
}

.receipt-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.receipt-items thead {
    background: #f3f6fb;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
}

.receipt-items th,
.receipt-items td {
    padding: 6px 10px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.receipt-items th:first-child,
.receipt-items td:first-child {
    width: 50%;
    text-align: left;
    white-space: normal;
}

.receipt-items th:nth-child(2),
.receipt-items td:nth-child(2) {
    width: 10%;
    text-align: right;
}

.receipt-items th:nth-child(3),
.receipt-items td:nth-child(3) {
    width: 15%;
    text-align: right;
}

.receipt-items th:nth-child(4),
.receipt-items td:nth-child(4) {
    width: 20%;
    text-align: right;
}

/* Mobile */
@media(max-width: 480px) {
    .receipt-items th,
    .receipt-items td {
        padding: 5px;
        font-size: 13px;
    }
}
