.quotation-detail-container {
  .quotation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    
    .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;
        
        &:disabled {
          opacity: 0.6;
          cursor: not-allowed;
        }
        
        svg {
          flex-shrink: 0;
        }
      }
      
      .btn-secondary {
        background: #f8fafc;
        color: #475569;
        border: 1px solid #e2e8f0;
        
        &:hover:not(:disabled) {
          background: #f1f5f9;
          border-color: #cbd5e1;
        }
      }
      
      .btn-primary {
        background: #4f46e5;
        color: white;
        
        &:hover:not(:disabled) {
          background: #4338ca;
        }
      }
    }
  }
}

.quotation-items {
  .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;
      }
    }
  }
  
  .quotation-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    transition: all 0.2s ease;
    
    &:hover {
      border-color: #cbd5e1;
    }
    
    &.editing {
      border-color: #4f46e5;
      background: #fefbff;
    }
    
    .item-content {
      flex: 1;
      
      .item-info {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
        
        .room-type {
          .room-name {
            font-weight: 500;
            color: #1e293b;
            font-size: 14px;
          }
          
          .edit-select {
            padding: 6px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
            min-width: 120px;
            
            &:focus {
              outline: none;
              border-color: #4f46e5;
              box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
            }
          }
        }
        
        .item-amount {
          .amount {
            font-weight: 600;
            color: #059669;
            font-size: 15px;
          }
          
          .amount-input {
            display: flex;
            align-items: center;
            gap: 4px;
            
            .edit-input {
              padding: 6px 12px;
              border: 1px solid #d1d5db;
              border-radius: 6px;
              font-size: 14px;
              width: 100px;
              text-align: right;
              
              &:focus {
                outline: none;
                border-color: #4f46e5;
                box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
              }
            }
            
            .unit {
              font-size: 13px;
              color: #6b7280;
            }
          }
        }
      }
      
      .item-description {
        p {
          font-size: 13px;
          color: #64748b;
          margin: 0;
          line-height: 1.4;
        }
        
        .edit-textarea {
          width: 100%;
          padding: 8px 12px;
          border: 1px solid #d1d5db;
          border-radius: 6px;
          font-size: 13px;
          resize: vertical;
          font-family: inherit;
          
          &:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
          }
        }
      }
    }
    
    .item-actions {
      display: flex;
      gap: 8px;
      margin-left: 16px;
      
      .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;
        
        svg {
          width: 14px;
          height: 14px;
        }
        
        &.edit-btn {
          background: #f0f9ff;
          color: #0369a1;
          
          &:hover {
            background: #e0f2fe;
          }
        }
        
        &.delete-btn {
          background: #fef2f2;
          color: #dc2626;
          
          &:hover {
            background: #fee2e2;
          }
        }
        
        &.save-btn {
          background: #f0fdf4;
          color: #16a34a;
          
          &:hover {
            background: #dcfce7;
          }
        }
        
        &.cancel-btn {
          background: #fafafa;
          color: #525252;
          
          &:hover {
            background: #f5f5f5;
          }
        }
      }
    }
  }
}

.quotation-summary {
  margin-top: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  
  .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    
    &:last-child {
      margin-bottom: 0;
    }
    
    &.total {
      padding-top: 8px;
      border-top: 1px solid #e2e8f0;
      font-weight: 600;
      
      .summary-value {
        color: #059669;
        font-size: 16px;
      }
    }
    
    .summary-label {
      font-size: 14px;
      color: #64748b;
    }
    
    .summary-value {
      font-size: 14px;
      color: #1e293b;
    }
  }
}

// 动画效果
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .quotation-detail-container {
    .quotation-header {
      flex-direction: column;
      gap: 16px;
      align-items: stretch;
      
      .header-actions {
        justify-content: flex-end;
      }
    }
  }
  
  .quotation-items {
    .quotation-item {
      flex-direction: column;
      gap: 12px;
      
      .item-actions {
        margin-left: 0;
        justify-content: flex-end;
      }
    }
  }
}