:root {
    --kh-font: "Khmer OS Battambang", "Noto Sans Khmer", "Segoe UI", sans-serif;
}

body {
    font-size: 13px;
    background-color: #f8f9fa;
    line-height: 1.6;
}

.moul-regular {
    font-family: "Moul", serif;
    font-weight: 400;
    font-style: normal;
}

.battambang-thin {
    font-family: "Battambang", system-ui;
    font-weight: 100;
    font-style: normal;
}

.battambang-light {
    font-family: "Battambang", system-ui;
    font-weight: 300;
    font-style: normal;
}

.battambang-regular {
    font-family: "Battambang", system-ui;
    font-size: 14px;
    font-style: normal;
}

.battambang-bold {
    font-family: "Battambang", system-ui;
    font-weight: 700;
    font-style: normal;
}

.battambang-black {
    font-family: "Battambang", system-ui;
    font-weight: 900;
    font-style: normal;
}

.kh-font,
.kh-font .navbar,
.kh-font .modal,
.kh-font .table,
.kh-font .form-control,
.kh-font .form-select,
.kh-font .btn,
.kh-font .dropdown-menu,
.kh-font input,
.kh-font button,
.kh-font select,
.kh-font textarea {
    font-family: var(--kh-font);
}

/* DataTable Adjustments for Mobile Scannability */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.2rem 0.5rem;
}

table.dataTable thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-index-col {
    width: 48px;
}

.loading-card {
    min-width: 220px;
    max-width: 260px;
}

.loading-overlay {
    background: rgba(12, 17, 26, 0.45);
    z-index: 1060;
}

.form-label-compact {
    font-size: 11px;
}

.btn-compact {
    font-size: 11px;
}

.tool-header-text {
    font-size: 12px;
}

/* Invoice Card Styling optimized for Mobile & Print */
.invoice-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    color: #212529;
}

.invoice-header {
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.invoice-title {
    font-size: 16px;
    font-weight: 700;
    color: #0d6efd;
    letter-spacing: 0.5px;
}

.meta-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 600;
    text-transform: uppercase;
}

.meta-value {
    font-size: 13px;
    font-weight: 600;
}

@media print {
    body * {
        visibility: hidden;
    }
    #printArea * {
        visibility: visible;
    }

    

    .no-print {
        display: none !important;
    }
}

.invoice-card {
    width: 210mm;
    min-height: 250mm;
    margin: 0 auto;
    padding: 15mm;
    background: #ffffff;
    color: #000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}

@page {
    size: A4 portrait;
}

@media print {

    #printArea * {
        visibility: visible;
    }

    #printArea table thead th,
    #printArea table thead tr th,
    #printArea thead th {
        background-color: #000 !important;
        color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .paidtext{
        background-color: #f8d7da !important;
        color: #721c24 !important;
    }
    #printArea {
        background: rgb(255, 133, 133);
        width: 210mm;
        height: 297mm;
        
        box-sizing: border-box;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        page-break-after: always;
    }

    .modal-footer,
    .modal-header,
    .btn,
    .no-print {
        display: none !important;
    }
}

.p-1 {
    border: 1px solid #dee2e6;

}
@media screen and (max-width: 768px) {
    .invoice-card {
        width: 100%;
        min-height: auto;
        padding: 10px;
    }

}

@media print {
    @page {
        size: A4;
        margin: 0;
        /* Let the browser/CSS handle content padding */
    }
}
.g-btutton-group{
    width: 210mm;
    margin: 0 auto;
    padding: 15mm;
    background: #d0ffcf;
    color: #000;
    border: none;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    overflow: hidden;
}
.text-decoration-underline{
    text-decoration: underline;
}
<style>
    body {
      font-family: Arial, sans-serif;
      text-align: center;
      padding: 30px 15px;
      background: #f5f5f5;
    }

    .image-box {
      max-width: 500px;
      margin: 0 auto 20px;
      background: white;
      padding: 15px;
      border-radius: 12px;
      box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }

    #myImage {
      width: 100%;
      max-width: 450px;
      border-radius: 8px;
      display: block;
      margin: auto;
    }

    button {
      border: none;
      background: #0d6efd;
      color: white;
      padding: 14px 25px;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
    }

    button:hover {
      background: #0b5ed7;
    }

    #message {
      margin-top: 15px;
      font-size: 14px;
    }