/* quote.css — 內訓報價單。螢幕上左填右看，列印出來是一張 A4。 */

.qt-editor { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.qt-lines { display: grid; gap: 10px; }
.qt-line { display: grid; grid-template-columns: minmax(0, 1fr) 12em; gap: 12px; align-items: center; font-weight: 700; }
.qt-line input { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); text-align: right; }

.qt-paper {
  --ink: #111; --muted: #444; --line: #bbb;
  width: min(210mm, 100% - 24px); margin: 0 auto 48px; padding: 16mm; background: #fff; color: #111;
  box-shadow: 0 10px 40px -12px rgb(0 0 0 / 35%); border-radius: 4px; font-size: 11pt; line-height: 1.7;
}
.qt-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10mm; border-bottom: 2.5pt solid #111; padding-bottom: 5mm; }
.qt-eyebrow { margin: 0; font-size: 9.5pt; font-weight: 800; letter-spacing: .14em; color: #555; }
.qt-head h1 { font-size: 17pt; margin: 2mm 0 2mm; line-height: 1.35; }
.qt-desc { margin: 0; font-size: 10pt; color: #444; }
.qt-meta { text-align: right; font-size: 9.5pt; color: #333; }
.qt-meta p { margin: 0 0 1mm; }

.qt-info { width: 100%; border-collapse: collapse; margin: 6mm 0; font-size: 10.5pt; }
.qt-info th, .qt-info td { border: .75pt solid #bbb; padding: 2mm 3mm; text-align: left; }
.qt-info th { background: #f2f2f6; width: 22mm; font-size: 10pt; }

.qt-lines-out { width: 100%; border-collapse: collapse; font-size: 11pt; }
.qt-lines-out th, .qt-lines-out td { border-bottom: .75pt solid #ccc; padding: 2.5mm 3mm; text-align: left; }
.qt-lines-out thead th { background: #111; color: #fff; }
.qt-lines-out .right { text-align: right; font-variant-numeric: tabular-nums; }
.qt-lines-out tfoot th { border-top: 1.5pt solid #111; border-bottom: 0; font-size: 12.5pt; }
.qt-discount td { color: #9a3d12; }

.qt-note { margin: 6mm 0 0; border-left: 4pt solid #111; padding-left: 4mm; }
.qt-note b { display: block; font-size: 10pt; }
.qt-note p { margin: 1mm 0 0; font-size: 10.5pt; }
.qt-terms { margin: 6mm 0 0; font-size: 10pt; }
.qt-terms p { margin: 0 0 1.5mm; }
.qt-terms b { display: inline-block; min-width: 24mm; }
.qt-foot { display: flex; justify-content: space-between; gap: 6mm; margin-top: 10mm; padding-top: 3mm; border-top: .75pt solid #bbb; font-size: 8.5pt; color: #555; }

@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; background-image: none !important; }
  .qt-paper { width: auto; margin: 0; padding: 0; box-shadow: none; border-radius: 0; }
}
