/* Дополнительные стили для таблицы сделок */

/* Плавные переходы для всех элементов */
.deal-table * {
  transition: all 0.2s ease-in-out;
}

/* Стили для заголовков таблицы */
.deal-table thead th {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Стили для строк таблицы */
.deal-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

/* Усиленная граница между разными сделками */
.deal-row {
  border-bottom: 2px solid #d1d5db !important;
}

.info-row {
  border-bottom: 2px solid #d1d5db !important;
}

/* Базовые hover эффекты */
.deal-table tbody tr:hover {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Стили для синхронизированного выделения */
.deal-row.highlighted {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-top: 3px solid #3b82f6;
  border-bottom: 3px solid #3b82f6;
}

/* Стили для ID сделки */
.deal-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Стили для типов сделок */
.deal-type {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.deal-type-icon {
  font-size: 1.25rem;
}

.deal-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Цвета для разных типов сделок */
.deal-type-badge.package {
  background-color: #dbeafe;
  color: #1e40af;
}

.deal-type-badge.individual {
  background-color: #e9d5ff;
  color: #7c3aed;
}

.deal-type-badge.hotel {
  background-color: #dcfce7;
  color: #166534;
}

.deal-type-badge.ticket {
  background-color: #fed7aa;
  color: #c2410c;
}

.deal-type-badge.insurance {
  background-color: #fef3c7;
  color: #92400e;
}

.deal-type-badge.visa {
  background-color: #fecaca;
  color: #991b1b;
}

/* Стили для сумм */
.amount-container {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.amount-main {
  font-weight: 600;
  color: #111827;
}

.amount-status {
  font-size: 0.75rem;
  font-weight: 500;
}

.amount-status.paid {
  color: #059669;
}

.amount-status.unpaid {
  color: #dc2626;
}

.amount-status.partial {
  color: #d97706;
}

.amount-status.overpaid {
  color: #7c3aed;
}

.amount-status.no-payment {
  color: #6b7280;
}

/* Стили для кнопок действий */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-button {
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.action-button:hover {
  transform: scale(1.1);
}

.action-button.delete {
  color: #dc2626;
}

.action-button.delete:hover {
  color: #b91c1c;
  background-color: #fee2e2;
}

/* Стили для пустого состояния */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: #6b7280;
}

.empty-state-icon {
  width: 3rem;
  height: 3rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.empty-state-description {
  font-size: 0.875rem;
  text-align: center;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.deal-row {
  animation: fadeInUp 0.3s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
  .deal-table {
    font-size: 0.875rem;
  }
  
  .deal-type-badge {
    font-size: 0.625rem;
    padding: 0.125rem 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
} 