@media screen {
    #print-area {
        display: none !important;
    }
}

@media print {
    @page {
        margin: 10mm;
        size: letter portrait;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
    }

    body> :not(#print-area) {
        display: none !important;
    }

    #print-area {
        display: block !important;
        width: 100%;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 8pt;
        color: #000;
        margin: 0;
        padding: 0;
    }

    .print-doc {
        width: 100%;
        max-width: none;
        margin: 0;
        line-height: 1.25;
    }

    .p-header {
        text-align: center;
        margin-bottom: 15px;
        border-bottom: 2px solid #000;
        padding-bottom: 8px;
    }

    .p-header h1 {
        font-size: 13pt;
        font-weight: bold;
        margin: 0;
        text-transform: uppercase;
    }

    .p-header p {
        font-size: 9pt;
        margin: 4px 0 0 0;
    }

    .p-top-boxes {
        display: flex;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 15px;
    }

    .p-top-box {
        border: 1px solid #000;
        height: 40px;
        text-align: center;
        font-weight: bold;
        flex: 1;
        padding-top: 5px;
        font-size: 8pt;
    }

    .p-section-title {
        font-weight: bold;
        font-size: 10pt;
        margin-top: 15px;
        margin-bottom: 8px;
    }

    .p-subsection-title {
        font-weight: bold;
        font-size: 9pt;
        margin-top: 10px;
        margin-bottom: 5px;
    }

    .p-row {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

    .p-col {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .p-col-left {
        flex: 1.1;
    }

    .p-col-right {
        flex: 0.9;
    }

    .p-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 3px;
    }

    .p-label {
        font-size: 7pt;
        margin-bottom: 2px;
        line-height: 1.1;
    }

    .p-value {
        border: 1px solid #000;
        padding: 4px 6px;
        min-height: 18px;
        font-weight: bold;
        font-size: 8pt;
        text-transform: uppercase;
    }

    .p-value-large {
        border: 1px solid #000;
        padding: 4px 6px;
        min-height: 28px;
        font-weight: bold;
        font-size: 8pt;
        text-transform: uppercase;
    }

    .p-flex-row {
        display: flex;
        gap: 12px;
        margin-bottom: 3px;
    }

    .p-flex-1 {
        flex: 1;
    }

    .p-id-box {
        border: 1px solid #000;
        padding: 6px;
        display: flex;
        gap: 6px;
        margin-bottom: 6px;
    }

    .p-id-col {
        flex: 1;
    }

    .p-id-title {
        font-weight: bold;
        border-bottom: 1px solid #000;
        margin-bottom: 6px;
        font-size: 8pt;
        padding-bottom: 3px;
    }

    .p-id-row {
        display: flex;
        align-items: center;
        margin-bottom: 4px;
    }

    .p-id-lbl {
        font-size: 7pt;
        width: 70px;
        line-height: 1.1;
    }

    .p-id-val {
        border: 1px solid #000;
        flex: 1;
        min-height: 16px;
        font-weight: bold;
        padding: 2px 4px;
        font-size: 7.5pt;
    }

    .p-check-container {
        border: 1px solid #000;
        padding: 6px;
    }

    .p-check-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 1px solid #000;
        margin-bottom: 4px;
        padding: 3px 5px;
        font-size: 7pt;
    }

    .p-check-box {
        width: 12px;
        height: 12px;
        border: 1px solid #000;
        background: #eee;
    }

    .p-signatures {
        display: flex;
        justify-content: space-around;
        margin-top: 25px;
    }

    .p-sig-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 30%;
    }

    .p-sig-area {
        border: 1px solid #000;
        width: 100%;
        height: 100px;
    }

    .p-sig-label {
        font-weight: bold;
        font-size: 8pt;
        margin-top: 5px;
    }

    .p-sig-sub {
        font-size: 6.5pt;
    }

    .p-footer-legend {
        font-size: 7.5pt;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }
}