﻿/*!
 *  Printing
 */

@page {
  size: auto;
  margin: 0;
  width: 100%;
}

/* Screen display styles for large font elements */
.print-large-font-name {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 50px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.print-large-font-id {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 180px;
    text-decoration: underline;
    text-align: right;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* QR Code styling with high specificity */
img.print-qr-code,
.print-qr-code,
.col-lg-4 img.print-qr-code,
.print-header-row img.print-qr-code {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    object-fit: contain !important;
    text-align: left !important;
    vertical-align: top !important;
    display: inline-block !important;
}

/* Ensure proper alignment in the QR/ID row */
.print-header-row {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.print-header-row .col-lg-4,
.print-header-row .col-lg-8 {
    min-height: 150px;
    display: flex;
    align-items: center;
}

/* Screen display column widths */
.col-lg-4 {
    width: 33.333333%;
    float: left;
}

.col-lg-8 {
    width: 66.666667%;
    float: left;
}

@media print {
    body {
        color: #000000;
        background: #ffffff;
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
        color: #0000ff;
    }

    table.dataTables {
        font-size:10px;
    }

    #section-nav, #section-topnavbar, #section-footer, #section-tasks {
        display: none;
    }

    #section-schedule, #Schedule {
        width: 100%;
    }

    #page-wrapper {
        margin: 0px;
        padding: 0px;
    }

    /* Ensure consistent fonts for all text elements when printing */
    h1, h2, h3, h4, h5, h6 {
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    }

    span, div, p {
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
    }

    /* Custom classes for large font elements */
    .print-large-font-name {
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
        font-size: 50px !important;
        font-weight: bold !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .print-large-font-id {
        font-family: Arial, "Helvetica Neue", Helvetica, sans-serif !important;
        font-size: 180px !important;
        text-decoration: underline !important;
        text-align: right !important;
        margin: 0 !important;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* QR Code styling with high specificity for print */
    img.print-qr-code,
    .print-qr-code,
    .col-lg-4 img.print-qr-code,
    .print-header-row img.print-qr-code {
        width: 4cm !important;
        height: 4cm !important;
        max-width: 4cm !important;
        max-height: 4cm !important;
        min-width: 4cm !important;
        min-height: 4cm !important;
        object-fit: contain !important;
    }

    .print-header-row {
        margin-bottom: 20px !important;
        display: block !important;
    }

    .print-header-row .col-lg-4,
    .print-header-row .col-lg-8 {
        min-height: 4cm !important;
        display: block !important;
        vertical-align: top !important;
    }
}

@media print
{
    .col-lg-4
    {
        width: 33.333333%;
        float: left;
    }

    .col-lg-6
    {
        width: 50%;
        float: left;
    }

    .col-lg-8
    {
        width: 66.666667%;
        float: left;
    }

    .col-lg-12
    {
        width: 100%;
    }
}