/* =========================================================
   LordCaisse — print.css
   Impression : seuls les reçus sortent sur le papier
   ========================================================= */

/* Styles du reçu (écran) */
.receipt {
  background: #fff;
  color: #111;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 13px;
  margin-bottom: 14px;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #0F4C81;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.receipt-brand { display: flex; gap: 10px; align-items: center; }
.receipt-brand b { display: block; font-size: 15px; letter-spacing: .06em; color: #0F4C81; }
.receipt-brand span { font-size: 11px; color: #667; }
.receipt-head .receipt-head { display: flex; }
.receipt-head > div:last-child { text-align: right; }
.receipt-head .receipt-brand + div { margin-left: auto; }
.receipt-head { position: relative; }
.receipt-head > .receipt-brand { float: left; }
.receipt-head::after { content: ""; display: table; clear: both; }
.receipt-head .receipt-brand ~ div { text-align: right; }
.receipt-brand b, .receipt-brand span { text-align: left; }
.receipt-head > div:not(.receipt-brand) div { margin-bottom: 3px; }
.receipt-head > div:not(.receipt-brand) span { color: #667; font-size: 11px; margin-right: 6px; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.receipt-table td { padding: 6px 4px; color: #556; width: 40%; }
.receipt-table th { text-align: left; padding: 6px 4px; font-weight: 600; color: #111; }
.receipt-table tr { border-bottom: 1px dashed #e3e8ee; }
.receipt-total td, .receipt-total th {
  border-bottom: none;
  border-top: 2px solid #0F4C81;
  font-size: 15px;
  padding-top: 9px;
}
.receipt-total th { color: #0F4C81; font-weight: 800; }
.receipt-foot { margin-top: 12px; font-size: 10.5px; color: #778; text-align: center; font-style: italic; }
.no-print { margin-top: 4px; }

/* Impression : masque tout sauf le reçu */
@media print {
  body { background: #fff !important; }
  body > *:not(.modal-overlay) { display: none !important; }
  .modal-overlay {
    position: static !important;
    background: none !important;
    display: block !important;
  }
  .modal {
    box-shadow: none !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
    padding: 0 !important;
    background: #fff !important;
  }
  .modal-close, .no-print { display: none !important; }
  .modal h2 { display: none !important; }
  .modal-sub { display: none !important; }
  .receipt { border: 1px solid #999; }
}