/* Quote worksheet styles are loaded only on the integrated tool page. */
.quote-introduction { max-width: 900px; }
.quote-workspace { padding-top: 48px; padding-bottom: 48px; }
.quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin: 1.25rem 0 .75rem; }
.quote-actions button { display: none; }
.quote-ready .quote-actions button { display: inline-flex; }
.quote-guide-link { font-weight: 700; }
.quote-save-status { min-height: 1.6em; margin-bottom: 1.5rem; color: var(--ink-soft); font-size: .9rem; }
.quote-save-status[data-state="error"] { color: #8b351d; }
.quote-jump-links { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-bottom: .75rem; }
.quote-jump-links a { font-size: .95rem; font-weight: 700; }
.quote-scroll-hint, .quote-print-help { color: var(--ink-soft); font-size: .9rem; }
.quote-sheet { margin-top: 1.5rem; padding: clamp(16px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); scroll-margin-top: 24px; }
.quote-sheet h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.quote-sheet-intro { margin: .75rem 0 1.25rem; color: var(--ink-soft); }
.quote-print-brand { display: none; }
.quote-common { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.quote-common-field label, .quote-notes label { display: block; margin-bottom: .4rem; }
.quote-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #b9cbd1; border-radius: 12px; }
.quote-table { width: 100%; min-width: 820px; table-layout: fixed; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.quote-table th, .quote-table td { width: 25%; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.quote-table th:last-child, .quote-table td:last-child { border-right: 0; }
.quote-table tbody tr:last-child > * { border-bottom: 0; }
.quote-table thead th { background: var(--blue-pale); font-weight: 800; }
.quote-table tbody th { background: #f8fafb; font-weight: 750; }
.quote-table th small { display: block; margin-top: .35rem; color: var(--ink-soft); font-size: .82rem; font-weight: 400; line-height: 1.45; }
.quote-field { display: block; width: 100%; min-height: 76px; padding: .65rem; border: 1px solid #b9cbd1; border-radius: 8px; color: var(--ink); background: var(--white); font: inherit; line-height: 1.5; resize: vertical; overflow-wrap: anywhere; }
.quote-field::placeholder { color: #586e78; opacity: 1; }
.quote-table .quote-field { min-height: 88px; font-size: .9rem; }
.quote-field:focus-visible { border-color: var(--blue-dark); }
.quote-print-value { display: none; }
.quote-notes { margin-top: 1.25rem; }
.quote-notes .quote-field { min-height: 120px; }
.quote-sheet-foot { margin: 1rem 0 0; color: var(--ink-soft); font-size: .85rem; }
.quote-bottom-actions { margin-top: 1.5rem; }
.quote-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 780px) {
  .quote-common { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-workspace { padding-top: 32px; padding-bottom: 32px; }
  .quote-sheet { border-radius: 14px; }
  .quote-jump-links { flex-direction: column; gap: .5rem; }
}

@media (max-width: 560px) {
  .quote-common { grid-template-columns: 1fr; }
  .quote-guide-link { flex-basis: 100%; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  .quote-comparison-page { color: #000; background: #fff; font-family: Arial, sans-serif; font-size: 8.5pt; line-height: 1.25; }
  .quote-comparison-page > :not(main),
  .quote-comparison-page main > :not(.quote-workspace),
  .quote-screen-only,
  .quote-field { display: none !important; }
  .quote-workspace { padding: 0; background: #fff; }
  .quote-workspace > .container { width: 100%; max-width: none; margin: 0; padding: 0; }
  .quote-sheet { margin: 0; padding: 0; border: 0; border-radius: 0; break-before: page; }
  .quote-sheet:first-of-type { break-before: auto; }
  .quote-print-brand { display: block; margin: 0 0 2mm; font-size: 7pt; font-weight: 700; letter-spacing: .05em; }
  .quote-sheet h2 { color: #000; font-family: Arial, sans-serif; font-size: 15pt; line-height: 1.15; letter-spacing: 0; }
  .quote-sheet-intro { margin: 2mm 0 3mm; color: #222; font-size: 8.5pt; }
  .quote-common { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2mm; margin-bottom: 3mm; }
  .quote-common-field { padding: 1.5mm; border: 1px solid #999; break-inside: avoid; }
  .quote-common-field label, .quote-notes label { margin: 0 0 1mm; color: #000; font-size: 8pt; }
  .quote-table-scroll { overflow: visible; max-width: none; border: 0; border-radius: 0; }
  .quote-table { min-width: 0; width: 100%; font-size: 8.5pt; line-height: 1.2; }
  .quote-table thead { display: table-header-group; }
  .quote-table tr { break-inside: avoid; }
  .quote-table th, .quote-table td,
  .quote-table th:last-child, .quote-table td:last-child,
  .quote-table tbody tr:last-child > * { padding: 1.5mm; border: 1px solid #888; }
  .quote-table thead th { color: #000; background: #e8edf0; }
  .quote-table tbody th { color: #000; background: #f6f7f8; }
  .quote-table th small { margin-top: .7mm; color: #222; font-size: 7.5pt; line-height: 1.2; }
  .quote-print-value { display: block; min-height: 7mm; white-space: pre-wrap; overflow-wrap: anywhere; color: #000; font-size: 8.5pt; line-height: 1.25; }
  .quote-notes { margin-top: 3mm; padding: 2mm; border: 1px solid #888; }
  .quote-notes .quote-print-value { min-height: 15mm; }
  .quote-sheet-foot { margin: 2mm 0 0; color: #222; font-size: 7.5pt; line-height: 1.25; }
}
