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

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

.thermal-invoice {
    width: 72mm;
    margin: 0 auto;
}

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

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

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

.th-logo {
    max-width: 40mm;
    max-height: 20mm;
    margin-bottom: 4px;
}

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

#barcode {
    width: 100%;
    height: 38px;
    margin: 4px 0;
}

.th-items {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

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

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

.th-hsn {
    font-size: 8px;
    color: #333;
}

.th-desc {
    font-size: 8px;
    color: #444;
    line-height: 1.2;
}

.th-totals td {
    padding: 2px 0;
    font-size: 10px;
}

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

#upiQR {
    margin: 4px auto;
}

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

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