/*
PDF�U�Ԩ쩳�P�N�ƶ��~��Ŀ�P�N����css
�ϥΥ\��:�@��H�U�ӽСB�@��H�U��O�B�H�U�ɥ�B�H�U�d�ߡB�H�U�@�����պ�B�H�U�M�H�P���p��
�ϥέ���:index.jsp
*/

/*IT20202210061038_1111796_20240625_�x���@��H�U�ӽ�&�@��H�U��O&�@��H�U�d��&�@��H�U�ɥ�&�H�U�@�����պ�&�H�U�M�H�P���p��&�I�I�U�ӽ�&�I�I�U��O&��T�U&�n�ɤ�-�վ�P�N�ƶ�PDF����A���ª����s�����]�䴩�ϥ�*/

/*PDFŪ����*/
.modal-open {
    overflow: hidden;
}

.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal-dialog-pdfviewer {
    top: 35px;
    position: relative;
    width: auto;
    pointer-events: none;
    max-width: 1140px;
    margin: 1.75rem auto;
}

.modal.fade .modal-dialog-pdfviewer {
    -webkit-transition: -webkit-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px);
}

@media (prefers-reduced-motion:reduce) {
    .modal.fade .modal-dialog-pdfviewer {
        -webkit-transition: none;
        transition: none;
    }
}

.modal.show .modal-dialog-pdfviewer {
    -webkit-transform: none;
    transform: none;
}

.modal.modal-static .modal-dialog-pdfviewer {
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
}

.modal-dialog-scrollable {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem);
}

.modal-dialog-scrollable .modal-content-pdfviewer {
    max-height: calc(100vh - 1rem);
    overflow: hidden;
}

.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto;
}

.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    height: -webkit-min-content;
    height: -moz-min-content;
    height: min-content;
    content: "";
}

.modal-dialog-centered.modal-dialog-scrollable {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
}

.modal-dialog-centered.modal-dialog-scrollable .modal-content-pdfviewer {
    max-height: none;
}

.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none;
}

.modal-content-pdfviewer {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;

}

 .modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
} 

.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.modal-body {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
}

.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dbdbdb;
    border-bottom-right-radius: calc(0.3rem - 1px);
    border-bottom-left-radius: calc(0.3rem - 1px);
}

.modal-footer>* {
    margin: 0.25rem;
}

.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll;
}

@media (min-width:640px) {
    .modal-dialog-pdfviewer {
        max-width: 1140px;
        margin: 1.75rem auto;
    }

    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem);
    }

    .modal-dialog-scrollable .modal-content-pdfviewer {
        max-height: calc(100vh - 3.5rem);
    }

    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem);
    }

    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem);
        height: -webkit-min-content;
        height: -moz-min-content;
        height: min-content;
    }

    .modal-sm {
        max-width: 300px;
    }
}

@media (min-width:1024px) {

    .modal-lg,
    .modal-xl-pdfviewer {
        max-width: 800px;
    }
}

@media (min-width:1024px) {
    .modal-xl-pdfviewer {
        max-width: 1140px;
    }
}

._btn-primary,
._btn-outline-primary {
    color: white;
    background-color: #ca0b16;
    border-color: #ca0b16;
    height: 3rem;
}

._btn-full {
    min-width: 100%;
}

button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.justify-content-center {
    -ms-flex-pack: center !important;
    justify-content: center !important;
}




/* checkbox */
.ts-comp-24HeCounter-checkbox {}

.ts-comp-24HeCounter-checkbox .checkbox-inline {
    display: inline-block;
    vertical-align: top;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 0;
    padding-right: 15px;
    line-height: 40px;
}

.ts-comp-24HeCounter-checkbox .checkbox-inline input {
    position: relative;
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    vertical-align: middle;
}

.ts-comp-24HeCounter-checkbox .checkbox-inline label {
    font-size: 16px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: 0.6px;
    color: #333333;
    cursor: pointer;
    padding-left: 35px;
    margin-bottom: 0;
    position: relative;
}

.ts-comp-24HeCounter-checkbox .checkbox-inline label span.cuscheckbox-sty {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin: 0 auto;
    cursor: pointer;
    border: solid 4px #d5d5d5;
    border-radius: 5px;
    background-color: #f6f6f6;
    margin: 0 5px 0 0;
    position: absolute;
    top: 0px;
    left: 0;
}

.ts-comp-24HeCounter-checkbox .checkbox-inline label span.cuscheckbox-sty:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    background-color: #da2128;
    display: none;
}

.ts-comp-24HeCounter-checkbox .checkbox-inline input[type='checkbox']:checked+label span.cuscheckbox-sty {
    width: 20px;
    height: 20px;
}

.ts-comp-24HeCounter-checkbox .checkbox-inline input[type='checkbox']:checked+label span.cuscheckbox-sty:after {
    display: block;
}

/* PDF�u��ĵ�ܬ��r���� */
.flex-column {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
}

/* PDF�u�����s�r��j�p */
/* ._btn-full {
    font-size: 16px !important;
    height: 37px !important;
} */

/* PDF�u�����s�j�p�� */
/* .col-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
} */

@media (min-width:768px) {
    .col-md-4 {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* PDF�u��ĵ�ܬ��r�r��j�p */
.h3 {
    font-size: 28 px;
    margin-bottom: .5rem;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    color: inherit;
}


/* pdfview */
._btn-primary,
._btn-outline-primary {
    color: white;
    background-color: #ca0b16;
    border-color: #ca0b16;
    height: 3rem;
}

._btn-full {
    min-width: 100%;
}

.modal-footer>* {
    margin: 0.25rem;
}

._btn-primary,
._btn-secondary {
    display: inline-block;
    white-space: nowrap;
    text-decoration: none;
    border-radius: 5px;
    border: 1px solid transparent;
    text-align: center;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    line-height: normal;
    cursor: pointer;
}

button:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.modal-body .pdf-content {
    text-align: center;
    font-weight: bold;
}

.modal .modal-body .policy-block {
    padding: 0 0;
    /* padding: 20px; */
    display: block;
    height: 460px;
    font-size: 1rem;
    font-weight: 300;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 25px;
    /* width: calc(100% + 16px); */
}

.modal-body {
    padding: 0;
}

.modal-dialog-pdfviewer {
    max-width: 1140px;
}

@media (max-width: 1023px) {
    .modal-body .pdf-content canvas {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        max-width: 600px;
    }

    .modal .pdf-content {
        text-align: left;
    }
}

@media (max-width: 541px) {
    .modal-body .pdf-content canvas {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        max-width: 414px;
    }

    .modal .modal-body .policy-block {
        /*padding: 15px 16px 15px 0;*/
        margin-bottom: 20px;
        height: calc(50vh);
    }

    /* .modal .pdf-content {
        text-align: left;
    } */
}