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 {
    --main-color: #c64646;
    --vice-color: #696C72;
    --primary-color: #5bb99d;
    --success-color: #98c762;
    --warning-color: #f89577;
    --info-color: #92CBB7;
    --danger-color: #e78282;
    --pink-color: #f08686;
    --yellow-color: #f5c660;
    --blue-color: #82cfda;
    --gray-color: #e0e1e0;
    --orange-color: #ff5722;
    --green-color: #C8e6c9;
}

::selection {
    background: #888;
    color: #fff;
}

::-moz-selection {
    background: #888;
    color: #fff;
}

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;
}

a:focus,
a:hover {
    text-decoration: none;
    outline: 0;
    color: var(--primary-color);
    cursor: pointer;
}

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;
}

/* ----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: 205px;
    max-height: calc(100vh - 60px);
    position: fixed;
    background-color: #fff;
    z-index: 1;
    box-shadow: 0 5px 15px -5px rgba(0, 0, 0, 0.15);
}

.side-sticky {
    height: calc(100vh - 60px);
    max-height: calc(100vh - 60px);
}


.main-ct {
    transition: .3s ease;
    position: sticky;
    margin-left: 205px;
    top: 60px;
    min-height: calc(100vh - 60px);
    width: calc(100% - 205px);
    padding: 30px 25px 80px;
    background-color: #fcf8f5;
}

@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: #fff4e1;
    margin-bottom: 25px;
    border-radius: 0 0 10px 10px;
    border-top: 5px solid #f88438;
}

@media (max-width: 768px) {
    .content {
        padding: 20px 15px;
    }
}

.search-toggle {
    background-color: transparent;
    color: #999;
    padding: 2px 0;
    font-size: 15px;
    border-bottom: 1px solid #ccc;
    letter-spacing: 2px;
    transition: .3s ease;
}

.search-toggle:hover,
.search-toggle.active {
    color: var(--main-color);
    border-bottom-color: var(--main-color);
    opacity: .85;
    cursor: pointer;
}

/* ---- sidenav & main-ct end ----- */

/* ----- header ----- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background-color: var(--main-color);
    background-repeat: no-repeat;
    background-size: cover;
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

header .logo {
    width: 400px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
}

header .logo a {
    width: 100%;
    padding: 0 20px;
    font-size: 25px;
    font-weight: 900;
    color: #fff;
}

header .logo a img {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 576px) {
    header .logo {
        width: 330px;
    }
}

header .logout {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    font-size: 20px;
}

header .logout .admin {
    color: #fefefe;
    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: 600;
    color: #fefefe;
    max-width: max-content;
}

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 {
    display: none;
}

.nav-menu::-webkit-scrollbar-track-piece {
    background: transparent;
}

.nav-menu::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.5);
}

.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: #666;
    border-bottom: 1px solid rgba(150, 150, 150, 0.2)
}

.nav-menu>ul>li>a i {
    display: inline-block;
    margin-right: 0px;
    width: 25px;
    color: #ccc;
    transition: .3s ease;
}


.nav-menu>ul>.drop-down.active>a,
.nav-menu>ul>.drop-down.on>a,
.nav-menu>ul>li:hover>a {
    color: var(--main-color);
    background-color: #fdf6ef;
}

.nav-menu>ul>.drop-down.active>a i,
.nav-menu .drop-down.on>a i,
.nav-menu>ul>li:hover>a i {
    color: #666;
}

.nav-menu>ul>.active>a {
    font-weight: 900;
}

.nav-menu .drop-down>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.nav-menu .drop-down>a::after {
    display: block;
    content: '\f078';
    margin-left: 15px;
    font-size: 13px;
    font-family: 'Font Awesome 6 Pro';
    transition: .3s ease;
    color: #ddd;
}

.nav-menu .drop-down .drop-down>a::after {
    color: #ddd;
}

.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);
}

.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.3);
}

.nav-menu .drop-down>ul li {
    list-style: none;
    display: block;
}

.nav-menu>ul>.drop-down>ul>li {
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu>ul>.drop-down>ul>li a {
    display: flex;
    position: relative;
    padding: 8px 20px 8px 35px;
    word-break: break-all;
    transition: 0.3s ease;
    font-size: 17px;
    text-align: left;
    letter-spacing: 2px;
    color: #888;
}

.nav-menu>ul>.drop-down>ul>li a::before {
    content: "-";
    margin-right: 5px;
}

.nav-menu>ul>.drop-down.active>ul>li a {
    color: #a1a1a1;
}

.nav-menu .drop-down>ul>li.active>a {
    color: var(--main-color) !important;
    font-weight: 900 !important;
}

.nav-menu .drop-down>ul>li.on>a,
.nav-menu .drop-down>ul>li:hover>a {
    color: var(--main-color) !important;
}

.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: #888;
    padding: 8px 20px 8px 40px;
}

.nav-menu .drop-down .drop-down ul a::before {
    content: '';
    display: block;
    margin-right: 10px;
    width: 5px;
    height: 5px;
    background-color: #ccc;
    transition: .3s ease;
}

.nav-menu .drop-down .drop-down.active ul .active a {
    font-weight: 500;
}

.nav-menu .drop-down .drop-down ul li:hover a::before,
.nav-menu .drop-down .drop-down.active ul .active a::before {
    background-color: var(--primary-color);
}

/* ----- 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: flex;
    align-items: center;
    position: relative;
    color: #666;
    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(--main-color);
    text-decoration: none;
    background-color: #fdf6ef;
}



.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(--main-color);
}

.mobile-nav-toggle {
    position: fixed;
    right: 15px;
    top: 18px;
    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:hover {
    cursor: pointer;
}

.mobile-nav-toggle i {
    color: #fefefe;
}

.mobile-nav-overly {
    width: 100%;
    height: 100%;
    z-index: 1010;
    top: 0;
    left: 0;
    position: fixed;
    background: var(--main-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: #fff;
}

.mobile-nav .mb-admin {
    font-weight: 800;
    color: var(--main-color);
    padding: 10px 20px;
}



/* ----- mobile-nav end ----- */


/* ----- component ----- */

h1 {
    font-weight: bold;
    color: #222;
    font-size: 30px;
    letter-spacing: 1px;
    transition: .3s ease;
    padding-left: 10px;
    border-left: 8px solid var(--main-color);
}

h2 {
    font-weight: bold;
    color: var(--main-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;
}

h2.dark {
    color: #666;
}

h3.dark {
    color: #333;
}


@media (max-width: 768px) {
    h1 {
        font-size: 25px;
    }

    h2 {
        font-size: 20px;
    }

    h3 {
        font-size: 18px;
    }
}

a.main-link {
    color: var(--primary-color);
    font-size: 15px;
    padding: 2px 0;
    border-bottom: 1px dashed #ccc;
    transition: .3s ease;
}

a.main-link:hover {
    opacity: .85;
}

.status {
    background-color: rgb(255, 255, 255);
    padding: 8px 15px;
    font-size: 16px;
    color: #666;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-radius: 10px;
}

.status span {
    color: var(--danger-color);
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    padding: 6px 20px;
    border: none;
    border-radius: 0;
    color: #666;
    background-color: #ececec;
    letter-spacing: 3px
}

.nav-tabs .nav-link:first-of-type {
    border-radius: 8px 0 0 0;
}

.nav-tabs .nav-link:last-of-type {
    border-radius: 0 8px 0 0;
}

.nav-tabs .nav-link:first-of-type:last-of-type {
    border-radius: 8px 8px 0 0;
}

@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 #ccc;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    border-right: none;
    background-color: var(--main-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 30px;
    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: #aaaaaa;
}

.breadcrumb-item.active a {
    color: var(--main-color);
}

.modal-open {
    padding-right: 0px !important;
}

.modal-open .modal {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.modal {
    padding-right: 0px !important;
    backdrop-filter: blur(4px);
}


@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px !important;
        margin: 20px auto;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 675px !important;
        margin: 20px auto;
    }

    .wideModal .modal-dialog {
        max-width: 70% !important;
        margin: 15px auto;
    }
}

.modal-dialog-topleft {
    top: 10px;
    left: 10px;
    margin: 0;
}

.modal-content {
    border: none;
    border-radius: 5px;
    overflow: hidden;
}

.modal-content .modal-header {
    background-color: #444;
    color: #fff;
}

.modal-content .modal-header .close {
    position: absolute;
    color: #fff;
    top: 17px;
    right: 17px;
}

.modal-backdrop {
    background-color: #ccc;
}



.modal label,
.modal input,
.modal select,
.modal textarea {
    width: 100%;
}



textarea {
    outline: none;
}

input {
    outline: none;
    border: 1px solid #000000;
}

select {
    outline: none;
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: .7;
    background-color: #ebebeb;
    color: #333;
}

.input-disable input,
.input-disable select,
.input-disable textare,
.input-disable .select2,
.input-disable .select2-selection--single {
    opacity: .7;
    background-color: #ebebeb !important;
    color: #333;
}

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 #000000;
    background-color: #fff;
    border-radius: 3px;
    z-index: 1;
}

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(--main-color);
    left: -3px;
    transition: .3s ease;
    transform: scale(0);
    z-index: 2;
}

input[type='checkbox']:checked::after {
    transform: scale(1);
}

input[type='checkbox']:disabled::after {
    background-color: #e6e6e6;
    color: #999;
}

input[type='checkbox']:disabled::before {
    background-color: #e6e6e6;
}

.togglebox {
    width: 50px;
    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 #000000;
    background-color: #fff;
    width: 23px;
    height: 23px;
    border-radius: 50px;
    top: 1px;
    left: -2px;
}

input[type='checkbox'].toggleBtn:checked::before {
    background-color: var(--warning-color);
}

input[type='checkbox'].toggleBtn:checked::after {
    border: 1px solid var(--warning-color);
    left: 23px;
}

input[type='checkbox'].toggleBtn:disabled {
    opacity: 1;
}

input[type='checkbox'].toggleBtn:disabled:before {
    background-color: #f8f8f8;
}

input[type='checkbox'].toggleBtn:disabled::after {
    border: 1px solid #f8f8f8;
    background-color: #eee;
}

input[type='checkbox'].toggleBtn:disabled:checked::before {
    background-color: #a9dbf8;
}

input[type='checkbox'].toggleBtn:disabled:checked::after {
    border: 1px solid #a9dbf8;
    background-color: #ecf7fd;
}

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 #000000;
    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(--main-color);
}

input[type='radio']:checked::before {
    transform: scale(1);
}

input.no-spinner::-webkit-inner-spin-button,
input.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.no-spinner {
    -moz-appearance: textfield;
}


.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-left: 3px;
    margin-right: 22px;
    align-items: center;
    display: inline-flex;
}

.radio-box label,
.check-box label {
    width: fit-content !important;
    min-width: unset !important;
    letter-spacing: 1px;
}

.radio-box input,
.check-box input {
    margin-right: 15px;
}

.radio-box input:checked~label,
.check-box input:checked~label {
    color: var(--main-color);
}

input[type=file] {
    font-size: 15px;
    color: #666;
    letter-spacing: 1px;
}

input[type=file]::file-selector-button {
    margin-right: 10px;
    border: none;
    background: var(--main-color);
    padding: 3px 20px;
    letter-spacing: 2px;
    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 #000000;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #222;
    padding-left: 5px;
    line-height: 25px;
    letter-spacing: 0px;
}

.select2-selection input,
.select2-search__field {
    height: auto !important;
}

.fm-group {
    width: 100%;
}

.fm-group label {
    display: block;
    color: #333;
}

.fm-group input,
.fm-group textarea {
    border: 1px solid #000000;
    border-radius: 3px;
    padding: 5px 10px;
    height: 35px;
    width: 100%;
}

.fm-group textarea {
    height: auto;
}

.fm-group textarea.w300 {
    width: 300px
}

.fm-group textarea.w200 {
    width: 200px
}

.fm-group input.num {
    width: 10ch;
}

.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%;
    height: 35px;
    align-items: center;
}

.num-counter input {
    width: 100px;
    height: 35px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(198, 70, 70, 0.15);
}

.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: 33px;
    line-height: 33px;
    text-align: center;
    height: 33px;
    color: #222;
    background-color: rgba(198, 70, 70, 0.15);
    border-radius: 8px;
    transition: .3s ease;
    margin: 0 3px;
}

.num-counter i:hover {
    cursor: pointer;
}

.num-counter i:active {
    background-color: rgba(198, 70, 70, 0.2);
}

.btn-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0px 0;
    justify-content: end;
}

/* .btn-list .dropdown, */
.btn-list button {
    border: 1px solid #000000;
    margin: 2px 0px 2px 5px;
}

button {
    /* height: 35px; */
    line-height: 24px;
    color: #000;
    padding: 5px 16px;
    border-radius: 8px;
    outline: none;
    border: none;
    display: flex;
    align-items: center;
    letter-spacing: 1.5px;
    transition: .3s ease;
    border: 1px solid #000000;
}

button i {
    margin-right: 6px;
}

button i.no-mr {
    margin-right: 0px;
}

@media (max-width: 576px) {
    button {
        font-size: 15px;
        padding: 3px 12px;
    }
}

button:hover {
    opacity: .85;
}

button:focus {
    outline: none;
}

button.small {
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 22px;
    padding: 3px 10px;
    margin: 2px;
}

button.main {
    background-color: var(--main-color);
}

button.primary {
    background-color: var(--primary-color);
}

button.back {
    background-color: #e4e4e4;
    color: var(--vice-color);
}

button.print {
    background-color: var(--info-color);
}

button.review,
button.settle {
    background-color: var(--orange-color);
}

a.link {
    color: var(--blue);
}

.swal2-container button {
    height: unset !important;
}

.dropdown {
    display: inline-block;
}

.dropdown-item.active,
.dropdown-item:hover {
    background-color: #f8f8f8;
    color: var(--info-color);
}

.dropdown-menu {
    border-radius: 10px;
    border: 1px solid #eee;
}

button.edit {
    background-color: var(--warning-color);
}

button.record {
    background-color: #555;
}

button.delete {
    background-color: var(--danger-color);
}

button.view {
    background-color: #bbbbbb;
}

button.file {
    background-color: var(--pink-color);
}

button.setting {
    background-color: var(--blue-color);
}

button.mail {
    background-color: var(--yellow-color);
}

button.main-border {
    background-color: #fff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

button.red-border {
    background-color: #fff;
    color: var(--main-color);
    border: 1px solid var(--main-color);
}



button.cancel {
    background-color: var(--gray-color);
    color: #333;
}

button:disabled {
    background-color: #ccc;
    color: #eee;
    border: none;
}


.main-table {
    width: 100%;
}

.table th,
.table td {
    vertical-align: middle !important;
    text-align: center;
    padding: 8px 10px;
    font-weight: normal;
    font-size: 16px;
}

.main-table th,
.main-table td {
    vertical-align: middle;
    padding: 8px 10px;
    font-weight: normal;
    font-size: 16px;
}

.main-table td {
    padding: 5px 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    border: 1px solid #000;
}

.main-table td .select2-container {
    width: 100% !important;
}

.main-table thead {
    background: rgb(31, 31, 31);
    background: linear-gradient(135deg, rgb(48, 48, 48) 0%, rgb(46, 46, 46) 100%);
    color: #fff;
}

.main-table thead.light {
    background: transparent;
    color: var(--primary-color);
}

.main-table thead.light th {
    font-size: 18px;
    font-weight: 700;
}

.main-table thead.premium {
    background: #ff8c35;
    color: #ffffff;
    text-align: center;
}

.main-table thead.premium th {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.main-table thead.premium th span {
    font-size: 14px;
    font-weight: 400;
}

.main-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: .3s ease;
}

.main-table tbody tr:hover {
    background-color: #ffe5e1;
}

.main-table.border-all td,
.main-table.border-all th {
    border: 1px solid #eee;
}

.main-table .table-img {
    width: 100px;
    margin: 0 auto;
    padding: 3px;
    display: inline-block;
    border: 1px solid #eee;
}

@media (max-width: 1200px) {
    .main-table .table-img {
        width: 150px;
        margin: 2px 0px;
    }
}

.main-table .red-mark {
    color: var(--main-color);
}

.main-table .cancel-mark {
    color: #aaa;
}



.main-table .func-btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}

.main-table .func-btn button {
    margin: 2px 2px;
}

.main-table .sortable-chosen {
    background-color: rgba(198, 70, 70, 0.07);
}

.main-table .drag-btn:hover {
    cursor: pointer;
}

@media (max-width: 1200px) {
    .main-table thead {
        display: none;
    }

    .main-table tbody tr {
        border-bottom: 2px dashed rgba(198, 70, 70, 0.3);
        display: block;
        margin-bottom: 15px;
    }

    .main-table tbody tr:hover {
        background-color: transparent;
    }

    .main-table td {
        width: 100%;
        display: flex;
        border-bottom: 1px solid #eee;
        transition: .3s ease;
    }

    .main-table td.num {
        font-size: 25px;
        font-weight: 700;
    }

    .main-table .func-btn {
        padding: 5px 0;
        justify-content: end;
    }

    .main-table td.selectbox {
        padding: 15px 10px;
    }

    .main-table td::before {
        display: block;
        width: 165px;
        min-width: 165px;
        content: attr(data-title);
        color: #999;
    }

    .main-table td.selectbox::before,
    .main-table td.num::before,
    .main-table td.func-btn::before {
        display: none;
    }

    .main-table.border-all td,
    .main-table.border-all th {
        border: none;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 576px) {
    .main-table td {
        flex-wrap: wrap;
        width: 100%;
    }

    .main-table td::before {
        width: 100%;
        margin-bottom: 5px;
    }
}

.scroll-table-wrap {
    width: 100%;
    height: 100%;
    overflow-x: scroll;
    overflow-y: auto;
    white-space: nowrap;
}

.scroll-table-wrap::-webkit-scrollbar {
    width: 15px;
    height: 18px;
}

.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: 4px;
    background-color: rgba(102, 102, 102, 0.2);
}

.scroll-table-wrap::-webkit-scrollbar-track {
    box-shadow: transparent;
}

.scroll-table {
    width: 100%;
    min-width: 1440px;
}

.scroll-table.long {
    min-width: 2200px;
}

.scroll-table.auto {
    width: auto;
    min-width: auto;
}

.scroll-table th,
.scroll-table td {
    vertical-align: middle;
    padding: 8px 10px;
    font-weight: normal;
    font-size: 16px;
}

.scroll-table td {
    padding: 5px 10px;
    border: 1px solid #000;
}

.scroll-table td .select2-container {
    width: 100% !important;
}

.scroll-table thead {
    background: rgb(31, 31, 31);
    background: linear-gradient(135deg, rgb(48, 48, 48) 0%, rgb(46, 46, 46) 100%);
    color: #fff;
}

.scroll-table thead.light {
    background: transparent;
    color: var(--primary-color);
}

.scroll-table thead.light th {
    font-size: 18px;
    font-weight: 700;
}

.scroll-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: .3s ease;
}

.scroll-table tbody tr:hover,
.scroll-table tbody tr:focus-within {
    background-color: rgba(253, 246, 239, 0.7);
}

.scroll-table.border-all td,
.scroll-table.border-all th {
    border: 1px solid #eee;
}

.scroll-table .table-img {
    width: 100px;
    margin: 0 auto;
    padding: 3px;
    display: inline-block;
    border: 1px solid #eee;
}

@media (max-width: 1200px) {
    .scroll-table .table-img {
        width: 150px;
        margin: 2px 0px;
    }
}

.scroll-table .red-mark {
    color: var(--main-color);
}

.scroll-table .cancel-mark {
    color: #aaa;
}



.scroll-table .func-btn {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: start;
}

.scroll-table .func-btn.nowrap {
    flex-wrap: nowrap;
}

.scroll-table .func-btn button {
    margin: 2px 2px;
}

.scroll-table .sortable-chosen {
    background-color: rgba(198, 70, 70, 0.07);
}

.scroll-table .drag-btn:hover {
    cursor: pointer;
}

table.font-sm td {
    font-size: 14px !important;
}
table.font-sm-16 td {
    font-size: 16px !important;
}


.infobox {
    display: flex;
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
}

.infobox .info-t {
    width: 150px;
    min-width: 150px;
    color: #acacac;
}

.infobox .info-ct {
    word-break: break-all;
    color: #555;
}

.infobox-img-t {
    text-align: center;
    margin: 5px 0;
    color: #999;
    font-size: 15px;
}

.infobox-img {
    padding: 0px;
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    width: 100%;
}

.infobox-img img {
    display: block;
    margin: 0 auto;
    width: 90%;
    height: 200px;
    object-fit: contain;
    transition: .3s ease;
}



@media (max-width: 576px) {
    .infobox {
        flex-wrap: wrap;
    }

    .infobox .info-t {
        width: 100%;
        min-width: 100%;
    }

    .infobox .info-ct {
        width: 100%;
        min-width: 100%;
    }

    .infobox-img {
        width: 100%;
        padding: 10px;
    }
}

.editbox {
    display: flex;
    align-items: center;
}

.editbox label {
    display: block;
    width: 150px;
    min-width: 150px;
    color: #666;
    font-size: 16px;
}

.editbox input,
.editbox textarea {
    border: 1px solid #000000;
    border-radius: 3px;
    padding: 5px 10px;
    letter-spacing: 1px;
    height: 35px;
    width: 100%;
    transition: .3s ease;
}

.editbox input[type=file] {
    height: 40px;
}

.editbox textarea {
    height: auto;
}

.editbox input:focus,
.editbox textarea:focus {
    border-color: var(--main-color);
}

.editbox select {
    border: 1px solid #000000;
    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: 10px;
    border: 1px solid #e6e6e6;
    border-radius: 5px;
    width: 100%;
    height: 300px;
}

.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%;
    }
}

.editbox .edit-text {
    color: var(--primary-color);
}

.editbox .editflex {
    width: 100%;
    display: flex;
    align-items: center;
}

.editbox .editflex button {
    width: 100px;
    justify-content: center;
    margin-left: 5px;
    min-width: 100px;
}

.editbox .editflex button.sm {
    width: 50px;
    margin-left: 5px;
    min-width: 50px;
}

.editbox .top-aligned {
    align-self: flex-start;
}

.linkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 10px;
    border-radius: 0px;
    transition: .3s ease;
    margin: 0 10px;
}

.linkbox:hover {
    opacity: .8;
}

.linkbox .box-ct {
    text-align: center;
    letter-spacing: 1.5px;
}

.linkbox h3 {
    color: var(--primary-color);
    font-size: 20px;
}

.linkbox h6 {
    margin-top: 5px;
    font-size: 13px;
    color: #aaa;
}

.linkbox h6 span {
    color: var(--main-color);
}

.linkbox.orange {
    background-color: rgba(252, 111, 68, 0.07);
}

.linkbox.orange h3 {
    color: var(--warning-color);
}

.linkbox.red {
    background-color: rgba(245, 55, 55, 0.055);
}

.linkbox.red h3 {
    color: var(--main-color);
}

.linkbox.yellow {
    background-color: #f5c66025;
}

.linkbox.yellow h3 {
    color: var(--yellow-color);
}


.notice-text {
    color: var(--danger-color);
    font-size: 15px;
}

.red-mark {
    color: var(--danger-color);
}

.desc-text {
    color: var(--primary-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)
}


.drag-control {
    color: #aaa;
    display: block;
}

.drag-control:hover {
    cursor: pointer;
}


.chartRank {
    height: 100% !important;
    min-height: 500px;
    max-height: 500px;
}

@media (max-width: 576px) {
    .chartRank {
        max-height: 350px;
        min-height: 350px;
    }
}


.progress {
    flex-wrap: wrap;
    height: auto;
    min-height: 30px;
    background-color: #fff;
}

.progress-bar {
    height: 35px;
    font-size: 14px;
    width: auto;
    padding: 0 25px;
    background-color: #f8f8f8;
    color: #aaa;
}

.progress-bar:first-of-type {
    border-radius: 8px 0 0 8px;
}

.progress-bar:last-of-type {
    border-radius: 0 8px 8px 0;
}

.progress-bar:first-of-type:last-of-type {
    border-radius: 8px;
}

.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:first-of-type {
        border-radius: 8px 8px 0 0;
    }

    .progress-bar:last-of-type {
        border-radius: 0 0 8px 8px;
    }

    .progress-bar:first-of-type:last-of-type {
        border-radius: 8px;
    }
}

.progress-bar.inactive {
    background-color: rgba(198, 70, 70, 0.05);
    color: var(--main-color);
    border-right-color: rgba(198, 70, 70, 0.2);
}

.progress-bar.active {
    color: #fff;
    border-right-color: var(--main-color);
    background-color: var(--main-color);
}

.badge {
    background-color: #e6f5f0;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    color: #3a3a3a;
    font-weight: 400;
    font-size: 85%;
    padding-left: 10px;
    padding-right: 10px;
}

.badge .fa-xmark:hover {
    cursor: pointer;
}

/* ----- component end ----- */

/* ----- login ----- */


.login-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    display: block;
    background-image: url(../img/login-bg.png);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-flex {
    display: flex;
    height: 100%;
}

.login-bg {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
}

.login-bg-md {
    background: rgb(255, 255, 255);
    background: linear-gradient(220deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.95) 90%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-box {
    width: 380px;
    height: auto;
}


.login-box .fm-group label {
    letter-spacing: 2px;
    color: #999;
    font-size: 15px;
}

.login-box .fm-group input {
    background-color: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #ccc;
    color: #333;
    letter-spacing: 1px;
    padding: 3px 0;
}

.login-box .notice-text {
    letter-spacing: 2px;
}

.login-logo {
    width: 250px;
    display: block;
    height: auto;
    margin: 0px auto 20px;
}

.login-logotext {
    text-align: center;
}

.login-logotext h1 {
    color: var(--main-color);
    font-size: 25px;
    margin: 0 0 5px;
    padding-left: 0;
    border-left: none;
}

@media (max-width: 992px) {
    .login-logotext h1 {
        font-size: 22px;
    }
}

.login-logotext h6 {
    font-size: 13px;
    color: #999;
}

.recaptcha {
    width: 280px;
    margin: 0 auto;
}

.login-box button {
    width: 100%;
    justify-content: center;
    padding: 8px 15px;
    margin: 0 auto;
}

.login-box .main-link {
    width: fit-content;
    font-size: 16px;
}

@media (max-width: 768px) {
    .login-bg-md {
        background-image: url(../img/login-bg.png);
        background-attachment: fixed;
        background-position-x: 8%;
        background-repeat: no-repeat;
        background-size: cover;
    }

    .login-box {
        width: 80%;
        border-radius: 15px;
        padding: 35px 40px;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
}

@media (max-width: 480px) {
    .login-bg-md {
        padding: 0 15px;
    }

    .login-box {
        width: 100%;
    }
}

/* ----- login end ----- */



/* ----- punch ----- */

.punch-content {
    width: 100%;
    min-height: 100vh;
    display: flex;
    padding: 30px 0;
    justify-content: center;
    background-color: var(--main-color);
    background-image: url(../img/punch-bg.png);
    background-attachment: fixed;
    background-position-x: center;
    background-position-y: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.punch-box-t {
    padding-left: 0;
    border-left: none;
    margin-bottom: 15px;
    text-align: center;
    color: var(--main-color);
}

.punch-box {
    padding: 35px 45px;
    width: 50%;
    background-color: #fff;
    border-radius: 15px;
    height: fit-content;
    margin: auto;
}

.punch-button .pb-box {
    text-align: center;
    margin: 3px;
}

.punch-button .pb-box .pb-box-in {
    margin-bottom: 5px;
}

.punch-button .pb-box small {
    display: block;
    height: 20px;
    margin-top: 3px;
    text-align: center;
    color: #666;
}

.punch-button button {
    margin: 0;
    padding: 15px 35px;
    font-size: 18px;
    width: 100%;
}

.punch-button button:disabled {
    background-color: #bbb;
    color: #eee;
}

.punch-button button:disabled:hover {
    opacity: 1;
    cursor: default;
}


.punch-button.fw .pb-box {
    width: 100%;
    display: flex;
}

.punch-box .pb-box .select2-container {
    margin-bottom: 10px;
    width: 100% !important;
}

.punch-button.fw .pb-box .pb-box-in {
    width: 250px;
    min-width: 250px;
    margin-left: 5px;
}

.punch-button.fw button {
    padding: 5px 15px;
    font-size: 16px;
}


@media (max-width: 1500px) {
    .punch-box {
        width: 80%;
    }
}

@media (max-width: 992px) {
    .punch-box {
        width: 80%;
    }

    .punch-box .pb-box {
        width: calc(100% / 2.1);
    }
}

@media (max-width: 768px) {
    .punch-box {
        padding: 20px 15px;
    }
}

@media (max-width: 576px) {
    .punch-content {
        height: auto;
        max-height: unset;
        align-items: start;
    }

    .punch-box {
        width: 95%;
    }

    .punch-box .pb-box {
        width: calc(100% / 1);
    }

    .punch-box .pb-box button {
        font-size: 16px;
    }
}


@media (max-width: 1800px) and (min-width: 1500px) {
    .punch-button.fw .pb-box {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .punch-button.fw .pb-box .pb-box-in {
        width: 49%;
        min-width: unset;
        margin: 0;
    }
}

@media (max-width: 1200px) {
    .punch-button.fw .pb-box {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .punch-button.fw .pb-box .pb-box-in {
        width: 49%;
        min-width: unset;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .punch-button.fw .pb-box .pb-box-in {
        width: 100%;
        min-width: unset;
        margin: 0 0 5px;
    }
}

.punch-fw-edit .editbox label {
    width: 220px;
    min-width: 220px;
}

@media (max-width: 768px) {
    .punch-fw-edit .editbox {
        flex-wrap: wrap;
    }

    .punch-fw-edit .editbox label {
        width: 100%;
        min-width: 100%;
    }
}

/* ----- punch end ----- */



/* ---- footer ---- */


footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

footer .copyright {
    font-size: 14px;
    text-align: center;
    color: rgba(107, 107, 107, 0.5);
    padding-bottom: 5px;
    opacity: .6;
}

/* ---- footer end---- */


/* ---- print setting ---- */

@media print {
    @page {
        size: A4 portrait;
    }

    * {
        -webkit-print-color-adjust: exact !important;
    }

    h1 {
        margin: 20px 0;
        font-size: 30px;
        font-weight: bold;
    }

    .print-table {
        width: 100%;
        margin: 0 auto;
    }

    .table th,
    .table td {
        vertical-align: middle !important;
        text-align: center;
        padding: 8px 10px;
        font-weight: normal;
        font-size: 16px;
    }

    .print-table th,
    .print-table td {
        vertical-align: middle;
        padding: 8px 10px;
        font-weight: normal;
        font-size: 16px;
    }

    .print-table td {
        padding: 5px 10px;
    }

    .print-table td .select2-container {
        width: 100% !important;
    }

    .print-table thead {
        background: rgb(31, 31, 31);
        background: linear-gradient(135deg, rgb(48, 48, 48) 0%, rgb(46, 46, 46) 100%);
        color: #fff;
    }

    .print-table tbody tr {
        border-bottom: 1px solid #eee;
        transition: .3s ease;
    }

    .print-table .table-img {
        width: 100px;
        margin: 0 auto;
        padding: 3px;
        display: inline-block;
        border: 1px solid #eee;
    }

    .print-table .red-mark {
        color: var(--main-color);
    }

    .print-table .cancel-mark {
        color: #aaa;
    }

    .print-table .num-t,
    .print-table .num,
    .print-table .func-btn-t,
    .print-table .func-btn {
        display: none;
    }
}


/* ---- print setting end ---- */

.nav-toggle {
    width: 20px;
    height: 80px;
    color: #686666;
    position: absolute;
    right: -20px;
    top: 0;
    bottom: 0;
    margin: auto;
    line-height: 80px;
    text-align: center;
    border-radius: 0 5px 5px 0;
    box-shadow: 3px 0 5px rgb(23 23 54 / 20%);
}

tr.active {
    background-color: #ddd !important;
}

.bg-stair tbody>tr:nth-of-type(4n+1),
.bg-stair tbody>tr:nth-of-type(4n+2) {
    background-color: #e1ecff;
}

.bg-stair tbody>tr:nth-of-type(4n+3),
.bg-stair tbody>tr:nth-of-type(4n) {
    background-color: var(--green-color);
}

.scroll-table tbody tr:hover,
.scroll-table tbody tr:focus-within {
    background-color: #eb7988;
}

.modal-xl {
    max-width: 1400px !important;
}

.search-radio {
    margin-left: 3px;
    margin-top: 6px;
}

/** 排序 icon */
.order-a {
    color: white;
}

/*-loading*/
.loading {
    position: fixed;
    z-index: 1051;
    height: 2em;
    width: 2em;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.loading:before {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.loading:not(:required) {
    font: 0/0 a;
    color: transparent;
    text-shadow: none;
    background-color: transparent;
    border: 0;
}

.loading:not(:required):after {
    content: '';
    display: block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin-top: -0.5em;
    -webkit-animation: spinner 1500ms infinite linear;
    -moz-animation: spinner 1500ms infinite linear;
    -ms-animation: spinner 1500ms infinite linear;
    -o-animation: spinner 1500ms infinite linear;
    animation: spinner 1500ms infinite linear;
    border-radius: 0.5em;
    -webkit-box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.5) -1.5em 0 0 0, rgba(0, 0, 0, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
    box-shadow: rgba(0, 0, 0, 0.75) 1.5em 0 0 0, rgba(0, 0, 0, 0.75) 1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) 0 1.5em 0 0, rgba(0, 0, 0, 0.75) -1.1em 1.1em 0 0, rgba(0, 0, 0, 0.75) -1.5em 0 0 0, rgba(0, 0, 0, 0.75) -1.1em -1.1em 0 0, rgba(0, 0, 0, 0.75) 0 -1.5em 0 0, rgba(0, 0, 0, 0.75) 1.1em -1.1em 0 0;
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important
}

#profit-and-loss {
    height: 760px;
}

#profit-and-loss thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    color: white;
    background-color: black;
    box-shadow: inset -2px -2px 0 white;
}

#profit-and-loss td.freeze,
#profit-and-loss td.freeze2 {
    position: sticky;
    z-index: 1;
    color: white;
    background-color: black;
    box-shadow: inset -2px 1px 0 white;
}

#profit-and-loss td.freeze {
    left: 0;
}

#profit-and-loss td.freeze2 {
    left: 44px;
}

#profit-and-loss td {
    color: black;
    border: 1px solid black;
}

tbody tr.check-red:has(input:checked) {
    background-color: rgba(251, 17, 223, 0.5);
}

tbody tr.check-red:has(input:checked):nth-of-type(4n+1),
tbody tr.check-red:has(input:checked):nth-of-type(4n+2) {
    background-color: rgba(255, 88, 88, 0.5);
}

p.remark-no-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/*tag*/
.tagsinput .tag {
    height: 23px;
    padding: 1px 30px 5px 5px;
}

.tagsinput .tag .tag-remove {
    top: -3px;
}

.tagsinput.focus {
    border-color: #e6e6e6;
}

.tagsinput div input {
    background: 0 0;
    display: block;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    padding: 5px;
    border: 0;
    margin: 0 5px 5px 0;
    height: 23px;
}

/* 日曆 */
.fc-day-number {
    font-size: 30px;
    font-weight: bold;
}

/* 不溢出寬度 */
.breakable-text {
    word-wrap: break-word;
    word-break: break-all;
    white-space: normal;
}

label.highlight {
    font-weight: bold;
    text-decoration: underline;
}

/* readonly 樣式 */
.readonly-look {
    background-color: #e9ecef;
    opacity: 1;
    /* cursor: not-allowed; */
}