.print{
    width: 100%;
    max-width: 950px;
    height: 100%;
    position: relative;
    /* padding: 12pt; */
    /* border: 1px solid rgba(0,0,0,0.1); */
    /* margin: auto;
    max-width: 800px; */
    margin: 0 auto;
}

.attach-photo{
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* 列印使用 */
@media print {

    /* 主要設定 */

    @page {
        /* size: A4 landscape; */
        size: A4 portrait;
        margin: 1.5cm;
        widows: 2;
        orphans: 4;
    }

    *{
        padding: 0 !important;
        margin: 0 !important;
    }

    html, body{
        position: relative;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
    }

    body {
        font-family: "Microsoft JhengHei" !important;
        /* float: none; */
        line-height: 1.5;
        font-size: 12pt !important;
        -webkit-print-color-adjust: exact;
        background: #fff;
        /* background-image: url('...') !important; */
        /*如果背景圖沒顯示請加必殺技 !important*/        
    }

    hr{
        margin-top: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .print{
        position: relative;
        width: 210mm;
        height: 297mm;
        /* border: 1px solid black; */
        border: none !important;
        box-shadow: none !important;
    }

    /* 如架構本身用一組一組的 DIV 包住，也可強制設定每組 DIV 會各自切成一頁 */
    /* auto | always | avoid */
    div.page-break {
        page-break-after: always;
    }

    /* 針對列印頁特定元素的設定 */

    .logo-container{
        padding: 1.5rem 0 !important;
    }

    .logo{
        display: block;
    }
    .logo img{
        height: 2.5rem;
    }

    label.ml-3{
        margin-left: 1.5rem !important;
    }

    #tygh_container{
        min-height: unset !important;
    }

    .fill-space{
        display: none;
    }

    .table th,
    .table td{
        padding: 5px !important;
    }

    h3.title{
        margin-top: 1.5rem !important;
    }

    .other-notes{
        padding: 0.5rem 0 !important;
    }

    .recommend{
        position: absolute;
        font-size: 0.7rem;
        left: 0;
        bottom: 0;
    }

    .recommend li{
        list-style-position: inside;
        margin-left: 0;
    }

    header nav,
    footer,
    video,
    audio,
    object,
    embed,
    .tygh-header,
    .breadcrumbs-grid,
    .ty-breadcrumbs,
    .ty-mainbox-container.grid_inquiry-title,
    .tygh-footer,
    .print-btn-container {
        display: none !important;
    }

    /* 其餘css設定 */

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
        page-break-inside: avoid
    }

    h1+p,
    h2+p,
    h3+p {
        page-break-before: avoid;
    }

    a {
        page-break-inside: avoid
    }

    img {
        page-break-after: avoid;
        page-break-inside: avoid;
    }

    table,
    blockquote {
        page-break-inside: avoid;
    }

    ul,
    ol,
    dl {
        page-break-before: avoid;
    }

    img {
        max-width: 100%;
    }

    /*顯示連結網址並避免網址過長超出頁面*/
    /* a:link,
    a:visited,
    a {
        background: transparent;
        color: #222;
        font-weight: bold;
        text-decoration: underline;
        text-align: left;
        word-wrap: break-word;
    }
    a[href^="http://"]:after,
    a[href^="https://"]:after {
        content: " (" attr(href) ") ";
    } */

    /* 表格即使分頁也會顯示表頭 */
    thead {
        display: table-header-group;
    }
}