/* 主管端专用样式 */

/* 小组统计 */
.group-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 12px;
    flex-wrap: wrap;
}

.group-stats .stat-item {
    text-align: center;
    min-width: 80px;
}

.group-stats .stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.group-stats .stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.group-stats .stat-divider {
    font-size: 20px;
    opacity: 0.5;
}

/* 表单控件 */
.form-select {
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    color: #333;
    min-width: 150px;
}

.form-select:focus {
    border-color: #1890ff;
    outline: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    border-color: #1890ff;
    outline: none;
}

/* 小组总览 */
.overview-container {
    padding: 20px;
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.employee-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.employee-card:hover {
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.employee-name {
    font-size: 18px;
    font-weight: 600;
    color: #1890ff;
}

.employee-id {
    color: #666;
    font-size: 14px;
}

.employee-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #666;
    font-size: 13px;
}

.stat-value {
    font-weight: 600;
    color: #333;
}

.employee-actions {
    display: flex;
    gap: 10px;
}

/* 员工明细 */
.detail-container {
    padding: 20px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1890ff;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1890ff;
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.2);
}

.timeline-time {
    font-size: 13px;
    color: #999;
    margin-bottom: 5px;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.timeline-action {
    font-weight: 600;
    color: #1890ff;
    margin-bottom: 5px;
}

.timeline-details {
    color: #666;
    font-size: 14px;
}

/* 无效审核 */
.audit-container {
    padding: 20px;
}

.invalid-list {
    display: grid;
    gap: 15px;
}

.invalid-item {
    background: #fff7e6;
    border: 1px solid #ffd591;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.invalid-item.selected {
    background: #e6f7ff;
    border-color: #91d5ff;
}

.invalid-checkbox {
    width: 20px;
    height: 20px;
}

.invalid-info {
    flex: 1;
}

.invalid-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.invalid-phone {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.invalid-reason {
    color: #fa8c16;
    font-size: 13px;
}

.invalid-actions {
    display: flex;
    gap: 10px;
}

/* 签单审批 */
.approval-container {
    padding: 20px;
}

.approval-list {
    display: grid;
    gap: 20px;
}

.approval-item {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 10px;
    padding: 20px;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.approval-customer {
    font-size: 18px;
    font-weight: 600;
    color: #52c41a;
}

.approval-amount {
    font-size: 20px;
    font-weight: 700;
    color: #fa8c16;
}

.approval-info {
    margin-bottom: 15px;
}

.approval-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.approval-label {
    width: 100px;
    color: #666;
}

.approval-value {
    flex: 1;
    color: #333;
}

.approval-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* 审核选项 */
.audit-options {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.audit-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 15px;
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.audit-option:hover {
    border-color: #1890ff;
    background: #f0f7ff;
}

.audit-option input[type="radio"]:checked + span {
    color: #1890ff;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .group-stats {
        gap: 10px;
    }
    
    .group-stats .stat-item {
        min-width: 60px;
    }
    
    .group-stats .stat-value {
        font-size: 20px;
    }
    
    .employee-grid {
        grid-template-columns: 1fr;
    }
    
    .employee-actions {
        flex-direction: column;
    }
    
    .audit-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .approval-actions {
        flex-direction: column;
    }
}

/* 审核功能样式 */
.approval-stats {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1890ff;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: #666;
}

.approval-list {
    display: grid;
    gap: 15px;
}

.approval-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #1890ff;
}

.approval-item.visit {
    border-left-color: #ff9800;
}

.approval-item.sign {
    border-left-color: #4caf50;
}

.approval-item.payment {
    border-left-color: #9c27b0;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.approval-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.approval-type {
    background: #1890ff;
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.approval-type.visit {
    background: #ff9800;
}

.approval-type.sign {
    background: #4caf50;
}

.approval-type.payment {
    background: #9c27b0;
}

.approval-customer {
    font-weight: bold;
    font-size: 16px;
}

.approval-time {
    font-size: 12px;
    color: #999;
}

.approval-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.approval-info {
    flex: 1;
}

.approval-actions {
    margin-left: 20px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.audit-detail {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.detail-row {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    color: #666;
    width: 80px;
    flex-shrink: 0;
}

.detail-value {
    flex: 1;
    font-weight: 500;
}

.approval-filter {
    margin-right: 10px;
}

/* 小组总览样式 */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.overview-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.overview-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 8px;
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

.stat-value {
    font-weight: bold;
    font-size: 16px;
    color: #1890ff;
}

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

.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.employee-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.employee-name {
    font-weight: 500;
}

.employee-id {
    font-size: 12px;
    color: #999;
}

/* 员工明细样式 */
.employee-detail {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: #f0f7ff;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    min-width: 80px;
}

.stat-badge .stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.stat-badge .stat-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #1890ff;
}

.detail-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.detail-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.detail-section h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 14px;
}

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

.call-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    font-size: 13px;
}

.call-customer {
    flex: 1;
    font-weight: 500;
}

.call-time {
    color: #999;
    font-size: 12px;
    margin: 0 10px;
}

.call-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
}

.call-status.有意向 {
    background: #fff7e6;
    color: #fa8c16;
}

.call-status.无需求 {
    background: #f5f5f5;
    color: #8c8c8c;
}

.call-status.无效号码 {
    background: #fff1f0;
    color: #f5222d;
}

.call-status.未接通 {
    background: #e6f7ff;
    color: #1890ff;
}

.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.customer-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.customer-name {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 4px;
}

.customer-phone {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.customer-status {
    font-size: 11px;
    color: #999;
}

/* 无效号码列表样式 */
.invalid-list {
    display: grid;
    gap: 15px;
}

.invalid-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid #ff4d4f;
}

.invalid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.invalid-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invalid-customer {
    font-weight: bold;
    font-size: 16px;
}

.invalid-phone {
    color: #666;
    font-size: 14px;
}

.invalid-time {
    font-size: 12px;
    color: #999;
}

.invalid-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invalid-info {
    flex: 1;
}

.invalid-actions {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

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

.empty-state h3 {
    margin: 15px 0 10px 0;
    color: #666;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #ff4d4f;
}

.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}