/* Proposal Print Stylesheet - letter size 8.5 x 11 inches */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap');

@page {
  size: letter;
  margin: 0;
}

body.vegas-proposal-print-body {
  background: #ffffff !important;
  color: #111827 !important;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 10.5pt;
  line-height: 1.5;
  margin: 0;
  padding: 0.6in 0.5in;
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.proposal-print-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Header layout (Flexbox/Grid split) */
.proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #5919F7;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.company-branding {
  max-width: 60%;
}

.company-logo {
  max-height: 55px;
  max-width: 250px;
  margin-bottom: 8px;
  object-fit: contain;
  display: block;
}

.company-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16pt;
  font-weight: 800;
  color: #111827;
  margin: 0 0 5px 0;
}

.company-details {
  font-size: 8.5pt;
  color: #4b5563;
  line-height: 1.4;
}

.proposal-meta {
  text-align: right;
  max-width: 38%;
}

.proposal-meta h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 13pt;
  font-weight: 700;
  color: #5919F7;
  margin: 0 0 10px 0;
  letter-spacing: 0.03em;
}

.proposal-meta p {
  margin: 2px 0;
  font-size: 9pt;
  color: #111827;
}

/* Itemized Details Table */
.proposal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.proposal-table th {
  background: #f3f4f6 !important;
  color: #111827 !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 9.5pt;
  padding: 10px 12px;
  border-bottom: 2px solid #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.proposal-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 9.5pt;
}

.proposal-table tr:last-child td {
  border-bottom: 2px solid #5919F7;
}

.item-title {
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.item-desc {
  font-size: 8.5pt;
  color: #4b5563;
}

/* Total Price Highlight */
.proposal-total-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 35px;
}

.proposal-total {
  background: rgba(89, 25, 247, 0.04) !important;
  border: 1px solid rgba(89, 25, 247, 0.2);
  border-radius: 8px;
  padding: 15px 25px;
  text-align: right;
  display: inline-block;
  min-width: 280px;
}

.total-label {
  font-family: 'Outfit', sans-serif;
  font-size: 9pt;
  font-weight: 700;
  text-transform: uppercase;
  color: #4b5563;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}

.total-value {
  font-family: 'Outfit', sans-serif;
  font-size: 20pt;
  font-weight: 800;
  color: #5919F7;
}

.total-meta {
  font-size: 8pt;
  color: #6b7280;
  margin-top: 4px;
}

/* Terms and Disclaimers */
.proposal-terms {
  margin-bottom: 40px;
  background: #f9fafb !important;
  border-radius: 6px;
  padding: 15px;
  border: 1px solid #e5e7eb;
}

.proposal-terms h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 10pt;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.proposal-terms p {
  font-size: 8pt;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
  white-space: pre-wrap;
}

/* Signature block signature-line */
.proposal-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  page-break-inside: avoid;
}

.signature-block {
  width: 45%;
}

.signature-line {
  border-bottom: 1px solid #9ca3af;
  margin-bottom: 8px;
  height: 40px;
}

.signature-block p {
  margin: 2px 0;
  font-size: 8.5pt;
  color: #4b5563;
}

.signature-block p.title {
  font-weight: 600;
  color: #111827;
}

/* Hide non-print components in case browser prints general window */
@media print {
  .no-print {
    display: none !important;
  }
}
