
:root{
--nav:#101223;
--brand:#ff6b00;
--mb-blue:#45479f;
--mb-orange:#ff6b00;
--blue:#45479f;
--line:#e3e9f2;
--muted:#6f7d91
}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:#f4f7fb;color:#182235}
header{background:var(--nav);color:#fff;padding:15px 24px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:5}
.brand{font-weight:850}.brand span{color:var(--brand)}nav a{color:#dce6f6;text-decoration:none;margin-left:15px;font-size:13px}
.container{max-width:1320px;margin:26px auto;padding:0 18px}.hero{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}
h1{margin:0 0 6px;font-size:30px}h2{margin:0 0 14px}.muted{color:var(--muted)}
.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;box-shadow:0 4px 16px rgba(20,40,70,.05)}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.kpi{font-size:27px;font-weight:800;margin-top:8px}
.btn{display:inline-block;border:0;border-radius:8px;padding:10px 13px;background:#1b2d49;color:#fff;text-decoration:none;cursor:pointer;font:inherit}.btn.primary{background:var(--blue)}.btn.light{background:#e9eef6;color:#182235}.btn.good{background:#16854c}.btn.warn{background:#b86a00}.btn.danger{background:#b63a31}
table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid #e8edf4;text-align:left;font-size:13px}th{background:#f1f5fa;color:#536178}.badge{padding:5px 9px;border-radius:999px;background:#e9eef6;font-size:12px}
form.gridform{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.full{grid-column:1/-1}label{font-size:13px;font-weight:700;color:#536178}
input,select,textarea{width:100%;padding:10px;border:1px solid #cfd8e6;border-radius:8px;margin-top:6px;font:inherit;background:#fff}textarea{min-height:95px}
.two{display:grid;grid-template-columns:2fr 1fr;gap:18px}.three{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.summary div{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #e8edf4}.summary .total{font-weight:850;font-size:18px}
.itemform{display:grid;grid-template-columns:1.1fr 2fr .65fr .55fr .8fr .8fr auto;gap:7px;align-items:end}
.toolbar{display:flex;gap:5px;margin:6px 0}.toolbar button{padding:5px 8px}.editor{border:1px solid #cfd8e6;border-radius:8px;min-height:120px;padding:10px;background:white}.spacer{height:16px}
.login{max-width:420px;margin:10vh auto}.alert{padding:10px;border-radius:8px;background:#ffe7e4;color:#7c201b;margin-bottom:12px}
@media(max-width:900px){.grid,.three{grid-template-columns:1fr 1fr}.two{grid-template-columns:1fr}.itemform{grid-template-columns:1fr 1fr}form.gridform{grid-template-columns:1fr}.full{grid-column:auto}}

.brand-wrap{display:flex;align-items:center;gap:12px}
.brand-logo{height:46px;width:auto;object-fit:contain;display:block}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text strong{font-size:14px;letter-spacing:.7px}
.brand-text small{font-size:11px;color:#c9d1df;margin-top:3px}
.login-logo{display:block;max-width:190px;width:62%;height:auto;margin:0 auto 16px}
.btn.primary{background:var(--mb-blue)}
.btn.good{background:#16854c}
header{border-bottom:3px solid var(--mb-orange)}
.card-accent{border-top:4px solid var(--mb-blue)}

.compact{padding:6px 8px;font-size:12px}
.actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.crumbs{font-size:12px;color:#6f7d91;margin-bottom:4px}.crumbs a{color:#45479f}
.section-title{font-weight:800;font-size:18px;margin:8px 0 14px;border-bottom:2px solid #ff6b00;padding-bottom:8px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.form-grid .wide{grid-column:1/-1}
.field-block{margin:14px 0}.field-block>label{display:block;margin-bottom:4px}
.sticky-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid #e3e9f2;padding:12px 0;margin-top:18px;display:flex;justify-content:flex-end;gap:8px}
.tabs{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid #dfe6ef;overflow:auto}.tab{background:transparent;border:0;padding:11px 14px;font-weight:700;color:#637187;cursor:pointer;border-bottom:3px solid transparent}.tab.active{color:#45479f;border-bottom-color:#ff6b00}
.tabpane{display:none}.tabpane.active{display:block}
.upload-row{display:flex;gap:8px;align-items:center}.upload-row input{margin:0}
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin-top:16px}
.file-card{border:1px solid #e1e7ef;border-radius:10px;padding:10px;background:#fafcff}.file-card img{width:100%;height:140px;object-fit:contain;background:white;border-radius:6px}.file-icon{height:140px;display:flex;align-items:center;justify-content:center;font-size:48px}.file-name{font-size:12px;word-break:break-word;margin:8px 0}
.inline-quote-image{display:block;max-width:100%;max-height:420px;object-fit:contain;margin:10px auto;border:1px solid #d9e0ea;border-radius:6px}
.rich-editor{min-height:150px}.rich-editor img{max-width:100%;height:auto}
.btn-inline{border:1px solid #cfd8e6;background:#fff;border-radius:5px;padding:5px 8px;cursor:pointer}
.autosave-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px;padding:8px 12px;border:1px solid #dce4eb;border-radius:8px;background:#fff}.autosave-banner small{color:var(--muted)}.autosave-status{display:inline-flex;align-items:center;min-height:28px;padding:5px 9px;border-radius:999px;background:#e8f6ed;color:#17683b;font-size:12px;font-weight:800}.autosave-status[data-state="pending"]{background:#fff3d9;color:#8b5a00}.autosave-status[data-state="saving"]{background:#e9edff;color:var(--mb-blue)}.autosave-status[data-state="error"]{background:#fde8e6;color:#9d2d26}
@media(max-width:850px){.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.actions{justify-content:flex-start}.gallery{grid-template-columns:1fr 1fr}}

.editor-master-toolbar{position:sticky;top:76px;z-index:4;margin:8px 0 14px;padding:8px;background:#fff;border:1px solid #dfe6ef;border-radius:8px;box-shadow:0 3px 10px rgba(27,45,73,.07);flex-wrap:wrap}
.mini-toolbar{margin-bottom:6px;flex-wrap:wrap}
.rich-block{border-top:1px solid #eef2f7;padding-top:12px}
.rich-block .editor{background:#fff}
.editor h1,.editor h2,.editor h3,.editor h4{margin:8px 0 6px;font-weight:800;color:#13294b}
.editor h1{font-size:24px}.editor h2{font-size:21px}.editor h3{font-size:18px}.editor h4{font-size:16px}
.editor p{margin:6px 0}.editor ul{padding-left:22px}
.small-gallery{grid-template-columns:1fr}
.thumb-card img{height:120px;object-fit:contain}
.toolbar button{white-space:nowrap}
.text-color-select{width:auto;min-width:112px;margin:0;padding:5px 28px 5px 8px;border-radius:5px;font-size:12px;font-weight:700;color:#24324a}
.custom-color-tool{display:inline-flex;align-items:center;gap:6px;padding:4px 7px;border:1px solid #cfd8e6;border-radius:5px;background:#fff;color:#536178;font-size:11px;white-space:nowrap;cursor:pointer}
.custom-color-tool input{width:25px;height:25px;margin:0;padding:1px;border:0;border-radius:4px;cursor:pointer}
.save-confirmation{margin:-4px 0 15px;padding:11px 14px;border:1px solid #a7d7b9;border-radius:9px;background:#edf9f1;color:#126b3b;font-weight:750}
.save-all-help{margin:4px 0 10px;color:#5f6b7a;font-size:12px}
.unified-save:disabled{opacity:.72;cursor:wait}

.section-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.section-editor-heading h2{margin-bottom:6px}
.section-view-tabs{display:flex;gap:6px;padding:4px;margin-bottom:14px;background:#edf2f8;border-radius:10px}
.section-view-tab{flex:1;border:0;border-radius:7px;padding:10px 12px;background:transparent;color:#536178;font:inherit;font-weight:800;cursor:pointer}
.section-view-tab span{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;margin-left:6px;padding:0 7px;border-radius:999px;background:#dce4ef;font-size:12px}
.section-view-tab.active{background:#fff;color:var(--mb-blue);box-shadow:0 2px 7px rgba(27,45,73,.1)}
.section-view-tab.active span{background:var(--mb-blue);color:#fff}
.section-card{border:1px solid #d9e2ee;border-left:4px solid var(--mb-orange);border-radius:10px;padding:14px;margin:12px 0;background:#fbfcfe;box-shadow:0 2px 8px rgba(27,45,73,.04)}
.section-card:focus-within{border-color:#9da9df;border-left-color:var(--mb-blue);box-shadow:0 0 0 3px rgba(69,71,159,.08)}
.section-card-header{display:grid;grid-template-columns:auto minmax(260px,1fr) auto auto;gap:10px;align-items:end;margin-bottom:10px}
.section-card-header input{margin-top:5px}
.section-title-input{display:block}
.section-drag-handle{align-self:end;width:38px;height:40px;margin-bottom:1px;border:1px solid #cfd8e5;border-radius:7px;background:#eef2f7;color:#536178;font-size:22px;line-height:1;cursor:grab;touch-action:none}.section-drag-handle:hover{border-color:#989bd6;background:#e9eaff;color:#373991}.section-drag-handle:active{cursor:grabbing}.section-card.section-dragging{opacity:.48;border:2px dashed #45479f;box-shadow:none}
.section-kind-badge{align-self:end;margin-bottom:5px;padding:6px 9px;border-radius:999px;background:#e8ebff;color:#383a8e;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.35px}
.section-actions{display:flex;gap:5px;align-items:center;padding-bottom:1px}
.section-remove-direct{color:#a42f28!important;border-color:#e7bbb7!important;background:#fff8f7!important}
.section-more{position:relative}
.section-more summary{list-style:none;user-select:none}.section-more summary::-webkit-details-marker{display:none}
.section-more-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:8;display:grid;min-width:220px;padding:6px;background:#fff;border:1px solid #d9e2ee;border-radius:8px;box-shadow:0 10px 25px rgba(20,40,70,.16)}
.section-more-menu button{border:0;background:transparent;padding:9px 10px;text-align:left;border-radius:5px;color:#24324a;font:inherit;cursor:pointer}
.section-more-menu button:hover{background:#f1f4f9}.section-more-menu .danger-text{color:#a42f28}
.section-editor{min-height:130px;background:#fff}
.section-editor .imported-table-wrap{max-width:100%;margin:10px 0;overflow:auto}.section-editor .imported-offer-table{width:100%;border-collapse:collapse;background:#fff}.section-editor .imported-offer-table th,.section-editor .imported-offer-table td{min-width:90px;padding:7px;border:1px solid #9aa8b8;vertical-align:top}.section-editor .imported-offer-table th{background:#13294b;color:#fff}.section-editor .imported-offer-table p{margin:0 0 4px}.section-editor .imported-offer-table p:last-child{margin-bottom:0}
.section-editor[data-placeholder]:empty::before{content:attr(data-placeholder);display:block;color:#98a5b7;font-style:italic;font-weight:400;line-height:1.5;white-space:pre-line;pointer-events:none}
.empty-sections{text-align:center;border:1px dashed #c8d2e0;border-radius:10px;padding:24px;margin:12px 0}
#sectionsForm .sticky-actions{align-items:center;justify-content:space-between;gap:16px}
.section-builder-card{position:sticky;top:84px;z-index:3}
.section-builder-card label{display:block;margin-top:12px}.section-builder-card select{margin-top:6px}
.builder-button{display:block;width:100%;margin-top:9px;text-align:center}
.adjustment-helper-card{border-left:4px solid var(--mb-blue)}
.adjustment-helper-card details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.adjustment-helper-card details>summary::-webkit-details-marker{display:none}.adjustment-helper-card details>summary strong{display:block;font-size:18px;color:#182235}.adjustment-helper-card details>summary small{display:block;margin-top:4px;color:var(--muted);font-weight:500}.adjustment-helper-body{padding-top:16px;margin-top:14px;border-top:1px solid var(--line)}
.adjustment-top-grid{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr);gap:12px}.adjustment-rows-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 8px}.adjustment-total{padding:5px 9px;border-radius:999px;background:#e8f5ed;color:#147244;font-size:12px;font-weight:850}.adjustment-total.invalid{background:#fff0dc;color:#9a5300}.adjustment-rows{display:grid;gap:8px}.adjustment-row{display:grid;grid-template-columns:120px minmax(190px,.8fr) minmax(280px,1.7fr) 34px;gap:8px;align-items:end;padding:10px;background:#f6f8fb;border:1px solid #e1e7ef;border-radius:9px}.adjustment-reference-label{min-width:0}.adjustment-remove{height:42px;margin-bottom:0;color:#a42f28;font-size:20px}.adjustment-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px}
.field-help{display:block;margin-top:6px;color:var(--muted);font-weight:500;line-height:1.35}
.pricing-intro{display:flex;justify-content:space-between;gap:22px;align-items:flex-start}.pricing-intro h2{margin-bottom:6px}.pricing-intro p{max-width:650px;margin-bottom:0}
.pricing-kpis{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px;min-width:390px}.pricing-kpis div{padding:10px 12px;background:#f4f7fb;border-radius:9px}.pricing-kpis span{display:block;color:var(--muted);font-size:11px;font-weight:700}.pricing-kpis strong{display:block;margin-top:4px}
.pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.pricing-card{min-width:0}.pricing-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.eyebrow{display:block;color:#8a4b00;font-size:10px;font-weight:900;letter-spacing:.09em;margin-bottom:5px}.eyebrow.client{color:#373991}.internal-pill,.client-pill{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap}.internal-pill{background:#fff0dc;color:#8a4b00}.client-pill{background:#e9eaff;color:#373991}
.pricing-disclosure{padding:0;overflow:hidden}.pricing-disclosure>summary{position:relative;padding:18px 48px 18px 19px;cursor:pointer;list-style:none;user-select:none}.pricing-disclosure>summary::-webkit-details-marker{display:none}.pricing-disclosure>summary::after{content:'⌄';position:absolute;top:50%;right:18px;transform:translateY(-50%);color:#4a4ca2;font-size:22px;font-weight:900;transition:transform .15s}.pricing-disclosure[open]>summary::after{transform:translateY(-50%) rotate(180deg)}.pricing-disclosure>summary small{display:block;margin-top:5px;color:var(--muted);font-size:11px;font-weight:650}.pricing-disclosure[open]>summary{border-bottom:1px solid #e3e8ef;background:#fafbfc}.pricing-disclosure-body{padding:16px 19px 19px}.pricing-disclosure-body>.muted{margin-top:0}
.assistance-adjustment-box{margin-top:22px;padding-top:18px;border-top:2px solid #e4e8f4}.assistance-adjustment-box .adjustment-rows-heading{margin:0 0 12px}.assistance-adjustment-box .adjustment-rows-heading small{display:block;margin-top:4px;color:var(--muted);font-weight:500}.assistance-adjustment-grid{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:10px}.assistance-formula-preview{margin-top:12px;padding:12px 14px;border:1px solid #dfe3f3;border-radius:8px;background:#f7f7fd;color:#26324a;font-size:12px;line-height:1.45}.assistance-formula-preview p{margin:0 0 9px}.assistance-formula-preview p:last-child{margin-bottom:0}
.cost-itemform{display:grid;grid-template-columns:1.1fr 1.8fr .6fr .55fr .9fr auto;gap:7px;align-items:end}.price-itemform{display:grid;grid-template-columns:minmax(160px,1.8fr) .55fr .55fr 1fr auto;gap:7px;align-items:end}.suggested-price-button{margin-top:9px}.table-wrap{overflow:auto}.empty-cell{text-align:center;color:var(--muted);padding:22px}.client-price-table th{background:#eceeff}.price-total-row td{font-weight:900;background:#eef1f7;text-align:right}.price-total-row td:last-child{background:var(--mb-blue);color:#fff}
.custom-category-field{grid-column:1/3;grid-row:2}.paste-mode-pill{align-self:center;padding:5px 8px;border-radius:999px;background:#eef0ff;color:#3e4094;font-size:11px;font-weight:800;white-space:nowrap}.paste-status{align-self:center;max-width:260px;color:#147244;font-size:11px;font-weight:750;opacity:0;transition:opacity .15s}.paste-status.visible{opacity:1}
@media(max-width:1000px){.section-card-header{grid-template-columns:auto minmax(0,1fr) auto}.section-actions{grid-column:2/-1}.editor-master-toolbar{top:74px}.section-builder-card{position:static}}
@media(max-width:1100px){.pricing-grid{grid-template-columns:1fr}.pricing-intro{display:block}.pricing-kpis{min-width:0;margin-top:14px}.cost-itemform,.price-itemform{grid-template-columns:1fr 1fr}.custom-category-field{grid-column:1/-1;grid-row:auto}.cost-itemform label:nth-child(3),.price-itemform .price-description{grid-column:1/-1}}
@media(max-width:850px){.adjustment-top-grid,.adjustment-row,.assistance-adjustment-grid{grid-template-columns:1fr}.adjustment-remove{justify-self:start;width:42px}}
@media(max-width:620px){.section-card-header{grid-template-columns:auto 1fr}.section-kind-badge{grid-column:2;justify-self:start}.section-actions{grid-column:1/-1;flex-wrap:wrap}.section-editor-heading{display:block}.section-editor-heading .badge{display:inline-block;margin-top:8px}.section-view-tabs{display:grid}.editor-master-toolbar{position:static}.pricing-kpis,.cost-itemform,.price-itemform{grid-template-columns:1fr}.custom-category-field,.cost-itemform label:nth-child(3),.price-itemform .price-description{grid-column:auto}.adjustment-actions{display:grid}.adjustment-actions .btn{width:100%}}

/* Formato operativo inspirado en MB Cotizaciones V2, conservando la identidad MB. */
body{background:#f3f6f8;color:#172330;font-size:14px}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:236px;padding:18px 14px;background:#101a31;color:#fff;display:flex;flex-direction:column;overflow-y:auto;box-shadow:5px 0 22px rgba(8,18,38,.08)}
.side-brand{display:flex;align-items:center;gap:11px;padding:2px 7px 20px;color:#fff;text-decoration:none}
.side-brand-logo{width:48px;height:48px;object-fit:contain;border-radius:8px;background:#fff}
.side-brand-copy{min-width:0;display:flex;flex-direction:column;line-height:1.1}
.side-brand-copy strong{font-size:12px;letter-spacing:.45px;white-space:nowrap}
.side-brand-copy small{margin-top:5px;color:#aebbd2;font-size:8px;letter-spacing:1.1px;white-space:nowrap}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-nav a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:8px;color:#dce5f3;text-decoration:none;font-size:13px;font-weight:650;transition:background .15s,color .15s,transform .15s}
.side-nav a:hover{background:#1a2a49;color:#fff;transform:translateX(2px)}
.side-nav a.active{background:#25385c;color:#fff;box-shadow:inset 3px 0 0 var(--mb-orange)}
.side-nav a.new{margin:5px 0 8px;background:var(--mb-blue);color:#fff;box-shadow:none}
.side-nav a.new:hover,.side-nav a.new.active{background:#5557ad;box-shadow:inset 3px 0 0 var(--mb-orange)}
.nav-icon{display:inline-flex;align-items:center;justify-content:center;width:21px;min-width:21px;font-size:17px;line-height:1}
.nav-divider{height:1px;margin:5px 8px 8px;background:#2a3854}
.side-user{margin-top:auto;padding:14px 8px 2px;border-top:1px solid #2a3854;display:flex;align-items:center;justify-content:space-between;gap:9px}
.side-user-copy{min-width:0;display:flex;flex-direction:column}.side-user-copy strong{overflow:hidden;text-overflow:ellipsis;font-size:11px;white-space:nowrap}.side-user-copy small{margin-top:3px;color:#aebbd2;font-size:9px}
.side-user>a{color:#e6edf7;text-decoration:none;font-size:11px}
.app-main{min-height:100vh;margin-left:236px;width:calc(100% - 236px)}
.container{max-width:1540px;margin:0 auto;padding:28px 30px 72px}
.hero{align-items:flex-start;margin-bottom:18px}.hero h1{font-size:27px;line-height:1.14}.hero .muted{font-size:13px}
.card{border-color:#dbe2e9;border-radius:12px;padding:19px;box-shadow:0 2px 9px rgba(25,48,75,.035)}
.btn{border-radius:7px;padding:9px 12px;font-weight:700}.btn.light{background:#edf1f6}.btn.light:hover{background:#e2e8f0}
.quote-hero{position:sticky;top:0;z-index:12;margin:-12px -12px 14px;padding:12px;background:rgba(243,246,248,.96);border-bottom:1px solid #dce3ea;backdrop-filter:blur(8px)}
.quote-hero .actions{max-width:850px}
.tabs{gap:0;margin-bottom:16px;background:#fff;border:1px solid #dbe2e9;border-radius:10px;padding:4px;box-shadow:0 2px 8px rgba(25,48,75,.03)}
.tab{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;border:0;border-radius:7px;padding:10px 12px}
.tab>span{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:999px;background:#e2e8f0;color:#5a6878;font-size:11px}
.tab.active{background:#eef0ff;color:#3e4094;border-bottom:0}.tab.active>span{background:var(--mb-blue);color:#fff}
.quote-workspace{grid-template-columns:minmax(0,1fr) 292px;gap:16px;align-items:start}
.quote-doc{min-width:0}
.quote-side{position:sticky;top:96px;align-self:start;max-height:calc(100vh - 112px);overflow-y:auto;padding-right:4px;scrollbar-width:thin}
.quote-side .section-builder-card{position:static;top:auto}
.summary-card{border-top:4px solid var(--mb-blue)}
.summary .side-card-heading{display:block;padding-bottom:8px;border-bottom:1px solid #e5eaf0}.side-card-heading h2{margin:3px 0 0;font-size:19px;white-space:nowrap}.side-card-heading .eyebrow{margin:0}
.summary .summary-separator{margin-top:8px;padding-top:13px;border-top:2px solid #e3e8ef}
.flow-heading{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}
.flow-heading>span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;min-width:30px;border-radius:8px;background:var(--mb-blue);color:#fff;font-weight:900}
.flow-heading h2{margin:1px 0 3px;font-size:19px}.flow-heading p{margin:0;color:var(--muted);font-size:12px}
.flow-heading strong{display:block;margin:1px 0 3px;color:#182235;font-size:19px}.flow-heading small{display:block;color:var(--muted);font-size:12px;font-weight:500;line-height:1.35}
.quote-create-card{max-width:1080px}.quote-create-card .flow-heading:not(:first-child){margin-top:24px;padding-top:20px;border-top:1px solid #e3e8ef}
.editor-master-toolbar{top:84px}
#sectionsForm>.section-editor-heading{padding-bottom:10px;border-bottom:1px solid #e5eaf0}
.section-card{background:#fff;border-color:#dbe2e9;box-shadow:none}
.section-view-tabs{background:#e9eef3}
.adjustment-helper-card{border-left:0;border-top:4px solid var(--mb-orange)}
.pricing-intro{border-top:4px solid var(--mb-blue)}

@media(max-width:1120px){
  .quote-workspace{grid-template-columns:1fr}
  .quote-side{position:static;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding-right:0}
  .quote-side>.spacer{display:none}.quote-side>.card:last-child{grid-column:1/-1}
  .editor-master-toolbar{top:82px}
}
@media(max-width:1350px){.quote-hero{flex-direction:column}.quote-hero .actions{max-width:none;justify-content:flex-start}}
@media(max-width:820px){
  .sidebar{width:74px;padding:16px 10px}.app-main{margin-left:74px;width:calc(100% - 74px)}
  .side-brand{justify-content:center;padding:0 0 19px}.side-brand-logo{width:45px;height:45px}.side-brand-copy,.side-nav a>span:not(.nav-icon),.side-user{display:none}
  .side-nav a{justify-content:center;padding:11px 8px}.side-nav a.active,.side-nav a.new.active{box-shadow:inset 0 -3px 0 var(--mb-orange)}
  .container{padding:20px 18px 60px}.quote-hero{position:static;margin:0 0 16px;padding:0 0 14px;background:transparent;backdrop-filter:none}
  .editor-master-toolbar{top:12px}.tabs{overflow-x:auto}.tab{min-width:155px;flex:none}
}
@media(max-width:620px){
  .sidebar{width:62px;padding:13px 8px}.app-main{margin-left:62px;width:calc(100% - 62px)}.side-brand-logo{width:40px;height:40px}
  .container{padding:16px 12px 52px}.hero h1{font-size:23px}.quote-side{display:block}.quote-side>.card{margin-bottom:14px}
  .tabs{justify-content:flex-start}.tab{min-width:140px}.flow-heading h2{font-size:17px}
}

/* Calculador interno detallado: conserva el camino rápido y suma modelos CRIBA/asistencia. */
.detailed-calculator{margin-top:18px;padding:0;overflow:visible;border-top:4px solid var(--mb-orange)}
.detailed-calculator>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;cursor:pointer;list-style:none}
.detailed-calculator>summary::-webkit-details-marker{display:none}
.detailed-calculator>summary strong{display:block;font-size:21px;color:#182235}
.detailed-calculator>summary small{display:block;margin-top:5px;color:var(--muted);font-size:12px}
.calculator-source-pill{padding:7px 10px;border-radius:999px;background:#eef0ff;color:#3e4094;font-size:11px;font-weight:850;white-space:nowrap}
.calculator-template-strip{display:flex;align-items:center;gap:10px;padding:16px 20px;border-top:1px solid #e1e7ed;border-bottom:1px solid #e1e7ed;background:#f8fafc}
.calculator-template-strip>div{margin-right:auto}.calculator-template-strip h3{margin:0 0 3px;font-size:15px}.calculator-template-strip p{margin:0}
.calculator-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;padding:20px;align-items:start}
.estimate-form{min-width:0}.calculator-section{padding:18px;margin-bottom:16px;border:1px solid #dce4eb;border-radius:10px;background:#fff}
.calculator-step-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:14px}.calculator-step-heading>span{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;min-width:28px;border-radius:8px;background:var(--mb-blue);color:#fff;font-weight:900}.calculator-step-heading h3{margin:1px 0 3px;font-size:17px}.calculator-step-heading p{margin:0;color:var(--muted);font-size:12px}
.calculator-mode-grid{grid-template-columns:1fr 1fr}.estimate-quick-add{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:-2px 0 13px;padding:9px 10px;border:1px solid #d9e2eb;border-radius:9px;background:#f6f8fb}.estimate-quick-add strong{margin-right:2px;font-size:12px;color:var(--muted)}.estimate-quick-add .btn{min-height:34px;padding:7px 10px;font-size:12px}.estimate-lines{display:grid;gap:10px;margin-bottom:11px}
.estimate-line-card{overflow:hidden;padding:0;border:1px solid #d9e2eb;border-left:4px solid #6670c5;border-radius:9px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}
.estimate-line-card[open]{border-color:#afb8df;border-left-color:#4b4eaa;box-shadow:0 5px 16px rgba(25,42,70,.08)}
.estimate-line-summary{display:grid;grid-template-columns:30px minmax(120px,.55fr) minmax(150px,1.5fr) minmax(95px,.45fr) 30px 16px;gap:9px;align-items:center;min-height:62px;padding:10px 12px;list-style:none;cursor:pointer;background:#fff;user-select:none}
.estimate-line-summary::-webkit-details-marker{display:none}
.estimate-line-summary:hover{background:#f7f9fc}
.estimate-line-card[open]>.estimate-line-summary{background:#f3f5ff;border-bottom:1px solid #dfe3f2}
.estimate-summary-category{display:inline-flex;align-items:center;width:max-content;max-width:100%;min-height:25px;padding:4px 8px;border-radius:999px;background:#e9ecf9;color:#404494;font-size:9px;font-weight:900;line-height:1.2}
.estimate-summary-copy{min-width:0}.estimate-summary-copy strong,.estimate-summary-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.estimate-summary-copy strong{color:#1b293c;font-size:12px}.estimate-summary-copy small{margin-top:4px;color:#738196;font-size:9px;font-weight:650}
.estimate-summary-total{text-align:right}.estimate-summary-total small,.estimate-summary-total strong{display:block;white-space:nowrap}.estimate-summary-total small{color:#8793a3;font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.estimate-summary-total strong{margin-top:3px;color:#17253a;font-size:12px}
.estimate-drag-handle,.estimate-remove-summary{display:inline-flex;align-items:center;justify-content:center;width:30px;height:32px;padding:0;border:1px solid #d5deea;border-radius:6px;background:#f2f5f8;color:#657389;line-height:1;cursor:pointer}.estimate-drag-handle{font-size:17px;cursor:grab;touch-action:none}.estimate-drag-handle:hover{border-color:#9699d4;background:#e9eaff;color:#393c92}.estimate-drag-handle:active{cursor:grabbing}.estimate-remove-summary{font-size:19px;color:#a63831}.estimate-remove-summary:hover{border-color:#e2a7a2;background:#fff1f0;color:#97251f}.estimate-line-card.estimate-line-dragging{opacity:.5;border:2px dashed #4b4eaa;box-shadow:none}
.client-price-table tr:not(.price-total-row)>th:last-child,.client-price-table tr:not(.price-total-row)>td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-8px 0 10px rgba(24,39,65,.05)}.client-price-remove-cell{min-width:74px;text-align:right}
.estimate-summary-toggle{width:9px;height:9px;border-right:2px solid #68758a;border-bottom:2px solid #68758a;transform:rotate(45deg) translate(-2px,-2px);transition:transform .16s ease}
.estimate-line-card[open] .estimate-summary-toggle{transform:rotate(225deg) translate(-1px,-1px)}
.estimate-line-body{padding:12px;background:#fbfcfe}
.estimate-line-main{display:grid;grid-template-columns:minmax(155px,.75fr) minmax(220px,1.4fr) auto;gap:8px;align-items:end}
.estimate-line-actions{display:flex;align-items:center;gap:5px}.estimate-line-actions .btn-inline{min-height:41px}
.estimate-line-fields{display:grid;grid-template-columns:1.35fr repeat(7,minmax(80px,.72fr));gap:8px;align-items:end;margin-top:9px}
.estimate-money-label{color:#8f4300!important;font-weight:900!important}.estimate-money-input{display:flex;align-items:stretch;margin-top:5px;overflow:hidden;border:1px solid #df9859;border-radius:7px;background:#fffaf4;box-shadow:0 0 0 2px rgba(255,107,0,.06)}.estimate-money-input:focus-within{border-color:#ff6b00;box-shadow:0 0 0 3px rgba(255,107,0,.14)}.estimate-money-input span{display:flex;align-items:center;padding:0 9px;background:#ffe7d2;color:#9a4300;font-size:10px;font-weight:950;letter-spacing:.03em}.estimate-money-input input{min-width:0;margin:0!important;border:0!important;border-radius:0!important;background:#fffaf4!important;color:#172234;font-weight:900;box-shadow:none!important}.estimate-money-input input:focus{outline:0}
.estimate-notes{grid-column:1/7}.estimate-line-total{grid-column:7/9;display:flex;flex-direction:column;justify-content:center;min-height:54px;padding:7px 10px;border-radius:7px;background:#eef1f7;text-align:right}.estimate-line-total span{font-size:10px;color:var(--muted)}.estimate-line-total strong{margin-top:3px;font-size:12px}
.field-muted{opacity:.45}.empty-hint{padding:14px;border:1px dashed #c9d3dd;border-radius:8px;color:var(--muted);text-align:center}
.historical-warning{margin-bottom:14px;padding:10px 12px;border-left:4px solid var(--mb-orange);border-radius:6px;background:#fff5e8;color:#70410a;font-size:12px;line-height:1.45}
.parameter-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.parameter-grid label small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:500;line-height:1.25}
.estimate-savebar{position:sticky;bottom:12px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #d7dfe8;border-radius:9px;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(21,41,73,.12);backdrop-filter:blur(7px)}.estimate-savebar span{color:var(--muted);font-size:11px}
.estimate-summary{position:sticky;top:98px;padding:17px;border:1px solid #d9e2eb;border-top:4px solid var(--mb-blue);border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(18,42,74,.07)}.estimate-summary h3{margin:3px 0 12px;font-size:18px}.estimate-summary>div{display:flex;justify-content:space-between;gap:10px;padding:7px 0;border-bottom:1px solid #edf0f4;font-size:11px}.estimate-summary>div strong{text-align:right}.estimate-summary .estimate-separator{margin-top:5px;border-top:2px solid #d9e1e9}.estimate-summary .estimate-subtotal{font-weight:850;background:#f2f5f8;margin:0 -8px;padding:8px}.estimate-summary .estimate-grand-total{margin:8px -8px 0;padding:11px 8px;border:0;border-radius:7px;background:var(--mb-blue);color:#fff}.estimate-summary .estimate-grand-total strong{font-size:14px}.estimate-summary>small{display:block;margin-top:10px;color:var(--muted);font-size:10px;line-height:1.4}
.apply-estimate-form{display:grid;gap:8px;margin-top:13px;padding-top:12px;border-top:1px solid #dfe5eb}
.assistance-output-note{text-align:left}.assistance-output-note>form,.assistance-output-note .btn{width:100%}
.attachment-delivery-form{display:grid;gap:7px;width:100%;margin-top:8px;padding-top:8px;border-top:1px solid #e2e7ed}.attachment-delivery-form label{font-size:10px}.attachment-delivery-form .attachment-checkbox{display:flex;align-items:center;gap:6px}.attachment-delivery-form .attachment-checkbox input{width:auto}.file-card{align-items:stretch}
@media(max-width:1300px){.estimate-line-fields{grid-template-columns:repeat(4,minmax(90px,1fr))}.estimate-notes{grid-column:1/3}.estimate-line-total{grid-column:3/5}}
@media(max-width:1050px){.calculator-layout{grid-template-columns:1fr}.estimate-summary{position:static}.calculator-template-strip{align-items:flex-start;flex-wrap:wrap}.calculator-template-strip>div{flex-basis:100%}.parameter-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.autosave-banner{align-items:flex-start;flex-direction:column}.detailed-calculator>summary{align-items:flex-start;flex-direction:column}.calculator-source-pill{white-space:normal}.calculator-layout{padding:12px}.estimate-line-summary{grid-template-columns:30px minmax(0,1fr) auto 30px 16px;gap:7px;min-height:58px}.estimate-drag-handle{grid-column:1;grid-row:1/3}.estimate-summary-category{grid-column:2;grid-row:1}.estimate-summary-copy{grid-column:2;grid-row:2}.estimate-summary-total{grid-column:3;grid-row:1/3}.estimate-remove-summary{grid-column:4;grid-row:1/3}.estimate-summary-toggle{grid-column:5;grid-row:1/3}.estimate-line-main,.estimate-line-fields,.calculator-mode-grid,.parameter-grid{grid-template-columns:1fr}.estimate-line-actions{justify-content:flex-end}.estimate-notes,.estimate-line-total{grid-column:auto}.estimate-savebar{position:static;align-items:stretch;flex-direction:column}.calculator-template-strip form,.calculator-template-strip .btn{width:100%}}

/* Diseño guiado aprobado: interfaz compacta y consistente en todo MB Portal. */
:root{--guided-navy:#0d1930;--guided-navy-2:#172746;--guided-bg:#f3f5f8;--guided-text:#172234;--guided-soft:#f7f9fc;--guided-purple:#4b4eaa;--guided-orange:#ff6b00}
.portal-body{padding-top:64px;background:var(--guided-bg);color:var(--guided-text)}
.portal-topbar{position:fixed;inset:0 0 auto 0;z-index:50;height:64px;padding:0 22px;background:var(--guided-navy);border-bottom:3px solid var(--guided-orange);display:grid;grid-template-columns:205px 1fr auto;align-items:center;box-shadow:none}
.top-brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none}.top-brand img{width:41px;height:41px;object-fit:contain;border-radius:7px;background:#fff}.top-brand span{display:flex;flex-direction:column;line-height:1.08}.top-brand strong{font-size:12px;letter-spacing:.45px}.top-brand small{margin-top:4px;color:#aebbd2;font-size:7.5px;letter-spacing:1.05px}
.top-context{padding-left:18px;color:#c8d3e5;font-size:12px;font-weight:750}.top-actions{display:flex;align-items:center;gap:14px}.top-local{color:#9eacc2;font-size:11px}.top-save{display:flex;align-items:center;gap:7px;color:#b9c7da;font-size:11px}.top-save i{width:7px;height:7px;border-radius:50%;background:#43ba74;box-shadow:0 0 0 3px rgba(67,186,116,.13)}.top-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#4b4eaa;color:#fff;font-size:11px;font-weight:900}
.guided-sidebar{inset:64px auto 0 0;width:205px;padding:20px 12px 14px;background:var(--guided-navy);box-shadow:4px 0 18px rgba(8,18,38,.06)}
.guided-sidebar .side-nav a{padding:10px 12px;font-size:12px}.guided-sidebar .side-nav a.new{margin:8px 0 11px;background:#4b4eaa}.guided-sidebar .side-user{padding-top:13px}
.guided-main{margin-left:205px;width:calc(100% - 205px)}.guided-container{max-width:1500px;padding:26px 28px 72px}
.mobile-nav{display:none}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}.page-heading h1{margin:2px 0 5px;font-size:29px;line-height:1.12}.page-heading p{margin:0;color:var(--muted);font-size:13px}.page-heading .eyebrow{color:#4b4eaa}.compact-heading{align-items:center;margin-bottom:18px}.guided-primary{background:#4b4eaa!important;box-shadow:0 5px 13px rgba(75,78,170,.18)}
.panel{background:#fff;border:1px solid #dde4ec;border-radius:12px;box-shadow:0 2px 8px rgba(20,39,66,.035)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 19px 13px}.panel-heading h2{margin:0 0 4px;font-size:17px}.panel-heading p{margin:0;color:var(--muted);font-size:11px}.panel-heading>a{color:#4b4eaa;text-decoration:none;font-size:11px;font-weight:800}
.guided-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.metric-card{position:relative;min-height:113px;padding:17px 18px;background:#fff;border:1px solid #dde4ec;border-radius:11px;overflow:hidden}.metric-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:#4b4eaa}.metric-card.accent:before{background:#ff6b00}.metric-card span{display:block;color:#6c798c;font-size:11px;font-weight:750}.metric-card strong{display:block;margin:8px 0 4px;font-size:25px;line-height:1}.metric-card small{color:#98a4b4;font-size:9px}
.guided-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.7fr);gap:16px}.guided-recent,.list-panel{overflow:visible}.table-scroll{overflow-x:auto}.guided-table{width:100%}.guided-table th{padding:9px 14px;background:#f5f7fa;border-color:#e7ebf0;color:#788495;font-size:9px;letter-spacing:.04em;text-transform:uppercase}.guided-table td{padding:12px 14px;border-color:#edf0f4;font-size:11px;vertical-align:middle}.guided-table td>strong,.guided-table td>small{display:block}.guided-table td>small{max-width:360px;margin-top:3px;color:#7a8798;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quote-code{display:flex;flex-direction:column;color:#243d6b;text-decoration:none;font-weight:900;white-space:nowrap}.quote-code small{margin-top:3px;color:#8794a6;font-size:8px;font-weight:700}.row-arrow{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:7px;background:#f0f3f8;color:#4b4eaa;text-decoration:none;font-weight:900}.status-pill,.role-pill,.doc-type,.library-kind,.audit-action{display:inline-flex;align-items:center;max-width:190px;padding:5px 8px;border-radius:999px;background:#eef1f5;color:#536176;font-size:9px;font-weight:850;white-space:nowrap}.status-pill.success{background:#e8f6ed;color:#147344}.status-pill.warning{background:#fff2dd;color:#955400}.status-pill.danger{background:#fde9e7;color:#a3312b}.status-pill.neutral{background:#edf1f5;color:#5d697a}.doc-type{max-width:160px;overflow:hidden;text-overflow:ellipsis;background:#eef0ff;color:#414497}.library-kind{background:#fff0dc;color:#925000}.audit-action{border-radius:6px;background:#edf0ff;color:#414497}
.quick-panel{padding-bottom:10px}.quick-link{display:grid;grid-template-columns:37px 1fr auto;gap:10px;align-items:center;margin:0 12px 8px;padding:11px;border:1px solid #e8edf2;border-radius:9px;color:#243044;text-decoration:none}.quick-link:hover{border-color:#bfc8e8;background:#fafbff}.quick-link span:nth-child(2){display:flex;min-width:0;flex-direction:column}.quick-link strong{font-size:11px}.quick-link small{margin-top:3px;color:#8995a5;font-size:9px}.quick-link b{color:#8c99aa}.quick-icon{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:9px;font-size:16px;font-weight:900}.quick-icon.orange{background:#fff0e4;color:#df5e00}.quick-icon.blue{background:#e9edff;color:#4b4eaa}.quick-icon.slate{background:#edf2f6;color:#486176}.quick-summary{margin:14px 12px 5px;padding:12px;border-radius:9px;background:#111f39;color:#fff}.quick-summary span{display:block;color:#aebbd0;font-size:9px}.quick-summary strong{display:block;margin-top:5px;font-size:18px}
.guided-toolbar{display:flex;align-items:center;gap:8px;padding:14px}.search-field{position:relative;display:flex;align-items:center;min-width:280px;flex:1}.search-field span{position:absolute;left:12px;color:#8793a4;font-size:18px}.search-field input{margin:0;padding-left:35px;background:#f8fafc}.quotes-table td:nth-child(2){min-width:210px}.quotes-table td:last-child{position:relative}.row-menu{position:relative}.row-menu>summary{list-style:none;cursor:pointer;padding:5px 8px;border-radius:6px;color:#647287;font-weight:900}.row-menu>summary::-webkit-details-marker{display:none}.row-menu[open]>summary{background:#eef1f6}.row-menu>div{position:absolute;right:0;top:28px;z-index:20;display:grid;min-width:150px;padding:5px;background:#fff;border:1px solid #dce3eb;border-radius:8px;box-shadow:0 10px 25px rgba(18,35,61,.16)}.row-menu a,.row-menu button{display:block;width:100%;padding:8px 9px;border:0;border-radius:5px;background:transparent;color:#263349;text-align:left;text-decoration:none;font:inherit;font-size:10px;cursor:pointer}.row-menu a:hover,.row-menu button:hover{background:#f2f5f8}.danger-text{color:#a73630!important}
.create-progress{display:flex;align-items:center;max-width:760px;margin:0 auto 17px;padding:12px 18px;background:#fff;border:1px solid #dfe5ec;border-radius:10px}.create-progress span{display:flex;align-items:center;gap:7px;color:#8793a4;font-size:10px;font-weight:800;white-space:nowrap}.create-progress span.active{color:#414497}.create-progress b{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;border-radius:50%;background:#e8ebf0;color:#687587;font-size:9px}.create-progress .active b{background:#4b4eaa;color:#fff}.create-progress i{height:1px;flex:1;margin:0 12px;background:#dfe4eb}
.guided-create{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:16px;max-width:1120px;margin:0 auto}.create-main{padding:22px}.section-title{display:flex;align-items:flex-start;gap:11px;margin:0 0 15px;padding:0;border:0}.section-title h2{margin:1px 0 3px;font-size:18px}.section-title p{margin:0;color:var(--muted);font-size:11px}.step-number{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;min-width:29px;border-radius:8px;background:#4b4eaa;color:#fff;font-weight:900}.guided-form-grid{gap:11px}.guided-form-grid label,.template-choice{color:#4f5f75;font-size:11px}.guided-form-grid input,.guided-form-grid select,.guided-form-grid textarea,.template-choice select{padding:9px 10px;margin-top:5px}.section-divider{height:1px;margin:21px 0;background:#e6eaf0}.template-choice{display:block;padding:14px;border:1px solid #dfe4eb;border-radius:9px;background:#f8fafc}.template-choice small{display:block;margin-top:7px;color:#8591a1;font-weight:500}.guided-advanced{margin-top:18px;border:1px solid #dfe4eb;border-radius:9px;overflow:hidden}.guided-advanced>summary{display:flex;justify-content:space-between;gap:15px;padding:13px 15px;cursor:pointer;list-style:none;background:#f7f9fb;color:#334259;font-size:11px;font-weight:850}.guided-advanced>summary::-webkit-details-marker{display:none}.guided-advanced>summary small{color:#8b97a7;font-size:9px;font-weight:500}.advanced-body{padding:15px;border-top:1px solid #e4e9ef}.internal-field{padding:11px;border-radius:8px;background:#fff8ec}.internal-field em{margin-left:5px;color:#9c5800;font-size:8px}.guided-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:19px;padding-top:15px;border-top:1px solid #e7ebf0}.create-help{align-self:start;padding:19px;border-top:4px solid #ff6b00}.help-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#fff0e4;color:#df5d00;font-weight:900}.create-help h3{margin:13px 0 7px;font-size:15px}.create-help p,.create-help li{color:#697789;font-size:10px;line-height:1.5}.create-help ul{padding-left:17px}
.admin-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.65fr);gap:16px}.admin-form{align-self:start;padding:4px 18px 18px}.admin-form>label{display:block;margin-bottom:12px}.admin-form .btn{width:100%}.content-preview{max-width:520px;max-height:72px;overflow:hidden;color:#667487;line-height:1.45}.integration-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.integration-card{padding:19px}.integration-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.integration-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;font-weight:950}.integration-icon.odoo{background:#eee9f3;color:#714b6c}.integration-icon.cloud{background:#e6f3ff;color:#2174b6}.integration-icon.api{background:#eef0ff;color:#4649a2}.integration-card h2{margin-bottom:6px;font-size:18px}.integration-card>p{min-height:36px;margin:0;color:#718094;font-size:11px;line-height:1.5}.integration-detail{margin-top:18px;padding-top:12px;border-top:1px solid #e7ebf0}.integration-detail span,.integration-detail strong{display:block}.integration-detail span{color:#8995a5;font-size:9px}.integration-detail strong{margin-top:5px;overflow:hidden;color:#344258;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.nowrap{white-space:nowrap}

/* Recorrido guiado dentro de una oferta. */
.quote-hero{top:64px;margin:-8px -8px 13px;padding:10px 8px;background:rgba(243,245,248,.97)}.quote-hero h1{font-size:24px}.quote-hero .muted{font-size:11px}.quote-hero .actions .btn{padding:7px 9px;font-size:10px}.quote-hero .actions form{margin:0}.tabs{position:relative;margin-bottom:9px}.tab{font-size:11px}.autosave-banner{margin-bottom:10px;padding:6px 11px;border:0;background:transparent}.autosave-banner small{font-size:9px}.guided-builder-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-bottom:14px;padding:4px;background:#e8edf3;border-radius:10px}.guided-builder-tabs button{position:relative;display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:8px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#677589;text-align:left;cursor:pointer}.guided-builder-tabs button:not(:last-child):after{content:"";position:absolute;right:-1px;top:14px;width:1px;height:25px;background:#d5dce5}.guided-builder-tabs button.active{background:#fff;color:#34378c;box-shadow:0 2px 8px rgba(25,42,70,.09)}.guided-builder-tabs button span{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#d7dee7;color:#677488;font-size:10px;font-weight:900}.guided-builder-tabs button.active span{background:#4b4eaa;color:#fff}.guided-builder-tabs b{align-self:end;font-size:10px}.guided-builder-tabs small{align-self:start;margin-top:2px;color:#929dac;font-size:8px}.guided-builder-panel,.guided-builder-panel-footer{display:none}.guided-builder-panel.active,.guided-builder-panel-footer.active{display:block}.guided-builder-panel{scroll-margin-top:145px}.quote-doc>.spacer{display:none}.guided-document-side{display:none!important}.guided-document-side.active{display:block!important}.panel-next-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.guided-builder-panel-footer{margin-top:12px;padding:12px;border:1px solid #dfe5ec;border-radius:10px;background:#fff}.guided-builder-panel-footer.active{display:flex;justify-content:space-between}.quote-workspace{grid-template-columns:minmax(0,1fr) 270px}.quote-side{top:142px;max-height:calc(100vh - 160px)}.section-builder-card{top:142px}.editor-master-toolbar{top:140px}.guided-files-card{padding:22px}.guided-upload-zone{padding:18px;border:1px dashed #bfc9d7;border-radius:10px;background:#f8fafc}.workflow-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(270px,.55fr);gap:16px}.workflow-main,.workflow-actions{padding:21px}.review-checklist{display:grid;gap:8px}.review-checklist>div{display:grid;grid-template-columns:30px 1fr auto;gap:10px;align-items:center;padding:12px;border:1px solid #e3e8ee;border-radius:9px}.review-checklist>div>span{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;border-radius:50%;background:#e8f5ed;color:#167445;font-weight:900}.review-checklist p{margin:0}.review-checklist strong,.review-checklist small{display:block}.review-checklist strong{font-size:11px}.review-checklist small{margin-top:3px;color:#8190a2;font-size:9px}.review-checklist a{color:#4b4eaa;font-size:9px;font-weight:850;text-decoration:none}.workflow-actions{border-top:4px solid #4b4eaa}.workflow-actions h2{margin:5px 0 8px;font-size:21px}.workflow-actions>p{color:#728095;font-size:10px;line-height:1.5}.workflow-buttons{display:grid;gap:8px;margin-top:18px}.workflow-buttons form,.workflow-buttons .btn{width:100%}
.quote-side.document-mode .summary-card{display:none}.quote-side.document-mode{overflow-y:auto}.quote-side.document-mode .section-builder-card{margin-top:0}

@media(max-width:1120px){.guided-dashboard-grid{grid-template-columns:1fr}.guided-create,.admin-grid{grid-template-columns:1fr}.create-help{display:none}.quote-workspace{grid-template-columns:1fr}.quote-side{position:static;max-height:none}.guided-document-side.active{display:block!important}.workflow-grid{grid-template-columns:1fr}.integration-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.portal-topbar{grid-template-columns:74px 1fr auto;padding:0 12px}.top-brand span{display:none}.top-brand img{width:40px;height:40px}.guided-sidebar{width:74px;padding:16px 10px}.guided-main{margin-left:74px;width:calc(100% - 74px)}.guided-sidebar .side-nav a{justify-content:center}.guided-sidebar .side-nav a>span:not(.nav-icon),.guided-sidebar .side-user{display:none}.guided-container{padding:20px 18px 70px}.guided-metrics{grid-template-columns:1fr 1fr}.quote-hero{position:static;margin:0 0 13px;padding:0 0 12px}.editor-master-toolbar{top:12px}.guided-builder-tabs{overflow-x:auto;grid-template-columns:repeat(4,minmax(145px,1fr))}}
@media(max-width:620px){.portal-body{padding-top:58px;padding-bottom:64px}.portal-topbar{height:58px;grid-template-columns:48px 1fr auto;padding:0 10px}.top-brand img{width:36px;height:36px}.top-context{padding-left:7px;font-size:11px}.top-save,.top-local{display:none}.top-avatar{width:31px;height:31px}.guided-sidebar{display:none}.guided-main{margin-left:0;width:100%}.guided-container{padding:15px 11px 30px}.mobile-nav{position:fixed;inset:auto 0 0;z-index:60;height:62px;display:grid;grid-template-columns:repeat(4,1fr);padding:5px 8px;background:#fff;border-top:1px solid #dce3eb;box-shadow:0 -5px 18px rgba(17,34,58,.08)}.mobile-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#718094;text-decoration:none}.mobile-nav a span{font-size:18px}.mobile-nav a small{font-size:8px;font-weight:750}.mobile-nav a.active{color:#4b4eaa}.mobile-nav .mobile-new span{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin-top:-14px;border-radius:50%;background:#4b4eaa;color:#fff}.page-heading{align-items:flex-start}.page-heading h1{font-size:23px}.page-heading .btn{padding:8px 10px;font-size:10px}.guided-metrics{gap:8px}.metric-card{min-height:99px;padding:13px}.metric-card strong{font-size:21px}.guided-dashboard-grid{gap:10px}.guided-toolbar{align-items:stretch;flex-wrap:wrap}.search-field{min-width:100%;}.create-progress{padding:9px}.create-progress span{font-size:0}.create-progress span b{font-size:9px}.create-progress i{margin:0 6px}.create-main{padding:15px}.guided-form-grid{grid-template-columns:1fr}.guided-form-grid .wide{grid-column:auto}.guided-advanced>summary{display:block}.guided-advanced>summary small{display:block;margin-top:3px}.guided-actions{justify-content:stretch}.guided-actions .btn{flex:1;text-align:center}.integration-grid{grid-template-columns:1fr}.guided-builder-tabs{margin:0 -2px 11px}.guided-builder-tabs button{min-width:140px}.quote-hero .actions{display:none}.tabs{position:sticky;top:58px;z-index:18}.tab{min-width:128px;padding:8px}.tab>span{width:20px;height:20px}.autosave-banner small{display:none}.quote-side{display:block}.panel-next-actions{align-items:stretch;display:grid}.panel-next-actions .btn{width:100%;text-align:center}.guided-builder-panel-footer.active{display:grid}.review-checklist>div{grid-template-columns:29px 1fr}.review-checklist a{grid-column:2}.guided-upload-zone{display:grid}.guided-upload-zone .btn{width:100%}}

/* Navegación simple entre subpasos: una sola acción principal y sin guardados redundantes. */
.guided-builder-panel-footer{display:none!important}
.guided-builder-panel-footer.active{display:flex!important;align-items:center;justify-content:space-between;gap:10px}
.guided-step-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #e5eaf0}
.guided-step-footer>span{margin-right:auto;color:#167445;font-size:10px;font-weight:800}
@media(max-width:620px){.guided-step-footer,.guided-builder-panel-footer.active{display:grid!important;grid-template-columns:1fr}.guided-step-footer>span{grid-row:1;margin:0;text-align:center}.guided-step-footer .btn,.guided-builder-panel-footer .btn{width:100%;text-align:center}}

/* Calculador por categorías y modalidades laborales/personalizadas. */
.estimate-category-tabs{display:flex;gap:5px;margin:0 0 12px;padding:4px;overflow-x:auto;background:#e9eef3;border-radius:10px;scrollbar-width:thin}
.estimate-category-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:max-content;padding:9px 11px;border:0;border-radius:7px;background:transparent;color:#627086;font:inherit;font-size:10px;font-weight:850;cursor:pointer}
.estimate-category-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#d8e0e9;font-size:8px}
.estimate-category-tabs button.active{background:#fff;color:#3f4295;box-shadow:0 2px 7px rgba(27,45,73,.1)}
.estimate-category-tabs button.active span{background:#4b4eaa;color:#fff}
.estimate-line-card[hidden],[data-add-family][hidden]{display:none!important}
.estimate-line-fields{grid-template-columns:repeat(4,minmax(115px,1fr))}
.rate-configuration,.rate-units{display:none}
.estimate-line-card[data-estimate-group="labor"] .rate-configuration,.estimate-line-card[data-estimate-group="other"] .rate-configuration{display:block}
.estimate-line-card[data-estimate-group="labor"] .estimate-basis{display:none}
.estimate-line-card[data-rate-mode="hours"] .rate-units,.estimate-line-card[data-rate-mode="days"] .rate-units,.estimate-line-card[data-rate-mode="month"] .rate-normal-units,.estimate-line-card[data-rate-mode="fortnight"] .rate-normal-units{display:block}
.estimate-line-card[data-rate-mode="hours"] .simple-calculation,.estimate-line-card[data-rate-mode="days"] .simple-calculation,.estimate-line-card[data-rate-mode="month"] .simple-calculation,.estimate-line-card[data-rate-mode="fortnight"] .simple-calculation,.estimate-line-card[data-rate-mode="hours"] .estimate-basis,.estimate-line-card[data-rate-mode="days"] .estimate-basis,.estimate-line-card[data-rate-mode="month"] .estimate-basis,.estimate-line-card[data-rate-mode="fortnight"] .estimate-basis{display:none}
.estimate-line-card[data-rate-mode="hours"] .estimate-unit,.estimate-line-card[data-rate-mode="days"] .estimate-unit,.estimate-line-card[data-rate-mode="month"] .estimate-unit,.estimate-line-card[data-rate-mode="fortnight"] .estimate-unit{display:none}
.estimate-labor-charge{display:none}.estimate-line-card[data-estimate-group="labor"] .estimate-labor-charge,.estimate-line-card[data-estimate-group="other"][data-rate-mode="hours"] .estimate-labor-charge,.estimate-line-card[data-estimate-group="other"][data-rate-mode="days"] .estimate-labor-charge,.estimate-line-card[data-estimate-group="other"][data-rate-mode="month"] .estimate-labor-charge,.estimate-line-card[data-estimate-group="other"][data-rate-mode="fortnight"] .estimate-labor-charge{display:block}
.estimate-labor-charge small{display:block;margin-top:4px;color:#6f7d91;font-size:8px;line-height:1.25}
.estimate-notes{grid-column:1/-1}
.estimate-line-breakdown{grid-column:1/4;display:flex;align-items:center;gap:7px 16px;flex-wrap:wrap;padding:8px 10px;border:1px solid #dfe6ef;border-radius:7px;background:#f8fafc;color:#5c6a7e;font-size:9px}
.estimate-line-breakdown span{display:inline-flex;align-items:center;gap:5px}.estimate-line-breakdown strong{color:#1c2b3e}.estimate-line-breakdown b{color:#b95a00}
.estimate-line-total{grid-column:4/5}
.rate-formula{display:none;grid-column:1/-1;padding:8px 10px;border-radius:7px;background:#eef0ff;color:#4a4d92;font-size:9px;line-height:1.4}.estimate-line-card[data-rate-mode="hours"] .rate-formula,.estimate-line-card[data-rate-mode="days"] .rate-formula,.estimate-line-card[data-rate-mode="month"] .rate-formula,.estimate-line-card[data-rate-mode="fortnight"] .rate-formula{display:block}
@media(max-width:1050px){.estimate-line-fields{grid-template-columns:repeat(3,minmax(105px,1fr))}.estimate-line-breakdown{grid-column:1/3}.estimate-line-total{grid-column:3/4}}
@media(max-width:700px){.estimate-line-fields{grid-template-columns:1fr}.estimate-notes,.estimate-line-breakdown,.estimate-line-total{grid-column:auto}.estimate-category-tabs{margin-left:-3px;margin-right:-3px}}

/* Planilla comercial de asistencia: separada de costos internos. */
.client-sheet-notice{display:flex;gap:9px 18px;align-items:center;margin-bottom:14px;padding:11px 14px;border:1px solid #bfd7c8;border-left:4px solid #16854c;border-radius:9px;background:#f2faf5;color:#315d43}.client-sheet-notice strong{color:#17683b;white-space:nowrap}.client-sheet-notice span{font-size:12px}
.assistance-sheet-summary{display:grid;grid-template-columns:1.35fr .38fr .58fr .52fr .68fr;gap:10px;margin-bottom:14px}.assistance-sheet-summary>div{padding:10px 12px;border-radius:9px;background:#f4f7fb}.assistance-sheet-summary span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.assistance-sheet-summary strong{display:block;margin-top:5px;white-space:nowrap}.assistance-sheet-summary .client-sheet-total-card{background:var(--mb-blue);color:#fff}.assistance-sheet-summary .client-sheet-total-card span{color:#e9eaff}.assistance-sheet-summary .client-sheet-total-card strong{font-size:18px}
.assistance-sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.assistance-sheet-toolbar form{margin:0}.client-sheet-toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.client-sheet-header-form{margin-bottom:14px}.client-sheet-header-form textarea{min-height:64px}
.client-sheet-lines-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.client-sheet-lines-heading h2{margin-bottom:5px}.client-sheet-lines-heading p{margin:0;color:var(--muted);font-size:12px}.client-sheet-column-headings,.client-sheet-line{display:grid;grid-template-columns:145px minmax(270px,1.65fr) 115px 105px 90px 135px minmax(170px,1fr) 92px;gap:7px;align-items:end}.client-sheet-column-headings{padding:0 9px 6px;color:#6c7889;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}.client-sheet-line{margin-bottom:8px;padding:9px;border:1px solid #dce4ed;border-left:3px solid var(--mb-orange);border-radius:9px;background:#fbfcfe}.client-sheet-line label>span,.client-line-total>span{display:none}.client-sheet-line input{margin:0;padding:8px;font-size:12px}.client-period-input{position:relative}.client-period-input input{padding-right:48px}.client-period-input small{position:absolute;right:7px;top:10px;color:#68778b;font-size:9px;font-weight:800;pointer-events:none}.client-line-total{min-height:38px;padding:8px 9px;border-radius:7px;background:#eef1f7;text-align:right}.client-line-total strong{font-size:12px}.client-line-actions{display:flex;gap:4px;align-items:center;justify-content:flex-end}.client-line-actions button{width:27px;height:32px;border:1px solid #cfd8e6;border-radius:5px;background:#fff;cursor:pointer}.client-line-actions .danger-text{color:#a42f28}.client-sheet-sticky-save{position:sticky;bottom:0;z-index:6;display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:12px;padding:10px 12px;border:1px solid #dce4ed;border-radius:9px;background:rgba(255,255,255,.96);box-shadow:0 -5px 18px rgba(20,40,70,.08)}.client-sheet-sticky-save span{margin-right:auto;color:#167445;font-size:11px;font-weight:800}
@media(max-width:1150px){.assistance-sheet-summary{grid-template-columns:1.2fr .4fr repeat(3,.65fr)}.client-sheet-column-headings{display:none}.client-sheet-line{grid-template-columns:repeat(4,minmax(120px,1fr))}.client-sheet-line label>span,.client-line-total>span{display:block;margin-bottom:4px;color:#6f7d91;font-size:9px;font-weight:800}.client-line-description{grid-column:2/5}.client-sheet-line label:last-of-type{grid-column:1/4}.client-line-actions{grid-column:4/5}.client-line-total{text-align:left}}
@media(max-width:720px){.client-sheet-notice,.assistance-sheet-toolbar,.client-sheet-lines-heading{display:block}.client-sheet-notice span{display:block;margin-top:6px}.assistance-sheet-toolbar .autosave-status{margin-top:9px}.assistance-sheet-summary{grid-template-columns:1fr}.client-sheet-line{grid-template-columns:1fr 1fr}.client-line-description,.client-sheet-line label:last-of-type{grid-column:1/-1}.client-line-actions{grid-column:1/-1;justify-content:flex-start}.client-sheet-sticky-save{display:grid}.client-sheet-sticky-save span{margin:0}.client-sheet-sticky-save .btn{width:100%}}

/* Consulta paralela de ofertas históricas, sin mezclar datos con la oferta activa. */
.historical-reference-open{border:1px solid #cdd7e4!important;color:#273991!important}
.historical-reference-mobile{display:none;width:100%;margin:-2px 0 10px;color:#373a92!important}
.historical-reference-drawer{position:fixed;inset:64px 0 0 auto;z-index:55;width:clamp(430px,42vw,650px);padding:18px 19px 28px;overflow-y:auto;transform:translateX(105%);transition:transform .22s ease;background:#f6f8fb;border-left:1px solid #ccd6e3;box-shadow:-12px 0 34px rgba(18,35,61,.18);scrollbar-width:thin}
.historical-reference-drawer.open{transform:translateX(0)}
.historical-reference-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid #dce3ec}.historical-reference-header h2{margin:2px 0 5px;font-size:24px}.historical-reference-header p{margin:0;color:#6b788b;font-size:11px}.historical-reference-close{display:inline-flex;align-items:center;justify-content:center;width:35px;height:35px;border:1px solid #cfd8e5;border-radius:8px;background:#fff;color:#28364b;font-size:25px;line-height:1;cursor:pointer}
.historical-reference-warning{display:grid;grid-template-columns:auto 1fr;gap:5px 10px;align-items:start;margin:13px 0;padding:10px 12px;border:1px solid #f0d3a7;border-left:4px solid var(--mb-orange);border-radius:8px;background:#fff8ed}.historical-reference-warning strong{color:#8a4b00;font-size:10px;white-space:nowrap}.historical-reference-warning span{color:#6e5a40;font-size:9px;line-height:1.4}
.historical-reference-create{margin:0 0 12px}.historical-reference-create-toggle{width:100%;border-style:dashed!important;color:#383c94!important}.historical-reference-create-form{padding:12px;border:1px solid #ccd6e4;border-top:3px solid var(--mb-orange);border-radius:9px;background:#fff;box-shadow:0 5px 14px rgba(25,45,75,.06)}.historical-reference-create-form[hidden],.historical-reference-create-toggle[hidden]{display:none}.historical-reference-create-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.historical-reference-create-heading strong{font-size:12px}.historical-reference-create-heading span{color:#748196;font-size:8px}.historical-reference-create-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:8px}.historical-reference-create-grid label{font-size:9px;font-weight:800}.historical-reference-create-grid label.wide{grid-column:1/-1}.historical-reference-create-grid input,.historical-reference-create-grid select{margin-top:4px;padding:8px 9px;font-size:10px}.historical-reference-create-grid small{display:block;margin-top:4px;color:#748196;font-size:8px;font-weight:600;line-height:1.35}.historical-reference-create-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:10px}.historical-reference-create-actions .btn{font-size:9px}.historical-reference-create-status{min-height:14px;margin-top:7px;color:#ad3e2d;font-size:9px;font-weight:750}
.historical-reference-filters{display:grid;grid-template-columns:.8fr 1.2fr;gap:9px;margin-bottom:10px}.historical-reference-filters label{font-size:9px}.historical-reference-filters select,.historical-reference-filters input{margin-top:5px;padding:9px 10px;font-size:11px}
.historical-reference-status{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;margin-bottom:8px;color:#6b7788;font-size:10px;font-weight:750}.historical-reference-status button{padding:0;border:0;background:transparent;color:#41449b;font:inherit;cursor:pointer}.historical-reference-status span{color:#27354a}
.historical-reference-results{display:grid;gap:8px}.historical-reference-card{display:block;width:100%;padding:12px 13px;border:1px solid #dce4ee;border-left:4px solid #4b4eaa;border-radius:9px;background:#fff;color:#1d2b3e;text-align:left;cursor:pointer;transition:border-color .15s,transform .15s,box-shadow .15s}.historical-reference-card:hover{border-color:#aeb9da;transform:translateY(-1px);box-shadow:0 5px 14px rgba(25,45,75,.08)}.historical-reference-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.historical-reference-card-top b{color:#393c90;font-size:10px}.historical-reference-card-top i{padding:3px 6px;border-radius:999px;background:#eef1f6;color:#657286;font-size:8px;font-style:normal;font-weight:850}.historical-reference-card>strong{display:block;margin-top:7px;font-size:12px;line-height:1.32}.historical-reference-card>small{display:block;margin-top:4px;color:#778397;font-size:9px}.historical-reference-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.historical-reference-tags em{padding:4px 6px;border-radius:999px;background:#eef0ff;color:#444697;font-size:8px;font-style:normal;font-weight:800}.historical-reference-tags .complete{background:#e8f6ed;color:#147244}
.historical-reference-empty{display:grid;gap:5px;padding:28px 18px;border:1px dashed #c8d2df;border-radius:10px;background:#fff;text-align:center}.historical-reference-empty strong{font-size:12px}.historical-reference-empty span{color:#758295;font-size:10px}
.historical-reference-detail-heading{display:grid;gap:5px;margin-bottom:10px;padding:13px;border-radius:9px;background:#172a49;color:#fff}.historical-reference-detail-heading strong{font-size:14px}.historical-reference-detail-heading small{color:#c7d2e3;font-size:9px}.historical-member-tabs{display:flex;gap:5px;padding:4px;margin-bottom:9px;overflow-x:auto;border-radius:9px;background:#e8edf3}.historical-member-tab{flex:1;min-width:max-content;padding:8px 10px;border:0;border-radius:6px;background:transparent;color:#617086;font:inherit;font-size:9px;font-weight:850;cursor:pointer}.historical-member-tab.active{background:#fff;color:#41449a;box-shadow:0 2px 7px rgba(20,40,70,.1)}
.historical-member-actions{position:sticky;top:-18px;z-index:3;display:flex;gap:7px;padding:9px 0;background:#f6f8fb}.historical-member-actions .btn{font-size:10px}.historical-member-meta{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:8px}.historical-member-meta span{padding:4px 6px;border-radius:999px;background:#eef2f7;color:#687588;font-size:8px;font-weight:750}.historical-member-document{padding:18px 20px;border:1px solid #d8e0ea;border-radius:9px;background:#fff;color:#263448;box-shadow:0 4px 13px rgba(25,45,75,.05)}.historical-member-document p{margin:0 0 8px;font-size:10px;line-height:1.5;white-space:pre-wrap}.historical-member-document .reference-heading{margin:15px 0 7px;color:#15355e;font-size:11px;font-weight:900;text-transform:uppercase}.historical-member-document .reference-heading:first-child{margin-top:0}
.historical-preview-section{margin-bottom:18px}.historical-preview-section:last-child{margin-bottom:0}.historical-preview-section>h3{margin:0 0 9px;color:#15355e;font-size:11px;line-height:1.3;text-transform:uppercase}.historical-preview-section ul{margin:0 0 9px;padding-left:19px;font-size:10px;line-height:1.5}.historical-member-document .inline-quote-image{width:auto;max-width:100%;height:auto;max-height:none;margin:12px auto}.historical-member-document .imported-table-wrap{max-width:100%;margin:10px 0;overflow:auto}.historical-member-document .imported-offer-table{width:100%;border-collapse:collapse;background:#fff;font-size:9px}.historical-member-document .imported-offer-table th,.historical-member-document .imported-offer-table td{min-width:72px;padding:5px;border:1px solid #9aa8b8;vertical-align:top}.historical-member-document .imported-offer-table th{background:#13294b;color:#fff}.historical-member-document .imported-offer-table p{margin:0 0 3px}.historical-member-document .imported-offer-table p:last-child{margin-bottom:0}
.historical-pdf-preview{width:100%;height:70vh;min-height:620px;border:1px solid #d9e2ef;border-radius:9px;background:#fff}
.historical-template-apply{width:100%;margin-bottom:5px}.historical-template-help{margin:0 2px 10px;color:#66758a;font-size:9px;line-height:1.45}.template-member-apply{background:#ff6b00!important}.action-toast{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;align-items:center;gap:18px;max-width:min(520px,calc(100vw - 36px));padding:12px 14px;border:1px solid #c7d4e3;border-left:4px solid #ff6b00;border-radius:9px;background:#13294b;color:#fff;box-shadow:0 14px 34px rgba(16,34,60,.25);font-size:12px;font-weight:750}.action-toast[hidden]{display:none}.action-toast button{border:0;border-radius:6px;padding:7px 10px;background:#fff;color:#2f358d;font:inherit;font-weight:850;cursor:pointer}.template-import-toast{border-left-color:#1c9a59}
.historical-original-missing{align-self:center;max-width:250px;color:#925615;font-size:8px;font-weight:750;line-height:1.35}
@media(min-width:1301px){.portal-body.references-open .guided-main{padding-right:clamp(430px,42vw,650px);transition:padding-right .22s ease}.portal-body.references-open .guided-container{padding-left:18px;padding-right:18px}.portal-body.references-open .quote-workspace{grid-template-columns:minmax(0,1fr)}.portal-body.references-open .quote-side{position:static;max-height:none}}

/* Editor compacto y recorrido costos → documento. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.top-save.autosave-status{min-height:0;padding:0;border-radius:0;background:transparent;color:#b9c7da;font-size:11px}
.top-save.autosave-status[data-state="pending"]{background:transparent;color:#f0c980}.top-save.autosave-status[data-state="saving"]{background:transparent;color:#cdd4ff}.top-save.autosave-status[data-state="error"]{background:transparent;color:#ff9c94}
.top-save.autosave-status[data-state="pending"] i{background:#e3ae3f}.top-save.autosave-status[data-state="saving"] i{background:#8e98e8}.top-save.autosave-status[data-state="error"] i{background:#e85b50}
.section-card{margin:8px 0;padding:10px;border-radius:8px;box-shadow:none}
.section-card-header{grid-template-columns:auto minmax(190px,1fr) auto auto;gap:7px;margin-bottom:7px;align-items:center}
.section-card-header input{margin:0;padding:8px 9px;font-size:12px}
.section-drag-handle{align-self:center;width:32px;height:35px;margin:0;border-radius:6px;font-size:18px}
.section-kind-badge{align-self:center;margin:0;padding:5px 7px;font-size:9px}
.section-actions{padding:0}.section-actions .btn-inline{padding:6px 7px;font-size:10px}
.section-editor{min-height:96px;padding:9px 10px}
.section-editor.image-drop-active{position:relative;border-color:#45479f!important;background:#f0f1ff!important;box-shadow:inset 0 0 0 2px rgba(69,71,159,.18)}
.section-editor.image-drop-active:after{content:"Soltá la imagen acá";position:absolute;inset:10px;display:flex;align-items:center;justify-content:center;border:2px dashed #7779c7;border-radius:7px;background:rgba(240,241,255,.92);color:#34378c;font-size:13px;font-weight:850;pointer-events:none}
.compact-section-builder{padding:0;overflow:hidden}.compact-section-builder>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 14px;list-style:none;cursor:pointer;color:#26364e;font-weight:850}.compact-section-builder>summary::-webkit-details-marker{display:none}.compact-section-builder>summary:after{content:"⌄";color:#4b4eaa;font-size:18px}.compact-section-builder[open]>summary:after{content:"⌃"}.compact-section-builder>summary small{margin-left:auto;color:#7a8799;font-size:9px;font-weight:650}.compact-section-builder-body{padding:0 14px 14px;border-top:1px solid #e3e8ef}
.costs-next-action{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin:10px 0 15px}.costs-next-action span{color:#6c7a8e;font-size:10px}.historical-price-kpi small{display:block;margin-top:4px;color:#788598;font-size:8px;line-height:1.3}.price-reference-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.historical-price-button{border-color:#c8cbea!important;color:#3d4095!important}.price-reference-notice{color:#147244;font-size:9px;font-weight:750}
@media(max-width:1000px){.section-card-header{grid-template-columns:auto minmax(0,1fr) auto}.section-actions{grid-column:2/-1}.compact-section-builder>summary small{display:none}}
@media(max-width:620px){.costs-next-action{align-items:stretch;flex-direction:column}.costs-next-action .btn{width:100%}.section-card-header{grid-template-columns:auto 1fr}.section-kind-badge{grid-column:2}.section-actions{grid-column:1/-1}}
@media(max-width:720px){.historical-reference-mobile{display:block}.historical-reference-drawer{inset:58px 0 62px;width:100%;padding:14px}.historical-reference-filters,.historical-reference-create-grid{grid-template-columns:1fr}.historical-reference-create-grid label.wide{grid-column:auto}.historical-reference-warning{grid-template-columns:1fr}.historical-member-actions{position:static}.historical-reference-header h2{font-size:21px}}

/* Formato monetario argentino: símbolo visible sin alterar el valor numérico enviado. */
.money-field{display:flex;align-items:stretch;margin-top:5px;overflow:hidden;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.money-field:focus-within{border-color:#ff6b00;box-shadow:0 0 0 3px rgba(255,107,0,.12)}.money-field>span{display:flex;align-items:center;padding:0 9px;background:#fff0e2;color:#8f4300;font-size:11px;font-weight:950}.money-field>input{min-width:0;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.money-field>input:focus{outline:0}

/* MB TUTORIAL DE PRUEBA: bloque encapsulado y removible, sin impacto funcional. */
.quote-tutorial-start{display:inline-flex!important;align-items:center;gap:6px;border-color:#f2bb89!important;color:#8c4408!important}.quote-tutorial-start>span{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;background:#ffead8;color:#a34d00;font-size:11px;font-weight:950}
.quote-tutorial-overlay{position:fixed;inset:0;z-index:80;background:rgba(7,19,37,.7);backdrop-filter:blur(1px)}.quote-tutorial-overlay[hidden],.quote-tutorial-card[hidden]{display:none!important}
.quote-tutorial-focus{position:relative!important;z-index:82!important;outline:3px solid #ff6b00!important;outline-offset:5px!important;border-radius:10px!important;box-shadow:0 0 0 8px rgba(255,107,0,.2),0 18px 46px rgba(4,14,30,.3)!important;pointer-events:none}
.quote-tutorial-card{position:fixed;z-index:84;width:min(390px,calc(100vw - 32px));padding:20px;border:1px solid #ffb16f;border-top:5px solid #ff6b00;border-radius:13px;background:#fff;color:#1b2b42;box-shadow:0 22px 70px rgba(3,13,28,.38)}
.quote-tutorial-close{position:absolute;top:10px;right:11px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid #d5dde7;border-radius:8px;background:#f7f9fc;color:#24344a;font-size:22px;line-height:1;cursor:pointer}.quote-tutorial-close:hover{border-color:#ff9b49;background:#fff4eb;color:#9a4500}
.quote-tutorial-heading{display:flex;align-items:center;gap:8px;padding-right:37px}.quote-tutorial-badge{color:#a34d00;font-size:9px;font-weight:950;letter-spacing:.08em}.quote-tutorial-progress{margin-left:auto;color:#718096;font-size:10px;font-weight:800}.quote-tutorial-card h2{margin:13px 0 7px;color:#13294b;font-size:20px}.quote-tutorial-card p{margin:0;color:#55657b;font-size:12px;line-height:1.55}.quote-tutorial-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:17px;padding-top:13px;border-top:1px solid #e1e7ef}.quote-tutorial-actions .btn{min-width:105px}.quote-tutorial-actions button:disabled{visibility:hidden}
@media(max-width:720px){.quote-tutorial-start{width:100%;justify-content:center}.quote-tutorial-card{width:auto;max-height:min(48vh,420px);overflow:auto}.quote-tutorial-focus{outline-offset:2px!important}.quote-tutorial-actions{display:grid;grid-template-columns:1fr 1fr}.quote-tutorial-actions .btn{width:100%;min-width:0}}
/* MB TUTORIAL DE PRUEBA: fin. */

/* Recorrido de precios: parámetros comunes → elección de método → carga separada. */
.pricing-parameters-card{margin-top:16px;padding:0;border-top:4px solid var(--mb-orange);overflow:hidden}.pricing-parameters-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;cursor:pointer;list-style:none}.pricing-parameters-summary::-webkit-details-marker{display:none}.pricing-parameters-card[open]>.pricing-parameters-summary{border-bottom:1px solid #e1e7ef;background:#fafbfc}.pricing-parameters-body{padding:0 18px 18px}.pricing-parameters-state{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#eef0ff;color:#42459b;font-size:10px;font-weight:900}.pricing-step-heading{display:flex;align-items:flex-start;gap:13px}.pricing-step-heading>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;background:#4b4eaa;color:#fff;font-size:15px;font-weight:950}.pricing-step-heading h2{margin:1px 0 5px}.pricing-step-heading p{margin:0;color:#68778c;font-size:12px;line-height:1.45}.shared-parameter-grid{margin-top:17px}.pricing-saved{margin:13px 0 -2px;padding:9px 11px;border:1px solid #b9ddc8;border-radius:8px;background:#effaf3;color:#146d3d;font-size:11px;font-weight:850}.pricing-parameters-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid #e0e6ee}.pricing-parameters-actions span{margin-right:auto;color:#6e7d91;font-size:10px}
.direct-profit-note{display:flex;align-items:flex-start;gap:10px;margin:0 0 14px;padding:10px 12px;border:1px solid #cfe0ef;border-left:4px solid var(--mb-blue);border-radius:8px;background:#f5f9fd;color:#43556d;font-size:10px;line-height:1.4}.direct-profit-note strong{color:#183a67;white-space:nowrap}.direct-profit-note span{flex:1}.direct-derived-cost{display:flex;min-width:150px;flex-direction:column;justify-content:center;padding:7px 10px;border:1px solid #d8e1eb;border-radius:7px;background:#f7f9fc}.direct-derived-cost>span{color:#5d6c80;font-size:9px;font-weight:800}.direct-derived-cost>strong{margin-top:4px;color:#213a60;font-size:11px}.direct-derived-cost>small{margin-top:2px;color:#758297;font-size:8px}.derived-cost-label{color:#5e6f86;font-size:9px;font-weight:800}.shared-parameter-grid [hidden]{display:none!important}
.pricing-method-chooser{margin-top:16px;padding:18px;border:1px solid #d8e1ec;border-radius:12px;background:#fff}.pricing-method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.pricing-method-card{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;align-items:start;padding:15px;border:1px solid #d7e0eb;border-radius:10px;background:#f8fafc;color:#1d2d44;text-align:left;cursor:pointer;transition:.16s}.pricing-method-card:hover,.pricing-method-card.active{transform:translateY(-1px);border-color:#7779c7;background:#f2f2ff;box-shadow:0 7px 18px rgba(31,48,78,.09)}.pricing-method-card>span{grid-row:1/4;display:inline-flex;align-items:center;justify-content:center;width:31px;height:31px;border-radius:8px;background:#e8eaff;color:#3f4296;font-size:14px;font-weight:950}.pricing-method-card.direct>span{background:#e8f4ff;color:#155e91}.pricing-method-card.quick>span{background:#fff0df;color:#984800}.pricing-method-card strong{font-size:13px}.pricing-method-card small{color:#68768a;font-size:10px;line-height:1.4}.pricing-method-card b{margin-top:5px;color:#42459b;font-size:10px}.pricing-grid{grid-template-columns:1fr}.pricing-grid #precio-cliente{order:1}.pricing-grid #costos-rapidos{order:2}
.quick-pricing-result{margin-top:14px;padding:13px;border:1px solid #d8e0eb;border-left:4px solid var(--mb-orange);border-radius:9px;background:#f8fafc}.quick-pricing-result-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.quick-pricing-result-heading strong{display:block;color:#1a2d48;font-size:13px}.quick-pricing-result-heading>b{color:#3f4295;font-size:18px;white-space:nowrap}.quick-pricing-breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:6px 12px;margin:11px 0}.quick-pricing-breakdown span{display:flex;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid #e1e7ee;color:#657388;font-size:9px}.quick-pricing-breakdown strong{color:#24354d}.quick-pricing-result>small{display:block;color:#6c7b8f;font-size:9px}.quick-pricing-result>.btn{margin-top:10px}
.quick-calculator-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.quick-cost-main{min-width:0}.quick-estimate-summary{position:sticky;top:98px}.quick-summary-action{width:100%;margin-top:12px}.calculator-model-status{display:inline-flex;align-items:center;max-width:180px;padding:8px 10px;border-radius:9px;background:#eef2f7;color:#5e6c80;font-size:10px;font-weight:800;line-height:1.25}.calculator-model-status.is-assistance{background:#e8f7ee;color:#126a3c}
.pricing-grid>details:not([open]),#calculador-detallado:not([open]){display:none}.pricing-grid>details[open]>summary,#calculador-detallado[open]>summary{display:none}.pricing-grid>details[open]{margin:0;padding:0;border:0;background:transparent;box-shadow:none}.pricing-grid>details[open] .pricing-disclosure-body{padding:17px;border:1px solid #d8e1ec;border-radius:11px;background:#fff;box-shadow:0 4px 13px rgba(24,42,70,.05)}#calculador-detallado[open]{margin-top:0;border-top:3px solid var(--mb-orange)}
.section-builder-divider{display:flex;align-items:center;gap:8px;margin:5px 0 0;color:#7a8798;font-size:9px;font-weight:850;letter-spacing:.05em}.section-builder-divider:before,.section-builder-divider:after{content:"";height:1px;flex:1;background:#dfe5ed}.library-table td:last-child form{margin:0}.library-table td:last-child{width:70px}
.currency-summary{display:grid!important;gap:4px}.currency-summary span{margin-bottom:3px}.currency-summary strong{font-size:13px!important}.internal-dashboard-notice{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px;padding:12px 14px;border-left:4px solid var(--mb-orange);border-radius:9px;background:#fff7ed;color:#6e4319;font-size:11px}.internal-dashboard-notice strong{white-space:nowrap}.cost-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px;margin-bottom:16px}.cost-currency-card{padding:17px;border:1px solid #d9e2ef;border-top:4px solid var(--mb-blue);border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(20,40,70,.05)}.cost-currency-title{display:flex;justify-content:space-between;align-items:center}.cost-currency-title span{font-size:11px;font-weight:900;color:var(--mb-blue);letter-spacing:.08em}.cost-currency-title small{color:var(--muted)}.cost-kpi-main{margin:14px 0}.cost-kpi-main span,.cost-mini-grid span{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase}.cost-kpi-main strong{display:block;margin-top:4px;font-size:24px}.cost-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:12px;border-top:1px solid #edf1f6}.cost-mini-grid strong{display:block;margin-top:3px;font-size:13px}.positive{color:#126b3b!important}.negative{color:#a3312b!important}.composition-bar{display:flex;overflow:hidden;height:11px;margin:15px 0 8px;border-radius:999px;background:#edf1f5}.composition-bar i{display:block;height:100%}.composition-bar .cost,.composition-legend .cost{background:#203c66}.composition-bar .finance,.composition-legend .finance{background:#8596ad}.composition-bar .tax,.composition-legend .tax{background:#ff8a36}.composition-bar .result,.composition-legend .result{background:#27a269}.composition-legend{display:flex;gap:12px;flex-wrap:wrap;color:#6f7d91;font-size:8px;font-weight:750}.composition-legend span{display:flex;align-items:center;gap:4px}.composition-legend i{width:7px;height:7px;border-radius:2px}.cost-center-panel{padding:0;overflow:hidden}.cost-center-panel>.panel-heading{padding:17px 18px;border-bottom:1px solid #e6ebf2}.cost-project-list{display:grid}.cost-project-card{border-bottom:1px solid #e6ebf2}.cost-project-card:last-child{border-bottom:0}.cost-project-card>summary{display:grid;grid-template-columns:115px minmax(210px,1fr) 145px 145px 68px;gap:12px;align-items:center;padding:14px 18px;cursor:pointer;list-style:none}.cost-project-card>summary::-webkit-details-marker{display:none}.cost-project-card>summary:hover{background:#f8faff}.cost-project-code{color:#294475;font-weight:900}.cost-project-code small,.cost-project-name small,.cost-project-value small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:700}.cost-project-name strong{display:block}.cost-project-value{text-align:right}.cost-project-value strong{display:block;margin-top:3px}.cost-margin-pill{padding:7px 8px;border-radius:999px;background:#e8f6ed;color:#147344;text-align:center;font-weight:900}.cost-margin-pill.negative{background:#fde9e7}.cost-project-body{padding:0 18px 17px;background:#fbfcfe}.project-comparison{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding-top:14px}.project-comparison>div{padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#fff}.project-comparison span{display:block;color:var(--muted);font-size:9px}.project-comparison strong{display:block;margin:5px 0 8px}.project-comparison i{display:block;overflow:hidden;height:5px;border-radius:999px;background:#edf1f5}.project-comparison b{display:block;height:100%;background:#395986}.project-comparison .project-result b{background:#27a269}.cost-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:10px}.cost-detail-grid>div{padding:9px 10px;border-radius:8px;background:#eef2f7}.cost-detail-grid span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase}.cost-detail-grid strong{display:block;margin-top:4px;font-size:11px}.cost-project-actions{display:flex;justify-content:flex-end;margin-top:10px}.cost-center-empty{text-align:center;padding:48px}.cost-center-empty>span{font-size:42px;color:var(--mb-blue)}.cost-center-empty p{color:var(--muted)}@media(max-width:950px){.cost-project-card>summary{grid-template-columns:100px 1fr 120px 60px}.cost-project-value:nth-of-type(4){display:none}.project-comparison,.cost-detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.cost-project-card>summary{grid-template-columns:1fr auto}.cost-project-code,.cost-project-name{grid-column:1}.cost-project-value{grid-column:1;text-align:left}.cost-margin-pill{grid-column:2;grid-row:1/4}.project-comparison,.cost-detail-grid{grid-template-columns:1fr}.internal-dashboard-notice{display:block}.internal-dashboard-notice span{display:block;margin-top:5px}}
@media(max-width:1050px){.quick-calculator-layout{grid-template-columns:1fr}.quick-estimate-summary{position:static}}
@media(max-width:900px){.pricing-method-grid{grid-template-columns:1fr}.quick-pricing-breakdown{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.pricing-step-heading{display:grid;grid-template-columns:auto 1fr}.pricing-parameters-actions,.quick-pricing-result-heading{align-items:stretch;flex-direction:column}.pricing-parameters-actions .btn,.quick-pricing-result>.btn{width:100%}.quick-pricing-breakdown{grid-template-columns:1fr}.quick-pricing-result-heading>b{margin-top:7px}}

/* Correcciones de usabilidad aprobadas: filtros, administración y ayudas globales. */
.top-guide-button{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid rgba(255,255,255,.22);border-radius:7px;background:rgba(255,255,255,.07);color:#fff;font:inherit;font-size:10px;font-weight:850;cursor:pointer}.top-guide-button span{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:999px;background:#ffead8;color:#9a4800}.top-guide-button:hover{background:rgba(255,255,255,.14)}
.portal-guide-overlay{position:fixed;inset:0;z-index:100;background:rgba(7,19,37,.7);backdrop-filter:blur(1px)}.portal-guide-overlay[hidden],.portal-guide-card[hidden]{display:none!important}.portal-guide-focus{position:relative!important;z-index:102!important;outline:3px solid #ff6b00!important;outline-offset:5px!important;border-radius:10px!important;box-shadow:0 0 0 8px rgba(255,107,0,.18),0 18px 46px rgba(4,14,30,.3)!important}.portal-guide-card{position:fixed;z-index:104;width:min(390px,calc(100vw - 30px));padding:20px;border:1px solid #ffb16f;border-top:5px solid #ff6b00;border-radius:13px;background:#fff;color:#1b2b42;box-shadow:0 22px 70px rgba(3,13,28,.38)}.portal-guide-close{position:absolute;right:11px;top:10px;width:31px;height:31px;border:1px solid #d5dde7;border-radius:8px;background:#f7f9fc;font-size:21px;cursor:pointer}.portal-guide-progress{color:#9a4800;font-size:9px;font-weight:950;letter-spacing:.07em}.portal-guide-card h2{margin:13px 35px 7px 0;color:#13294b;font-size:20px}.portal-guide-card p{margin:0;color:#55657b;font-size:12px;line-height:1.55}.portal-guide-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px;padding-top:13px;border-top:1px solid #e1e7ef}.portal-guide-actions button:disabled{visibility:hidden}
.quote-quick-views{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 14px 0;color:#6d7a8d;font-size:10px;font-weight:800}.quote-quick-views a{padding:5px 8px;border-radius:999px;background:#eef2f7;color:#394080;text-decoration:none}.quote-filter-panel,.audit-filter-panel{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(120px,.7fr)) auto;gap:9px;align-items:end;padding:14px;border-bottom:1px solid #e1e7ef;background:#f8fafc}.quote-filter-panel label,.audit-filter-panel label{font-size:9px}.search-field{display:flex;align-items:center;margin-top:5px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}.search-field:focus-within{border-color:#ff6b00;box-shadow:0 0 0 3px rgba(255,107,0,.1)}.search-field span{padding-left:10px;color:#68778b;font-size:16px}.search-field input{margin:0;border:0;box-shadow:none}.quote-filter-actions,.audit-filter-actions{display:flex;gap:6px}.list-result-count{padding:10px 14px;color:#68768a;font-size:10px}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;padding:14px;border-top:1px solid #e2e8f0;color:#647287;font-size:10px;font-weight:800}.pagination a{padding:7px 10px;border:1px solid #d4dce7;border-radius:7px;background:#fff;color:#3d4195;text-decoration:none}.pagination a.disabled{pointer-events:none;opacity:.4}
.form-alert{margin:0 0 14px;padding:11px 13px;border-radius:8px;font-size:11px;font-weight:800}.form-alert.success{border:1px solid #b9ddc8;background:#effaf3;color:#146d3d}.form-alert.danger{border:1px solid #efc4c0;background:#fff1f0;color:#98352f}.admin-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.7fr);gap:16px;align-items:start}.admin-form{display:grid;gap:10px;padding:16px}.admin-form .panel-heading{margin:-16px -16px 2px}.users-table td,.clients-table td{vertical-align:top}.users-table td small,.clients-table td small{display:block;margin-top:3px;color:#778498;font-size:8px}.role-pill{padding:5px 7px;border-radius:999px;background:#eef0ff;color:#41449a;font-size:9px;font-weight:850}.status-pill.neutral{background:#edf1f5;color:#687588}.user-admin-disclosure,.client-admin-disclosure{position:relative}.user-admin-disclosure>summary,.client-admin-disclosure>summary{white-space:nowrap;cursor:pointer}.user-admin-panel,.client-admin-panel{position:absolute;right:0;z-index:8;width:min(620px,75vw);padding:14px;border:1px solid #ccd6e3;border-radius:10px;background:#fff;box-shadow:0 14px 35px rgba(15,33,60,.2)}.user-edit-form,.client-edit-form{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.user-edit-form label,.client-edit-form label,.user-password-form label{font-size:9px}.user-edit-form .btn,.client-edit-form .btn{align-self:end}.user-password-form{display:flex;align-items:end;gap:8px;margin:12px 0;padding-top:12px;border-top:1px solid #e1e7ef}.user-password-form label{flex:1}.client-edit-form .wide{grid-column:1/-1}.client-admin-panel>form:last-child,.user-admin-panel>form:last-child{margin-top:10px}
.client-filter-panel{display:grid;grid-template-columns:minmax(220px,1fr) 170px auto auto;gap:8px;align-items:center;padding:12px 14px;border-bottom:1px solid #e2e8f0;background:#f8fafc}.client-filter-panel select{margin:0}
.integration-safe-error{margin:10px 0;padding:8px 9px;border-radius:7px;background:#fff1f0;color:#92372f;font-size:9px;line-height:1.45}.integration-card form{margin:12px 0 0}.integration-card form .btn{width:100%}
.legacy-markup-note{display:flex;gap:10px;margin-top:12px;padding:10px 12px;border:1px solid #d8e1ec;border-left:4px solid #4b4eaa;border-radius:8px;background:#f8f9ff;color:#5b6680;font-size:10px;line-height:1.45}.legacy-markup-note strong{color:#32358b;white-space:nowrap}.legacy-markup-note em{font-style:normal;font-weight:850}

/* Encabezado compacto y centro de exportación con control de borrador. */
.export-center-button{display:grid!important;gap:1px;padding:7px 10px!important;background:#172a49!important;color:#fff!important;text-align:left}.export-center-button small{font-size:7px;text-transform:uppercase;letter-spacing:.06em}.export-center-button.ready small{color:#8ce2ad}.export-center-button.draft small{color:#ffd18e}.quote-action-menu{position:relative}.quote-action-menu>summary{list-style:none;cursor:pointer}.quote-action-menu>summary::-webkit-details-marker{display:none}.quote-action-menu>div{position:absolute;right:0;z-index:20;display:grid;min-width:190px;padding:7px;border:1px solid #ccd6e3;border-radius:9px;background:#fff;box-shadow:0 13px 30px rgba(18,36,63,.2)}.quote-action-menu form{margin:0}.quote-action-menu button{width:100%;padding:9px;border:0;border-radius:6px;background:#fff;color:#23334a;text-align:left;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.quote-action-menu button:hover{background:#f1f4f8}.quote-action-menu .danger-text{color:#a3312b}
.review-checklist>div.pending>span{background:#fff0dd;color:#9c4a00}.export-workflow-button{display:block;width:100%;margin-top:12px;text-align:center}
.export-hero{align-items:center}.export-readiness{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;padding:18px 20px;border:1px solid;border-left-width:5px;border-radius:12px;background:#fff}.export-readiness.is-ready{border-color:#acd7bc;background:#f2faf5}.export-readiness.is-draft{border-color:#f1c08f;background:#fff8ef}.export-readiness h2{margin:4px 0 5px}.export-readiness p{margin:0;color:#5f6f84;font-size:11px}.export-readiness-total{padding-left:20px;border-left:1px solid rgba(30,50,75,.14);text-align:right}.export-readiness-total small{display:block;color:#68768a;font-size:9px}.export-readiness-total strong{display:block;margin-top:4px;font-size:21px;white-space:nowrap}.export-layout{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(430px,1.2fr);gap:16px}.export-checklist,.export-downloads{padding:17px}.export-check-row{display:grid;grid-template-columns:auto 1fr auto;gap:11px;align-items:center;padding:11px 0;border-top:1px solid #e3e8ef}.export-check-icon{display:inline-flex;align-items:center;justify-content:center;width:27px;height:27px;border-radius:999px;font-weight:950}.export-check-row.ok .export-check-icon{background:#e4f5eb;color:#127041}.export-check-row.pending .export-check-icon{background:#fff0dd;color:#9c4a00}.export-check-row strong,.export-check-row small{display:block}.export-check-row small{margin-top:3px;color:#748195;font-size:9px}.export-check-row a{color:#3f4296;font-size:9px;font-weight:850;text-decoration:none}.export-download-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:14px}.export-file{display:grid;grid-template-columns:auto 1fr;gap:3px 10px;padding:13px;border:1px solid #d8e0eb;border-left:4px solid #4b4eaa;border-radius:9px;background:#f9fbfd;color:#223249;text-decoration:none}.export-file:hover{border-color:#8587ca;background:#f3f3ff}.export-file>span{grid-row:1/3;padding:5px 7px;border-radius:6px;background:#e8eaff;color:#3f4296;font-size:8px;font-weight:950}.export-file strong{font-size:11px}.export-file small{color:#6f7d91;font-size:8px}.export-file.assistance{border-left-color:#16854c}.export-draft-warning{margin-top:12px;padding:10px;border-radius:8px;background:#fff0dd;color:#80501e;font-size:9px;line-height:1.45}
.export-signature-option{display:flex;align-items:flex-start;gap:10px;margin-top:14px;padding:12px;border:1px solid #cfd9e7;border-left:4px solid #16854c;border-radius:9px;background:#f4faf7;cursor:pointer}.export-signature-option input{width:17px;height:17px;margin:1px 0 0;accent-color:#16854c}.export-signature-option span,.export-signature-option strong,.export-signature-option small{display:block}.export-signature-option strong{color:#1d4430;font-size:11px}.export-signature-option small{margin-top:3px;color:#617568;font-size:8px;line-height:1.4}

/* Documento y categorías: una tarea visible por vez, sin desplazamiento lateral oculto. */
.editor-tools-disclosure{margin-bottom:12px;border:1px solid #d9e1eb;border-radius:8px;background:#f8fafc}.editor-tools-disclosure>summary{padding:10px 12px;cursor:pointer;color:#3f4295;font-size:10px;font-weight:850}.editor-tools-disclosure .editor-master-toolbar{margin:0;border:0;border-top:1px solid #dfe5ed;border-radius:0}.section-card-body{display:none}.section-card.is-open .section-card-body{display:block}.section-card.is-open{border-color:#7779c7;box-shadow:0 0 0 2px rgba(75,78,170,.08)}.section-card:not(.is-open) .section-card-header{margin-bottom:0}.section-edit-toggle{color:#3e4196!important}.estimate-category-picker{display:none}.estimate-category-tabs{flex-wrap:wrap;overflow:visible}.estimate-category-tabs button{flex:1 1 145px}
@media(max-width:1100px){.quote-filter-panel,.audit-filter-panel{grid-template-columns:repeat(3,1fr)}.quote-filter-panel .search-field,.audit-filter-panel .search-field{grid-column:1/-1}.admin-grid,.export-layout{grid-template-columns:1fr}.user-admin-panel,.client-admin-panel{position:fixed;inset:12vh 5vw auto;width:auto;max-height:75vh;overflow:auto}.export-readiness{align-items:flex-start}}
@media(max-width:720px){.top-guide-button{font-size:0}.top-guide-button span{font-size:10px}.quote-filter-panel,.audit-filter-panel,.client-filter-panel{grid-template-columns:1fr}.quote-filter-actions,.audit-filter-actions{display:grid;grid-template-columns:1fr 1fr}.user-edit-form,.client-edit-form{grid-template-columns:1fr}.client-edit-form .wide{grid-column:auto}.user-password-form{display:block}.user-password-form .btn{width:100%;margin-top:7px}.export-readiness{display:block}.export-readiness-total{margin-top:13px;padding:13px 0 0;border-top:1px solid rgba(30,50,75,.14);border-left:0;text-align:left}.export-download-grid{grid-template-columns:1fr}.estimate-category-picker{display:block;margin-bottom:10px}.estimate-category-tabs{display:none}.portal-guide-card{max-height:55vh;overflow:auto}.section-card-header{grid-template-columns:auto minmax(0,1fr)}.section-actions{display:flex;flex-wrap:wrap}.export-center-button{width:100%}.quote-action-menu{width:100%}.quote-action-menu>summary{width:100%;text-align:center}.quote-action-menu>div{position:static;margin-top:5px}}
.numbering-admin-grid{align-items:start}.numbering-preview{min-height:300px}.numbering-code{margin:22px 0;padding:26px;border-left:5px solid var(--orange);background:#0e1830;color:#fff}.numbering-code small{display:block;color:#ffb36d;font-weight:800;letter-spacing:.12em}.numbering-code strong{display:block;margin-top:8px;font-size:clamp(30px,4vw,48px);letter-spacing:.02em}.numbering-facts{margin:0}.numbering-facts div{display:flex;justify-content:space-between;gap:20px;padding:12px 0;border-bottom:1px solid #dbe3ee}.numbering-facts dt{color:#617089}.numbering-facts dd{margin:0;font-weight:800}.numbering-form input{font-size:22px;font-weight:800}.form-alert.neutral{background:#f2f5f9;color:#41516b;border-color:#d9e1eb}
.new-quote-number{margin-left:auto;padding:8px 14px;border-left:3px solid var(--orange);background:#fff}.new-quote-number small{display:block;color:#67758b;font-size:10px;font-weight:800;letter-spacing:.1em}.new-quote-number strong{display:inline-block;margin-top:2px;color:#101b32;font-size:18px}.new-quote-number a{margin-left:10px;font-size:12px;font-weight:800}

/* Clientes: editor modal para que la tabla nunca recorte los campos. */
.client-admin-backdrop{position:fixed;inset:0;z-index:90;border:0;background:rgba(10,22,43,.42);cursor:default}.client-admin-panel{position:fixed;left:50%;right:auto;top:50%;z-index:91;width:min(760px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow:auto;padding:18px;border:1px solid #ccd6e3;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(5,20,44,.35);transform:translate(-50%,-50%)}.client-admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:-18px -18px 16px;padding:14px 18px;border-bottom:1px solid #dce3ec;background:#f7f9fc}.client-admin-heading div{display:grid;gap:3px}.client-admin-heading small{color:#9b500d;font-size:8px;font-weight:900;letter-spacing:.12em}.client-admin-heading strong{font-size:17px}.client-admin-heading>button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #d1dae6;border-radius:8px;background:#fff;color:#24324a;font-size:22px;line-height:1;cursor:pointer}.client-edit-form{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.client-edit-form textarea{min-height:92px}.client-admin-panel>form:last-child{margin-top:12px;padding-top:12px;border-top:1px solid #e1e7ef}
@media(max-width:720px){.client-admin-panel{width:calc(100vw - 20px);max-height:calc(100vh - 20px);padding:14px}.client-admin-heading{margin:-14px -14px 14px;padding:12px 14px}.client-edit-form{grid-template-columns:1fr}.client-edit-form .wide{grid-column:auto}.client-admin-panel .btn{width:100%}}

/* Cotizaciones propias y compartidas, historial de cambios (18/10/2026). Mismo lenguaje que
   «Vistas rápidas» y el panel de «Referencias similares». */
.quote-quick-views a.active{background:var(--mb-blue);color:#fff}
.quote-owner-views{padding-bottom:4px}
.quote-shared-with{display:block;margin-top:3px;color:#6d7a8d;font-size:10px;font-weight:700}
.quote-recent-change{display:inline-block;margin:6px 0 0;padding:6px 10px;border:1px solid #f0d3a7;border-left:4px solid var(--mb-orange);border-radius:6px;background:#fff8ed;color:#70410a;font-size:12px;font-weight:700}
.quote-share-add{margin:14px 0 12px}
.quote-share-add .historical-reference-create-grid{grid-template-columns:1.35fr .9fr}
.quote-share-list{border:1px solid #dce3ec;border-radius:9px;background:#fff;margin-bottom:12px}
.quote-share-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid #edf0f4}
.quote-share-row:first-child{border-top:0}
.quote-share-row>div{flex:1;min-width:0}
.quote-share-row strong{display:block;font-size:12px}
.quote-share-row small{display:block;color:#748196;font-size:10px;margin-top:2px}
.quote-share-row select{width:auto;margin:0;padding:6px 8px;font-size:11px}
.quote-share-row button{border:0;background:none;cursor:pointer;font-size:11px;font-weight:800}
.quote-share-empty{margin:0;padding:12px;color:#748196;font-size:11px}
.quote-share-transfer{margin-top:12px;padding:10px 12px;border:1px solid #dce3ec;border-radius:9px;background:#fff}
.quote-share-transfer summary{cursor:pointer;color:#273991;font-size:12px;font-weight:800}
.quote-share-transfer form{display:flex;align-items:flex-end;gap:8px;margin-top:10px}
.quote-share-transfer label{flex:1;font-size:11px}
.quote-history-filters{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 6px}
.quote-history-filters button{padding:5px 9px;border:0;border-radius:999px;background:#eef2f7;color:#394080;font-size:10px;font-weight:800;cursor:pointer}
.quote-history-filters button.active{background:var(--mb-blue);color:#fff}
.quote-history-day{margin:14px 0 4px;color:#6d7a8d;font-size:10px;font-weight:900;letter-spacing:.08em}
.quote-history-event{display:grid;grid-template-columns:42px 1fr;gap:10px;padding:10px 0;border-top:1px solid #e3e9f2}
.quote-history-time{color:#6d7a8d;font-size:11px;font-weight:700;padding-top:1px}
.quote-history-event p{margin:0;font-size:12px;line-height:1.45}
.quote-history-event p small{color:#748196}
.quote-history-changes{display:grid;grid-template-columns:minmax(110px,.42fr) 1fr;gap:5px 10px;margin:8px 0 0;padding:9px 11px;border-radius:8px;background:#fff;border:1px solid #e3e9f2;font-size:11px}
.quote-history-changes dt{color:#6d7a8d;font-weight:700}
.quote-history-transient{color:#6d7a8d;font-style:italic}
.quote-history-changes dd{margin:0;line-height:1.5;overflow-wrap:anywhere}
.quote-history-changes del{color:#9d2d26;background:#fde8e6;text-decoration:line-through;border-radius:3px;padding:0 2px}
.quote-history-changes ins{color:#17683b;background:#e8f6ed;text-decoration:none;border-radius:3px;padding:0 2px;font-weight:700}
body.quote-readonly .quote-operational-shell [contenteditable]{pointer-events:none}
body.quote-readonly .quote-operational-shell .toolbar{display:none}
.quote-side-drawer:not(.open){visibility:hidden}
.quote-history-content[aria-busy=true]{opacity:.55}
.quote-recent-change[hidden]{display:none}
.quote-dialog{width:min(480px,calc(100vw - 32px));padding:18px;border:1px solid #dce3eb;border-top:3px solid var(--mb-orange);border-radius:10px;background:#fff;box-shadow:0 18px 40px rgba(18,35,61,.22)}
.quote-dialog::backdrop{background:rgba(16,18,35,.45)}
.quote-dialog .historical-reference-create-grid{grid-template-columns:1fr}
.quote-dialog-note{margin:10px 0 0;color:#70410a;font-size:11px}
/* Entrega #79: ventana «Nueva revisión» (sobre .quote-dialog). */
.quote-revision-dialog{width:min(560px,calc(100vw - 32px))}
.quote-revision-options,.quote-revision-source{display:grid;gap:8px}
.quote-revision-option{display:flex!important;gap:10px;align-items:flex-start;margin:0;padding:10px 12px;border:1px solid #dce3eb;border-radius:8px;cursor:pointer;text-align:left}
.quote-revision-option:has(input:checked){border-color:var(--mb-orange);background:#fff8ed}
.quote-revision-option input{flex:none;width:auto;margin:2px 0 0;padding:0}
.quote-revision-option span{flex:1;min-width:0}
.quote-revision-option b{display:block;font-size:12px}
.quote-revision-option small{display:block;margin-top:3px;color:#5d6b80;font-size:11px;font-weight:500;line-height:1.4}
.quote-revision-source{margin:12px 0 0;padding:12px;border:1px solid #f0d3a7;border-left:4px solid var(--mb-orange);border-radius:8px;background:#fffdf8}
.quote-revision-source[hidden]{display:none}
.quote-revision-source legend{padding:0 4px;color:#70410a;font-size:12px;font-weight:800}
.quote-revision-changes{margin:2px 0 0;padding-left:18px;color:#41516b;font-size:11px;line-height:1.5}
