/* Reports use the browser's print preview; never submit directly to a printer. */
#gc-report-print-context { display: none; }
@page gc-report { size: letter portrait; margin: .5in; }
@media print {
  html:has(#reports.active-view),
  html body:has(#reports.active-view) {
    width: auto !important; min-width: 0 !important; height: auto !important;
    min-height: 0 !important; max-height: none !important; overflow: visible !important;
    margin: 0 !important; padding: 0 !important; background: white !important;
  }
  /* Assign the named page at the root: assigning it only to body can emit an
     empty default page before the first report page in native Chrome preview. */
  html:has(#reports.active-view) { page: gc-report; }
  html body:has(#reports.active-view) { font: 10pt/1.4 Arial, sans-serif !important; }
  html body:has(#reports.active-view) > :not(.app-shell),
  html body:has(#reports.active-view) .app-shell > :not(main),
  html body:has(#reports.active-view) main > :not(#reports) { display: none !important; }
  html body:has(#reports.active-view) :is(.app-shell, main, #reports) {
    display: block !important; position: static !important; transform: none !important;
    width: auto !important; min-width: 0 !important; max-width: none !important;
    height: auto !important; min-height: 0 !important; max-height: none !important;
    overflow: visible !important; margin: 0 !important; padding: 0 !important;
    contain: none !important; animation: none !important;
  }
  html body:has(#reports.active-view) #reports * {
    color: #111 !important; background-color: transparent !important;
    box-shadow: none !important; text-shadow: none !important; opacity: 1 !important;
    transform: none !important; animation: none !important;
  }
  html body:has(#reports.active-view) #reports :is(button, select, input, .quick-actions, .gc-books-actions, .gc-table-controls, .gc-table-controls-popover) { display: none !important; }
  html body:has(#reports.active-view)[data-gc-report-print="financial"] #reports > :not(#gc-bookkeeper-report):not(#gc-report-print-context),
  html body:has(#reports.active-view)[data-gc-report-print="analytics"] #reports #gc-bookkeeper-report { display: none !important; }
  html body:has(#reports.active-view) #gc-report-print-context {
    display: block !important; border-bottom: 2px solid #111; padding-bottom: 6pt;
    margin-bottom: 12pt; font-size: 9pt; font-weight: bold;
  }
  html body:has(#reports.active-view) #reports :is(.page-heading, .gc-books-head) { display: block !important; margin: 0 0 12pt !important; padding: 0 !important; border: 0 !important; }
  html body:has(#reports.active-view) #reports h1 { font-size: 20pt !important; }
  html body:has(#reports.active-view) #reports h2 { font-size: 14pt !important; }
  html body:has(#reports.active-view) #reports h3 { font-size: 11pt !important; }
  html body:has(#reports.active-view) #reports :is(h1,h2,h3,.card-title) { break-after: avoid; }
  html body:has(#reports.active-view) #reports :is(.two-col,.gc-books,.gc-books-grid,.gc-recognition-grid,.gc-repair-learning) { display: block !important; }
  html body:has(#reports.active-view) #reports :is(.report-metrics,.gc-books-kpis) { display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 8pt !important; margin-bottom: 12pt !important; }
  html body:has(#reports.active-view) #reports :is(article,.gc-books-card,.gc-books-kpi,.card) {
    min-width: 0 !important; width: auto !important; max-width: 100% !important;
    height: auto !important; max-height: none !important; overflow: visible !important;
    border: 1px solid #bbb !important; border-radius: 0 !important;
    padding: 10pt !important; margin: 0 0 10pt !important; break-inside: avoid;
  }
  html body:has(#reports.active-view) #reports :is(.report-metrics,.gc-books-kpis) article { margin: 0 !important; }
  html body:has(#reports.active-view) #reports :is(.table-wrap,.gc-books-table) { overflow: visible !important; max-height: none !important; }
  html body:has(#reports.active-view) #reports table { width: 100% !important; min-width: 0 !important; table-layout: auto !important; border-collapse: collapse !important; }
  html body:has(#reports.active-view) #reports :is(th,td) { font-size: 9pt !important; padding: 5pt !important; white-space: normal !important; overflow-wrap: anywhere; border-bottom: 1px solid #ccc !important; }
  html body:has(#reports.active-view) #reports :is(th,td:last-child) { overflow-wrap: normal; }
  html body:has(#reports.active-view) #reports td:last-child { white-space: nowrap !important; }
  html body:has(#reports.active-view) #reports thead { display: table-header-group; }
  html body:has(#reports.active-view) #reports tr { break-inside: avoid; }
  html body:has(#reports.active-view) #reports :is(.subtle,.gc-books-muted,.gc-books-note,.gc-empty-report) { font-size: 9pt !important; }
  html body:has(#reports.active-view) #reports :is(.gc-books-kpi,.report-metrics article) > :is(small,strong,span) { display: block; }
  html body:has(#reports.active-view) #reports :is(.gc-books-kpi,.report-metrics article) > strong { font-size: 16pt !important; }
  html body:has(#reports.active-view) #reports :is(.bar-chart,.gc-books-chart) { max-height: 120pt !important; break-inside: avoid; }
  html body:has(#reports.active-view) #reports :is(.bar-column span,.gc-books-bar i,.pipeline-chart b,.comparison-bars b) { background: #444 !important; print-color-adjust: exact; }
}


@media print {
  html body:has(#reports.active-view)[data-gc-report-print="eod"] #reports>:not(#gc-reconciliation-center):not(#gc-report-print-context){display:none!important}
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table-wrap{overflow:visible!important}
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table,
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table tbody,
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table tr,
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table td:last-child{display:block!important;width:auto!important;border:0!important;padding:0!important}
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table thead,
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-recon-table td:not(:last-child),
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-eod-history-detail summary{display:none!important}
  html body:has(#reports.active-view)[data-gc-report-print="eod"] .gc-eod-history-report{max-width:none!important;min-width:0!important;break-inside:avoid;margin:12pt 0!important;padding:12pt!important}
}
