@page {
    size: 80mm auto;
    margin: 4mm;
}

body {
    font-family: Arial, sans-serif;
    font-size: 11px;
    margin: 0;
    padding: 0;
}

.thermal-invoice {
    width: 72mm;           /* printable area inside 80mm */
    margin: 0 auto;
}

.th-center {
    text-align: center;
}

.th-left {
    text-align: left;
}

.th-small {
    font-size: 10px;
}

.th-company {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.th-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
}

hr {
    border: none;
    border-top: 1px dashed #000;
    margin: 5px 0;
}

.th-items {
    width: 100%;
    border-collapse: collapse;
}

.th-items th {
    border-bottom: 1px solid #000;
    font-size: 10px;
    padding-bottom: 2px;
}

.th-items td {
    padding: 2px 0;
    vertical-align: top;
}

.th-desc {
    font-size: 9px;
    color: #333;
}

.th-grand td {
    font-size: 13px;
    font-weight: bold;
    border-top: 1px solid #000;
}

#barcode {
    width: 100%;
    height: 40px;
}

#upiQR {
    margin: 5px auto;
}

#upiQR canvas,
#upiQR img {
    width: 90px !important;
    height: 90px !important;
}

@media print {
    .print-toolbar,
    .sidebar,
    .topbar,
    .no-print {
        display: none !important;
    }
}
