/*-- Reset Code --*/
body {
    padding: 0;
    margin: 0;
    background: #FFF;
    font-family: 'PingFangTC-Regular','Microsoft JhengHei','Lato', sans-serif;
    height:100%;
}
body a {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
    text-decoration: none;
}
body a:hover {
    text-decoration: none;
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}
body a:focus,
a:hover {
    text-decoration: none;
}
input[type="button"],
input[type="submit"] {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}
input[type="button"]:hover,
input[type="submit"]:hover {
    transition: 0.5s all;
    -webkit-transition: 0.5s all;
    -moz-transition: 0.5s all;
    -o-transition: 0.5s all;
    -ms-transition: 0.5s all;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: 'PingFangTC-Regular', 'Microsoft JhengHei', 'Roboto', sans-serif;
    letter-spacing: 1.2px;
}
p {
    margin: 0;
    padding: 0;
    font-size: 15px;
    letter-spacing: 1.2px;
    line-height: 1.5;
    color: #6F6F6F;
    font-family: 'PingFangTC-Regular', 'Microsoft JhengHei', 'Lato', sans-serif;
}
ul, ol {
    margin: 0;
    padding: 0;
}
label {
    margin: 0;
}
a:focus,
a:hover {
    text-decoration: none;
    outline: none
}
:root{
    --mainColor: #4285F4;
    --subColor: #274D90;
    --lightColor: #d9f2ff;
    --darkColor: #3f4b63;
}

/* @mixin flexCenter{
    display: flex;
    justify-content: center;
    align-items: center;
} */
    
/*-- //Reset Code --*/

.nav-main{
    background: transparent linear-gradient(360deg, var(--unnamed-color-0077dd) 0%, #1395FF 100%) 0% 0% no-repeat padding-box;
    background: transparent linear-gradient(360deg, #0077DD 0%, #1395FF 100%) 0% 0% no-repeat padding-box;
}

.nav-main h4 {
    font-size: 1.2em;
    color: #ffffff;
    letter-spacing: 1.5px;
    text-align: center;
}

.main-btn {
    background-color: var(--mainColor);
    color: #ffffff;
}
.light-btn {
    background-color: var(--lightColor);
    color: var(--darkColor);
}
.dark-btn {
    background-color: var(--darkColor);
    color: #ffffff;
}
a.back-btn, a:not([href]):not([tabindex]).back-btn {
    color: #ffffff;
    font-size: 26px;
    display: inline-block;
    width: 40px;
}
nav.have-back h4{
    text-indent: -40px;
}

h3.title {
    color: var(--subColor);
    font-size: 1.15em;
    letter-spacing: 2px;
    padding: 0.8em 0 0.2em;
    font-weight: 600;
}

.modal-dialog-bottom {
    display: flex;
    align-items: flex-end;
    /*min-height: calc(100% - 1rem);*/
    min-height: calc(100% - 30%);
}
.modal.fade .modal-dialog {
    transform: translate(0, 25px);
}
.modal.show .modal-dialog {
    transform: none;
}
.bottom-modal .modal-content {
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1em;
    background-color: rgba(255, 255, 255, 0.95);
}
.bottom-modal .modal-content .btn {
    padding: 1em;
    color: #6F6F6F;
    border-bottom: #d6d6d6 1px solid;
    border-radius: 0;
    letter-spacing: 1.5px;
}
.bottom-modal .modal-content .btn:last-child {
    border: none;
}

.bottom-modal .modal-content .cancel-btn {
    color: #007AFF;
    font-weight: 600;
    border: none;
}
.select-upload-checked {
    min-height: 50vh;
}
.select-upload-checked label {
    color: #525252;
    letter-spacing: 1.2px;
}
.select-upload-checked .form-check {
    margin: 1em 0.5em;
}

.send-btn {
    width: 100%;
    border-radius: 50px;
}

.loadergif {
    position: absolute;
    height: 100%;
    background-color: #ffffff;
    z-index: 100;
    opacity: 0.7;
    background-image: url(../images/loading01.gif);
    background-size: 100px 100px;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    top: 0;
    left: 0;
    pointer-events: all;
    text-align: center;
    font-size: 16px;
    line-height: 10px;
}
.loadergif span {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 100%;
    height: calc(100% - 50px);
}

/*-- 審件案件查詢 --*/
.search-container {
    display: flex;
    padding: 1em 0;
    position: relative;
}
.search-container input {
    border: #E0E0E0 solid 1px;
    border-radius: 0.5rem;
}
.search-container input::placeholder {
    color: #C9C9C9;
}
.search-container button {
    position: absolute;
    right: 0;
    color: #7f7e7e;
}

.clearable{
    position: relative;
    display: inline-block;
}
.clearable input[type=text]{
    padding-right: 24px;
    width: 100%;
    box-sizing: border-box;
}
.clearable__clear{
    display: none;
    position: absolute;
    right:0; top:0;
    padding: 0 8px;
    font-style: normal;
    font-size: 1.2em;
    user-select: none;
    cursor: pointer;
}
.clearable input::-ms-clear {  /* Remove IE default X */
    display: none;
}
.case-item .inner {
    position: absolute;
    right: 6px;    
}
.case-item .inner button,
.case-item .inner-cneter button{
    color: #7f7e7e;
}
.case-item .inner-cneter {
    position: absolute;
    right: 6px;
    top: 10px;
}
.case-list .card {
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 1em;
}
.case-body {
    flex: 1 1 auto;
    padding: 0.5rem 0.8rem;
}
.case-list .case-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.case-list .case-top .left {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.case-list .case-top button {
    color: #7f7e7e;
}
.case-list .tag {
    padding: 0 0.4em;
    color: #fff;
    border-radius: 5px;
    margin-right: 0.5em;
}
.case-list .tag.yellow {
    background-color: #FCC76B;
}
.case-list .tag.green {
    background-color: #35B972;
}
.case-list .tag.red {
    background-color: #F76251;
}
.case-list .tag.blue {
    background-color: var(--mainColor);
}

.case-list .tag.Chartreuse {
    background-color: #7fff00;
}

    .case-list .tag.IndianRed {
        background-color: #cd5c5c;
    }

    .case-list .tag.LightBlue {
        background-color: #add8e6;
    }

    .case-list .tag.SkyBlue {
        background-color: #87ceeb;
    }

    .case-list .tag.LightSkyBlue {
        background-color: #87cefa;
    }
    .case-list .tag.SteelBlue {
        background-color: #4682b4;
    }
    .case-list .tag.DodgerBlue {
        background-color: #1e90ff;
    }
    .case-list .tag.LightSalmon {
        background-color: #ffa07a;
    }

    .case-list .tag.Sienna {
        background-color: #a0522d;
    }
    .case-list .tag.SaddleBrown {
        background-color: #8b4513;
    }

    .case-list .tag.Chocolate {
        background-color: #d2691e;
    }
    .case-list .tag.SandyBrown {
        background-color: #f4a460;
    }



.case-list .tag.gray {
    background-color: #9dc4d7;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}
.case-list .case-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 0.25rem;
}
.case-list .case-bottom p{
    font-size: 0.85rem;
    letter-spacing: 0;
}

/*-- 輸入匡樣式 --*/
.case-input label {
    letter-spacing: 2px;
    color: #6F6F6F;
}
.case-input .form-select {
    color: #6F6F6F;
    border-radius: 0.5rem;
}
.case-input .form-control {
    letter-spacing: 1.5px;
    box-shadow: none;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #e9ecef;
    background-color: transparent;
}
.case-input .form-control:focus {
    box-shadow: none;
    border-color: var(--mainColor);
}
.case-input input {
    color: #6F6F6F;
    letter-spacing: 1.2px;
}
.case-input .form-control-plaintext {
    padding: 0.375rem 0.75rem;
}
.case-input input::placeholder {
    color: #ced4da;
}
.case-input .textarea {
    resize: none;
    border: 1px solid #ced4da;
    border-radius: 0.55rem;
}
/*-- //輸入匡樣式 --*/

/*-- //審件案件查詢 --*/

/*-- 審件案件內容 --*/
.case-detail h3 {
    color: var(--subColor);
    font-size: 1.15em;
    letter-spacing: 2px;
    padding: 0.8em 0 0.2em;
    font-weight: 600;
}
.case-detail label {
    letter-spacing: 2px;
    color: #6F6F6F;
}
.case-detail .data {
    display: flex;
    justify-content: center;
    align-items: center;
}
.case-detail .data p {
    padding: 0 0 0.25em 0.5em;
    border-bottom: 1px solid #E0E0E0;
}
.more-act {
    position: fixed;
    z-index: 99;
    right: 12px;
    bottom: 16px;
    
    width: 50px;
    height: 50px;
    color: #fff;
    background: var(--mainColor);
    line-height: 50px;
    border-radius: 50%;
    -webkit-transition: all .5s;
    transition: all .5s;
    text-align: center;
    -webkit-box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}
/*-- //審件案件內容 --*/

/*-- 審件案件歷程 --*/
.timeline {
    position: relative;
    padding-top: 1em;
}  

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #4A5F98;
    top: 3em;
    bottom: 48px;
    left: 26px;
    margin-left: -3px;    
}

.history .container {
    padding: 0.85em 1.2em 1em 3.2em;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.history .container::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -17px;
    background-color: white;
    border: 7px solid #4A5F98;
    top: 1em;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.left::after {
    left: 15px;
}

.timeline .content {
    position: relative;
}
.timeline h3 {
    color: #3C70CB;
    font-size: 1.15em;
    font-weight: bold;
    padding-bottom: 0.2rem;
}
/*-- //審件案件歷程 --*/

/*-- 留言對話 --*/
.message-board .case-input{
    min-height: 70vh;
    padding: 0 1em;
}
.chat {
    display: flex;
    flex-direction: column;
    padding: 0 0.5rem 6em;
}
.messages {
    margin-top: 1em;
    display: flex;
    flex-direction: column;
}
.message {
    border-radius: 20px;
    padding: 8px 15px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: inline-block;
}
.yours {
    align-items: flex-start;
}
.yours .message {
    margin-right: 25%;
    background-color: #eee;
    position: relative;
}
.yours .message.last:before {
    content: "";
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: -7px;
    height: 20px;
    width: 20px;
    background: #eee;
    border-bottom-right-radius: 15px;
}
.yours .message.last:after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: -10px;
    width: 10px;
    height: 20px;
    background: #fafcff;
    border-bottom-right-radius: 10px;
}
.mine {
    align-items: flex-end;
}
.mine .message {
    color: #fafcff;
    margin-left: 25%;
    background: linear-gradient(to bottom, #13c6ff 0%, #0077dd 100%);
    background-attachment: fixed;
    position: relative;
}
.mine .message.last:before {
    content: "";
    position: absolute;
    z-index: 0;
    bottom: 0;
    right: -8px;
    height: 20px;
    width: 20px;
    background: linear-gradient(to bottom, #13c6ff 0%, #0077dd 100%);
    background-attachment: fixed;
    border-bottom-left-radius: 15px;
}
.mine .message.last:after {
    content: "";
    position: absolute;
    z-index: 1;
    bottom: 0;
    right: -10px;
    width: 10px;
    height: 20px;
    background: #fafcff;
    border-bottom-left-radius: 10px;
}
.message pre {
    white-space: pre-line;
    margin-bottom: 0;
    font-size: 1rem;
}
.send-time {
    color: rgb(150 150 150);
}
.chat-date {
    text-align: center;    
}
.chat-date span {
    background-color: #b0c5d6;
    border-radius: 50px;
    color: #fff;
    padding: 0 0.5rem;
}
/*-- //留言對話 --*/

/*-- 檔案上傳 --*/
.payment-upload {
    padding: 1em;
}
.muti-upload input[type="file"] {
    display: none;
}
.muti-upload {
    display: block;
    position: relative;
    color: var(--mainColor);
    background-color: white;
    border: var(--mainColor) 2px solid;
    text-align: center;
    width: 100%;
    padding: 1em;
    margin-top: 1em;
    border-radius: 10px;
    cursor: pointer;
}
.payment-muti {
    min-height: 70vh;
}
.payment-muti p {
    text-align: center;
    margin: 1em 0;
}
#images {
    width: 90%;
    max-width: 500px;
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
/* .payment-muti figure {
    width: 45%;
} */
.payment-muti img {
    width: 100%;
}
.payment-muti figure {
    position: relative;
    text-align: center;
    padding-top: 1em;
}
.payment-muti figcaption {
    text-align: center;
    font-size: 2.4vmin;
    margin-top: 0.5pc;
    color: #6F6F6F;
}
.payment-muti .delete-btn {
    color: #fff;
    position: absolute;
    right: 4px;
    border-radius: 50%;
}
/*-- //檔案上傳 --*/

/*-- 核准案件修改 --*/
.data-card{    
    word-wrap: break-word;
    background-color: #E5F3FF;
    background-clip: border-box;
    border-radius: 0.5rem;
    margin: 1em 0;
}
.data-card .data {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 1rem;
    border-bottom: #ABC7E0 1px solid;
}
.data-card .data:last-child {
    border-bottom: none;
}
.data-card .data label {
    color: var(--subColor);
    font-weight: bold;
    letter-spacing: 1.5px;
}
.data-card .data p {
    color: #525252;
    letter-spacing: 1.2px;
}

.data-card .data select {
    display: block;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    -moz-padding-start: calc(0.75rem - 3px);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #525252;
    letter-spacing: 1.2px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    border: none;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.data-card .data select:focus-visible {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgb(13 110 253 / 25%);
}
/*-- //核准案件修改 --*/

/*-- 下載核貸建議書 --*/
#the-pdf {
    border: 1px solid #d9d9d9;
    direction: ltr;
    width: 100%;
}
.pdf-page-btn {
    text-align: center;
    padding: 1em 0;
}
/*-- //下載核貸建議書 --*/

/*-- 補傳 --*/
.additional {
    padding: 0 1em;
}
.additional .case-input {
    min-height: 60vh;
}
/*-- //補傳 --*/

/*-- 無紙化圖檔 --*/
.img-download-div {
    width: 100%;
    text-align: center;
    padding: 10px 0px 5px 0px;
    margin: 0 auto;
}
.img-download-btn, .img-download-btn:focus, .img-download-btn:active, .img-download-btn:hover {
    background-color: royalblue;
    padding: 5px 10px;
    font-size: 14px;
    color: #ffffff;
    border-radius: 5px;
}
.img-download-tip {
    text-align: right;
    font-size: 12px;
    color: #888888;
    line-height: 16px;
    width: 100%;
}
/*-- //無紙化圖檔 --*/

@media (max-width: 280px) {
    .message-board {
        padding: 0;
    }
    .message-board label, .message-board input, .message-board .form-select {
        font-size: 0.85rem;
    }
}
