.card {
    border: none;
    border-radius: 0px;
    background: inherit;
    margin-bottom: 1rem;
}

.card-body {
    border-radius: 0.4rem;
    border: 1px solid #dee2e6;
    height: 100%;
    background: #fff;
}
.card-header {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--bs-purple);
}

p {
    margin-bottom: 0px;
}



.submenu-link {
    text-decoration: none !important;
}

.row>* {
    min-width: 21rem;
}

.filter-label {
    margin-bottom: 0.3rem;
}

input::placeholder {
    color: #999 !important;
}

input::-webkit-input-placeholder {
    color: #999 !important;
}

input::-moz-placeholder {
    color: #999 !important;
}

input:-ms-input-placeholder {
    color: #999 !important;
}

.card input {
    position: absolute !important;
}

.clear-button {
    margin: 0px !important;
}


.ts-control {
    padding: 0rem 0rem 0rem 0.5rem !important;
    position: relative;
    background-image: none !important;
}

.ts-control .active {
    background: #efefef !important;
    color: #343a40 !important;
    border: 0px solid #dee2e6 !important;
}

.form-select:hover,
.form-control:hover,
.ts-control:hover {
    border-color: #c0c4c8;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ts-dropdown {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
}


.ts-dropdown .option {
    padding: 0.5rem 0.75rem;
    transition: background-color 0.15s ease-in-out;
}

.ts-dropdown .option:hover {
    background-color: rgba(77, 20, 74, 0.1);
    color: var(--bs-purple);
}

.ts-dropdown .option.selected {
    background-color: var(--bs-hover-color);
    color: var(--bs-purple);
    font-weight: 500;
}

.ts-dropdown input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--bs-purple);
}

.ts-dropdown input[type="checkbox"]:checked {
    background-color: var(--bs-purple);
    border-color: var(--bs-purple);
}

.ts-dropdown input[type="checkbox"]:focus {
    box-shadow: 0 0 0 0.2rem var(--bs-hover-color);
    outline: none;
}

input[type="text"] {
    width: 85% !important;
}


.form-control:focus,
.form-select:focus,
.ts-control.focus,
.ts-wrapper.focus .ts-control,
.ts-control:focus-within,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: var(--bs-purple) !important;
    box-shadow: 0 0 0 0.2rem var(--bs-hover-color) !important;
    outline: none !important;
}

.btn-filter {
    background-color: #fff;
    border-color: #dee2e6;
    color: #6c757d;
    font-weight: 500;
    padding: 0.34rem 1.25rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-filter:hover {
    background-color: var(--bs-purple);
    color: #fff !important;
    border-color: #fff !important;

}

.table-scroll-container td {
    background: #f9f9f9 !important;
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
}

.reminder-btn {
    background-color: var(--bs-purple);
    color: white;
    border: none;
    padding: 0.2rem 1rem;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.reminder-btn:hover {
    background-color: var(--bs-purple);
}

.reminder-btn:active {
    transform: scale(0.98);
}

.bell-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}



/* TomSelect 清除按钮样式 */
.ts-control-clear {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    line-height: 1.5rem !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.15s !important;
    z-index: 10 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.ts-control-clear.show {
    opacity: 1 !important;
}

/* TomSelect wrapper 相对定位 */
.ts-wrapper {
    position: relative !important;
}

/* TomSelect placeholder 隐藏样式 */
.ts-control input.placeholder-hidden {
    opacity: 0 !important;
}

/* TomSelectMulti 折叠标签样式 */
.ts-control .item.collapsed-badge {
    background-color: #efefef !important;
    color: #343a40 !important;
    padding: 1px 8px !important;
    border-radius: 4px !important;
    cursor: default !important;
    flex-shrink: 0 !important;
}

/* TomSelectMulti 隐藏的标签项 */
.ts-control .item.item-hidden {
    display: none !important;
}

/* InputField 清除按钮样式 */
.input-field-clear {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    transform: translateY(-50%) !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    line-height: 1.5rem !important;
    text-align: center !important;
    color: #999 !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: 0 !important;
    transition: opacity 0.15s !important;
    z-index: 10 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.input-field-clear.show {
    opacity: 1 !important;
}

/* DataTable 通用样式 */
.data-table {
    position: relative;
}

/* DataTable 表格行背景色统一 */
.data-table table.table tbody tr,
.data-table table.table-striped tbody tr,
.data-table table.table-hover tbody tr,
.data-table table.table tbody tr:hover,
.data-table table.table-striped tbody tr:hover,
.data-table table.table-hover tbody tr:hover,
.data-table table.table tbody tr:nth-child(even),
.data-table table.table tbody tr:nth-child(even):hover,
.data-table table.table tbody tr:nth-child(odd),
.data-table table.table tbody tr:nth-child(odd):hover,
.data-table table.table-striped tbody tr:nth-child(even),
.data-table table.table-striped tbody tr:nth-child(even):hover,
.data-table table.table-striped tbody tr:nth-child(odd),
.data-table table.table-striped tbody tr:nth-child(odd):hover {
    background-color: #f9f9f9 !important;
}

/* DataTable 单元格对齐和间距 */
.data-table table.table th,
.data-table table.table td {
    text-align: left !important;
    vertical-align: middle;
    padding: 0.5rem 1rem;
}

/* DataTable 容器样式 */
.table-header-container {
    flex: 0 0 auto;
    overflow: hidden;
}

.table-scroll-container {
    overflow: auto;
}

.table-header-container table,
.table-scroll-container table {
    table-layout: fixed;
    width: 100%;
}

/* DataTable 卡片式样式 */
.datatable-container-card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.datatable-container-card thead {
    background-color: transparent;
}

.datatable-container-card th {
    text-align: left;
    padding: 0.5rem 1rem;
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03125rem;
}

.datatable-container-card tbody tr {
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.datatable-container-card tbody tr:hover {
    background-color: #f9f9f9 !important;
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

.datatable-container-card td {
    padding: 0.5rem 1rem;
    vertical-align: middle;
    border: none;
    text-align: left;
}

.datatable-container-card td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.datatable-container-card td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Noty style */
.noty_body {
    padding: 0.4rem !important;
}
.noty_theme__mint.noty_bar {
    border-radius: 0.2rem;
}
.noty_theme__mint.noty_type__success {
    background: rgb(240, 249, 235);
    border-color: rgb(225, 243, 216);
}

.noty_theme__mint.noty_type__success p {
    font-size: 0.8rem;
    color: #67c23a;
}

.noty_theme__mint.noty_type__success p i {
    margin-right: 0.5rem;
}

.noty_theme__mint.noty_type__error {
    background: rgb(254,240,240);
    border-color: rgb(253,226,226);
}
.noty_theme__mint.noty_type__error p {
    font-size: 0.8rem;
    color: #f56c6c;
}
.noty_theme__mint.noty_type__error p i {
    margin-right: 0.5rem;
}


.noty_theme__mint.noty_type__warning {
    background: rgb(253,246,236);
    border-color: rgb(250,236,216);
}
.noty_theme__mint.noty_type__warning p {
    font-size: 0.8rem;
    color: #ffb55f;
}
.noty_theme__mint.noty_type__warning p i {
    margin-right: 0.5rem;
}

.noty_theme__mint.noty_type__info,
.noty_theme__mint.noty_type__information {
    background: rgb(236,245,255);
    border-color: rgb(217,236,255);
}
.noty_theme__mint.noty_type__info p {
    font-size: 0.8rem;
    color: #409eff;
}
.noty_theme__mint.noty_type__info p i {
    margin-right: 0.5rem;
}