/* ============================================================================
   HR ZONE — Print Styles
   Print-specific rules for training registers and reports
   ============================================================================ */

#header-notification-btn .fa-bell {
    font-size: 1.25rem;
    line-height: 1;
}

#print-styles {
    /* Note: This ID is intentionally preserved for print functionality */
}

#print-register-container {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 0;
    height: 0;
    overflow: hidden;
    display: block;
}

@media print {
    /* Hide everything by default when printing */
    body * {
        visibility: hidden;
        overflow: hidden;
        display: none;
    }

    /* Only show the print container and its contents */
    #print-register-container,
    #print-register-container * {
        visibility: visible !important;
        display: block !important;
    }

    /* Make the container full screen and manage page breaks */
    #print-register-container {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        margin: 0;
        padding: 0;
        background: white;
        box-shadow: none;
        z-index: 9999;
    }

    /* Apply A4/Letter size margins to the page content */
    .print-page {
        box-sizing: border-box;
        width: 100%;
        padding: 1.5cm 2cm;
        margin: 0;
        page-break-after: always;
    }

    /* Print-specific layout/typography */
    #print-register-container {
        font-family: Arial, sans-serif;
        font-size: 10pt;
    }

    #register-header-text {
        color: #1a1a1a !important;
        font-size: 14pt !important;
        font-weight: bold;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Details Table */
    .register-details-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
        margin-bottom: 25px;
    }

    .register-details-table tr {
        display: table-row;
    }

    .register-details-table td {
        padding: 3px 0;
        border-bottom: 1px solid #ccc;
        vertical-align: top;
    }

    .register-details-table .label {
        font-weight: bold;
        width: 120px;
        color: #555;
    }

    /* Trainee table styles */
    .register-trainee-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: fixed;
    }

    .register-trainee-table thead, .register-trainee-table tbody {
        border-collapse: collapse;
        display: table;
        width: 100%;
    }

    .register-trainee-table th {
        border: 1px solid #1a1a1a;
        padding: 8px 5px;
        text-align: left;
        background-color: #f0f0f0;
    }

    .register-trainee-table td {
        border: 1px solid #ccc;
        padding: 8px 5px;
    }

    .register-trainee-table tr {
        height: 40px;
    }

    .col-name {
        width: 35%;
    }

    .col-code {
        width: 20%;
    }

    .col-sig {
        width: 45%;
        vertical-align: bottom;
        padding-top: 20px;
    }

    .signature-line {
        border-bottom: 1px solid #1a1a1a;
        width: 100%;
        height: 1px;
        display: block;
    }

    /* Signature/Footer area on Page 2 */
    #register-trainer-signature {
        margin-top: 40px;
    }

    #register-trainer-signature .signature-line {
        border-bottom: 1px solid #1a1a1a;
    }

    .page-break-after {
        page-break-after: always;
    }

    .print-page:last-child {
        page-break-after: avoid;
    }
}
