@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC&display=swap');

html,
body,
body>.container {
    height: 100%;
    overflow-y: auto;
}

body {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    font-family: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    background-image: url(../images/home-bg.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: bottom;
}

.container {
    background-color: #FFF;
}

/* ＝＝＝＝＝＝ 上方區塊 ＝＝＝＝＝＝ */
header {
    flex-grow: 0;
    flex-shrink: 0;
}

.pc-title {
    margin: 2rem 0 0 0;
}

.pc-title>img {
    height: 2.5rem;
}

.pc-title>h1 {
    margin: 0 0 0 0.6rem;
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1;
    color: #4197e1;
}

.pc-title>h1.f-s {
    font-size: 2.2rem;
}

@media (min-width: 768px) {
    .navbar-brand {
        display: none;
    }
}

@media (max-width: 768px) {
    .navbar-default {
        border-top: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .header-container {
        padding: 0;
    }

    .pc-title {
        display: none !important;
    }

    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .navbar-brand {
        margin-right: auto;
    }
}

/* ＝＝＝ 變更密碼 ＝＝＝ */
.form-change-pwd {
    display: block;
    width: 100%;
    max-width: initial;
    padding: 1rem 0;
}

.form-change-pwd .btn.btn-pwd-seen {
    display: flex;
    display: none\9;
    align-items: center;
    justify-content: center;
    height: 2.8em;
    width: 2.8rem;
    padding: 0;
    position: absolute;
    top: calc(50% - 1.4rem);
    right: 0.5rem;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    font-size: 1rem;
    color: #333;
}

.form-change-pwd .btn.btn-pwd-seen:hover,
.form-change-pwd .btn.btn-pwd-seen:focus {
    background-color: rgba(0, 0, 0, 0.06);
}

.form-change-pwd .caps-alert {
    display: none;
    display: none\9 !important;
    padding: 0.5rem;
    margin-left: 6px;
    position: absolute;
    top: 50%;
    left: 100%;
    z-index: 10;
    border-radius: 0.25rem;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.4);
    background-color: rgba(0, 0, 0, 0.8);
    color: #FFF;
    font-size: 0.9rem;
    white-space: nowrap;
    transform: translateY(-50%);
}

.form-change-pwd .caps-alert::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    margin-left: -5px;
    margin-top: -3px;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 10;
    border-style: solid;
    border-width: 4px 5px 4px 0;
    border-color: transparent rgba(0, 0, 0, 0.8) transparent transparent;
}

*::-ms-backdrop, .form-change-pwd .btn.btn-pwd-seen,
*::-ms-backdrop, .form-change-pwd .caps-alert {
    display: none !important;
}

.form-change-pwd .change-pwd-text {
    margin-bottom: 1rem;
}

.form-change-pwd .inp-row {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-change-pwd .inp-label-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: absolute;
    top: 0.75rem;
    left: 1.5rem;
    color: #AAA;
    text-align: left;
}

.form-change-pwd .inp-label-text>.bi {
    margin-right: 0.25rem;
}

.form-change-pwd .form-control {
    font-size: 1.2rem;
    height: auto;
    padding: 0.8rem 1rem;
    padding-left: 7.5rem;
    letter-spacing: 1px;
}

.form-change-pwd .inp-row-new2 .inp-label-text div {
    line-height: 1.1;
}

.fs-xs {
    font-size: 0.8rem;
}

.form-change-pwd .inp-row .form-control:not(:focus)~.caps-alert {
    display: none !important;
}

.form-change-pwd .change-pwd-note {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: #d33;
}

/* ＝＝＝＝＝＝ 側邊區塊 ＝＝＝＝＝＝ */
aside {
    position: fixed;
    top: 40vh;
    right: 0;
    z-index: 1001;
}

.btn-aside {
    border-radius: 0.25rem 0 0 0.25rem;
    background-color: #FFF;
    color: #333;
    font-size: 0.8rem;
    border-color: #DDD;
    border-right: 0;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.btn-aside .bi {
    width: 100%;
    display: block;
    font-size: 1.5rem;
    position: relative;
}

.btn-aside .badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.25rem 0.5rem;
    transform: scale(0.75) translateX(50%);
    background-color: #d33;
    color: #FFF;
    font-size: 0.8rem;
    font-style: initial;
    font-weight: normal;
}

#btn-show-realtime-msg.is-shown-realtime-msg {
    display: none;
}

#realtime-msg-div {
    display: none;
    /* visibility: hidden; */
    width: 350px;
    /* max-height: 350px; */
    background-color: #FFF;
    border: 1px #DDD solid;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

#btn-show-realtime-msg.is-shown-realtime-msg+#realtime-msg-div {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
}

.realtime-msg-title {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

#btn-hide-realtime-msg {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    padding: 0;
    border-radius: 50%;
    background-color: #FFF;
    border-color: #FFF;
    color: #333;
}

#btn-hide-realtime-msg:hover,
#btn-hide-realtime-msg:focus {
    background-color: rgba(0, 0, 0, 0.06);
}

#btn-hide-realtime-msg:active {
    background-color: rgba(0, 0, 0, 0.08);
}

#btn-hide-realtime-msg .bi {
    align-self: center;
}

.realtime-msg-contents {
    max-height: 300px;
    margin: 0;
    padding: 0.5rem 0;
    position: relative;
    list-style: none;
    border-top: 1px #e1e1e1 solid;
    border-bottom: 1px #e1e1e1 solid;
    overflow-y: auto;
}

.realtime-msg-content {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.25rem 0.75rem;
}

.realtime-msg-content+.realtime-msg-content {
    margin-top: 0.5rem;
}

.realtime-msg-content:hover {
    background-color: #f9f9f9;
}

.rmc-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.rmc-user {
    font-size: 0.9rem;
    color: #587387;
}

.rmc-time {
    color: #AAA;
    font-size: 0.8rem;
}

.realtime-msg-post {
    padding: 0.5rem;
    background-color: #EEE;
}

.rmc-none-seen {
    padding: 0.5rem 0.75rem;
    color: #BBB;
    font-size: 0.8rem;
}

.rmc-none-seen-text {
    margin: 0 0.25rem;
    letter-spacing: 1px;
}

.rmc-none-seen-line {
    height: 1px;
    background-color: #DDD;
}

.realtime-msg-content.is-post-by-myself .rmc-top {
    justify-content: flex-end;
}

.realtime-msg-content.is-post-by-myself .rmc-user {
    order: 2;
}

.realtime-msg-content.is-post-by-myself .rmc-time {
    order: 1;
    margin-right: 0.5rem;
}

.realtime-msg-content.is-post-by-myself .rmc-content {
    text-align: right;
}

#realtime-msg-content {
    resize: none !important;
}

#realtime-msg-send {
    font-size: 0.9rem;
}

#realtime-msg-send>.bi {
    margin-right: 0.25rem;
}

.rmc-img {
    display: block;
    width: 40px;
}

.btn-preview-img {
    border: 0;
    background-color: transparent;
    padding: 0;
}

.btn-preview-img:hover {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.15);
}

.btn-preview-img:active,
.btn-preview-img:active:hover {
    box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}

.btn-preview-img:hover,
.btn-preview-img:focus,
.btn-preview-img:active,
.btn-preview-img:active:hover {
    background-color: transparent;
}

/* ＝＝＝＝＝＝ 中間區塊 ＝＝＝＝＝＝ */
main {
    flex-grow: 1;
    flex-shrink: 1;
    height: 100%;
    overflow-y: auto;
}

.main-container {
    height: 100%;
    overflow-y: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .inp-form {
        padding: 1.5rem 0;
        background-color: #f5f5f5;
        height: 100%;
        overflow-y: auto;
    }
}

/* ＝＝＝ 結果區塊 ＝＝＝ */
#result-div {
    position: relative;
}

#report-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

#report-printing {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.report-red-font {
    color: #D33;
}

/* ＝＝＝ 按鈕區塊 ＝＝＝ */
.btn-div {
    display: flex;
    align-content: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-div>.btn {
    margin: 0.5rem;
    padding-left: 3rem;
    padding-right: 3rem;
}

/* ＝＝＝ 輸入區塊 ＝＝＝ */
.inp-divs {
    padding: 0.25rem;
}

.inp-div+.inp-div {
    margin-left: 1rem;
}

.inp-div>.datepicker-div {
    width: 145px;
}

.inp-lab {
    margin-bottom: 0.25rem;
    color: #226299;
}

.inp-lab>.bi {
    margin-right: 0.4rem;
}

.inp-div+.inp-div-btn {
    margin-left: 1.5rem;
}

.inp-div-btn {
    margin-left: 1rem;
    align-self: flex-end;
}

.inp-legend-div {
    min-height: 38px;
    padding: 0.25rem;
    font-size: 0.9rem;
}

.inp-legend-div img {
    width: 1rem;
    margin-right: 0.5rem;
}

.inp-legend-div+.inp-legend-div {
    margin-left: 0.75rem;
}

.PageGo {
    width: 100px;
    text-align: center;
}

/* ＝＝＝ 編輯/檢視切換 ＝＝＝ */
tr.is-edited .ele-show,
tr:not(.is-edited) .ele-edit {
    display: none !important;
}

tr.is-edited td {
    color: #fff;
    background-color: #3b89cc;
}

/* ＝＝＝＝＝＝ 表格異常項目 ＝＝＝＝＝＝ */
.abits {}

.abits+.abits {
    margin-top: 2rem;
}

.abit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-top: 1px #DDD solid;
}

.abit-content-sub+.abit-content-sub {
    margin-top: 0.5rem;
}

.abit-content-sub-title {
    margin-bottom: 0.25rem;
}

.abit-name {
    min-width: 6rem;
    margin-right: 1rem;
    color: #357ab5;
    font-size: 0.94rem;
}

.abit-name>.bi {
    margin-right: 0.5rem;
}

.abit-img {
    max-width: 100%;
}

.abit-video {
    width: 100%;
    height: 600px;
}

.btn-abnormal-item {
    display: block;
    margin: 1rem 0 1rem auto;
}

.abits-ul {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.btn-abnormal-item-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: 0;
    background-color: transparent;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: left;
    padding: 1rem 0.75rem;
    border-top: 1px #BBB solid;
    background-color: #f9f9f9;
    color: #444;
}

.btn-abnormal-item-title:hover,
.btn-abnormal-item-title:focus {
    background-color: #EEE;
}

.btn-abnormal-item-title .bi-exclamation-triangle-fill {
    color: #D33;
}

.btn-abnormal-item-title .bi-chevron-down {
    transition: transform .15s ease-in-out;
}

.btn-abnormal-item-title.is-hidden-content .bi-chevron-down {
    transform: rotate(-90deg);
}

.is-hidden-content+.abit-item {
    display: none;
}

/* ＝＝＝＝＝＝ 等待區塊 ＝＝＝＝＝＝ */
.loading-div {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    color: #2674b7;
}

.loading-div>img {
    width: 100px;
    display: block;
    margin: 0 auto 0.5rem auto;
}

/* ＝＝＝＝＝＝ 下方區塊 ＝＝＝＝＝＝ */
footer {
    flex-grow: 0;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: #888;
}

.copyright {
    padding-top: 1rem;
    border-top: 1px #D7D7D7 solid;
    padding-bottom: 1rem;
}

/* ＝＝＝＝＝＝ 列表表格 ＝＝＝＝＝＝ */
.has-app-content-table {}

@media (min-width: 768px) {

    .has-app-content-table.table-striped>tbody>tr:nth-of-type(odd).odd,
    .has-app-content-table.table-striped>tbody>tr:nth-of-type(even).odd {
        background-color: #f9f9f9;
    }

    .has-app-content-table.table-striped>tbody>tr:nth-of-type(odd).odd:hover,
    .has-app-content-table.table-striped>tbody>tr:nth-of-type(even).odd:hover {
        background-color: #f1f1f1;
    }

    .has-app-content-table.table-striped>tbody>tr:nth-of-type(odd).even,
    .has-app-content-table.table-striped>tbody>tr:nth-of-type(even).even {
        background-color: #FFF;
    }

    .has-app-content-table.table-striped>tbody>tr:nth-of-type(odd).even:hover,
    .has-app-content-table.table-striped>tbody>tr:nth-of-type(even).even:hover {
        background-color: #f5f5f5;
    }
}

@media (min-width: 768px) {
    .has-app-content-table .sub-tr {
        display: none;
    }
}

.has-app-content-table .sub-tr td {
    padding: 0 !important;
}

.has-app-content-table .app-div {
    border: 1px solid #ddd;
    margin-bottom: 1rem;
}

.has-app-content-table .app-row-content {
    padding: 1rem;
}

.has-app-content-table .app-row-main {
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
    color: #4197e1;
}

.has-app-content-table .app-row-sub {
    font-size: 0.9rem;
    line-height: 1.2;
}

.has-app-content-table .app-row-sub-title {
    min-width: 5em;
    margin-right: 0.5rem;
}

.has-app-content-table .app-row-sub-title,
.has-app-content-table .app-row-sub-content {
    padding: 0.25rem 0;
}

.has-app-content-table .app-row-btns {
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.has-app-content-table .app-row-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem;
    font-size: 0.9rem;
}

.has-app-content-table .app-row-btn+.app-row-btn {
    border-left: 1px #FFF solid;
}

.has-app-content-table .app-row-btn:hover,
.has-app-content-table .app-row-btn:focus {
    text-decoration: none;
}

@media (max-width: 768px) {
    .has-app-content-table {
        border: 0;
    }

    table.dataTable.no-footer.has-app-content-table,
    .dataTables_wrapper.no-footer .dataTables_scrollBody {
        border-bottom: 0;
    }

    .has-app-content-table thead {
        display: none;
    }

    .has-app-content-table tbody tr:not(.sub-tr) {
        display: none;
    }

    .has-app-content-table.table-striped>tbody>.odd .app-div {
        background-color: #f9f9f9;
    }

    .has-app-content-table.table-striped>tbody>.even .app-div {
        background-color: #FFF;
    }

    .has-app-content-table .sub-tr td {
        border: 0;
    }

    .has-app-content-table .odd .app-div {}
}

/* ＝＝＝＝＝＝ 日期選擇器 ＝＝＝＝＝＝ */
.datepicker-div {
    position: relative;
}

.datepicker-icon {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.9rem;
    pointer-events: none;
}

button.Zebra_DatePicker_Icon {
    top: 50% !important;
    transform: translateY(-50%);
}

.swal2-content .Zebra_DatePicker_Icon_Wrapper {
    width: 100%;
}

.Zebra_DatePicker_Icon_Wrapper .form-control[disabled],
.Zebra_DatePicker_Icon_Wrapper .form-control[readonly] {
    background-color: #FFF;
}

/* ＝＝＝＝＝＝ Flex ＝＝＝＝＝＝ */
.f-cs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.f-ss {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.f-cen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-c {
    height: 100%;
    overflow-y: auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
}

.f-c>.dataTables_wrapper {
    flex-grow: 1;
    flex-shrink: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.f-c>.dataTables_wrapper>.dt-t {
    flex-grow: 1;
    flex-shrink: 1;
    height: 100%;
    overflow-y: auto;
}

.f-c>.dataTables_wrapper>.dt-t>.dataTables_scroll {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.f-c>.dataTables_wrapper>.dt-t>.dataTables_scroll>.dataTables_scrollHead {
    flex-grow: 0;
    flex-shrink: 0;
}

.f-c>.dataTables_wrapper>.dt-t>.dataTables_scroll>.dataTables_scrollBody {
    flex-grow: 1;
    flex-shrink: 1;
    height: 100%;
    overflow-y: auto;
}

.f-c>.dataTables_wrapper>.dt-b {
    flex-grow: 0;
    flex-shrink: 0;
}

.f-a {
    width: 100%;
    flex-grow: 1;
    flex-shrink: 1;
}

.f-n {
    flex-grow: 0;
    flex-shrink: 0;
}

.fw-w {
    flex-wrap: wrap;
}

/* ＝＝＝＝＝＝ 功能 ＝＝＝＝＝＝ */
.ta-c {
    text-align: center;
}

.ta-l {
    text-align: left;
}

th.td-ta-l {
    text-align: center;
}

td.td-ta-l {
    text-align: left;
}

.mr-a {
    margin-right: auto;
}

.fw-b {
    font-weight: bold;
}

.p-r {
    position: relative;
}

.is-hidden {
    display: none !important;
}
