/* 비비조경 견적서 출력 양식 (엑셀 양식 그대로) */
.qp {
  width: 760px;
  padding: 32px 40px 40px;
  background: #fff;
  color: #111;
  font-family: '맑은 고딕', 'Malgun Gothic', '돋움', Dotum, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  box-sizing: border-box;
}

.qp-header {
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.qp-header div { margin-bottom: 2px; }

.qp-title {
  text-align: center;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 18px;
  margin: 20px 0 26px;
  padding: 18px 0;
  color: #111;
}

/* 고객/요약 정보 */
.qp-info {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
}
.qp-info th, .qp-info td {
  border: 1.5px solid #111;
  padding: 9px 14px;
  font-size: 14px;
  text-align: left;
  vertical-align: middle;
  background: #fff;
}
.qp-info th.lbl {
  background: #f5f5f0;
  width: 90px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 1px;
}
.qp-info td.big { font-weight: 700; font-size: 15px; }
.qp-info .grand-row .grand-lbl {
  background: #f5f5f0;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}
.qp-info .grand-row .grand-val {
  font-size: 20px;
  font-weight: 800;
  text-align: right;
  padding-right: 18px;
  background: #fff;
  color: #111;
}

/* 작업 내역 표 */
.qp-items {
  width: 100%;
  border-collapse: collapse;
  margin-top: -1.5px; /* 위 표와 테두리 공유 */
}
.qp-items thead th {
  background: #eee;
  border: 1.5px solid #111;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.qp-items tbody td {
  border: 1.5px solid #111;
  padding: 8px 8px;
  font-size: 13px;
  vertical-align: middle;
}
.qp-items td.cat {
  text-align: center;
  background: #fafaf5;
  font-weight: 600;
  width: 68px;
}
.qp-items td.item { font-weight: 500; }
.qp-items td.num { text-align: right; font-variant-numeric: tabular-nums; }
.qp-items td.note { font-size: 12px; color: #444; text-align: center; }
.qp-items .sum-row td {
  background: #f5f5f0;
  font-weight: 800;
  text-align: center;
  font-size: 15px;
  padding: 11px 8px;
}
.qp-items .sum-row td.num { text-align: right; }

/* 작업 내역 표 내부의 합계 행 (3줄) */
.qp-items .sum-sub td {
  background: #fafaf5;
  font-weight: 600;
  padding: 9px 8px;
}
.qp-items .sum-sub .sum-label {
  text-align: right;
  padding-right: 14px;
  letter-spacing: 1px;
}
.qp-items .sum-grand td {
  background: #f0eee0;
  font-weight: 800;
  padding: 13px 8px;
  font-size: 16px;
}
.qp-items .sum-grand .sum-label {
  text-align: right;
  padding-right: 14px;
  letter-spacing: 2px;
}
.qp-items .sum-grand .sum-grand-val {
  text-align: right;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  padding-right: 14px;
}

/* 비고 */
.qp-notes {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.65;
}
.qp-notes-title {
  font-weight: 800;
  margin-bottom: 4px;
  font-size: 14px;
}

/* 발행 푸터 */
.qp-foot {
  margin-top: 36px;
  text-align: center;
  font-size: 14px;
  line-height: 1.85;
}
.qp-foot-line {
  margin-bottom: 18px;
  text-align: left;
  padding-left: 4px;
}
.qp-foot-date {
  text-align: right;
  font-weight: 700;
  margin-right: 30px;
  margin-bottom: 6px;
  font-size: 15px;
}
.qp-foot-addr {
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.qp-foot-company {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 4px;
}
.qp-foot-ceo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
}
.qp-foot-ceo .seal {
  display: inline-block;
  margin-left: 12px;
  color: #c0392b;
  font-size: 22px;
  font-weight: 800;
  border: 2px solid #c0392b;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 34px;
  text-align: center;
  vertical-align: middle;
  font-family: '바탕', '돋움', serif;
}

.qp-meta {
  margin-top: 28px;
  text-align: right;
  font-size: 11px;
  color: #888;
  padding-top: 8px;
  border-top: 1px dotted #ccc;
}
