﻿.invitation-letter-b1 {
    font-family: Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    border: 0px solid #ccc;
    padding: 20mm;
    width: 210mm;
    min-height: 297mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.letter-header, .letter-section, .letter-footer {
    width: 100%;
}

.letter-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 20px;
}

    .letter-header img {
        height: 60px;
        margin-bottom: 5px;
    }

    .letter-header h4, .letter-header h5 {
        margin: 0;
        padding: 0;
        line-height: 1.2;
    }

    .letter-header h4 {
        font-size: 14pt;
    }

    .letter-header h5 {
        font-size: 10pt;
    }

    .letter-header .hhid-box {
        position: absolute;
        top: 0;
        right: 0;
        border: 1px solid black;
        padding: 5px 10px;
        font-weight: bold;
    }

.letter-section {
    margin-bottom: 15px;
}

.section-title {
    font-weight: bold;
    background-color: #eee;
    padding: 5px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-field {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

    .section-field.full-width {
        flex: 1 1 100%;
    }

.field-label {
    font-weight: bold;
    min-width: 100px;
    margin-right: 5px;
    white-space: nowrap;
}

.field-box {
    border: 1px solid black;
    padding: 3px 5px;
    flex-grow: 1;
    min-width: 150px;
    word-break: break-all;
}

.field-checkbox-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.field-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-box {
    border: 1px solid black;
    width: 12px;
    height: 12px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    line-height: 12px;
}

.household-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .household-table th, .household-table td {
        border: 1px solid black;
        padding: 5px;
        text-align: left;
        vertical-align: top;
    }

    .household-table th {
        background-color: #f2f2f2;
        font-weight: bold;
        font-size: 9pt;
    }

    .household-table td {
        font-size: 9pt;
    }

    .household-table .col-no {
        width: 30px;
        text-align: center;
    }

    .household-table .col-name {
        width: 25%;
    }

    .household-table .col-id-type-num {
        width: 35%;
    }

    .household-table .col-oap-ovc {
        width: 20%;
        text-align: center;
    }

        .household-table .col-oap-ovc .checkbox-box {
            display: inline-block;
        }

.section-title-row td {
    text-align: center !important;
    font-weight: bold !important;
    background-color: #f2f2f2;
}

.letter-footer-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

.footer-text {
    font-size: 9pt;
    margin-bottom: 10px;
}

    .footer-text p {
        margin: 0;
        padding: 0;
        margin-bottom: 5px;
    }

.signature-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.signature-field {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
}

.signature-box {
    border: 1px solid black;
    height: 25px;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px 5px;
    word-break: break-all;
}

.signature-label {
    font-weight: bold;
    font-size: 9pt;
}

.instructions-section {
    margin-top: 20px;
    border-top: 1px solid #ccc;
    padding-top: 10px;
}

.instructions-title {
    font-weight: bold;
    font-size: 10pt;
    margin-bottom: 5px;
}

.instructions-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin-top: 0;
}

    .instructions-list li {
        margin-bottom: 5px;
        font-size: 9pt;
    }

.important-note {
    font-weight: bold;
    color: red;
    margin-top: 10px;
}

.date-time-note {
    font-size: 9pt;
    margin-top: 10px;
}

.letter-for-pdf-gen {
    width: 210mm;
    height: 297mm;
    box-sizing: border-box;
    page-break-after: always;
}

    .letter-for-pdf-gen:last-of-type {
        page-break-after: avoid;
    }
