/* 汇率监控系统 - 样式文件 */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

/* 表格样式 */
.table {
    background-color: white;
}

.table thead th {
    background-color: #495057;
    color: white;
    font-weight: 600;
    border: none;
}

/* 状态颜色 */
.status-normal {
    color: #28a745;
    font-weight: bold;
}

.status-pending {
    color: #6c757d;
}

.status-warning {
    color: #ffc107;
    font-weight: bold;
}

.status-error {
    color: #dc3545;
    font-weight: bold;
}

/* 进度条容器 */
.progress {
    height: 25px;
}

.progress-bar {
    font-size: 14px;
    line-height: 25px;
}

/* 卡片样式 */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* 按钮间距 */
.btn + .btn {
    margin-left: 5px;
}

/* 模态框样式 */
.modal-header.bg-danger {
    border-bottom: none;
}

/* DataTables自定义 */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.25rem 0.5rem;
}

table.dataTable tbody tr {
    cursor: pointer;
}

table.dataTable tbody tr:hover {
    background-color: #f1f3f5;
}

/* 小文本 */
.small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 地址显示 */
.address-short {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #495057;
}

/* 月度报表表格 */
.monthly-table {
    width: 100%;
    margin-bottom: 1rem;
}

.monthly-table thead th {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px;
}

.monthly-table tbody td {
    padding: 8px;
    border: 1px solid #dee2e6;
}

.monthly-table .site-row {
    background-color: #e7f1ff;
    font-weight: bold;
}

.monthly-table .channel-row {
    padding-left: 30px;
}

.monthly-table .total-row {
    background-color: #fff3cd;
    font-weight: bold;
    font-size: 1.1em;
}

/* 数值右对齐 */
.text-right {
    text-align: right;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

/* 数据总览表格样式 */
#summaryTable {
    font-size: 0.9rem;
    white-space: nowrap;
    border-collapse: collapse;
}

#summaryTable thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: bold;
    padding: 10px 6px;
    background-color: #4a5568;
    color: #ffffff;
    border: 1px solid #718096;
}

#summaryTable tbody td {
    padding: 8px 6px;
    vertical-align: middle;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    background-color: #ffffff;
    color: #1a202c;
}

#summaryTable .small {
    font-size: 0.9rem;
}

/* 站点分隔线 */
#summaryTable .site-separator {
    border-left: 3px solid #495057 !important;
}

/* 数据类型样式 - 支付/收U/汇率 - 加深颜色提高对比度 */
#summaryTable .data-revenue {
    color: #1e3a5f;
    font-weight: 600;
}

#summaryTable .data-usdt {
    color: #0d6944;
    font-weight: 600;
}

#summaryTable .data-rate {
    color: #b45309;
    font-weight: 600;
}

#summaryTable .data-total-revenue {
    color: #6b21a8;
    font-weight: 700;
}

/* 站点汇总表格样式 */
#siteSummaryTable {
    max-width: 600px;
    margin: 0 auto;
}

#siteSummaryTable thead th {
    background-color: #343a40;
    color: #ffffff;
    font-weight: bold;
}

#siteSummaryTable tbody td {
    padding: 8px 12px;
    vertical-align: middle;
}

/* 进度日志样式 */
#progress_log {
    max-height: 500px;
    overflow-y: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

#progress_log::-webkit-scrollbar {
    width: 8px;
}

#progress_log::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#progress_log::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#progress_log::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 超小按钮 */
.btn-xs {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 0.2rem;
}

.btn-xs + .btn-xs {
    margin-left: 3px;
}

/* 已删除数据样式 */
.deleted-row {
    background-color: #fff5f5 !important;
    opacity: 0.8;
}

/* 筛选链接样式 */
#usdtTable a.text-dark:hover {
    text-decoration: underline;
    color: #0d6efd !important;
}

/* 相对日期按钮选中状态 */
.relative-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }

    .table {
        font-size: 0.875rem;
    }

    #summaryTable {
        font-size: 0.7rem;
    }
}
