/* 通用分页控件 */
/* 分页控件样式增强 */
.pagination {
    margin-top: 20px;
}

.page-item.disabled .page-link {
    pointer-events: none;
}

/* 每页选择器样式 */
.input-group-text {
    background-color: #f8f9fa;
}
/* 交易列表Tab */
/* 汇总模态框样式 */
#statisticsModal .modal-header {
    padding: 1rem 1.5rem;
}
#statisticsChart {
    position: relative;
}
.progress {
    height: 1rem;
}
.daily-detail-row {
background-color: #f8f9fa;
}
.daily-detail-container {
    padding: 15px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.daily-detail-container table {
    margin-bottom: 0;
}
#statisticsDataBody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}
#statisticsDataBody tr:hover {
    background-color: #f1f1f1;
}
.main-cost {
    color: #dc3545; /* 红色强调主费用 */
    font-size: 14px;
    font-weight: bold;
}
.additional-cost {
    color: #6c757d; /* 灰色弱化附加费 */
    font-size: smaller;
    font-weight: lighter;
}
/* 用户列表 */
/* 充值记录模态框样式 */
#balanceModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#balanceModal .table {
    margin-bottom: 0;
}

#balanceModal .modal-lg {
    max-width: 800px;
}

/* 重置密码模态框样式 */
#resetPasswordModal .modal-dialog {
    max-width: 500px;
}

#resetPasswordModal input[readonly] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.password-strength {
    margin-top: 0.5rem;
}

/* 密码强度指示器颜色 */
.progress-bar.weak {
    background-color: #dc3545;
}

.progress-bar.medium {
    background-color: #fd7e14;
}

.progress-bar.strong {
    background-color: #28a745;
}

/* 错误提示样式 */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: none;
    color: #dc3545;
    font-size: 0.875em;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* 溢价规则模态框样式 */
#premiumRuleModal .input-group-text {
    min-width: 40px;
    justify-content: center;
}

#premiumRuleModal .input-group button {
    width: 40px;
}

#premiumRuleModal input[type="number"] {
    -moz-appearance: textfield;
}

#premiumRuleModal input[type="number"]::-webkit-outer-spin-button,
#premiumRuleModal input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.base-price {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}
/* 确认模态框样式 */
#confirmRuleModal .modal-body p {
    margin-bottom: 0.5rem;
}

#confirmRuleModal .modal-body p:last-child {
    margin-bottom: 0;
    margin-top: 1rem;
}
/* 整体容器样式 */
.premium-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 标签样式 */
.form-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

/* 类型标签样式 */
.premium-type-label .badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.text-danger {
    color: #dc3545; /* 错误红色 */
}

/* 返点余额管理按钮样式 */
.btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

/* 模态框样式调整 */
#spreadGainModal .modal-body p {
    margin-bottom: 1rem;
    font-weight: 500;
}

#spreadGainModal .form-text {
    font-size: 0.85rem;
}
/* 关联账户模态框样式 */
#relatedAccountsModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#relatedAccountsModal .table {
    font-size: 0.95rem;
}

#relatedAccountsModal .table th {
    white-space: nowrap;
}

#relatedAccountsModal .badge {
    font-size: 0.8em;
    padding: 0.35em 0.65em;
}

.toast {
    min-width: 250px;
    margin-bottom: 10px;
}

.freight-input, .processing-fee-input {
    text-align: right;
}
.table th {
    white-space: nowrap;
}

/* 预估模态框样式 */
#freightEstimateModal .modal-dialog {
    max-width: 600px;
}

#freightEstimateModal .modal-body {
    padding: 1.5rem;
}

#freightEstimateModal .form-control {
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
}

#freightEstimateModal .alert {
    padding: 0.75rem;
}

/* 结果区域动画 */
#estimateResult {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 576px) {
    #freightEstimateModal .modal-dialog {
        margin: 0.5rem auto;
    }
}

/* 添加一些自定义样式增强视觉效果 */
.form-select-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
}

/* 小屏幕响应式调整 */
@media (max-width: 768px) {
    .d-flex.flex-wrap {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    .flex-grow-1 {
        min-width: 100% !important;
    }
}
/* 精致级联选择器样式 */
.select-elevated {
    /* 原有样式保持不变 */
    border: none;
    border-radius: 8px;
    background-color: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0.75rem 1.25rem;
    height: 48px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
    font-family: inherit;
    line-height: 1.5;
}

/* 新增：针对有label的选择器特殊处理 */
.position-relative:has(label) {
    padding-top: 1.5rem; /* 为label预留空间 */
}

/* 保持原有其他样式不变 */
.select-elevated:focus {
    box-shadow: 0 4px 8px rgba(13,110,253,0.15);
    border-left-color: #0d6efd;
    background-color: white;
    outline: none;
}

.select-elevated:hover {
    background-color: #e9ecef;
}

/* 新增侧边栏样式 */
/* 添加淡入动画 */
.sidebar-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}
#sidebar.open .sidebar-content {
    opacity: 1;
}
#sidebar {
    position: fixed;
    right: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #f8f9fa;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    border-left: 1px solid #dee2e6;
}
#sidebar.open {
    right: 0;
}
#sidebar-toggle {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: #343a40;
    color: white;
    border-radius: 5px 0 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
}
#sidebar-toggle i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
#sidebar-toggle.open i {
    transform: rotate(180deg);
}
.sidebar-header {
    padding: 15px;
    background: #343a40;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-content {
    padding: 15px;
}
.contact-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
}
.contact-card h5 {
    color: #343a40;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.contact-item i {
    width: 30px;
    color: #6c757d;
}
.quick-links {
    list-style: none;
    padding: 0;
}
.quick-links li {
    margin-bottom: 8px;
}
.quick-links a {
    display: block;
    padding: 8px 10px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}
.quick-links a:hover {
    background: #e9ecef;
    color: #212529;
}
.quick-links i {
    margin-right: 8px;
    width: 20px;
    text-align: center;
}
/* 调整主内容区域，当侧边栏打开时避免重叠 */
@media (min-width: 992px) {
    body.sidebar-open {
        padding-right: 300px;
    }
}
/* 拖动条样式 */
.drag-handle {
    height: 5px;
    background: #adb5bd;
    cursor: ns-resize;
    margin: 5px 0;
}

/* 价格卡片 */
.price-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.price-card .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.price-card .card-body {
    background-color: #fff;
}

/* 增强版加载遮罩层样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    /* 移除 pulse 动画，避免与淡入淡出冲突 */
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* 增强版圆形加载动画 */
.circle-loader {
    width: 50px;
    height: 50px;
    position: relative;
    /* animation: pulse 2s infinite; */ /* This was removed in a previous step */
}
.circle-loader:before,
.circle-loader:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
}
.circle-loader:before {
    width: 100%;
    height: 100%;
    border: 5px solid rgba(13, 110, 253, 0.1);
}
.circle-loader:after {
    width: 100%;
    height: 100%;
    border: 5px solid transparent;
    border-top-color: #0d6efd;
    border-right-color: #0d6efd;
    animation: spin 1s linear infinite;
}

/* 动画效果 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* 修复Select2在模态框中的样式 */
.select2-container--bootstrap-5 {
    z-index: 1060 !important; /* 确保高于模态框的z-index(1050) */
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

/* 保持原有阴影效果 */
.select2-container--bootstrap-5 .select2-selection.select-elevated {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.select2-dropdown {
    max-height: min(400px, 70vh) !important;
    overflow-y: auto;
}

/* 控制选择结果容器 */
.select2-container--default .select2-selection--multiple {
    max-height: 100px;  /* 控制最大高度 */
    max-width: 100%;
    overflow-y: auto !important;  /* 超限时垂直滚动 */
    white-space: normal !important;  /* 允许自然换行 */
}

/* 单个选项样式 */
.select2-selection__choice {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 全选状态特殊样式 */
.select2-selection__choice[title^="已选择"] {
    background-color: #e6f7ff !important;
    border-color: #91d5ff !important;
}
.select2-selection__choice__remove {
    display: inline-block !important; /* 强制显示 */
    color: #999 !important; /* 设置可见颜色 */
    margin-right: 5px !important;
}

/* 调整 Select2 搜索框宽度 */
.select2-container--default .select2-search--inline .select2-search__field {
    height: 100% !important; /* 让搜索框占满可用空间 */
    min-height: 40px; /* 设置最小宽度，防止太窄 */
}

#billListTable {
    table-layout: fixed;  /* 关键修复：固定表格布局 */
    width: 100%;
}

#billListTable td, #billListTable th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 单号单元格特殊处理 */
#billListTable .tracking-number {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    color: #0d6efd;
    text-decoration: underline dotted;
}

/* 悬停时显示完整内容 */
#billListTable .tracking-number:hover {
    position: absolute;
    background: white;
    z-index: 100;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    max-width: none;
    white-space: normal;
}

/* 单选按钮样式调整 */
#billListTable input[type="radio"] {
    transform: scale(0.9);
    margin-top: 0;
}

#billListTable tr:hover input[type="radio"] {
    border-color: #0d6efd;
}

/* 调整第一列宽度 */
#billListTable td:first-child, 
#billListTable th:first-child {
    width: 40px !important;
    padding-right: 0 !important;
}

/* 确保输入框与操作选项对齐 */
#operationSelection .d-flex {
    align-items: center; /* 垂直居中 */
}

#adjustAmountContainer {
    transition: all 0.3s ease; /* 平滑显示/隐藏效果 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #operationSelection .d-flex {
        flex-direction: column;
    }
    #adjustAmountContainer {
        width: 100% !important;
        margin-top: 10px;
    }
}

.simple-region-card {
  display: inline-flex;      /* 改用flex布局 */
  align-items: center;      /* 垂直居中 */
  justify-content: center;  /* 水平居中 */
  height: 100%;             /* 继承td高度 */
  padding: 6px 6px;
  background: #f0f4ff;
  border-radius: 6px;
  border-left: 3px solid #4e73df;
  font-size: 10px;
  font-weight: 300;
  color: #2d3748;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.pagination-wrapper {
    grid-row: 2;
    margin-top: 2rem;
}

/* 系统设置主题色 */
.bg-system {
    background-color: #4e73df;
}
.btn-system {
    background-color: #4e73df;
    color: white;
}
.btn-system:hover {
    background-color: #3a56c0;
    color: white;
}
.btn-outline-system {
    border-color: #4e73df;
    color: #4e73df;
}
.btn-outline-system:hover {
    background-color: #4e73df;
    color: white;
}
.btn-system-danger {
    background-color: #e74a3b;
    color: white;
}
.alert-system {
    background-color: #f8f9fc;
    border-left: 4px solid #4e73df;
}

/* 导航栏样式 */
.nav-pills .nav-link.active {
    background-color: #f8f9fc;
    color: #4e73df;
    border-left: 3px solid #4e73df;
    font-weight: 600;
}

/* 确认面板样式 */
.confirmation-panel {
    background-color: #f8f9fa;
    padding: 1.25rem;
    border-radius: 0.35rem;
}

.price-adjustment-highlight {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
}

.adjustment-header {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 12px;
    color: #333;
}

.adjustment-row {
    display: flex;
    margin: 10px 0;
    align-items: flex-start; /* 顶部对齐 */
}

.adjustment-label {
    width: 80px; /* 固定标签宽度 */
    flex-shrink: 0; /* 防止压缩 */
    color: #666;
}

.adjustment-values {
    flex: 1; /* 占据剩余空间 */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.adjustment-value {
    font-weight: 500;
}

.highlight {
    color: #0a58ca;
    font-weight: bold;
}

.highlight-bold {
    font-weight: bold;
    font-size: 1.1em;
}

.text-success {
    color: #198754;
}

.text-danger {
    color: #dc3545;
}

.adjustment-items {
    display: flex;
    align-items: center;
    gap: 8px;
}

.adjustment-item {
    font-weight: bold;
    color: #0a58ca;
}

.adjustment-connector {
    color: #666;
}

/* 价格调整增强选中状态 */
.btn-check:checked + .btn {
    background-color: #0d6efd;
    color: white;
    box-shadow: 0 0.2rem 0.5rem rgba(13, 110, 253, 0.3);
    position: relative;
}

/* 添加动画下划线 */
.btn-check:checked + .btn::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: indianred;
    border-radius: 3px;
    animation: underline 0.3s ease-out;
}

@keyframes underline {
    from { width: 0; opacity: 0; }
    to { width: 80%; opacity: 1; }
}

.pulse-animation-strong {
    /* 合并定位和动画的transform */
    transform: translate(10px, -50%) scale(1);
    animation: pulseStrong 1.5s infinite;
    z-index: 1;
    box-shadow: 0 0 0 rgba(220, 53, 69, 0.4);
}

@keyframes pulseStrong {
    0% {
        transform: translate(10px, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        transform: translate(10px, -50%) scale(1.3); /* 缩放效果 */
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: translate(10px, -50%) scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* 列表样式确认信息 */
.confirmation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-list li {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.confirmation-list li:last-child {
    border-bottom: none;
}

.confirmation-list .label {
    width: 100px;
    color: #6c757d;
    font-weight: 500;
    flex-shrink: 0;
}

.confirmation-list .value {
    flex-grow: 1;
    word-break: break-word;
}

.amount-value {
    color: #d63351;
    font-weight: bold;
    font-size: 0.8em;
}

/* 模态框微调 */
#costPaymentConfirmModal .modal-header {
    border-bottom: 1px solid #dee2e6;
}

#costPaymentConfirmModal .modal-footer {
    border-top: 1px solid #dee2e6;
}

/* 彩色竖条样式 */
#shippingOrderContextBody tr.status-red-row {
    position: relative;
}

#shippingOrderContextBody tr.status-red-row::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 2px;
    bottom: 2px;
    width: 6px;
    border-radius: 3px;
    background-color: rgba(236, 190, 192, 0.7);
}

/* 彩色竖条样式 */
#shippingOrderContextBody tr.status-blue-row {
    position: relative;
}

#shippingOrderContextBody tr.status-blue-row::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 2px;
    bottom: 2px;
    width: 6px;
    border-radius: 3px;
    background-color: rgba(154, 195, 234, 0.7);
}

/* 彩色竖条样式 */
#shippingOrderContextBody tr.status-yellow-row {
    position: relative;
}

#shippingOrderContextBody tr.status-yellow-row::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 2px;
    bottom: 2px;
    width: 6px;
    border-radius: 3px;
    background-color: rgba(245, 230, 69, 0.7);
}

/* ==================== 账单取消功能样式 ==================== */

/* 账单取消模态框样式 */
#billCancelModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-bottom: none;
}

#billCancelModal .modal-title {
    font-weight: 600;
}

/* 搜索区域样式 */
#billCancelModal .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#billCancelModal .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    transition: all 0.3s ease;
}

#billCancelModal .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* 表格样式 */
#billCancelListTable {
    font-size: 0.875rem;
}

#billCancelListTable th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

#billCancelListTable td {
    vertical-align: middle;
    border-bottom: 1px solid #f1f3f4;
}

#billCancelListTable tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

/* 单选按钮样式 */
#billCancelListTable .form-check-input[type="radio"] {
    cursor: pointer;
    transition: all 0.2s ease;
}

#billCancelListTable .form-check-input[type="radio"]:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

#billCancelListTable .form-check-input[type="radio"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#billCancelListTable .form-check-input[type="radio"]:checked::after {
    background-color: white;
}

/* 复制按钮样式 */
#billCancelListTable .btn-outline-secondary {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

#billCancelListTable .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: scale(1.05);
}

/* 状态徽章样式 */
#billCancelListTable .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
}

/* 取消操作区域样式 */
#billCancelOperation {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

#billCancelOperation h6 {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 1rem;
}

#billCancelOperation .alert {
    border: none;
    background-color: #fff3cd;
    color: #856404;
    border-radius: 0.375rem;
}

/* 表单控件样式 */
#billCancelOperation .form-select:focus,
#billCancelOperation .form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#billCancelOperation .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* 字符计数样式 */
#billCancelOperation .form-text {
    color: #6c757d;
    font-size: 0.75rem;
}

/* 按钮样式 */
#billCancelOperation .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

#billCancelOperation .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

#billCancelOperation .btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

#billCancelOperation .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* 分页样式 */
#billCancelPagination .pagination {
    margin-bottom: 0;
}

#billCancelPagination .page-link {
    color: #dc3545;
    border-color: #dee2e6;
    transition: all 0.2s ease;
}

#billCancelPagination .page-link:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#billCancelPagination .page-item.active .page-link {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* 页码跳转输入框样式 */
#billCancelPagination #pageJumpInput {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

#billCancelPagination #pageJumpInput:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    outline: none;
}

#billCancelPagination #pageJumpInput::-webkit-outer-spin-button,
#billCancelPagination #pageJumpInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#billCancelPagination #pageJumpInput[type=number] {
    -moz-appearance: textfield;
}

/* 跳转按钮样式 */
#billCancelPagination .btn-outline-primary {
    border-color: #dc3545;
    color: #dc3545;
    transition: all 0.2s ease;
}

#billCancelPagination .btn-outline-primary:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* 分页文字样式 */
#billCancelPagination .text-muted {
    color: #6c757d !important;
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #billCancelModal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    #billCancelListTable {
        font-size: 0.75rem;
    }
    
    #billCancelListTable th,
    #billCancelListTable td {
        padding: 0.5rem 0.25rem;
    }
    
    #billCancelOperation {
        padding: 1rem;
    }
    
    #billCancelOperation .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #billCancelOperation .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* 移动端分页样式调整 */
    #billCancelPagination .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    #billCancelPagination .page-item {
        margin-bottom: 0.25rem;
    }
    
    #billCancelPagination .d-flex {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    #billCancelPagination #pageJumpInput {
        width: 80px !important;
    }
}

/* 加载状态样式 */
#billCancelSearchBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 空状态样式 */
#billCancelList .text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* 选择状态指示 */
#billCancelListTable tr.selected {
    background-color: #e3f2fd !important;
    border-left: 4px solid #2196f3;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#billCancelOperation {
    animation: fadeInUp 0.3s ease-out;
}

/* 自定义SweetAlert样式 */
.custom-swal-popup {
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.custom-swal-popup .swal2-title {
    color: #dc3545;
    font-weight: 600;
}

.custom-swal-popup .swal2-html-container {
    text-align: left;
    margin: 1rem 0;
}

.custom-swal-popup .swal2-html-container p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.custom-swal-popup .swal2-html-container p:last-child {
    margin-bottom: 0;
}

/* 确认框中的用户操作汇总样式 */
.custom-swal-popup .swal2-html-container ul {
    list-style: none;
    padding: 0;
}

.custom-swal-popup .swal2-html-container ul li {
    margin-bottom: 8px;
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

.custom-swal-popup .swal2-html-container ul li:last-child {
    margin-bottom: 0;
}

.custom-swal-popup .swal2-html-container hr {
    border-color: #dee2e6;
    margin: 10px 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .custom-swal-popup {
        width: 95% !important;
        margin: 0 auto;
    }
    
    .custom-swal-popup .swal2-html-container {
        font-size: 0.9rem;
    }
}

/* Select2 样式优化 */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
    color: #495057;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.select2-container--default .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 8px 12px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd;
}

/* 确保Select2在模态框中正确显示 */
.select2-container {
    z-index: 9999;
}

/* 用户列表表格优化样式 */
.user-list-table {
    border-collapse: separate;
    border-spacing: 0;
}

/* 余额/返点列：使用语义类，避免列顺序改变导致样式串位 */
.user-list-table th.balance-col,
.user-list-table td.balance-col {
    position: relative;
}

/* 悬停时效果占位（如需可扩展） */
.user-list-table tbody tr:hover td.balance-col {}

/* 余额和返点列的样式优化 */
.user-list-table td.balance-col,
.user-list-table td.spread-col {
    font-weight: 500;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* 余额列样式 */
.user-list-table td.balance-col {
    color: inherit;
    text-shadow: none;
}

/* 返点列样式 */
.user-list-table td.spread-col {
    color: inherit;
    text-shadow: none;
}

/* 表头样式优化（与 table-light 保持一致） */
.user-list-table thead th.balance-col,
.user-list-table thead th.spread-col {
    font-weight: 600;
    color: #495057 !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .user-list-table th.balance-col,
    .user-list-table td.balance-col {
        padding-left: 0.75rem !important;
    }
    
    .user-list-table td.balance-col,
    .user-list-table td.spread-col {
        font-size: 0.85rem;
    }
}

/* Footer 样式 */
.footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 0.5rem 0 !important; /* 减小上下内边距 */
}

.footer p {
    margin-bottom: 0.25rem; /* 减小段落间距 */
    font-size: 0.75rem; /* 减小字体大小 */
}

.footer a {
    color: #6c757d !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #495057 !important;
    text-decoration: underline;
}

/* 确保页面内容区域有足够的最小高度，为footer留出空间 */
body {
    min-height: 100vh;
    padding-bottom: 60px; /* 减小底部间距 */
}

/* 主要内容区域 */
.container {
    flex: 1;
}

/* 响应式footer */
@media (max-width: 576px) {
    .footer {
        padding: 0.4rem 0 !important; /* 移动端更小的内边距 */
    }
    
    .footer p {
        font-size: 0.7rem; /* 移动端更小的字体 */
        margin-bottom: 0.2rem;
    }
    
    body {
        padding-bottom: 50px; /* 移动端更小的底部间距 */
    }
}
