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

#pos-invoice {
    padding: 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
}

#pos-invoice * {
    padding: 0 !important;
    margin: 0;
}

#pos-invoice h2 {
    font-size: 11px !important;
    font-weight: 700;
}

#pos-invoice h3 {
    font-size: 9px !important;
    font-weight: 600;
}

#pos-invoice h4 {
    font-size: 9px !important;
    font-weight: 500;
}

.company-details {
    text-align: center;
    border-bottom: 2px dotted #ddd !important;
    padding-bottom: 4px !important;
}

.company-details h2,
.company-details h4,
.company-details p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

.company-address {
    white-space: pre;
}

.invoice-customer-details {
    width: 100%;
}

.invoice-customer-details td {
    font-size: 9px !important;
    letter-spacing: 0.5px;
    word-spacing: 2px;
    line-height: 1.35;
    padding-left: 2px !important;
    padding-right: 2px !important;
    vertical-align: top;
}

.invoice-customer-details td:nth-child(2) {
    text-align: right;
}

.tax-invoice-title {
    text-align: center;
    font-size: 9px !important;
}

.tax-invoice-items table {
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

.tax-invoice-items td,
.tax-invoice-items thead td,
.item-row-other td {
    vertical-align: top;
    font-size: 9px !important;
    line-height: 1.2;
}

.tax-invoice-items thead td {
    font-weight: 600;
}

.tax-invoice-items td:not(.invoice-item-name) {
    white-space: nowrap;
}

.tax-invoice-items .invoice-item-name {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.item-row {
    border-bottom: none !important;
}

.tax-invoice-totals {
    border-top: none !important;
    border-bottom: none !important;
}

.tax-invoice-totals td:nth-child(1) {
    text-align: left;
}

.tax-invoice-totals td:nth-child(2) {
    text-align: center;
}

.tax-invoice-totals td:nth-child(3) {
    text-align: right;
}

.tax-invoice-totals h3 {
    font-size: 9px !important;
    font-weight: 600;
    line-height: 1.2;
}

.thanks-details {
    text-align: center;
}

.thanks-details h3 {
    font-size: 8px !important;
    font-weight: 500;
    line-height: 1.2;
}

.barcode-details {
    text-align: center;
}

.footer-button {
    text-align: center !important;
}

.discount-details {
    border-top: none !important;
    border-bottom: none !important;
}

.discount-details p {
    margin-bottom: 0px;
    font-size: 9px !important;
    font-weight: 600;
    line-height: 1.2;
}

@media print {
    body,
    #pos-invoice {
        font-size: 9px !important;
    }

    #pos-invoice h2 {
        font-size: 11px !important;
    }

    #pos-invoice h3,
    #pos-invoice h4,
    .tax-invoice-items td,
    .invoice-customer-details td,
    .discount-details p {
        font-size: 9px !important;
    }

    .thanks-details h3 {
        font-size: 8px !important;
    }
}
