/* ===============================
   SIMPLE A4 INVOICE – PRINT SAFE
   =============================== */

@page {
    size:A4;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #000;
}
.si-logo-container{
width:20%
}

.si-logo {
    width: 50px;
    max-height: 70px;
    object-fit: contain;
}

/* PRINT VISIBILITY */
@media print {

    .simple-invoice,
    .simple-invoice * {
        visibility: visible;

        max-width: 190mm;
left:-12%;
    }

    .simple-invoice {
        position: relative;
border: 1px solid #000;
    }
}

/* ================= HEADER ================= */

.simple-invoice {
    width: 210mm;
border: 1px solid #000;
}

.si-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #000;
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.si-company-name {
    font-size: 18px;
    font-weight: bold;
}

.si-company-info {
    font-size: 10px;
    line-height: 1.3;
}

.si-invoice-meta {
    text-align: right;
    font-size: 10px;
}

.si-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 4px;
}

/* ================= PARTY ================= */

.si-party {
    border: 1px solid #000;
    padding: 6px;
    margin-bottom: 6px;
    font-size: 11px;
}

/* ================= ITEMS ================= */

.si-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
}

.si-items th,
.si-items td {
    border: 1px solid #000;
    padding: 4px;
}

.si-items th {
    background: #f2f2f2;
    text-align: center;
}

.si-items td {
    vertical-align: top;
}

.si-desc {
    font-size: 9px;
    color: #333;
    margin-top: 2px;
}

.c { text-align: center; }
.r { text-align: right; }

/* ================= TOTALS ================= */

.si-totals {
    width: 40%;
    margin-left: auto;
    border-collapse: collapse;
    font-size: 11px;
    margin-top: 6px;
}

.si-totals td {
    border: 1px solid #000;
    padding: 4px 6px;
}

.si-grand td {
    font-weight: bold;
    font-size: 12px;
}

/* ================= WORDS ================= */

.si-words {
    margin-top: 6px;
    font-size: 11px;
    border: 1px solid #000;
    padding: 5px;
}

/* ================= HSN ================= */

.si-hsn {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
    margin-top: 6px;
}

.si-hsn th,
.si-hsn td {
    border: 1px solid #000;
    padding: 4px;
}

.si-hsn th {
    background: #f2f2f2;
}

/* ================= BANK + QR ================= */

.si-bank {
    display: flex;
    justify-content: space-between;
    border: 1px solid #000;
    padding: 6px;
    margin-top: 6px;
}

.si-qr {
    text-align: center;
}

#upiQR {
    margin: 4px auto;
}

/* ================= FOOTER ================= */

.si-footer {
    display: flex;
    justify-content: space-between;
    border: 1px solid #000;
    padding: 6px;
    margin-top: 6px;
    font-size: 10px;
}

.si-sign {
    text-align: right;
}
