@page {
    size: landscape;
    margin: 6mm 10mm;
}

/* Appointment Log Header (Exact Word File Layout: 15.12cm x 3.51cm Logo & Bottom-Aligned Doc Code Box) */
.appointment-header-container {
    position: relative;
    width: 100%;
    margin-bottom: 6px;
}

.appointment-banner-row {
    position: relative;
    width: 100%;
    min-height: 3.51cm;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.appointment-header-logo {
    width: 15.12cm !important;
    height: 3.51cm !important;
    max-width: none !important;
    object-fit: fill !important;
    display: block;
    margin: 0 auto;
}

/* Document Code Box (Exact Word Layout: 5.2cm Width x 1.99cm Height) */
.appointment-doc-box-wrap {
    position: absolute;
    right: 0;
    bottom: 0.5mm;
    top: auto;
    width: 5.2cm;
    height: 1.99cm;
}

.appointment-doc-box-wrap .gcs-doc-code-box {
    width: 5.2cm !important;
    height: 1.99cm !important;
    border: 1.5px solid #000;
    border-collapse: collapse;
    table-layout: fixed;
    background: #ffffff;
    box-sizing: border-box;
}

.appointment-doc-box-wrap .gcs-doc-code-box td {
    border: 1px solid #000;
    text-align: center;
    vertical-align: middle;
    line-height: 1.15;
    padding: 0;
    box-sizing: border-box;
}

.appointment-doc-box-wrap .doc-blue-header {
    background-color: #001f5f !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 6.5pt;
    font-weight: bold;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.appointment-doc-box-wrap .doc-code-title {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9.5pt;
    font-weight: bold;
    letter-spacing: 0.2px;
}

.appointment-doc-box-wrap .doc-sub-val {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 7.5pt;
}

.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: 5px;
    line-height: 1.2;
}

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

/* Footer & SOCOTEC ISO Layout (Exact Word Specs: Cambria 7.5pt Centered, 3.6cm x 1.86cm SOCOTEC Stamp) */
.appointment-footer-exact {
    position: absolute;
    bottom: 5mm;
    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: 'Cambria', Georgia, 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 !important;
    height: 1.86cm !important;
    max-width: none !important;
    object-fit: fill !important;
    display: block;
    pointer-events: auto;
}

@media print {
    .appointment-footer-exact {
        position: absolute !important;
        bottom: 4mm !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 1.86cm !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 8mm !important;
    }
    .appointment-footer-text {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: 1.5mm !important;
        text-align: center !important;
        font-family: 'Cambria', Georgia, serif !important;
        font-size: 7.5pt !important;
        line-height: 1.35 !important;
        color: #000000 !important;
        padding: 0 !important;
        margin: 0 !important;
        white-space: nowrap !important;
    }
    .appointment-footer-socotec {
        position: absolute !important;
        right: 8mm !important;
        bottom: 0 !important;
        width: 3.6cm !important;
        height: 1.86cm !important;
        object-fit: fill !important;
    }
}
