﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/*.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}*/

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    /*margin-bottom: 60px;*/
    background-color: lightgray;
}

header {
    display: contents;
    position: fixed;
    width: 100%;
    z-index: 1;
    top: 0%;
}

main {
    /*margin-top: 10%;*/
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

thead {
    display: table-header-group; /* 表格即使分頁也會顯示表頭 */
}

page {
    background: white;
    display: block;
    margin: 0 auto;
    margin-bottom: 0.5cm;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
}

    page[size="A4"] {
        /*width: 21cm;*/ /*隨著紙張大小異動*/
        /*height: 40cm;*/ /*隨著紙張大小異動*/
        width: 25.5cm; /*隨著紙張大小異動*/
        height: 37cm; /*隨著紙張大小異動*/
        padding-top: 0.5cm;
        padding-left: 1cm;
        padding-right: 0.4cm;
        /*padding-left: 0.4cm;
    padding-right: 0.6cm;*/
        /* padding: 20mm;
    margin: 10mm auto;
    border: 1px #D3D3D3 solid;
    border-radius: 5px;
    background: white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);*/
    }

    page[size="A4forTable"] {
        width: 25.5cm; /*隨著紙張大小異動*/
        height: 37cm; /*隨著紙張大小異動*/
        padding-top: 0.5cm;
        padding-left: 1cm;
        padding-right: 0.4cm;
    }

    page[size="A4Landscape"] {
        /*width: 35cm;*/ /*隨著紙張大小異動*/
        /*height: 30cm;*/ /*隨著紙張大小異動*/
        width: 37cm; /*隨著紙張大小異動*/
        height: 25.5cm; /*隨著紙張大小異動*/
        padding-top: 1cm;
        padding-left: 1cm;
        padding-right: 0.4cm;
    }

    page[size="Letter"] {
        width: 216mm; /*隨著紙張大小異動*/
        height: 279mm; /*隨著紙張大小異動*/
        padding-top: 1mm;
        /*padding-left: 1mm;*/
        /*padding-right: 1mm;*/
    }

.subpage {
    padding: 1cm;
    border: 5px red solid;
    height: 257mm; /*隨著紙張大小異動*/
    outline: 2cm #FFEAEA solid;
}

@media print {
    html,
    body {
        height: 100%;
        margin: 0;
        counter-reset: PageNumber;
        -webkit-print-color-adjust: exact;
        font-size: 1rem;
    }

    table {
        font-family: arial, sans-serif;
        border-collapse: collapse;
        width: 100%;
    }

    td,
    th {
        border: 1px solid black;
    }
    /* 列印不顯示 */
    .no-print {
        display: none;
    }

    .print-template {
        display: block;
        height: 100%;
    }
    /* 分頁 */
    .print-page {
        page-break-after: always;
        /*height: 99% !important;*/
        height: 37cm !important;
        /*padding: 2.54cm 3.17cm;*/
        /*margin-left: -0.5cm;
        padding-top: 1cm;
        padding-left: 1cm;
        padding-right: 1.2cm;*/
        border: 1px solid white;
        position: relative;
    }

        .print-page .page-number {
            position: absolute;
            width: 100px;
            /*bottom: 1.32cm;
            left: 50%;
            margin-left: -25px;*/
            /*right: -2%;*/
            text-align: right;
        }

        .print-page .page-number-forNarrorSize {
            position: absolute;
            width: 100px;
            right: -5%;
            text-align: right;
        }

        /*.print-page .page-number::before {
                counter-increment: PageNumber;
                content: 'P.' counter(PageNumber);
                font-size: 9pt;
                padding: 0;
                margin: 0;
            }*/

        .print-page .page-title {
            text-align: center;
        }

    .print-page-Landscape {
        page-break-after: always;
        /*height: 27cm !important;
        width: 33cm !important;*/
        height: 25.5cm !important;
        width: 37cm !important;
        /*margin-top: 6cm;
        margin-left: -4cm;*/
        border: 1px solid white;
        position: relative;
    }

        .print-page-Landscape .page-number {
            position: absolute;
            width: 100px;
            text-align: right;
        }

        .print-page-Landscape:last-of-type {
            page-break-after: auto;
        }

    /* 封面 */
    .print-cover-page {
        position: relative;
    }

        .print-cover-page .cover-headline-block {
            margin-top: 2.64cm;
            margin-bottom: 2.64cm;
        }

            .print-cover-page .cover-headline-block .title {
                text-align: center;
                letter-spacing: 3.75pt;
            }

            .print-cover-page .cover-headline-block .sub-title {
                text-align: center;
            }

        .print-cover-page .cover-photo-block {
            height: 8cm;
        }

            .print-cover-page .cover-photo-block .photo {
                width: 100%;
                height: 100%;
            }

        .print-cover-page .cover-info-block .author {
            font-size: 13.5pt;
        }

        .print-cover-page .cover-info-block .date {
            font-size: 13.5pt;
        }

        .print-cover-page .cover-info-block .underline {
            display: inline-block;
            width: 5.29cm;
            text-align: center;
            border-bottom: .75pt solid #000;
            letter-spacing: 1.5pt;
        }
    /* 頁尾 */
    .print-footer {
        position: fixed;
        width: 100%;
        bottom: 2.54cm;
        padding: 0cm 3.17cm;
        display: flex;
        flex-flow: row nowrap;
        align-items: center;
    }

    .footer-left {
        justify-content: flex-start;
    }

    .footer-center {
        justify-content: center;
    }

    .footer-right {
        justify-content: flex-end;
    }
    /* 表格 */
    .print-table {
        width: 100%;
        margin-top: .5cm;
        page-break-inside: avoid;
    }

        .print-table td {
            width: 50%;
            padding: 5px;
        }

            .print-table td .td-description {
                width: 100%;
                height: .75cm;
                display: flex;
                flex-flow: row nowrap;
                justify-content: center;
                align-items: center;
            }

            .print-table td .td-img {
                width: 100%;
                height: 8cm;
                display: flex;
                flex-flow: row nowrap;
                justify-content: center;
                align-items: center;
            }

                .print-table td .td-img img {
                    max-width: 100%;
                    min-height: calc(100% - 10px);
                    max-height: calc(100% - 10px);
                }

    /*舊報表暫定*/
    .pagebreak {
        page-break-after: avoid;
        /*margin-top: -3%;*/
    }

    .print-page1 {
        page-break-after: always;
        /*margin-top: -8%;
        margin-left: 0.6cm;
        margin-right: 0.4cm;
        margin-bottom: 1cm;*/
        height: 100%;
    }
}

@page {
    size: A4 portrait;
    /*margin: 1cm 0 1cm 0;*/
    margin: 0;
}

@page :first {
    size: A4 portrait;
    /*margin: 1cm 0 1cm 0;*/
    margin: 0;
}

div [id="contentDiv"] {
    /*width:22cm;
    margin:auto;*/
    height: 99%;
}

div [id="HIScontent"] {
    /*width:22cm;
    margin:auto;*/
    padding:0;
    height: 99%;
}

/*For Div*/
div [id="FormDiv"] {
    height: 100%;
}

/*For Table*/
div [id="FormTable"] {
    height: 100%;
    width: 25.5cm;
    margin: auto;
}

p {
    margin: 0;
}

table, blockquote {
    word-break: keep-all;
    font-family: '標楷體','微軟正黑體','新細明體';
    font-size: 16px;
    border: none;
}

.table-bordered td, table-bordered thead th, .table-bordered th {
    border-bottom: none;
    border-top: none;
    border-right: none;
    border-collapse: collapse;
}

div.blockhead {
    background-color: white;
}


div.block {
    margin-top: -0.5cm;
    margin-left: 0.6cm;
    background-color: white;
    height: 35cm;
}


hr {
    box-sizing: border-box;
    height: 10px;
    background-color: lightgray;
}

pageCut {
    margin-left: 93%;
}

pageNumber {
    /*position: absolute;
    bottom: 1%;
    right: 3%;*/
    position: absolute;
    bottom: 1%;
    /*right: 3%;*/
    right: 1%;
    /*padding-left: 93%;*/
}

.rTable {
    display: table;
    width: 100%;
    border: 1px solid #999999;
    border-collapse: collapse;
}

.rTableRow {
    display: table-row;
    background-color: white;
}

.rHeadRow .rTableCell {
    border:none;
    /*border-top: none;
    border-right: none;
    border-left: none;*/
}

.rStandard .rTableCell {
    border: none;
}

.rTableHeading {
    display: table-header-group;
    background-color: #ddd;
}

.rTableCell, .rTableHead {
    display: table-cell;
    padding: 3px 10px;
    border: 1px solid #999999;
    vertical-align: top;
    word-break: break-all;
}

    .rTableCell.center {
        vertical-align: middle;
        height: 70px;
    }

    .rTableCell.bottom {
        height: 40px;
        vertical-align: bottom;
        letter-spacing: 2px;
    }

.mTable, .inmTable {
    display: table;
    width: 100%;
}

.mTable {
    border-width: 1px 1px 0px 0px;
    border-style: solid;
    border-color: #999999;
}

    .mTable .rTableCell {
        border-width: 0px 0px 1px 1px;
    }

.rColSpan4 {
    position: absolute;
    width: 95%;
}

.rColSpan3 {
    position: absolute;
    width: 80%;
}

.rColSpan2 {
    position: absolute;
    width: 60.5%
}

.rCol-1 {
    width: 5%;
}

.rCol-2 {
    width: 7.79%;
}

.rCol-3 {
    width: 10%;
}

.rCol-4 {
    width: 13%;
}

.rCol-5 {
    width: 17.1%;
}

.rCol-6 {
    width: 21%;
}

.rCol-7 {
    width: 30%;
}

.rCol-8 {
    width: 33%;
}

.rCol-9 {
    width: 35.5%;
}

.rCol-10 {
    width: 41%;
}

.rCol-11 {
    width: 61%;
}

.rCol-12 {
    width: 100%;
}

.rCol-subCol-half {
    width: 49%;
    padding: 0px;
}

/*.rRowSpan {
    position: absolute;
    height: 100%;
    width: 80%;
}*/


.rTableHeading {
    display: table-header-group;
    background-color: #ddd;
    font-weight: bold;
}

.rTableFoot {
    display: table-footer-group;
    font-weight: bold;
    background-color: #ddd;
}

.rTableBody {
    display: table-row-group;
}

/*cell 底下div inline*/
.rTableCell div {
    display: inline-block;
}

.TextMiddle {
    text-align: center;
    padding: 15px;
}

.TextLeft {
    text-align: left;
    padding: 5px;
}

.textHorCenter {
    text-align: center;
}

.rNonBorder {
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: none;
}

.noBorder {
    border-style: none;
}

.bottom-Border {
    border-top: none;
    border-right: none;
    border-left: none;
    border-bottom: none;
    box-shadow: 0 1px;
    padding-bottom: 2px;
}

/*後續新增(待修改)*/
.right-NonBorder {
    border-right: none;
}

.middle-NonBorder {
    border-left: none;
    border-right: none;
}

.left-NonBorder {
    border-left: none;
}

.whiteSpace {
    white-space: pre-wrap;
}

.textCenter {
    text-align: center;
    vertical-align: middle;
}
/*#formTable {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
}
#formTable tr {
    height: 20px;*/
/*page-break-after: always;*/
/*}

#formTable td, th {
    border: 1px solid black;
    text-align: left;
    padding: 3px;
    word-wrap: break-word;
}

.tdR {
    border-right: 1px solid black;
    text-align: left;
    padding: 5px;
}

.tdT {
    border-top: 1px solid black;
    text-align: left;
    padding: 5px;
}

.tdB {
    border-bottom: 1px solid black;
    text-align: left;
    padding: 5px;
}*/
.grayBagd {
    background-color: #BFBFBF;
}

/*.textRight {
    text-align: right;
}

.vertialTopText {
    vertical-align: text-top;
}*/

/*div表格圖片處理*/
/*主要設定外部container,以及內部container*/

/*橫向順序、超出範圍不換行*/
.T-row {
    height: auto;
    display: flex;
    flex-flow: row nowrap;
}

/*橫向順序、超出範圍換行*/
.T-row-wrap {
    height: auto;
    display: flex;
    flex-flow: row;
    flex-wrap: wrap;
    border: 1px solid #777;
    min-height: 1.5rem;
}

/*CMS Use Start*/
.td2 {
    display: flex;
    /*justify-content: center;*/
    align-items: center;
    flex-shrink: 0;
    border: 1px solid #777;
    padding: 0 0 0 3px;
    min-height: 1.5rem;
}

.td3 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
    padding: 0 0 0 3px;
    min-height: 1.5rem;
}

.rTableCellTextArea {
    display: table-cell;
    padding: 0px 3px;
    /*border: 1px solid #999999;*/
    vertical-align: top;
    word-break: break-all;
}
/*CMS Use End*/

.label_text {
    display: inline-block;
    margin-top: .5rem;
}

/*
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}
.Table {
    font-family: arial, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

.TableTd, .TableTh {
    border: 1px solid black;
    text-align: left;
    padding: 5px;
}*/
/*.table {
    border-width: 1px 1px 0px 0px;
}

.intable {
    border-width: 0px 1px 0px 0px;
}

.table, .intable {
    display: table;
    width: 100%;
    height: 100%;
}


.cell {
    display: table-cell;
}

.row {
    display: table-row;
}

.cell {
    border-width: 0px 0px 1px 1px;
    width: 25%
}

.merged {
    width: 50%;
    height: 50%;
    background: green;
}

.table, .intable, .cell {
    border-style: solid;
    border-color: purple;
}
.intable {
    display: table;
    width: 100%;
    height: 100%;
}*/

.trHidden {
    visibility: collapse;
}