.placeholder-text, ::placeholder, .form-control::placeholder {
    color: #aaa !important;
    opacity: 0.8 !important;
}

:-ms-input-placeholder {
    color: #aaa !important;
    opacity: 0.8 !important;
}

::-ms-input-placeholder {
    color: #aaa !important;
    opacity: 0.8 !important;
}

select:required:invalid {
    color: #aaa;
}

select, option {
    color: #000;
}

.select2-container {
    width: 100% !important; /* 保证宽度 */
    margin-bottom: 1.5rem !important; /* 下方间距 */
}

.select2-container--default .select2-selection--single {
    border: none !important;
}

.select2-selection__rendered {
    height: 40px !important;
    line-height: 40px !important; /* 垂直居中 */
    border: solid 2px #eee !important;
    border-radius: 6px !important;
    margin-bottom: 1rem !important;
}
/* 给 select2 显示红色边框 */
/* Select2 红色边框，纯红框，无阴影 */
.select2-container.is-invalid .select2-selection {
    border: 1px solid #dc3545 !important; /* 红色边框 */
    border-radius: 6px !important; /* 圆角 */
    box-shadow: none !important; /* 去掉阴影 */
    height: 42px !important; /* 高度 */
}

/* 红色叹号 */
.select2-container.is-invalid .select2-selection::after {
    content: "!";
    color: #dc3545;
    font-weight: bold;
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}


.multiline-label {
    text-align: right;
    font-weight: bold;
    align-self: start;
}

.multiline-value {
    white-space: pre-line;
}

.fixed-searchbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 0.5rem 1rem;
    z-index: 1050;
    border-bottom: 1px solid #ddd;
}

.cardList {
    margin-top: 65px;
    padding-bottom: 90px;
}

.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    z-index: 1000;
    padding: 0.5rem 1rem;
}

.fixed-toolbar {
    position: fixed;
    bottom: 60px;
    left: 0;
    width: 100%;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-top: 1px solid #ddd;
    z-index: 1000;
    font-size: 0.9rem;
    text-align: center;
}

.backToTop {
    position: fixed;
    bottom: 60px;
    right: 5px;
    z-index: 1000;
    display: none;
}

.backToPrev {
    position: fixed;
    bottom: 60px;
    left: 5px;
    text-decoration: none;
    z-index: 1000;
}

/* 新增按钮，颜色与原有按钮区分 */
/* Reports - 紫色 */
.btn-reports {
    --bs-btn-bg: #6610f2;
    --bs-btn-border-color: #6610f2;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #520dc2;
    --bs-btn-hover-border-color: #520dc2;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #520dc2;
    --bs-btn-active-border-color: #520dc2;
    --bs-btn-active-color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .btn-reports:active {
        filter: brightness(1.1);
    }

    .btn-reports:focus {
        box-shadow: none;
    }

/* Analytics - 橙色 */
.btn-analytics {
    --bs-btn-bg: #fd7e14;
    --bs-btn-border-color: #fd7e14;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #e06d0f;
    --bs-btn-hover-border-color: #e06d0f;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #e06d0f;
    --bs-btn-active-border-color: #e06d0f;
    --bs-btn-active-color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .btn-analytics:active {
        filter: brightness(1.1);
    }

    .btn-analytics:focus {
        box-shadow: none;
    }

/* Export - 青绿色 */
.btn-export {
    --bs-btn-bg: #20c997;
    --bs-btn-border-color: #20c997;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #1aa67e;
    --bs-btn-hover-border-color: #1aa67e;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #1aa67e;
    --bs-btn-active-border-color: #1aa67e;
    --bs-btn-active-color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .btn-export:active {
        filter: brightness(1.1);
    }

    .btn-export:focus {
        box-shadow: none;
    }

/* Messages - 粉色 */
.btn-messages {
    --bs-btn-bg: #e83e8c;
    --bs-btn-border-color: #e83e8c;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #d63577;
    --bs-btn-hover-border-color: #d63577;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #d63577;
    --bs-btn-active-border-color: #d63577;
    --bs-btn-active-color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .btn-messages:active {
        filter: brightness(1.1);
    }

    .btn-messages:focus {
        box-shadow: none;
    }

/* Notifications - 红色 */
.btn-notifications {
    --bs-btn-bg: #dc3545;
    --bs-btn-border-color: #dc3545;
    --bs-btn-color: #fff;
    --bs-btn-hover-bg: #b02a37;
    --bs-btn-hover-border-color: #b02a37;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: #b02a37;
    --bs-btn-active-border-color: #b02a37;
    --bs-btn-active-color: #fff;
    -webkit-tap-highlight-color: transparent;
    transition: filter 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

    .btn-notifications:active {
        filter: brightness(1.1);
    }

    .btn-notifications:focus {
        box-shadow: none;
    }

.toast-dark-translucent {
    background-color: rgba(0, 0, 0, 0.7) !important; /* 半透明黑 */
    color: #fff !important; /* 白字 */
}
