/* ============================================================================
   MonHaras — Document « facture » d'un élevage (inc/elevage/_invoice_doc.php)
   Chargé par le panneau élevage ET par l'espace client (/mon-eleveur) : les
   couleurs sont donc déclarées ici, sans dépendre de panel.css.
   ========================================================================= */
.elv-invoice {
  --line: #E4DCCC; --card-2: #FAF8F3; --brass: #B0812B; --brass-2: #C99A3E; --ink: #1B2740;
  --muted: #736C5F; --ok: #4F7A3A; --shadow: 0 1px 2px rgba(27,39,64,.04), 0 10px 30px rgba(27,39,64,.05);
}
@keyframes elvInvIn { from { opacity: 0; transform: translateY(10px); } }
.elv-invoice { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); max-width: 860px; color: #1b2740; animation: elvInvIn .4s both; }
.elv-inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--brass-2); }
.elv-inv-head .from, .elv-inv-head .meta, .elv-inv-to { display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.elv-inv-head .brand { font-family: 'Fraunces', Georgia, serif; font-size: 1.3rem; }
.elv-inv-head .meta { text-align: right; }
.elv-inv-head .kind { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--brass); font-weight: 700; }
.elv-inv-head .no { font-family: 'Fraunces', Georgia, serif; font-size: 1.25rem; }
.elv-inv-head .paid { color: var(--ok); font-weight: 700; }
.elv-inv-to { margin: 18px 0; padding: 12px 14px; background: var(--card-2); border-radius: 10px; max-width: 360px; }
.elv-inv-to .lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.elv-inv-lines { width: 100%; border-collapse: collapse; font-size: .86rem; }
.pnl-tablewrap .elv-inv-lines { min-width: 520px; }
.elv-inv-lines th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px 6px; }
.elv-inv-lines td { padding: 9px 6px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.elv-inv-lines .r { text-align: right; white-space: nowrap; }
.elv-inv-lines small { color: var(--muted); }
.elv-inv-sum { margin: 14px 0 0 auto; max-width: 320px; font-size: .9rem; }
.elv-inv-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.elv-inv-sum .sub { font-size: .8rem; color: var(--muted); }
.elv-inv-sum .tot { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 1.05rem; }
.elv-inv-foot { margin-top: 22px; font-size: .76rem; color: var(--muted); }
.elv-inv-foot p { margin: 0 0 6px; }
@media (max-width: 560px) {
  .elv-invoice { padding: 16px; border-radius: 12px; }
  .elv-inv-head .meta { text-align: left; }
}
@media print {
  .elv-invoice { border: 0; box-shadow: none; padding: 0; max-width: none; animation: none; }
  .einv-back, .elv-einv-link { display: none !important; }
  .pnl-tablewrap .elv-inv-lines { min-width: 0; }
}

@media (max-width: 560px) {
  .pnl-tablewrap .elv-inv-lines { min-width: 0; font-size: .74rem; }
  .elv-inv-lines th, .elv-inv-lines td { padding: 7px 3px; }
  .elv-inv-lines small { display: block; }
}
