body {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    background: #f9f9f9;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ccc;
}

.header {
    text-align: center;
    margin-bottom: 5px;
}

.header img {
    max-width: 150px;
    margin-top: 35px;
}

.btn-container {
    margin: 20px 0;
    text-align: center;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    font-size: 16px; /* Consistent table font size */
}

.totals {
    margin-top: 10px;
}

.totals p {
    margin: 5px 0;
    font-size: 16px; /* Consistent font size */
}

.line {
    border-top: 1px solid #000;
}

.bank-details {
    text-align: left;
    margin: 20px 0px;
}

.bank-details p {
    margin-bottom: 5px;
    font-size: 15px;
}

.bank-details p strong {
    font-weight: bold;
}

.signature-boxes {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.signature-box {
    width: 45%;
    border: 1px solid #ddd;
    padding: 40px;
    text-align: center;
}

.company-details {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-top: 20px;
    margin-bottom: 20px;
}

.company-details p {
    margin-bottom: 5px;
    font-size: 12px;
}

.company-details p:first-child {
    font-weight: bold;
}

.details {
    margin-bottom: 20px;
}

.field-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.field {
    width: 48%;
}

.field strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.field span,
.field input,
.field select {
    display: block;
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 16px; /* Consistent font size for input fields */
}

.client-address {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    min-height: 50px;
}

.note {
    font-size: 10px;
    margin: 5px 0px;
}

.warn {
    font-size: 8px;
    margin: 0px;
}

/* New Client Select Styles */
.client-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    font-size: 16px;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    margin-bottom: 5px;
}

/* Error Message Styles */
.error-message {
    color: red;
    font-size: 12px;
    margin-top: 2px;
    display: block;
}

.table-error {
    color: red;
    font-size: 12px;
    margin-top: 5px;
}

/* Navigation Button Styles */
.top-right-button {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 10px;
    cursor: pointer;
}

.top-left-button {
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: #009dff;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 10px;
    cursor: pointer;
}

/* Text Transform Styles */
input,
span[contenteditable="true"],
select {
    text-transform: uppercase;
    font-size: 16px; /* Consistent font size for input fields */
}

[contenteditable="true"] {
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #000;
    white-space: pre-wrap;
}

/* Print Styles */
@media print {
    .hide-in-pdf {
        display: none !important;
    }

    #invoice-wrapper {
        page-break-inside: avoid;
    }

    .page-break {
        page-break-before: always;
    }

    .table th,
    .table td {
        font-size: 16px; /* Ensure consistent font size in print */
    }
}

/* PDF Export Styles */
.pdf-export {
    font-size: 16px !important;
    line-height: 1.5 !important;
    padding: 10px;
}

.pdf-export .field {
    margin-bottom: 10px !important;
}

.pdf-export .field span,
.pdf-export .field input,
.pdf-export .field select {
    padding: 5px !important;
    font-size: 16px !important; /* Match input field font size in export */
}

.pdf-export .totals p {
    margin: 3px 0 !important;
}

.pdf-export .table th,
.pdf-export .table td {
    font-size: 16px !important; /* Match table font size in export */
}