@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;
}

div.required .control-label:not(span):after,
div.required .col-form-label:not(span):after,
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 {

}

* {
    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;
}

/* 修正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;
}

.card-header.d-flex {
    align-items: center;
}
.card-header.d-flex > .card-tools {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 0;
}
.card-header.d-flex > .card-tools > * {
    margin-left: 4px;
}

.image-preview {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    background-color: rgba(0, 0, 0, .8);
}
.image-preview.active {
    display: flex;
}
.image-preview img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
}

.info-box {
    min-height: 96px;
}


/* 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);
    }
}