/* HD Hydrogen - Reports v2.0 Styles */

/* Report Controls */
.report-controls {
  display: flex;
  align-items: flex-end;
  gap: var(--spacing-xl);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.control-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-range-picker {
  display: flex;
  gap: var(--spacing-xs);
  background: var(--bg-tertiary);
  padding: 4px;
  border-radius: var(--radius-md);
}

.date-btn {
  padding: var(--spacing-sm) var(--spacing-md);
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.date-btn:hover {
  color: var(--hd-primary);
}

.date-btn.active {
  background: var(--bg-card);
  color: var(--hd-primary);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.select-input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  min-width: 200px;
  cursor: pointer;
}

.select-input:focus {
  outline: none;
  border-color: var(--hd-primary);
}

.control-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-left: auto;
}

/* Report Preview Container */
.report-preview-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

.preview-header h2 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.preview-header h2 svg {
  width: 20px;
  height: 20px;
  color: var(--hd-primary);
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* 페이지 네비게이션 */
.page-navigation {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.page-navigation .btn {
  padding: 6px 10px;
  min-width: auto;
}

.page-navigation .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-indicator {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0 var(--spacing-sm);
  min-width: 50px;
  text-align: center;
}

.page-indicator #currentPage {
  color: var(--hd-primary);
}

/* Report Preview */
.report-preview {
  padding: var(--spacing-xl);
  background: var(--bg-tertiary);
  display: flex;
  justify-content: center;
  min-height: 600px;
  overflow: auto;
}

/* A4 Page Styling */
.report-page {
  width: 210mm;
  min-height: 297mm;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 20mm;
  color: #1a1a2e;
  font-size: 11pt;
  line-height: 1.6;
}

[data-theme="dark"] .report-page {
  background: #fff;
  color: #1a1a2e;
}

/* Report Header */
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 15mm;
  border-bottom: 2px solid #0066B3;
  margin-bottom: 10mm;
}

.report-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.report-logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.report-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.report-logo-text {
  display: flex;
  flex-direction: column;
}

.report-logo-text strong {
  font-size: 18pt;
  color: #0066B3;
}

.report-logo-text span {
  font-size: 10pt;
  color: #666;
}

.report-info {
  text-align: right;
}

.report-date {
  font-size: 14pt;
  font-weight: 700;
  color: #1a1a2e;
}

.report-id {
  font-size: 9pt;
  color: #999;
}

/* Report Sections */
.report-section {
  margin-bottom: 8mm;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12pt;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 5mm;
  padding-bottom: 2mm;
  border-bottom: 1px solid #e0e4e8;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #0066B3;
  color: white;
  border-radius: 4px;
  font-size: 10pt;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4mm;
}

.summary-card {
  padding: 4mm;
  border-radius: 4px;
  background: #f5f7fa;
  border-left: 3px solid #0066B3;
}

.summary-card.blue { border-left-color: #0066B3; }
.summary-card.green { border-left-color: #00A651; }
.summary-card.teal { border-left-color: #00BCD4; }
.summary-card.purple { border-left-color: #9C27B0; }

.summary-label {
  font-size: 8pt;
  color: #666;
  margin-bottom: 1mm;
}

.summary-value {
  font-size: 16pt;
  font-weight: 700;
  color: #1a1a2e;
}

.summary-change {
  font-size: 8pt;
  margin-top: 1mm;
}

.summary-change.up { color: #00A651; }
.summary-change.down { color: #E53935; }
.summary-change.neutral { color: #666; }

/* Chart Wrapper */
.chart-wrapper {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 4mm;
  margin-top: 3mm;
}

.chart-wrapper.small {
  flex: 0 0 45%;
}

/* Report Table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9pt;
  margin-top: 3mm;
}

.report-table th,
.report-table td {
  padding: 3mm 2mm;
  text-align: left;
  border-bottom: 1px solid #e0e4e8;
}

.report-table th {
  font-weight: 600;
  color: #666;
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #f5f7fa;
}

.report-table td {
  color: #1a1a2e;
}

.progress-mini {
  display: flex;
  align-items: center;
  gap: 2mm;
}

.progress-bar-mini {
  height: 6px;
  background: #0066B3;
  border-radius: 3px;
  flex: 1;
  max-width: 60px;
}

.progress-mini.warning .progress-bar-mini {
  background: #F5A623;
}

.status-badge {
  display: inline-block;
  padding: 1mm 3mm;
  border-radius: 3px;
  font-size: 8pt;
  font-weight: 500;
}

.status-badge.success {
  background: rgba(0, 166, 81, 0.1);
  color: #00A651;
}

.status-badge.warning {
  background: rgba(245, 166, 35, 0.1);
  color: #F5A623;
}

/* Two Column Layout */
.two-column {
  display: flex;
  gap: 5mm;
  align-items: flex-start;
}

.cost-breakdown {
  flex: 1;
}

.cost-item {
  display: flex;
  align-items: center;
  gap: 3mm;
  padding: 2mm 0;
  border-bottom: 1px solid #e0e4e8;
}

.cost-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.cost-label {
  flex: 1;
  font-size: 9pt;
  color: #666;
}

.cost-value {
  font-size: 9pt;
  font-weight: 600;
  color: #1a1a2e;
}

.cost-total {
  display: flex;
  justify-content: space-between;
  padding-top: 3mm;
  margin-top: 2mm;
  font-weight: 700;
  font-size: 10pt;
  color: #1a1a2e;
}

/* Notes & Recommendations Section */
.notes-content {
  display: flex;
  flex-direction: column;
  gap: 3mm;
  margin-top: 3mm;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 3mm;
  padding: 3mm;
  background: #f8f9fa;
  border-radius: 4px;
  border-left: 3px solid #e0e4e8;
}

.note-item:has(.note-icon.success) {
  border-left-color: #00A651;
  background: rgba(0, 166, 81, 0.05);
}

.note-item:has(.note-icon.warning) {
  border-left-color: #F5A623;
  background: rgba(245, 166, 35, 0.05);
}

.note-item:has(.note-icon.info) {
  border-left-color: #0066B3;
  background: rgba(0, 102, 179, 0.05);
}

.note-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.note-icon svg {
  width: 14px;
  height: 14px;
}

.note-icon.success {
  color: #00A651;
}

.note-icon.warning {
  color: #F5A623;
}

.note-icon.info {
  color: #0066B3;
}

.note-text {
  font-size: 9pt;
  color: #333;
  line-height: 1.5;
}

.note-text strong {
  color: #1a1a2e;
}

/* Report Footer */
.report-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 5mm;
  margin-top: auto;
  border-top: 1px solid #e0e4e8;
  font-size: 8pt;
  color: #999;
}

/* ==================== Page 3 Styles ==================== */

/* System Efficiency Analysis */
.efficiency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
  margin-bottom: 4mm;
}

.efficiency-card {
  padding: 4mm;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e0e4e8;
}

.efficiency-card.highlight {
  background: rgba(0, 166, 81, 0.08);
  border-color: #00A651;
}

.efficiency-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2mm;
}

.efficiency-icon svg {
  width: 18px;
  height: 18px;
}

.efficiency-icon.electric {
  background: rgba(0, 102, 179, 0.1);
  color: #0066B3;
}

.efficiency-icon.heat {
  background: rgba(229, 57, 53, 0.1);
  color: #E53935;
}

.efficiency-icon.total {
  background: rgba(0, 166, 81, 0.1);
  color: #00A651;
}

.efficiency-info {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}

.efficiency-label {
  font-size: 8pt;
  color: #666;
}

.efficiency-value {
  font-size: 16pt;
  font-weight: 700;
  color: #1a1a2e;
}

.efficiency-target {
  font-size: 7pt;
  color: #999;
}

.efficiency-bar {
  height: 4px;
  background: #e0e4e8;
  border-radius: 2px;
  margin-top: 2mm;
  overflow: hidden;
}

.efficiency-fill {
  height: 100%;
  background: #0066B3;
  border-radius: 2px;
}

.efficiency-fill.success {
  background: #00A651;
}

.efficiency-fill.warning {
  background: #F5A623;
}

/* Efficiency Comparison */
.efficiency-comparison {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 4mm;
}

.comparison-title {
  font-size: 9pt;
  font-weight: 600;
  color: #666;
  margin-bottom: 3mm;
  display: block;
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 2mm;
}

.comparison-item {
  display: grid;
  grid-template-columns: 70px 1fr 50px;
  align-items: center;
  gap: 3mm;
}

.comparison-label {
  font-size: 8pt;
  color: #666;
}

.comparison-bar {
  height: 12px;
  background: #e0e4e8;
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 2px;
}

.bar-fill.sofc {
  background: linear-gradient(90deg, #0066B3, #00A651);
}

.bar-fill.other {
  background: #999;
}

.comparison-value {
  font-size: 9pt;
  font-weight: 600;
  color: #1a1a2e;
  text-align: right;
}

/* Stack Note */
.stack-note {
  display: flex;
  align-items: center;
  gap: 2mm;
  padding: 3mm;
  background: rgba(0, 102, 179, 0.05);
  border-radius: 4px;
  margin-top: 3mm;
  font-size: 8pt;
  color: #0066B3;
}

.stack-note svg {
  width: 14px;
  height: 14px;
}

/* Environmental Metrics Grid */
.env-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
  margin-bottom: 4mm;
}

.env-metric-card {
  display: flex;
  align-items: center;
  gap: 3mm;
  padding: 4mm;
  border-radius: 4px;
  background: #f8f9fa;
}

.env-metric-card.green {
  background: rgba(0, 166, 81, 0.08);
  border-left: 3px solid #00A651;
}

.env-metric-card.blue {
  background: rgba(0, 102, 179, 0.08);
  border-left: 3px solid #0066B3;
}

.env-metric-card.teal {
  background: rgba(0, 188, 212, 0.08);
  border-left: 3px solid #00BCD4;
}

.env-metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.env-metric-icon svg {
  width: 18px;
  height: 18px;
}

.env-metric-card.green .env-metric-icon { color: #00A651; }
.env-metric-card.blue .env-metric-icon { color: #0066B3; }
.env-metric-card.teal .env-metric-icon { color: #00BCD4; }

.env-metric-info {
  display: flex;
  flex-direction: column;
}

.env-metric-value {
  font-size: 18pt;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}

.env-metric-unit {
  font-size: 9pt;
  color: #666;
  margin-left: 1mm;
}

.env-metric-label {
  font-size: 8pt;
  color: #666;
  margin-top: 1mm;
}

/* Environmental Comparison Table */
.env-comparison-table {
  margin-top: 3mm;
}

.report-table.compact th,
.report-table.compact td {
  padding: 2mm;
  font-size: 8pt;
}

/* Fuel Analysis Grid */
.fuel-analysis-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 5mm;
  margin-top: 3mm;
}

.fuel-usage-chart {
  display: flex;
  flex-direction: column;
  gap: 3mm;
}

.fuel-item {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}

.fuel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fuel-name {
  font-size: 9pt;
  color: #666;
}

.fuel-percent {
  font-size: 9pt;
  font-weight: 600;
  color: #1a1a2e;
}

.fuel-bar {
  height: 10px;
  background: #e0e4e8;
  border-radius: 5px;
  overflow: hidden;
}

.fuel-fill {
  height: 100%;
  border-radius: 5px;
}

.fuel-fill.lng {
  background: linear-gradient(90deg, #F5A623, #FFD54F);
}

.fuel-fill.biogas {
  background: linear-gradient(90deg, #00A651, #4DC47D);
}

.fuel-fill.h2 {
  background: linear-gradient(90deg, #0066B3, #42A5F5);
}

.fuel-amount {
  font-size: 8pt;
  color: #999;
  text-align: right;
}

/* Reformer Status */
.reformer-status {
  background: #f8f9fa;
  border-radius: 4px;
  padding: 4mm;
  border: 1px solid #e0e4e8;
}

.reformer-title {
  font-size: 10pt;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 3mm;
  padding-bottom: 2mm;
  border-bottom: 1px solid #e0e4e8;
}

.reformer-metrics {
  display: flex;
  flex-direction: column;
  gap: 3mm;
}

.reformer-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reformer-metric .metric-label {
  font-size: 9pt;
  color: #666;
}

.reformer-metric .metric-value {
  font-size: 10pt;
  font-weight: 600;
  color: #0066B3;
}

/* KPI Grid - Page 1 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4mm;
  margin-top: 3mm;
}

.kpi-item {
  display: flex;
  align-items: center;
  gap: 3mm;
  padding: 4mm;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e0e4e8;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon svg {
  width: 16px;
  height: 16px;
}

.kpi-icon.electric {
  background: rgba(0, 102, 179, 0.1);
  color: #0066B3;
}

.kpi-icon.heat {
  background: rgba(229, 57, 53, 0.1);
  color: #E53935;
}

.kpi-icon.total {
  background: rgba(0, 166, 81, 0.1);
  color: #00A651;
}

.kpi-icon.env {
  background: rgba(0, 188, 212, 0.1);
  color: #00BCD4;
}

.kpi-content {
  display: flex;
  flex-direction: column;
  gap: 0.5mm;
}

.kpi-label {
  font-size: 8pt;
  color: #666;
}

.kpi-value {
  font-size: 14pt;
  font-weight: 700;
  color: #1a1a2e;
}

.kpi-status {
  font-size: 7pt;
  padding: 1mm 2mm;
  border-radius: 2px;
  display: inline-block;
  width: fit-content;
}

.kpi-status.success {
  background: rgba(0, 166, 81, 0.1);
  color: #00A651;
}

.kpi-status.warning {
  background: rgba(245, 166, 35, 0.1);
  color: #F5A623;
}

/* Lifecycle Grid - Page 3 */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4mm;
  margin-top: 3mm;
}

.lifecycle-card {
  display: flex;
  align-items: center;
  gap: 3mm;
  padding: 4mm;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e0e4e8;
}

.lifecycle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 102, 179, 0.1);
  color: #0066B3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lifecycle-icon svg {
  width: 16px;
  height: 16px;
}

.lifecycle-icon.warning {
  background: rgba(245, 166, 35, 0.1);
  color: #F5A623;
}

.lifecycle-icon.success {
  background: rgba(0, 166, 81, 0.1);
  color: #00A651;
}

.lifecycle-content {
  display: flex;
  flex-direction: column;
  gap: 0.5mm;
}

.lifecycle-label {
  font-size: 8pt;
  color: #666;
}

.lifecycle-value {
  font-size: 14pt;
  font-weight: 700;
  color: #1a1a2e;
}

.lifecycle-sub {
  font-size: 7pt;
  color: #999;
}

/* Environmental Note */
.env-note {
  display: flex;
  align-items: center;
  gap: 2mm;
  padding: 3mm;
  background: rgba(0, 166, 81, 0.08);
  border-radius: 4px;
  margin-top: 3mm;
  font-size: 8pt;
  color: #00A651;
  border-left: 3px solid #00A651;
}

.env-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Summary Highlights - Page 4 */
.summary-highlights {
  display: flex;
  flex-direction: column;
  gap: 3mm;
  margin-top: 3mm;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 3mm;
  padding: 4mm;
  border-radius: 4px;
  background: #f8f9fa;
}

.highlight-item.success {
  background: rgba(0, 166, 81, 0.08);
  border-left: 3px solid #00A651;
}

.highlight-item.info {
  background: rgba(0, 102, 179, 0.08);
  border-left: 3px solid #0066B3;
}

.highlight-item.warning {
  background: rgba(245, 166, 35, 0.08);
  border-left: 3px solid #F5A623;
}

.highlight-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 16px;
  height: 16px;
}

.highlight-item.success .highlight-icon {
  color: #00A651;
}

.highlight-item.info .highlight-icon {
  color: #0066B3;
}

.highlight-item.warning .highlight-icon {
  color: #F5A623;
}

.highlight-content {
  display: flex;
  flex-direction: column;
  gap: 1mm;
}

.highlight-content strong {
  font-size: 10pt;
  color: #1a1a2e;
}

.highlight-content span {
  font-size: 9pt;
  color: #666;
  line-height: 1.4;
}

/* Templates Grid */
.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.template-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
}

.template-card:hover {
  background: var(--bg-hover);
  border-color: var(--hd-primary);
}

.template-card.active {
  background: rgba(var(--hd-primary-rgb), 0.1);
  border-color: var(--hd-primary);
}

.template-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hd-primary);
}

.template-icon svg {
  width: 24px;
  height: 24px;
}

.template-info {
  flex: 1;
}

.template-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.template-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* 인쇄 모드 클래스 - JavaScript에서 추가 */
.print-mode .report-page {
  display: block !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Print Styles */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  @page {
    size: A4 portrait;
    margin: 0;
  }

  html, body {
    width: 210mm !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    overflow: visible !important;
  }

  .app-container {
    display: block !important;
    width: 210mm !important;
    height: auto !important;
    overflow: visible !important;
  }

  .sidebar,
  .header,
  .report-controls,
  .preview-header,
  .preview-actions,
  .page-navigation,
  .card:last-child,
  section.card {
    display: none !important;
  }

  .main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 210mm !important;
    height: auto !important;
    overflow: visible !important;
  }

  .report-preview-container {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    height: auto !important;
  }

  .report-preview {
    padding: 0 !important;
    background: none !important;
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    min-height: auto !important;
  }

  /* 핵심: 모든 페이지 강제 표시 */
  .report-page,
  #reportPage1,
  #reportPage2,
  #reportPage3,
  #reportPage4 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    box-shadow: none !important;
    width: 210mm !important;
    min-height: 297mm !important;
    height: auto !important;
    max-height: none !important;
    padding: 12mm 15mm !important;
    margin: 0 !important;
    page-break-after: always !important;
    page-break-inside: avoid !important;
    overflow: visible !important;
    background: white !important;
  }

  .report-page:last-child,
  #reportPage4 {
    page-break-after: avoid !important;
  }

  /* 차트 인쇄 최적화 */
  .chart-wrapper canvas {
    max-width: 100% !important;
    height: auto !important;
  }

  /* 테이블 인쇄 최적화 */
  .report-table {
    font-size: 8pt !important;
  }

  .report-table th,
  .report-table td {
    padding: 2mm 1.5mm !important;
  }

  /* 섹션 간격 최적화 */
  .report-section {
    margin-bottom: 5mm !important;
  }

  /* Footer는 상대 위치로 */
  .report-footer {
    margin-top: auto;
    padding-top: 3mm;
  }

  /* 페이지 내 콘텐츠 레이아웃 */
  .report-page {
    display: flex !important;
    flex-direction: column !important;
  }

  /* 효율 그리드 인쇄 최적화 */
  .efficiency-grid {
    gap: 3mm !important;
  }

  .efficiency-card {
    padding: 3mm !important;
  }

  .efficiency-value {
    font-size: 14pt !important;
  }

  /* 환경 메트릭 인쇄 최적화 */
  .env-metrics-grid {
    gap: 3mm !important;
  }

  .env-metric-card {
    padding: 3mm !important;
  }

  .env-metric-value {
    font-size: 14pt !important;
  }

  /* 연료 분석 그리드 인쇄 최적화 */
  .fuel-analysis-grid {
    gap: 4mm !important;
  }

  /* 하이라이트 아이템 인쇄 최적화 */
  .summary-highlights {
    gap: 2mm !important;
  }

  .highlight-item {
    padding: 3mm !important;
  }

  /* 리포트 헤더 인쇄 최적화 */
  .report-header {
    padding-bottom: 8mm !important;
    margin-bottom: 6mm !important;
  }

  .report-logo-icon {
    width: 36px !important;
    height: 36px !important;
  }

  .report-logo-text strong {
    font-size: 14pt !important;
  }

  .report-logo-text span {
    font-size: 8pt !important;
  }

  .report-date {
    font-size: 12pt !important;
  }

  /* 섹션 타이틀 인쇄 최적화 */
  .section-title {
    font-size: 11pt !important;
    margin-bottom: 3mm !important;
    padding-bottom: 1mm !important;
  }

  .section-number {
    width: 20px !important;
    height: 20px !important;
    font-size: 9pt !important;
  }

  /* 요약 카드 인쇄 최적화 */
  .summary-cards {
    gap: 3mm !important;
  }

  .summary-card {
    padding: 3mm !important;
  }

  .summary-value {
    font-size: 14pt !important;
  }

  .summary-label,
  .summary-change {
    font-size: 7pt !important;
  }

  /* 차트 영역 인쇄 최적화 */
  .chart-wrapper {
    padding: 3mm !important;
    margin-top: 2mm !important;
  }

  .chart-wrapper.small {
    max-height: 45mm !important;
  }

  .chart-wrapper.small canvas {
    max-height: 40mm !important;
  }

  /* 1페이지 메인 차트 */
  #reportChart1 {
    max-height: 50mm !important;
  }

  /* 비용 분석 인쇄 최적화 */
  .two-column {
    gap: 3mm !important;
  }

  .cost-item {
    padding: 1.5mm 0 !important;
  }

  .cost-label,
  .cost-value {
    font-size: 8pt !important;
  }

  /* 노트 인쇄 최적화 */
  .note-item {
    padding: 2mm !important;
  }

  .note-text {
    font-size: 8pt !important;
  }

  .note-icon {
    width: 16px !important;
    height: 16px !important;
  }

  .note-icon svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* 스택 노트 인쇄 최적화 */
  .stack-note {
    padding: 2mm !important;
    font-size: 7pt !important;
  }

  /* 환경 노트 인쇄 최적화 */
  .env-note {
    padding: 2mm !important;
    font-size: 7pt !important;
  }

  /* 효율 비교 인쇄 최적화 */
  .efficiency-comparison {
    padding: 3mm !important;
  }

  .comparison-title {
    font-size: 8pt !important;
    margin-bottom: 2mm !important;
  }

  .comparison-item {
    gap: 2mm !important;
  }

  .comparison-label,
  .comparison-value {
    font-size: 7pt !important;
  }

  .comparison-bar {
    height: 10px !important;
  }

  /* 개질기 상태 인쇄 최적화 */
  .reformer-status {
    padding: 3mm !important;
  }

  .reformer-title {
    font-size: 9pt !important;
    margin-bottom: 2mm !important;
    padding-bottom: 1mm !important;
  }

  .reformer-metric .metric-label {
    font-size: 8pt !important;
  }

  .reformer-metric .metric-value {
    font-size: 9pt !important;
  }

  /* 연료 바 인쇄 최적화 */
  .fuel-item {
    gap: 0.5mm !important;
  }

  .fuel-name,
  .fuel-percent,
  .fuel-amount {
    font-size: 8pt !important;
  }

  .fuel-bar {
    height: 8px !important;
  }

  /* KPI 그리드 인쇄 최적화 */
  .kpi-grid {
    gap: 3mm !important;
  }

  .kpi-item {
    padding: 3mm !important;
  }

  .kpi-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .kpi-icon svg {
    width: 12px !important;
    height: 12px !important;
  }

  .kpi-value {
    font-size: 12pt !important;
  }

  .kpi-label {
    font-size: 7pt !important;
  }

  .kpi-status {
    font-size: 6pt !important;
    padding: 0.5mm 1.5mm !important;
  }

  /* Lifecycle 그리드 인쇄 최적화 */
  .lifecycle-grid {
    gap: 3mm !important;
  }

  .lifecycle-card {
    padding: 3mm !important;
  }

  .lifecycle-icon {
    width: 24px !important;
    height: 24px !important;
  }

  .lifecycle-icon svg {
    width: 12px !important;
    height: 12px !important;
  }

  .lifecycle-value {
    font-size: 12pt !important;
  }

  .lifecycle-label {
    font-size: 7pt !important;
  }

  .lifecycle-sub {
    font-size: 6pt !important;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .report-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .control-actions {
    margin-left: 0;
    margin-top: var(--spacing-md);
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .report-page {
    width: 100%;
    min-height: auto;
    padding: 10mm;
  }

  .summary-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
