﻿/* class for print */
.page {
    position: relative;
    /* background: #E6E7E8; */
    /* width: 250mm; */
    /* max-height: 360mm; */
    /* min-height: 360mm; */
    page-break-after: always; /* break into new page after this class (for printing purpose) */
}

.page2 {
    position: relative;
    background: #E6E7E8;
    background-image: url('/images/yijing/backgroundLogo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 80%;
    width: 250mm;
    max-height: 360mm;
    min-height: 360mm;
    /*padding: 5mm 5mm 5mm 5mm;*/
    /*margin: 10mm auto;*/
    margin-top: 5mm;
    margin-bottom: 5mm;
    border: 1px #D3D3D3 solid;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    page-break-after: always;
}

@page {
    size: A4;
    margin: 0mm;
}

/* class to exclude printing */
@media print {

    body {
        /* to make other content hide when in print preview */
        background-image: none;
        visibility: hidden;
    }

    main {
        margin-left: 0px !important;
    }

    .page {
        /* make only div with page class show in print preview */
        visibility: visible;
        position: absolute;
        left: 0;
        top: 0;
        margin: auto;
        width: 210mm;
        height: 297mm;
        border: 2px #D3D3D3 solid;
        border-radius: 0.375rem;
        margin-top: 0mm;
        /*        size: A4;*/
        /*background: #E6E7E8;
        background-image: url('/images/yijing/backgroundLogo.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 80%;*/
        /*        margin: auto;*/
        /*max-height: 353mm;
        min-height: 353mm;
        page-break-after: always;
        box-shadow: none;*/
    }

        .page .canvas-container, .page canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 210mm !important;
            height: auto !important;
        }

        .page .p-2 .canvas-container {
            min-height: 245mm;
        }

        .page .p-2 .canvas-container, .page .p-2 canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 210mm !important;
            height: auto !important;
        }

    .print-visible {
        visibility: visible !important;
    }

    .print-d-none {
        display: none !important;
    }

    .print-d-block {
        display: block !important;
    }

    .print-p-2 {
        padding: 0.5rem;
    }

    .col-print-4 {
        flex: 0 0 auto;
        width: 33.33%;
    }

    .col-print-5 {
        flex: 0 0 auto;
        width: 41.67%;
    }

    .col-print-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-print-7 {
        flex: 0 0 auto;
        width: 58.33%;
    }

    .page2 {
        /* make only div with page class show in print preview */
        visibility: visible;
        position: absolute;
        left: 0;
        top: 354mm;
        background: #E6E7E8;
        background-image: url('/images/yijing/backgroundLogo.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: 80%;
        margin: auto;
        border: 1px #D3D3D3 solid;
        width: 250mm;
        max-height: 353mm;
        min-height: 353mm;
        page-break-after: always;
        box-shadow: none;
    }

    .page-break {
        page-break-before: always;
        break-before: page;
        margin-top: 10mm;
    }

    #floorPlanDiv {
        position: absolute;
    }

    /* customize print class */
    .table-personal-sector {
        font-size: 0.5em !important;
    }

        .table-personal-sector > :not(caption) > * > * {
            padding: 0.18rem !important;
        }
}