﻿/*  */
[v-cloak] {
    display: none;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
/* 文字框提醒文字 */
.form-control::placeholder {
    color: #cccccc;
}

.multiselect {
    height: auto !important; /* ✅ 讓容器隨內容撐開 */
    overflow: visible !important; /* ✅ 確保不裁切 dropdown / tags */
}

.multiselect__placeholder {
    color: #cccccc;
    font-size: 1rem;
}

.multiselect.form-control {
    height: 2rem;
}
/*
.multiselect__tags {
    padding-top: 0.4rem;
    max-height: 100%;
}
*/
.multiselect__tags {
    padding: 0.4rem;
    max-height: none !important; /* ✅ 移除高度限制 */
    white-space: normal !important; /* ✅ 允許多行換行 */
    overflow: visible !important; /* ✅ 顯示完整內容 */
    display: flex;
    flex-wrap: wrap; /* ✅ 讓 tag 自動換行 */
    gap: 0.25rem; /* 可選：tag 之間加點距離 */
}

.multiselect__input {
    padding-top: 4px !important;
    padding-left: 0px !important;
}

    .multiselect__input::placeholder {
        color: #cccccc;
    }
/* bootbox 套件樣式 */
.bootbox .modal-header {
    padding: 8px;
}

.modal-dialog .modal-header {
    padding: 8px;
}

.navbar-nav .nav-link.active {
    font-weight: bolder;
}

.nav-item .nav-link.custom-bottom-line.active {
    border-bottom: 2px solid rgba(0, 0, 0, 0.6); /* 線的顏色可調淡一點 */
    padding-bottom: 4px; /* 增加底部距離 */
    color: #000; /* 可配合文字色強調 active */
    transition: border-color 0.3s ease, color 0.3s ease;
}

.nav-item .nav-link.custom-bottom-line {
    border-bottom: 2px solid transparent; /* 預設沒線 */
    padding-bottom: 4px; /* 保持一致高度 */
    transition: border-color 0.3s ease, color 0.3s ease;
}

    .nav-item .nav-link.custom-bottom-line:hover {
        border-bottom: 2px solid rgba(0, 0, 0, 0.2); /* hover 時淡淡的線 */
        color: #333;
    }

.dropdown-menu.show {
    z-index: 1021;
}
/* Checkbox 樣式 */
.checkbox-wrapper-4 * {
    box-sizing: border-box;
}

.checkbox-wrapper-4 .cbx {
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: inline-block;
}

    .checkbox-wrapper-4 .cbx:not(:last-child) {
        /* margin-right: 6px; */
    }

    .checkbox-wrapper-4 .cbx:hover {
        background: rgba(0,119,255,0.06);
    }

    .checkbox-wrapper-4 .cbx span {
        float: left;
        vertical-align: middle;
        transform: translate3d(0, 0, 0);
    }

        .checkbox-wrapper-4 .cbx span:first-child {
            position: relative;
            width: 18px;
            height: 18px;
            border-radius: 4px;
            transform: scale(1);
            border: 1px solid #cccfdb;
            transition: all 0.2s ease;
            box-shadow: 0 1px 1px rgba(0,16,75,0.05);
        }

            .checkbox-wrapper-4 .cbx span:first-child svg {
                position: absolute;
                top: 3px;
                left: 2px;
                fill: none;
                stroke: #fff;
                stroke-width: 2;
                stroke-linecap: round;
                stroke-linejoin: round;
                stroke-dasharray: 16px;
                stroke-dashoffset: 16px;
                transition: all 0.3s ease;
                transition-delay: 0.1s;
                transform: translate3d(0, 0, 0);
            }

        .checkbox-wrapper-4 .cbx span:last-child {
            padding-left: 8px;
            line-height: 18px;
        }

    .checkbox-wrapper-4 .cbx:hover span:first-child {
        border-color: #07f;
    }

.checkbox-wrapper-4 .inp-cbx {
    position: absolute;
    visibility: hidden;
}

    .checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child {
        background: #07f;
        border-color: #07f;
        animation: wave-4 0.4s ease;
    }

        .checkbox-wrapper-4 .inp-cbx:checked + .cbx span:first-child svg {
            stroke-dashoffset: 0;
        }

.checkbox-wrapper-4 .inp-cbx-success:checked + .cbx-success span:first-child {
    background: #00b500;
    border-color: #00b500;
}

.checkbox-wrapper-4 .inline-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    user-select: none;
}

.checkbox-wrapper-4 input:disabled + label {
    color: #aaa;
    opacity: 0.5;
}

@media screen and (max-width: 640px) {
    .checkbox-wrapper-4 .cbx {
        width: auto;
        display: inline-block;
    }
}

@-moz-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-webkit-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@-o-keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}

@keyframes wave-4 {
    50% {
        transform: scale(0.9);
    }
}
/* 鼠標 */
.cursor-pointer {
    cursor: pointer;
}

.cursor-grab {
    cursor: grab;
}

.cursor-help {
    cursor: help;
}

.disabled-object {
    pointer-events: none;
    opacity: 0.6;
}

.trumbowyg-box, .trumbowyg-editor-box {
    height: 100%;
}

@keyframes border-flash {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: red;
    }

    100% {
        border-color: transparent;
    }
}

.flash-border {
    border: 2px solid transparent; /* 初始border */
    animation: border-flash 1s infinite;
}

.custom-tag svg {
    font-weight: normal;
    transition: font-weight 0.2s;
}

    .custom-tag svg:hover {
        background-color: rgba(210,210,210,0.3);
        font-weight: bold !important;
        cursor: pointer;
    }

.custom-tag:hover {
    transform: scale(1.02);
}

.speech-bubble {
    position: relative;
    background: #FAFAFA;
    border-radius: .4em;
    border: solid 1px #bdbdbd;
}

    .speech-bubble:before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 0;
        border: 15px solid transparent;
        border-right-color: #bdbdbd;
        border-left: 0;
        margin-top: -15px;
        margin-left: -15px;
    }

    .speech-bubble:after {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        width: 0;
        height: 0;
        border: 14px solid transparent;
        border-right-color: #FAFAFA;
        border-left: 0;
        margin-top: -14px;
        margin-left: -14px;
    }

.cProperty .active {
    filter: opacity(0.5) invert(0.2);
}

.color-man {
    color: #3a77ff;
}

.color-woman {
    color: #ff3368;
}

.color-mixman {
    color: #c082fb;
}

.text-bg-man {
    background-color: #3a77ff;
}

.text-bg-woman {
    background-color: #ff3368;
}

.text-bg-mixman {
    background-color: #c082fb;
}

.border-bottom-man {
    border-bottom: solid 2px #3a77ff;
}

.border-bottom-woman {
    border-bottom: solid 2px #ff3368;
}

.border-bottom-mixman {
    border-bottom: solid 2px #c082fb;
}

.tippy-box .tippy-content {
    white-space: normal; /* 允許多行顯示 */
    word-break: break-all; /* 長字串也會自動換行 */
    overflow-wrap: anywhere; /* 補充自動換行 */
}

.tippy-box[data-theme~='scrollable'] .tippy-content {
    max-height: 240px;
    overflow-y: auto;
    padding-right: 4px;
    font-size: 0.875rem;
}

.opcity-30 {
    opacity: 0.3;
}

.no-select {
    user-select: none;
    -webkit-user-select: none; /* Safari/iOS */
    -moz-user-select: none;
    -ms-user-select: none; /* 舊版 Edge/IE */
}

.tr-disabled {
    opacity: 1;
    filter: grayscale(1);
}

.ss-13, .ss-13 input {
    height: 2.3rem !important;
    width: 5rem !important;
}

.top-25 {
    top: 25% !important;
}

svg *:focus {
    outline: none;
}
