:root,
[data-bs-theme] {
    --x-border-radius-lg: .5rem !important;
}

@media(min-width: 576px) {
    .dropdown-menu-sm-auto {
        --x-dropdown-min-width: auto !important;
    }

    .bg-sm-transparent,
    .bg-sm-transparent-hover:hover {
        --x-bg-opacity: 1;
        background-color: transparent !important;
    }
}

@media(min-width: 768px) {
    .dropdown-menu-md-auto {
        --x-dropdown-min-width: auto !important;
    }

    .bg-md-transparent,
    .bg-md-transparent-hover:hover {
        --x-bg-opacity: 1;
        background-color: transparent !important;
    }
}

@media(min-width: 992px) {
    .dropdown-menu-lg-auto {
        --x-dropdown-min-width: auto !important;
    }

    .bg-lg-transparent,
    .bg-lg-transparent-hover:hover {
        --x-bg-opacity: 1;
        background-color: transparent !important;
    }
}

@media(min-width: 1200px) {
    .dropdown-menu-xl-auto {
        --x-dropdown-min-width: auto !important;
    }

    .bg-xl-transparent,
    .bg-xl-transparent-hover:hover {
        --x-bg-opacity: 1;
        background-color: transparent !important;
    }
}

.bootstrap-table .fixed-table-container .table tfoot th .th-inner,
.bootstrap-table .fixed-table-container .table thead th .th-inner {
    padding: 0.75rem 1rem;
}


.bootstrap-table .fixed-table-container .table thead th:first-child .th-inner,
.bootstrap-table .fixed-table-container .table td:first-child {
    padding-left: 1.5rem;
}

.bootstrap-table .fixed-table-container .table thead th:last-child .th-inner,
.bootstrap-table .fixed-table-container .table td:last-child {
    padding-right: 1.5rem;
}

.bootstrap-table .fixed-table-toolbar {
    padding: 0 var(--x-card-cap-padding-x);
}

.bootstrap-table .no-records-found td {
    border-radius: 0 0 var(--x-border-radius-lg) var(--x-border-radius-lg);
    border-bottom-width: 0;
}

.modal-body .bootstrap-table .fixed-table-pagination,
.card-body .bootstrap-table .fixed-table-pagination {
    padding: 0 1.5rem;
}

.bootstrap-table .fixed-table-loading {
    border-radius: 0 0 var(--x-border-radius-lg) var(--x-border-radius-lg);
}

.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading .loading-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bootstrap-table .fixed-table-loading .loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.bootstrap-table .fixed-table-loading .loading-wrap .loading-spinner {
    width: 300px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.bootstrap-table .fixed-table-loading .loading-wrap .loading-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0078d4, transparent);
    animation: ms-progress 1.5s ease-in-out infinite;
}

.bootstrap-table .fixed-table-loading .loading-wrap .loading-text {
    color: #666;
    font-size: 16px !important;
    font-weight: 500;
    text-align: center;
}

.bootstrap-table .fixed-columns-right .fixed-table-body .fixed-table-loading {
    display: none;
}

.table-custom-style {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table-custom-style thead th {
    border-bottom: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style thead tr:first-child th {
    border-top: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style thead tr th:first-child {
    border-left: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style tbody tr td:first-child {
    border-left: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style thead tr th:last-child {
    border-right: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style tbody tr td:last-child {
    border-right: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style tbody tr:last-child td {
    border-bottom: var(--x-border-width) var(--x-border-style) var(--x-border-color) !important;
}

.table-custom-style thead tr:first-child th:first-child {
    border-top-left-radius: 0.375rem !important;
}

.table-custom-style thead tr:first-child th:last-child {
    border-top-right-radius: 0.375rem !important;
}

.table-custom-style tbody tr:last-child td:first-child {
    border-bottom-left-radius: 0.375rem !important;
}

.table-custom-style tbody tr:last-child td:last-child {
    border-bottom-right-radius: 0.375rem !important;
}

@keyframes ms-progress {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.jconfirm .jconfirm-box div.jconfirm-title-c .jconfirm-title {
    font-size: 1rem;
    font-weight: 600;
}

.jconfirm .jconfirm-box div.jconfirm-content-pane .jconfirm-content {
    font-size: .875rem;
}

.jconfirm .jconfirm-box .jconfirm-buttons button {
    font-size: 12px;
}

.accordion-button:not(.collapsed),
.accordion-button:focus {
    box-shadow: none !important;
}

.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]:before,
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]:before {
    content: "标题一";
}

.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]:before,
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]:before {
    content: "标题二";
}

.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]:before,
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]:before {
    content: "标题三";
}

.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]:before,
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]:before {
    content: "标题四";
}

.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]:before,
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]:before {
    content: "标题五";
}

.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]:before,
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]:before {
    content: "标题六";
}

.ql-snow .ql-picker.ql-header .ql-picker-item:before,
.ql-snow .ql-picker.ql-header .ql-picker-label:before {
    content: "普通";
}

.ql-snow .ql-tooltip[data-mode=link]:before {
    content: "链接地址:";
}

.ql-snow .ql-tooltip.ql-editing a.ql-action:after {
    content: "确认";
}

.dropdown-select {
    --x-btn-border-color: #e5e5e5 !important;
    position: relative;
}

.dropdown-select.dropdown-toggle::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23262626' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 12px;
}

.nav-underline {
    border-bottom: none;
}

.nav-underline .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #6c757d;
    transition: all 0.2s ease;
}

.nav-underline .nav-link.active {
    background-color: transparent;
}

.nav-underline .nav-link:hover {
    border-color: transparent;
}