@page{size:letter;margin:.65in .7in}
body.proposal-sheet{box-sizing:border-box;width:8.5in;min-height:11in;margin:20px auto;padding:.65in .7in;background:#fff;color:#173b50;font:13px/1.6 Arial,sans-serif;box-shadow:0 3px 20px #102f4c18}
.proposal-sheet *{box-sizing:border-box}.proposal-sheet header{text-align:center;border-bottom:2px solid #008e87;padding-bottom:18px;margin-bottom:22px}.proposal-sheet .firm-document-identity{display:block!important;text-align:center!important}.proposal-sheet header img{display:block!important;max-width:210px!important;max-height:90px!important;object-fit:contain;margin:0 auto 12px!important}.proposal-sheet h1{font-size:22px;text-align:center}.proposal-sheet h2{font-size:16px;color:#007c77;margin:22px 0 10px}.proposal-sheet table{width:100%;border-collapse:collapse}.proposal-sheet td,.proposal-sheet th{padding:8px 10px;border:1px solid #d9e8e7;text-align:left;vertical-align:top}.proposal-sheet th{background:#e8f8f5;color:#007c77}.proposal-sheet pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.proposal-reference{padding:10px 14px;background:#e8f8f5;border-left:4px solid #008e87}.proposal-sheet tr{break-inside:avoid}
@media(min-width:761px){
 #crm-agreement[hidden],#crm-form label[hidden]{display:none!important}
 .proposal-preview-actions,.acceptance-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:16px 0}
 #proposal-email-send{background:#008e87!important;border-color:#008e87!important;color:white!important}
 #agreement-preview-dialog{width:min(980px,96vw);max-width:96vw}#agreement-preview-content{box-sizing:border-box;width:100%;height:72vh;background:#eef5f7;border:1px solid #d9e8e7}
 .proposal-archive{grid-column:1/-1;padding:18px;border:1px solid #b7e4df;border-radius:10px;background:#f3fbf9}.proposal-archive>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-top:1px solid #d9e8e7}
 .client-profile-pending{border-left:4px solid #efc14c!important;background:#fff9e7!important}
}
@media print{body.proposal-sheet{width:auto;min-height:0;margin:0;padding:0;box-shadow:none}.proposal-sheet thead{display:table-header-group}}

.proposal-sheet header.commercial-issuer{display:flex!important;align-items:center;justify-content:space-between;gap:24px;text-align:right!important;padding-bottom:20px!important;border-bottom:2px solid #008e87!important}.proposal-sheet header.commercial-issuer img{width:150px!important;height:150px!important;max-width:150px!important;max-height:150px!important;object-fit:contain;margin:0!important;flex-shrink:0}.commercial-issuer-data{flex:1;text-align:right;font-size:12px;line-height:1.6}.commercial-issuer-data strong{font-size:18px}.commercial-title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.proposal-sheet .commercial-title-row h1{text-align:left!important;margin:0!important;font-size:22px!important;flex:1}.proposal-sheet .commercial-title-row .proposal-reference{margin:0;padding:8px 12px;border:1px solid #d9e8e7;border-radius:7px;white-space:nowrap;background:#fff;color:#173b50;font-size:12px}@media screen and (max-width:520px){.commercial-title-row{flex-wrap:wrap}.commercial-issuer-data{font-size:11px}}

/* Banco y cotización por procesos */
.quote-task-builder{display:grid;grid-template-columns:minmax(170px,28%) minmax(0,1fr);gap:18px}.quote-task-bank{padding:14px;background:#eff8fa;border:1px solid #d5e8ed;border-radius:12px;min-width:0}.quote-task-bank input{width:100%;box-sizing:border-box}.quote-task-bank button{display:block;width:100%;text-align:left;margin:8px 0;padding:10px;white-space:normal}.quote-task-bank button[aria-pressed="true"]{background:#d5f4ef;border-color:#008d88;color:#006d69}.quote-task-pane{display:flex;flex-direction:column;gap:12px;min-width:0}.quote-task-pane h4,.quote-task-bank h4{margin:0 0 10px}.quote-process-row{display:grid;grid-template-columns:minmax(100px,1fr) 110px 40px;gap:8px;padding:12px 0;border-bottom:1px solid #dbe6ee}.quote-process-row input{min-width:0;width:100%;box-sizing:border-box}.quote-process-row label{font-size:12px}.quote-process-row .quote-free{grid-column:1/-1;display:flex;align-items:center;gap:6px}.quote-free input{width:16px}.quote-task-pane>strong{padding:14px;background:#e3f6f3;color:#006f6b;text-align:right;border-radius:8px;font-size:18px}.quote-task-builder[hidden]{display:none!important}@media(max-width:800px){.quote-task-builder{grid-template-columns:1fr}.quote-task-bank>div{max-height:180px;overflow:auto}}

#crm-form .quote-process-row{padding:10px 0!important;gap:8px!important;grid-template-columns:minmax(100px,1fr) 110px 32px!important}#crm-form .quote-process-row label{margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important;gap:6px!important;font-size:12px!important}#crm-form .quote-process-row .quote-free{flex-direction:row!important;justify-content:flex-start!important;align-items:center!important}#crm-form .quote-process-row .quote-free input{width:16px!important;height:16px!important;min-height:0!important;margin:0!important}#crm-form .quote-process-row>button{align-self:center!important;height:36px!important;min-height:36px!important;padding:0!important}#crm-form .quote-task-bank{align-self:start}#crm-form .quote-task-pane>label{margin:0!important}.proposal-sheet td{white-space:pre-line}
