/* ══════════════════════════════════════
   WOW SAMIACC — Tab 4: Proposal Generator
   Preview + Print + Export styles
   Sprint 8: Launch pricing, extras table, urgency,
   grand total, custom terms, signature block
   ══════════════════════════════════════ */

/* ── Export Bar ── */
.export-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-2xl);
  padding: var(--sp-md);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
}

.export-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
}
.export-btn:hover { background: var(--gold-dim); }
.export-btn.primary { background: var(--gold-grad); color: var(--bg); border-color: transparent; }
.export-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.export-btn-delete { border-color: rgba(200,60,60,0.45); color: #d94f4f; }
.export-btn-delete:hover { background: rgba(200,60,60,0.12); border-color: #d94f4f; }
.export-btn-odoo { border-color: rgba(201,168,76,0.4); color: var(--gold); }
.export-btn-odoo:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }
.export-btn-submit { border-color: rgba(100,160,255,0.4); color: #7ab0ff; }
.export-btn-submit:hover { background: rgba(100,160,255,0.1); border-color: #7ab0ff; }
.export-btn-approve { border-color: rgba(39,174,96,0.55); color: #27ae60; font-weight: 600; }
.export-btn-approve:hover { background: rgba(39,174,96,0.12); border-color: #27ae60; }

/* ── Proposal Preview Container ── */
.proposal-container {
  background: #fff;
  color: #1a2a4a;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
  font-family: var(--font-body);
}

/* Proposal tab: no bottom gap after document ends */
#panel-proposal .panel-content {
  padding-bottom: 0;
}

/* ── Proposal Sections ── */
.prop-cover {
  background: linear-gradient(135deg, #0a1628, #142244);
  color: #fff;
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.prop-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 120% 60% at 50% 100%, rgba(201,168,76,0.12), transparent 70%);
}

.prop-cover-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(201,168,76,0.8);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 20px;
  position: relative; z-index: 1;
}

.prop-cover-title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.prop-cover-subtitle {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.03em;
  margin-bottom: 28px;
  position: relative; z-index: 1;
}

.prop-cover-client {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 10px;
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.prop-cover-meta {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  position: relative; z-index: 1;
}

.prop-cover-logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0;
  margin-top: 36px;
  padding: 22px 16px 0;
  border-top: 1px solid rgba(201,168,76,0.25);
  position: relative;
  z-index: 1;
}

.prop-clogo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.prop-clogo img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 8px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.prop-clogo-akomic img {
  width: 108px;
  height: 108px;
  border-radius: 16px;
  object-fit: contain;
  background: rgba(255,255,255,0.06);
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.prop-clogo span {
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.prop-section {
  padding: 40px 48px;
  border-bottom: 1px solid #eee;
}

.prop-section:last-child { border-bottom: none; }

.prop-section-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

.prop-section-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 16px;
}

.prop-text {
  font-size: 0.8rem;
  color: #1a2a44;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 12px;
}

.prop-text[contenteditable="true"] {
  outline: none;
  border: 1px dashed transparent;
  padding: 4px;
  border-radius: 4px;
  transition: border-color 0.2s;
}
.prop-text[contenteditable="true"]:hover { border-color: rgba(201,168,76,0.3); }
.prop-text[contenteditable="true"]:focus { border-color: #c9a84c; background: rgba(201,168,76,0.03); }

.prop-gold-line {
  width: 50px; height: 2px;
  background: linear-gradient(90deg, #c9a84c, #f0d080);
  border: none;
  margin: 16px 0;
}

/* ══════════════════════════════════════
   SPRINT 8: Launch Pricing Banner
   ══════════════════════════════════════ */

.prop-launch-banner {
  background: linear-gradient(135deg, #0a1628, #142244);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 20px;
}

.prop-launch-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  color: #0a1628;
  background: linear-gradient(135deg, #c9a84c, #f0d080);
  padding: 4px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.prop-launch-rates {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prop-launch-future,
.prop-launch-current,
.prop-launch-save {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.prop-launch-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.prop-launch-amount {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.prop-launch-amount span {
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.6;
  letter-spacing: 0;
}

.prop-launch-amount.prop-strike {
  color: #e74c3c;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  opacity: 0.7;
}

.prop-launch-amount.prop-gold {
  color: #c9a84c;
}

.prop-launch-amount.prop-green {
  color: #27ae60;
}

.prop-launch-arrow {
  font-size: 1.2rem;
  color: rgba(201,168,76,0.4);
  flex-shrink: 0;
}

/* ── Proposal Pricing Table ── */
.prop-pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.prop-pricing-table th {
  text-align: left;
  font-size: 0.6rem;
  font-weight: 700;
  color: #8a9ab4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 2px solid #c9a84c;
}
.prop-pricing-table td {
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a2a44;
  border-bottom: 1px solid #eee;
}
.prop-pricing-table .prop-total td {
  font-weight: 700;
  color: #1a2a4a;
  border-top: 2px solid #c9a84c;
  border-bottom: none;
}

/* ══════════════════════════════════════
   SPRINT 8: Extras Pricing Table
   ══════════════════════════════════════ */

.prop-extras-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.prop-extras-table th {
  text-align: left;
  font-size: 0.6rem;
  font-weight: 700;
  color: #8a9ab4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 2px solid #c9a84c;
}
.prop-extras-table td {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #1a2a44;
  border-bottom: 1px solid #eee;
}
.prop-extras-icon {
  margin-right: 4px;
}
.prop-extras-free {
  font-size: 0.65rem;
  font-weight: 700;
  color: #27ae60;
  background: rgba(39,174,96,0.08);
  padding: 2px 10px;
  border-radius: 12px;
}
.prop-extras-charged {
  font-size: 0.65rem;
  font-weight: 700;
  color: #c9a84c;
  background: rgba(201,168,76,0.08);
  padding: 2px 10px;
  border-radius: 12px;
}
.prop-extras-total td {
  font-weight: 700;
  color: #1a2a4a;
  border-top: 2px solid #c9a84c;
  border-bottom: none;
}

/* ══════════════════════════════════════
   SPRINT 8: Grand Total / Investment Summary
   ══════════════════════════════════════ */

.prop-grand-total-section {
  background: #f8f9fb;
  padding: 20px 48px 13px;
}

.prop-summary-table {
  margin-top: 8px;
}

.prop-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.8rem;
  color: #4a5a7a;
}

.prop-summary-row span:last-child {
  font-weight: 600;
  white-space: nowrap;
}

.prop-summary-sub {
  font-weight: 600;
  color: #1a2a4a;
  border-bottom: 1px dashed #ccc;
}
.prop-summary-sub span:last-child { font-weight: 700; }

.prop-summary-discount {
  color: #e74c3c;
}
.prop-summary-discount span:last-child {
  color: #e74c3c;
  font-weight: 700;
}

.prop-summary-grand {
  border-bottom: none;
  border-top: 3px solid #c9a84c;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2a4a;
}
.prop-summary-grand span:last-child {
  font-size: 1.3rem;
  color: #c9a84c;
}

/* ══════════════════════════════════════
   SPRINT 8: Urgency / Limited Availability
   ══════════════════════════════════════ */

.prop-urgency-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.prop-urgency-box {
  display: flex;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(201,168,76,0.04), rgba(201,168,76,0.08));
  border: 2px solid #c9a84c;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.prop-urgency-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #c9a84c, #f0d080, #c9a84c);
}

.prop-urgency-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.prop-urgency-content {
  flex: 1;
}

.prop-urgency-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #c9a84c;
  margin-bottom: 8px;
}

.prop-urgency-text {
  font-size: 0.78rem;
  color: #4a5a7a;
  line-height: 1.6;
  margin-bottom: 8px;
}

.prop-urgency-expiry {
  font-size: 0.78rem;
  color: #1a2a4a;
  margin-bottom: 4px;
}
.prop-urgency-expiry strong {
  color: #c9a84c;
}

.prop-urgency-after {
  font-size: 0.7rem;
  color: #e74c3c;
  font-weight: 500;
}

/* Compact inline urgency — lives inside package section, no page waste */
.prop-urgency-inline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(6,14,30,0.92), rgba(10,20,40,0.88));
  border: 1.5px solid rgba(201,168,76,0.52);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.prop-urgency-inline::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #c9a84c, #f0d080, #c9a84c);
}
.prop-urgency-inline .prop-urgency-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.prop-urgency-inline .prop-urgency-title { font-size: 0.94rem; margin-bottom: 5px; color: #c9a84c !important; }
.prop-urgency-inline .prop-urgency-text { font-size: 0.80rem; margin-bottom: 5px; color: rgba(232,224,208,0.85) !important; line-height: 1.6; }
.prop-urgency-inline .prop-urgency-expiry { font-size: 0.78rem; color: rgba(232,224,208,0.92) !important; }
.prop-urgency-inline .prop-urgency-expiry strong { color: #c9a84c !important; }
.prop-urgency-inline .prop-urgency-after { font-size: 0.74rem; color: rgba(255,140,120,0.92) !important; }

/* ══════════════════════════════════════
   SW v107: Two-Block Urgency System
   Block A = Spot Offer  Block B = Launch Lock-In
   Placed after Grand Total (pre-T&C close)
   ══════════════════════════════════════ */
.prop-urgency-block {
  padding: 18px 22px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  page-break-inside: avoid;
}
.prop-urgency-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.prop-urgency-spot {
  background: linear-gradient(135deg, rgba(10,22,46,0.96), rgba(8,16,36,0.94));
  border: 1.5px solid rgba(201,168,76,0.55);
}
.prop-urgency-spot::before { background: linear-gradient(90deg, #c9a84c, #f0d080, #c9a84c); }
.prop-urgency-launch {
  background: linear-gradient(135deg, rgba(8,16,32,0.94), rgba(6,12,26,0.96));
  border: 1.5px solid rgba(74,120,200,0.42);
}
.prop-urgency-launch::before { background: linear-gradient(90deg, rgba(74,120,200,0.8), rgba(120,160,240,0.9), rgba(74,120,200,0.8)); }

.prop-urg-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.prop-urg-icon { font-size: 1.3rem; flex-shrink: 0; }
.prop-urg-title {
  font-family: var(--font-head, 'Cormorant Garamond', serif);
  font-size: 1.08rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1.2;
}
.prop-urgency-launch .prop-urg-title { color: rgba(130,170,240,0.92); }

.prop-urg-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.prop-urg-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(232,224,208,0.82);
}
.prop-urg-row:last-child { border-bottom: none; }
.prop-urg-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(201,168,76,0.1);
  border-radius: 8px;
  font-size: 0.88rem;
  color: rgba(232,224,208,0.9);
  font-weight: 600;
}
.prop-urg-total-row strong { font-family: var(--font-mono, 'DM Mono', monospace); color: #c9a84c; font-size: 1rem; }
.prop-urg-msg {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(232,224,208,0.62);
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ══════════════════════════════════════
   SPRINT 8: Custom Terms Blocks
   ══════════════════════════════════════ */

.prop-custom-terms-divider {
  font-size: 0.6rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 32px 0 16px;
  padding-top: 20px;
  border-top: 2px dashed rgba(201,168,76,0.35);
}

.prop-custom-term {
  margin-bottom: 14px;
  padding: 12px 16px;
  background: rgba(201,168,76,0.03);
  border-left: 3px solid #c9a84c;
  border-radius: 0 8px 8px 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.prop-custom-term-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 4px;
}

/* ══════════════════════════════════════
   SPRINT 8: Signature Block
   ══════════════════════════════════════ */

.prop-signature-section {
  background: #f8f9fb;
}

.prop-sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.prop-sig-block {
  padding: 24px;
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 10px;
}

.prop-sig-party {
  font-size: 0.65rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
}

.prop-sig-line {
  width: 100%;
  height: 1px;
  background: #c9a84c;
  margin-bottom: 10px;
}

.prop-sig-meta {
  margin-bottom: 12px;
}

.prop-sig-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9a84c;
}

.prop-sig-designation {
  font-size: 0.7rem;
  color: rgba(201, 168, 76, 0.62);
}

.prop-sig-date-row {
  font-size: 0.78rem;
  color: rgba(201, 168, 76, 0.85);
  margin-top: 8px;
}

/* ── Signature summary strip ── */
.prop-sig-summary {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 4px;
}
.prop-sig-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.78rem;
  color: rgba(26,42,74,0.72);
  padding: 4px 0;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.prop-sig-sum-row:last-child { border-bottom: none; }
.prop-sig-sum-lbl {
  font-weight: 700;
  color: rgba(26,42,74,0.92);
  min-width: 90px;
}
.prop-sig-sum-total {
  font-weight: 700;
  font-size: 0.88rem;
  color: rgba(26,42,74,0.92);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1.5px solid rgba(201,168,76,0.25) !important;
  border-bottom: none !important;
}
.prop-sig-sum-total span:last-child { color: #c9a84c; font-family: var(--font-mono); }

/* ── Confirmation checklist ── */
.prop-sig-confirms {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 14px;
}
.prop-sig-ci {
  font-size: 0.74rem;
  color: rgba(26,42,74,0.62);
  line-height: 1.35;
  padding-left: 4px;
}

/* ── Categorised 2-column features grid ── */
.prop-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 40px;
  align-items: start;
}
.prop-cat-group {
  margin-bottom: 18px;
  break-inside: avoid;
}
.prop-cat-label {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 600;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding-bottom: 5px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(201,168,76,0.22);
}
.prop-cat-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 1.02rem;
  color: rgba(26,42,74,0.82);
  padding: 3px 0;
  line-height: 1.5;
}
.prop-cat-tick {
  color: #c9a84c;
  font-size: 0.68rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Combined-section inner rule ── */
.prop-section-rule {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.18);
  margin: 22px 0 18px;
}

/* ── Final page: flex column — spacer is white, footer+logos in dark block ── */
.prop-final-page {
  display: flex;
  flex-direction: column;
  /* no background: spacer inherits white from proposal-container, spacer stays white */
}
/* Dark wrapper for footer+logos — the two dark elements are siblings inside this block
   so no white from proposal-container can bleed between them */
.prop-footer-block {
  flex-shrink: 0;
  background: #060e1e;
}
.prop-final-spacer {
  flex: 0 0 40px; /* fixed 40px gap between sig block and footer — no growth */
}
.prop-final-page .prop-footer {
  flex-shrink: 0;
  margin-top: 0;
}

/* ── Campaign Journey mini-flow ── */
.prop-wf-mini {
  background: linear-gradient(135deg, #0b1522, #07111e);
  border-radius: 12px;
  padding: 22px 22px 18px;
  margin-top: 72px;
  border: 1px solid rgba(201,168,76,0.22);
}
.prop-wf-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.prop-wf-level-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  border: 1.5px solid #c9a84c;
  border-radius: 20px;
  padding: 3px 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: #c9a84c;
}
.prop-wf-cycle-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: rgba(201,168,76,0.70);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
/* legacy header class — kept for CSS compatibility */
.prop-wf-mini-header {
  font-family: var(--font-mono);
  font-size: 0.57rem;
  font-weight: 700;
  color: rgba(201,168,76,0.65);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.prop-wf-flow {
  display: flex;
  align-items: stretch;
}
.prop-wf-phase {
  flex: 1;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 8px;
  padding: 12px 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prop-wf-phase-icon { font-size: 1.15rem; margin-bottom: 6px; line-height: 1; }
.prop-wf-phase-lbl {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.prop-wf-phase-nodes {
  font-size: 0.63rem;
  color: rgba(232,224,208,0.82);
  line-height: 1.5;
  flex: 1;
}
.prop-wf-phase-time {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  color: rgba(201,168,76,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(201,168,76,0.10);
  border-radius: 10px;
  padding: 3px 8px;
}
.prop-wf-arrow {
  display: flex;
  align-items: center;
  padding: 0 5px;
  color: rgba(201,168,76,0.3);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.prop-wf-footer-bar {
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(201,168,76,0.18);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: rgba(201,168,76,0.68);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Checklist ── */
.prop-checklist {
  list-style: none;
  padding: 0;
}
.prop-checklist li {
  font-size: 0.82rem;
  font-weight: 500;
  color: #1a2a44;
  padding: 6px 0 6px 24px;
  position: relative;
}
.prop-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #c9a84c;
  font-weight: 700;
}

/* ── Extras Chips (legacy, kept for backwards compat) ── */
.prop-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prop-extra-chip {
  font-size: 0.7rem;
  font-weight: 600;
  color: #1a2a4a;
  padding: 6px 14px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 20px;
}

/* ── Apps List ── */
.prop-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prop-app-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  padding: 6px 14px;
  background: #1a2a4a;
  border-radius: 20px;
}

/* ── Comparison Table ── */
.prop-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}
.prop-comparison-table th {
  text-align: left;
  font-size: 0.6rem;
  font-weight: 700;
  color: #8a9ab4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-bottom: 1px solid #ddd;
}
.prop-comparison-table td {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #4a5a7a;
  border-bottom: 1px solid #eee;
}
.prop-comparison-total td {
  font-weight: 700;
  color: #1a2a4a;
  border-top: 2px solid #c9a84c;
}
.prop-savings-big {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #27ae60;
  text-align: center;
  padding: 10px 0 0; /* no bottom padding — section padding is enough; prevents L3/L4 bleed */
}
.prop-pkg-overview {
  padding-bottom: 16px; /* tighter bottom on the merged pkg+comparison block */
}

/* ── Steps ── */
.prop-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prop-step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 16px;
  background: #f8f9fb;
  border-radius: 6px;
  border-left: 3px solid #c9a84c;
}
.prop-step-num {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(26,42,74,0.38);
  min-width: 22px;
  flex-shrink: 0;
  line-height: 1.3;
}
.prop-step-content { flex: 1; }
.prop-step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a2a4a;
  margin-bottom: 2px;
}
.prop-step-desc {
  font-size: 0.72rem;
  color: #2a3a5a;
  font-weight: 500;
  line-height: 1.5;
}

/* ── Footer ── */
.prop-footer {
  background: linear-gradient(180deg, #060e1e 0%, #0c1a2e 50%, #060e1e 100%);
  color: rgba(255,255,255,0.82);
  padding: 20px 48px 16px; /* reduced from 52/44 — print CSS overrides with full padding */
  page-break-inside: avoid;
  text-align: center;
  font-size: 0.86rem;
  line-height: 2.1;
  border-top: 3px solid #c9a84c;
}
.prop-footer strong { color: #c9a84c; font-weight: 700; }
.prop-footer-rights {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(201,168,76,0.2);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}

/* ── Cover powered-by ecosystem line ── */
.prop-cover-ecosystem {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.prop-cover-ecosystem strong { color: rgba(201,168,76,0.82); font-weight: 700; }

/* ── Cover: Package bar (level · duration · rate) ── */
.prop-cover-pkg-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 22px;
  padding: 11px 22px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 10px;
  position: relative;
  z-index: 1;
}
.prop-cover-pkg-chip {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #c9a84c;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.prop-cover-pkg-sep { color: rgba(201,168,76,0.35); font-size: 0.85rem; }
.prop-cover-pkg-dur,
.prop-cover-pkg-rate {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}
.prop-cover-pkg-rate span { font-size: 0.65rem; color: rgba(255,255,255,0.45); }
/* Package Overview section title — larger hero treatment */
.prop-pkg-overview .prop-section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ── Cover: Table of Contents (v109 — bigger, editorial) ── */
.prop-cover-toc {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(201,168,76,0.18);
  position: relative;
  z-index: 1;
}
.prop-toc-heading {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(201,168,76,0.60);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  margin-bottom: 14px;
  text-align: center;
}
.prop-toc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
  text-align: left;
}
.prop-toc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(201,168,76,0.07);
}
.prop-toc-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(201,168,76,0.50);
  min-width: 28px;
  flex-shrink: 0;
  line-height: 1;
}
.prop-toc-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ── Cover: Level description + key features ── */
.prop-cover-level-summary {
  margin-top: 18px;
  padding: 18px 22px;
  background: rgba(201,168,76,0.05);
  border-radius: 10px;
  border: 1px solid rgba(201,168,76,0.14);
  position: relative;
  z-index: 1;
  text-align: left;
}
.prop-cover-level-desc {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.68);
  line-height: 1.7;
  margin-bottom: 14px;
}
.prop-cover-level-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 16px;
}
.prop-cover-level-feat {
  font-size: 0.76rem;
  color: rgba(201,168,76,0.88);
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1.45;
}
.prop-cover-level-feat::before {
  content: '✓';
  font-size: 0.68rem;
  color: rgba(201,168,76,0.6);
  flex-shrink: 0;
}

/* ── Package Overview section (moved from cover to body) ── */
.prop-pkg-overview { }
.prop-ov-desc {
  margin-bottom: 20px;
  font-size: 0.96rem;
  line-height: 1.8;
}
.prop-pkg-ov-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 24px;
}
.prop-pkg-ov-feat {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 0.88rem;
  line-height: 1.5;
  min-width: 0;
  word-break: break-word;
}
.prop-pkg-ov-feat span:last-child { min-width: 0; }

/* ── Combined Multi-Level Package Commitment + VIP section ── */
.prop-combined-pkg-vip {
  page-break-inside: avoid;
  break-inside: avoid;
}

/* ── Terms ── */
.prop-term {
  margin-bottom: 26px;
}
.prop-term-label {
  font-size: 1.0rem;
  font-weight: 800;
  color: #0d1d38;
  margin-bottom: 5px;
}
.prop-term-text {
  font-size: 0.96rem;
  color: #344466;
  line-height: 1.76;
  font-weight: 500;
}
.prop-term-critical .prop-term-label { color: #e74c3c; }

/* ── T&C continued header ── */
.prop-tc-continued-badge {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
  margin-bottom: 20px;
  padding-top: 10px;
  opacity: 0.7;
}
.prop-tc-continued-badge span {
  font-weight: 400;
  font-size: 0.82rem;
  opacity: 0.6;
  font-style: italic;
}

/* ── Special Request (under extras) ── */
.prop-special-request {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(201,168,76,0.2);
}

/* ── Closing logo strip — mirrors cover, themed per proposal ── */
.prop-closing-logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(201,168,76,0.18) 0%, rgba(201,168,76,0.06) 100%), #070f1e;
  border-top: 1px solid rgba(201,168,76,0.28);
  flex-shrink: 0;
}
.prop-cl-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.55);
  opacity: 0.85;
}

/* ── Start New Proposal CTA ── */
.prop-new-proposal-wrap {
  text-align: center;
  padding: 24px var(--sp-2xl);
  margin-top: 0;
  background: #060e1e;
  border-top: 1px solid rgba(201,168,76,0.12);
}
.prop-bottom-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.prop-save-proposal-btn {
  display: inline-flex; align-items: center;
  padding: 13px 30px; border-radius: 32px;
  background: linear-gradient(135deg, rgba(201,168,76,0.22), rgba(201,168,76,0.1));
  border: 1.5px solid rgba(201,168,76,0.6);
  color: var(--gold); font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
  transition: all 0.2s ease;
}
.prop-save-proposal-btn.prop-save-active {
  background: linear-gradient(135deg, rgba(201,168,76,0.32), rgba(201,168,76,0.15));
  border-color: rgba(201,168,76,0.85);
  box-shadow: 0 2px 18px rgba(201,168,76,0.22);
}
.prop-save-proposal-btn.prop-save-grey {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.28);
  cursor: not-allowed;
  box-shadow: none;
}
.prop-save-proposal-btn.prop-save-active:hover { background: linear-gradient(135deg, rgba(201,168,76,0.42), rgba(201,168,76,0.22)); box-shadow: 0 4px 22px rgba(201,168,76,0.3); }

/* Stale / not-generated notice banner */
.prop-stale-notice {
  margin: 0 0 18px 0;
  padding: 14px 20px;
  background: rgba(201,168,76,0.10);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 12px;
  color: rgba(201,168,76,0.90);
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
}
.prop-new-proposal-sub.prop-save-nudge {
  color: rgba(201,168,76,0.55);
  font-style: italic;
}
.prop-new-proposal-btn {
  display: inline-flex; align-items: center;
  padding: 10px 22px; border-radius: 32px;
  background: transparent;
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--text3); font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.prop-new-proposal-btn:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.3); color: var(--gold);
}
.prop-new-proposal-sub {
  margin-top: var(--sp-md);
  font-size: var(--fs-xs);
  color: var(--text3);
}
.export-status-pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 99px; border: 1px solid;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}

/* ── A4 PDF Page Break Markers ── */
.pdf-pb {
  display: block; height: 0; margin: 0; padding: 0;
  page-break-before: always;
  break-before: page;
}

/* ── VIP Bonus + Tax sub-sections (screen + print) ── */
.prop-vip-badge {
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.06)) !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
}

/* ── Print Styles — applying Anthropic PDF skill best practices ── */
@page {
  size: A4 portrait;
  margin: 0;
}
@media print {
  body { background: #fff !important; -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  #topBar, #tabBar-wrap, .export-bar, .section-badge, .section-title, .section-sub { display: none !important; }
  .panel { position: static !important; opacity: 1 !important; pointer-events: auto !important; overflow: visible !important; }
  .panel-content { padding: 0 !important; max-width: none !important; }
  .proposal-container { box-shadow: none !important; border-radius: 0 !important; }
  /* Cover fills full A4 page — no white strip at bottom */
  .prop-cover { page-break-after: always !important; break-after: page !important; min-height: 1120px; display: flex; flex-direction: column; justify-content: space-between; }
  /* Sections never break mid-way — NO. 1 PRIORITY — applies to ALL section types */
  .prop-section,
  .prop-section .prop-pricing-table,
  .prop-section table,
  .prop-vip-section,
  .prop-tax-section {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  /* Category groups in feature grid stay together */
  .prop-cat-group { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* Urgency blocks */
  .prop-urgency-block { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* Summary rows in Grand Total */
  .prop-summary-table { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* Custom terms */
  .prop-custom-term { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* Multi-level + VIP combined section */
  .prop-combined-pkg-vip { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* Package overview grid */
  .prop-pkg-ov-grid { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* Force orphan/widow control on text */
  .prop-text, .prop-section p { orphans: 3; widows: 3; }
  /* Tables resilient to multi-row content */
  .prop-section table { page-break-inside: avoid !important; }
  .prop-section tr { page-break-inside: avoid !important; break-inside: avoid !important; }
  /* New section blocks separated by prop-section-rule must stay together with their parent */
  .prop-section-rule { page-break-before: avoid !important; page-break-after: avoid !important; }
  .prop-section-rule + .prop-section-badge,
  .prop-section-rule + .prop-section-title { page-break-after: avoid !important; }
  /* Heading anchors — badge + title always stay with first content line */
  .prop-section-badge { page-break-after: avoid !important; break-after: avoid !important; }
  .prop-section-title { page-break-after: avoid !important; break-after: avoid !important; }
  .prop-gold-line { page-break-after: avoid !important; break-after: avoid !important; }

  .prop-signature-section { page-break-inside: avoid !important; }
  .prop-final-page { page-break-before: auto; break-before: auto; min-height: 1050px; display: flex; flex-direction: column; }
  .prop-final-spacer { flex: 1 0 48px; }
  .prop-final-page .prop-footer { flex-shrink: 0; margin-top: 0; padding: 52px 48px 44px !important; page-break-before: avoid !important; break-before: avoid !important; }
  /* Cover TOC compact — prevent overflow to page 2 in PDF */
  .prop-cover-toc { margin-top: 10px; padding-top: 10px; }
  .prop-toc-heading { margin-bottom: 8px; }
  .prop-toc-grid { gap: 6px 16px; }
  .prop-toc-label { font-size: 0.8rem; line-height: 1.3; }
  .prop-cover-level-feats { gap: 4px; margin-top: 4px; }
  .prop-cover-level-feat { font-size: 0.73rem; }
  .prop-footer { page-break-before: avoid !important; break-before: avoid !important; }
  /* Color preservation — Anthropic PDF skill best practice */
  .prop-launch-banner,
  .prop-urgency-box, .prop-urgency-inline,
  .prop-urgency-block, .prop-urgency-spot, .prop-urgency-launch,
  .prop-urg-total-row,
  .prop-vip-badge,
  .prop-section-badge,
  .prop-total td,
  .prop-gold-line { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}

/* ══════════════════════════════════════
   Odoo Send Modal
   ══════════════════════════════════════ */
.odoo-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(5,7,14,0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.odoo-modal {
  background: #0d1525;
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 16px;
  width: 100%; max-width: 520px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
  overflow: hidden;
}
.odoo-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(201,168,76,0.15);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 700; color: #c9a84c;
}
.odoo-modal-close {
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 4px;
  transition: color 150ms;
}
.odoo-modal-close:hover { color: #fff; }
.odoo-modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; }
.odoo-modal-label {
  font-size: 0.68rem; font-weight: 700; color: rgba(201,168,76,0.7);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.odoo-modal-input {
  width: 100%; padding: 9px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: #eaeef8; font-size: 0.82rem;
  outline: none; transition: border-color 150ms; box-sizing: border-box;
}
.odoo-modal-input:focus { border-color: rgba(201,168,76,0.5); }
.odoo-modal-textarea {
  width: 100%; height: 120px; padding: 9px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; color: #eaeef8; font-size: 0.82rem;
  outline: none; resize: vertical; font-family: inherit;
  transition: border-color 150ms; box-sizing: border-box;
}
.odoo-modal-textarea:focus { border-color: rgba(201,168,76,0.5); }
.odoo-modal-attach {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.72rem; color: rgba(255,255,255,0.45);
  padding: 7px 10px;
  background: rgba(201,168,76,0.06); border-radius: 6px;
}
.odoo-modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 24px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.odoo-modal-btn {
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.78rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all 150ms;
}
.odoo-modal-btn.draft {
  background: none; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.6);
}
.odoo-modal-btn.draft:hover { border-color: rgba(255,255,255,0.35); color: #fff; }
.odoo-modal-btn.send {
  background: linear-gradient(135deg,#c9a84c,#f0d080); border: none; color: #05070e;
}
.odoo-modal-btn.send:hover { opacity: 0.88; }
.odoo-modal-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.odoo-modal-status {
  min-height: 20px; font-size: 0.74rem; text-align: center;
  padding: 0 24px 14px; color: rgba(255,255,255,0.5);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .prop-cover { padding: 40px 24px; }
  .prop-section { padding: 24px; }
  .prop-footer { padding: 16px 24px; }
  .prop-steps { grid-template-columns: 1fr; }
  .prop-sig-grid { grid-template-columns: 1fr; gap: 16px; }
  .prop-launch-rates { flex-direction: column; gap: 12px; }
  .prop-launch-arrow { display: none; }
  .prop-urgency-box { flex-direction: column; gap: 12px; }
}
