html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0 auto;
    padding: 0;
    font-size: 1rem;
    font-style: normal;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"
}

.container {
    width: 1200px;
    padding: 0;
}

@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;
    }
}

header > .container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

header {
    width: 100%;
    height: 65px;
    background: url(../../img/head.jpg) top center repeat-x;
}

.gsc-container {
    width: 300px;
    position: fixed;
    top: 0;
    left: 66vw;
    right: 0;
    height: 54px;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.gsc-control-cse {
    background-color: transparent !important;
    border-color: transparent !important;
}

.gsc-input{
    padding-right: 0 !important;
}

.gsc-input-box{
    border-radius: 3rem !important;
}

main {
    flex: 1;
    background: #efefef;
}

.star:before {
    content: "*";
    color: #ff0000;
}

.navbar {
    padding-left: 2rem;
    background-color: #FFFFFF;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item a {
    color: #24ACFF;
    font-weight: normal;
    text-decoration: none;
}

.well {
    background-color: #FFFFFF !important;
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 15px;
    border: unset;
}

*, ::after, ::before {
    box-sizing: border-box;
}

img {
    vertical-align: middle;
}

.textRight {
    text-align: right
}

::selection {
    color: white; /* 反白文字的前景色為白色 */
    background-color: #2894FF; /* 反白文字的背景色為藍色 */
}

.web-banner {
    height: 65px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: url(../../img/head.jpg) center no-repeat;
}

header h1 {
    margin: 0.5rem 0.5rem 0.5rem 0;
}

header h1 img {
    height: 42px;
}

.mobile-banner {
    display: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#responsive {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #eb6373;
    border-bottom: 1px solid #dc4e4e;
    height: 40px;
}

#responsive > li {
    float: left;
    margin-left: 25px;
}

#responsive > li > a {
    color: #fff;
    font-weight: normal;
    font-size: 20px;
    line-height: 36px;
    padding-top: 5px;
    overflow: hidden;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;

    position: relative;
    display: inline-block;

    display: block;
    width: 100%;
    height: 100%;
}

/* 橫槓初始狀態 */
#responsive li > a::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: currentColor; /* 橫槓顏色 */
    transform: scaleX(0); /* 寬度縮到 0 */
    transform-origin: left; /* 從左邊開始伸展 */
    transition: transform 0.3s ease;
}

/* hover 時橫槓展開 */
#responsive > li:hover > a::before {
    transform: scaleX(1); /* 展開 */
    transform-origin: left; /* 從左邊往右展開 */
}

.menu_detail {
    border-top-color: #fff;
    background-color: #fff;
    position: fixed;
    z-index: 999;
    border-radius: 0 0 3px 3px;
    margin: 0 0 0 0;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    height: auto !important;
    width: 175px;
    border-bottom: 2px solid #dc4e4e;
    display: none;
}

.menu_detail.open {
    display: block !important;
}

#responsive li:hover > .menu_detail {
    display: block !important;
}

.menu_detail li a {
    color: #767D86 !important;
    text-decoration: none;
    font-size: 0.9em;
    display: block;
    width: 100%;
    height: 100%;
}

.menu_detail li {
    padding: 10px;
    border-bottom: 1px solid #eff4f7;
}

.menu_detail li:hover {
    background-color: #FFEEF0;
}

.menu_detail li:hover a {
    color: #dc4e4e !important;
}

/*----------*/
/*a#AL, a#AC, a#AZ {*/
/*    color: #fff !important;*/
/*    display: block;*/
/*    height: 0;*/
/*    width: 0;*/
/*}*/

/*a#AL {*/
/*    color: #B1D9FF !important;*/
/*}*/

/*a#AZ {*/
/*    color: #4F4F4F !important;*/
/*}*/

/*a#AL:focus, a#AC:focus, a#AZ:focus {*/
/*    color: #000 !important;*/
/*    border: 1px solid #000;*/
/*}*/

/*a#AZ:focus {*/
/*    color: #fff !important;*/
/*}*/


.scrollToTop {
    z-index: 99999;
    position: fixed;
    bottom: 10px;
    right: 10px;
    opacity: 0.5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #000 center no-repeat url(../../img/icon_arrow_down_icon.svg);
    background-size: 24px 24px;
    border: 1px rgba(255, 255, 255, 0.6) solid;
    box-shadow: 0px 0px 3px #ffffff;
    transform: rotate(180deg);
    transition: all 0.2s linear;
}

.scrollToTop.hide {
    opacity: 0;
}

div.input-group {
    position: relative;;
}

label {
    display: inline-block;
    font-weight: bold;
}

.form-control:focus {
    /*box-shadow: unset;*/
}

label input[type=checkbox].checkbox + span:before {
    border-radius: 2px !important;
}

.col-form-label {
    font-weight: bold;
    font-size: 1rem;
    padding-bottom: 0.3em !important;
}

.form-control:disabled:not(.modal-dialog .form-control, textarea),
.form-control[readonly]:not(.modal-dialog .form-control, textarea) {
    background-color: #FFFFFF !important;
    /*border: hidden;*/
    pointer-events: none;
}

div .disabled {
    pointer-events: none;
    cursor: default;
}

.form-control[readonly]:not(.modal-dialog .form-control, textarea)::placeholder {
    color: #FFFFFF !important
}

textarea.form-control[readonly]::placeholder {
    color: #e9ecef !important
}

.form-control,
.form-select {
    background-color: #FFF;
    /*border: 1px solid #B0B0B0;*/
}

option {
    background-color: #FFF;
}

.form-select:disabled,
.form-select[readonly] {
    background-color: #FFFFFF !important;
    /*border: hidden;*/
    pointer-events: none;
    background-image: unset;
}

label input[type=radio][readonly].radiobox + span, label input[type=radio][readonly].radiobox:checked + span, label input[type=checkbox][readonly].checkbox + span,
label input[type=radio][disabled].radiobox + span, label input[type=radio][disabled].radiobox:checked + span, label input[type=radio][disabled].radiobox:checked + span:before {
    color: #808080 !important;
}

.deptOnly label.form-check-inline {
    pointer-events: none;
}

.deptOnly label input[type=radio][readonly].radiobox + span,
.deptOnly span {
    color: grey !important;
}

label input[type=radio][readonly].radiobox + span,
label input[type=radio][readonly].radiobox:checked + span,
label input[type=checkbox][readonly].checkbox + span {
    color: #A7A7A7;
    cursor: not-allowed;
}

textarea[readonly] ::-webkit-input-placeholder {
    /* WebKit browsers */
    color: transparent;
}

.margin-bottom-20 {
    margin-bottom: 20px;
}

.padding0 {
    padding: 0;
}

.grayBG {
    /* 類似disabled和readonly的效果 */
    pointer-events: none;
    background-color: #e9ecef !important;
}

/*報錯*/
.has-error input,
.has-error select,
.has-error label input[type=checkbox].checkbox + span:before,
.has-error label input[type=radio].radiobox + span:before,
.has-error textarea {
    border: 1px solid #DC3545;
    background-color: #FFE3E3;
}

.deptOnly label input[type=radio].radiobox + span:before {
    border: 1px solid #bfbfbf !important;
    background-color: #f4f4f4 !important;
}

.help-block,
.invalid-feedback {
    display: block;
    color: #DC3545;
    font-size: 1rem;
    font-family: FontAwesome, serif;
}

.help-block:before,
.invalid-feedback:before {
    content: "\f057  ";
}

.description-block {
    display: block;
    color: #3483CD;
    font: normal normal normal 1rem FontAwesome;
}

.blue {
    color: #3483CD;
}

.description-block:before {
    content: "\f05a  ";
}

.grayDesc-block {
    display: block;
    color: #585757;
    opacity: 0.5;
}

.grayArea {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: -1;
}

#menu a:link,
#menu a:visited,
#menu a:hover {
    color: #000000;
}

#menu a {
    text-decoration: none !important;
}

nav ul b {
    float: unset;
    font-size: 1.5rem;
    margin: 0;
}

nav > ul > li > a b {
    position: unset !important;
}

.hidden {
    display: none;
}

/* 模板樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.modal-dialog {
    width: 70%;
    max-width: unset;
    animation: fadeInUp;
    animation-duration: 0.5s;
    border-radius: 15px;
}

.modal-content {
    border-radius: 0;
}

.modal-body {
    width: 95%;
    margin-top: 2rem;
}

.modal-content {
    background-color: unset;
    border: hidden;
    height: 100%;
}

.modal-footer {
    border: hidden;
}

.modal-backdrop {
    background-color: unset;
}

#infoModal .modal-body {
    width: 100%;
    margin-top: 0;
}

.radio-inline {
    padding-top: 7px;
    margin-top: 0;
    margin-bottom: 0;
}

#timeModal .modal-dialog {
    height: 30% !important;
    max-width: 35%;
    margin: 14% auto;
    min-height: 43%;
}

#timeModal .modal-footer {
    position: absolute;
    right: 0;
    bottom: 0;
}

.flashBagModal .modal-dialog {
    height: 300px !important;
    max-width: 600px;
    margin: 14% auto;
    min-height: 33%;
}

.flashBagModal .modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flashBagModal .modal-title b {
    display: flex;
    align-items: center;
}

.flashBagModal .modal-title i {
    margin-right: 1rem;
    font-size: 2.8rem;
}

.flashBagModal #successModalMsg {
    line-height: 30px;
}

#successModal .modal-title i {
    color: #17BE9A;
}

#errorModal .modal-title i,
#deleteModal .modal-title i {
    color: #DC3545;
}

.flashBagModal .modal-footer {
    border-top: 1px solid lightgrey;
    justify-content: center;
}

.btn {
    border-radius: 4px !important;
}

#footer .btn,
.flashBagModal .modal-footer .btn {
    width: 10rem;
}

.btn-primary {
    background-color: #0F78C4;
    border-color: #0F78C4;
}

.btn-primary:hover {
    background-color: #0A8DEC;
    border-color: #0A8DEC;
}

.btn-darkBlue {
    color: #FFFFFF;
    background-color: #29386B;
}

.btn-darkBlue:hover {
    color: #FFFFFF;
    background-color: #3C4F93;
}

.btn-white {
    color: #444444;
    background-color: #F5FBFF;
    border: 1px solid #D9D9D9;
}

.btn-white:hover {
    background-color: #F9FCFF;
}

.btn-gray {
    color: #404040;
    background-color: #D9D9D9;
    border: 1px solid #D9D9D9;
}

.btn-gray:hover {
    background-color: #EDEDED;
    border: 1px solid #EDEDED;
}

.btn-lightpink {
    color: black;
    background-color: #FFE0E0;
}

.nav {
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.tab-content > .tab-pane {
    display: none;
}

.tab-content > .active {
    display: block;
}

.margin-top-02 {
    margin-top: 0.2rem;
}

/*.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {*/
/*    color: #1C558A;*/
/*    font-weight: bold;*/
/*    background-color: #fff;*/
/*    border: 1px solid #fff;*/
/*    border-right: 2px solid #D9D9D9;*/
/*}*/

/*.nav-tabs .nav-link {*/
/*    background-color: #E8E8E8;*/
/*    color: #B3B3B3;*/
/*    padding: 12px 20px;*/
/*}*/

#searchBlock {
    text-align: center;
}

.dateSearchGroup {
    display: flex;
}

.input-group-addon {
    background-color: gainsboro;
}

.dateSearchGroup input:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.dateSearchGroup input:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/*list案件狀態block*/
div.colorBlockPosition {
    width: 100%;
    display: table;
}

.colorBlock {
    display: table-cell;
    height: 35px;
    vertical-align: middle;
    text-align: center;
    line-height: 16px;
    border-radius: 3px;
    color: #FFFFFF;
}

/*狀態*/
.label-green {
    background-color: #8ac38b;
}

.label-red {
    background-color: #ff6565;
}

.label-blue {
    background-color: #1976d2;
}

.label-gray {
    background-color: #A0A09F;
}

.label-orange {
    background-color: #fba539;
}

.label-purple {
    background-color: mediumpurple;
}

.tool-width {
    font-weight: unset;
    text-align: center;
}

.tool-width2 {
    width: 50%;
    font-weight: unset;
    text-align: center;
}

.datatable a {
    color: inherit;
}

.red {
    color: red;
}

/*
datepicker
*/

#ui-datepicker-div {
    z-index: 100 !important;
    position: absolute;
    width: 15%;
}

select.ui-datepicker-month {
    margin-left: 6.5% !important;
}

#left-panel nav ul > li.last > ul > li > a > i.fa-folder-open, #left-panel nav ul > li.last > ul > li > a > i.fa-folder {
    color: #FFD306;
}

.smart-style-5 #left-panel {
    padding-top: 0;
    margin-top: 49px;
}

.datetimepicker {
    /* 後方加上圖示 */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 18px;
    cursor: pointer;
}

/* 今天按鈕 */
.ui-datepicker-current {
    opacity: 1 !important;
    font-weight: bold !important;
}

/*------------log message------------*/
.detail-log {
    position: absolute;
    right: 0;
}

.logMessageButton,
.moreLogMessageButton,
.closeLogMessageButtonDiv {
    font-size: 0.9rem !important;
    border-radius: 4px;
}

.closeLogMessageButtonDiv {
    position: fixed;
    height: 35px;
    bottom: 0;
}

.logCollapse {
    position: fixed;
    top: 0;
    right: 0;
    width: 450px;
    height: 100%;
    z-index: 999;
    background-color: white;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 7px 7px 20px;
}

.logCollapse::-webkit-scrollbar {
    width: 2px;
    background-color: #F1F1F1;
}

.logCollapse::-webkit-scrollbar-thumb {
    background: #C1C1C1;
}

.smart-timeline-icon {
    background-color: #29386B;
}

.smart-timeline-time {
    font-size: 0.8rem !important;
}

.smart-timeline-content {
    font-size: 0.75rem !important;
}

.smart-timeline-content > p {
    margin-bottom: 0.5em;
}

.smart-timeline-content > pre {
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: auto;
    height: 120px;
    margin-right: 20px;
    padding: 7px;
    font-size: 1em;
    font-family: "Microsoft JhengHei", "Open Sans", Arial, Helvetica, Sans-Serif;
}

/*------------footer------------*/

section.footer {
    background-color: #F0F0E6;
    color: #fff;
    font-size: 0.9em;
}

section.footer .container {
    display: flex;
    background-color: #e97693;
}

section.footer .block {
    margin: 0 10px;
}

section.footer ul.one li {
    color: #fff;
    background: #ec6373;
    margin: 0 0 2px 0;
    padding: 8px;
}

section.footer .map:link,
section.footer .map:active,
section.footer .map:visited {
    text-decoration: underline;
    color: #fdffb4 !important;
}

section.footer .mail {
    text-decoration: none;
    color: #FFF !important;
}

section.footer .one p {
    margin: 0 0 0 2em;
}

section.footer h3 {
    padding: 0.3em 0;
    font-size: 1em;
    font-weight: 600;
}

section.footer ul.two .line {
    color: #FFF;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s ease-in-out;
}

section.footer ul.two li {
    letter-spacing: 1px;
    border: 1px solid #eeeeee;
    padding: 0.5em;
    margin-bottom: 0.4em;
    transition: all 0.2s ease-in-out;
}

section.footer ul.two .line:hover {
    color: #ec6373;
}

section.footer ul.two .line:hover li {
    background: #fff;
}

section.footer .three a:link,
section.footer .three a:active,
section.footer .three a:visited {
    text-decoration: underline;
    color: #fdffb4 !important;
}

section.footer .block {
    width: 290px;
}

/*a.menu_toggle:focus {*/
/*    box-shadow: 0 0 0 3px #86b7fe !important;*/
/*    border-radius: 5%;*/
/*    outline: none;*/
/*}*/

button:focus {
    box-shadow: 0 0 0 3px #000 !important;
}

.key {
    padding:.3em;
    padding-bottom:1em;
    padding-left:1em;
    color:#333;float:left;
}

.key span{
    color: #F93;
    margin-left: 1em;
    margin-right: 1em;
    background: none repeat scroll 0% 0% rgba(255, 247, 230, 1);
    padding: 0.3em;
    border: 1px solid rgba(243, 228, 225, 1);
}

.button.gray {
    color: #fff;
    background: #a0a5aa;
    text-decoration: none;
}

.button.gray:hover {
    background: #e97794;
}

/*.jumpMenu:focus > li {*/
/*    border: 3px solid #86b7fe;*/
/*}*/

@media screen and (max-width: 1210px) {
    header h1 img {
        height: 42px;
    }
}

@media screen and (max-width: 992px) {
    header > .container {
        position: fixed;
        left: 0;
        transform: unset;
        max-width: 100% !important;
    }

    #responsive {
        background: unset;
        border-bottom: unset;
        display: flex;
        flex-direction: column;
    }

    #responsive > li {
        margin: 0;
        padding: 0 10px;
        border-bottom: 1px solid;
    }

    #responsive > li:hover {
        background-color: #f4b8d1;
    }

    #responsive > li > a {
        color: #000;
    }

    #responsive li > a::before {
        content: unset;
    }

    .menu_detail {
        width: 40%;
    }

    .menu_detail li a {
        font-size: 1em;
    }

    section.footer .container {
        flex-direction: column;
    }

    section.footer .block {
        width: 100%;
        margin: 0;
        padding: 1em 1em 0;
    }

    .modal-dialog {
        width: auto;
    }
}

@media screen and (max-width: 800px) {
    .web-banner {
        display: block;
    }
}

@media screen and (max-width: 550px) {

}

@media screen and (max-width: 575px) {
    header {
        height: 10vh;
    }

    .container, .container-sm {
        max-width: 90vw;
    }
}

@media screen and (max-width: 400px) {
    header {
        height: 7vh;
    }
}