#ml-closing-report { display:none; }
.ml-report-print { display:inline-block; margin:1rem 0; padding:.75em 1.2em; background:#241f20; border:1px solid #241f20; color:white; font:inherit; font-weight:600; cursor:pointer; border-radius:3px; }
.ml-report-print:focus-visible { outline:3px solid #009ade; outline-offset:3px; }
@page { margin:16mm; }
@media print {
  body:has(> #ml-closing-report) > :not(#ml-closing-report) { display:none !important; }
  html:has(#ml-closing-report), body:has(> #ml-closing-report) { height:auto !important; overflow:visible !important; margin:0 !important; padding:0 !important; background:white !important; }
  #ml-closing-report { display:block !important; color:#333; font:10pt/1.4 MLAmbitRegular,Arial,sans-serif; background:white; }
  #ml-closing-report header { position:static; display:flex; align-items:center; flex-wrap:wrap; gap:8pt; padding:0 0 10pt; border-bottom:2pt solid #241f20; background:white; }
  #ml-closing-report header img { width:125pt; height:auto; }
  #ml-closing-report header strong { font: bold 12pt MLAmbitBlack,Arial,sans-serif; }
  #ml-closing-report header span { margin-left:auto; font-size:9pt; }
  #ml-closing-report h1 { font:24pt/1.1 MLAmbitBlack,Arial,sans-serif; margin:14pt 0 4pt; }
  #ml-closing-report h2 { font:bold 10pt/1.3 MLAmbitRegular,Arial,sans-serif; margin:14pt 0 4pt; break-after:avoid; }
  #ml-closing-report .ml-row { display:flex; gap:8pt; align-items:baseline; padding:3pt 0; border-bottom:.5pt solid #ddd; break-inside:avoid; }
  #ml-closing-report .ml-row span:first-child { flex:1; }
  #ml-closing-report .ml-row span:not(:first-child) { min-width:42pt; text-align:right; font-variant-numeric:tabular-nums; }
  #ml-closing-report .ml-total { font-weight:bold; border-top:1pt solid #241f20; }
  #ml-closing-report footer { display:block; position:static; background:white; color:#241f20; font-size:9pt; margin-top:14pt; padding:6pt 0; border-top:1pt solid; }
}

@media print { #ml-closing-report footer { break-inside: avoid; line-height: 1.4; } }

.ml-report-print { font-family:MLAmbitBlack,Arial,sans-serif; border-bottom:3px solid #009ade; }
@media print {
 #ml-closing-report { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
 #ml-closing-report header { border-bottom:3pt solid #009ade; }
 #ml-closing-report header img { width:145pt; max-width:100%; }
 #ml-closing-report h1 { font-weight:normal; text-transform:uppercase; color:#241f20; }
 #ml-closing-report h2 { font-family:MLAmbitBlack,Arial,sans-serif; color:#241f20; border-left:3pt solid #0099dd; padding-left:6pt; }
 #ml-closing-report .ml-row:nth-of-type(even) { background:#f2f2f2; }
 #ml-closing-report .ml-row { padding-left:4pt; padding-right:4pt; }
 #ml-closing-report .ml-total { font-family:MLAmbitBlack,Arial,sans-serif; color:#241f20; border-top:1.5pt solid #009ade; }
 #ml-closing-report footer, #ml-closing-report time, #ml-closing-report header span { font-family:MLOxygen,Arial,sans-serif; }
}

@font-face { font-family: MLAmbitBlack; src:url("./AmbitBlack.ttf") format("truetype"); font-display:swap; }

@font-face { font-family: MLAmbitRegular; src:url("./AmbitRegular.ttf") format("truetype"); font-display:swap; }

@font-face { font-family: MLOxygen; src:url("./Oxygen.woff2") format("woff2"); font-display:swap; }

@media print { #ml-closing-report h1 { max-width:100%; width:auto; white-space:normal; overflow-wrap:anywhere; line-height:1.15; } }

@media screen {
 .ml-report-actions { clear:both; width:100%; text-align:center; margin:8px auto 16px; }
 .ml-report-actions .ml-report-print { display:inline-block; margin:0; min-height:44px; padding:10px 20px; }
 /* Both chat services use fixed lower-right launchers. Move only the closed AI launcher. */
 body:has(#bewebchat) #mwai-chatbot-default .mwai-trigger:not([hidden]) {
   position:fixed !important; left:max(16px,env(safe-area-inset-left)) !important;
   right:auto !important; bottom: max(20px,env(safe-area-inset-bottom)) !important;
 }
}
@media screen and (max-width:767px) {
 .ml-report-actions .ml-report-print { width:min(90%, 360px); }
}
