.designer-assignment-container {
  .assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    
    .header-left {
      h4 {
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 4px 0;
      }
      
      p {
        font-size: 13px;
        color: #666;
        margin: 0;
      }
    }
    
    .header-actions {
      display: flex;
      gap: 12px;
      
      .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: all 0.2s ease;
        
        svg {
          flex-shrink: 0;
        }
      }
      
      .btn-secondary {
        background: #f8fafc;
        color: #475569;
        border: 1px solid #e2e8f0;
        
        &:hover {
          background: #f1f5f9;
          border-color: #cbd5e1;
        }
      }
      
      .btn-primary {
        background: #4f46e5;
        color: white;
        
        &:hover {
          background: #4338ca;
        }
      }
    }
  }
}

.designer-calendar-section {
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.project-group-section {
  margin-bottom: 24px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  
  .group-selector {
    margin-bottom: 16px;
    
    .field-label {
      display: block;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      margin-bottom: 8px;
    }
    
    .field-select {
      width: 100%;
      max-width: 300px;
      padding: 10px 12px;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      font-size: 14px;
      
      &:focus {
        outline: none;
        border-color: #4f46e5;
        box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
      }
    }
    
    .field-hint {
      margin-top: 6px;
      font-size: 12px;
      color: #6b7280;
    }
  }
  
  .cross-group-option {
    .checkbox-label {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-size: 14px;
      color: #374151;
      
      input[type="checkbox"] {
        display: none;
      }
      
      .checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid #d1d5db;
        border-radius: 4px;
        position: relative;
        transition: all 0.2s ease;
        
        &::after {
          content: '';
          position: absolute;
          left: 5px;
          top: 2px;
          width: 4px;
          height: 8px;
          border: solid white;
          border-width: 0 2px 2px 0;
          transform: rotate(45deg);
          opacity: 0;
          transition: opacity 0.2s ease;
        }
      }
      
      input:checked + .checkmark {
        background: #4f46e5;
        border-color: #4f46e5;
        
        &::after {
          opacity: 1;
        }
      }
    }
    
    .field-hint {
      margin-top: 6px;
      margin-left: 26px;
      font-size: 12px;
      color: #6b7280;
    }
  }
}

.assignment-list {
  .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
    
    .empty-icon {
      margin-bottom: 16px;
      
      svg {
        color: #d1d5db;
      }
    }
    
    p {
      margin: 0 0 8px 0;
      font-size: 14px;
      
      &.empty-hint {
        font-size: 13px;
        color: #9ca3af;
      }
    }
  }
  
  .assignment-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    gap: 20px;
    transition: all 0.2s ease;
    
    &:hover {
      border-color: #cbd5e1;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .designer-info {
      flex-shrink: 0;
      width: 200px;
      
      .designer-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        overflow: hidden;
        margin-bottom: 12px;
        
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      
      .designer-details {
        .designer-name {
          font-size: 15px;
          font-weight: 600;
          color: #1e293b;
          margin-bottom: 6px;
        }
        
        .designer-meta {
          display: flex;
          flex-wrap: wrap;
          gap: 6px;
          margin-bottom: 8px;
          
          .designer-group {
            font-size: 12px;
            color: #64748b;
            background: #f1f5f9;
            padding: 2px 6px;
            border-radius: 4px;
          }
          
          .leader-badge {
            font-size: 12px;
            color: #dc2626;
            background: #fef2f2;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #fecaca;
          }
          
          .cross-group-badge {
            font-size: 12px;
            color: #7c3aed;
            background: #f3f4f6;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid #e5e7eb;
          }
        }
        
        .designer-status {
          display: flex;
          align-items: center;
          gap: 6px;
          font-size: 12px;
          color: #64748b;
          
          .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            
            &.available {
              background: #10b981;
            }
            
            &.busy {
              background: #f59e0b;
            }
            
            &.stagnant {
              background: #ef4444;
            }
            
            &.overloaded {
              background: #8b5cf6;
            }
          }
        }
      }
    }
    
    .assignment-details {
      flex: 1;
      
      .assigned-quotations {
        margin-bottom: 16px;
        
        .field-label {
          font-size: 13px;
          font-weight: 500;
          color: #374151;
          margin-bottom: 8px;
          display: block;
        }
        
        .quotation-chips {
          display: flex;
          flex-wrap: wrap;
          gap: 8px;
          align-items: center;
          
          .quotation-chip {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #eff6ff;
            color: #1e40af;
            padding: 6px 10px;
            border-radius: 6px;
            font-size: 13px;
            border: 1px solid #dbeafe;
            
            .remove-quotation {
              background: none;
              border: none;
              color: #64748b;
              cursor: pointer;
              padding: 0;
              display: flex;
              align-items: center;
              
              &:hover {
                color: #ef4444;
              }
            }
          }
          
          .add-quotation-dropdown {
            position: relative;
            
            .add-quotation-btn {
              width: 28px;
              height: 28px;
              border: 1px dashed #cbd5e1;
              background: white;
              border-radius: 6px;
              cursor: pointer;
              display: flex;
              align-items: center;
              justify-content: center;
              color: #64748b;
              transition: all 0.2s ease;
              
              &:hover {
                border-color: #4f46e5;
                color: #4f46e5;
              }
            }
            
            .quotation-dropdown {
              position: absolute;
              top: 100%;
              left: 0;
              z-index: 10;
              background: white;
              border: 1px solid #e2e8f0;
              border-radius: 6px;
              box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
              min-width: 200px;
              max-height: 200px;
              overflow-y: auto;
              
              .dropdown-item {
                padding: 10px 12px;
                cursor: pointer;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 13px;
                
                &:hover {
                  background: #f8fafc;
                }
                
                .item-amount {
                  color: #059669;
                  font-weight: 500;
                }
              }
              
              .dropdown-empty {
                padding: 10px 12px;
                font-size: 13px;
                color: #9ca3af;
                text-align: center;
              }
            }
          }
        }
      }
      
      .workload-info {
        display: flex;
        gap: 24px;
        
        .workload-item {
          display: flex;
          flex-direction: column;
          gap: 4px;
          
          .workload-label {
            font-size: 12px;
            color: #64748b;
          }
          
          .workload-value {
            font-size: 14px;
            font-weight: 600;
            color: #1e293b;
          }
        }
      }
    }
    
    .assignment-actions {
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      gap: 8px;
      
      .action-btn {
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        
        &.edit-btn {
          background: #f0f9ff;
          color: #0369a1;
          
          &:hover {
            background: #e0f2fe;
          }
        }
        
        &.delete-btn {
          background: #fef2f2;
          color: #dc2626;
          
          &:hover {
            background: #fee2e2;
          }
        }
      }
    }
  }
}

.assignment-summary {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  
  .summary-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
    
    .stat-item {
      display: flex;
      flex-direction: column;
      gap: 4px;
      
      .stat-label {
        font-size: 13px;
        color: #64748b;
      }
      
      .stat-value {
        font-size: 16px;
        font-weight: 600;
        color: #1e293b;
        
        &.complete {
          color: #059669;
        }
      }
    }
  }
  
  .assignment-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #fef3cd;
    border: 1px solid #f6cc6d;
    border-radius: 6px;
    font-size: 14px;
    color: #92400e;
    
    svg {
      flex-shrink: 0;
      color: #d97706;
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .designer-assignment-container {
    .assignment-header {
      flex-direction: column;
      gap: 16px;
      align-items: stretch;
      
      .header-actions {
        justify-content: flex-end;
      }
    }
  }
  
  .assignment-list {
    .assignment-item {
      flex-direction: column;
      gap: 16px;
      
      .designer-info {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 12px;
        
        .designer-avatar {
          margin-bottom: 0;
        }
      }
      
      .assignment-actions {
        flex-direction: row;
        justify-content: flex-end;
      }
    }
  }
  
  .assignment-summary {
    .summary-stats {
      flex-direction: column;
      gap: 16px;
    }
  }
}