.invoice-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    direction: rtl;
    font-family: sans-serif;
    margin-top: 20px;
}

/* دسکتاپ */
.invoice-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

/* ستون شرح بزرگ‌تر */
.col-title {
    width: 50%;
    text-align: right !important;
}

/* ستون‌های کوچک‌تر */
.col-qty { width: 10%; }
.col-unit { width: 20%; }
.col-total { width: 20%; }

/* -------------------------
   موبایل (نمایش کارت‌گونه)
--------------------------*/
@media (max-width: 600px) {

    .invoice-table,
    .invoice-table thead,
    .invoice-table tbody,
    .invoice-table th,
    .invoice-table td,
    .invoice-table tr {
        display: block;
        width: 100%;
    }

    /* مخفی کردن هدر جدول */
    .invoice-table thead {
        display: none;
    }

    /* هر ردیف تبدیل به یک کارت */
    .invoice-table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        padding: 10px;
        border-radius: 10px;
        background: #fafafa;
    }

    /* عنوان محصول */
    .invoice-table td.col-title {
        font-weight: bold;
        font-size: 15px;
        margin-bottom: 8px;
        text-align: right;
        white-space: normal;
    }

    /* فیلدهای دیگر */
    .invoice-table td.col-qty::before {
        content: "تعداد: ";
        font-weight: bold;
    }

    .invoice-table td.col-unit::before {
        content: "مبلغ واحد: ";
        font-weight: bold;
    }

    .invoice-table td.col-total::before {
        content: "قیمت کل: ";
        font-weight: bold;
    }

    .invoice-table td {
        text-align: right;
        padding: 6px 0;
        border: none;
        display: flex;
        justify-content: space-between;
    }
}