/* 主要CSS，如有變更務必通知 */


/* 
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ GENERAL ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
 */

* {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

html,
body {
    min-width: 320px;
    max-width: 1920px;
    min-height: 100vh;
    position: relative;
    font-family: 'Bai Jamjuree', "微軟正黑體", sans-serif;
    font-size: 16px;
    color: #000000;
    -webkit-appearance: none;
}

body {
    background-color: #e7e7e7;
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-flow: column nowrap;
    flex-flow: column nowrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    letter-spacing: 0.5px;
}

footer {
    width: 100%;
    min-width: 320px;
    max-width: 1920px;
    padding: 8px 0;
    font-size: 12px;
    position: absolute;
    bottom: 0;
    background: #d75151;
    color: #ffffff;
    text-align: center;
}

footer div {
    text-align: center;
}


/* Input */

input {
    -webkit-appearance: none;
}

input[disabled] {
    background: #9a9a9a;
    color: #00000090;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"] {
    width: 90%;
    height: 44px;
    border: solid 1px #d75151;
    background-color: #ffffff;
    font-size: 14px;
    margin: 6px 0;
    padding: 0 12px;
}

input[type="date"] {
    width: 90%;
    height: 44px;
    border-radius: 4px;
    border: solid 1px #d75151;
    background-color: #ffffff;
    font-size: 14px;
    margin: 6px 0;
    padding: 0 12px;
}

input[type="file"] {
    width: 90%;
    height: 44px;
    border: solid 1px #d75151;
    background-color: #ffffff;
    font-size: 14px;
    margin: 6px 0;
    padding: 8px 12px;
}

input[disabled],
input[readonly] {
    color: #4a4a4a;
    background: #f5f5f5;
    border: solid 1px #aaaaaa;
}

select {
    width: 90%;
    height: 44px;
    border-radius: 10px;
    border: solid 1px #d75151;
    background-color: #ffffff;
    font-size: 14px;
    margin: 6px;
    padding: 0 12px;
    -webkit-appearance: none;
}

input[type="submit"] {
    height: 50px;
    border-radius: 10px;
    background-color: #e54b4b;
    font-size: 16px;
    color: #ffffff;
    margin: 6px;
    padding: 4px;
    border: 0;
}

input[type="submit"]:hover {
    opacity: 0.8;
}

input[type="button"] {
    height: 50px;
    border-radius: 10px;
    background-color: #e54b4b;
    font-size: 16px;
    color: #ffffff;
    margin: 6px;
    padding: 4px;
    border: 0;
}

input[type="button"]:hover {
    opacity: 0.8;
}


/* input[type="date"] {
    height: 30px;
    border: 1px solid #d75151;
    border-radius: 30px;
    background-color: #ffffff;
    color: #000000;
    font-weight: bold;
    text-align: center;
} */

textarea {
    width: 90%;
    border-radius: 4px;
    border: solid 1px #d75151;
    background-color: #ffffff;
    font-size: 14px;
    margin: 6px 0;
    padding: 0 12px;
}

button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    -webkit-appearance: none;
}

button:hover {
    opacity: 0.8;
}

button[disabled] {
    background: #9a9a9a;
    color: #00000090;
}


/* select[disabled] {
    background: #9a9a9a;
    color: #00000090;
} */

a {
    text-decoration: none;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

h3 {
    font-size: 18px;
    color: #000000;
    margin: 24px 0 8px 0;
}

h4 {
    margin: 4px 0;
}

.table tbody>tr>th {
    vertical-align: middle;
}


/* 
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝ GENERAL ＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
 */


/* TEST STYLE */

.txtTEST {
    color: #000000;
    min-width: 60px;
    font-size: 20px;
    margin: auto 0;
    padding: 8px;
}


/* 常用 */

.inlineFlex {
    width: 100%;
    display: inline-flex;
}

.inlineFlex div {
    text-align: left;
    padding: 4px 0;
    overflow-wrap: break-word;
}

.inlineBlock {
    width: 100%;
    display: inline-block;
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* BG */


/* #bgLogin {
    background: #fff url(../img/bg_login.png) center center fixed no-repeat;
} */


/* 登入相關頁面 */


/* .wrapperNoLogin {
    width: 100%;
    text-align: center;
    background: #fff url(../img/bg_login.png) top center fixed no-repeat;
}

.wrapperNoLogin input[type="submit"] {
    width: 90%;
    margin: 20px auto;
    padding: 0 16px;
}

.wrapperNoLogin input[type="submit"]:hover {
    opacity: 0.8;
}

.noLogin {
    width: 50%;
    min-width: 320px;
    max-width: 500px;
    min-height: 100vh;
    margin: auto;
    padding: 10vmin 16px 60px 16px;
    background-color: #ffffff80;
    text-align: center;
}

.noLogin img {
    width: 60%;
    margin: 6px 0;
}

.noLogin p {
    width: 90%;
    text-align: left;
    font-size: 16px;
    margin: 8px auto 0 auto;
}

.noLogin h3 {
    font-size: 24px;
    margin: 6px;
}

.noLogin h4 {
    font-size: 16px;
    margin: 32px 6px;
} */


/* Content */

.contentForm {
    min-width: 320px;
    text-align: center;
}

.contentForm p {
    width: 90%;
    font-size: 16px;
    font-weight: bold;
    text-align: left;
    margin: 8px auto 0 auto;
}

.contentForm h3 {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
}

.contentForm h4 {
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    color: #2b2b2b;
}

.contentForm input[type="submit"] {
    width: 90%;
    height: 50px;
    border-radius: 10px;
    background-color: #e54b4b;
    font-size: 16px;
    color: #ffffff;
    margin: 6px;
    padding: 4px;
    border: 0;
}

.productFrom {
    padding: 0 2.5%;
    background: #ffffff;
}

.productData {
    width: 100%;
    display: inline-flex;
}

.productData div {
    margin: 0 2.5%;
}

.productTitle {
    width: 20%;
    line-height: 50px;
    font-weight: bold;
}

.productInput {
    width: 80%;
}


/* Button Style */

.btnMain {
    min-width: 150px;
    height: 44px;
    line-height: 44px;
    border-radius: 10px;
    background-color: #e54b4b;
    font-size: 18px;
    color: #ffffff;
    margin: 6px;
    padding: 0 4px;
    border: 0;
}

.btnMain:hover {
    opacity: 0.8;
}

.btnMainBorder {
    min-width: 180px;
    height: 80px;
    line-height: 80px;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 24px;
    color: #e54b4b;
    border: 2px solid #e54b4b;
    margin: 6px;
    padding: 0 4px;
}

.btnMainBorder.active {
    background-color: #e54b4b;
    color: #ffffff;
}

#btnRegister {
    width: 90%;
    height: 44px;
    line-height: 44px;
    margin: 20px auto;
    padding: 0 16px;
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 18px;
    color: #e54b4b;
    border: 2px solid #e54b4b;
}

#btnRegister:hover {
    background-color: #e54b4b;
    color: #ffffff;
}

#btnForgotPwd {
    width: 90%;
    height: 44px;
    margin: 20px auto;
    padding: 0 16px;
    font-size: 18px;
    color: #e54b4b;
}

.btnUploadFile {
    width: 180px;
    height: 44px;
    line-height: 44px;
    border-radius: 10px;
    background-color: #f76a74;
    color: #ffffff;
    border: 0;
    padding: 0 12px;
}

.btnUploadFile:hover {
    opacity: 0.8;
}

.btnUploadFile input {
    display: none;
}

.btnUploadFile img {
    height: 35px;
    margin: 0 0 5px 0;
}

.imgPreview {
    width: 90%;
    max-width: 400px;
    margin: 8px 0;
}


/* Slider */

.sliderBanner:hover {
    opacity: 0.7;
}

.sliderBanner img {
    width: 100%;
}


/* .sliderTitle {
    color: #ffffff;
    background: #f76a74dd;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: bold;
    margin: -58px 0 0 0;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
} */


/* Toggle */


/* The switch - the box around the slider */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}


/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #00b816;
}

input:focus+.slider {
    box-shadow: 0 0 1px #00b816;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}


/* Ｍodal Box */


/* The Modal (background) */

.modal {
    min-width: 320px;
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 99;
    /* Sit on top */
    padding-top: 8vh;
    /* Location of the box */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.6);
    /* Black w/ opacity */
}


/* Modal Content */

.modal .mdContent {
    width: 90%;
    background-color: #fefefe;
    margin: 0 auto;
    padding: 20px 20px 0 20px;
    border: 1px solid #888;
    border-radius: 50px;
}


/* The Close Button */

.modal .mdClose {
    color: #aaaaaa;
    float: right;
    font-size: 20px;
    font-weight: bold;
}

.modal .mdClose:hover,
.modal .mdClose:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}


/* Modal Content */

.modal p {
    color: #d75151;
    font-size: 18px;
    text-align: left;
    margin: 0 5%;
}

.modal .mdTitle {
    font-weight: bold;
    margin: 16px 2%;
    font-size: 30px;
    text-align: left;
}

.modal .mdDivider {
    width: 96%;
    height: 2px;
    margin: auto;
    background-color: #d75151;
}

.modal .mdFilter {
    margin: 12px 0;
    text-align: center;
    display: inline-block;
    overflow-y: scroll;
    max-height: 500px;
}


/* LOGO */

#logo {
    padding: 0 8px;
}

#logoImg {
    width: 163px;
}


/* Menu */

.menuTitle {
    width: 240px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #ffffff;
    background-color: #d75151;
    font-size: 20px;
    font-weight: bold;
}


/* 內容 */

.contentOpenMenu {
    min-width: 320px;
    max-width: 1640px;
    position: absolute;
    top: 60px;
    right: 0;
    left: 280px;
    padding: 16px 16px 0 16px;
}

.contentOpenMenu h3 {
    text-align: left;
    font-size: 20px;
    font-weight: bold;
}

.contentCloseMenu {
    min-width: 320px;
    max-width: 1640px;
    height: 100%;
    overflow: scroll;
    position: absolute;
    top: 60px;
    right: 0;
    left: 0;
    padding: 16px 16px 0 16px;
}


/* Box with border-radius */

.roundBox {
    height: 306px;
    border-radius: 50px;
    background-color: #ffffff;
    margin: 20px 10px;
    -webkit-box-shadow: 1px 0 5px rgba(0, 0, 0, 0.6);
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.6);
}

.roundBox .boxTitleRound {
    height: 70px;
    border-radius: 50px 50px 0 0;
    background-color: #d75151;
}

.roundBox .boxContent {
    width: 100%;
    color: #d75151;
    padding: 8px 0 8px 8px;
}

.roundBox .boxTitle {
    font-size: 20px;
    font-weight: bold;
    line-height: 100%;
    color: #ffffff;
    margin: -42px 30px;
}


/* Box with border */

.borderBox {
    width: 100%;
    border: 1px solid #d75151;
    background-color: #ffffff;
    color: #000000;
}

.borderBox p,
.borderBox input,
.borderBox button {
    min-width: 60px;
    font-size: 20px;
    margin: auto 0;
    padding: 8px;
}


/* 空值 */

.empty {
    text-align: center;
    font-size: 20px;
    color: #a1a1a1;
    margin: 25% 0;
}


/* 篩選器，資訊欄 */

.filter,
.info {
    width: 100%;
    display: inline-flex;
}


/* 篩選器，資訊欄 */

#filterStore {
    width: 50%;
    margin: 8px;
    background-color: #d75151;
    color: #ffffff;
    border-radius: 30px;
    font-size: 20px;
    font-weight: bold;
}


/* 資訊欄 */

#infoBox {
    margin: 16px 0 0 0;
}

#storeName {
    font-size: 40px;
    font-weight: bold;
    color: #000000;
}

#storePlace {
    font-size: 20px;
    color: #848484;
}

#storeUniformNo {
    font-size: 20px;
    color: #848484;
}


/* 查詢結果 */

.result {
    display: block;
}

.result .amount {
    color: #000000;
    font-size: 18px;
    margin: 8px;
}

.result .amountNo {
    color: #f76a74;
    font-size: 18px;
    margin: 8px;
}

.result .date {
    color: #000000;
    font-size: 18px;
    margin: 8px;
}

.box {
    background-color: #ffffff;
    margin: 8px 0;
    font-size: 14px;
}

.box div {
    margin: auto;
}

.box .boxTitle {
    line-height: 40px;
    background-color: #d75151;
    color: #ffffff;
    font-size: 14px;
}

.box .boxContent {
    width: 100%;
    color: #d75151;
    padding: 8px 0 8px 8px;
}

.box .inlineContent {
    width: 100%;
    display: inline-flex;
}

.box .inlineContentData {
    width: 50%;
    display: inline-flex;
}

.box .ellipsis {
    width: 84%;
    margin: 20px 12px;
    padding: 0 8px;
    font-weight: bold;
    line-height: 100%;
    color: #ffffff;
}

.box .status {
    width: 16%;
    min-width: 115px;
    font-size: 20px;
    border-radius: 10px;
    background-color: #ffffff;
    color: #00b816;
    margin: auto 8px;
    padding: 6px;
    text-align: center;
    font-weight: bold;
}

.box .listTitle {
    width: 20%;
    min-width: 80px;
    text-align: right;
    color: #848484;
    font-size: 18px;
    margin: auto;
}

.box .listContent {
    width: 80%;
    text-align: left;
    color: #000000;
    margin: auto;
    padding: 12px 0 12px 24px;
}

.box .listContentCenter {
    width: 80%;
    text-align: center;
    color: #000000;
    font-size: 20px;
    margin: auto;
    padding: 8px;
}

.box .dividerV {
    width: 1px;
    margin: 12px;
    background-color: #d75151;
}

.box .dividerH {
    width: 100%;
    height: 1px;
    background-color: #d75151;
}

.btnAction {
    border-radius: 10px;
    background-color: #e54b4b;
    color: #ffffff;
    padding: 0 4px;
    border: 0;
    min-width: 60px;
    height: 40px;
    line-height: 40px;
    margin: 2px;
    font-size: 16px;
}


/* Popup */

#mdFilterStore {
    text-align: center;
}

.ProductList {
    border: 1px solid #000;
    margin: 20px;
    background: #eee;
    display: grid;
    grid-gap: 5px;
}

.ProductList__item {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Card */

.card {
    width: 50%;
    min-height: 300px;
    background-color: #ffffff;
    margin: 8px 8px 8px 0;
    border-radius: 10px;
    overflow: hidden;
}

.card .cardTitle {
    height: 60px;
    margin: -20px 0 0 0;
    background-color: #d75151;
}

.card h4 {
    padding: 28px 16px;
    font-weight: bold;
    color: #ffffff;
}

.card p {
    margin: 20px 12px;
    padding: 0 8px;
    font-weight: bold;
    line-height: 100%;
    color: #4b4b4b;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card img {
    width: 100%;
}

.cardWrapper {
    width: 100%;
    display: inline-flex;
}

.cardWrapper * {
    width: 100%;
}

.cardFilter {
    width: 100%;
    margin: auto;
    padding: 16px;
    min-height: auto;
    text-align: left;
    background-color: #fbfbfb;
    border-radius: 10px;
}

.cardFilter * {
    color: #4b4b4b;
    font-size: 16px;
}


/* ||| Media ||| */


/* RWD */

@media screen and (max-width: 431px) {
    /* Logo Img */
    /* #logoImg {
        width: 200px;
        padding: 6px;
    } */
    /* Logo */
    #logo {
        padding: 0;
        width: 200px;
        margin: auto;
    }
    .menuTitle {
        width: 100%;
        padding: 0 30vmin 0 0;
    }
}

@media screen and (max-width: 656px) {
    /* 篩選器，主要資訊區塊 */
    .filter,
    .info {
        display: grid;
        padding: 0 16px 8px 16px;
    }
    #filterStore {
        width: 100%;
        margin: 16px 0;
    }
}

@media screen and (max-width: 710px) {
    .box .inlineContent {
        display: grid;
    }
    .box .inlineContentData {
        width: 100%;
    }
    .box .dividerV {
        display: none;
    }
}


/* Card */

@media screen and (min-width: 1006px) {
    .cardWrapper {
        display: inline-flex;
    }
    .card {
        width: 50%;
    }
    #announce {
        width: 80%;
    }
    #qrcode {
        width: 20%;
    }
}

@media screen and (max-width: 1005px) {
    .cardWrapper {
        display: grid;
    }
    .card {
        width: 100%;
    }
    #announce {
        width: 100%;
    }
    #qrcode {
        width: 100%;
    }
}


/* Slider */


/* @media screen and (max-width: 599px) {
    .sliderTitle {
        margin: 0;
    }
}

@media screen and (min-width: 600px) {
    .sliderTitle {
        margin: -58px 0 0 0;
    }
} */


/* ShowBox */


/* .showBox {
    border: 1px solid #000;
    margin: 20px;
    background: #eee;
    display: grid;
    grid-gap: 5px;
}

.showBox__item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media screen and (max-width: 575px) {
    .showBox {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (min-width: 576px) {
    .showBox {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 768px) {
    .showBox {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media screen and (min-width: 992px) {
    .showBox {
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }
} */


/* ||| Media ||| */