/* ============================================
   Styles spécifiques à la page Revenus
   ============================================ */

/* Cartes de résumé avec gradient vert */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.summary-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.summary-card h3 {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  opacity: 0.9;
  color: white;
}

.summary-card .amount {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Badge vert pour les revenus */
.badge {
  background: #d1fae5;
  color: #065f46;
}

/* Section d'import CSV */
.import-section {
  background: #f0fdf4;
  border: 2px dashed #16a34a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.import-section h3 {
  color: #166534;
  margin-bottom: 12px;
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  margin: 12px 0;
}

.file-input-wrapper input[type="file"] {
  width: auto;
  display: inline-block;
}

.mapping-container {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  margin-top: 16px;
  text-align: left;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.mapping-arrow {
  color: #6b7280;
  font-weight: 600;
}

/* Barre de filtres */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
}

.filter-bar input,
.filter-bar select {
  flex: 1;
  min-width: 150px;
}

/* Badges de statut de paiement */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-paid {
  background: #d1fae5;
  color: #065f46;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-partial {
  background: #fef08a;
  color: #854d0e;
}

.status-overdue {
  background: #fee2e2;
  color: #991b1b;
}

.status-cancelled {
  background: #f3f4f6;
  color: #6b7280;
  text-decoration: line-through;
}

/* Responsive spécifique */
@media (max-width: 768px) {
  .mapping-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  
  .mapping-arrow {
    display: none;
  }
}
