/* ==========================================================================
   🎨 eRpStyle – PROJETS À FACTURER (Structure EXACTE)
   ========================================================================== */

/* Container global */
.list-projets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 4px;
}

/* ==========================================================================
   🟦 CARD PROJET
   ========================================================================== */
.card-itemFacture.projet-item {
    background: var(--panel, #fff);
    border: 1px solid var(--border, #e5e7eb);
    padding: 16px 18px;
    border-radius: var(--radius, 18px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: row;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s;
    justify-content: space-between;
}

.card-itemFacture.projet-item:hover {
  background: var(--hover, #f9fafb);
  border-color: var(--border, #d1d5db);
  box-shadow: var(--shadow);
}

/* ==========================================================================
   🟪 HEADER : avatar + titres + statut
   ========================================================================== */
.proj-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 400px;
}

.proj-left {
  display: flex;
  align-items: center;
  gap: 14px;
}


/* Titres */
.proj-titles {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.proj-name {
  font-size: 1rem;
  font-weight: 200;
  color: var(--text, #111827);
}

.proj-client,
.proj-devis {
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.proj-client .lucide,
.proj-devis .lucide{
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* ==========================================================================
   🟨 BADGES STATUTS
   ========================================================================== */
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 600;
  text-transform: capitalize;
  color: var(--textNeg);
}

/* Couleurs statut standard */
.badge-finalisé,
.badge-finalise,
.badge-finaliseé {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-envoyé,
.badge-envoye {
  background: #fef3c7;
  color: #92400e;
}

.badge-accepté,
.badge-accepte {
  background: #dcfce7;
  color: #166534;
}

.badge-refusé,
.badge-refuse {
  background: #fee2e2;
  color: #991b1b;
}

.badge-expiré,
.badge-expire {
  background: #f3f4f6;
  color: #4b5563;
}

.badge-brouillon {
  background: #e5e7eb;
  color: #374151;
}

/* ==========================================================================
   🟩 META : total / déjà facturé / reste
   ========================================================================== */
.proj-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-content: center;
}

.proj-meta {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.proj-meta .muted {
  font-size: .75rem;
  color: var(--muted);
}

.proj-meta span:last-child {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text, #111827);
}

/* ==========================================================================
   🟧 PROGRESS BAR
   ========================================================================== */
.proj-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-content: center;
}

.proj-progress .bar {
  height: 7px;
  background: var(--border, #e5e7eb);
  border-radius: 6px;
  overflow: hidden;
}

.proj-progress .fill {
  height: 100%;
  background: var(--accent, #3b82f6);
  border-radius: 6px;
  transition: width .25s ease;
}

.proj-progress .pct {
  font-size: .75rem;
  color: var(--muted);
}

/* ==========================================================================
   📱 RESPONSIVE
   ========================================================================== */
@media (max-width: 700px) {
  .proj-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .proj-meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .proj-progress {
    margin-top: 8px;
  }
}



.dv-facture-intro { margin: 10px 0 14px; }

.facture-intro-box{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.facture-intro-box .fi-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  background: rgba(0,0,0,.08);
}

.facture-intro-box .fi-sub{
  margin-left: 10px;
  opacity: .85;
  font-weight: 600;
}

.facture-intro-box.is-acompte{ background: rgba(255, 193, 7, 0.16); }
.facture-intro-box.is-solde{ background: rgba(34, 197, 94, 0.14); }
.facture-intro-box.is-complete{ background: rgba(59, 130, 246, 0.14); }





.rowFactureExport{
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
    padding: 10px 14px;
    transition: background 0.2s;
    border-radius: 0%;
}

.rowFactureExport:hover {
    background: 
 color-mix(in srgb, var(--panel) 85%, var(--accent) 10%);
}



.mm-factureCard {
  padding: 10px 0;

}
/* ==========================================================================




