:root { --quote-ink:#172f42; --quote-navy:#102b43; --quote-muted:#687f8f; --quote-line:#e4ebef; --quote-coral:#e9466d; --quote-coral-soft:#fce9ef; --quote-yellow:#ffdc65; --quote-teal:#2b8c87; }
/* Dynamic quote layout based on the supplied EBA Kids reference */
.reference-quote { overflow:hidden; color:var(--quote-ink); }
.ref-header { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(350px,.98fr); align-items:center; gap:26px; min-height:238px; overflow:hidden; margin:-30px -30px 0; padding:70px 30px 27px; background:linear-gradient(145deg,#f9fbfc,#edf2f5); }
.ref-top-wave { position:absolute; inset:0 0 auto; height:66px; background:linear-gradient(90deg,#ffd12f 0 15%,#16afe6 15% 31%,transparent 31% 68%,#e9466d 68% 84%,#ffd12f 84%); clip-path:polygon(0 0,100% 0,100% 55%,94% 72%,87% 59%,78% 73%,69% 54%,59% 69%,49% 57%,39% 72%,29% 52%,18% 69%,8% 54%,0 67%); }
.ref-brand { position:relative; z-index:1; display:flex; align-items:center; gap:17px; min-width:0; }
.ref-brand>img { flex:0 0 125px; width:125px; height:125px; object-fit:contain; }
.ref-brand>span,.ref-brand strong,.ref-brand em { display:block; }
.ref-brand small { color:var(--quote-coral); font-size:8px; font-weight:800; letter-spacing:.14em; }
.ref-brand strong { margin-top:5px; color:var(--quote-navy); font:800 22px/1.15 Manrope,sans-serif; }
.ref-brand em { max-width:330px; margin-top:7px; color:var(--quote-muted); font-size:9px; font-style:normal; line-height:1.55; }
.ref-document { position:relative; z-index:1; padding:16px 18px 17px; border-radius:30px 22px 22px 30px; color:#fff; background:linear-gradient(125deg,#164c78,#102b43 76%); box-shadow:0 15px 32px rgba(16,43,67,.19); }
.ref-document-title { display:flex; align-items:center; gap:13px; margin:0 4px 13px; }
.ref-document-title svg { flex:0 0 42px; width:42px; height:42px; fill:none; stroke:#ffd12f; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ref-document-title h1 { margin:0; color:#fff; font:800 clamp(22px,3vw,32px)/1.1 Manrope,sans-serif; letter-spacing:-.03em; }
.ref-meta { display:grid; grid-template-columns:1.15fr .9fr 1fr; gap:0; margin:0; padding:13px 15px; border-radius:15px; color:var(--quote-ink); background:#f7f9fb; box-shadow:0 8px 18px rgba(0,0,0,.12); }
.ref-meta>div { min-width:0; padding:0 9px; }
.ref-meta>div+div { border-left:1px solid #dfe6eb; }
.ref-meta dt { color:#758693; font-size:7px; font-weight:800; letter-spacing:.045em; text-transform:uppercase; }
.ref-meta dd { margin:5px 0 0; color:#102b43; font-size:10px; font-weight:800; overflow-wrap:anywhere; }
.ref-greeting { position:relative; display:flex; align-items:center; gap:17px; margin:18px 0 26px; padding:3px 14px 3px 0; }
.ref-greeting-mark { align-self:stretch; flex:0 0 6px; min-height:54px; border-radius:99px; background:var(--quote-coral); }
.ref-greeting h2 { margin:0; color:var(--quote-navy); font:800 23px/1.15 Manrope,sans-serif; }
.ref-greeting p { margin:5px 0 0; color:#3f5261; font-size:12px; line-height:1.45; }
.ref-items-section { margin:0 0 20px; }
.ref-table-head,.ref-item-row { display:grid; grid-template-columns:minmax(0,1fr) 108px 104px 128px; align-items:center; gap:12px; }
.ref-table-head { min-height:44px; padding:0 17px; border-radius:14px; color:#fff; background:linear-gradient(100deg,#164c78,#102b43); font-size:10px; font-weight:800; }
.ref-table-head span:not(:first-child) { text-align:center; }
.ref-table-head span:last-child { text-align:right; }
.ref-table-body { display:grid; gap:8px; margin-top:8px; }
.ref-item-row { min-height:91px; padding:8px 15px; border:1px solid #e0e6eb; border-radius:17px; background:linear-gradient(110deg,#fbfcfd,#f1f4f7); box-shadow:0 4px 12px rgba(16,43,67,.045); }
.ref-item-name { display:flex; align-items:center; gap:14px; min-width:0; }
.ref-item-name img,.ref-item-name .proposal-item-placeholder { display:grid; place-items:center; flex:0 0 82px; width:82px; height:72px; border-radius:11px; object-fit:contain; background:transparent; }
.ref-item-name>span:last-child { display:block; min-width:0; }
.ref-item-name strong,.ref-item-name small { display:block; }
.ref-item-name strong { color:#142c41; font:800 13px/1.2 Manrope,sans-serif; }
.ref-item-name small { display:-webkit-box; margin-top:4px; overflow:hidden; color:#5f6f7c; font-size:9px; line-height:1.35; -webkit-box-orient:vertical; -webkit-line-clamp:2; }
.ref-item-quantity,.ref-item-period { display:grid; place-items:center; align-self:stretch; border-left:1px solid #d7dfe6; color:#172f42; font-size:12px; font-weight:700; }
.ref-item-price { display:grid; place-items:center end; align-self:stretch; border-left:1px solid #d7dfe6; color:#102b43; font:800 12px Manrope,sans-serif; text-align:right; }
.ref-summary-row { display:grid; grid-template-columns:1.05fr .95fr; gap:17px; margin-top:20px; }
.ref-event-card { min-width:0; padding:17px 20px; border-radius:19px; background:linear-gradient(145deg,#f0f2f6,#e8edf2); }
.ref-event-card h2 { display:flex; align-items:center; gap:10px; margin:0 0 12px; color:#152d43; font:800 16px Manrope,sans-serif; }
.ref-event-card h2 svg { width:24px; height:24px; fill:none; stroke:#17608e; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ref-event-card p { display:flex; align-items:flex-start; gap:9px; margin:7px 0 0; color:#263d52; font-size:10px; line-height:1.45; }
.ref-event-card p svg { flex:0 0 16px; width:16px; height:16px; margin-top:1px; fill:none; stroke:#17608e; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.ref-event-card p b { color:#122a3f; }
.ref-event-card p small { color:#647889; }
.ref-total-card { position:relative; display:flex; min-height:150px; overflow:hidden; flex-direction:column; justify-content:center; padding:23px 28px; border-radius:20px; color:#fff; background:linear-gradient(120deg,#164c78,#102b43 82%); }
.ref-total-card::after { position:absolute; top:-30px; right:-29px; width:76px; height:220px; border-radius:50%; background:#a7ed32; content:""; }
.ref-total-card>span,.ref-total-card>strong,.ref-total-card>small { position:relative; z-index:1; }
.ref-total-card>span { color:#d7e4ec; font-size:12px; font-weight:800; }
.ref-total-card>strong { margin-top:3px; color:#adf23c; font:800 clamp(25px,4vw,38px)/1.15 Manrope,sans-serif; letter-spacing:-.04em; overflow-wrap:anywhere; }
.ref-total-card>small { margin-top:7px; color:#d2dee5; font-size:8px; }
.ref-notes { margin-top:17px; padding:15px 19px; border-radius:17px; background:linear-gradient(110deg,#e5f3e3,#d9edd7); }
.ref-notes h2 { display:flex; align-items:center; gap:9px; margin:0; color:#17354b; font:800 15px Manrope,sans-serif; }
.ref-notes h2 span { display:grid; place-items:center; width:24px; height:24px; border-radius:50%; color:#fff; background:#5dc84d; font:bold 15px Manrope,sans-serif; }
.ref-notes ul { display:grid; gap:3px; margin:7px 0 0; padding-left:18px; color:#334c5c; font-size:9px; line-height:1.45; }
.ref-footer { position:relative; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:105px; overflow:hidden; margin:20px -30px -30px; padding:25px 31px 22px; color:#fff; background:linear-gradient(105deg,#164c78,#102b43 75%,#071827); }
.ref-footer::before { position:absolute; inset:0 0 auto; height:12px; background:linear-gradient(90deg,#e9466d 0 14%,#ffd12f 14% 30%,#164c78 30% 70%,#a7ed32 70% 85%,#ffd12f 85%); clip-path:polygon(0 0,100% 0,100% 60%,82% 100%,67% 55%,50% 100%,34% 56%,18% 100%,0 55%); content:""; }
.ref-contact { display:flex; align-items:center; gap:13px; min-width:0; }
.ref-whatsapp { display:grid; place-items:center; flex:0 0 43px; width:43px; height:43px; border:2px solid #fff; border-radius:50%; color:#fff; background:#19b76a; }
.ref-whatsapp svg { width:27px; height:27px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.ref-contact>b,.ref-contact a,.ref-contact em { display:block; }
.ref-contact b { color:#fff; font:800 14px Manrope,sans-serif; }
.ref-contact a,.ref-contact em { margin-top:3px; color:#e2edf4; font-size:11px; font-style:normal; font-weight:700; text-decoration:none; }
.ref-contact a:hover { color:#ffd12f; }
.ref-footer-divider { width:1px; height:51px; background:rgba(255,255,255,.45); }
.ref-footer-message { color:#fff; font:800 14px/1.35 Manrope,sans-serif; }
.reference-quote .decision-card,.reference-quote .payment-card { margin:16px 0 0; }
.quote-sheet.reference-quote { width:min(610px,100%); min-width:0; min-height:0; margin:0 auto; padding:0; overflow:hidden; border:0; border-radius:18px; color:var(--quote-ink); background:#fff; box-shadow:0 16px 45px rgba(27,46,75,.16); font-family:"DM Sans",sans-serif; }
.quote-sheet.reference-quote { height:auto; flex-shrink:0; }
.quote-sheet.reference-quote .ref-header { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:12px; min-height:0; margin:0; padding:22px 18px 18px; }
.quote-sheet.reference-quote .ref-brand { gap:10px; }
.quote-sheet.reference-quote .ref-brand>img { flex-basis:76px; width:76px; height:76px; }
.quote-sheet.reference-quote .ref-brand small { font-size:6px; }
.quote-sheet.reference-quote .ref-brand strong { font-size:16px; }
.quote-sheet.reference-quote .ref-brand em { margin-top:4px; font-size:7px; line-height:1.35; }
.quote-sheet.reference-quote .ref-document { padding:11px 12px; border-radius:20px 15px 15px 20px; }
.quote-sheet.reference-quote .ref-document-title { gap:8px; margin:0 2px 9px; }
.quote-sheet.reference-quote .ref-document-title svg { flex-basis:30px; width:30px; height:30px; }
.quote-sheet.reference-quote .ref-document-title h1 { font-size:22px; }
.quote-sheet.reference-quote .ref-meta { padding:9px 5px; }
.quote-sheet.reference-quote .ref-meta>div { padding:0 5px; }
.quote-sheet.reference-quote .ref-meta dt { font-size:6px; }
.quote-sheet.reference-quote .ref-meta dd { font-size:8px; }
.quote-sheet.reference-quote > :not(.ref-header):not(.ref-footer) { margin-right:22px; margin-left:22px; }
.quote-sheet.reference-quote .ref-footer { margin:18px 0 0; }
.quote-sheet.reference-quote .ref-items-section { margin-bottom:14px; }
.quote-sheet.reference-quote .ref-table-head,.quote-sheet.reference-quote .ref-item-row { grid-template-columns:minmax(0,1fr) 66px 64px 78px; gap:5px; }
.quote-sheet.reference-quote .ref-table-head { min-height:36px; padding:0 10px; font-size:8px; }
.quote-sheet.reference-quote .ref-item-row { min-height:74px; padding:6px 8px; border-radius:12px; }
.quote-sheet.reference-quote .ref-item-name { gap:8px; }
.quote-sheet.reference-quote .ref-item-name img,.quote-sheet.reference-quote .ref-item-name .proposal-item-placeholder { flex-basis:54px; width:54px; height:54px; }
.quote-sheet.reference-quote .ref-item-name strong { font-size:10px; }
.quote-sheet.reference-quote .ref-item-name small { font-size:8px; }
.quote-sheet.reference-quote .ref-item-quantity,.quote-sheet.reference-quote .ref-item-period { font-size:9px; }
.quote-sheet.reference-quote .ref-item-price { font-size:9px; }
.quote-sheet.reference-quote .ref-summary-row { gap:10px; margin-top:14px; }
.quote-sheet.reference-quote .ref-event-card { padding:13px 14px; border-radius:14px; }
.quote-sheet.reference-quote .ref-event-card h2 { gap:7px; margin-bottom:9px; font-size:13px; }
.quote-sheet.reference-quote .ref-event-card h2 svg { width:19px; height:19px; }
.quote-sheet.reference-quote .ref-event-card p { gap:6px; margin-top:5px; font-size:8px; }
.quote-sheet.reference-quote .ref-event-card p svg { flex-basis:13px; width:13px; height:13px; }
.quote-sheet.reference-quote .ref-total-card { min-height:112px; padding:16px 18px; border-radius:15px; }
.quote-sheet.reference-quote .ref-total-card>span { font-size:10px; }
.quote-sheet.reference-quote .ref-total-card>strong { font-size:27px; }
.quote-sheet.reference-quote .ref-notes { margin-top:12px; padding:12px 14px; border-radius:13px; }
.quote-sheet.reference-quote .ref-notes h2 { font-size:12px; }
.quote-sheet.reference-quote .ref-notes ul { font-size:8px; }
@media (min-width:701px) {
  .quote-workspace { height:calc(100vh - 74px); min-height:0; }
  .quote-workspace > .quote-editor,.quote-workspace > .quote-preview-wrap { height:100%; min-height:0; }
}
.quote-editor .form-grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
.quote-editor .form-grid > .field { min-width:0; }
.quote-editor .form-grid > .field input { min-width:0; }
@media(max-width:560px) {
  .quote-editor .form-grid.four { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:700px) {
  .ref-header { grid-template-columns:1fr; gap:13px; min-height:0; margin:-16px -16px 0; padding:55px 16px 18px; }
  .ref-brand { gap:10px; }
  .ref-brand>img { flex-basis:76px; width:76px; height:76px; }
  .ref-brand strong { font-size:17px; }
  .ref-brand em { font-size:8px; }
  .ref-document { padding:12px; border-radius:19px; }
  .ref-document-title { gap:9px; margin-bottom:9px; }
  .ref-document-title svg { flex-basis:31px; width:31px; height:31px; }
  .ref-document-title h1 { font-size:23px; }
  .ref-meta { grid-template-columns:1.2fr .9fr 1fr; padding:10px 7px; }
  .ref-meta>div { padding:0 6px; }
  .ref-meta dt { font-size:6px; }
  .ref-meta dd { font-size:8px; }
  .ref-greeting { gap:11px; margin:17px 0 19px; }
  .ref-greeting h2 { font-size:19px; }
  .ref-greeting p { font-size:10px; }
  .ref-table-head { display:none; }
  .ref-item-row { grid-template-columns:1fr 1fr 1.2fr; grid-template-rows:auto auto; gap:7px; min-height:0; padding:9px; border-radius:12px; }
  .ref-item-name { grid-column:1/-1; gap:9px; }
  .ref-item-name img,.ref-item-name .proposal-item-placeholder { flex-basis:52px; width:52px; height:52px; }
  .ref-item-name strong { font-size:10px; }
  .ref-item-name small { font-size:8px; }
  .ref-item-quantity,.ref-item-period,.ref-item-price { display:flex; align-items:center; justify-content:center; gap:2px; min-height:34px; padding-top:5px; border-top:1px solid #d7dfe6; border-left:0; font-size:9px; }
  .ref-item-quantity::before,.ref-item-period::before,.ref-item-price::before { color:#718491; font-size:7px; font-weight:700; }
  .ref-item-quantity::before { content:"Qtd."; }
  .ref-item-period::before { content:"Período"; }
  .ref-item-price::before { content:"Valor"; }
  .ref-summary-row { grid-template-columns:1fr; gap:9px; margin-top:13px; }
  .ref-event-card { padding:13px; border-radius:14px; }
  .ref-event-card h2 { margin-bottom:9px; font-size:13px; }
  .ref-event-card p { font-size:9px; }
  .ref-total-card { min-height:116px; padding:17px 20px; border-radius:15px; }
  .ref-total-card>span { font-size:10px; }
  .ref-total-card>strong { font-size:30px; }
  .ref-notes { margin-top:11px; padding:12px; border-radius:13px; }
  .ref-notes h2 { font-size:12px; }
  .ref-notes ul { font-size:8px; }
  .ref-footer { gap:10px; min-height:85px; margin:14px -16px -16px; padding:20px 14px 15px; }
  .ref-whatsapp { flex-basis:33px; width:33px; height:33px; }
  .ref-whatsapp svg { width:21px; height:21px; }
  .ref-contact { gap:8px; }
  .ref-contact b,.ref-footer-message { font-size:10px; }
  .ref-contact a,.ref-contact em { font-size:9px; }
  .ref-footer-divider { height:39px; }
}
@media print {
  .reference-quote { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .ref-header,.ref-table-head,.ref-total-card,.ref-footer { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
  .ref-item-row,.ref-event-card,.ref-notes { break-inside:avoid; }
  .ref-footer { margin-top:16px; }
  .quote-sheet.reference-quote { min-height:0; height:auto; overflow:visible; border-radius:0; box-shadow:none; }
  .quote-sheet.reference-quote .ref-header,.quote-sheet.reference-quote .ref-footer { margin-inline:0; }
  #quotePreview.reference-quote { position:fixed; inset:auto; top:0; left:0; right:auto; bottom:auto; width:210mm; min-width:0; min-height:0; height:auto; margin:0; padding:8mm; overflow:visible; transform:none; }
}
