@charset "utf-8";

html {
    touch-action: none;
}
body {
    font-family: Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK TC","Noto Sans CJK SC","Microsoft JhengHei","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-size: .9rem;
    line-height: 1.6;
    overflow-x: hidden;
}
::placeholder {
    font-size: .9em;
}
/*table*/
caption {
    text-align: center;
}
.table-nocaption caption {
    display: none;
}
@media (max-width: 991.98px) {
    .table-rwd {
        overflow: hidden;
    }
    .table-rwd th {
        display: none;
    }
    .table-rwd td {
        display: block;
    }
    .table-rwd td:before {
        content: attr(data-th) " : ";
        font-weight: bold;
        display: block;
        padding-bottom: .75rem;
    }
    .table-rwd tr+tr {
        border-top: 2px solid;
    }
}
@media (max-width: 767.98px) {
    .table-rwd-md {
        overflow: hidden;
    }
    .table-rwd-md th {
        display: none;
    }
    .table-rwd-md td {
        display: block;
    }
    .table-rwd-md td:before {
        content: attr(data-th) " : ";
        font-weight: bold;
        display: block;
        padding-bottom: .75rem;
    }
    .table-rwd-md tr+tr {
        border-top: 2px solid;
    }
}
@media (max-width: 575.98px) {
    .table-rwd-sm {
        overflow: hidden;
    }
    .table-rwd-sm th {
        display: none;
    }
    .table-rwd-sm td {
        display: block;
    }
    .table-rwd-sm td:before {
        content: attr(data-th) " : ";
        font-weight: bold;
        display: block;
        padding-bottom: .75rem;
    }
    .table-rwd-sm tr+tr {
        border-top: 2px solid;
    }
}
/*img*/
.img-center {
    display: block;
    margin: auto;
}
.setbg-cover {
    background-size: cover;
}
.setbg-contain {
    background-size: contain;
}
.setbg-center {
    background-position: center;
}
.setbg-top {
    background-position: center top;
}
.img-figure {
    text-align: center;
    margin: auto;
}
.img-figure figcaption {
    margin-top: 8px;
}
.img-figure figcaption:before {
    content: '\f0de';
    font-family: 'Font Awesome 5 Pro';
    font-size: 1rem;
    margin-right: 8px;
    vertical-align: sub;
    font-weight: 900;
}
/*checkbox/radio*/
.form-check {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}
.form-check-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.form-check-label {
    position: relative;
    margin-bottom: 0;
}
.form-check input:disabled + .form-check-label {
    opacity: 0.65;
    cursor: not-allowed;
}
.form-check-label::before,
.form-check-label::after {
    position: absolute;
    top: .25rem;
    left: -1.25rem;
    display: block;
    width: 1rem;
    height: 1rem;
    content: "";
}
.form-check-label::before {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    transition: background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-check-input:focus~.form-check-label::before {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(0,0,0,.1);
}
.form-check-label::before {background:#dee2e6;}
.form-check-primary input:checked~.form-check-label::before {background-color: #007bff;}
.form-check-success input:checked~.form-check-label::before {background-color: #28a745;}
.form-check-danger input:checked~.form-check-label::before {background-color: #dc3545;}
.form-check-warning input:checked~.form-check-label::before {background-color: #ffc107;}
.form-check-info input:checked~.form-check-label::before {background-color: #17a2b8;}
.form-check .form-check-input[type="radio"]~.form-check-label::before {
    border-radius: 50%;
}
.form-check-label::after {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60% 60%;
}
.form-check .form-check-input:checked~.form-check-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23444' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}
.form-check .form-check-input[type="radio"]:checked~.form-check-label::after {
    background-size: 50% 50%;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23444'/%3E%3C/svg%3E");
}
.form-check-primary .form-check-input:checked~.form-check-label::after,
.form-check-success .form-check-input:checked~.form-check-label::after,
.form-check-danger .form-check-input:checked~.form-check-label::after,
.form-check-warning .form-check-input:checked~.form-check-label::after,
.form-check-info .form-check-input:checked~.form-check-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}
.form-check-primary .form-check-input[type="radio"]:checked~.form-check-label::after,
.form-check-success .form-check-input[type="radio"]:checked~.form-check-label::after,
.form-check-danger .form-check-input[type="radio"]:checked~.form-check-label::after,
.form-check-warning .form-check-input[type="radio"]:checked~.form-check-label::after,
.form-check-info .form-check-input[type="radio"]:checked~.form-check-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E");
}
.form-check .form-check-input:indeterminate~.form-check-label::after {
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23444' d='M0 2h4'/%3e%3c/svg%3e);
}
.form-check-primary .form-check-input:indeterminate~.form-check-label::after,
.form-check-success .form-check-input:indeterminate~.form-check-label::after,
.form-check-danger .form-check-input:indeterminate~.form-check-label::after,
.form-check-warning .form-check-input:indeterminate~.form-check-label::after,
.form-check-info .form-check-input:indeterminate~.form-check-label::after {
    background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e);
}
.form-check-inline {
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin-right: 1rem;
}
/* upload */
.input-upload {
    position: relative;
}
.input-upload > [type=file] {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(2.25rem + 2px);
    margin: 0;
    opacity: 0;
}
.input-upload span {
    position: absolute;
    width: 100%;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(2.25rem + 2px);
    padding: .375rem .75rem;
    line-height: 1.8;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    text-align: left;
    overflow: hidden;
}
.input-upload span::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: 2.25rem;
    padding: .375rem .75rem;
    line-height: 1.8;
    color: #495057;
    content: "瀏覽檔案";
    background-color: #e9ecef;
    border-left: inherit;
    border-radius: 0 .25rem .25rem 0;
}
.input-upload span[data-browse]::after {
    content: attr(data-browse);
}
.input-upload > [type=file]:focus ~ span {
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* list-group */
.list-group-borderless .list-group-item {
    border: none;
}

/* disabled */
.disabled,
:disabled {
    cursor: not-allowed!important;
}
