@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');

* {
    font-family: 'Noto Sans TC', sans-serif;
}

a,
a:hover {
    color: inherit;
}

div.required .control-label:not(span):after,
div.required .col-form-label:not(span):after,
th.required:before,
td.required:before {
    content: ' * ';
    color: #F00;
    font-weight: bold;
}

fieldset:not(:last-child) {
    margin-bottom: 32px;
}
fieldset.no-margin-bottom {
    margin-bottom: 0!important;
}
.custom-control-label {
    user-select: none;
}

legend {
    display: block;
    width: 100%;
    padding: 0;
    margin-bottom: 18px;
    font-size: 20px;
    line-height: inherit;
    color: #333;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
}
fieldset legend {
    padding-bottom: 5px;
}

.card-title > i {
    margin-right: 8px;
}

th {
    white-space: nowrap;
}
td {

}

/* loading mask */
.lmask {
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: #000;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 9999;
    opacity: 0.4;
}
.lmask.fixed {
    position: fixed;
}
.lmask:before {
    content: "";
    background-color: rgba(0, 0, 0, 0);
    border: 5px solid rgba(0, 183, 229, 0.9);
    opacity: 0.9;
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    box-shadow: 0 0 35px #2187e7;
    width: 50px;
    height: 50px;
    -moz-animation: spinPulse 1s infinite ease-in-out;
    -webkit-animation: spinPulse 1s infinite linear;
    margin: -25px 0 0 -25px;
    position: absolute;
    top: 50%;
    left: 50%;
}
.lmask:after {
    content: "";
    background-color: rgba(0, 0, 0, 0);
    border: 5px solid rgba(0, 183, 229, 0.9);
    opacity: 0.9;
    border-left: 5px solid rgba(0, 0, 0, 0);
    border-right: 5px solid rgba(0, 0, 0, 0);
    border-radius: 50px;
    box-shadow: 0 0 15px #2187e7;
    width: 30px;
    height: 30px;
    -moz-animation: spinoffPulse 1s infinite linear;
    -webkit-animation: spinoffPulse 1s infinite linear;
    margin: -15px 0 0 -15px;
    position: absolute;
    top: 50%;
    left: 50%;
}
@-moz-keyframes spinPulse {
    0% {
        -moz-transform: rotate(160deg);
        opacity: 0;
        box-shadow: 0 0 1px #2187e7;
    }
    50% {
        -moz-transform: rotate(145deg);
        opacity: 1;
    }
    100% {
        -moz-transform: rotate(-320deg);
        opacity: 0;
    }
}
@-moz-keyframes spinoffPulse {
    0% {
        -moz-transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
    }
}
@-webkit-keyframes spinPulse {
    0% {
        -webkit-transform: rotate(160deg);
        opacity: 0;
        box-shadow: 0 0 1px #2187e7;
    }
    50% {
        -webkit-transform: rotate(145deg);
        opacity: 1;
    }
    100% {
        -webkit-transform: rotate(-320deg);
        opacity: 0;
    }
}
@-webkit-keyframes spinoffPulse {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}


element.style {
}
* {
    font-family: 'Noto Sans TC', sans-serif;
}
*, ::after, ::before {
    box-sizing: border-box;
}

div {
    display: block;
}

li {
    text-align: -webkit-match-parent;
}
.list-unstyled {
    padding-left: 0;
    list-style: none;
}

ul {
    list-style-type: disc;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 10rem;
    padding: .5rem 0;
    margin: .125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: .25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.175);
}
.bootstrap-datetimepicker-widget {
    list-style: none;
}
.table:not(.table-dark) {
    color: inherit;
}
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    background-color: transparent;
}

.btn-round {
    border-radius: 16px;
}

/* 修正timepicker在table底下時的樣式 */
.bootstrap-datetimepicker-widget.dropdown-menu {
    width: auto;
}
.timepicker .table-condensed,
.timepicker td,
.timepicker th {
    border: none;
    border-collapse: unset;
    border-spacing: 0;
}

.hidden {
    display: none!important;
}

.card-status-header {
    cursor: pointer;
}

.widget-user-2 .widget-user-desc,
.widget-user-2 .widget-user-username {
    margin-left: 8px;
}
/*loading畫面*/
.over-wrapper{
    align-content: center;
    background-color: rgba(0,0,0,0.5);
    bottom: 0;
    justify-content: center;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;
}
.over-wrapper i {
    position: absolute;
    top: 35%;
    left: 45%;
}

#table-stock_filter {
    display: none;
}

#table-healthFacility_wrapper .dataTables_scrollBody,
#table-log_wrapper .dataTables_scrollBody {
    max-height: 60vh;
}

.image-selector {
    width: 120px;
    height: 120px;
    padding: 8px;
    border: 1px solid #CCCCCC;
    border-radius: 8px;
    cursor: pointer;
}
.image-selector-preview {
    position: relative;
    width: 100%;
    height: 100%;
}
.image-selector-preview::after {
    position: absolute;
    top: 0;
    left: 0;
    content: "請點擊選擇圖片或影片";
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #777777;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    background-color: #FFFFFF;
}
.image-selector-preview img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #FFFFFF;
    z-index: 9;
}

.group-buying-card {

}
.group-buying-card .divider {
    width: calc(100% - 16px);
    height: 0.5px;
    margin: 0 8px;
    background-color: #DDDDDD;
    box-sizing: border-box;
}
.group-buying-card .card-body {
    display: flex;
    padding: 8px;
}
.group-buying-card .card-body .cover-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center;
}
.group-buying-card .card-body .info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 16px;
}
.group-buying-card .card-body .top {
    flex: 1;
}
.group-buying-card .card-body .total {
    align-self: flex-end;
}
.group-buying-card .card-footer {
    background: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.group-buying-card .card-footer::after {
    display: none;
}
.group-buying-card .order-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.group-buying-card .row {
    margin: 0;
    gap: 4px;
    align-items: center;
}
.group-buying-card .badge {
    font-size: 100%;
}

.store-list {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 auto;
}
.store-list .store-item {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 96px;
    padding: 16px;
    border-radius: 4px;
    color: #FFFFFF;
    background-color: rgba(100, 100, 100, .7);
    font-weight: 300;
    cursor: pointer;
}

.btn-sns {
    display: block;
    height: 42px;
    border-radius: 4px;
    line-height: 42px;
    text-align: center;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    text-decoration: none;
    outline: none;
    user-select: none;
    border: none;
}
.btn-sns:hover {
    opacity: 0.7;
}
.btn-sns .btn-sns-label {
    display: block;
    margin: 0 0 0 42px;
    line-height: 42px;
    font-weight: bold;
    color: #fff;
}

.btn-line {
    background: url(../img/btn_icon_line.png) no-repeat #00C300;
    background-size: 42px 42px;
}
.btn-line .btn-sns-label {
    border-left: 1px solid #00b300;
}

.btn-facebook {
    background: url(../img/btn_icon_facebook.png) no-repeat #1877F2;
    background-size: 26px 26px;
    background-position: 9px 50%;
}
.btn-line .btn-sns-label {

}

.btn-line-notify {
    background: url(../img/bell-alarm-notification-notify-svgrepo-com.svg) no-repeat #00C300;
    background-size: 42px 42px;
}
.btn-line-notify .btn-sns-label {
    border-left: 1px solid #00b300;
}

.btn-apple {
    background: url(../img/btn_apple_login.png) no-repeat #000000;
    background-size: 42px 42px;
}

fieldset:not(:last-child) {
    border-bottom: 1px solid #999999;
}

.content-header .action-bar {
    align-items: flex-start;
}

.media-image {
    width: 100%;
    height: 100%
}
.media-image img,
.media-image .video {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #FFFFFF;
    z-index: 9;
}
.media-image video {
    width: 100%;
    height: 100%;
}
.media-image .video::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    content: "\f144";
    font-family: "Font Awesome 5 Pro";
    width: 34px;
    height: 34px;
    font-size: 31px;
    border-radius: 100px;
    overflow: hidden;
    background-color: #FFFFFF;
    color: #000000;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: .7;
}

.notifyjs-container {
    max-width: 240px;
}
.notifyjs-bootstrap-base {
    white-space: normal!important;
}