/* ========== 日計表 ========== */

.report-area {
  padding: 10px 0;
}

.report-page {
  background: #fff;
  padding: 20px 25px;
  margin: 0 auto;
  max-width: 1200px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.report-header {
  text-align: center;
  margin-bottom: 15px;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
}

.report-title {
  margin: 0;
  font-weight: bold;
  letter-spacing: 0.3em;
  font-size: 1.8rem;
}

.report-date {
  margin-top: 5px;
  font-size: 1.1rem;
  color: #333;
}

.report-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 15px;
  background: #f0f4f8;
  border-left: 4px solid #0d6efd;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.report-section {
  margin-bottom: 22px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: bold;
  border-bottom: 1px solid #0d6efd;
  padding-bottom: 4px;
  margin-bottom: 8px;
  color: #0d6efd;
}

.report-table {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.report-table th,
.report-table td {
  padding: 4px 8px;
  vertical-align: middle;
}

.report-table thead th {
  font-weight: bold;
  background: #f5f5f5;
  text-align: center;
}

.report-table .subtotal-row {
  background: #f8f9fa;
}

.report-table .total-row {
  background: #e7f1ff;
  border-top: 2px solid #0d6efd;
}

.report-table code {
  color: #495057;
  background: transparent;
  font-size: 0.85em;
}

/* ========== 印刷 ========== */

@media print {
  body {
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .no-print {
    display: none !important;
  }

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

  .report-area {
    overflow: visible !important;
    padding: 0;
  }

  .report-page {
    box-shadow: none;
    padding: 8mm 10mm;
    max-width: none;
  }

  .report-table {
    font-size: 9pt;
  }

  .section-title {
    font-size: 10pt;
    color: #000 !important;
    border-bottom-color: #000 !important;
  }

  .report-summary-bar {
    background: #f5f5f5 !important;
    border-left-color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-table thead th {
    background: #eaeaea !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-table .total-row {
    background: #e8e8e8 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  @page {
    size: A4 portrait;
    margin: 12mm;
  }
}
