/* css/channel-order.css */
/* 渠道分配顺序页面专用样式 */

/* 表格样式优化 */
.channel-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.channel-order-table th {
    padding: 12px 8px;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 12px;
    color: #495057;
    text-align: left;
    white-space: nowrap;
}

.channel-order-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

/* 员工信息列 */
.employee-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: 120px;
}

.employee-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.employee-name {
    font-weight: 500;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 位置调整按钮 */
.position-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.position-badge {
    width: 28px;
    height: 28px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* 输入框样式 */
.weight-input,
.limit-input {
    width: 60px !important;
    padding: 6px 8px !important;
    font-size: 13px !important;
    height: 32px !important;
}

/* 每日上限说明文字 */
.limit-help {
    font-size: 11px;
    color: #6c757d;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
}

/* 状态标签 */
.status-cell {
    white-space: nowrap;
    min-width: 60px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 4px;
    white-space: nowrap;
}

.action-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #e9ecef;
    color: #212529;
}

.action-btn.remove:hover {
    background: #f8d7da;
    color: #dc3545;
}

/* 添加员工区域 */
.add-employee-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    margin-top: 20px;
}

.add-employee-section h4 {
    margin-bottom: 12px;
    font-size: 14px;
    color: #495057;
}

.add-employee-controls {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.employee-select {
    flex: 1;
    min-width: 150px;
}

.add-employee-btn {
    padding: 8px 16px;
    height: 38px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 空状态提示 */
.empty-employee-list {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* 今日任务数徽章 */
.today-count-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

/* 按钮容器 */
.actions-row {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.actions-row .btn-secondary {
    padding: 8px 16px;
    font-size: 13px;
    height: 36px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .channel-order-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .employee-cell {
        min-width: 100px;
    }
    
    .add-employee-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .add-employee-btn {
        width: 100%;
    }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
    .channel-order-table th {
        background: #2d3748;
        color: #e2e8f0;
        border-color: #4a5568;
    }
    
    .channel-order-table td {
        border-color: #4a5568;
    }
    
    .employee-name {
        color: #e2e8f0;
    }
    
    .position-badge {
        background: #4299e1;
    }
    
    .action-btn {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .action-btn:hover {
        background: #4a5568;
    }
    
    .add-employee-section {
        background: #2d3748;
    }
    
    .add-employee-section h4 {
        color: #e2e8f0;
    }
    
    .status-badge.active {
        background: #22543d;
        color: #9ae6b4;
    }
    
    .status-badge.inactive {
        background: #742a2a;
        color: #feb2b2;
    }
    
    .today-count-badge {
        background: #2a4365;
        color: #90cdf4;
    }
}