html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scroll-padding-top: 170px;
}


body {
    padding-right: 0px !important;
    font-size: 17px;
    font-family: 'Inter', '微軟正黑體', sans-serif;
    letter-spacing: 1px;
}

/* ----basic setting ----- */

:root {
    --website-color: #309a35;
    --main-color: #309a35;
    --main-color-dark: #045308;
    --vice-color: #696C72;
    --dark-color: #212121;
    --darkgray-color: #54575B;
    --gray-color: #e1dfe0;
    --lightgray-color: #E4E4E4;
    --black-color: #212121;
    --green-color: #309a35;
    --orange-color: #F08548;
    --blue-color: #2196F3;
    --red-color: #f44336;
    --yellow-color: #F5B50F;
    --robinblue-color: #42a5f5;
    --lightgreen-color: #A2CE5A;
    /* light series */
    --main-color-l: rgb(249 255 242);
    --green-color-l: rgba(131, 175, 120, 0.1);
    --red-color-l: rgba(224, 72, 72, 0.08);
    --yellow-color-l: rgba(245, 180, 15, 0.08);
    /*--table bg  */
    --thead-bg1: #314399;
    --thead-bg2: #996431;
    --thead-bg3: #319935;
    --thead-bg4: #7b3199;
    --thead-bg5: #6e6e6e;
    /* light coloe */
    --light-yellow: #ffe066;
    --light-pink: #fa9cef;
    --light-green: #b2ffaf;
    --light-red: #f15634;
}

.hidden {
    display: none !important;
}

a {
    color: var(--main-color);
    cursor: pointer;
    text-decoration: none;
    transition: all .3s ease-in-out;
    -moz-transition: all .3s ease-in-out;
    -webkit-transition: all .3s ease-in-out;
    -ms-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
}
table a {
    font-weight: bold;
}

a:focus,
a:hover {
    text-decoration: none;
    outline: 0;
    color: var(--main-color);
    cursor: pointer;
}

table a:focus,
table a:hover {
    font-weight: bold;
}

img {
    border: 0;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
label {
    margin: 0;
    padding: 0;
    list-style: none;
}

.divide-dashed {
    border-top: 1px dashed #ccc;
    margin: 5px 0;
}

.notice-smtext {
    color: #e81717;
    font-size: 14px;
}

/* ----basic setting end ----- */


/* ---- sidenav & main-ct ----- */
.os-flex {
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}


.side-nav {
    transition: .3s ease;
    width: 240px;
    max-height: calc(100vh - 60px);
    position: fixed;
    background-color: #5bc75d4d;
    z-index: 1;
    transform: translateX(-240px);
}

.side-sticky {
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
}


.main-ct {
    transition: .3s ease;
    position: sticky;
    margin-left: 0;
    top: 60px;
    min-height: calc(100vh - 60px);
    width: 100%;
    padding: 20px 30px 50px;
    background-color: #5bc75d2b;
}

.content.off {
    display: none;
    opacity: 0;
    /* transition: opacity .7s ease; */
}

.content.on {
    animation: showOff .5s cubic-bezier(.69, .14, .83, .67) 0s 1 both;
}

@keyframes showOff {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@media (max-width: 1440px) {
    .main-ct {
        padding: 30px 50px;
    }
}

@media (max-width: 992px) {
    .main-ct {
        margin-left: 0;
        width: 100%;
        padding: 30px 15px;
    }
}

@media (max-width: 576px) {
    .main-ct {
        padding: 30px 15px 80px;
    }
}

.content {
    padding: 30px;
    background-color: #fff;
    transition: .3s ease;
    border-radius: 5px;
    margin-bottom: 15px;
    border-top: 3px solid rgb(75 175 80 / 51%);
}

@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
    }
}

/* ---- sidenav & main-ct end ----- */

/* ----- header ----- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: var(--main-color);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

header .logo {
    width: 280px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
}

header .logo a {
    width: 100%;
}

header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: .3s ease;
}

@media (max-width: 576px) {
    header .logo {
        width: 290px;
    }
}

header .logout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    font-size: 20px;
}

header .logout .admin {
    color: var(--lightgray-color);
    width: 100%;
    text-align: center;
}

header .logout a span {
    display: inline-block;
}

header .logout a {
    text-align: center;
    display: block;
    width: 110px;
    min-width: 110px;
    font-weight: 800;
    color: var(--lightgray-color);
}

header .logout a i {
    font-size: 20px;
}


.nav-menu {
    overflow-y: scroll;
    margin: 0;
    padding: 0;
    height: 100%;
}


.nav-menu::-webkit-scrollbar {
    width: 7px;
}

.nav-menu::-webkit-scrollbar-button {
    background: transparent;
    border-radius: 4px;
}

.nav-menu::-webkit-scrollbar-track-piece {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(102, 102, 102, 0.2);
}

.nav-menu::-webkit-scrollbar-track {
    box-shadow: transparent;
}

.nav-menu ul {
    padding: 0;
    margin: 0;
}

.nav-menu>ul>li {
    position: relative;
    list-style: none;
}


.nav-menu>ul>li>a {
    display: flex;
    position: relative;
    height: 50px;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 18px;
    text-align: left;
    letter-spacing: 3px;
    color: #005404;
    border-bottom: 1px solid rgba(27, 119, 218, 0.1)
}

.nav-menu>ul>li>a>i {
    display: inline-block;
    margin-right: 3px;
    text-align: center;
    width: 30px;
}

.nav-menu>ul>.active>a,
.nav-menu .drop-down.on>a,
.nav-menu>ul>li:hover>a {
    color: rgb(255 255 255);
    background-color: #309a35;
}

.nav-menu>ul>.active>a {
    font-weight: 900;
    color: #fff;
}

.nav-menu .drop-down>a {
    display: flex;
    align-items: center;
    position: relative;
}


.nav-menu .drop-down>a::after {
    display: block;
    content: '\f078';
    font-size: 16px;
    font-family: 'Font Awesome 6 Pro';
    transition: .3s ease;
    color: #005404;
    position: absolute;
    right: 15px;
}

.nav-menu .drop-down .drop-down>a::after {
    color: #2e2e2e;
}

.nav-menu .drop-down:hover>a::after {
    color: rgba(255, 255, 255, 0.5);
}

.nav-menu,
.drop-down .drop-down:hover>a::after {
    color: var(--main-color);
}

.nav-menu .drop-down.active>a::after,
.nav-menu .drop-down.on>a::after {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.5);
}

.nav-menu .drop-down .drop-down.active>a::after,
.nav-menu .drop-down .drop-down.on>a::after {
    color: var(--main-color);
}

.nav-menu .drop-down>ul {
    background-color: rgba(255, 255, 255, 0.5);
}



    .nav-menu .drop-down > ul li {
        list-style: none;
        display: block;
        margin-left: 5px;
    }

.nav-menu .drop-down>ul>li a {
    display: flex;
    position: relative;
    padding: 8px 20px 8px 25px;
    word-break: break-all;
    transition: 0.3s ease;
    font-size: 17px;
    text-align: left;
    letter-spacing: 2px;
    color: #2e2e2e;
}

.nav-menu .drop-down>ul>li>a::before {
    content: '-';
    display: block;
    margin-right: 5px;
}

.nav-menu .drop-down>ul>li.on>a,
.nav-menu .drop-down>ul>li:hover>a {
    color: var(--main-color);
    background-color: rgba(255, 255, 255, 0.45);
}

.nav-menu .drop-down>ul>li.active>a {
    color: var(--main-color);
    background-color: rgba(255, 255, 255, 0.45);
    font-weight: 900;
}

.nav-menu .drop-down .drop-down>a {
    transition: .3s ease;
}


.nav-menu .drop-down .drop-down ul a {
    font-size: 16px;
    display: flex;
    align-items: center;
    color: #555;
}

.nav-menu .drop-down>ul>li a.disabled,
.nav-menu .drop-down .drop-down>a.disabled,
.nav-menu .drop-down .drop-down ul a.disabled {
    pointer-events: none;
    /* 取消點擊事件 */
    color: #999;
    /* 變淡顏色 */
    text-decoration: none;
    /* 取消底線 */
    cursor: not-allowed;
    /* 顯示禁止游標 */
}

.nav-menu .drop-down .drop-down ul a::before {
    content: '';
    display: block;
    margin-right: 10px;
    width: 5px;
    height: 5px;
    background-color: #a3a3a3;
}

.nav-menu .drop-down .drop-down.active ul .active a {
    font-weight: 500;
}

.nav-menu .drop-down .drop-down.active ul .active a::before {
    background-color: rgba(27, 119, 218, 1);
}

/* ----- header end----- */



/* ----- mobile nav ----- */
.mobile-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 9999;
    overflow-y: auto;
    left: -260px;
    width: 260px;
    background: #fafafa;
    transition: 0.4s;
}

.mobile-nav * {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-nav a {
    display: block;
    position: relative;
    color: var(--darkgray-color);
    padding: 10px 20px;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
}

.mobile-nav a i {
    margin-right: 10px;
}


.mobile-nav>ul>.active>a,
.mobile-nav>ul>li:hover>a {
    color: var(--website-color);
    text-decoration: none;
    background-color: var(--main-color-l);
}

.mobile-nav .drop-down>ul>li a.disabled,
.mobile-nav .drop-down .drop-down>a.disabled,
.mobile-nav .drop-down .drop-down ul a.disabled {
    pointer-events: none;
    /* 取消點擊事件 */
    color: #999;
    /* 變淡顏色 */
    text-decoration: none;
    /* 取消底線 */
    cursor: not-allowed;
    /* 顯示禁止游標 */
}


.mobile-nav .drop-down>a:after {
    content: "\ea99";
    font-family: IcoFont;
    padding-left: 10px;
    position: absolute;
    right: 15px;
}

.mobile-nav .active.drop-down>a:after {
    content: "\eaa0";
}



.mobile-nav .drop-down ul {
    display: none;
    overflow: hidden;
    background-color: #fff;
}

.mobile-nav .drop-down li {
    padding-left: 20px;
}

.mobile-nav .drop-down li a {
    font-size: 15px;
    transition: .3s ease;
}

.mobile-nav .drop-down li.active a,
.mobile-nav .drop-down li:hover a {
    color: var(--website-color);
}

.mobile-nav-toggle {
    position: fixed;
    right: 15px;
    top: 13px;
    z-index: 1020;
    border: 0;
    background: none;
    font-size: 25px;
    transition: all 0.3s;
    outline: none !important;
    line-height: 1;
    padding: 0;
}

.mobile-nav-toggle i {
    color: var(--lightgray-color);
}

/* ----- nav-controls & nav-pin button ----- */
.nav-controls {
    position: absolute;
    right: -20px;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.nav-pin {
    width: 20px;
    height: 40px;
    color: #999;
    line-height: 40px;
    text-align: center;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 0 5px rgb(23 23 54 / 20%);
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-pin:hover {
    color: #666;
    background: rgba(255, 255, 255, 1);
}

.nav-pin.pinned {
    color: var(--main-color);
    background: var(--main-color-l);
}

.nav-pin i {
    transition: transform 0.3s;
    transform: rotate(45deg);
}

.nav-pin.pinned i {
    /* 釘選時不再旋轉，僅變色（顏色由 .nav-pin.pinned 控制） */
}

.nav-toggle {
    width: 20px;
    height: 80px;
    color: #686666;
    line-height: 80px;
    text-align: center;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 0 5px rgb(23 23 54 / 20%);
    cursor: pointer;
    margin: auto 0;
    flex-shrink: 0;
}

.nav-toggle i {
    transition: transform 0.2s;
    transform: scaleX(1);
}

.nav-toggle.active i {
    transform: scaleX(-1);
}
/* ----- nav-controls & nav-pin button end ----- */

.mobile-nav-overly {
    width: 100%;
    height: 100%;
    z-index: 1010;
    top: 0;
    left: 0;
    position: fixed;
    background: var(--website-color);
    opacity: .8;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: none;
}

.mobile-nav-active {
    overflow: hidden;
}

.mobile-nav-active .mobile-nav {
    left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
    color: var(--lightgray-color);
}

.mb-admin {
    font-weight: 800;
    color: var(--website-color);
    text-align: center;
    font-size: 20px;
}

.mb-admin i {
    margin-right: 5px !important;
}

.mobile-nav .mb-admin {
    font-weight: 800;
    color: var(--website-color);
    padding: 10px 20px;
}

/* ----- mobile-nav end ----- */


/* ----- component ----- */

h1 {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 30px;
    letter-spacing: 1px;
    transition: .3s ease;
}

h2 {
    font-weight: bold;
    color: var(--darkgray-color);
    font-size: 25px;
    letter-spacing: 1px;
    transition: .3s ease;
}

h3 {
    font-weight: bold;
    color: var(--main-color);
    font-size: 20px;
    letter-spacing: 1px;
    transition: .3s ease;
}

h3.dark {
    color: var(--darkgray-color);
}

@media (max-width: 768px) {
    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }
}

a.main-link {
    font-size: 15px;
    border-bottom: 1px dashed var(--orange-color);
}

.status {
    background-color: #fff;
    padding: 7px 30px;
    font-size: 15px;
    color: var(--dark-color);
    margin-bottom: 15px;
    border-radius: 5px;
}

.status span {
    color: var(--red-color);
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    padding: 6px 20px 5px;
    border: none;
    border-radius: 0;
    color: var(--darkgray-color);
    background-color: #e7ecf0
}

@media (max-width: 576px) {
    .nav-tabs .nav-link {
        padding: 6px 12px;
        font-size: 15px;
    }
}

.nav-tabs .nav-link:not(:last-of-type) {
    border-right: 1px solid #ddd;
}

.nav-tabs .nav-link.tab2 {
    border-top: 5px solid var(--blue-color);
}

.nav-tabs .nav-link.tab3 {
    border-top: 5px solid var(--orange-color);
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-right: none;
    background-color: var(--main-color);
    color: #fff;
}

.nav-tabs .nav-item.show .nav-link.tab2,
.nav-tabs .nav-link.tab2.active {
    border-right: none;
    background-color: var(--blue-color);
    color: #fff;
}

.nav-tabs .nav-item.show .nav-link.tab3,
.nav-tabs .nav-link.tab3.active {
    border-right: none;
    background-color: var(--orange-color);
    color: #fff;
}

.section-page {
    padding: 30px 0;
}

@media (max-width: 992px) {
    .section-page {
        padding: 20px 0;
    }
}


.breadcrumb {
    background-color: transparent;
    padding: 0;
    justify-content: end;
    margin: 5px 0 10px;
    font-size: 14px;
    letter-spacing: 1px;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "|";
    color: var(--gray-color);
}

.breadcrumb-item {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    height: fit-content;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-width: 200px;
}

.breadcrumb-item.active {
    max-width: unset;
}

.breadcrumb-item a {
    color: #2e2e2e;
}

.breadcrumb-item.active a {
    color: var(--main-color);
}

.modal-open {
    padding-right: 0px !important;
}

.modal-open .modal {
    padding-right: 0 !important;
}

.modal {
    padding-right: 0px !important;
    backdrop-filter: blur(4px);
}

.modal-dialog.modal-lg {
    max-width: 900px !important;
}


@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px !important;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 600px !important;
        margin: 0 auto;
    }
}

.modal-content {
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-content .modal-header {
    background-color: var(--dark-color);
    color: #fff;
}

.modal-content .modal-header .close {
    position: absolute;
    color: #fff;
    top: 17px;
    right: 17px;
}

.modal-backdrop {
    background-color: var(--main-color);
}



.modal label,
.modal input,
.modal select,
.modal textarea {
    width: 100%;
}



textarea {
    outline: none;
}

input {
    outline: none;
}

select {
    outline: none;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: .7;
    background-color: #ebebeb;
    color: var(--darkgray-color);
}

input[type='checkbox'] {
    position: relative;
    width: unset !important;
    height: unset !important;
    height: 25px;
    width: 25px;
}

input[type='checkbox']::before {
    display: block;
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    top: -7px;
    left: -3px;
    border: 1px solid #e6e6e6;
    background-color: #fff;
    border-radius: 3px;
    z-index: 1;
}
.item-checkbox::before {
    border: 1px solid #000 !important;
}
input[type='checkbox']::after {
    display: flex;
    justify-content: center;
    align-items: center;
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    position: absolute;
    width: 25px;
    height: 25px;
    top: -7px;
    color: var(--red-color);
    left: -3px;
    transition: .3s ease;
    transform: scale(0);
    z-index: 2;
}

input[type='checkbox']:checked::after {
    transform: scale(1);
}

.togglebox {
    display: flex;
    justify-content: start;
    align-items: center;
}

input[type='checkbox'].toggleBtn {
    height: 25px !important;
}

input[type='checkbox'].toggleBtn::before {
    width: 50px;
    border-radius: 50px;
    background-color: #e6e6e6;
    transition: .3s ease;
    top: 0px;
}

input[type='checkbox'].toggleBtn::after {
    transform: none;
    content: '';
    border: 1px solid #e6e6e6;
    background-color: #fff;
    width: 23px;
    height: 23px;
    border-radius: 50px;
    top: 1px;
    left: -2px;
}

input[type='checkbox'].toggleBtn:checked::before {
    background-color: var(--main-color);
}

input[type='checkbox'].toggleBtn:checked::after {
    border: 1px solid var(--main-color);
    left: 23px;
}

.togglebox {
    display: flex;
    justify-content: start;
    align-items: center;
}

input[type='radio'] {
    position: relative;
    width: unset !important;
    height: unset !important;
}

input[type='radio']::after {
    position: absolute;
    display: block;
    width: 25px;
    height: 25px;
    content: '';
    top: -7px;
    left: -3px;
    border: 1px solid #e6e6e6;
    background-color: #fff;
    border-radius: 3px;
    z-index: 1;
}

input[type='radio']::before {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    content: '\f00c';
    font-family: 'Font Awesome 6 Pro';
    top: -7px;
    left: -3px;
    z-index: 2;
    transform: scale(0);
    transition: .3s ease;
    color: var(--red-color);
}

input[type='radio']:checked::before {
    transform: scale(1);
}

.check-box {
    width: fit-content;
    margin-right: 25px;
    align-items: center;
    display: inline-flex;
    margin: 4px 25px 4px 0;
}

.radio-box {
    width: fit-content;
    margin-right: 25px;
    align-items: center;
    display: inline-flex;
}

.radio-box label,
.check-box label {
    width: fit-content !important;
    min-width: unset !important;
}

.radio-box input,
.check-box input {
    margin-right: 15px;
}

.radio-box input:checked~label,
.check-box input:checked~label {
    color: var(--red-color);
}

input[type=file] {
    height: 40px !important;
    font-size: 16px;
    color: var(--main-color);
    letter-spacing: 1px;
}

input[type=file]::file-selector-button {
    margin-right: 10px;
    border: none;
    background: var(--main-color);
    padding: 2px 20px;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: opacity .2s ease;
}

input[type=file]::file-selector-button:hover {
    opacity: .85;
}

.address-box {
    width: 100%;
    display: flex;
}

.address-box>div {
    width: 100% !important;
}

@media (max-width: 576px) {
    .address-box {
        flex-wrap: wrap;
    }
}

.address-box>div .select2-container {
    width: 100% !important;
}

.fm-group .select2-container,
.editbox .select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 2px 10px;
    height: 35px;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 33px;
    position: absolute;
    top: 0px;
    right: 3px;
    width: 20px
}

.fm-group {
    width: 100%;
}

.fm-group label {
    display: block;
    color: #333;
}

.fm-group input,
.fm-group textarea {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.fm-group textarea {
    height: auto;
}

.fm-group select {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.fm-button {
    height: 100%;
    display: flex;
    align-items: end;
}

.num-counter {
    display: flex;
    width: 100%;
    align-items: center;
}

.num-counter input {
    width: 80px;
    text-align: center;
    border: 1px solid rgba(27, 119, 218, 0.3);
}

.num-counter input[type=number]::-webkit-outer-spin-button,
.num-counter input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.num-counter input[type=number] {
    -moz-appearance: textfield;
}

.num-counter i {
    display: block;
    width: 35px;
    line-height: 35px;
    text-align: center;
    height: 35px;
    color: var(--dark-color);
    background-color: rgba(27, 119, 218, 0.1);
    border-radius: 3px;
    margin: 0 3px;
}

.num-counter i:hover {
    cursor: pointer;
}

.btn-list {
    display: flex;
    flex-wrap: wrap;
    margin: 5px 0;
    justify-content: end;
}

/* .btn-list .dropdown, */
.btn-list button {
    margin: 2px 0px 2px 5px;
}

button {
    /* height: 35px; */
    color: #fff;
    padding: 4.8px 15px;
    border-radius: 5px;
    outline: none;
    border: none;
    letter-spacing: 1.5px;
    transition: .3s ease;
}

@media (max-width: 576px) {
    button {
        font-size: 15px;
    }
}

button:hover {
    opacity: .85;
}

button:focus {
    outline: none;
}

button.small {
    /* height: 28px; */
    margin-bottom: 0px;
    padding: 5px 6px;
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

button.main {
    background-color: var(--main-color);
}

button.main-light {
    background-color: rgb(48 154 53 / 60%);
}

button.back {
    background-color: var(--gray-color);
    color: var(--darkgray-color);
}

button.print {
    background-color: var(--green-color);
}

button.print:hover {
    color: #fff;
    opacity: .85;
}

.swal2-container button {
    height: unset !important;
}

.dropdown {
    display: inline-block;
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--main-color-l);
    color: var(--dark-color);
}

.dropdown-menu {
    border: 1px solid #eee;
}

button.edit {
    background-color: var(--orange-color);
}

button.record {
    background-color: #555;
}

button.delete {
    background-color: var(--red-color);
}

button.stop {
    background-color: var(--red-color);
}

button.view {
    background-color: #868A90;
}

button.file {
    background-color: var(--yellow-color);
}

button.setting {
    background-color: var(--robinblue-color);
}

button.mail {
    background-color: var(--lightgreen-color);
}

button.main-border {
    background-color: #fff;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}

button.red-border {
    background-color: #fff;
    color: var(--red-color);
    border: 1px solid var(--red-color);
}

button.ex-dl {
    background-color: #fff;
    color: var(--green-color);
    border: 1px solid var(--green-color);
}

button.cancel {
    background-color: var(--gray-color);
    color: var(--darkgray-color);
}

button.addLesson.active {
    background-color: #aaa;
}

button:disabled {
    background-color: #ccc;
    color: #eee;
    border: none;
}

button.trace {
    background-color: #fff;
    border: 1px solid #96d1c4;
    color: #96d1c4;
}

button.trace-finish,
button.trace.active {
    background-color: #96d1c4;
    color: #fff;
}

button.trace.off {
    background-color: #bbb;
    border-color: #bbb;
    color: #eee;
}

/* mark state */

.mark-state {
    padding: 2px 5px;
    min-width: 70px;
    width: 70px;
    text-align: center;
    font-size: 15px;
    background-color: #fff9d8;
    margin: 0 10px 0 0;
    transition: .3s ease;
}


.mark-red {
    background-color: rgb(255, 236, 236);
}

.mark-blue {
    background-color: rgb(214, 238, 252);
}

.mark-lightblue {
    background-color: rgb(234, 246, 253);
}

.mark-green {
    background-color: rgb(236, 255, 242);
}

.mark-gray {
    background-color: rgb(236, 236, 236);
}

.mark-darkgray {
    background-color: rgb(177, 177, 177);
    color: #fff;
}

.mark-orange {
    background-color: rgb(255, 229, 211);
}

@media (min-width: 1200px) {
    tr:hover .mark-state {
        background-color: #fff;
        color: #000;
    }

    tr:hover .mark-red {
        background-color: #fff;
        color: rgb(231, 136, 136);
    }

    tr:hover .mark-blue {
        background-color: #fff;
        color: rgb(88, 158, 216);
    }

    tr:hover .mark-lightblue {
        background-color: #fff;
        color: rgb(136, 188, 231);
    }

    tr:hover .mark-green {
        background-color: #fff;
        color: rgb(106, 156, 121);
    }

    tr:hover .mark-gray {
        background-color: #fff;
        color: rgb(134, 134, 134);
    }

    tr:hover .mark-darkgray {
        background-color: #fff;
        color: rgb(87, 87, 87);
    }

    tr:hover .mark-orange {
        background-color: #fff;
        color: rgb(240, 154, 93);
    }
}


/* mark state end */


/*--table bg---*/

.thead-bg1 {
    background-color: var(--thead-bg1);
}

.thead-bg2 {
    background-color: var(--thead-bg2);
}

.thead-bg3 {
    background-color: var(--thead-bg3);
}

.thead-bg4 {
    background-color: var(--thead-bg4);
}

.thead-bg5 {
    background-color: var(--thead-bg5);
}

.t-white {
    color: #fff;
}

.t-black {
    color: #212529;
}

/* table bg end */


.main-table {
    width: 100%;
}

.main-table th,
.main-table td {
    vertical-align: middle;
    padding: .5rem .3rem;
    font-weight: normal;
    font-size: 14px;
    word-break: break-all;
}

.main-table td .select2-container {
    width: 100% !important;
}

.main-table thead {
    background-color: var(--dark-color);
    color: #fff;
}

.main-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: .3s ease;
}

.main-table tbody tr.border-tr td {
    border: 2px solid black;
    font-weight: bold;
    background-color: #fafff3;
}

.main-table tbody tr:hover {
    background-color: var(--main-color-l) !important;
}

.main-table tbody tr.lightgray-bg {
    background-color: #f7f7f7;
}

.main-table.bolder thead th {
    font-weight: 700 !important;
}

.main-table.light thead {
    font-weight: 800;
    color: var(--main-color);
    background-color: var(--main-color-l);
}

.main-table.light tbody tr:hover {
    background-color: transparent;
}

.main-table.light th,
.main-table.light td {
    text-align: center;
}

.main-table .total td,
.main-table .total th {
    font-weight: 800;
    font-size: 18px;
    background-color: #fff;
}

.main-table .abs-total td,
.main-table .abs-total th {
    background-color: var(--main-color-l);
}

.main-table .table-img {
    width: 100px;
    margin: 0 2px;
    display: inline-block;
    border: 1px solid #eee;
}

.main-table .red-mark {
    color: var(--red-color);
}

.main-table .func-btn-t {
    text-align: left;
}

.main-table .tract-state.timeout {
    color: var(--red-color)
}

.main-table .func-btn {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}

.main-table .func-btn button {
    margin: 2px 2px;
}

.scroll-table-wrap {
    height: fit-content;
    max-height: 70vh;
}

.scroll-table-wrap::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

@media (max-width: 768px) {
    .scroll-table-wrap::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }
}

.scroll-table-wrap::-webkit-scrollbar-button {
    display: none;
}

.scroll-table-wrap::-webkit-scrollbar-track-piece {
    background: transparent;
}

.scroll-table-wrap::-webkit-scrollbar-thumb {
    border-radius: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.scroll-table-wrap::-webkit-scrollbar-track {
    box-shadow: transparent;
}

.main-table.scroll {
    table-layout: fixed;
    width: 100%;
}

.main-table.scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--dark-color);
}

.main-table.scroll tbody td {
    z-index: 1;
}

@media (max-width: 1600px) {
    .scroll-table-wrap.long {
        overflow-x: scroll;
    }

    .main-table.scroll.long {
        min-width: 1500px;
    }
}

@media (max-width: 1440px) {
    .scroll-table-wrap {
        overflow-x: scroll;
    }

    .main-table.scroll {
        min-width: 1020px;
    }
}

/*--- long table ----*/


/*.editable-input{
    box-shadow: inset 0px 0px 5px -1px #141414;
    outline: 1px dashed rgb(48 154 53);
}*/
.editable-input {
    position: relative;
}

.editable-input input {
    width: 100%;
    box-sizing: border-box;
}

.editable-input button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.editable-input input {
    text-align: center;
    transition: all 0.2s;
    width: 100%;
    border: none;
    background-color: transparent;
    cursor: pointer;
}


.editable-input input:focus {
    background-color: #fff;
    border-bottom: 1px solid #212121;
    outline: none;
}

.editable-input:hover {
    cursor: pointer;
    outline: 1px dashed rgb(48 154 53);
    background-color: #f9fff2;
}

.table-container {
    max-height: 500px;
    overflow-y: auto;
    font-size: 14px;
    white-space: nowrap;
    line-height: 1.2;
    letter-spacing: .5px;
}

table tbody .light-active {
    background-color: #ffe066 !important;
}
table tbody .light-active:hover {
    background-color: #f9ecb8 !important;
}

table tbody .ingredient-analysis-active,
table tbody tr.ingredient-analysis-active:hover {
    background-color: #ffe066 !important;
}

/*---end----*/


/*---實驗室數據 table ---*/
.outer-table {
    width: 100%;
    border-collapse: collapse;
}

.outer-table>tbody>tr>td {
    vertical-align: middle;
}

.group-table {
    width: 100%;
    border: 1px solid #a9a9a9;
    border-radius: 0;
    text-align: center;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgb(0 0 0 / 38%);
}

.group-table td {
    border: none;
    height: 24px;
}

.group-table tr:first-child td {
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #dee2e6;
}

.group-table tr:nth-child(2) td {
    color: #333;
}

.group-table input {
    width: 100%;
    padding: 0;
    border: 1px solid #999;
    border-radius: 0;
    text-align: center;
    background-color: #eff0ef;
    height: 24px;
}

.group-table input:focus,
.group-table.light-y input:focus,
.group-table.light-p input:focus,
.group-table.light-g input:focus {
    background-color: #fff;
    border-bottom: 2px solid #212121;
    outline: none;
}

/*高亮樣式*/
.group-table.light-y,
.group-table.light-y input {
    background-color: var(--light-yellow);
}

.group-table.light-p,
.group-table.light-p input {
    background-color: var(--light-pink);
}

.group-table.light-g,
.group-table.light-g input {
    background-color: var(--light-green);
}

.group-table.light-r tr:first-child td,
.group-table.light-r tr:nth-child(2) td,
.group-table.light-r input {
    color: var(--light-red);
}

/*---end---*/

.infobox {
    display: flex;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.infobox .info-t {
    width: 120px;
    min-width: 120px;
    color: var(--main-color);
}

.infobox .info-ct {
    word-break: break-all;
    color: var(--darkgray-color);
}



.infobox-img {
    padding: 20px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    width: 100%;
}

.infobox-img-t {
    text-align: center;
    margin-bottom: 10px;
    color: var(--main-color);
}

.infobox-img img {
    display: block;
    margin: 0 auto;
    width: 85%;
    height: 200px;
    object-fit: contain;
    transition: .3s ease;
}

@media (max-width: 576px) {
    .infobox {
        flex-wrap: wrap;
    }

    .infobox .info-t {
        font-size: 15px;
    }

    .infobox-img img {
        width: 100%;
    }
}


.editbox {
    display: flex;
    align-items: center;
}

@media (max-width: 576px) {}


.editbox label {
    display: block;
    width: 150px;
    min-width: 150px;
    color: var(--darkgray-color);
    font-size: 16px;
}

.editbox input,
.editbox textarea {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
    transition: .3s ease;
}

.editbox textarea {
    height: auto;
}

.editbox input:focus,
.editbox textarea:focus {
    border-color: var(--main-color);
}

.editbox select {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

@media (max-width: 480px) {
    .editbox {
        flex-wrap: wrap;
    }

    .editbox label {
        width: 100%;
        min-width: 100%;
        margin-bottom: 3px;
    }
}


.editbox-img {
    padding: 20px 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    /* width: 100px;
    height: 100px; */
}

.editbox-img img {
    display: block;
    margin: 0 auto;
    width: 85%;
    height: 100%;
    object-fit: contain;
    transition: .3s ease;
}

@media (max-width: 576px) {
    .editbox-img img {
        width: 100%;
    }
}

.linkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color-l);
    padding: 20px;
    height: 140px;
    border-radius: 5px;
    transition: .3s ease;
}

.linkbox .box-ct {
    text-align: center;
    letter-spacing: 1.5px;
}

.linkbox h3 {
    color: var(--main-color);
    font-size: 18px;
    margin-bottom: 5px;
}

.linkbox h6 {
    font-size: 15px;
    color: var(--darkgray-color);
}

.linkbox h6 span {
    color: var(--red-color);
}

.linkbox.green {
    background-color: var(--green-color-l);
}

.linkbox.green h3 {
    color: var(--green-color);
}

.linkbox.red {
    background-color: var(--red-color-l);
}

.linkbox.red h3 {
    color: var(--red-color);
}

.linkbox.yellow {
    background-color: var(--yellow-color-l);
}

.linkbox.yellow h3 {
    color: var(--yellow-color);
}

.dashboard-list {}

.dashboard {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 0 30px 0 0;
}

.dashboard h3 {
    text-align: left;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.dashboard h6 {
    text-align: right;
    color: #666;
}

.dashboard h6 span {
    color: var(--red-color);
}

.notice-text {
    color: var(--red-color);
    font-size: 15px;
}





.pagination {
    justify-content: center;
    margin: 25px 0 0;
}

.pagination li {
    display: block;
    padding: 2px 10px;
    margin: 0 5px;
    text-align: center;
    border-bottom: 1px solid #eee;
    transition: .3s ease;
}

.pagination li:hover,
.pagination li.active {
    border-bottom-color: var(--main-color);
}

.pagination li a {
    display: block;
    width: 100%;
    height: 100%;
    color: #aaa;
}

.pagination li.active a,
.pagination li:hover a {
    color: var(--main-color)
}

/*--step---*/

.step-item {
    padding: 8px 10px;
    margin-right: 0px;
    background-color: #ffffff;
    color: #727272;
    box-shadow: none;
    border-radius: 0;
    transition: all 0.3s ease;
    border-right: 1px solid #838383;
    min-width: 150px;
}

.step-item.active {
    background-color: #309a35;
    color: #fff;
}

.step-item.disabled {
    opacity: 0.8;
    background: #ebebeb;
}

.step-item:last-child {
    border-right: none;
}


.item-desc {
    margin-right: 5px;
}

.item-desc .item-desc-t {
    padding: 3px 15px;
    justify-content: center;
    display: flex;
    align-items: center;
    color: #aaa;
}

.item-desc .item-desc-t:hover {
    cursor: pointer;
}

.item-desc .item-desc-t i {
    transition: .3s ease;
    display: block;
    margin: 0 10px;
}

.item-desc .item-desc-t.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.item-desc .item-desc-ct {
    font-size: 15px;
}

.drag-control {
    color: #aaa;
    display: block;
}

.drag-control:hover {
    cursor: pointer;
}

.monthLedgersChart,
.monthLedgersChart2 {
    height: 100% !important;
    max-height: 350px;
    margin-bottom: 20px;
}

#orderReport {
    height: 100% !important;
    max-height: 450px;
}

#income-chart {
    height: 100% !important;
    min-height: 250px;
}

#expenditure-chart {
    height: 100% !important;
    min-height: 250px;
}

#expenditure-month-chart {
    height: 100% !important;
    min-height: 250px;
}

#income-month-chart {
    height: 100% !important;
    min-height: 250px;
}

#incomeOverviewChart,
#expOverviewChart,
#ledgersOverviewChart {
    height: 100% !important;
    max-height: 350px;
    margin-bottom: 20px;
}

#abs-chart {
    height: 100% !important;
    min-height: 350px;
}

@media (max-width: 992px) {
    #abs-chart {
        min-height: 300px;
    }
}

.order-itemList {
    font-size: 15px;
    color: var(--dark-color);
}

.order-itemList .fa-solide,
.order-itemList .fa-light {
    color: #ccc;
}

.order-itemList .fa-circle-check {
    color: var(--main-color);
}

.progress {
    flex-wrap: wrap;
    height: auto;
    min-height: 30px;
    background-color: #fff;
}

.progress-bar {
    height: 30px;
    width: auto;
    padding: 0 25px;
    background-color: #f8f8f8;
    color: #aaa;
}

.progress-bar:not(:last-of-type) {
    border-right: 1px solid #ccc;
}

@media (max-width: 768px) {
    .progress-bar {
        width: 100%;
    }

    .progress-bar:not(:last-of-type) {
        border-right: none;
    }
}

.progress-bar.inactive {
    background-color: var(--main-color-l);
    color: var(--main-color);
    border-right-color: rgba(27, 119, 218, 0.2);
}

.progress-bar.active {
    color: #fff;
    border-right-color: var(--main-color);
    background-color: var(--main-color);
}

.scorll-block {
    background-color: #f8f8f8;
    padding: 30px 20px;
    height: 450px;
    overflow-y: scroll;
}

@media (max-width: 768px) {
    .scorll-block {
        padding: 30px 15px;
    }
}

.scorll-block::-webkit-scrollbar {
    width: 7px;
}

@media (max-width: 768px) {
    .scorll-block::-webkit-scrollbar {
        width: 5px;
    }
}

.scorll-block::-webkit-scrollbar-button {
    background: transparent;
    border-radius: 4px;
    display: none;
}

.scorll-block::-webkit-scrollbar-track-piece {
    background: transparent;
}

.scorll-block::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(102, 102, 102, 0.1);
}

.scorll-block::-webkit-scrollbar-track {
    box-shadow: transparent;
}


.timeline {
    display: block;
}

.timeline li {
    padding: 10px;
    border-radius: 0px;
    background-color: #fff;
    display: flex;
    position: relative;
    margin-bottom: 20px;
}

.timeline li:not(:last-of-type):after {
    display: block;
    content: '';
    width: 5px;
    height: 50px;
    position: absolute;
    bottom: -50px;
    left: calc(50% - 2.5px);
    background-color: #eee;
}

.timeline li.timeline-mark {
    background-color: #f8f8f8;
    justify-content: center;
}

.timeline li.timeline-mark .mark-text {
    font-size: 18px;
    color: #888;
    font-weight: 900;
}

.timeline .timeline-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    font-size: 14px;
    border-radius: 5px;
    background-color: var(--gray-color);
    color: #fff;
    margin-right: 10px;
}

.timeline .timeline-icon.reply {
    background-color: var(--main-color);
}

.timeline .timeline-icon.manager {
    background-color: var(--red-color);
}

.timeline .timeline-ct {
    font-size: 15px;
    width: 100%;
}

.timeline .timeline-ct .timeline-t {
    font-size: 16px;
    font-weight: 900;
    margin: 0px 0px 5px;
}

.timeline .timeline-ct .timeline-text {
    line-height: 26px;
    letter-spacing: .6px;
    color: #666;
}

.timeline .timeline-time {
    position: absolute;
    right: 10px;
    color: #ddd;
    top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .timeline li:not(.timeline-mark) {
        padding-bottom: 40px;
    }

    .timeline .timeline-time {
        top: unset;
        bottom: 10px;
    }
}

/* ----- component end ----- */

/* ----- login ----- */




.login-flex {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url(../img/login-bg.webp);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}


.login-box {
    width: 420px;
    height: auto;
    border: 1px solid #fff;
    box-shadow: 0 0 15px -5px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 15px 20px;
    border-radius: 15px;
}

@media (max-width: 992px) {
    .login-box {
        width: 400px;
        background-color: rgba(255, 255, 255, 0.9);
        border-radius: 5px;
        backdrop-filter: blur(4px);
        padding: 20px 15px 40px;
    }
}

@media (max-width: 420px) {
    .login-box {
        width: 100%;
        margin: 0 15px;
    }
}

.login-logo {
    width: 125px;
    margin: 0 auto;
}

.login-logo img {
    width: 100%;
}

@media (max-width: 992px) {
    .login-logo {
        width: 120px;
    }
}

.login-logotext {
    text-align: center;
}

.login-logotext h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

@media (max-width: 992px) {
    .login-logotext h1 {
        font-size: 22px;
    }
}

.login-logotext h6 {
    font-size: 13px;
    color: var(--main-color);
}

.recaptcha {
    width: 280px;
    margin: 0 auto;
}

/* ----- login end ----- */



/* ---- footer ---- */


footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

footer .copyright {
    font-size: 14px;
    text-align: center;
    color: rgba(27, 119, 218, 0.6);
    padding-bottom: 5px;
    opacity: .6;
}

/* ---- footer end---- */

.minw-50 {
    min-width: 50px;
}

.minw-60 {
    min-width: 60px;
}

.minw-80 {
    min-width: 80px;
}

.minw-100 {
    min-width: 100px;
}

.minw-120 {
    min-width: 120px;
}

.minw-160 {
    min-width: 160px;
}

.minw-200 {
    min-width: 200px;
}

.w-60px {
    width: 60px;
}

.w-80px {
    width: 80px;
}

.w-100px {
    width: 100px;
}

.w-120px {
    width: 120px;
}

.w-160px {
    width: 160px;
}

.minw-200 {
    min-width: 200px;
}

.search-row input,
.search-row textarea {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
    transition: .3s ease;
}

.search-row input[type="date"] {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 0;
    width: 100px;
    transition: .3s ease;
}

.search-row select {
    border: 1px solid #e6e6e6;
    border-radius: 3px;
    padding: 0;
    height: 35px;
    width: 100%;
}

tr.align-top td {
    vertical-align: top;
}

input.readonly {
    user-select: none;
    caret-color: transparent;
}

input.readonly:focus {
    outline: none;
    box-shadow: none;
}

input[readonly],
textarea[readonly] {
    background-color: #ebebeb;
    color: #000000;
    border: 1px solid #e6e6e6;
    opacity: 0.6;
}

/* Chrome, Safari, Edge, Opera */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-spinner {
    -moz-appearance: textfield;
}