/* Fragments facturation communs aux activites, au CRM et aux modales. */
.evf-champ-technique {
    display: none;
}

.evf-message-erreur {
    color: var(--eb-danger, red);
    width: 100%;
    clear: both;
}

.evf-swal-ligne-entete {
    border-bottom: solid 1px var(--eb-border, #dddddd);
    text-align: left;
}

.evf-swal-lien-pdf {
    margin: 2px;
}

.evf-entete-carte-droite {
    float: right !important;
}

.evf-action-relance {
    float: right;
    margin-right: 24px;
    margin-top: 11px;
}

.evf-bloc-relance {
    margin-left: 24px;
    margin-right: 24px;
}

.evf-modale-relance {
    max-height: 66%;
}

.evf-aj-col-libelle {
    min-width: 200px;
}

.evf-aj-col-mode {
    width: 90px;
}

.evf-aj-col-valeur {
    width: 120px;
}

.evf-aj-col-montant {
    width: 130px;
}

.evf-aj-col-action {
    width: 44px;
}

.evf-col-quantite {
    width: 80px;
}

.evf-col-ht {
    width: 120px;
}

.evf-col-pu {
    width: 120px;
}

.evf-col-remise {
    width: 100px;
}

.evf-col-offert {
    width: 70px;
}

.evf-col-total {
    width: 120px;
}

.evf-col-marge {
    width: 120px;
}

.evf-col-type { min-width: 240px; }
.evf-col-tva { width: 90px; }

/* Client : une seule regle pour les onglets Devis et Facture. */
@media (min-width: 1400px), (max-width: 767.98px) {
    #tabClientDevisFacture { table-layout: fixed !important; }
}
@media (min-width: 768px) and (max-width: 1399.98px) {
    #tabClientDevisFacture { table-layout: unset !important; }
}

@media (max-width: 767.98px) {
    .presta-card { display: flex; }
    .presta-card > table { display: none; }
}

/* Fenêtre « Envoyer le devis / la facture » en visuel */
.evf-envoi { text-align: left; }
.evf-envoi-tete { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.evf-envoi-picto {
    width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center; font-size: var(--eb-fs-rem-title, 1.5rem);
    background: var(--eb-primary-light, #EBE1FC); color: var(--eb-primary, #7c3aed);
}
.evf-envoi-type { font-size: var(--eb-fs-sm, .85rem); color: var(--eb-text-secondary, #6b7280); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.evf-envoi-montant { font-size: var(--eb-fs-rem-title, 1.5rem); font-weight: 800; line-height: 1.1; color: var(--eb-text, #111827); }
.evf-envoi-fleche { color: var(--eb-text-muted, #9ca3af); }
.evf-envoi-client {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--eb-radius-pill, 999px);
    background: var(--eb-surface-hover, #f3f4f6); font-weight: 700; color: var(--eb-text, #111827);
}
.evf-envoi-deja {
    display: table; margin: 0 auto 12px; padding: 4px 12px; border-radius: var(--eb-radius-pill, 999px);
    background: var(--eb-warning-light, #FFF7ED); color: var(--eb-warning, #d97706);
    font-weight: 600; font-size: var(--eb-fs-sm, .85rem);
}
.evf-envoi-mail { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; position: relative; }
.evf-envoi-mail > i { position: absolute; left: 12px; color: var(--eb-text-secondary, #6b7280); }
.evf-envoi-mail #eb-fact-destinataire { padding-left: 38px !important; height: 42px; border-radius: var(--eb-radius-md, 10px); font-weight: 600; }
.evf-envoi-mail > i { z-index: 2; }
.evf-envoi-options { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.evf-chip { margin: 0; cursor: pointer; }
.evf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.evf-chip span {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--eb-radius-pill, 999px);
    background: var(--eb-surface-hover, #f3f4f6); color: var(--eb-text-secondary, #6b7280);
    font-weight: 600; font-size: var(--eb-fs-sm, .85rem);
    box-shadow: inset 0 0 0 1px var(--eb-border, #e5e7eb); transition: background .15s, color .15s;
}
.evf-chip span::before { content: "\f00c"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; font-size: var(--eb-fs-em-sm, 0.75em); opacity: 0; width: 0; transition: opacity .15s; }
.evf-chip input:checked + span { background: var(--eb-success-light, #ECFDF5); color: var(--eb-success, #059669); box-shadow: inset 0 0 0 1px var(--eb-success, #10b981); }
.evf-chip input:checked + span::before { opacity: 1; width: auto; }
.evf-chip input:focus-visible + span { outline: 2px solid var(--eb-primary, #7c3aed); outline-offset: 2px; }
@media (max-width: 575.98px) { .evf-envoi-fleche { display: none; } }
