/* 业务管理页面样式 */
.business-main {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow: auto;
}

.business-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.business-header h2 {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.business-actions {
    display: flex;
}

.plan-btn,
.import-btn,
.export-btn {
    height: 36px;
    padding: 0 15px;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    margin-left: 10px;
    border: none;
    cursor: pointer;
}

.plan-btn {
    background-color: #2fb3ff;
}

.import-btn {
    background-color: #52c41a;
}

.export-btn {
    background-color: #722ed1;
}

.business-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.business-tabs .tab {
    padding: 10px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.business-tabs .tab.active {
    color: #2fb3ff;
}

.business-tabs .tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-color: #2fb3ff;
}

.business-overview {
    display: flex;
    margin-bottom: 20px;
}

.overview-card {
    flex: 1;
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 15px;
    margin-right: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.overview-card:last-child {
    margin-right: 0;
}

.overview-card:nth-child(1) {
    border-left: 3px solid #1890ff;
}

.overview-card:nth-child(2) {
    border-left: 3px solid #52c41a;
}

.overview-card:nth-child(3) {
    border-left: 3px solid #faad14;
}

.overview-card:nth-child(4) {
    border-left: 3px solid #f5222d;
}

.card-title {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card-value {
    font-size: 24px;
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-compare {
    font-size: 12px;
    color: #999;
}

.up {
    color: #52c41a;
}

.down {
    color: #f5222d;
}

.performance-chart {
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
    padding: 20px;
    margin-bottom: 20px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.time-filter {
    display: flex;
}

.time-btn {
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    cursor: pointer;
    margin-left: 5px;
}

.time-btn.active {
    background-color: #e6f7ff;
    color: #1890ff;
    border-color: #91d5ff;
}

.chart-container {
    height: 200px;
    position: relative;
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    height: 180px;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
}

.chart-bar {
    width: 30px;
    background-color: #1890ff;
    border-radius: 3px 3px 0 0;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 10px;
}

.chart-labels span {
    font-size: 12px;
    color: #999;
    text-align: center;
    width: 30px;
}

.business-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 240px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    margin-right: 10px;
}

.search-btn {
    height: 36px;
    padding: 0 15px;
    background-color: #2fb3ff;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.filter-items {
    display: flex;
}

.filter-item {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.filter-item span {
    font-size: 14px;
    color: #666;
    margin-right: 10px;
}

.filter-item select {
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
    color: #333;
    min-width: 120px;
}

.business-table {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.business-table table {
    width: 100%;
    border-collapse: collapse;
}

.business-table th,
.business-table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.business-table th {
    color: #666;
    font-weight: normal;
    background-color: #f9f9f9;
}

.business-table td {
    color: #333;
}

.status-completed,
.status-in-progress,
.status-not-started {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 12px;
}

.status-completed {
    background-color: #f6ffed;
    color: #52c41a;
}

.status-in-progress {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-not-started {
    background-color: #f9f0ff;
    color: #722ed1;
}

.action-links {
    display: flex;
}

.action-links a {
    margin-right: 10px;
    color: #2fb3ff;
    text-decoration: none;
}

.action-links a:hover {
    text-decoration: underline;
}

.pause-link {
    color: #fa8c16 !important;
}

.start-link {
    color: #52c41a !important;
}

.report-link {
    color: #722ed1 !important;
}

.business-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.page, .prev-page, .next-page {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.page.active {
    background-color: #2fb3ff;
    color: #fff;
    border-color: #2fb3ff;
}

.page-info {
    margin-left: 15px;
    font-size: 14px;
    color: #999;
}

/* 响应式调整 */
@media screen and (max-width: 1200px) {
    .business-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .business-actions {
        margin-top: 15px;
    }
    
    .business-search {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-items {
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .filter-item {
        margin-left: 0;
        margin-right: 20px;
        margin-bottom: 10px;
    }
    
    .business-overview {
        flex-wrap: wrap;
    }
    
    .overview-card {
        flex: 1 0 45%;
        margin-bottom: 15px;
    }
    
    .business-table {
        overflow-x: auto;
    }
} 