﻿/*@media print {*/

    /* ================= BASE ================= */
    /*html, body {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff !important;
    }

    body {
        font-family: "TH Sarabun New", "Sarabun", Arial, sans-serif;
        font-size: 14.5px;
        color: #000;
    }*/

        /* ================= VISIBILITY CONTROL ================= */
        /* ซ่อนทุกอย่าง แต่ไม่ทำลาย layout */
        /*body * {
            visibility: hidden !important;
        }*/

    /* แสดงเฉพาะใบพิมพ์ */
    /*#printableArea,
    #printableArea * {
        visibility: visible !important;
    }*/

    /* ================= CENTER DOCUMENT ================= */
    /*#printableArea {
        position: absolute !important;
        left: 50% !important;
        top: 20mm !important;
        transform: translateX(-50%) !important;
        width: 720px !important;
        max-width: 720px !important;
        padding: 32px 36px !important;
        background: #fff !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
    }*/

    /* ล้าง Bootstrap Grid ที่ครอบอยู่ */
    /*.container,
    .row,
    [class*="col-"] {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }*/

    /* ================= WATERMARK ================= */
    /* ปิด background เดิมของ card */
    /*.styleCard {
        background: none !important;
    }*/

    /* วาดลายน้ำใหม่ (กลาง A4) */
    /*#printableArea::before {
        content: "";
        position: fixed;
        top: 50%;
        left: 50%;
        width: 520px;
        height: 520px;
        transform: translate(-50%, -50%);
        background-image: url(@styleCard);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        opacity: 0.05;
        z-index: 0;
        pointer-events: none;
    }*/

    /* เนื้อหาอยู่เหนือ watermark */
    /*#printableArea > * {
        position: relative;
        z-index: 1;
    }*/

    /* ================= HIDE UI ================= */
    /*.nocontainerprint,
    button,
    .btn {
        visibility: hidden !important;
    }*/

    /* ================= PAGE SETUP ================= */
    /*@page {
        size: A4;
        margin: 0;
    }
}*/

@media print {
    body {
        visibility: hidden;
    }

    .containerprint, .containerprint * {
        visibility: visible;
    }

    .containerprint {
        position: absolute;
        left: 0;
        top: 0;
    }

    .nocontainerprint {
        display: none;
    }
}

