@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&display=swap');

/* common */
:root {
    --bs-root-font-size: 16px;
}
body {
    background: #fdf6f0;
    font-family: "Noto Sans TC", "微軟正黑體", "Microsoft JhengHei", "Noto Serif", serif, sans-serif;
    color: #666;
}
.layout-page, .content-wrapper, .content-wrapper > *, .layout-menu {
    min-height: 0;
}
.content-wrapper .container-xxl {
    padding-top: 0 !important;
}
.text-primary { color: #fc824a !important; }
.text-secondary { color: #455fcf !important; }
.text-alert { color: #c90000; }
.text-success { color: #5ebb99 !important; }

.bg-pink { background: #fdf1e7; }
.bg-lightblue { background: #dfe2f4; }
.bg-darkblue { background: #696e8c; }
.bg-deepblue { background: #40445c; }
.bg-grey { background: #f4f4f4; }

h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    color: #666;
    letter-spacing: .05em;
}
.form-label, .btn, small {
    letter-spacing: .05em;
}
.opacity-6 {
    opacity: 0.6;
}
.mb-5 {
    margin-bottom: 40px !important;
}
a {
    color: #666;
}
a:hover {
    color: #fc824a;
}
.table th, .form-label, .col-form-label, .badge {
    font-size: 14px;
    text-transform: none;
}
.form-label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #666;
}
.btn_wrap .btn {
    margin-left: 8px;
    margin-right: 8px;
}
.btn {
    min-width: 95px;
    color: #666;
}
.btn.rounded-pill {
    min-width: fit-content;
}
.table .btn {
    padding: 0 0.4375rem;
    min-width: fit-content;
    white-space: normal;
    /* 針對列表標題特調 */
    max-width: 200px;
    display: -webkit-inline-box;
    -webkit-line-clamp: 1;
    overflow: hidden;
    -webkit-box-orient: vertical;
    line-height: normal;
}
.table .text-wrap {
    max-width: 200px;
}

.btn-primary {
    background-color: #fc824a;
    border-color: #fc824a;
    color: #fff;
    box-shadow: none
}
.btn-outline-primary {
    color: #fc824a;
    border-color: #fc824a;
    background: #fff;
}
.btn-primary:hover, .btn-outline-primary:hover {
    color: #fff;
    background-color: #D85E36;
    border-color: #D85E36;
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #dfe2f4;
    border-color: #dfe2f4;
    color: #535d9b;
    box-shadow: none
}
.btn-secondary:hover {
    color: #535d9b;
    background-color: #dfe2f4;
    border-color: #A2ACE1;
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-check:checked + .btn-primary, .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggl, .btn-check:focus + .btn-primary, .btn-primary:focus, .btn-primary.focus {
    border-color: #D85E36;
    background: #D85E36;
}
.btn-check:checked + .btn-outline-primary, .btn-check:active + .btn-outline-primary, .btn-outline-primary:active, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show, .btn-check:focus + .btn-outline-primary, .btn-outline-primary:focus {
    background-color: #D85E36;
    border-color: #D85E36;
}
.btn svg, .btn i {
    width: 1.15rem; height: 1.15rem;
    vertical-align: text-bottom;
}
.btn-primary svg, .btn-primary i{
    color: #fff;
    fill: #fff;
}

/* input 樣式 */
.form-control, .form-select {
    color: #666;
    letter-spacing: .1em;
}
.form-control:focus, .form-select:focus {
    border-color: #fc824a;
    box-shadow: none;
}
.input-group:focus-within .form-control, .input-group:focus-within .input-group-text {
    border-color: #fc824a;
}
/* input date樣式 */
.air-datepicker-global-container {
    z-index: 9999;
}
.air-datepicker-cell.-in-range- {
    background: #F2EDFD;
}
.air-datepicker-cell.-in-range-:hover {
    background: rgba(189, 195, 229, 0.32) !important
}
input.datepicker, input[type="date"], input[type="month"], input[type="datetime-local"] {
    background-image: url(../img/calendar.svg);
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    background-color: #fff !important;
    color: #666 !important;
    padding: 0.4375rem 0.875rem !important;
}
input[type="time"] {
    background-image: url(../img/clock.svg);
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px;
    background-color: #fff !important;
}
input.datepicker:disabled {
    background-color: #eceef1 !important;
}
input::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}
input::-webkit-date-and-time-value {
  text-align: left;
}
.form-control:disabled, .form-control[readonly] {
    opacity: 1;
    padding-left: 0.4rem;
    color: #697a8d;
}
.form-control:disabled::placeholder {
    color: #697a8d;
}
.form-check-input:checked, .form-check-input[type=checkbox]:indeterminate {
    background-color: #535d9b;
    border-color: #535d9b;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
}
.air-datepicker-cell.-current-, .air-datepicker-body--day-name {
    color: #fc824a !important;
}
.air-datepicker-cell.-selected- {
    background: #fc824a !important;
}
.air-datepicker-cell.-selected-:hover {
    background: #db9675 !important;
}
.air-datepicker-cell.-selected-.-current- {
    background: #fc824a !important;
}
/* select2 */
.custom-dropdown-width .select2-dropdown {
    width: 300px; /* 自定義適合的寬度 */
}
.select2-container--bootstrap-5 {
    z-index: 9999;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[role=group] .select2-results__group {
    font-size: 12px;
}
.select2-container--bootstrap-5 .select2-dropdown {
    color: #666;
}
.select2-container--disabled.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #697a8d;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    font-size: 14px;
    letter-spacing: .1em;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--highlighted {
    font-size: 14px;
    letter-spacing: .1em;
    color: #666;
    background-color: #fdf1e7;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    font-size: 14px;
    letter-spacing: .1em;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected, .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
    color: #666;
    background-color: #fdf1e7;
}
.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 2.25rem 0.375rem 0.875rem;
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.select2-container--bootstrap-5 .select2-selection {
    background-color: transparent;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
    margin-right: 0.375rem;
    margin-left: 0;
    background: #fdf1e7;
    color: #666;
    border: 0;
    font-size: 14px;
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
    margin-left: 0;
    margin-right: 0.25rem;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection, .select2-container--bootstrap-5.select2-container--open .select2-selection {
    box-shadow: none;
    border: 1px solid #fc824a;
    padding: .375rem;
}
.select2-container--bootstrap-5 .select2-dropdown {
    background-color: #fff;
    border-color: #fc824a;
}
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #fc824a;
    box-shadow: 0 0 0 0.25rem rgba(191, 157, 91, .24);
}
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
    /* background: #f4f4f4; */
}

/* 多選 readonly */
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}
select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #f1f1f1;
    box-shadow: none;
}
select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

/* Footer */
.content-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}
.content-footer .footer-wrap {
    background: #696e8c;
    color: #fff;
    padding: 12px 0;
    font-size: 12px;
    letter-spacing: .16em;
}
.content-footer .footer-wrap img {
    width: 100px;
}
.bg-footer-theme {
    background: none !important;
}

/* menu */
.menu .app-brand {
    margin-top: 40px;
}
.app-brand-link {
    display: block;
    text-align: center;
}
.app-brand-logo {
    flex-grow: inherit;
    flex-shrink: inherit;
    width: 190px;
    margin: 0 auto;
}
.app-brand-logo svg, .app-brand-logo img {
    width: 100%;
}
.app-brand-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: .64em;
}
.app-brand .layout-menu-toggle {
    background-color: #fc824a;
    border: 7px solid #F1F1F1;
}
.bg-menu-theme {
    box-shadow: 0 0 16px rgba(181, 63, 37, .16) !important;
}
.bg-menu-theme .menu-link, .bg-menu-theme .menu-horizontal-prev, .bg-menu-theme .menu-horizontal-next {
    color: #666;
}
.bg-menu-theme .menu-inner > .menu-item.active:before {
    background: #fc824a;
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
    background: rgba(255,255,255,.16) !important;
}
.bg-menu-theme .menu-item.open:not(.menu-item-closing) > .menu-toggle, .bg-menu-theme .menu-item.active > .menu-link {
    color: #666;
}
.bg-menu-theme .menu-link:hover, .bg-menu-theme .menu-link:focus, .bg-menu-theme .menu-horizontal-prev:hover, .bg-menu-theme .menu-horizontal-prev:focus, .bg-menu-theme .menu-horizontal-next:hover, .bg-menu-theme .menu-horizontal-next:focus {
    color: #666;
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon {
    fill: #fc824a;
}
.menu-vertical .menu-inner > .menu-item {
    margin: 0.25rem 0;
}
.menu-vertical .menu-inner > .menu-item .badge {
    position: absolute;
    right: 8px; top: 11px;
    z-index: 1;
}
.menu-vertical .menu-item .menu-link::after {
    right: 1rem;
}
.menu:not(.menu-no-animation) .menu-link::after {
    transition-duration: 0.3s;
    transition-property: transform;
}
.menu-link::after {
    content: "";
    position: absolute;
    top: 50%;
    display: block;
    width: 0.42em; height: 0.42em;
    border: 1px solid;
    border-bottom: 0; border-left: 0;
    transform: translateY(-50%) rotate(45deg);
}
.layout-menu-toggle.menu-link::after {
    display: none;
}
.menu-vertical .menu-icon {
    width: 1.64rem; height: 1.64rem;
    margin-right: 1.04rem;
    font-size: 1.64rem;
}
.menu-vertical .menu-item .menu-link {
    padding: 0.625rem;
    letter-spacing: .2em;
}
.menu-vertical .menu-item .menu-link:hover {
    color: #666;
}
.menu-vertical .menu-item .menu-link:hover .menu-icon {
    color: #666;
}
.menu-sub .menu-item .menu-link {
    padding-left: 3rem;
}
#layout-menu .menu-link:not(.menu-toggle)::after, #layout-menu:hover .menu-link:not(.menu-toggle)::after {
    display: none;
}
/* 假勤審核提示數字 */
#layout-menu .menu-link .msg-count {
    background: #535d9b;
    color: #fff;
    display: block;
    text-align: center;
    width: 24px; height: 24px;
    line-height: 24px;
    position: absolute;
    right: 0;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50%;
    letter-spacing: normal;
}
/* w1200以上縮合選單 */
@media only screen and (min-width: 1200px) {
    .menu-link > :not(.menu-icon) {
        display: none;
    }
    .menu-link::after {
        display: none;
    }
    .menu-vertical, .menu-vertical .menu-block, .menu-vertical .menu-inner > .menu-item, .menu-vertical .menu-inner > .menu-header {
        width: fit-content;
    }
    .menu-vertical .menu-icon {
        margin-right: 0;
    }
    .app-brand-text {
        display: none;
    }
    .app-brand-link {
        margin: 0 auto;
    }
    .menu-vertical .app-brand {
        padding-left: 0;
        padding-right: 0;
    }
    .app-brand-logo {
        width: 48px;
    }
    .app-brand-logo .logo-w {
        display: none;
    }
    .app-brand-logo .logo-w2 {
        display: block;
    }
    #layout-menu .menu-item.open > .menu-sub {
        display: none;
    }
    /* hover後 */
    /* #layout-menu:hover .menu-item.open > .menu-sub {
        display: block;
    }
    #layout-menu:hover .menu-item{
        width: 16.25rem !important;
        transition: all .5s;
    }
    #layout-menu:hover .menu-link > :not(.menu-icon) {
        display: block;
    }
    #layout-menu:hover .menu-link > .badge {
        display: flex;
    }
    #layout-menu:hover .menu-link::after {
        display: block;
    }
   
    #layout-menu.menu-vertical:hover .menu-icon {
        margin-right: 1.04rem !important;
    }
    #layout-menu:hover .app-brand-text {
        display: block;
    }
    #layout-menu:hover .app-brand-logo {
        display: block;
        width: 190px;
    }
    #layout-menu:hover .app-brand-logo .logo-w {
        display: block;
    }
    #layout-menu:hover .app-brand-logo .logo-w2 {
        display: none;
    } */
    /* 暫時全展開 */
    #layout-menu .menu-item.open > .menu-sub {
        display: block;
    }
    #layout-menu .menu-item{
        width: 16.25rem !important;
        transition: all .5s;
    }
    #layout-menu .menu-link > :not(.menu-icon) {
        display: block;
    }
    #layout-menu .menu-link > .badge {
        display: flex;
    }
    #layout-menu .menu-link::after {
        display: block;
    }
   
    #layout-menu.menu-vertical .menu-icon {
        margin-right: 1.04rem !important;
    }
    #layout-menu .app-brand-text {
        display: block;
    }
    #layout-menu .app-brand-logo {
        display: block;
        width: 190px;
    }
    #layout-menu .app-brand-logo .logo-w {
        display: block;
    }
    #layout-menu .app-brand-logo .logo-w2 {
        display: none;
    }
}
@media (max-width: 1199.98px) {
    #layout-menu .app-brand-logo .logo-w2 {
        display: none;
    }
    .app-brand-text {
        display: block;
    }
}
/* modal */
.modal-backdrop, .layout-overlay {
    background: #666;
}
/* modal打開後調整z-index */
.modal-open .layout-overlay {
    z-index: 1100;
}
.modal-open .modal {
    z-index: 1101;
}
.modal-title {
    text-align: center;
    width: 100%;
}
.modal-header {
    padding-top: 48px;
}
.modal-footer {
    padding-bottom: 48px;
}
.modal .btn-close {
    position: absolute;
    right: 16px; top: 24px;
    background: transparent url("data:image/svg+xml,%3Csvg width='150px' height='151px' viewBox='0 0 150 151' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cdefs%3E%3Cpolygon id='path-1' points='131.251657 0 74.9933705 56.25 18.7483426 0 0 18.75 56.2450278 75 0 131.25 18.7483426 150 74.9933705 93.75 131.251657 150 150 131.25 93.7549722 75 150 18.75'%3E%3C/polygon%3E%3C/defs%3E%3Cg id='🎨-%5BSetup%5D:-Colors-&amp;-Shadows' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cg id='Artboard' transform='translate%28-225.000000, -250.000000%29'%3E%3Cg id='Icon-Color' transform='translate%28225.000000, 250.500000%29'%3E%3Cuse fill='%23535d9b' xlink:href='%23path-1'%3E%3C/use%3E%3Cuse fill-opacity='0.5' fill='%23535d9b' xlink:href='%23path-1'%3E%3C/use%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E") center / 0.8em auto no-repeat;
    transform: none;
    box-shadow: none;
    background-color: transparent;
}
.modal .btn-close:hover, .modal .btn-close:focus, .modal .btn-close:active {
    transform: none;
}
.modal-content {
    box-shadow: 0 0 40px rgba(181, 63, 37, .16) !important
}


/* 登入帳號資訊 */
#layout-navbar {
    color: rgba(34, 37, 52, .87);
    background: none !important;
    backdrop-filter: none !important;
    height: fit-content;
    padding: 14px 32px;
}
#layout-navbar a {
    color: rgba(34, 37, 52, .87);
}
@media only screen and (max-width: 640px){
    #layout-navbar {
        /* backdrop-filter: none !important; */
    }
}

/* Tabs */

.dashboard-tabs {
    display: flex;
    justify-content: center;
    grid-gap: 8px;
}
.dashboard-tabs a .nav-link {
    font-size: 1.24rem;
    font-weight: bold;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    color: #666;
}
.dashboard-tabs a .nav-link .menu-icon {
    width: 28px; height: 28px;
    margin-right: 0.24rem;
}
.dashboard-tabs a:hover .nav-link {
    background: #fc824a;
    color: #fff;
}
.dashboard-tabs a:hover .nav-link .menu-icon {
    fill: #fff;
}
.dashboard-tabs a.active .nav-link {
    background: #fc824a;
    color: #fff;
}
.dashboard-tabs a.active .nav-link .menu-icon {
    fill: #fff;
}
.nav-pills {
    font-weight: bold;
}
.nav-pills .nav-link:not(.active, .disabled) {
    background: #fff;
    color: #666;
}
.nav-pills .nav-link.active, .nav-pills .nav-link.active:hover, .nav-pills .nav-link.active:focus {
    background-color: #fc824a;
}

/* Badges */
.bg-primary {
    background-color: #fc824a !important;
}


/* Table */
.table {
    color: #666;
    text-align: center;
    letter-spacing: .1em;
}
.table-bordered thead th {
    border: 0 !important;
}
.table .table-dark th {
    color: #fff;
    background: #696e8c;
}
.table .btn-outline-primary svg {
    fill: #fc824a;
}
.table .btn-outline-primary:hover svg {
    fill: #fff;
}
.table-center td{
    text-align: center;
}
.table-center td a{
    margin-right: auto;
    margin-left: auto;
}

/* 表格固定置頂 */
.table {
    width: 100%;
    --bs-table-hover-color: #666;
    --bs-table-hover-bg: rgba(251, 246, 236, 0);
}
/* 首行永遠固定於左 */
/*@media only screen and (min-width: 768px){
    .table td:first-child, 
    .table th:first-child {
        position: sticky;
        left: 0; 
        z-index: 7 !important;
    }
    .table td:first-child, .table th:first-child{
        width: 100px;
        min-width: 100px;
        background: #696e8c;
    }
    .table td:first-child a{
        display: inline-block!important;
    }
    .table th:first-child
    {
         background: #696e8c;
    }
   
    
    .table tbody tr td:nth-of-type(1),
    .table tbody tr td:nth-of-type(2){
        background: #eff0f9;
    }
    .table tbody tr:nth-of-type(odd) td:nth-of-type(1),.table tbody tr:nth-of-type(odd) td:nth-of-type(2){
        background-color: #fff;
    }

}*/
.table th:first-child {
    z-index: 6 !important;
}
.table > :not(caption) > * > * {
    border-bottom: 0;
}
.table > :not(:first-child) {
    border-top: 0;
}
.table tbody tr:nth-child(even) {
    background: rgba(223, 226, 244, .5);
}
.table tbody tr.tr_off {
    background: #f4f4f4;
}
@media only screen and (min-width: 768px){
    .table thead tr th {
        position: sticky;
        top: 0; /* 列首永遠固定於上 */
        z-index: 5 !important;
    }
}
.table > :not(caption) > * > * {
    padding: 10px;
}
th:first-child {
    z-index: 3;
}
td { word-break: break-all; }


/* 表格scrollbar */
.ps__rail-x {
    height: 0.8rem;
}  
.ps__rail-y {
    width: 0.8rem;
}
.ps__thumb-x {
    height: 0.8rem;
}
.ps__thumb-y {
    width: 0.8rem;
    background-color: #fc824a;
}
.ps__rail-y:hover, .ps__rail-y:focus, .ps__rail-y.ps--clicking, .ps__rail-y:hover > .ps__thumb-y, .ps__rail-y:focus > .ps__thumb-y, .ps__rail-y.ps--clicking > .ps__thumb-y {
    width: 0.8rem;
}
.ps__rail-x:hover, .ps__rail-x:focus, .ps__rail-x.ps--clicking, .ps__rail-x:hover > .ps__thumb-x, .ps__rail-x:focus > .ps__thumb-x, .ps__rail-x.ps--clicking > .ps__thumb-x {
    height: 0.8rem !important;
}
.ps__thumb-x {
    background-color: #fc824a;
}
.ps__rail-x:hover > .ps__thumb-x, .ps__rail-x:focus > .ps__thumb-x, .ps__rail-x.ps--clicking .ps__thumb-x {
    background-color: #fc824a;
}
.ps__rail-y:hover > .ps__thumb-y, .ps__rail-y:focus > .ps__thumb-y, .ps__rail-y.ps--clicking .ps__thumb-y {
    background-color: #fc824a;
}

/* pagination */
.page-item.active .page-link, .page-item.active .page-link:hover, .page-item.active .page-link:focus, .pagination li.active > a:not(.page-link), .pagination li.active > a:not(.page-link):hover, .pagination li.active > a:not(.page-link):focus {
    border-color: #fc824a;
    background-color: #fc824a;
}
.simple-pagination li {
    margin: 0 4px;
}
.simple-pagination .page-link {
    padding: 0;
}
.compact-theme a, .compact-theme span {
    border: 0;
    background: transparent;
    width: 32px; height: 32px;
    line-height: 32px;
    border-radius: 50%;
}
.compact-theme .disabled span {
    background: transparent;
}
.compact-theme .active span {
    background: #fc824a;
}
.compact-theme li:first-child a, .compact-theme li:first-child span {
    border: 0;
}

.main-container {
    padding-top: 0.8rem;
    padding-bottom: 1.25rem;
}

.btn-panel {
    right: 1rem; bottom: 1rem;
    z-index: 99;
}
.panel-modal {
    position: fixed;
    right: 1rem; bottom: 1rem;
    z-index: 100;
    margin: 0;
    padding: 0 !important;
    text-align: right;
    pointer-events: initial;
}
.panel-modal > div {
    color: #fff;
    font-weight: bold;
}
.panel-modal button {
    display: inline-block;
    cursor: pointer;
}
.card {
    box-shadow: 0 0 40px rgba(181, 63, 37, .16) !important;
    padding: 32px;
    border-radius: 16px;
}
@media only screen and (max-width: 960px) {
    .card {
        padding: 24px;
    }
}



.edit-switch {
    background: #E0E0E0;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    color: #666;
    width: fit-content;
}
.form-switch {
    width: fit-content;
}
.edit-switch .form-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2867, 89, 113, 0.3%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-color: transparent;
}
.edit-switch.active {
    background: rgba(25,210,148,.24);
}
.edit-switch.active .form-check-input:checked {
    background-color: #19D294;
    border-color: #1ABA84;
}

/* 左上固定三角形 */
.triangle-container {
    position: absolute;
    width: 40px; height: 40px;
    top: 0; left: 0;
    z-index: 5;
}
.triangle {
    width: 0; height: 0;
    border-style: solid;
    border-width: 40px 40px 0 0;
    border-color: #B78B42 transparent transparent transparent; /* 調整顏色 */
    position: absolute;
    top: 0; left: 0;
}
.triangle-content {
    position: absolute;
    top: 2px; left: 6px;
    color: #fff;
    font-weight: bold;
}

/* 主要內容padding */
@media only screen and (max-width: 1919px) and (min-width: 1200px) {
    .layout-navbar.navbar-detached {
        width: calc(100% - (3rem * 2));
    }
}
@media only screen and (max-width: 1199px){
    #both-scrollbars {
        height: 500px;
    }
}


.bread-crumb-wrap h4 {
    margin-bottom: 0;
    letter-spacing: .05em;
}

@media only screen and (max-width: 767px){
    .bread-crumb-wrap {
        flex-wrap: wrap
    }
    .bread-crumb-wrap > div {
        width: 100%;
    }
    .bread-crumb-wrap h4 {
        line-height: 1.5;
    }
}



/* 首頁index */
.index-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 230px));
    grid-gap: 40px;
    z-index: 5;
    position: relative;
    margin-bottom: 40px;
}
.index-links a {
    background: #fff;
    color: #535d9b;
    display: block;
    text-align: center;
    letter-spacing: .1em;
    transition: all .5s;
}
.index-links a:hover {
    transform: scale(0.95);
    transition: all .5s;
}
.page-icon {
    width: 64px; height: 64px;
    display: flex;
    align-items: center; justify-content: center;
    margin: 0 auto 16px;
    background: #fdf1e7;
    color: #fc824a;
    border-radius: 50%;
}
.page-icon i {
    font-size: 24px;
}
@media only screen and (max-width: 1024px) {
    .index-links {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media only screen and (max-width: 640px) {
    .index-links {
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
    }
    .index-links a {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 8px;
    }
    .index-links a .display-6 {
        font-size: 15px !important;
        text-align: left;
    }
    .page-icon {
        width: 32px; height: 32px;
        margin: 0;
        background: #ffff;
    }
    .page-icon i {
        font-size: 20px;
    }
}




input::-webkit-datetime-edit-day-field:focus,
input::-webkit-datetime-edit-month-field:focus,
input::-webkit-datetime-edit-year-field:focus {
    background-color: #fc824a;
    color: white;
    outline: none;
}


.couple-table p {
    text-align: left;
}
#kvFileinputModal .btn, .file-thumbnail-footer .btn {
    min-width: fit-content;
}
#kvFileinputModal .kv-zoom-actions {
    position: absolute;
    top: 8px; right: 8px;
}
.gallery_image_item {
    margin-bottom: 8px;
}
.gallery_image_item .form-label {
    display: block;
    width: 50px;
    flex: 0 0 50px;
    align-self: center;
    margin-bottom: 0;
    text-align: center;
}
.gallery_image_item .gallery_file {
    width: 400px;
}
@media only screen and (max-width: 960px) {
    .gallery_image_item {
        flex-wrap: wrap;
        
    }
    .gallery_image_item .gallery_file {
        width: 100%;
    }
    .gallery_image_item > div {
        width: 100%;
    }
    .gallery_image_item .gallery_sort, .gallery_image_item .gallery_del {
        width: 40%;
        margin-top: 8px;
    }
    .gallery_image_item .gallery_del {
        text-align: right;
        margin-left: auto !important;
        margin-right: 0 !important;
    }
}

/* RWD 的圖片裁剪區域 */
.crop-container {
    max-width: 100%;
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #f8f9fa;
}
.crop-container img {
    display: block;
    max-width: 100%;
    height: auto;
}
#previewImage, #previewImage2 {
    max-width: 320px;
    height: auto;
}

.member-upload {
    position: relative;
}
#formFileBtn {
    position: absolute;
    top: 0;
    pointer-events: none;
}

.member_memo {
    margin: 0;
    padding: 0;
    list-style: none;
}
.member_memo li {
    border-bottom: 1px solid #E0E0E0;
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 12px;
}
.member_memo li p {
    margin: 0;
}
.member_memo li small {
    font-size: 100%;
    flex: 0 0 135px;
    text-align: right;
}

/* 會員快速連結 */
.quick-menu {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    padding: 5px;
    z-index: 1000;
}

.quick-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-menu li {
    margin: 10px 0;
}

/* 按鈕樣式 */
.quick-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

/* icon（使用 <i>）始終可見 */
.quick-menu a i {
    font-size: 20px;
    flex-shrink: 0; /* 不讓 icon 被擠壓 */
    margin-left: 2px;
}

/* 文字透明 + 動畫 */
.quick-menu a span {
    display: inline-block;
    margin-left: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
}

/* Hover 整個選單時，所有按鈕展開 + 左對齊 + 顯示文字 */
.quick-menu:hover a {
    width: 140px;
    border-radius: 25px;
    justify-content: center;
}

.quick-menu:hover a span {
    opacity: 1;
}

/* 當前選單的高亮效果 */
.quick-menu a.active {
    background: #455FCF; /* 你的次要顏色 */
    color: #fff;
}

/* 潛力訪客 */
.potential-leads {
    min-height: 100%;
}
.potential-leads .btn {
    margin-bottom: 8px;
    padding: 0.4375rem 0.8rem;
}


.info-title {
    border-left: 4px solid #696e8c;
    padding-left: 16px;
    flex: 0 0 150px;
}
.sec-info,
.sec-info2 {
    width: 100%;
    display: grid;
    gap: 24px;
}
.sec-info {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.sec-info2 {
    grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
}
.sec-info .row {
    max-width: 200px;
    width: 100%;
}
.sec-info .row .col-auto,
.sec-info2 .row .col-auto {
    margin: 0;
}
.sec-info .form-label,
.sec-info2 .form-label {
    font-weight: bold;
}
@media only screen and (max-width: 800px) {
    .sec-infowrap {
        flex-wrap: wrap;
    }
    .info-title {
        flex: 0 0 100%;
        margin: 0 0 32px;
    }
    .sec-info,
    .sec-info2 {
        gap: 20px;
    }
}

/* 聊天室 */
.message {
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
    margin-bottom: 0.2rem;
    position: relative;
    word-break: break-word;
}
.message-time {
    font-size: 0.75rem;
    color: #999;
}
.message.me { 
    background-color: #535d9b;
    color: #fff;
    margin-left: auto;
}
.message.them {
    background-color: #fff;
    color: #000;
    margin-right: auto;
}
.message img {
    max-width: 200px;
    border-radius: 0.5rem;
}
.message.system {
    background: #e0e0e0;
    color: #555;
    margin: 0 auto;
    text-align: center;
    padding: 0.4rem 0.8rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
}
.message-wrapper {
    display: flex;
    flex-direction: column;
}
.message.system,
.message-wrapper {
    margin-bottom: 8px;
}
#member-list-wrapper {
    overflow-y: auto;
    max-height: calc(70vh - 70px);
    min-height: 0;
}
#member-list .list-group-item.active,
#member-list .list-group-item.active:hover,
#member-list .list-group-item.active:focus {
    background: #f5f5f9;
    border-color: #f5f5f9;
    color: #697a8d;
}
.list-group-item {
    border-color: #f5f5f9;
}
.bg-label-primary {
    color: #fc824a !important;
    background: rgba(252, 130, 74, .2) !important;
}
#member-list .avatar .unread {
    position: absolute;
    right: 0; top: 0;
    color: #ff5e14;
}
#member-list .avatar {
    width: 56px; height: 56px;
    margin: 0;
}
#view-chatbox {
    background: #f5f5f9;
}
#member-profile .avatar {
    width: 120px; height: 120px;
    margin: 0 auto;
    display: block;
}
#member-profile .name {
    font-size: 20px;
    font-weight: bold;
}
#member-profile p {
    text-align: center;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.3;
}
#member-profile p span {
    display: block;
}
#member-profile .btn-profilelink {
    display: block;
    width: fit-content;
    margin: 4px auto 24px;
}
#chat-body {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #FC824A #f0f0f0; /* Firefox */
}
#chat-body::-webkit-scrollbar {
    width: 8px;
}
#chat-body::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}
#chat-body::-webkit-scrollbar-thumb {
    background-color: #FC824A;
    border-radius: 4px;
    border: 2px solid #f0f0f0; /* 可留白邊讓 thumb 有內縮感 */
}
#chat-body::-webkit-scrollbar-thumb:hover {
    background-color: #e96b28; /* hover 色 */
}
@media only screen and (max-width: 800px) {
    #view-info {
        height: fit-content !important;
    }
    #view-info h5 {
        text-align: center;
        padding-bottom: 0 !important;
    }
    #member-profile {
        display: flex;
        flex-wrap: wrap;
    }
    #member-profile p.name {
        width: 100%;
    }
    #member-profile p span {
        display: inline-block;
        margin-right: 8px;
    }
    #member-profile p {
        width: 100%;
    }
    #member-profile .btn-profilelink {
        margin: 4px auto 16px;
    }
    #view-chatbox {
        border-radius: 16px;
        margin-left: -3px;
        margin-right: -3px;
    }
    #view-chatbox > div:nth-child(1) {
        padding-left: 0 !important;
        padding-right: 0 !important;
        justify-content: space-between;
    }
}

/*顏色*/
.custom-checkboxes input[type="checkbox"] + label.input-group-text,.col-form-label,.input-group-text{
            color: #666;
        }
.c_bu,.bg-grey .col-form-label{
   color: #566a7f!important; 
}


@media (min-width: 576px) {
    .col-sm-2-2 {
        width: 11%;
    }
}

/*表單特調*/

.couple-table.table .btn{
    white-space: nowrap;
    -webkit-line-clamp: none;
}

/*會員詳情－排約擇友區塊*/

.partner-preference-section {
    margin-top: 32px;
    padding: 24px;
    background: #fff8f4;
    border: 1px solid #f4c9b5;
    border-left: 6px solid #fc824a;
    border-radius: 12px;
}

.partner-preference-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f4c9b5;
}

.partner-preference-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #fc824a;
    color: #fff;
    border-radius: 50%;
}

.partner-preference-header-icon i {
    font-size: 22px;
}

.partner-preference-header-content h5 {
    margin: 0 0 6px;
    color: #d85e36;
    font-weight: 700;
}

.partner-preference-description {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

.partner-preference-group {
    padding: 20px;
    background: #fff;
    border: 1px solid #f0ded5;
    border-radius: 10px;
}

.partner-preference-group + .partner-preference-group {
    margin-top: 20px;
}

.partner-preference-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding-left: 10px;
    border-left: 4px solid #fc824a;
    color: #566a7f;
    font-weight: 700;
}

.partner-preference-group-title i {
    color: #fc824a;
    font-size: 18px;
}

.partner-preference-section .form-label {
    font-weight: 600;
    color: #566a7f;
}

.partner-preference-section .form-control,
.partner-preference-section .form-select,
.partner-preference-section .input-group-text {
    border-color: #e4cfc5;
}

.partner-preference-section .form-control:focus,
.partner-preference-section .form-select:focus,
.partner-preference-section .input-group:focus-within .form-control,
.partner-preference-section .input-group:focus-within .input-group-text {
    border-color: #fc824a;
}

/* 僅調整排約擇友區內的標籤按鈕 */
.partner-preference-section .custom-checkboxes label {
    background: #fff;
    border-color: #dfc7bc;
}

.partner-preference-section
.custom-checkboxes input[type="checkbox"]:checked + label {
    background-color: #d85e36;
    border-color: #d85e36;
    color: #fff;
}

/* 區分會員本人條件與對象條件的小標籤 */
.partner-preference-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 9px;
    background: #fdf1e7;
    color: #d85e36;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .05em;
}

/* 手機版 */
@media only screen and (max-width: 767px) {
    .partner-preference-section {
        margin-top: 24px;
        padding: 16px;
        border-left-width: 4px;
    }

    .partner-preference-header {
        gap: 10px;
        margin-bottom: 18px;
    }

    .partner-preference-header-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .partner-preference-group {
        padding: 16px;
    }

    .partner-preference-badge {
        display: flex;
        width: fit-content;
        margin: 6px 0 0;
    }
}

/* 電子資料卡 quick-menu 永久展開 */
#quick-menu.quick-menu-actions a {
    width: 140px;
    border-radius: 25px;
    justify-content: center;
}

#quick-menu.quick-menu-actions a span {
    opacity: 1;
}