/* PDF-based proposal models: page sequence + working preview. */
.proposal-models .pm-heading{position:static;height:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 0 22px;margin:0 0 22px;background:transparent;border:0;border-bottom:1px solid #d5e0f3;color:#0B1A3A}.pm-heading h1{font-size:27px;margin:7px 0}.pm-heading p{margin:0;color:#526589;line-height:1.55}.pm-heading .eyebrow{color:#0057FF;margin-top:12px}.pm-heading [data-pm-back]{background:transparent;border:0;padding:0;color:#0037B7;font-size:12px}.pm-heading button{white-space:nowrap}.pm-actions{display:flex;gap:10px}.pm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:22px}.pm-model{min-width:0;background:#fff;border:1px solid #d5e0f3;border-top:3px solid #0057FF}.pm-model-title{display:flex;gap:8px;align-items:center;padding:16px}.pm-model-title>div{min-width:0;flex:1}.pm-model-title h2{margin:0 0 5px;font-size:17px}.pm-model-title span,.pm-model footer>span{font-size:11px;color:#526589}.pm-model-title button{padding:8px;width:34px;height:34px;border:0;background:#E6EEFF;color:#0037B7}.pm-model-title button[data-pm-remove]{color:#b83945;background:#fff0f2}.pm-model button svg,.pm-editor button svg{width:17px;height:17px;display:block;flex-shrink:0}.pm-cover{aspect-ratio:16/9;background:#F8FAFF;display:grid;place-items:center;border-block:1px solid #e4ebf7;overflow:hidden}.pm-cover>img{width:100%;height:100%;object-fit:contain}.pm-model footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px}.pm-model footer button{border:0;background:transparent;color:#0037B7;font-size:12px;padding:5px}.pm-commercial-mini{display:grid;gap:12px;justify-items:center;color:#0037B7;font-size:12px}.pm-commercial-mini svg{width:34px;height:34px}.pm-commercial-mini strong{font-size:18px}.pm-editor-fields{display:grid;grid-template-columns:minmax(240px,1fr) minmax(260px,1fr);gap:22px;margin-bottom:20px;align-items:start}.pm-editor-fields label{display:grid;gap:7px;color:#0B1A3A;font-size:12px;font-weight:600}.pm-editor-fields input,.pm-editor-fields textarea{width:100%;margin:0;background:#fff;border:1px solid #b9c9e3}.pm-editor-fields details{padding:12px 16px;background:#fff;border:1px solid #d5e0f3}.pm-editor-fields summary{cursor:pointer;color:#0037B7}.pm-editor-fields details[open] label{margin-top:12px}.pm-workspace{display:grid;grid-template-columns:minmax(300px,365px) minmax(0,1fr);gap:24px;align-items:start}.pm-sequence{background:#fff;border:1px solid #d5e0f3}.pm-sequence-heading{display:flex;justify-content:space-between;align-items:center;padding:12px;border-bottom:2px solid #0057FF;gap:8px}.pm-sequence-heading strong{font-size:13px}.pm-sequence-heading button{font-size:11px;padding:7px;background:#E6EEFF;color:#0037B7;border:0}.pm-upload-note{padding:10px 12px;margin:0;font-size:11px;color:#526589}.pm-sequence ol{list-style:none;margin:0;padding:0 10px 10px;max-height:55vh;overflow:auto;scrollbar-gutter:stable}.pm-sequence li{display:flex;align-items:stretch;margin-bottom:9px;border:1px solid #d5e0f3;background:#fff;opacity:1;cursor:grab}.pm-sequence li.selected{border-color:#0057FF;box-shadow:inset 3px 0 #0057FF}.pm-sequence li.is-commercial{background:#E6EEFF}.pm-page-select{display:flex;align-items:center;justify-content:flex-start;gap:10px;flex:1;min-width:0;text-align:left;border:0;background:transparent!important;padding:10px!important;cursor:pointer}.pm-page-select>img{width:74px;height:50px;object-fit:contain;background:#F8FAFF}.pm-page-select>span:not(.pm-page-icon){display:grid;gap:5px;min-width:0}.pm-page-select small{font-size:8px;color:#526589;letter-spacing:.4px}.pm-page-select strong{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pm-page-select span span{font-size:10px;color:#526589}.pm-page-icon{display:grid;place-items:center;width:74px;height:50px;color:#0057FF}.pm-page-icon svg{width:29px!important;height:29px!important}.pm-page-actions{display:grid;align-content:center;gap:3px;padding:5px}.pm-page-actions button{padding:2px!important;width:25px;height:23px;min-height:0!important;border:0;background:#F8FAFF;font-size:15px}.pm-page-actions button svg{width:13px;height:13px}.pm-preview{background:#fff;border:1px solid #d5e0f3;min-width:0}.pm-preview-heading{padding:14px 18px;border-bottom:1px solid #d5e0f3;display:grid;gap:5px}.pm-preview-heading strong{font-size:13px;overflow-wrap:anywhere}.pm-preview-heading span{font-size:11px;color:#526589}.pm-preview [data-pm-preview]{padding:18px;background:#eef2f9}.pm-page-preview{display:block;width:100%;max-height:60vh;object-fit:contain}.pm-preview-help{padding:14px 18px;margin:0;font-size:12px;color:#526589;line-height:1.6}.pm-commercial-preview{background:#fff;aspect-ratio:16/9;min-height:270px}.pm-commercial-preview header{position:static;height:auto;background:#0037B7;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px;margin:0}.pm-commercial-preview header img{width:90px;height:29px;object-fit:contain}.pm-commercial-preview section{padding:22px}.pm-commercial-preview small{color:#0037B7;font-size:9px}.pm-commercial-preview h2{font-size:18px;margin:6px 0 20px}.pm-sample-row{display:grid;grid-template-columns:1fr 90px 70px;gap:8px;font-size:11px;border-bottom:1px solid #d5e0f3;padding:10px 0}.pm-sample-totals{display:grid;grid-template-columns:1fr 1fr;gap:10px;background:#E6EEFF;padding:12px;margin-top:18px;font-size:13px;line-height:1.7;color:#0037B7}.pm-commercial-preview p{font-size:10px;margin:10px 0 0}.pm-error{font-size:12px;line-height:1.5;color:#b83945;padding:0 12px}.proposal-models .primary{background:#087f5b!important;border-color:#087f5b!important;color:#fff!important}.pm-models [hidden],.proposal-models [hidden]{display:none!important}@media(max-width:950px){.pm-workspace{grid-template-columns:290px minmax(0,1fr)}.pm-commercial-preview section{padding:12px}.pm-sample-row{grid-template-columns:1fr 60px 60px}}@media(max-width:720px){.proposal-models .pm-heading{align-items:flex-start;flex-direction:column}.pm-workspace,.pm-editor-fields{grid-template-columns:1fr}.pm-sequence ol{max-height:35vh}.pm-preview{order:-1}.pm-grid{grid-template-columns:1fr}.pm-preview [data-pm-preview]{padding:8px}}
.pm-editor-fields .pm-default{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-weight:500}.pm-default input{width:16px;height:16px;accent-color:#0057FF}
.pm-drag-grip{display:grid;place-items:center;flex:0 0 15px;color:#8195b8;cursor:grab}.pm-drag-grip svg{width:13px;height:18px}.pm-page-select>img,.pm-page-icon{width:64px}
