/* SIFAMAC v145 — extrait de compte tiers + reçu de versement */

/* Extrait de compte : tout reste accessible, les actions restent visibles. */
.statement-shell-v145{
  width:min(1220px,calc(100vw - 24px))!important;
  max-width:none!important;
  max-height:94vh!important;
  overflow:hidden!important;
  padding:12px!important;
}
.statement-shell-v145 .statement-modal-v140,
.statement-shell-v145 .statement-modal-v145{
  width:100%!important;
  height:calc(94vh - 24px);
  max-height:none!important;
  overflow:hidden!important;
  display:flex;
  flex-direction:column;
}
.statement-shell-v145 .client-statement-v140{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
}
.statement-shell-v145 .statement-table-wrap-v140{
  overflow:auto;
}
.statement-shell-v145 .statement-table-v140{
  min-width:820px;
}
.statement-shell-v145 .modal-actions{
  position:sticky;
  bottom:0;
  z-index:5;
  flex:0 0 auto;
  margin:0;
  padding:12px 4px 2px;
  background:#fff;
  border-top:1px solid #dbe3ec;
  flex-wrap:wrap;
}

/* Historique règlements */
.credit-payment-table-v145 .row-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.payment-receipt-btn-v145{
  white-space:nowrap;
}

/* Reçu de versement */
.payment-receipt-shell-v145{
  width:min(860px,calc(100vw - 24px))!important;
  max-width:none!important;
  max-height:94vh!important;
  overflow:auto!important;
  padding:16px!important;
}
.payment-receipt-modal-v145{
  width:100%;
}
.payment-receipt-v145{
  background:#fff;
  color:#172033;
  border:1px solid #6b7280;
  font-family:Arial,Helvetica,sans-serif;
}
.payment-receipt-header-v145{
  display:grid;
  grid-template-columns:1.35fr .8fr;
  border-bottom:1px solid #6b7280;
}
.payment-receipt-company-v145{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:16px;
  border-right:1px solid #94a3b8;
}
.payment-receipt-logo-v145{
  width:76px;
  height:76px;
  object-fit:contain;
  flex:0 0 auto;
}
.payment-receipt-brand-v145{
  width:80px;
  height:56px;
  display:grid;
  place-items:center;
  border-radius:8px;
  background:#0d2e50;
  color:#fff;
  font-weight:900;
  font-size:13px;
}
.payment-receipt-company-text-v145{
  display:grid;
  gap:3px;
  font-size:10px;
  line-height:1.35;
}
.payment-receipt-company-text-v145 strong{
  font-size:17px;
  line-height:1.1;
}
.payment-receipt-title-v145{
  display:grid;
  align-content:center;
  justify-items:center;
  gap:10px;
  padding:18px;
  text-align:center;
}
.payment-receipt-title-v145 strong{
  font-size:22px;
  letter-spacing:.03em;
}
.payment-receipt-title-v145 span{
  font-size:11px;
  font-weight:800;
}

.payment-receipt-meta-v145{
  display:grid;
  grid-template-columns:1fr 1fr;
  border-bottom:1px solid #94a3b8;
}
.payment-receipt-meta-v145>div{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:10px;
  padding:8px 12px;
  border-right:1px solid #cbd5e1;
  border-bottom:1px solid #e2e8f0;
  font-size:10px;
}
.payment-receipt-meta-v145>div:nth-child(2n){
  border-right:0;
}
.payment-receipt-meta-v145 span{
  color:#64748b;
}
.payment-receipt-meta-v145 strong{
  overflow-wrap:anywhere;
}

.payment-receipt-amount-v145{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:18px 16px;
  border-bottom:1px solid #94a3b8;
  background:#f8fafc;
}
.payment-receipt-amount-v145 span{
  font-size:12px;
  font-weight:900;
}
.payment-receipt-amount-v145 strong{
  font-size:24px;
  white-space:nowrap;
}

.payment-receipt-client-note-v145{
  display:grid;
  gap:5px;
  padding:16px;
  min-height:72px;
  font-size:11px;
  line-height:1.45;
}

.payment-receipt-signatures-v145{
  display:grid;
  grid-template-columns:1fr 1fr;
  min-height:180px;
  border-top:1px solid #94a3b8;
}
.payment-receipt-sign-zone-v145{
  display:grid;
  grid-template-rows:auto 1fr;
  gap:8px;
  padding:12px 16px;
  text-align:center;
}
.payment-receipt-sign-zone-v145:first-child{
  border-right:1px solid #94a3b8;
}
.payment-receipt-sign-zone-v145>span{
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.payment-receipt-sign-image-v145{
  min-height:125px;
  display:grid;
  place-items:center;
}
.payment-receipt-sign-image-v145 img{
  max-width:180px;
  max-height:115px;
  object-fit:contain;
}
.payment-receipt-footer-v145{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:8px 12px;
  border-top:1px solid #94a3b8;
  font-size:9px;
  color:#475569;
}
.payment-receipt-actions-v145{
  position:sticky;
  bottom:0;
  z-index:4;
  background:#fff;
  padding-top:12px;
}

@media(max-width:760px){
  .statement-shell-v145{
    width:calc(100vw - 10px)!important;
    max-height:96vh!important;
    padding:6px!important;
  }
  .statement-shell-v145 .statement-modal-v140,
  .statement-shell-v145 .statement-modal-v145{
    height:calc(96vh - 12px);
  }
  .statement-shell-v145 .modal-actions{
    justify-content:stretch;
  }
  .statement-shell-v145 .modal-actions .btn{
    flex:1 1 140px;
  }

  .payment-receipt-shell-v145{
    width:calc(100vw - 10px)!important;
    padding:8px!important;
  }
  .payment-receipt-header-v145{
    grid-template-columns:1fr;
  }
  .payment-receipt-company-v145{
    border-right:0;
    border-bottom:1px solid #94a3b8;
  }
  .payment-receipt-meta-v145{
    grid-template-columns:1fr;
  }
  .payment-receipt-meta-v145>div{
    border-right:0;
  }
  .payment-receipt-signatures-v145{
    grid-template-columns:1fr;
  }
  .payment-receipt-sign-zone-v145:first-child{
    border-right:0;
    border-bottom:1px solid #94a3b8;
  }
}

@media print{
  .payment-receipt-v145{
    border:1px solid #555;
    break-inside:avoid;
  }
  .payment-receipt-signatures-v145{
    break-inside:avoid;
  }
  .payment-receipt-actions-v145{
    display:none!important;
  }
}
