/**
 * 全局样式设置
 * - 使用无衬线字体族提高可读性
 * - 设置浅灰色背景和深色文字，提供良好的对比度
 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    padding: 0;
}

/**
 * 容器布局
 * - 限制最大宽度确保在大屏幕上的可读性
 * - 设置水平居中和适当的内边距
 */
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 8px;
}

/**
 * 区域和卡片布局
 * - 统一的区域间距和圆角设置
 * - 使用阴影提供层次感
 */
.section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.5;
}

.assets-container {
    background: white;
    border-radius: 0;
    padding: 12px 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/**
 * 表格布局和样式
 * - 使用 flex 布局实现固定列宽
 * - 处理文本溢出和滚动
 * - 隐藏滚动条但保持功能
 */
.table-responsive {
    margin: 0;
    padding: 0;
    padding-right: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.table-responsive::-webkit-scrollbar {
    display: none;
}

.table {
    margin-bottom: 0;
    min-width: 100%;
    width: auto;
}

/* 表格行和单元格基础布局 */
.table tr {
    display: flex;
    width: 100%;
}

.table th,
.table td {
    padding: 6px 12px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/**
 * 列宽分配
 * - 账户类型列：固定 80px
 * - 金额列：固定 100px
 * - 时间列：自适应剩余空间
 */
.table th:first-child,
.table td:first-child {
    flex: 0 0 80px;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    flex: 0 0 100px;
}

.table th:last-child,
.table td:last-child {
    flex: 1;
    padding-right: 12px;
}

/**
 * 表格样式定制
 * - 表头使用蓝色突出显示
 * - 金额列居中对齐
 * - 时间列右对齐
 */
.table > thead > tr > th {
    color: #0d6efd;
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid #edf2f7;
    background-color: #f8f9fa;
    padding: 8px 12px;
}

.table > thead > tr > th:nth-child(2),
.table > tbody > tr > td:nth-child(2) {
    text-align: center;  /* 金额列居中对齐 */
}

.table > thead > tr > th:last-child,
.table > tbody > tr > td:last-child {
    text-align: right;  /* 时间列靠右对齐 */
    padding-right: 12px;
}

/* 确保其他列保持左对齐 */
.table > thead > tr > th,
.table > tbody > tr > td {
    text-align: left;
    padding: 6px 12px;
}

/* 表格内容样式 */
.table > tbody > tr > td,
.orders-table td {
    font-size: 0.85rem;
    color: #2c3e50;
    padding: 6px 12px;
    border-bottom: 1px solid #edf2f7;
}

.table > tbody > tr:last-child > td {
    border-bottom: none;
}

/* 汇总信息样式 */
.summary {
    margin: 16px 0 12px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
    padding-right: 12px;
}

.summary p {
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-amount {
    color: #007bff;
    font-weight: 500;
    padding-right: 12px;
}

.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: normal;
}

/**
 * 响应式布局调整
 * - 小屏幕下减小内边距和间距
 * - 调整字体大小提高可读性
 * - 优化表格在移动设备上的显示
 */
@media (max-width: 576px) {
    .section {
        margin-bottom: 20px;
    }

    .assets-container,
    .card {
        padding: 12px;
    }

    .asset-item {
        padding: 6px 10px;
        gap: 12px;
    }

    .asset-value,
    .asset-frozen,
    .table td,
    .table th,
    .summary p {
        font-size: 0.85rem;
    }
}

/* Header 样式 */
.app-header {
    background-color: #fff;
    padding: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.app-title {
    font-size: 1rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    padding-right: 40px;
    line-height: 1.5;
}

/* 语言切换器样式 */
.language-switcher {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.language-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 8px;
    min-width: 150px;
}

.language-dropdown.show {
    display: block;
}

.language-dropdown a {
    display: block;
    padding: 6px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.language-dropdown a:hover {
    background-color: #f0f0f0;
}

/* 语言切换按钮样式 */
#languageBtn {
    padding: 3px 6px;
    font-size: 0.9rem;
    line-height: 1;
    border-radius: 4px;
}

/* 动画效果 */
.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

/* Tab 样式 */
.tab-header {
    display: flex;
    gap: 1px;
    margin: -12px -12px 0;
    background-color: #edf2f7;
    padding: 1px 1px 0;
    border-radius: 0;
}

.tab-btn {
    flex: 1;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.tab-btn:first-child {
    border-radius: 0;
}

.tab-btn:last-child {
    border-radius: 0;
}

.tab-btn.active {
    background: white;
    color: #2c3e50;
    font-weight: 500;
}

.tab-content {
    display: none;
    padding-top: 1px;
}

.tab-content.active {
    display: block;
}

/* 合计资产样式 */
.total-asset {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(80px, auto);
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    gap: 16px;
}

.total-asset-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.total-asset-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
    text-align: right;
}

/**
 * 订单记录区域样式
 * - 使用白色背景和阴影提供视觉分离
 * - 标签页使用浅色背景区分
 * - 表格内容支持横向滚动
 */
.orders-section {
    margin-top: 0;
    background: white;
    border-radius: 0;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.orders-tabs {
    display: flex;
    gap: 1px;
    margin: -12px -12px 0;
    background-color: #edf2f7;
    padding: 1px 1px 0;
    border-radius: 0;
}

.orders-tab-btn {
    flex: 1;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.orders-tab-btn:first-child {
    border-radius: 0;
}

.orders-tab-btn:last-child {
    border-radius: 0;
}

.orders-tab-btn.active {
    background: white;
    color: #2c3e50;
    font-weight: 500;
}

.orders-content {
    padding-top: 1px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.orders-content::-webkit-scrollbar {
    display: none;
}

.orders-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    margin-top: 16px;
}

.orders-table thead th {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #edf2f7;
    text-align: left;
}

.orders-table thead th:first-child {
    padding-left: 12px;
}

.orders-table thead th:last-child {
    padding-right: 12px;
}

.orders-table tbody td {
    font-size: 0.85rem;
    color: #2c3e50;
    padding: 6px 12px;
    border-bottom: 1px solid #edf2f7;
    background-color: white;
}

.orders-table tbody td:first-child {
    padding-left: 12px;
}

.orders-table tbody td:last-child {
    padding-right: 12px;
}

.orders-table tbody tr:last-child td {
    border-bottom: none;
}

/**
 * 数据展示样式
 * - 使用特定颜色标识不同状态
 * - 盈亏金额使用等宽字体提高可读性
 * - 添加正负值的颜色区分
 */
.success-text {
    color: #28a745;
}

.danger-text {
    color: #dc3545;
}

/* 响应式表格 */
@media (max-width: 768px) {
    .orders-content {
        overflow-x: auto;
    }

    .orders-table {
        min-width: 900px;
    }
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
    padding: 0 12px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.5;
}

.page-btn:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #007bff;
}

.page-info {
    font-size: 0.85rem;
    color: #6c757d;
}

/* 导航栏样式 */
.navbar {
    background-color: #0d6efd !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    padding: 8px;
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 56px;
}

.navbar .container-fluid {
    padding: 0;
}

.navbar-brand {
    font-size: 1rem;
    font-weight: 600;
    color: white !important;
    line-height: 1.5;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 8px;
}

/* 语言切换按钮样式 */
.navbar .btn-outline-primary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* 语言切换下拉菜单 */
.dropdown-menu {
    min-width: 150px;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-item {
    padding: 6px 12px;
    font-size: 0.9rem;
    color: #333;
    border-radius: 4px;
}

.dropdown-item:hover {
    background-color: #f0f0f0;
}

/* 底部按钮样式 */
.bottom-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-block i {
    font-size: 1.25rem;
}

/* 订单布局样式 */
.orders-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: hidden !important;
}

.orders-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.summary-label {
    font-size: 0.85rem;
    color: #6c757d;
    white-space: nowrap;
}

.summary-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #2c3e50;
}

.orders-table-container {
    margin-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.orders-table-container::-webkit-scrollbar {
    display: none;
}

/* 修改表格标题样式 */
.orders-table thead th {
    color: #0d6efd !important;
}

@media (max-width: 576px) {
    .orders-summary {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

@media (max-width: 768px) {
    .orders-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .orders-summary {
        grid-template-columns: 1fr;
    }
}

/* 订单统计区域样式 */
.orders-stats-section {
    margin: 2rem 8px 0;
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.orders-stats-section .orders-tabs {
    display: flex;
    gap: 1px;
    margin: 0;
    background-color: #edf2f7;
    padding: 1px 1px 0;
    border-radius: 0;
}

.orders-stats-section .orders-tab-btn {
    flex: 1;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.orders-stats-section .orders-tab-btn:first-child {
    border-radius: 0;
}

.orders-stats-section .orders-tab-btn:last-child {
    border-radius: 0;
}

.orders-stats-section .orders-tab-btn.active {
    background: white;
    color: #2c3e50;
    font-weight: 500;
}

.orders-stats-section .orders-content {
    padding: 1px 12px;
}

.orders-stats-content .orders-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.orders-stats-content .orders-table-container {
    width: 100%;
    overflow-x: auto;
    background-color: #f8f9fa;
    border: 1px solid #edf2f7;
}

@media (max-width: 768px) {
    .orders-stats-section {
        margin: 1rem 8px 0;
    }

    .orders-stats-content {
        padding: 8px;
    }

    .orders-stats-content .orders-layout {
        gap: 12px;
    }
}

/* 带单奖励表格样式覆盖 */
#ordersRContent .orders-table {
    min-width: auto;
    width: 100%;
}

#ordersRContent .orders-table th,
#ordersRContent .orders-table td {
    width: 33.33%;
    white-space: nowrap;
}

#ordersRContent .orders-table th:first-child,
#ordersRContent .orders-table td:first-child {
    text-align: left;
    padding-left: 24px;
}

#ordersRContent .orders-table th:nth-child(2),
#ordersRContent .orders-table td:nth-child(2) {
    text-align: left;
    padding-left: 24px;
}

#ordersRContent .orders-table th:last-child,
#ordersRContent .orders-table td:last-child {
    text-align: left !important;
}

/* 订单tab按钮样式 */
.orders-section .orders-tab-btn,
.orders-stats-section .orders-tab-btn {
    flex: 1;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.orders-section .orders-tab-btn.active,
.orders-stats-section .orders-tab-btn.active {
    background: white;
    color: #2c3e50;
    font-weight: 500;
}

@media (max-width: 768px) {
    #ordersRContent .orders-table {
        min-width: auto;
        width: 100%;
    }
}

/**
 * 弹窗组件样式
 * - 使用固定定位覆盖整个视口
 * - 半透明背景提供遮罩效果
 * - 内容区域使用圆角和阴影
 * - 添加淡入动画提升用户体验
 */
.doubt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.doubt-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.doubt-modal-content {
    background: white;
    width: 90%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.doubt-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doubt-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.doubt-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
}

.doubt-modal-close:hover {
    color: #2c3e50;
}

.doubt-modal-body {
    padding: 24px;
}

.doubt-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.doubt-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.doubt-textarea:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

.doubt-textarea.error {
    border-color: #dc3545;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
}

.error-message.show {
    display: block;
}

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

.doubt-modal-content {
    animation: modalFadeIn 0.3s ease-out;
}

/* 提示消息样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.toast {
    background: white;
    border-radius: 4px;
    padding: 12px 20px;
    margin-bottom: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 250px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #28a745;
}

.toast.error {
    border-left: 4px solid #dc3545;
}

.toast-message {
    font-size: 0.9rem;
    color: #2c3e50;
    margin: 0;
}

.doubt-hint {
    color: #664d03;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 4px;
    padding: 12px 16px;
}

/* 迁移须知弹窗样式 */
.notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.notice-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.notice-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.notice-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.notice-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: #6c757d;
}

.notice-modal-close:hover {
    color: #2c3e50;
}

.notice-modal-body {
    padding: 24px;
    overflow-y: auto;
}

.notice-list {
    margin: 0;
    padding-left: 20px;
}

.notice-list li {
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-left: 8px;
}

.notice-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .notice-modal-content {
        width: 95%;
    }

    .notice-modal-header {
        padding: 16px 20px;
    }

    .notice-modal-body {
        padding: 20px;
    }

    .notice-list li {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }
}

/* 订单统计表格样式 */
#ordersStatsA .orders-table,
#ordersStatsB .orders-table,
#ordersStatsR .orders-table {
    min-width: auto;
    width: 100%;
}

#ordersStatsA .orders-table th,
#ordersStatsB .orders-table th,
#ordersStatsR .orders-table th,
#ordersStatsA .orders-table td,
#ordersStatsB .orders-table td,
#ordersStatsR .orders-table td {
    padding: 8px 12px;
    font-size: 0.85rem;
    white-space: nowrap;
}

#ordersStatsA .orders-table th:first-child,
#ordersStatsB .orders-table th:first-child,
#ordersStatsA .orders-table td:first-child,
#ordersStatsB .orders-table td:first-child {
    min-width: 100px;
}

#ordersStatsA .orders-table th:not(:first-child),
#ordersStatsB .orders-table th:not(:first-child),
#ordersStatsA .orders-table td:not(:first-child),
#ordersStatsB .orders-table td:not(:first-child) {
    min-width: 80px;
    max-width: 120px;
}

#ordersStatsA .orders-table-container,
#ordersStatsB .orders-table-container,
#ordersStatsR .orders-table-container {
    margin: 0;
    padding: 0;
    border: none;
}

/* 理赔表格样式 */
#ordersClaimsContent .orders-table {
    min-width: auto;
}

#ordersClaimsContent .orders-table td {
    width: 33.33%;
}

/* 理赔金额列靠右对齐 */
#ordersClaimsContent .orders-table th:last-child,
#ordersClaimsContent .orders-table td:last-child {
    text-align: right;
    padding-right: 24px;
}

/* 实现盈亏列靠右对齐 */
#ordersClaimsContent .orders-table th:nth-child(2),
#ordersClaimsContent .orders-table td:nth-child(2) {
    text-align: right;
    padding-right: 24px;
}

/* 佣金表格样式 */
#ordersCommissionContent .orders-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

#ordersCommissionContent .orders-table th,
#ordersCommissionContent .orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    white-space: nowrap;
}

#ordersCommissionContent .orders-table th {
    background-color: #f8f9fa;
    font-weight: 500;
    color: #6c757d;
}

#ordersCommissionContent .orders-table td {
    background-color: white;
}

#ordersCommissionContent .orders-table tr:last-child td {
    border-bottom: none;
}

#ordersCommissionContent .orders-table-container {
    overflow-x: auto;
    margin: 0;
    padding: 0;
}

#ordersCommissionContent .orders-table th:first-child,
#ordersCommissionContent .orders-table td:first-child,
#ordersCommissionContent .orders-table th:nth-child(2),
#ordersCommissionContent .orders-table td:nth-child(2) {
    min-width: 100px;
}

#ordersCommissionContent .orders-table th:nth-child(3),
#ordersCommissionContent .orders-table td:nth-child(3),
#ordersCommissionContent .orders-table th:nth-child(4),
#ordersCommissionContent .orders-table td:nth-child(4),
#ordersCommissionContent .orders-table th:nth-child(5),
#ordersCommissionContent .orders-table td:nth-child(5),
#ordersCommissionContent .orders-table th:nth-child(6),
#ordersCommissionContent .orders-table td:nth-child(6) {
    min-width: 80px;
}

#ordersCommissionContent .success-text {
    color: #28a745;
}

#ordersCommissionContent .danger-text {
    color: #dc3545;
}

/* 盈利佣金表格A/B订单编号列正常黑色字体且不加粗 */
#ordersCommissionContent .orders-table td:nth-child(1),
#ordersCommissionContent .orders-table td:nth-child(2) {
    color: #222;
    font-weight: normal;
}

/* 盈利佣金表格A/B实现盈亏列：正数绿色，负数红色 */
#ordersCommissionContent .orders-table td:nth-child(3),
#ordersCommissionContent .orders-table td:nth-child(4) {
    font-family: monospace;
}
#ordersCommissionContent .orders-table td:nth-child(3)[data-value^="-"],
#ordersCommissionContent .orders-table td:nth-child(4)[data-value^="-"] {
    color: #dc3545;
}
#ordersCommissionContent .orders-table td:nth-child(3):not([data-value^="-"]),
#ordersCommissionContent .orders-table td:nth-child(4):not([data-value^="-"]) {
    color: #28a745;
}

/* 隐藏滚动条但保持滚动功能 */
.table-responsive,
.orders-table-container,
.orders-content,
.orders-layout,
.assets-container {
    /* 隐藏滚动条 - Chrome, Safari, Opera */
    &::-webkit-scrollbar {
        display: none;
    }

    /* 隐藏滚动条 - IE, Edge, Firefox */
    -ms-overflow-style: none;
    scrollbar-width: none;

    /* 保持可以横向滚动 */
    overflow-x: auto;
}

/* 重置之前的overflow-x: hidden */
.table-responsive {
    margin: 0;
    padding: 0;
    padding-right: 12px;
}

.assets-container {
    background: white;
    border-radius: 0;
    padding: 12px 0 12px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
    box-sizing: border-box;
}

/* 平仓价格红色 */
.orders-table:not(.reward) td:nth-child(4) {
    color: #dc3545;
}

/* 盈亏颜色 */
.orders-table td:nth-child(7) {
    font-family: monospace;
}

/* 盈亏为负时的颜色 */
.orders-table td[data-value^="-"] {
    color: #dc3545;
}

/* 盈亏为正时的颜色 */
.orders-table:not(.reward) td:not([data-value^="-"]):nth-child(7) {
    color: #28a745;
}

/* 删除之前导致重复的样式 */
.orders-table td:nth-child(7):not(:empty)::before {
    content: none;
}

/* 确认弹窗表格样式 */
.confirm-table-container {
    margin: -8px 0;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.confirm-table td {
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.95rem;
}

.confirm-table tr:last-child td {
    border-bottom: none;
}

.confirm-table td:first-child {
    color: #6c757d;
    font-weight: 500;
}

.confirm-table td:last-child {
    text-align: right;
    font-family: monospace;
    font-weight: 500;
}

.confirm-table .success-text {
    color: #28a745;
}

.confirm-table .danger-text {
    color: #dc3545;
}

.deposit-amount {
    color: #28a745;
    font-weight: bold;
}

.table .deposit-amount,
.table .withdraw-amount {
    text-align: right !important;
}

.table .deposit-amount {
    color: #28a745 !important;
    font-weight: bold !important;
}

.table .withdraw-amount {
    color: #dc3545 !important;
    font-weight: bold !important;
}

.table th[data-i18n="deposits.amount"],
.table th[data-i18n="withdrawals.amount"] {
    text-align: right !important;
}

.orders-table:not(.reward) td:nth-child(2) {
    color: #222;
    font-weight: bold;
}

.orders-table:not(.reward) td:nth-child(3) {
    color: #28a745;
}

.orders-table:not(.reward) th:nth-child(7),
.orders-table:not(.reward) td:nth-child(7) {
    text-align: right !important;
}

.orders-table:not(.reward) td:nth-child(8) {
    color: #dc3545;
}

/* A仓统计表格独立样式 */
#ordersStatsA .orders-table td.a-total-pnl.positive { color: #28a745; }
#ordersStatsA .orders-table td.a-total-pnl.negative { color: #dc3545; }
#ordersStatsA .orders-table td.a-total-commission { color: #dc3545; }
#ordersStatsA .orders-table td.a-total-storage.positive { color: #28a745; }
#ordersStatsA .orders-table td.a-total-storage.negative { color: #dc3545; }
#ordersStatsA .orders-table td.a-total-claim { color: #28a745; }

/* B仓统计表格独立样式 */
#ordersStatsB .orders-table td.b-total-pnl.positive { color: #28a745; }
#ordersStatsB .orders-table td.b-total-pnl.negative { color: #dc3545; }
#ordersStatsB .orders-table td.b-total-commission { color: #dc3545; }
#ordersStatsB .orders-table td.b-total-storage.positive { color: #28a745; }
#ordersStatsB .orders-table td.b-total-storage.negative { color: #dc3545; }
#ordersStatsB .orders-table td.b-total-claim { color: #28a745; }

/* 确认弹窗表格数值正负色彩 */
.confirm-table td.value-positive { color: #28a745; }
.confirm-table td.value-negative { color: #dc3545; }
/* 最终可迁移金额加粗 */
.confirm-table #final_migrate_amount { font-weight: bold; }

/* 优化理赔表格表头列名不换行，仅针对理赔表格 */
#ordersClaimsContent .orders-table th[data-i18n="orders.pnl"],
#ordersClaimsContent .orders-table th[data-i8n="orders.claimsAmount"] {
    white-space: nowrap;
    font-size: 14px;
    padding-left: 6px;
    padding-right: 6px;
    max-width: 80px;
}
