/* GLOBAL TEXT */
body, table, td, th, div, span, p {
    font-size: 14px;
    line-height: 16px;
}

/* A4 PAGE */
.page {
    width: 794px !important;
    height: 1123px !important;
    background: white;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}


.pdf-area {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;           /* invisible but still rendered */
    pointer-events: none; /* cannot be clicked */
    z-index: -1;          /* behind everything */
}


/* Header */
.header-image img {
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* TOP LINE */
.top-line {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
}

/* Title */
h2.center {
    text-align: center;
    font-size: 18px;
    margin: 30px 0;
}

/* Workorder */
.workorder-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
}

td, th {
    border: 1px solid #000;
    padding: 3px 5px;
}

/* Stamp box */
.stamp-box {
    width: 125px;
    height: 125px;
    margin-left: auto;
    margin-bottom: 20px;
    background: transparent;
    border: none;
}

/* Sonaco Signature */
.sonaco-sign-block {
    text-align: right;
    margin-bottom: 20px;
}

/* Receipt title */
.receipt-title {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Receipt content */
.receipt-center-text {
    text-align: center;
    margin-bottom: 10px;
}

/* Bottom-right signature */
.signature-absolute {
    position: absolute;
    bottom: 60px;
    right: 20px;
    font-size: 14px;
    text-align: left;
    line-height: 16px;
}

#pageTemplate, .page {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    scale: 1 !important;
    zoom: 1 !important;
}

