/* UTCL KPI Phase 3A: print-only report layouts. No application logic changes. */
.utcl-report-letterhead,.utcl-print-only{display:none!important}
.utcl-report-print-actions{display:inline-flex;gap:.55rem;align-items:center}
.utcl-report-print-actions .btn{white-space:nowrap}
@media print {
  @page { size: A4 portrait; margin: 14mm 13mm 17mm; }
  html,body{background:#fff!important;color:#172033!important;font:10pt/1.42 Arial,Helvetica,sans-serif!important;overflow:visible!important;width:100%!important;min-width:0!important;}
  body{display:block!important;}
  body:has(.utcl-report-letterhead) > header,
  body:has(.utcl-report-letterhead) > footer,
  body:has(.utcl-report-letterhead) aside,
  body:has(.utcl-report-letterhead) nav,
  body:has(.utcl-report-letterhead) .topbar,
  body:has(.utcl-report-letterhead) .sidebar,
  body:has(.utcl-report-letterhead) .app-sidebar,
  body:has(.utcl-report-letterhead) .sidebar-overlay,
  body:has(.utcl-report-letterhead) .utcl-sidebar,
  body:has(.utcl-report-letterhead) .mobile-topbar,
  body:has(.utcl-report-letterhead) .sidebar-backdrop,
  body:has(.utcl-report-letterhead) .app-topbar,
  body:has(.utcl-report-letterhead) .theme-toggle,
  body:has(.utcl-report-letterhead) .nav-toggle,
  body:has(.utcl-report-letterhead) .utcl-report-print-actions,
  body:has(.utcl-report-letterhead) .page-head .button-row,
  body:has(.utcl-report-letterhead) .page-head > a,
  body:has(.utcl-report-letterhead) .page-head > button,
  body:has(.utcl-report-letterhead) form,
  body:has(.utcl-report-letterhead) .utcl-hide-print,
  body:has(.utcl-report-letterhead) .workplan-inline-form,
  body:has(.utcl-report-letterhead) .sticky-actions,
  body:has(.utcl-report-letterhead) .btn,
  body:has(.utcl-report-letterhead) .footer-bar {display:none!important;}
  body:has(.utcl-report-letterhead) main,
  body:has(.utcl-report-letterhead) .container,
  body:has(.utcl-report-letterhead) .app-main,
  body:has(.utcl-report-letterhead) .main-content,
  body:has(.utcl-report-letterhead) .content-area,
  body:has(.utcl-report-letterhead) .page-content,
  body:has(.utcl-report-letterhead) .dashboard-content {
    margin:0!important;padding:0!important;max-width:none!important;min-width:0!important;width:100%!important;
    transform:none!important;box-shadow:none!important;border:0!important;overflow:visible!important;
  }
  body:has(.utcl-report-letterhead) .utcl-report-letterhead {
    display:flex!important;align-items:center;justify-content:space-between;gap:15mm;
    border-bottom:2.5px solid #133f76;padding:0 0 7mm;margin:0 0 8mm;break-after:avoid;
  }
  .utcl-report-letterhead img{display:block;width:33mm;max-height:19mm;object-fit:contain;object-position:left center}
  .utcl-report-letterhead__details{flex:1;text-align:right}
  .utcl-report-letterhead__org{font-weight:700;letter-spacing:1.3px;font-size:8pt;color:#234b83!important}
  .utcl-report-letterhead__details h2{font-size:15pt!important;line-height:1.2!important;margin:1mm 0 1.5mm!important;color:#172033!important}
  .utcl-report-letterhead__details p{font-size:9pt;margin:0;color:#4b5563!important}
  body:has(.utcl-report-letterhead) .utcl-print-only{display:block!important}
  body:has(.utcl-report-letterhead) .utcl-print-activity-meta {display:block!important;font-size:9pt;line-height:1.65;margin-top:2mm;color:#27384c}
  body:has(.utcl-report-letterhead) .utcl-print-action-meta{display:block!important;font-size:9pt;white-space:pre-line}
  body:has(.utcl-report-letterhead) .page-head{display:block!important;margin:0 0 5mm!important;padding:0!important}
  body:has(.utcl-report-letterhead) .page-head h1{font-size:14pt!important;margin:0 0 1mm!important;color:#152b47!important;overflow-wrap:anywhere}
  body:has(.utcl-report-letterhead) .page-head p{font-size:9pt!important;color:#475467!important}
  body:has(.utcl-report-letterhead) .summary-strip{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;background:#f3f6fb!important;border:1px solid #d6e0ef!important;margin:0 0 7mm!important;page-break-inside:avoid!important}
  body:has(.utcl-report-letterhead) .summary-strip>div{border:0!important;border-right:1px solid #d6e0ef!important;padding:2.5mm!important;min-width:0!important}
  body:has(.utcl-report-letterhead) .summary-strip>div:last-child{border-right:0!important}
  body:has(.utcl-report-letterhead) .summary-strip span{color:#475467!important;font-size:8pt!important}
  body:has(.utcl-report-letterhead) .summary-strip strong{display:block;font-size:10pt!important;overflow-wrap:anywhere}
  body:has(.utcl-report-letterhead) .card,
  body:has(.utcl-report-letterhead) .activity-entry-card,
  body:has(.utcl-report-letterhead) .workplan-activity-row{border:1px solid #d7dee9!important;box-shadow:none!important;background:white!important;border-radius:3px!important;margin:0 0 4mm!important;break-inside:avoid-page;page-break-inside:avoid}
  body:has(.utcl-report-letterhead) .activity-entry-card h2{font-size:11pt!important}
  body:has(.utcl-report-letterhead) .activity-view-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body:has(.utcl-report-letterhead) .full-field{grid-column:1/-1!important}
  body:has(.utcl-report-letterhead) .two-col{display:block!important}
  body:has(.utcl-report-letterhead) .two-col .card{margin-bottom:4mm!important}
  body:has(.utcl-report-letterhead) .workplan-activity-row{display:block!important;padding:3mm!important}
  body:has(.utcl-report-letterhead) .workplan-activity-row small{display:block!important}
  body:has(.utcl-report-letterhead) .attachment-list{display:block!important}
  body:has(.utcl-report-letterhead) .attachment-row{display:block!important;padding:1mm 0!important}
  body:has(.utcl-report-letterhead) .table-wrap{overflow:visible!important;max-height:none!important;width:100%!important}
  body:has(.utcl-report-letterhead) table{width:100%!important;min-width:0!important;table-layout:fixed!important;border-collapse:collapse!important;font-size:8pt!important}
  body:has(.utcl-report-letterhead) th,body:has(.utcl-report-letterhead) td{padding:1.7mm!important;border:1px solid #cfd7e3!important;text-align:left!important;vertical-align:top!important;white-space:normal!important;word-break:break-word!important}
  body:has(.utcl-report-letterhead) th{position:static!important;background:#183e70!important;color:white!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  body:has(.utcl-report-letterhead) tr{break-inside:avoid-page}
  body:has(.utcl-report-letterhead) .preline,body:has(.utcl-report-letterhead) .preserve-lines{white-space:pre-wrap!important;overflow-wrap:anywhere}
  body:has(.utcl-report-letterhead) h2,body:has(.utcl-report-letterhead) h3{break-after:avoid-page;color:#1c3d67!important}
  body:has(.utcl-report-letterhead) a{color:#174376!important;text-decoration:none!important;overflow-wrap:anywhere}
  .utcl-report-footnote{display:block!important;margin:9mm 0 0;padding:3mm 0 0;border-top:1px solid #dae1ec;font-size:7.5pt;color:#667085!important}
}
