:root {
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --row: #fafaf8;
  --accent: #0ea5e9;
  --primary: #0aa3b5;
}
/* * {
  box-sizing: border-box;
} */
/* html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: "Pretendard", system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic",
    "맑은 고딕", sans-serif;
  color: var(--text);
  background: #fff;
} */
.report {
  max-width: 1000px;
  margin: 24px auto 60px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.section-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  margin: 0px 0 10px;
}
.section-title > c {
  color: var(--primary);
}

.title_line {
  height: 8px;
  width: 200px;
  margin-bottom: 10px;
  display: flex;
  gap: 4px;
  align-items: center;
}

.dash {
  height: 5px;
  width: 10px;
  background: var(--primary);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  margin: 0 0 16px;
  table-layout: fixed;
}

.cost-table > tbody > tr > td:nth-child(1) {
  width: 300px !important;
  min-width: 300px;
  max-width: 300px;
}

.benefit-table > tbody > tr > td:nth-child(1),
.return-table > tbody > tr > td:nth-child(1),
.npv-table > tbody > tr > td:nth-child(1) {
  width: 350px !important;
  min-width: 350px;
  max-width: 350px;
}

thead > tr > th:first-child {
  width: 350px !important;
  min-width: 350px;
  max-width: 350px;
}

.table th {
  height: 60px !important;
}

.table th,
.table td {
  border: none;
  height: 52px;
  padding: 12px 16px;
  font-size: 13px;
  text-align: center;
}
.table td:first-child,
.table th:first-child {
  text-align: left;
}

.table th {
  font-weight: 600;
  color: #6a6e73;
  font-size: 17px;
  border-bottom: 2px solid #e5e7eb;
}
.table .sub td {
  color: #6a6e73;
  font-weight: 400;
  font-size: 13px;
  height: 40px !important;
  padding: 8px 16px;
}
.table .total td {
  background: #fffdf1;
  font-weight: 600;
}

tbody > .total {
  display: flex;
  width: 100%;
  background: #fffdf1;
  font-weight: 400;
  font-size: 16px;
  margin-top: 0px !important;
}

tbody > .total > td:first-child {
  width: 350px;
  padding: 12px 16px;
  text-align: left;
}

tbody > .total > td:not(:first-child) {
  width: 150px;
  min-width: 122px;
  /* max-width: 150px; */
  padding: 12px 16px;
  text-align: center;
}

div .total {
  display: flex;
  width: 100%;
  background: #fffdf1;
  font-weight: 400;
  font-size: 16px;
  border-radius: 4px;
  margin-top: 8px;
}

.total > div:first-child {
  width: 350px;
  padding: 12px 16px;
  text-align: left;
}

.total > div:not(:first-child) {
  width: 150px;
  padding: 12px 16px;
  text-align: center;
}

.table .muted td {
  background: #f9fafb;
  color: var(--muted);
  font-weight: 600;
}
.table .em {
  color: #ef4444;
  font-weight: 700;
}
.inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  margin: 6px 0;
}
.caption {
  font-size: 12px;
  color: var(--muted);
}

.capital-input {
  color: #3c4045;
  font-size: 16px;
  font-weight: 400;
  padding-left: 32px;
  width: 350px;
  border: none;
  height: 52px;
}

.pill {
  height: 40px;
  width: 150px;
  padding: 0 12px;
  border-radius: 8px;
  border: none;
  background: #fecd7b;
  color: #6a6e73;
  cursor: pointer;
}
.small-gap {
  margin-top: 6px;
}
.note {
  font-size: 11px;
  color: var(--muted);
  margin: 8px 0;
}
.chart-section {
  margin: 28px 0;
}
.chart {
  height: 420px;
  background: #117981;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.btn {
  min-width: 140px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.btn.secondary {
  background: #0f96a8;
  border-color: #0f96a8;
  color: #fff;
}

/* 프린트 시 actions 클래스 숨김 및 report 최적화 */
@media print {
  .actions {
    display: none !important;
  }
  .btnbox {
    display: none !important;
  }

  /* report 클래스 프린트 최적화 */
  .report {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
  }

  /* 페이지 브레이크 방지 */
  .report > * {
    page-break-inside: avoid;
  }

  /* 차트 크기 조정 */
  canvas {
    max-width: 100% !important;
    height: auto !important;
  }
}
