@media screen{
 #app .md-help{font-size:12px;color:var(--muted);line-height:1.55;margin:0 0 12px;overflow-wrap:anywhere}
 
 #app .md-editor{min-width:0;max-width:100%}
 #app .md-editor>*{min-width:0}
 #app .md-editor input,#app .md-editor select,#app .md-editor textarea{box-sizing:border-box;min-width:0;max-width:100%;width:100%;font-size:16px}
 #app .md-items-box,#app .md-collection{min-width:0;padding:18px;border:1px solid var(--line);border-radius:18px}
 #app .md-items-box legend,#app .md-collection legend{padding:0 8px;font-size:14px;font-weight:600}
 #app .md-item{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(75px,.5fr) minmax(110px,.8fr) 44px;gap:12px;align-items:end;padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid var(--line)}
 #app .md-item label{min-width:0}
 #app .md-item label input{margin-top:8px}
 #app .md-item [data-remove-item]{min-width:44px;width:44px;min-height:44px;padding:0!important;font-size:24px!important}
 #app .md-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
 #app .md-totals{display:grid;gap:12px;padding:18px 20px;background:var(--os-inset);border-radius:18px;min-width:0}
 #app .md-totals>div{display:flex;justify-content:space-between;gap:20px;align-items:baseline;min-width:0}
 #app .md-totals span{font-size:14px;color:var(--muted)}
 #app .md-totals b{font-size:16px;font-weight:600;overflow-wrap:anywhere;text-align:right}
 #app .md-grand-total{padding-top:12px;border-top:1px solid var(--line)}
 #app .md-grand-total span,#app .md-grand-total b{font-size:20px;font-weight:650;color:var(--ink)}
 #app .md-collection[hidden],#app #mdBusinessHint[hidden]{display:none!important}
 #app .md-error{margin:0;font-size:14px;line-height:1.5;color:var(--system-red);overflow-wrap:anywhere}
 #app .md-error:empty{display:none}
 #app .md-document-preview{min-width:0;max-width:100%;color:var(--ink)}
 #app .md-document-preview .doc-head{gap:20px;align-items:center}
 #app .md-document-preview .doc-brand{object-fit:contain;max-width:180px;height:auto;max-height:80px}
 
 
 
 
 #app .md-preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}
 
 
 @media(max-width:650px){#app .md-editor{grid-template-columns:minmax(0,1fr)}#app .md-editor .wide{grid-column:1}#app .md-items-box,#app .md-collection{padding:16px}#app .md-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:12px}#app .md-item-description{grid-column:1/-1}#app .md-field-grid{grid-template-columns:minmax(0,1fr)}#app .md-totals{padding:16px}#app .md-totals b{font-size:15px}#app .md-grand-total b,#app .md-grand-total span{font-size:19px}#app .md-document-preview .doc-head{flex-wrap:wrap}#app .md-document-preview .doc-brand{max-width:150px}}
}
/* Service scope belongs to each priced service, never to a separate priced equipment row. */
#app .md-item-includes{grid-column:1/-1}
#app .md-item-includes textarea{min-height:130px;line-height:1.6;margin-top:8px}
#app .md-import-intro{grid-column:1/-1;justify-self:start;font-size:12px!important;min-height:44px}
#app .md-draft-preview{grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:22px;overflow:hidden}
#app .md-draft-preview[hidden]{display:none!important}


/* One approved visual system for all issuers. Original logo assets remain unchanged. */
@font-face{font-family:MD-Text;src:local("NHaasGroteskTXPro-55Rg"),local("Neue Haas Grotesk Text Pro");font-weight:400;font-display:swap}
@font-face{font-family:MD-Display;src:local("NHaasGroteskDSPro-75Bd"),local("Neue Haas Grotesk Display Pro");font-weight:700;font-display:swap}
#app .md-editorial{background:#f2f2f7!important;color:#1d1d1f!important;padding:38px!important;border:0!important;border-radius:20px!important;box-sizing:border-box;font:14px/1.5 MD-Text,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;min-width:0;max-width:100%}
#app .md-editorial *{box-shadow:none!important}
#app .md-editorial .doc-head{display:flex;justify-content:space-between;align-items:center;gap:24px;border:0!important;margin:0 0 34px!important;padding:0!important}
#app .md-editorial .doc-brand{width:auto!important;height:auto!important;max-width:205px!important;max-height:48px!important;object-fit:contain!important;object-position:left!important;filter:none!important}
#app .md-editorial :is(.md-reference,.md-label,.md-micro,.md-quantity,.md-document-footer){font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace!important;font-weight:400!important}
#app .md-editorial .md-reference{display:grid;gap:5px;text-align:right;font-size:11px;line-height:1.5;color:#6e6e73}
#app .md-editorial .md-reference span{color:var(--wine);letter-spacing:.12em;text-transform:uppercase}
#app .md-editorial .md-reference b{font-weight:400;color:#6e6e73}#app .md-editorial .md-reference small{font-size:11px}
#app .md-editorial .md-opening{margin:0!important;padding:0 0 28px!important}
#app .md-editorial .md-label{margin:0 0 12px!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.08em;color:#6e6e73!important}
#app .md-editorial h2{font-family:MD-Display,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-size:34px!important;font-weight:700!important;line-height:1.15!important;letter-spacing:-.025em!important;max-width:100%!important;margin:0 0 24px!important;overflow-wrap:anywhere;color:#1d1d1f!important}
#app .md-editorial .md-recipient{display:grid;gap:4px;margin:0!important}
#app .md-editorial .md-recipient span{font:10px ui-monospace,"SFMono-Regular",Menlo,monospace!important;letter-spacing:.08em;text-transform:uppercase;color:#6e6e73}
#app .md-editorial .md-recipient strong{font-size:14px;font-weight:600;color:#1d1d1f}
#app .md-editorial .md-introduction{font-size:14px;line-height:1.6;margin:18px 0 0!important;color:#6e6e73}
#app .md-editorial .md-section-heading{display:none!important}
#app .md-editorial .md-service{background:transparent!important;padding:0!important;margin:0 0 18px!important;border:0!important;border-radius:0!important;min-width:0}
#app .md-editorial .md-service-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:end;background:#e5e5ea!important;padding:22px 24px!important;border-radius:16px!important;border:0!important;min-width:0;break-inside:avoid;break-after:avoid}
#app .md-editorial .md-service-name{min-width:0}
#app .md-editorial .md-micro{color:#6e6e73!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.08em;line-height:1.5!important;margin:0 0 10px!important}
#app .md-editorial .md-service h3{font-family:MD-Display,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-size:20px!important;font-weight:700!important;letter-spacing:-.015em!important;line-height:1.3!important;margin:0!important;color:#1d1d1f!important;overflow-wrap:anywhere}
#app .md-editorial .md-service-price{font-family:MD-Display,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-size:25px!important;font-weight:700!important;color:#1d1d1f!important;line-height:1.25!important;white-space:nowrap;letter-spacing:-.02em}
#app .md-editorial .md-service-body{background:#fff!important;padding:20px 24px 24px!important;border-radius:16px!important;margin-top:8px!important;min-width:0;box-decoration-break:clone;-webkit-box-decoration-break:clone}
#app .md-editorial .md-quantity{display:flex;gap:20px;flex-wrap:wrap;font-size:11px!important;line-height:1.5;letter-spacing:.02em;text-transform:uppercase;color:#6e6e73!important;margin:0!important;padding:0 0 16px!important}
#app .md-editorial .md-quantity b{font-weight:500;color:#1d1d1f}
#app .md-editorial .md-inclusions{border-top:1px solid #e5e5ea!important;margin:0!important;padding:16px 0 0!important}
#app .md-editorial .md-inclusions>.md-label{font-family:MD-Text,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;text-transform:none;letter-spacing:0;font-size:15px!important;font-weight:600!important;color:#1d1d1f!important;margin-bottom:14px!important}
#app .md-editorial .md-inclusions ul{display:grid;grid-template-columns:minmax(0,1fr);gap:9px;list-style:none;padding:0!important;margin:0!important;font-size:14px!important;line-height:1.5!important;color:#444448;font-weight:400}
#app .md-editorial .md-inclusions li{position:relative;margin:0!important;padding:0 0 0 20px!important;overflow-wrap:anywhere;break-inside:avoid}
#app .md-editorial .md-inclusions li:before{content:'';position:absolute;left:0;top:.48em;width:7px;height:7px;border-radius:2px;background:var(--wine);print-color-adjust:exact;-webkit-print-color-adjust:exact}
#app .md-editorial .md-investment{display:grid;gap:8px;margin:12px 0 0!important;padding:0!important;border:0!important;background:transparent!important;border-radius:0!important;break-inside:avoid}
#app .md-editorial .md-subtotal-block{display:grid;gap:12px;background:#fff!important;border-radius:16px!important;padding:20px 24px!important}
#app .md-editorial .md-subtotal-block>div{display:flex;justify-content:space-between;gap:24px;align-items:baseline}
#app .md-editorial .md-subtotal-block span{font-size:13px;color:#6e6e73}
#app .md-editorial .md-subtotal-block b{font-size:14px;color:#1d1d1f;font-weight:500}
#app .md-editorial .md-grand-total{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin:0!important;border:0!important;border-radius:16px!important;background:var(--wine)!important;padding:18px 24px!important}
#app .md-editorial .md-grand-total span{font-size:20px!important;line-height:1.2!important;font-weight:600!important;color:#fff!important}
#app .md-editorial .md-grand-total b{font-family:MD-Display,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif!important;font-size:28px!important;line-height:1.2!important;font-weight:700!important;letter-spacing:-.025em;color:#fff!important;text-align:right}
#app .md-editorial .md-conditions{background:#fff;border-radius:16px;padding:20px 24px;margin:18px 0 0;font-size:13px;line-height:1.6}#app .md-editorial .md-conditions p{margin:0}
#app .md-editorial .md-party-info{display:grid;grid-template-columns:1fr 1fr;gap:20px;font-size:12px;margin:0 0 18px}
#app .md-editorial .md-document-footer{display:flex;justify-content:space-between;gap:16px;font-size:11px;line-height:1.5;color:#6e6e73;margin:24px 0 0!important;padding:14px 0 0!important;border-top:1px solid #d1d1d6!important}
@media screen and (max-width:650px){
 #app .md-editorial{padding:24px 18px!important}
 #app .md-editorial .doc-head{flex-wrap:wrap;margin-bottom:26px!important}
 #app .md-editorial .doc-brand{max-width:175px!important}
 #app .md-editorial h2{font-size:28px!important}
 #app .md-editorial .md-service-top{grid-template-columns:minmax(0,1fr);gap:12px;padding:20px!important}
 #app .md-editorial .md-service-price{font-size:24px!important}
 #app .md-editorial .md-service-body,#app .md-editorial .md-subtotal-block{padding:18px 20px!important}
 #app .md-editorial .md-grand-total{padding:18px 20px!important}
 #app .md-editorial .md-grand-total b{font-size:25px!important}
 #app .md-editorial .md-document-footer{flex-wrap:wrap}
}
@media print{
 @page{size:Letter;margin:0}
 html:has(.md-editorial),body:has(.md-editorial){height:auto!important;min-height:0!important;overflow:visible!important;background:#fff!important}
 body:has(.md-editorial) #app>.shell,body:has(.md-editorial) #mobileNav,body:has(.md-editorial) #notice,body:has(.md-editorial) #auth{display:none!important}
 body:has(.md-editorial) #app,body:has(.md-editorial) #modal,body:has(.md-editorial) #dialog{position:static!important;inset:auto!important;display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;transform:none!important;filter:none!important;backdrop-filter:none!important;animation:none!important;transition:none!important}
 body:has(.md-editorial) #dialog>.no-print{display:none!important}
 #app .md-editorial{padding:20px!important;margin:8mm!important;width:calc(100% - 16mm)!important;max-width:none!important;background:#f2f2f7!important;border:0!important;border-radius:20px!important;box-decoration-break:clone;-webkit-box-decoration-break:clone;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 #app .md-editorial .doc-head{margin-bottom:22px!important}
 #app .md-editorial h2{font-size:27pt!important;margin-bottom:18px!important}
 #app .md-editorial .md-opening{padding-bottom:20px!important;break-inside:avoid}
 #app .md-editorial .md-service-top{padding:18px 22px!important;break-inside:avoid;break-after:avoid}
 #app .md-editorial .md-service h3{font-size:15pt!important}
 #app .md-editorial .md-service-price{font-size:18pt!important}
 #app .md-editorial .md-service-body{padding:16px 22px 20px!important}
 #app .md-editorial .md-inclusions ul{font-size:11pt!important;gap:6px!important}
 #app .md-editorial .md-subtotal-block{padding:16px 22px!important}
 #app .md-editorial .md-grand-total{padding:16px 22px!important}
 #app .md-editorial .md-grand-total b{font-size:22pt!important;color:#fff!important}
 #app .md-editorial .md-grand-total span{color:#fff!important}
 #app .md-editorial .md-service h3,#app .md-editorial .md-service-price{color:#1d1d1f!important}
 #app .md-editorial .md-service{break-inside:auto!important}
 #app .md-editorial .md-document-footer{break-inside:avoid;margin-top:18px!important}
}


/* The project leads; service pricing stays on a quieter light surface. */
#app .md-editorial .md-project-heading{background:#242426!important;border-radius:16px!important;padding:22px 24px!important;margin:0 0 20px!important;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
#app .md-editorial .md-project-heading>.md-label{color:#e5e5ea!important}
#app .md-editorial .md-project-heading>h2{color:#fff!important;margin:0!important}
@media print{#app .md-editorial .md-project-heading{padding:18px 22px!important}}
@media screen and (max-width:650px){#app .md-editorial .md-project-heading{padding:20px!important}}



/* Descuento comercial: tarjeta grafito (el documento siempre es papel claro) */
#app .md-editorial .md-investment.md-has-deal{display:grid;gap:8px}
#app .md-editorial .md-deal,#app .md-editorial .md-deal *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
#app .md-editorial .md-deal{display:block;box-sizing:border-box;max-width:100%;background:#1D1D1F!important;border-radius:22px!important;padding:22px 22px 20px!important;margin:0;border:0!important;break-inside:avoid}
#app .md-editorial .md-deal-r1{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:15px}
#app .md-editorial .md-deal-r1 span,#app .md-editorial .md-deal-r1 s{color:rgba(235,235,245,.6)!important;font-size:15px!important;font-weight:400!important}
#app .md-editorial .md-deal-r1 s{text-decoration:line-through;text-decoration-color:rgba(255,69,58,.85);text-decoration-thickness:1.5px;white-space:nowrap}
#app .md-editorial .md-deal-r2{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:8px}
#app .md-editorial .md-deal-r2 span{font-size:17px!important;font-weight:600!important;color:#fff!important;white-space:nowrap}
#app .md-editorial .md-deal-r2 b{font-size:clamp(24px,6.6vw,34px)!important;font-weight:700!important;letter-spacing:-.015em;color:#fff!important;white-space:nowrap;line-height:1.2}
#app .md-editorial .md-deal-save{display:flex;align-items:center;gap:10px;margin-top:16px;padding:12px 14px;border-radius:14px;background:rgba(48,209,88,.14)}
#app .md-editorial .md-deal-save i{flex:none;width:22px;height:22px;background:#30D158;-webkit-mask:url('/sf/arrow.down.circle.fill.png') center/contain no-repeat;mask:url('/sf/arrow.down.circle.fill.png') center/contain no-repeat}
#app .md-editorial .md-deal-save span{font-size:16px!important;font-weight:600!important;color:#30D158!important}
#app .md-editorial .md-deal-save small{margin-left:auto;font-size:15px;font-weight:700;color:#30D158;white-space:nowrap}
#app .md-editorial .md-deal-tax{display:block;margin-top:10px;text-align:right;font-size:12px!important;letter-spacing:.02em;color:rgba(235,235,245,.6)!important}

/* PDF bien armado (Bryan 2026-11-19: «mira cómo se corre todo… que se vea bien logrado»):
   papel gris a sangre en todas las hojas (sin tarjeta redondeada cortada), márgenes iguales en cada hoja,
   bloques que nunca se parten y tipografía de impresión más compacta para que una cotización normal quepa en una hoja. */
@media print{
 @page{size:Letter;margin:0}
 html:has(.md-editorial),html:has(.md-editorial) body{background:#f2f2f7!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 html body #app .md-editorial{margin:0!important;width:100%!important;min-height:100vh;padding:13mm 14mm!important;border-radius:0!important;box-shadow:none!important;box-decoration-break:clone;-webkit-box-decoration-break:clone}
 html body #app .md-editorial .doc-head{margin-bottom:14px!important}
 html body #app .md-editorial .doc-brand{max-height:30px!important}
 html body #app .md-editorial .md-project-heading{padding:14px 20px!important;margin-bottom:14px!important;border-radius:14px!important}
 html body #app .md-editorial .md-project-heading>h2{font-size:22pt!important;line-height:1.1!important}
 html body #app .md-editorial .md-opening{padding-bottom:12px!important}
 html body #app .md-editorial .md-opening p{font-size:10pt!important;line-height:1.45!important;margin:4px 0!important}
 html body #app .md-editorial .md-service{break-inside:avoid!important;margin-bottom:10px!important}
 html body #app .md-editorial .md-service-top{padding:11px 18px!important;border-radius:12px!important}
 html body #app .md-editorial .md-service h3{font-size:13pt!important}
 html body #app .md-editorial .md-service-price{font-size:15pt!important}
 html body #app .md-editorial .md-service-body{padding:10px 18px 12px!important;border-radius:12px!important}
 html body #app .md-editorial .md-inclusions ul{font-size:9.5pt!important;line-height:1.4!important;gap:3px!important}
 html body #app .md-editorial .md-section-heading{break-after:avoid}
 html body #app .md-editorial .md-investment{break-inside:avoid!important;break-before:auto;margin-top:10px!important}
 html body #app .md-editorial .md-subtotal-block{padding:10px 18px!important}
 html body #app .md-editorial .md-grand-total{padding:12px 18px!important}
 html body #app .md-editorial .md-grand-total b{font-size:18pt!important}
 html body #app .md-editorial .md-deal{padding:14px 18px 12px!important;border-radius:16px!important;break-inside:avoid!important}
 html body #app .md-editorial .md-deal :is(.md-deal-r2,.r2) b{font-size:22pt!important}
 html body #app .md-editorial .md-deal :is(.md-deal-save,.save){margin-top:10px!important;padding:8px 12px!important;border-radius:10px!important}
 html body #app .md-editorial .md-deal :is(.md-deal-tax,.tax){margin-top:6px!important}
 html body #app .md-editorial .md-conditions{break-inside:avoid!important;padding:12px 18px!important;margin-top:10px!important}
 html body #app .md-editorial .md-conditions p{font-size:9.5pt!important;line-height:1.45!important}
 html body #app .md-editorial .md-document-footer{break-before:avoid;break-inside:avoid;margin-top:12px!important;font-size:8pt!important}
}
@media print{
 html body #app .md-editorial{padding:11mm 13mm!important}
 html body #app .md-editorial .md-quantity{padding-bottom:6px!important;margin-bottom:6px!important}
 html body #app .md-editorial .md-inclusions :is(h4,h5,p.md-micro,strong,b):first-child{margin:4px 0 6px!important;font-size:10.5pt!important}
 html body #app .md-editorial .md-inclusions{margin-top:4px!important}
 html body #app .md-editorial .md-opening{margin-bottom:0!important}
 html body #app .md-editorial .md-scope{margin-top:6px!important}
}
@media print{
 html body #app .md-editorial .md-qty-one{display:none!important}
 html body #app .md-editorial .doc-head{margin-bottom:10px!important}
 html body #app .md-editorial .md-project-heading{padding:12px 18px!important;margin-bottom:10px!important}
 html body #app .md-editorial .md-project-heading>h2{font-size:20pt!important}
 html body #app .md-editorial .md-recipient,html body #app .md-editorial .md-party-info{margin-bottom:4px!important}
}
@media print{
 html body #app .md-editorial .md-service-body:has(.md-qty-one) :is(.md-inclusions,hr){border-top:0!important;padding-top:0!important;margin-top:0!important}
 html body #app .md-editorial .md-service-body:has(.md-qty-one) hr{display:none!important}
 html body #app .md-editorial .md-inclusions ul{line-height:1.35!important}
 html body #app .md-editorial .md-deal{padding:12px 18px 10px!important}
 html body #app .md-editorial .md-deal :is(.md-deal-r2,.r2){margin-top:4px!important}
 html body #app .md-editorial .md-deal :is(.md-deal-r2,.r2) b{font-size:20pt!important}
 html body #app .md-editorial .md-conditions{padding:10px 18px!important}
 html body #app .md-editorial .md-document-footer{margin-top:8px!important;padding-top:6px!important}
}
