/* 容器样式 */
.statistics_container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.statistics_section {
    margin-bottom: 30px;
}

/* 标题和按钮样式 */
.statistics_title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #1e293b;
}

/* 统一按钮基础样式 */
.button_base {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 36px;
}

.export_button {
    float: right;
    padding: 6px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.export_button:hover {
    background-color: #45a049;
    color: #fff;
}

.incentive_button {
    float: right;
    padding: 6px 12px;
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.incentive_button:hover {
    background-color: #b91c1c;
    color: #fff;
}

/* 卡片样式 */
.statistics_card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.statistics_card h3 {
    margin: 0 0 15px 0;
    color: #334155;
    font-size: 1.2em;
}

/* 网格布局 */
.statistics_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.statistics_item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.statistics_label {
    color: #64748b;
    font-size: 0.9em;
}

.statistics_value {
    color: #1e293b;
    font-size: 1.5em;
    font-weight: bold;
}

/* 总计奖励样式 */
.total_reward {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

/* 表格样式 */
.handler_stats_table {
    overflow-x: auto;
}

.handler_stats_table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.handler_stats_table th,
.handler_stats_table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.handler_stats_table th {
    background-color: #f8fafc;
    color: #475569;
    font-weight: 600;
}

.handler_stats_table tr:hover {
    background-color: #f8fafc;
}

/* 统计页面样式 */
.statistics_container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.statistics_section {
    margin-bottom: 30px;
}

.statistics_title {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.statistics_card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.statistics_card h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.statistics_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.statistics_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.statistics_label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.statistics_value {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .statistics_grid {
        grid-template-columns: 1fr;
    }
    
    .statistics_card {
        padding: 15px;
    }
    
    .statistics_value {
        font-size: 1.2em;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 300px;
}

.month-picker-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.month-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cancel_button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background-color: #6c757d;
    color: white;
    cursor: pointer;
}

.cancel_button:hover {
    background-color: #5a6268;
}