/* 订单管理页面专属样式 */

/* 页面标题 */
.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
}

.page-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar .form-select,
.filter-bar .form-control {
    min-width: 140px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #e2e3e5;
    color: #41464b;
}

.status-refunded {
    background: #f8d7da;
    color: #842029;
}

/* 订单号样式 */
.order-no {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.82rem;
    /* color: #07C160;
    background: #f0fff4; */
    padding: 2px 6px;
    border-radius: 4px;
}

/* 表格优化 */
.orders-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.orders-table tbody td {
    vertical-align: middle;
    font-size: 0.88rem;
    color: #333;
}

.orders-table tbody tr:hover {
    background-color: #f0fff4;
}

/* 金额样式 */
.amount-text {
    font-weight: 600;
    color: #e74c3c;
}

/* 空状态 */
.empty-state {
    text-align: center;
    color: #999;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 12px;
}

/* 加载状态 */
.loading-state {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
}

/* 分页信息 */
.pagination-info-text {
    color: #6c757d;
    font-size: 0.85rem;
}

/* 订单详情弹窗 */
.order-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.order-modal-overlay.show {
    display: flex;
}

.order-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 560px;
    max-width: 90vw;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.order-modal-header h5 {
    margin: 0;
    font-weight: 700;
    color: #1a1a2e;
}

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

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6c757d;
    font-size: 0.88rem;
    min-width: 80px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.order-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
}

/* 统计卡片 */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-icon.orders-icon {
    background: linear-gradient(135deg, #07C160, #0ECB81);
}

.stat-icon.revenue-icon {
    background: linear-gradient(135deg, #e74c3c, #f97316);
}

.stat-icon.pending-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.stat-icon.paid-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.stat-change {
    font-size: 0.8rem;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}
