/* PDF Report Stylesheet */
/* 所有樣式限定在 .pdf-report 容器下，避免影響其他頁面 */

.pdf-report {
  font-family: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", "微軟正黑體", sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #333;
  margin: 0;
  padding: 15px 20px;
  background-color: #fff;
}

/* 頁首 */
.pdf-report .report-header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.pdf-report .report-header h1 {
  font-size: 20px;
  color: #1a1a1a;
  margin: 0 0 5px 0;
}

.pdf-report .report-meta {
  font-size: 10px;
  color: #666;
  margin-top: 5px;
}

/* 區塊標題 */
.pdf-report .section-title {
  background-color: #5b9bd5;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  margin: 20px 0 15px 0;
}

.pdf-report .section {
  margin-bottom: 15px;
  page-break-inside: avoid;
}

/* 表格通用樣式 */
.pdf-report table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 15px 0;
  background-color: white;
}

.pdf-report table th {
  background-color: #2b5797;
  color: white;
  padding: 10px 12px;
  text-align: left;
  font-weight: bold;
  font-size: 11px;
}

.pdf-report table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 11px;
}

.pdf-report table tr:last-child td {
  border-bottom: none;
}

.pdf-report table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* 專案詳情表格 */
.pdf-report .info-table th {
  background-color: #2b5797;
  color: white;
  width: 180px;
  font-weight: bold;
}

.pdf-report .info-table td {
  color: #333;
}

/* 統計表格 */
.pdf-report .stats-table th {
  background-color: #2b5797;
  color: white;
  width: 200px;
}

.pdf-report .stats-table td {
  text-align: right;
  font-weight: bold;
  color: #333;
}

/* 趨勢表格 */
.pdf-report .trend-table {
  width: 400px;
}

.pdf-report .trend-table th {
  background-color: #2b5797;
  color: white;
  text-align: center;
}

.pdf-report .trend-table td {
  text-align: center;
}

.pdf-report .trend-table td:last-child {
  text-align: right;
  font-weight: bold;
}

/* Top AR Objects 表格 */
.pdf-report .top-objects-table th {
  background-color: #2b5797;
  color: white;
}

.pdf-report .top-objects-table th:first-child {
  width: 80px;
  text-align: center;
}

.pdf-report .top-objects-table td:first-child {
  text-align: center;
  font-weight: bold;
}

.pdf-report .top-objects-table th:last-child,
.pdf-report .top-objects-table td:last-child {
  width: 100px;
  text-align: right;
  font-weight: bold;
}

/* 圖表樣式 */
.pdf-report .chart-container {
  margin: 15px 0;
  text-align: center;
}

.pdf-report .chart-container img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.pdf-report .chart-title {
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
  font-weight: bold;
}

/* 小標題 */
.pdf-report h3 {
  font-size: 12px;
  margin: 15px 0 8px 0;
  color: #2b5797;
  font-weight: bold;
}

/* 列表 */
.pdf-report ul {
  margin: 8px 0;
  padding-left: 20px;
}

.pdf-report li {
  margin: 4px 0;
  font-size: 10px;
}

/* 輔助資訊 */
.pdf-report .meta-info {
  font-size: 10px;
  color: #666;
  margin: 5px 0 10px 0;
  font-style: italic;
}

/* 頁尾 */
.pdf-report .footer {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 9px;
  color: #888;
}

.pdf-report .footer-content {
  width: 100%;
}

.pdf-report .footer-left {
  float: left;
  width: 50%;
  text-align: left;
}

.pdf-report .footer-right {
  float: right;
  width: 50%;
  text-align: right;
}

/* 分頁 */
.pdf-report .page-break {
  page-break-after: always;
}
