
html.amf-p140-modal-open,html.amf-p140-modal-open body{overflow:hidden!important;}
.amf-p140-overlay{
  position:fixed!important;
  inset:0!important;
  z-index:1600!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:16px!important;
  background:rgba(15,35,60,.34)!important;
  overscroll-behavior:contain!important;
}
.amf-p140-invoice{
  width:min(520px,100%)!important;
  max-height:min(86dvh,720px)!important;
  overflow:auto!important;
  padding:18px!important;
  border:1px solid #d7e4f2!important;
  border-radius:20px!important;
  background:#fff!important;
  color:#24364a!important;
  box-shadow:0 28px 80px rgba(15,46,84,.24)!important;
  opacity:0;
  transform:translateY(12px) scale(.985);
  transition:opacity .28s ease,transform .28s ease;
  -webkit-overflow-scrolling:touch!important;
}
.amf-p140-invoice.is-open{opacity:1;transform:none;}
.amf-p140-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding-bottom:13px!important;
  border-bottom:1px solid #edf2f7!important;
}
.amf-p140-head>div:first-child{display:grid!important;gap:3px!important;min-width:0!important;}
.amf-p140-head strong{font-size:17px!important;line-height:1.25!important;color:#172b3f!important;}
.amf-p140-head span{font-size:11px!important;color:#8391a2!important;}
.amf-p140-head-actions{display:flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important;}
.amf-p140-status{padding:5px 8px!important;border-radius:8px!important;background:#eaf8f1!important;color:#168052!important;font-size:9px!important;font-weight:900!important;}
.amf-p140-close{
  width:32px!important;height:32px!important;min-width:32px!important;
  border:1px solid #dbe5ef!important;border-radius:9px!important;
  background:#f8fafc!important;color:#526579!important;
  font-size:20px!important;line-height:1!important;cursor:pointer!important;
}
.amf-p140-copy-state{
  margin-top:12px!important;padding:8px 10px!important;border-radius:10px!important;
  border:1px solid #dbeafe!important;background:#f5f9ff!important;
  color:#35658f!important;font-size:10px!important;font-weight:700!important;
}
.amf-p140-copy-state.is-ok{border-color:#cdebd9!important;background:#effbf5!important;color:#188052!important;}
.amf-p140-details{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:9px!important;
  padding:13px 0!important;
}
.amf-p140-details>div{
  min-width:0!important;
  display:grid!important;
  gap:3px!important;
  padding:10px 11px!important;
  border:1px solid #edf2f7!important;
  border-radius:11px!important;
  background:#f8fbff!important;
}
.amf-p140-details .wide{grid-column:1/-1!important;}
.amf-p140-details span{font-size:9px!important;color:#8593a3!important;text-transform:uppercase!important;letter-spacing:.055em!important;}
.amf-p140-details b{font-size:12px!important;color:#21364c!important;word-break:break-word!important;overflow-wrap:anywhere!important;}
.amf-p140-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
.amf-p140-actions button{
  min-height:42px!important;padding:9px 10px!important;
  border:1px solid #c8dcef!important;border-radius:11px!important;
  background:#f8fbff!important;color:#1769cf!important;
  font-size:11px!important;font-weight:850!important;cursor:pointer!important;
}
.amf-p140-actions button:hover{background:#1769cf!important;color:#fff!important;border-color:#1769cf!important;}
.amf-p140-actions .wa{background:#eaf9f1!important;border-color:#cdebd9!important;color:#188552!important;}
.amf-p140-actions .wa:hover{background:#20a562!important;color:#fff!important;border-color:#20a562!important;}
@media(max-width:520px){
  .amf-p140-overlay{align-items:flex-end!important;padding:10px!important;}
  .amf-p140-invoice{
    width:100%!important;max-height:82dvh!important;
    padding:15px!important;border-radius:18px!important;
    transform:translateY(18px) scale(.99);
  }
  .amf-p140-details{grid-template-columns:1fr!important;}
  .amf-p140-details .wide{grid-column:auto!important;}
  .amf-p140-actions{grid-template-columns:1fr!important;}
}
@media(prefers-reduced-motion:reduce){
  .amf-p140-invoice{transition:none!important;transform:none!important;}
}
