@page {
    size: 215.9mm 330.2mm; /* Folio / Philippine Legal (8.5in x 13in) */
    margin: 6mm 10mm 6mm 10mm;
}

body.gcs-form-body {
    background-color: #525659;
    margin: 0;
    padding: 0;
    font-family: 'Calibri', Arial, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.gcs-sheet-portrait {
    width: 215.9mm;
    min-height: 330.2mm;
    padding: 8mm 14mm 24mm 14mm;
    box-sizing: border-box;
    position: relative;
    background: #ffffff;
    margin: 0 auto;
    color: #000000;
}

.appointment-header-container {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
}

.appointment-header-dept {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    font-weight: bold;
    letter-spacing: 0.2px;
    text-align: center;
    color: #000000;
    margin-top: 6px;
    margin-bottom: 8px;
    line-height: 12pt;
}

.appointment-header-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 14pt;
    font-weight: bold !important;
    letter-spacing: 0.2px;
    text-align: center;
    color: #000000;
    margin-top: 0;
    margin-bottom: 16px;
    line-height: 16pt;
}

.notes-meta-grid {
    width: 100%;
    margin-bottom: 14px;
    font-size: 11pt;
    line-height: 13.5pt;
    color: #000000;
}

.notes-meta-row {
    display: flex;
    width: 100%;
    align-items: baseline;
    margin-bottom: 3.5px;
}

.notes-meta-col-left {
    width: 86mm;
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    padding-right: 14px;
    box-sizing: border-box;
}

.notes-meta-col-right {
    flex: 1;
    display: flex;
    align-items: baseline;
    box-sizing: border-box;
}

.notes-meta-label {
    font-weight: bold;
    white-space: nowrap;
    margin-right: 4px;
}

.notes-meta-line {
    flex: 1;
    border-bottom: 1px solid #000;
    padding: 0 4px;
    font-weight: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
    text-align: center;
}

.left-tab-label {
    width: 29.5mm;
    min-width: 29.5mm;
    flex-shrink: 0;
    display: inline-block;
}

.right-tab-label {
    width: 30mm;
    min-width: 30mm;
    flex-shrink: 0;
    display: inline-block;
}

.calibri-bold {
    font-family: 'Calibri', Arial, sans-serif;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 4px;
}

.times-bold {
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 4px;
}

.calibri-normal {
    font-family: 'Calibri', Arial, sans-serif;
    font-weight: normal;
}

.times-normal {
    font-family: 'Times New Roman', Times, serif;
    font-weight: normal;
}

.notes-section-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 12pt;
    font-weight: bold;
    color: #000000;
    margin-top: 14px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.gcs-notes-ruled {
    width: 100%;
    border-bottom: 1px solid #000;
    height: 19.5px;
    line-height: 19.5px;
    font-size: 10pt;
    font-family: 'Calibri', Arial, sans-serif;
    padding: 0 4px;
    white-space: pre-wrap;
    box-sizing: border-box;
}

/* Official Footer Container (Centered Address & SOCOTEC ISO Seal) */
.appointment-footer-container {
    position: absolute;
    bottom: 6mm;
    left: 0;
    right: 0;
    width: 100%;
    height: 1.86cm;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: none;
    padding: 0 14mm;
}

.appointment-footer-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.5mm;
    text-align: center;
    font-family: 'Times New Roman', Times, serif;
    font-size: 7.5pt;
    line-height: 1.35;
    color: #000000;
    pointer-events: auto;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap;
}

.appointment-footer-text div:first-child {
    margin-bottom: 2px;
}

.appointment-footer-text a {
    color: #000000;
    text-decoration: none;
}

.appointment-footer-socotec {
    position: absolute;
    right: 14mm;
    bottom: 0;
    width: 3.6cm;
    height: 1.86cm;
    object-fit: fill;
    display: block;
    pointer-events: auto;
}

@media print {
    body.gcs-form-body {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .gcs-toolbar {
        display: none !important;
    }
    .gcs-paper-viewport {
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    .gcs-sheet-portrait {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 6mm 14mm 20mm 14mm !important;
    }
    .appointment-footer-container {
        position: absolute !important;
        bottom: 4mm !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
    }
    .appointment-footer-text {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0 !important;
        margin: 0 !important;
        text-align: center !important;
    }
    .appointment-footer-socotec {
        position: absolute !important;
        right: 14mm !important;
        bottom: 0 !important;
    }
}
