/* 손익 표 인쇄에서 화면 테마 색을 제거하고 흑백 합계 구분을 유지한다. */
@media print {
  :root:has(body.subject-report-printing) {
    background: #fff !important;
    color-scheme: light;
  }

  :root body.subject-report-printing,
  :root body.subject-report-printing #appScreen,
  :root body.subject-report-printing #appScreen main,
  :root body.subject-report-printing #appScreen .panel,
  :root body.subject-report-printing #tab-subject-report {
    background: #fff !important;
    color: #111 !important;
    border-color: transparent !important;
  }

  :root body.subject-report-printing #tab-subject-report h2,
  :root body.subject-report-printing #subjectReportSummary,
  :root body.subject-report-printing #subjectReportSummary * {
    color: #111 !important;
  }

  :root body.subject-report-printing #tab-subject-report th,
  :root body.subject-report-printing #tab-subject-report td {
    background: #fff !important;
    color: #111 !important;
    border-color: #555 !important;
  }

  :root body.subject-report-printing #tab-subject-report td {
    font-weight: 400 !important;
  }

  :root body.subject-report-printing #tab-subject-report th *,
  :root body.subject-report-printing #tab-subject-report td * {
    color: #111 !important;
    font-weight: inherit !important;
  }

  :root body.subject-report-printing #tab-subject-report thead th {
    background: #eef2f6 !important;
    color: #111 !important;
    font-weight: 800 !important;
  }

  :root body.subject-report-printing #tab-subject-report .subject-report-summary-group-row td,
  :root body.subject-report-printing #tab-subject-report .subject-report-key-total-row td,
  :root body.subject-report-printing #tab-subject-report tfoot td {
    background: #d1d5db !important;
    font-weight: 900 !important;
    border-top: 1.5px solid #111 !important;
    border-bottom: 1.5px solid #111 !important;
  }

  :root body.subject-report-printing #tab-subject-report .subject-report-subtotal-cell {
    background: #d1d5db !important;
  }
}
