#aey-ops-content-root[data-offer-sheet-active="1"] > .ops-embedded-app{display:none!important}
#aey-offer-sheet-overlay{position:absolute;inset:0;overflow:auto;background:#f3f7fb;color:#15324a;font-family:Montserrat,Arial,sans-serif;z-index:3}
.aey-sheet-app *{box-sizing:border-box}.aey-sheet-app button,.aey-sheet-app input,.aey-sheet-app select{font:inherit}
.aey-sheet-loading,.aey-sheet-error,.aey-sheet-empty{min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;color:#6b7e91}
.aey-sheet-error strong{color:#b42318}.aey-sheet-error button,.aey-sheet-empty button{border:0;border-radius:9px;background:#0f588f;color:#fff;padding:10px 16px;font-weight:700;cursor:pointer}
.aey-sheet-topbar{height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #d9e4ee;background:#fff;position:sticky;top:0;z-index:30}
.aey-sheet-topbar>div:first-child{display:flex;flex-direction:column}.aey-sheet-topbar strong{font-size:15px}.aey-sheet-topbar span{font-size:11px;color:#718297}.aey-sheet-save-state{border:1px solid #d7e3ee;border-radius:999px;padding:6px 11px;font-size:11px;font-weight:700;background:#f8fbfd;color:#45627b}
.aey-sheet-toolbar{display:flex;align-items:flex-end;gap:12px;padding:12px 20px;background:#fff;border-bottom:1px solid #d9e4ee}.aey-sheet-process{flex:1;display:flex;flex-direction:column;border:1px solid #cad9e6;border-radius:9px;padding:8px 12px;min-width:220px}.aey-sheet-process strong{font-size:12px}.aey-sheet-process span{font-size:10px;color:#718297}.aey-sheet-toolbar label{display:flex;flex-direction:column;gap:4px;font-size:10px;font-weight:700;color:#51697f}.aey-sheet-toolbar select{height:34px;border:1px solid #cad9e6;border-radius:8px;padding:0 8px;background:#fff}.aey-sheet-actions{display:flex;gap:7px}.aey-sheet-actions button,.aey-grid-toolbar button{border:1px solid #cbd9e5;background:#fff;color:#174c75;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:700;cursor:pointer}.aey-sheet-actions button:hover,.aey-grid-toolbar button:hover{background:#edf5fb}.aey-grid-toolbar button:disabled{opacity:.4;cursor:not-allowed}.aey-grid-toolbar button.danger{color:#b42318;border-color:#f2c5c1}
.aey-workspace-tabs{display:flex;gap:6px;padding:10px 20px 0;background:#f3f7fb}.aey-workspace-tabs button{border:1px solid #cad9e6;background:#fff;color:#3f5b72;padding:8px 13px;border-radius:9px 9px 0 0;font-size:11px;font-weight:700;cursor:pointer}.aey-workspace-tabs button.active{background:#0f588f;color:#fff;border-color:#0f588f}
.aey-sheet-book{margin:0 20px 22px;border:1px solid #c9d7e4;background:#fff;box-shadow:0 5px 18px rgba(30,75,110,.08);min-height:calc(100vh - 180px);position:relative;padding-bottom:42px}
.aey-summary-sheet{display:grid;grid-template-columns:minmax(260px,1.25fr) minmax(170px,.8fr) minmax(190px,.8fr) minmax(180px,.8fr) minmax(360px,1.5fr);border-bottom:2px solid #7f98ad;min-width:1240px}
.aey-summary-sheet .block{display:grid;grid-template-columns:1fr 1fr;align-content:start;border-right:1px solid #a9bac8;background:#fff}.aey-summary-sheet .block:last-child{border-right:0}.aey-summary-sheet h3{grid-column:1/-1;margin:0;padding:6px 8px;font-size:11px;text-align:center;color:#fff;background:#0f588f;letter-spacing:.04em}.aey-summary-sheet .fees h3,.aey-summary-sheet .delivery h3{background:#d76c1c}.aey-summary-sheet .minimum h3{background:#e3342f}.aey-summary-sheet .vars h3{background:#154f7b}
.aey-summary-sheet label{min-height:30px;display:grid;grid-template-columns:minmax(92px,1fr) minmax(80px,.85fr);align-items:center;border-right:1px solid #d6e0e8;border-bottom:1px solid #d6e0e8}.aey-summary-sheet label:nth-child(odd){border-right:0}.aey-summary-sheet label span{padding:4px 7px;font-size:9px;font-weight:700;color:#2d465b}.aey-summary-sheet input,.aey-summary-sheet output{width:100%;height:100%;min-height:29px;border:0;border-left:1px solid #d6e0e8;background:#fff;padding:4px 7px;text-align:right;font-size:10px;color:#18384f}.aey-summary-sheet input:focus{outline:2px solid #2785c4;outline-offset:-2px;background:#eef8ff}.aey-summary-sheet input[readonly]{background:#eef2f5;color:#6c7b86}.aey-summary-sheet label.computed output{font-weight:700;background:#f5f9fc}.aey-summary-sheet label.positive output{color:#117a37}.aey-summary-sheet label.negative output{color:#b42318}.aey-summary-sheet .fees button{grid-column:1/-1;border:0;border-top:1px solid #d6e0e8;background:#fff7ef;color:#a34b0d;font-size:9px;font-weight:800;padding:6px;cursor:pointer}
.aey-grid-toolbar{display:flex;align-items:center;gap:7px;padding:8px 10px;background:#eef4f8;border-bottom:1px solid #c9d7e4;min-width:900px}.aey-grid-toolbar span{font-size:10px;color:#62788c;margin-left:auto}
.aey-spreadsheet-wrap{overflow:auto;max-height:calc(100vh - 410px);position:relative;background:#fff}.aey-spreadsheet{border-collapse:separate;border-spacing:0;table-layout:fixed;width:max-content;min-width:100%;font-size:10px;color:#253e52}.aey-spreadsheet th{position:sticky;top:0;z-index:5;background:#ef7b24;color:#fff;border-right:1px solid rgba(255,255,255,.3);border-bottom:1px solid #b54e05;padding:7px 5px;text-align:center;font-size:9px;white-space:normal}.aey-spreadsheet th:nth-child(-n+3){background:#e97720}.aey-spreadsheet td{height:30px;border-right:1px solid #cdd8e1;border-bottom:1px solid #cdd8e1;background:#fff;padding:0}.aey-spreadsheet tbody tr:nth-child(even) td{background:#f3f3f3}.aey-spreadsheet tr.selected td{box-shadow:inset 0 2px #1876aa,inset 0 -2px #1876aa}.aey-spreadsheet td:first-child,.aey-spreadsheet th:first-child{position:sticky;left:0;z-index:7}.aey-spreadsheet td:nth-child(2),.aey-spreadsheet th:nth-child(2){position:sticky;left:72px;z-index:6}.aey-spreadsheet td:nth-child(3),.aey-spreadsheet th:nth-child(3){position:sticky;left:202px;z-index:6}.aey-spreadsheet tbody td:first-child,.aey-spreadsheet tbody td:nth-child(2),.aey-spreadsheet tbody td:nth-child(3){background:inherit}.aey-spreadsheet input{width:100%;height:29px;border:0;background:transparent;padding:3px 5px;font-size:10px;color:inherit}.aey-spreadsheet input:focus{outline:2px solid #1782c0;outline-offset:-2px;background:#eaf7ff}.aey-spreadsheet .computed-cell{padding:4px 6px;text-align:right;background:#edf1f4!important;font-variant-numeric:tabular-nums}.aey-spreadsheet .empty-cell{text-align:center;padding:28px;color:#6d7d89;background:#fff!important}
.aey-book-tabs{position:absolute;left:0;bottom:0;right:0;height:40px;display:flex;align-items:flex-end;gap:2px;border-top:1px solid #c9d7e4;background:#f2f5f7;padding:0 7px}.aey-book-tabs button{height:34px;border:1px solid #c9d7e4;border-bottom:0;border-radius:7px 7px 0 0;background:#e8edf1;color:#475f73;padding:0 15px;font-size:10px;font-weight:700;cursor:pointer}.aey-book-tabs button.active{background:#fff;color:#0f588f;border-top:3px solid #0f588f}
.aey-auction-summary{display:grid;grid-template-columns:repeat(6,minmax(150px,1fr));gap:0;border-bottom:1px solid #c9d7e4}.auction-field{display:grid;grid-template-columns:1fr 1fr;align-items:center;min-height:38px;border-right:1px solid #d5dfe7;border-bottom:1px solid #d5dfe7}.auction-field span{padding:6px;font-size:9px;font-weight:700}.auction-field input,.auction-field output{height:100%;border:0;border-left:1px solid #d5dfe7;padding:6px;text-align:right;background:#fff;font-size:10px}.auction-field.computed output{background:#f2f6f9;font-weight:700}.aey-spreadsheet.auction{min-width:1500px}.bid-status{display:inline-block;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800}.bid-status.ok{background:#dff3e5;color:#137333}.bid-status.bad{background:#fde2df;color:#b42318}
.aey-history{padding:16px;display:grid;gap:10px}.aey-history h3{margin:0}.aey-history article{border:1px solid #d5e0e9;border-radius:8px;padding:10px;display:grid;grid-template-columns:1fr auto;gap:6px;background:#fafcfd}.aey-history article>div{display:flex;gap:8px;align-items:center}.aey-history article span,.aey-history time{font-size:10px;color:#6d7f8f}.aey-history pre{grid-column:1/-1;margin:0;font-size:9px;white-space:pre-wrap;background:#f2f5f7;padding:8px;border-radius:6px;max-height:140px;overflow:auto}
.aey-conflict{margin:10px;border:1px solid #f2b8b5;background:#fff1f0;color:#8f1d16;border-radius:8px;padding:9px 11px;display:flex;align-items:center;gap:8px}.aey-conflict strong{font-size:11px}.aey-conflict span{font-size:10px;flex:1}.aey-conflict button{border:1px solid #e4aaa5;background:#fff;color:#8f1d16;border-radius:7px;padding:6px 9px;font-size:9px;font-weight:700;cursor:pointer}
.aey-sheet-toast{position:fixed;right:90px;bottom:24px;background:#173f5f;color:#fff;border-radius:9px;padding:10px 14px;font-size:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s;z-index:90}.aey-sheet-toast.show{opacity:1;transform:none}.aey-sheet-toast.error{background:#b42318}
.aey-deliveries{padding:18px 20px}.aey-deliveries h2{margin:0 0 4px}.aey-deliveries p{margin:0 0 14px;color:#708194;font-size:11px}.aey-delivery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}.aey-delivery-grid button{display:grid;grid-template-columns:1fr auto;text-align:left;gap:5px;border:1px solid #d0dce6;background:#fff;border-radius:10px;padding:12px;color:#244158;cursor:pointer}.aey-delivery-grid button:hover{border-color:#2785c4;box-shadow:0 4px 12px rgba(30,90,130,.1)}.aey-delivery-grid strong{font-size:12px}.aey-delivery-grid span,.aey-delivery-grid small{font-size:10px;color:#6e8091}.aey-delivery-grid b{font-size:9px;background:#e7f1f8;color:#0f588f;border-radius:999px;padding:3px 7px;justify-self:end}
@media(max-width:900px){.aey-sheet-toolbar{flex-wrap:wrap}.aey-sheet-process{min-width:100%}.aey-sheet-book{margin:0 8px 14px}.aey-workspace-tabs{padding-left:8px;overflow:auto}.aey-summary-sheet{min-width:1200px}.aey-auction-summary{min-width:1100px}.aey-spreadsheet-wrap{max-height:calc(100vh - 370px)}.aey-grid-toolbar span{display:none}}
.aey-auction-override{display:grid;gap:8px;padding:10px 12px;border-top:1px solid #efb8bc;background:#fff1f2}.aey-auction-override label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:800;color:#8d2530}.aey-auction-override>input{height:34px;border:1px solid #d9aeb3;border-radius:7px;padding:0 9px;font-size:10px;background:#fff}.aey-auction-override input:focus{outline:2px solid #c6383d;outline-offset:1px}

/* R37 · Univer Sheets embebido */
.aey-sheet-process input[type="search"]{height:34px;border:0;background:#fff;color:#071521;font-size:12px;font-weight:700;padding:0;outline:0}
.aey-sheet-process input[type="search"]::placeholder{color:#6c7f90;font-weight:500}
.aey-univer-frame-shell{position:relative;height:calc(100vh - 250px);min-height:680px;background:#fff;overflow:hidden}
.aey-univer-standalone-frame{display:block;width:100%;height:100%;min-height:680px;border:0;background:#fff}
.aey-univer-frame-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#fff;color:#536d80;text-align:center;padding:24px;z-index:5}
.aey-univer-frame-error[hidden]{display:none}
.aey-univer-frame-error strong{font-size:15px;color:#a51f2d}
.aey-univer-frame-error span{max-width:620px;font-size:12px}
.aey-univer-frame-error button{border:1px solid #b9cad7;border-radius:8px;background:#fff;color:#0e5b91;padding:9px 13px;font-weight:800;cursor:pointer}
@media(max-width:900px){.aey-univer-frame-shell,.aey-univer-standalone-frame{height:calc(100vh - 300px);min-height:620px}.aey-sheet-process input[type="search"]{font-size:12px}}

/* R38 · Costeo mixto por fila, actividad compacta y gastos comunes */
.aey-primary{background:#0f588f!important;color:#fff!important;border-color:#0f588f!important}
.aey-default-model{margin-left:auto;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;font-size:10px!important}.aey-default-model select{height:32px;border:1px solid #b9cad7;border-radius:7px;background:#fff;color:#102d43;font-weight:700;padding:0 8px}
.aey-row-costing{margin:8px 10px;border:1px solid #b9cad7;border-radius:9px;background:#fff;overflow:hidden}.aey-row-costing header{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#edf5fb;border-bottom:1px solid #c9d7e4}.aey-row-costing header strong{font-size:11px;color:#0b3656}.aey-row-costing header label{display:flex;align-items:center;gap:6px;margin-left:auto;font-size:10px;font-weight:800}.aey-row-costing select{height:31px;border:1px solid #b8cada;border-radius:7px;background:#fff;color:#071521;padding:0 8px;font-weight:700}.aey-model-badge{border-radius:999px;background:#dcecf7;color:#0e5b91;padding:4px 8px;font-size:9px;font-weight:800}.aey-row-costing-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:8px;padding:9px}.aey-row-costing-fields label{display:grid;gap:4px}.aey-row-costing-fields label span{font-size:9px;font-weight:800;color:#27475f}.aey-row-costing-fields input{height:32px;border:1px solid #c7d5e1;border-radius:7px;background:#fff;color:#000;padding:0 8px;font-size:12px}.aey-row-costing-fields label.wide{grid-column:1/-1}.aey-model-help{grid-column:1/-1;margin:0;color:#5f7487;font-size:10px}.aey-row-costing-empty{margin:8px 10px;padding:10px;border:1px dashed #b9cad7;border-radius:8px;background:#f8fbfd;color:#64798b;font-size:10px}
.aey-common-expenses{margin:8px 10px;border:1px solid #c6d4df;border-radius:9px;background:#fff}.aey-common-expenses summary{cursor:pointer;padding:9px 11px;background:#f3f7fa;color:#173f5d;font-size:11px;font-weight:800}.aey-common-expenses summary b{float:right;color:#0b6b3a}.aey-common-toolbar{display:flex;align-items:center;gap:10px;padding:8px 10px;border-top:1px solid #d8e2ea}.aey-common-toolbar button,.aey-common-row button{border:1px solid #bdcedb;border-radius:7px;background:#fff;color:#164f78;padding:6px 9px;font-size:9px;font-weight:800}.aey-common-toolbar span{font-size:9px;color:#657a8c}.aey-common-row{display:grid;grid-template-columns:2fr 1fr 1.2fr auto;gap:7px;padding:7px 10px;border-top:1px solid #e0e7ed}.aey-common-row input,.aey-common-row select{height:31px;border:1px solid #c6d4df;border-radius:7px;background:#fff;color:#000;padding:0 8px;font-size:11px}.aey-common-row button.danger{color:#b42318}
.aey-activity-drawer{position:fixed;right:74px;top:70px;width:min(390px,calc(100vw - 100px));max-height:calc(100vh - 100px);overflow:auto;background:#fff;border:1px solid #c4d3df;border-radius:12px;box-shadow:0 15px 50px rgba(16,52,79,.22);z-index:120}.aey-activity-drawer header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:11px 13px;background:#0f588f;color:#fff}.aey-activity-drawer header button{border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer}.aey-activity-drawer article{display:grid;grid-template-columns:1fr auto;gap:4px;padding:10px 12px;border-bottom:1px solid #e1e8ee}.aey-activity-drawer article strong{font-size:10px}.aey-activity-drawer article span{grid-column:1/-1;font-size:10px;color:#3e586d}.aey-activity-drawer article time{font-size:8px;color:#738699}.aey-activity-drawer>small{display:block;padding:10px 12px;color:#708294;font-size:9px}
.aey-spreadsheet{font-size:12px;color:#000}.aey-spreadsheet th{font-size:10px}.aey-spreadsheet input{font-size:12px;color:#000;background:#fff}.aey-spreadsheet tbody tr:nth-child(even) td{background:#fff}.aey-spreadsheet .computed-cell{color:#000;font-weight:650;background:#eef2f5!important}
.aey-summary-sheet label span{font-size:10px;color:#071521}.aey-summary-sheet input,.aey-summary-sheet output{font-size:12px;color:#000;background:#fff}.aey-summary-sheet input[readonly]{color:#000;background:#eef2f5}
@media(max-width:900px){.aey-row-costing-fields{grid-template-columns:repeat(2,minmax(170px,1fr))}.aey-common-row{min-width:700px}.aey-default-model{margin-left:0}.aey-activity-drawer{right:10px;width:calc(100vw - 20px)}}

/* R39: la página no desplaza; solo la hoja/cuadrícula controla su scroll. */
html.aey-offer-sheet-open,
body.aey-offer-sheet-open{height:100%!important;overflow:hidden!important;overscroll-behavior:none}
#aey-ops-content-root[data-offer-sheet-active="1"]{display:block!important;position:relative!important;height:100vh!important;max-height:100vh!important;min-height:0!important;overflow:hidden!important}
#aey-offer-sheet-overlay{height:100%!important;max-height:100%!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;min-height:0!important}
#aey-offer-sheet-overlay>.aey-sheet-topbar,
#aey-offer-sheet-overlay>.aey-sheet-toolbar,
#aey-offer-sheet-overlay>.aey-workspace-tabs{flex:0 0 auto}
.aey-sheet-book{flex:1 1 auto!important;min-height:0!important;height:auto!important;margin-bottom:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.aey-univer-frame-shell{flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow:hidden!important;position:relative!important;background:#fff}
.aey-univer-standalone-frame{display:block!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;overflow:hidden!important;background:#fff}
.aey-univer-frame-loading{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fff;color:#536d80;text-align:center;padding:24px}
.aey-univer-frame-loading strong{font-size:14px;color:#173e5b}.aey-univer-frame-loading small{font-size:11px}
.aey-univer-spinner{width:24px;height:24px;border:3px solid #dbe7ef;border-top-color:#0e5b91;border-radius:50%;animation:aeyR39Spin .8s linear infinite}
@keyframes aeyR39Spin{to{transform:rotate(360deg)}}
.aey-spreadsheet-wrap{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain}
.aey-summary-sheet,.aey-grid-toolbar,.aey-row-costing,.aey-row-costing-empty,.aey-common-expenses{flex:0 0 auto}
.aey-deliveries,.aey-history,.aey-auction-summary+.aey-spreadsheet-wrap{overflow:auto;min-height:0}
@media(max-width:900px){html.aey-offer-sheet-open,body.aey-offer-sheet-open{overflow:hidden!important}.aey-sheet-toolbar{overflow-x:auto;flex-wrap:nowrap!important}.aey-workspace-tabs{overflow-x:auto}.aey-sheet-book{margin-left:6px!important;margin-right:6px!important}.aey-univer-frame-shell,.aey-univer-standalone-frame{height:auto!important;min-height:0!important}}

/* R40 · editor local inmediato + Univer verificado, sin pantalla blanca ni toast flotante */
#aey-offer-sheet-overlay{position:absolute!important;inset:0!important}
.aey-sheet-book{padding-bottom:40px!important}
.aey-sheet-engine-banner{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;padding:7px 12px;border-bottom:1px solid #c8d8e5;background:#eef6fb;color:#173f5e}
.aey-sheet-engine-banner>div:first-child{display:flex;align-items:center;gap:9px;min-width:0}
.aey-sheet-engine-banner strong{font-size:11px;white-space:nowrap}
.aey-sheet-engine-banner span{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#49677f}
.aey-sheet-engine-banner.is-univer{background:#e9f8ef;border-color:#aad5ba}.aey-sheet-engine-banner.is-univer strong{color:#166335}
.aey-sheet-engine-banner.is-local{background:#fff8e8;border-color:#e7cb83}.aey-sheet-engine-banner.is-local strong{color:#815000}
.aey-sheet-engine-banner.is-probing{background:#eef6fb}
.aey-sheet-engine-actions{display:flex!important;gap:6px!important;flex:0 0 auto}
.aey-sheet-engine-actions button{height:29px;border:1px solid #b9cad7;border-radius:7px;background:#fff;color:#0e5b91;padding:0 9px;font-size:9px;font-weight:800;cursor:pointer}
.aey-editor-stack{position:relative;flex:1 1 auto;min-height:0;overflow:hidden;background:#fff}
.aey-classic-editor-layer{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;overflow:hidden;background:#fff;z-index:1}
.aey-editor-stack>.aey-univer-standalone-frame{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;border:0!important;background:#fff!important;visibility:hidden;opacity:0;pointer-events:none;z-index:2;transition:opacity .15s ease}
.aey-editor-stack[data-mode="univer"]>.aey-univer-standalone-frame{visibility:visible;opacity:1;pointer-events:auto}
.aey-editor-stack[data-mode="univer"]>.aey-classic-editor-layer{visibility:hidden;pointer-events:none}
.aey-editor-stack[data-mode="probing"]>.aey-univer-standalone-frame{visibility:hidden;opacity:0;pointer-events:none}
.aey-editor-stack[data-mode="local"]>.aey-univer-standalone-frame{visibility:hidden;opacity:0;pointer-events:none}
.aey-classic-editor-layer>.aey-summary-sheet,.aey-classic-editor-layer>.aey-grid-toolbar,.aey-classic-editor-layer>.aey-row-costing,.aey-classic-editor-layer>.aey-row-costing-empty,.aey-classic-editor-layer>.aey-common-expenses{flex:0 0 auto}
.aey-classic-editor-layer>.aey-spreadsheet-wrap{flex:1 1 auto!important;min-height:0!important;max-height:none!important;overflow:auto!important}
.aey-sheet-toast{position:static!important;display:none!important}
.aey-summary-sheet .block{grid-template-columns:1fr!important}
.aey-summary-sheet label{grid-template-columns:minmax(118px,1fr) minmax(92px,.9fr)!important;border-right:0!important}
.aey-summary-sheet label:nth-child(odd){border-right:0!important}
.aey-summary-sheet label span{font-size:11px!important;color:#000!important}
.aey-summary-sheet input,.aey-summary-sheet output{font-size:12px!important;color:#000!important;background:#fff!important}
.aey-summary-sheet label.computed output,.aey-summary-sheet input[readonly]{background:#eef2f5!important;color:#000!important}
.aey-spreadsheet{font-size:12px!important;color:#000!important}
.aey-spreadsheet th{font-size:10px!important}
.aey-spreadsheet input{font-size:12px!important;color:#000!important;background:#fff!important}
.aey-spreadsheet td{background:#fff!important}
.aey-spreadsheet .computed-cell{background:#eef2f5!important;color:#000!important}
@media(max-width:900px){.aey-sheet-engine-banner{align-items:flex-start}.aey-sheet-engine-banner>div:first-child{display:grid;gap:2px}.aey-sheet-engine-banner span{white-space:normal}.aey-sheet-engine-actions{overflow-x:auto}.aey-editor-stack{min-width:0}.aey-classic-editor-layer{overflow:hidden}}
.aey-sheet-feedback{flex:0 0 auto;margin:0 20px;padding:8px 11px;border:1px solid #b7cfdf;border-radius:8px 8px 0 0;background:#edf6fb;color:#154d73;font-size:10px;font-weight:700}
.aey-sheet-feedback.error{border-color:#efb2b2;background:#fff1f1;color:#9b2424}
.aey-sheet-feedback[hidden]{display:none!important}
@media(max-width:900px){.aey-sheet-feedback{margin:0 8px}}

/* R40.1 layout correction: el libro es contenedor flex; solo la cuadrícula desplaza. */
.aey-sheet-book{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;overflow:hidden!important}
.aey-editor-stack{flex:1 1 auto!important;min-height:260px!important;height:auto!important}
.aey-classic-editor-layer{height:100%!important;min-height:0!important}
.aey-classic-editor-layer>.aey-spreadsheet-wrap{min-height:120px!important}

/* R41 — Univer es el único editor del presupuesto. */
.aey-univer-only-shell{
  position:relative;
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-width:0;
  min-height:0;
  height:100%;
  overflow:hidden;
  background:#fff;
}
.aey-univer-only-shell .aey-univer-standalone-frame{
  display:block!important;
  flex:1 1 auto;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  border:0!important;
  background:#fff!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.aey-univer-inline-state{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  padding:24px;
  background:#f4f8fb;
  color:#183b55;
  text-align:left;
}
.aey-univer-inline-state[data-state="univer"]{display:none}
.aey-univer-inline-state[data-state="error"]{
  background:#fff7f6;
  color:#80251d;
}
.aey-univer-state-copy{display:grid;gap:7px;max-width:720px}
.aey-univer-state-copy strong{font-size:18px;color:inherit}
.aey-univer-state-copy span{font-size:13px;line-height:1.45;color:inherit}
.aey-univer-state-copy code{
  max-width:720px;
  padding:9px 11px;
  border:1px solid #e4b8b3;
  border-radius:8px;
  background:#fff;
  color:#6b1f18;
  font-size:11px;
  white-space:normal;
  overflow-wrap:anywhere;
}
.aey-univer-inline-state button{
  min-height:36px;
  padding:0 14px;
  border:1px solid #0f5f96;
  border-radius:8px;
  background:#0f5f96;
  color:#fff;
  font-weight:800;
  cursor:pointer;
}
.aey-sheet-book>.aey-univer-only-shell{flex:1 1 auto;min-height:0}
#aey-offer-sheet-overlay,.aey-sheet-book,.aey-univer-only-shell{overscroll-behavior:contain}
@media(max-width:900px){
  .aey-univer-inline-state{align-items:flex-start;flex-direction:column;justify-content:center}
}

/* R42: landing autónomo de Operaciones cuando todavía no hay proceso seleccionado. */
.aey-operations-landing .aey-landing-toolbar{align-items:flex-end}
.aey-operations-landing .aey-landing-toolbar>.aey-primary{height:40px;min-width:125px;border:0;border-radius:9px;background:#0e4f88;color:#fff;font-weight:800;cursor:pointer}
.aey-operations-landing .aey-landing-toolbar>.aey-primary:disabled{opacity:.45;cursor:not-allowed}
.aey-landing-book{padding:18px;overflow:auto!important}
.aey-landing-book .aey-sheet-empty{min-height:120px;margin-bottom:14px}
.aey-process-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:10px;align-content:start}
.aey-process-grid>p{grid-column:1/-1;text-align:center;color:#6d7f90;padding:24px}
.aey-process-card{display:grid;gap:5px;text-align:left;border:1px solid #d3e0e9;border-radius:11px;background:#fff;padding:12px;cursor:pointer;color:#17324a;min-height:92px}
.aey-process-card:hover,.aey-process-card:focus{border-color:#4b8bb8;box-shadow:0 0 0 3px rgba(14,79,136,.10);outline:0}
.aey-process-card strong{font-size:12px;color:#0e4f88}
.aey-process-card span{font-size:10px;font-weight:700;color:#243f55}
.aey-process-card small{font-size:9px;line-height:1.35;color:#6b7f90;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media(max-width:700px){.aey-process-grid{grid-template-columns:1fr}.aey-operations-landing .aey-landing-toolbar{flex-wrap:wrap}.aey-operations-landing .aey-landing-toolbar>.aey-primary{width:100%}}

body[data-aey-offer-budget="1"] #aey-ops-content-root{display:block!important;position:fixed!important;z-index:25!important;inset:0 var(--context-rail-width,72px) 0 var(--sidebar-width,225px)!important;min-width:0!important;overflow:hidden!important;background:#f4f8fb!important}
body[data-aey-offer-budget="1"] #aey-ops-content-root[data-offer-sheet-active="1"]{display:block!important}
@media(max-width:900px){body[data-aey-offer-budget="1"] #aey-ops-content-root{left:0!important;right:0!important}}

/* R44 — barra mínima, montaje directo de Univer y pantalla completa. */
#aey-offer-sheet-overlay{display:flex;flex-direction:column;overflow:hidden!important}
.aey-sheet-commandbar{
  flex:0 0 48px;min-height:48px;display:flex;align-items:center;gap:7px;padding:6px 10px;
  border-bottom:1px solid #d6e2eb;background:#fff;position:relative;z-index:60;white-space:nowrap;
  overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;overscroll-behavior-x:contain
}
.aey-sheet-module{font-size:13px;color:#133e5d;padding:0 3px;flex:0 0 auto}
.aey-process-combobox{position:relative;flex:1 1 320px;min-width:180px;max-width:620px}
.aey-process-combobox>input{width:100%;height:34px;border:1px solid #bfd0dd;border-radius:8px;background:#fff;color:#102f47;padding:0 10px;font-size:11px;outline:0}
.aey-process-combobox>input:focus{border-color:#0f659c;box-shadow:0 0 0 2px rgba(15,101,156,.12)}
.aey-process-options{position:absolute;left:0;right:0;top:39px;z-index:100;max-height:min(390px,60vh);overflow:auto;padding:5px;border:1px solid #bdcfdd;border-radius:9px;background:#fff;box-shadow:0 18px 45px rgba(14,48,72,.2)}
.aey-process-options[hidden]{display:none!important}
.aey-process-options button{width:100%;display:grid;grid-template-columns:minmax(100px,.65fr) minmax(120px,1fr);gap:2px 9px;padding:8px 9px;border:0;border-radius:6px;background:#fff;color:#173b55;text-align:left;cursor:pointer}
.aey-process-options button:hover,.aey-process-options button:focus{background:#edf6fb;outline:0}
.aey-process-options strong{font-size:11px;color:#0c5d94}.aey-process-options span{font-size:10px;font-weight:700;overflow:hidden;text-overflow:ellipsis}.aey-process-options small{grid-column:1/-1;font-size:9px;color:#657d8e;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.aey-process-empty{display:block;padding:12px;color:#667d8e;font-size:11px;text-align:center}
.aey-version-compact{flex:0 0 auto}.aey-version-compact select{height:34px;min-width:56px;border:1px solid #bfd0dd;border-radius:8px;background:#fff;color:#123d5d;padding:0 7px;font-size:11px;font-weight:800}
.aey-icon-button{flex:0 0 34px;min-width:34px;width:34px;height:34px;display:grid;place-items:center;border:1px solid #bfd0dd;border-radius:8px;background:#fff;color:#134d73;font-size:16px;line-height:1;cursor:pointer;padding:0}
.aey-icon-button:hover,.aey-icon-button:focus{background:#edf6fb;border-color:#4b89af;outline:0}
.aey-sheet-commandbar .aey-sheet-save-state{flex:0 0 auto;margin-left:2px;padding:4px 7px;border:0;background:transparent;font-size:9px;color:#4d687c}
.aey-sheet-book{margin:0!important;border:0!important;box-shadow:none!important;padding:0!important;flex:1 1 auto!important;min-height:0!important}
.aey-univer-direct-host{flex:1 1 auto;min-width:0;min-height:0;height:100%;overflow:hidden;background:#fff}
.aey-univer-only-shell.offer-univer-direct{min-height:0!important;height:100%!important}
.aey-univer-only-shell .aey-univer-bridge{display:none!important}
html.aey-operations-fullscreen body>*:not(#aey-ops-content-root){visibility:hidden!important}
html.aey-operations-fullscreen #aey-ops-content-root{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;display:block!important;visibility:visible!important}
html.aey-operations-fullscreen #aey-ops-content-root *{visibility:visible}
html.aey-operations-fullscreen #aey-offer-sheet-overlay{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483001!important}
html.aey-operations-fullscreen .aey-sheet-commandbar{min-height:46px;flex-basis:46px}
.sr-only{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}
@media(max-width:900px){
  .aey-sheet-commandbar{gap:4px;padding:5px 6px;min-height:44px;flex-basis:44px}
  .aey-sheet-module{font-size:11px}.aey-process-combobox{flex:1 1 auto;min-width:90px}.aey-process-combobox>input{height:32px;font-size:10px;padding:0 7px}
  .aey-version-compact select{height:32px;min-width:46px;padding:0 4px}.aey-icon-button{width:31px;height:32px;font-size:14px}.aey-sheet-commandbar .aey-sheet-save-state{display:none}
  .aey-process-options{position:fixed;left:6px;right:6px;top:47px;max-height:55dvh}
}
@media(max-width:560px){
  .aey-sheet-module{font-size:0}.aey-sheet-module::before{content:'Ops';font-size:10px}
  .aey-icon-button{width:29px}.aey-process-combobox{min-width:70px}.aey-version-compact select{width:44px}
}

/* R44 · acciones controladas de entrega */
.aey-delivery-card{position:relative;display:grid;border:1px solid #d0dce6;background:#fff;border-radius:10px;overflow:hidden}
.aey-delivery-card:hover{border-color:#2785c4;box-shadow:0 4px 12px rgba(30,90,130,.1)}
.aey-delivery-grid .aey-delivery-open{width:100%;display:grid;grid-template-columns:1fr auto;text-align:left;gap:5px;border:0;background:#fff;border-radius:0;padding:12px 12px 46px;color:#244158;cursor:pointer;box-shadow:none}
.aey-delivery-card-actions{position:absolute;left:9px;right:9px;bottom:8px;display:flex;justify-content:flex-end;gap:5px;border-top:1px solid #e1e8ee;padding-top:6px}
.aey-delivery-grid .aey-delivery-card-actions button{width:30px;height:28px;display:grid;place-items:center;border:1px solid #c9d7e2;border-radius:7px;background:#fff;padding:0;font-size:13px;cursor:pointer}
.aey-delivery-grid .aey-delivery-card-actions button:hover{background:#edf6fb;border-color:#4b89af;box-shadow:none}

/* R45 — corrección responsive, accesos de Operaciones y modales locales. */
body[data-aey-offer-budget="1"]:has(#root .portal-shell.sidebar-is-collapsed) #aey-ops-content-root{
  left:var(--sidebar-collapsed,78px)!important;
}
body[data-aey-offer-budget="1"]:has(#root .portal-shell:not(.sidebar-is-collapsed)) #aey-ops-content-root{
  left:var(--sidebar-width,225px)!important;
}
body[data-aey-offer-budget="1"]:has(#root .portal-shell.has-context-panel:not(.right-panel-is-open)) #aey-ops-content-root{
  right:calc(var(--context-rail-width,72px) + 10px)!important;
}
body[data-aey-offer-budget="1"]:has(#root .portal-shell.right-panel-is-open) #aey-ops-content-root{
  right:calc(var(--context-rail-width,72px) + var(--context-panel-width,520px) + 10px)!important;
}
body[data-aey-offer-budget="1"]:has(#root .portal-shell:not(.has-context-panel)) #aey-ops-content-root{
  right:10px!important;
}
.aey-sheet-commandbar{min-width:0}
.aey-workspace-compact{display:flex;align-items:center;gap:4px;flex:0 0 auto}
.aey-workspace-compact button{height:34px;display:inline-flex;align-items:center;gap:5px;border:1px solid #bfd0dd;border-radius:8px;background:#fff;color:#164b70;padding:0 8px;font-size:10px;font-weight:800;cursor:pointer}
.aey-workspace-compact button:hover,.aey-workspace-compact button:focus{background:#edf6fb;border-color:#4b89af;outline:0}
.aey-icon-button.is-active{background:#e3f2fb;border-color:#2d7ca8;color:#0a527e}
.aey-modal-backdrop{position:absolute;inset:0;z-index:500;display:grid;place-items:center;padding:18px;background:rgba(8,30,47,.42);backdrop-filter:blur(2px)}
.aey-modal-card{width:min(620px,calc(100vw - 36px));max-height:min(760px,calc(100dvh - 36px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #c9d8e4;border-radius:13px;background:#fff;box-shadow:0 24px 80px rgba(5,35,55,.28)}
.aey-import-modal .aey-modal-card{width:min(920px,calc(100vw - 36px))}
.aey-modal-card>header{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;padding:15px 17px;border-bottom:1px solid #dce6ed;background:#f8fbfd}
.aey-modal-card>header>div{display:grid;gap:3px}.aey-modal-card>header strong{font-size:14px;color:#123f5e}.aey-modal-card>header span{font-size:10px;color:#687f90}
.aey-modal-card>header>button{width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#536d80;font-size:22px;line-height:1;cursor:pointer}
.aey-modal-body{display:grid;gap:13px;min-height:0;overflow:auto;padding:16px 17px}
.aey-modal-body label{display:grid;gap:5px;color:#40596c;font-size:10px;font-weight:800}
.aey-modal-body input,.aey-modal-body select{width:100%;min-height:38px;border:1px solid #c7d6e1;border-radius:8px;background:#fff;color:#18384f;padding:7px 9px;font-size:11px;outline:0}
.aey-modal-body input:focus,.aey-modal-body select:focus{border-color:#1772a8;box-shadow:0 0 0 3px rgba(23,114,168,.12)}
.aey-modal-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 17px;border-top:1px solid #dce6ed;background:#fafcfd}
.aey-modal-card>footer button{min-height:36px;border:1px solid #bfd0dd;border-radius:8px;background:#fff;color:#174b70;padding:0 13px;font-size:10px;font-weight:800;cursor:pointer}
.aey-modal-card>footer button.aey-primary{border-color:#0e5a91;background:#0e5a91;color:#fff}.aey-modal-card>footer button:disabled{opacity:.45;cursor:not-allowed}
.aey-import-settings{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.aey-import-preview{display:grid;gap:10px;min-height:120px;padding:12px;border:1px dashed #bfd0dd;border-radius:9px;background:#f8fbfd;color:#5f7688;font-size:10px}
.aey-import-preview>p{margin:auto;text-align:center}.aey-import-summary{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}.aey-import-summary strong{color:#0e568a}.aey-import-summary span{font-size:10px}
.aey-import-warnings{margin:0;padding:9px 9px 9px 27px;border-radius:8px;background:#fff4e7;color:#87480c}.aey-import-confirm{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:8px!important;text-transform:none!important}.aey-import-confirm input{width:16px!important;min-height:16px!important;margin:0}
.aey-import-table-wrap{max-height:330px;overflow:auto;border:1px solid #d4e0e8;border-radius:8px;background:#fff}.aey-import-table-wrap table{width:100%;border-collapse:collapse;font-size:9px}.aey-import-table-wrap th{position:sticky;top:0;background:#0e568a;color:#fff;text-align:left;padding:7px}.aey-import-table-wrap td{border-top:1px solid #e0e7ed;padding:6px 7px;vertical-align:top}.aey-import-table-wrap small{display:block;padding:7px;color:#697e8f}
@media(max-width:1650px){
  .aey-sheet-commandbar{gap:5px;padding-inline:7px}
  .aey-process-combobox{flex-basis:250px;max-width:500px}
  .aey-workspace-compact button{width:34px;padding:0;justify-content:center}.aey-workspace-compact button b{display:none}
  .aey-sheet-module{font-size:11px}
}
@media(max-width:1250px){
  .aey-process-combobox{flex:1 0 190px;min-width:190px}
  .aey-use-version-button{max-width:110px;overflow:hidden;text-overflow:ellipsis}
  .aey-sheet-commandbar .aey-sheet-save-state{display:none}
}
@media(max-width:900px){
  body[data-aey-offer-budget="1"]:has(#root .portal-shell.sidebar-is-collapsed) #aey-ops-content-root,
  body[data-aey-offer-budget="1"]:has(#root .portal-shell:not(.sidebar-is-collapsed)) #aey-ops-content-root{left:0!important}
  body[data-aey-offer-budget="1"]:has(#root .portal-shell.right-panel-is-open) #aey-ops-content-root,
  body[data-aey-offer-budget="1"]:has(#root .portal-shell.has-context-panel:not(.right-panel-is-open)) #aey-ops-content-root,
  body[data-aey-offer-budget="1"]:has(#root .portal-shell:not(.has-context-panel)) #aey-ops-content-root{right:0!important}
  .aey-sheet-commandbar{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain}
  .aey-sheet-commandbar::-webkit-scrollbar{display:none}
  .aey-workspace-compact button{width:31px;padding:0;justify-content:center}.aey-workspace-compact button b{display:none}
  .aey-process-combobox{flex:1 0 150px;min-width:150px}
  .aey-modal-backdrop{position:fixed;padding:8px}.aey-modal-card,.aey-import-modal .aey-modal-card{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .aey-import-settings{grid-template-columns:1fr}.aey-modal-card>footer{overflow-x:auto;justify-content:flex-start}.aey-modal-card>footer button{flex:0 0 auto}
}


/* R46 · resumen compacto y control de versión */
.aey-budget-kpis{display:grid;grid-template-columns:repeat(6,minmax(96px,1fr));gap:5px;padding:5px 10px;border-bottom:1px solid #c9d9e5;background:#f6faff;flex:0 0 auto}
.aey-budget-kpis span{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:4px 8px;border:1px solid #d4e2ec;border-radius:7px;background:#fff}
.aey-budget-kpis small{font-size:9px;color:#60788b;white-space:nowrap}.aey-budget-kpis b{font-size:11px;color:#082f4f;white-space:nowrap}
.aey-icon-button.danger{color:#b42318;border-color:#f0b8b3;background:#fff8f7}.aey-icon-button.danger:hover{background:#feeceb}
@media(max-width:900px){.aey-budget-kpis{display:flex;overflow-x:auto;padding:4px 6px}.aey-budget-kpis span{flex:0 0 130px}}
/* R52 · navegación consistente de Entregas */
.aey-deliveries-commandbar{min-height:48px;flex:0 0 auto}
.aey-deliveries-commandbar .aey-sheet-process{display:flex;flex-direction:column;justify-content:center;min-width:180px;height:36px;padding:3px 9px;border:1px solid #bfd2df;border-radius:8px;background:#fff}
.aey-deliveries-commandbar .aey-sheet-process strong{font-size:10px;color:#133f5e}.aey-deliveries-commandbar .aey-sheet-process span{font-size:8px;color:#6d8292}
.aey-deliveries-commandbar>button{height:36px;border:1px solid #bfd2df;border-radius:8px;background:#fff;color:#0e5b91;font-weight:700}
.aey-deliveries-commandbar>button.aey-primary{background:#0e5b91;color:#fff;border-color:#0e5b91}

/* R73: iconos y control de versión/proceso */
.aey-sheet-commandbar .aey-icon-button svg{width:19px;height:19px;display:block;fill:none!important;stroke:currentColor!important;stroke-width:1.8;overflow:visible}
.aey-sheet-commandbar .aey-icon-button svg path,.aey-sheet-commandbar .aey-icon-button svg circle{fill:none!important;stroke:currentColor!important}
.aey-use-version-button{height:36px;padding:0 11px;border:1px solid #0e5b91;border-radius:8px;background:#eef7fd;color:#0e5b91;font:700 11px/1 Montserrat,Arial,sans-serif;white-space:nowrap;cursor:pointer}
.aey-use-version-button:hover{background:#dceefb}
.aey-exit-process{color:#b42318!important;border-color:#efc2bd!important;background:#fff8f7!important}
.aey-exit-process:hover{background:#feecea!important}

.aey-budget-delete-option{display:grid;gap:8px;padding:12px;border:1px solid #d7e2ea;border-radius:10px;background:#fbfdfe}
.aey-budget-delete-option>strong{color:#153f5d;font-size:12px}.aey-budget-delete-option>p{margin:0;color:#61798b;font-size:10px;line-height:1.45}
.aey-budget-delete-option>button{justify-self:start;min-height:36px;border:1px solid #b42318;border-radius:8px;background:#b42318;color:#fff;padding:0 13px;font-size:10px;font-weight:800;cursor:pointer}.aey-budget-delete-option>button:disabled{opacity:.45;cursor:not-allowed}

/* R83 · selector flotante, estado estable y salida de proceso determinista. */
.aey-process-options.aey-process-options-floating{
  position:fixed!important;
  inset:auto!important;
  z-index:2147483200!important;
  min-width:220px;
  overflow:auto;
  overscroll-behavior:contain;
  box-sizing:border-box;
}
.aey-process-options.aey-process-options-floating button.is-active,
.aey-process-options.aey-process-options-floating button[aria-selected="true"]{
  background:#e7f3fb;
  box-shadow:inset 3px 0 0 #0f659c;
}
.aey-process-options.aey-process-options-floating .aey-process-empty{
  min-height:42px;
  display:grid;
  place-items:center;
  white-space:normal;
}
.aey-sheet-commandbar .aey-sheet-save-state{
  flex:0 0 78px!important;
  width:78px;
  min-width:78px;
  max-width:78px;
  box-sizing:border-box;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.aey-sheet-commandbar .aey-sheet-save-state[data-state="saving"]{color:#0b5f91}
.aey-sheet-commandbar .aey-sheet-save-state[data-state="pending"]{color:#9a5b00}
.aey-sheet-commandbar .aey-sheet-save-state[data-state="saved"]{color:#237a44}
.aey-sheet-commandbar .aey-sheet-save-state[data-state="error"]{color:#b42318}
@media(max-width:900px){
  .aey-process-options.aey-process-options-floating{min-width:0!important}
}


/* R102 — Fase 3: tema claro del workspace CPQ de Presupuestos. Solo afecta #aey-offer-sheet-overlay. */
#aey-offer-sheet-overlay .aey-cpq-shell{display:flex;flex-direction:column;min-height:0;height:100%;background:#f5f7fa;color:#172b3a;overflow:hidden}
#aey-offer-sheet-overlay .aey-cpq-header-card{display:grid;grid-template-columns:150px 190px minmax(260px,1fr) 130px 70px 80px;gap:10px;padding:10px 14px;border-bottom:1px solid #dbe3ea;background:#ffffff}
#aey-offer-sheet-overlay .aey-cpq-header-card>div{min-width:0;display:grid;gap:4px}
#aey-offer-sheet-overlay .aey-cpq-header-card small{font-size:9px;color:#6f8191;text-transform:none}
#aey-offer-sheet-overlay .aey-cpq-header-card strong{font-size:11px;color:#102a3d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aey-offer-sheet-overlay .aey-cpq-status{display:inline-flex;width:max-content;padding:3px 7px;border-radius:999px;background:#e9f7ee;color:#24824f!important}
#aey-offer-sheet-overlay .aey-cpq-controls{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:9px 14px;border-bottom:1px solid #dbe3ea;background:#f8fafc}
#aey-offer-sheet-overlay .aey-cpq-add,.aey-cpq-view{display:flex;align-items:center;gap:7px}
#aey-offer-sheet-overlay .aey-cpq-controls button,.aey-cpq-controls select{height:34px;border:1px solid #cbd7e1;border-radius:7px;background:#ffffff;color:#17344a;padding:0 11px;font-size:10px;font-weight:700;cursor:pointer}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-primary{display:flex;align-items:center;gap:7px;background:#2f6fed;border-color:#2f6fed;color:#fff}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-primary svg{width:15px;height:15px}
#aey-offer-sheet-overlay .aey-cpq-controls button.danger{color:#b42318}
#aey-offer-sheet-overlay .aey-cpq-view>span{font-size:10px;color:#6f8191}
#aey-offer-sheet-overlay .aey-cpq-workarea{display:flex;flex:1 1 auto;min-height:0;overflow:hidden}
#aey-offer-sheet-overlay .aey-cpq-main{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;background:#ffffff}
#aey-offer-sheet-overlay .aey-cpq-quick-settings{display:flex;align-items:end;gap:8px;padding:8px 12px;border-bottom:1px solid #dde5ec;overflow-x:auto}
#aey-offer-sheet-overlay .aey-cpq-quick-settings label{display:grid;gap:3px;min-width:128px}
#aey-offer-sheet-overlay .aey-cpq-quick-settings label span{font-size:8px;color:#718394}
#aey-offer-sheet-overlay .aey-cpq-quick-settings input,.aey-cpq-quick-settings select{height:30px;border:1px solid #cbd7e1;border-radius:6px;background:#ffffff;color:#17344a;padding:0 8px;font-size:10px}
#aey-offer-sheet-overlay .aey-cpq-quick-settings button{height:30px;border:1px solid #c8d6e1;border-radius:6px;background:#eef4f8;color:#23445d;padding:0 10px;font-size:9px;font-weight:700}
#aey-offer-sheet-overlay .aey-cpq-table-wrap{flex:1 1 auto;min-height:0;overflow:auto;scrollbar-color:#aebdca #eef3f7}
#aey-offer-sheet-overlay .aey-cpq-table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:100%;width:max-content;background:#ffffff;font-size:10px}
#aey-offer-sheet-overlay .aey-cpq-table thead{position:sticky;top:0;z-index:4}
#aey-offer-sheet-overlay .aey-cpq-table th{height:38px;padding:0 9px;border-right:1px solid #d9e2ea;border-bottom:1px solid #cfdbe5;background:#eef3f7;color:#4e6476;text-align:left;font-size:8px;font-weight:700;white-space:normal}
#aey-offer-sheet-overlay .aey-cpq-table td{height:43px;padding:0 8px;border-right:1px solid #e0e7ed;border-bottom:1px solid #e0e7ed;background:#ffffff;color:#20384a;overflow:hidden;text-overflow:ellipsis}
#aey-offer-sheet-overlay .aey-cpq-table tr:nth-child(even) td{background:#f8fafc}
#aey-offer-sheet-overlay .aey-cpq-table tr.selected td{background:#e7f0ff!important;border-bottom-color:#8cb3ff}
#aey-offer-sheet-overlay .aey-cpq-table input{width:100%;height:30px;border:1px solid transparent;border-radius:5px;background:transparent;color:#20384a;padding:0 5px;font:inherit;outline:0;min-width:0}
#aey-offer-sheet-overlay .aey-cpq-table input:focus{border-color:#2f6fed;background:#ffffff;box-shadow:0 0 0 2px rgba(47,111,237,.14)}
#aey-offer-sheet-overlay .aey-cpq-table .computed-cell{color:#314c5f;background:#f1f5f8!important;font-variant-numeric:tabular-nums}
#aey-offer-sheet-overlay .aey-cpq-detail{position:relative;flex:0 0 305px;width:305px;min-width:305px;overflow:auto;border-left:1px solid #d5e0e8;background:#ffffff;color:#20384a}
#aey-offer-sheet-overlay .aey-cpq-detail.is-collapsed{flex-basis:32px;width:32px;min-width:32px;overflow:hidden}
#aey-offer-sheet-overlay .aey-cpq-panel-toggle{position:absolute;top:10px;left:5px;width:22px;height:32px;border:1px solid #c9d6e0;border-radius:6px;background:#f3f7fa;color:#34536b}
#aey-offer-sheet-overlay .aey-cpq-detail>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;gap:10px;padding:12px;border-bottom:1px solid #d9e3eb;background:#ffffff}
#aey-offer-sheet-overlay .aey-cpq-detail>header div{display:grid;gap:3px;min-width:0}
#aey-offer-sheet-overlay .aey-cpq-detail>header strong{font-size:12px;color:#102a3d}
#aey-offer-sheet-overlay .aey-cpq-detail>header small{font-size:9px;color:#718394;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#aey-offer-sheet-overlay .aey-cpq-detail>header button{border:0;background:transparent;color:#567083;font-size:18px;cursor:pointer}
#aey-offer-sheet-overlay .aey-cpq-detail details{border-bottom:1px solid #e0e7ed}
#aey-offer-sheet-overlay .aey-cpq-detail summary{padding:10px 12px;color:#263f52;font-size:10px;font-weight:800;cursor:pointer}
#aey-offer-sheet-overlay .aey-cpq-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 12px 12px}
#aey-offer-sheet-overlay .aey-cpq-fields label{display:grid;gap:3px;min-width:0}
#aey-offer-sheet-overlay .aey-cpq-fields label:first-child{grid-column:1/-1}
#aey-offer-sheet-overlay .aey-cpq-fields span{font-size:8px;color:#718394}
#aey-offer-sheet-overlay .aey-cpq-fields input{height:29px;width:100%;min-width:0;border:1px solid #cbd7e1;border-radius:5px;background:#ffffff;color:#20384a;padding:0 7px;font-size:9px}
#aey-offer-sheet-overlay .aey-cpq-cost-total{display:flex;justify-content:space-between;padding:10px 12px;border-top:1px solid #dce5ec;background:#f7fafc;font-size:10px}
#aey-offer-sheet-overlay .aey-cpq-price-card{display:grid;gap:7px;padding:10px 12px;margin:0 12px 12px;border:1px solid #d5e0e8;border-radius:7px;background:#f8fafc;font-size:9px}
#aey-offer-sheet-overlay .aey-cpq-price-card span{display:flex;justify-content:space-between}.aey-cpq-price-card .ok{color:#21834d}.aey-cpq-price-card .warn{color:#a96a00}.aey-cpq-price-card .bad{color:#c83b3b}
#aey-offer-sheet-overlay .aey-cpq-detail-empty{padding:24px 16px;color:#718394;font-size:10px;line-height:1.5;text-align:center}.aey-cpq-detail-empty.compact{padding:12px;text-align:left}
#aey-offer-sheet-overlay .aey-cpq-expenses{flex:0 0 auto;max-height:220px;overflow:auto;border-top:1px solid #d9e3eb;background:#f7fafc;color:#20384a}
#aey-offer-sheet-overlay .aey-cpq-expenses .aey-common-expenses{margin:0;border:0;background:transparent;color:inherit}
#aey-offer-sheet-overlay .aey-cpq-footer{display:grid;grid-template-columns:repeat(7,minmax(100px,1fr));flex:0 0 62px;min-height:62px;border-top:1px solid #d9e3eb;background:#ffffff}
#aey-offer-sheet-overlay .aey-cpq-footer>span{display:grid;align-content:center;gap:2px;padding:7px 14px;border-right:1px solid #e1e8ee}
#aey-offer-sheet-overlay .aey-cpq-footer small{font-size:8px;color:#718394}.aey-cpq-footer b{font-size:15px;color:#102a3d;font-variant-numeric:tabular-nums}.aey-cpq-footer em{font-size:8px;color:#718394;font-style:normal}
@media(max-width:1100px){#aey-offer-sheet-overlay .aey-cpq-header-card{grid-template-columns:130px 180px minmax(220px,1fr) 110px}.aey-cpq-header-card>div:nth-last-child(-n+2){display:none!important}#aey-offer-sheet-overlay .aey-cpq-detail{flex-basis:270px;width:270px;min-width:270px}#aey-offer-sheet-overlay .aey-cpq-footer{grid-template-columns:repeat(4,1fr);overflow:auto}}
@media(max-width:760px){#aey-offer-sheet-overlay .aey-cpq-header-card{display:flex;overflow-x:auto}.aey-cpq-header-card>div{min-width:150px!important}#aey-offer-sheet-overlay .aey-cpq-controls{align-items:flex-start;flex-direction:column}.aey-cpq-view{width:100%;overflow-x:auto}#aey-offer-sheet-overlay .aey-cpq-detail{display:none}#aey-offer-sheet-overlay .aey-cpq-footer{grid-template-columns:repeat(7,140px);overflow-x:auto}}

/* Phase 4: motor de costos del proceso y distribución */
.aey-common-expenses{background:#fff;border:1px solid #d8e2ee;border-radius:12px;overflow:hidden}.aey-common-expenses>summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;background:#f7f9fc;color:#18324f}.aey-common-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px;border-top:1px solid #e5ebf2;border-bottom:1px solid #e5ebf2}.aey-common-toolbar span{font-size:12px;color:#60758d}.aey-common-row{display:grid;grid-template-columns:82px minmax(150px,1.4fr) minmax(130px,.8fr) minmax(155px,.9fr) 82px;gap:8px;align-items:center;padding:10px 16px;border-bottom:1px solid #edf1f5}.aey-common-row input,.aey-common-row select{min-width:0;height:36px;border:1px solid #cfdae6;border-radius:8px;background:#fff;color:#17314f;padding:0 10px}.aey-expense-check{display:flex!important;align-items:center;gap:6px;font-size:12px;color:#425b75}.aey-expense-check input{width:16px!important;height:16px!important;padding:0}.aey-allocation-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dfe7f0;border-top:1px solid #dfe7f0}.aey-allocation-summary span{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;background:#f8fafc;color:#526a83;font-size:12px}.aey-allocation-summary b{color:#153a63}.aey-cpq-cost-breakdown{display:flex;flex-direction:column;gap:7px;margin:10px 0;padding:10px 12px;border:1px solid #dce5ef;border-radius:9px;background:#f8fafc}.aey-cpq-cost-breakdown span,.aey-cpq-cost-breakdown small{display:flex;justify-content:space-between;gap:10px;color:#526a83}.aey-cpq-cost-breakdown small{padding-left:8px;font-size:11px}.aey-cpq-cost-breakdown b{color:#173b63}.aey-cpq-table td.computed-cell{font-variant-numeric:tabular-nums}.aey-cpq-table tr.selected td.computed-cell{font-weight:700}@media(max-width:1100px){.aey-common-row{grid-template-columns:72px 1fr 110px 140px 72px}.aey-allocation-summary{grid-template-columns:1fr}}

/* Fase 5 · Proveedores múltiples por ítem */
.aey-supplier-quotes summary{display:flex;align-items:center;justify-content:space-between;gap:10px}
.aey-supplier-quotes summary b{min-width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:#eef2ff;color:#334155;font-size:12px}
.aey-supplier-quotes-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 12px}
.aey-supplier-quotes-toolbar span{font-size:12px;color:#64748b}
.aey-supplier-quotes-toolbar button{border:1px solid #cbd5e1;background:#fff;color:#0f172a;border-radius:8px;padding:7px 10px;font-weight:700;cursor:pointer}
.aey-supplier-quotes-list{display:grid;gap:10px}
.aey-supplier-quotes-empty{padding:16px;border:1px dashed #cbd5e1;border-radius:10px;color:#64748b;text-align:center;font-size:12px;background:#f8fafc}
.aey-supplier-quote-card{border:1px solid #dbe3ef;border-radius:12px;padding:12px;background:#fff;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.aey-supplier-quote-card.selected{border-color:#60a5fa;box-shadow:0 0 0 2px rgba(59,130,246,.1)}
.aey-supplier-quote-card>div:first-child{min-width:0;display:grid;gap:2px}
.aey-supplier-quote-card>div:first-child strong{font-size:13px;color:#0f172a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aey-supplier-quote-card>div:first-child span{font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aey-supplier-quote-card>b{font-size:14px;color:#0f172a;white-space:nowrap}
.aey-supplier-quote-card>b small{font-size:10px;color:#64748b;font-weight:700}
.aey-supplier-quote-meta{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}
.aey-supplier-quote-meta span{font-size:10px;color:#475569;background:#f1f5f9;border-radius:999px;padding:4px 7px}
.aey-supplier-quote-card footer{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:2px}
.aey-supplier-quote-card footer button{border:1px solid #cbd5e1;background:#fff;border-radius:7px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer}
.aey-supplier-quote-card footer button.aey-primary{background:#2563eb;color:#fff;border-color:#2563eb}
.aey-selected-supplier{font-size:10px;font-weight:800;color:#166534;background:#dcfce7;border-radius:999px;padding:5px 8px}
.aey-supplier-quote-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aey-supplier-quote-form label{display:grid;gap:6px;font-size:12px;color:#475569}
.aey-supplier-quote-form label.wide{grid-column:1/-1}
.aey-supplier-quote-form input,.aey-supplier-quote-form textarea{width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:9px 10px;background:#fff;color:#0f172a;box-sizing:border-box}
.aey-supplier-quote-modal .aey-modal-card{width:min(760px,calc(100vw - 32px))}
.aey-supplier-quote-modal footer .danger{margin-right:auto;color:#b91c1c;border-color:#fecaca;background:#fff1f2}
@media(max-width:760px){.aey-supplier-quote-form{grid-template-columns:1fr}.aey-supplier-quote-form label.wide{grid-column:auto}.aey-supplier-quotes-toolbar{align-items:flex-start;flex-direction:column}.aey-supplier-quote-card{grid-template-columns:1fr}.aey-supplier-quote-card>b{grid-column:1}.aey-supplier-quote-card footer{justify-content:flex-start}}

/* Fase 6 · historial y recuperación local */
.aey-history-modal .aey-modal-body{max-height:min(62vh,560px);overflow:auto;padding:8px 20px 18px}
.aey-history-list{display:grid;gap:0}
.aey-history-row{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:start;padding:13px 4px;border-bottom:1px solid #e8edf3}
.aey-history-row:last-child{border-bottom:0}
.aey-history-dot{width:9px;height:9px;border-radius:999px;background:#2563eb;margin-top:5px;box-shadow:0 0 0 4px #dbeafe}
.aey-history-row div{display:grid;gap:3px}
.aey-history-row strong{font-size:13px;color:#172033;text-transform:none}
.aey-history-row small{font-size:11px;color:#6b7280}
.aey-history-row em{font-size:11px;font-style:normal;font-weight:700;color:#475569;background:#f1f5f9;border-radius:999px;padding:3px 7px}
.aey-history-empty{padding:28px;text-align:center;color:#64748b}
.aey-sheet-save-state[data-state="pending"]{min-width:138px}


/* Fase 7 · versiones, comparación y aprobación */
.aey-workflow-button{height:34px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#334155;padding:0 11px;font-size:11px;font-weight:800;white-space:nowrap;cursor:pointer}
.aey-workflow-button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}
.aey-cpq-status[data-workflow-status="draft"]{color:#475569;background:#f1f5f9}
.aey-cpq-status[data-workflow-status="review"]{color:#1d4ed8;background:#dbeafe}
.aey-cpq-status[data-workflow-status="changes"]{color:#b45309;background:#fef3c7}
.aey-cpq-status[data-workflow-status="approved"]{color:#166534;background:#dcfce7}
.aey-cpq-status[data-workflow-status="sent"]{color:#6d28d9;background:#ede9fe}
.aey-version-locked{margin:10px 14px 0;padding:10px 12px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:10px;display:flex;align-items:center;gap:10px;color:#166534}
.aey-version-locked strong{font-size:12px}.aey-version-locked span{font-size:12px;flex:1}.aey-version-locked button{border:1px solid #86efac;background:#fff;color:#166534;border-radius:7px;padding:6px 9px;font-weight:800;cursor:pointer}
.aey-workflow-modal{display:grid!important;gap:14px}.aey-workflow-current{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.aey-workflow-current span{font-size:12px;color:#64748b}.aey-workflow-current b{font-size:13px}
.aey-workflow-modal label{display:grid;gap:6px;font-size:12px;color:#475569}.aey-workflow-modal textarea{border:1px solid #cbd5e1;border-radius:8px;padding:9px 10px;resize:vertical}
.aey-workflow-actions{display:flex;flex-wrap:wrap;gap:8px}.aey-workflow-actions button{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:8px 10px;font-weight:750;cursor:pointer}.aey-workflow-actions .aey-primary{background:#2563eb;color:#fff;border-color:#2563eb}
.aey-workflow-lock{margin:0;padding:9px 10px;border-radius:8px;background:#fef3c7;color:#92400e;font-size:12px;font-weight:700}
.aey-workflow-history{border-top:1px solid #e2e8f0;padding-top:12px}.aey-workflow-history h4{margin:0 0 8px;font-size:13px}.aey-workflow-history article{padding:9px 0;border-bottom:1px solid #edf2f7}.aey-workflow-history article div{display:flex;justify-content:space-between;gap:12px}.aey-workflow-history article strong{font-size:12px}.aey-workflow-history article span{font-size:10px;color:#64748b}.aey-workflow-history article p{margin:5px 0 0;font-size:11px;color:#475569}
.aey-version-compare{display:grid!important;gap:14px}.aey-compare-selects{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.aey-compare-selects label{display:grid;gap:5px;font-size:11px;color:#64748b}.aey-compare-selects select{border:1px solid #cbd5e1;border-radius:8px;padding:8px;background:#fff}.aey-compare-selects button{border:1px solid #2563eb;background:#2563eb;color:#fff;border-radius:8px;padding:8px 12px;font-weight:800}
.aey-compare-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.aey-compare-summary span{display:grid;gap:3px;padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;font-size:10px;color:#64748b}.aey-compare-summary b{font-size:11px;color:#0f172a}.aey-version-compare table{width:100%;border-collapse:collapse;font-size:11px}.aey-version-compare th,.aey-version-compare td{padding:8px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top}.aey-version-compare tr.added td:first-child{color:#166534;font-weight:800}.aey-version-compare tr.removed td:first-child{color:#b91c1c;font-weight:800}.aey-version-compare tr.changed td:first-child{color:#b45309;font-weight:800}.aey-muted{color:#64748b;font-size:12px}.aey-error-text{color:#b91c1c;font-weight:700}
.aey-compare-dialog .aey-modal-card,.aey-workflow-dialog .aey-modal-card{width:min(900px,calc(100vw - 32px))}
@media(max-width:760px){.aey-compare-selects{grid-template-columns:1fr}.aey-compare-summary{grid-template-columns:1fr 1fr}.aey-version-locked{align-items:flex-start;flex-wrap:wrap}}

/* Fase 8 · Importación Excel guiada */
.aey-import-modal .aey-modal-card{width:min(1180px,calc(100vw - 28px))}
.aey-import-mapping{display:grid;gap:10px;padding:12px;border:1px solid #d3e0e9;border-radius:10px;background:#fff}
.aey-import-mapping>header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.aey-import-mapping>header div{display:grid;gap:2px}.aey-import-mapping>header strong{color:#173a52}.aey-import-mapping>header span{font-size:9px;color:#6e8190}
.aey-import-mapping>div{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:8px}
.aey-import-mapping label{display:grid;gap:4px;font-size:9px;color:#5f7382;text-transform:none}
.aey-import-mapping label.is-required>span{font-weight:700;color:#244c68}
.aey-import-mapping select{min-height:34px;border:1px solid #cbd8e1;border-radius:7px;background:#fff;color:#18384f;padding:0 8px}
.aey-import-validation{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 12px;border-radius:9px;border:1px solid #b7dfc6;background:#effaf3;color:#21643b}
.aey-import-validation.has-errors{border-color:#efc0bd;background:#fff2f1;color:#8f2f28}.aey-import-validation span{font-size:9px}
.aey-import-table-wrap{max-height:430px}
.aey-import-table-wrap table{min-width:1180px}
.aey-import-table-wrap td{padding:4px}.aey-import-table-wrap td:first-child{text-align:center}
.aey-import-table-wrap input[type="text"],.aey-import-table-wrap input[type="number"]{width:100%;min-width:76px;min-height:30px;border:1px solid transparent;border-radius:5px;background:transparent;padding:4px 6px;font:inherit;color:#203f54}
.aey-import-table-wrap input:focus{outline:none;border-color:#4a91c3;background:#f7fcff;box-shadow:0 0 0 2px rgba(36,126,187,.1)}
.aey-import-table-wrap tr.has-errors{background:#fff8f7}.aey-import-table-wrap tr.is-excluded{opacity:.52;background:#f2f5f7}
.aey-import-row-status{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:3px 6px;font-size:8px;font-weight:700}
.aey-import-row-status.ok{background:#eaf7ef;color:#247044}.aey-import-row-status.warning{background:#fff3d9;color:#8a5a0b}.aey-import-row-status.error{background:#fde8e6;color:#9b332c}
@media(max-width:980px){.aey-import-mapping>div{grid-template-columns:repeat(2,minmax(145px,1fr))}}
@media(max-width:620px){.aey-import-mapping>div{grid-template-columns:1fr}.aey-import-validation{align-items:flex-start;flex-direction:column}}

/* Fase 9 · Centro documental */
.aey-document-modal .aey-modal-body{min-width:min(920px,92vw)}
.aey-doc-center{display:grid;gap:18px}
.aey-doc-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;border:1px solid #d8e0e8;border-radius:10px;background:#f8fafc}
.aey-doc-settings label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#344556}
.aey-doc-settings label.wide{grid-column:1/-1}
.aey-doc-settings input,.aey-doc-settings textarea{width:100%;border:1px solid #c7d1dc;border-radius:7px;background:#fff;color:#17212b;padding:9px 10px;font:inherit;resize:vertical}
.aey-doc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aey-doc-grid button{display:grid;gap:7px;text-align:left;border:1px solid #ccd6e0;border-radius:10px;background:#fff;color:#1f2e3b;padding:16px;cursor:pointer;min-height:94px;transition:border-color .15s,box-shadow .15s,transform .15s}
.aey-doc-grid button:hover{border-color:#2d6cdf;box-shadow:0 7px 20px rgba(34,62,91,.12);transform:translateY(-1px)}
.aey-doc-grid button b{font-size:14px}
.aey-doc-grid button span{font-size:12px;line-height:1.45;color:#667686}
.aey-doc-note{padding:11px 13px;border-radius:8px;background:#eef4fb;color:#43566a;font-size:12px;line-height:1.5}
@media(max-width:760px){.aey-doc-settings,.aey-doc-grid{grid-template-columns:1fr}.aey-doc-settings label.wide{grid-column:auto}}

/* Fase 10: validación y edición masiva */
.aey-cpq-controls .aey-selection-count{display:inline-flex;align-items:center;padding:0 10px;font-size:12px;color:#64748b;border-left:1px solid #e2e8f0;min-height:32px}
.aey-cpq-table .aey-select-col{width:42px;min-width:42px;max-width:42px;text-align:center;padding:0!important;position:sticky;left:0;z-index:4;background:#f8fafc}
.aey-cpq-table tbody tr.multi-selected td{background:#eff6ff}
.aey-cpq-table tbody tr.multi-selected .aey-select-col{background:#dbeafe}
.aey-cpq-table .aey-select-col input{width:16px;height:16px;accent-color:#2563eb}
.aey-validation-dialog{width:min(1050px,94vw)}
.aey-budget-validation{display:grid;gap:16px}
.aey-validation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.aey-validation-summary span{padding:14px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#475569}
.aey-validation-summary span b{display:block;font-size:20px;color:#0f172a}
.aey-validation-summary.bad span:first-child{border-color:#fecaca;background:#fef2f2}
.aey-validation-summary.ok{border-left:4px solid #16a34a;padding-left:10px}
.aey-budget-validation table{width:100%;border-collapse:collapse;font-size:13px}
.aey-budget-validation th,.aey-budget-validation td{border-bottom:1px solid #e2e8f0;padding:10px;text-align:left;vertical-align:top}
.aey-budget-validation tr.error td:first-child{color:#b91c1c;font-weight:700}
.aey-budget-validation tr.warning td:first-child{color:#a16207;font-weight:700}
.aey-bulk-dialog{width:min(820px,92vw)}
.aey-bulk-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.aey-bulk-editor label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;padding:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#334155;font-size:13px}
.aey-bulk-editor label>input:not([type=checkbox]),.aey-bulk-editor label>select{grid-column:1/-1;width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:9px;background:#fff;color:#0f172a}
@media(max-width:900px){.aey-validation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.aey-bulk-editor{grid-template-columns:1fr}.aey-cpq-controls .aey-selection-count{display:none}}

/* Fase 11 · compatibilidad y migración de presupuestos históricos */
.aey-compatibility-dialog{width:min(760px,calc(100vw - 32px))}
.aey-compatibility-modal{display:grid;gap:16px}
.aey-compat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.aey-compat-grid article{border:1px solid #dce3ea;border-radius:10px;background:#f8fafc;padding:12px;display:grid;gap:5px}
.aey-compat-grid small{color:#667788;font-size:11px;line-height:1.25}
.aey-compat-grid b{font-size:22px;color:#17212b}
.aey-compat-source{margin:0;padding:10px 12px;border-left:4px solid #ef7d00;background:#fff8ef;border-radius:6px;color:#394957}
.aey-compat-notes{display:grid;gap:7px;border:1px solid #dce3ea;border-radius:10px;padding:12px;background:#fff}
.aey-compat-notes b{color:#17212b}
.aey-compat-notes span{position:relative;padding-left:18px;color:#536474;font-size:12px}
.aey-compat-notes span:before{content:'✓';position:absolute;left:0;color:#198754;font-weight:800}
.aey-compat-complete{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #b8dfc7;background:#effaf3;border-radius:9px;padding:10px 12px;color:#176b3a}
.aey-compat-complete span{font-size:12px}
@media(max-width:820px){.aey-compat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.aey-compat-complete{align-items:flex-start;flex-direction:column}}

/* AEY Presupuestos — acabado visual profesional */
#aey-offer-sheet-overlay .aey-budget-commandbar{
  min-height:58px;flex-basis:58px;padding:8px 12px;gap:8px;overflow:visible;
  background:#fff;border-bottom:1px solid #e3eaf0;box-shadow:0 1px 0 rgba(15,45,70,.02);
}
#aey-offer-sheet-overlay .aey-command-context{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#aey-offer-sheet-overlay .aey-sheet-module{font-size:12px;color:#0b3150;letter-spacing:-.01em}
#aey-offer-sheet-overlay .aey-workspace-compact{padding-left:8px;border-left:1px solid #e5ebf0}
#aey-offer-sheet-overlay .aey-workspace-compact button{height:36px;border-color:#dbe5ec;border-radius:9px;background:#fff;color:#31536b;padding:0 10px}
#aey-offer-sheet-overlay .aey-workspace-compact button:hover{background:#f4f8fb}
#aey-offer-sheet-overlay .aey-process-combobox{flex:1 1 340px;min-width:220px;max-width:620px}
#aey-offer-sheet-overlay .aey-process-combobox>input{height:38px;border:1px solid #cfdae3;border-radius:10px;background:#fbfdff;padding:0 12px;font-size:10px;color:#183b55}
#aey-offer-sheet-overlay .aey-process-combobox>input:focus{border-color:#4d86c6;box-shadow:0 0 0 3px rgba(47,111,237,.10);outline:0;background:#fff}
#aey-offer-sheet-overlay .aey-version-compact select{height:38px;min-width:90px;border:1px solid #cfdae3;border-radius:10px;background:#fff;color:#173c59;font-weight:800;padding:0 28px 0 10px}
#aey-offer-sheet-overlay .aey-command-primary,#aey-offer-sheet-overlay .aey-command-outcomes{display:flex;align-items:center;gap:5px;flex:0 0 auto}
#aey-offer-sheet-overlay .aey-command-primary{padding-left:8px;border-left:1px solid #e5ebf0}
#aey-offer-sheet-overlay .aey-command-button{height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d7e1e9;border-radius:9px;background:#fff;color:#24465e;padding:0 10px;font-size:9px;font-weight:800;white-space:nowrap;cursor:pointer}
#aey-offer-sheet-overlay .aey-command-button svg{width:15px;height:15px}
#aey-offer-sheet-overlay .aey-command-button:hover{background:#f5f8fb;border-color:#aac0d0}
#aey-offer-sheet-overlay .aey-command-save{color:#0c5f9b;border-color:#b9d4e8;background:#f5fbff}
#aey-offer-sheet-overlay .aey-command-generate{background:#1769d2;border-color:#1769d2;color:#fff;box-shadow:0 4px 10px rgba(23,105,210,.17)}
#aey-offer-sheet-overlay .aey-command-generate:hover{background:#105cbb;border-color:#105cbb}
#aey-offer-sheet-overlay .aey-command-approval{background:#effaf3;border-color:#b9dfc7;color:#1b7040}
#aey-offer-sheet-overlay .aey-command-more{position:relative;flex:0 0 auto}
#aey-offer-sheet-overlay .aey-command-more>summary{list-style:none;height:38px;display:flex;align-items:center;gap:5px;border:1px solid #d7e1e9;border-radius:9px;background:#fff;color:#31516a;padding:0 9px;font-size:9px;font-weight:800;cursor:pointer}
#aey-offer-sheet-overlay .aey-command-more>summary::-webkit-details-marker{display:none}
#aey-offer-sheet-overlay .aey-command-more>summary svg{width:16px;height:16px}
#aey-offer-sheet-overlay .aey-command-menu{position:absolute;top:44px;right:0;z-index:50;width:215px;padding:6px;border:1px solid #dce5ec;border-radius:12px;background:#fff;box-shadow:0 14px 38px rgba(18,44,65,.18)}
#aey-offer-sheet-overlay .aey-command-menu button{width:100%;height:34px;display:flex;align-items:center;gap:9px;border:0;border-radius:7px;background:transparent;color:#29485f;padding:0 9px;font-size:10px;text-align:left;cursor:pointer}
#aey-offer-sheet-overlay .aey-command-menu button:hover{background:#f2f6f9}
#aey-offer-sheet-overlay .aey-command-menu button svg{width:15px;height:15px}
#aey-offer-sheet-overlay .aey-command-menu button.danger{color:#b42318}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-sheet-save-state{min-width:72px;height:38px;display:flex;align-items:center;justify-content:center;padding:0 6px;font-size:8px;font-weight:800}

#aey-offer-sheet-overlay .aey-budget-kpis{grid-template-columns:repeat(6,minmax(112px,1fr));gap:0;padding:0 12px;background:#fff;border-bottom:1px solid #e1e9ef}
#aey-offer-sheet-overlay .aey-budget-kpis span{min-height:52px;border:0;border-right:1px solid #edf1f4;border-radius:0;background:transparent;display:grid;align-content:center;justify-content:start;gap:2px;padding:6px 14px}
#aey-offer-sheet-overlay .aey-budget-kpis small{font-size:8px;color:#718494;text-transform:uppercase;letter-spacing:.035em}
#aey-offer-sheet-overlay .aey-budget-kpis b{font-size:13px;color:#123c5b;letter-spacing:-.015em}

#aey-offer-sheet-overlay .aey-cpq-shell{background:#f3f6f8}
#aey-offer-sheet-overlay .aey-cpq-header-card{grid-template-columns:145px 200px minmax(280px,1fr) 130px 70px 70px;gap:16px;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e9ee}
#aey-offer-sheet-overlay .aey-cpq-header-card small{font-size:8px;color:#8594a0;text-transform:uppercase;letter-spacing:.04em}
#aey-offer-sheet-overlay .aey-cpq-header-card strong{font-size:11px;color:#15374f}
#aey-offer-sheet-overlay .aey-cpq-status{padding:4px 9px;font-size:9px;font-weight:900}
#aey-offer-sheet-overlay .aey-cpq-controls{min-height:52px;padding:8px 14px;background:#fff;border-bottom:1px solid #e2e9ee}
#aey-offer-sheet-overlay .aey-cpq-add{gap:7px;min-width:0}
#aey-offer-sheet-overlay .aey-cpq-controls button,#aey-offer-sheet-overlay .aey-cpq-controls select{height:36px;border-radius:9px;border-color:#d5e0e8;background:#fff;color:#27475e;font-size:10px}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-primary{background:#1769d2;border-color:#1769d2;box-shadow:0 4px 10px rgba(23,105,210,.16)}
#aey-offer-sheet-overlay .aey-table-action-menu{position:relative}
#aey-offer-sheet-overlay .aey-table-action-menu>summary{list-style:none;height:36px;display:flex;align-items:center;gap:6px;border:1px solid #d5e0e8;border-radius:9px;background:#fff;color:#27475e;padding:0 11px;font-size:10px;font-weight:800;cursor:pointer}
#aey-offer-sheet-overlay .aey-table-action-menu>summary::-webkit-details-marker{display:none}
#aey-offer-sheet-overlay .aey-table-action-menu>summary svg{width:12px;height:12px;transform:rotate(90deg)}
#aey-offer-sheet-overlay .aey-table-action-menu>div{position:absolute;top:41px;left:0;z-index:30;width:180px;padding:5px;border:1px solid #dce5ec;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(20,47,68,.16)}
#aey-offer-sheet-overlay .aey-table-action-menu>div button{width:100%;border:0;text-align:left;justify-content:flex-start;background:transparent}
#aey-offer-sheet-overlay .aey-table-action-menu>div button:hover{background:#f2f6f9}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-selection-count{border-left:0;color:#81909c;font-size:9px;padding-left:4px}
#aey-offer-sheet-overlay .aey-cpq-view{margin-left:auto}
#aey-offer-sheet-overlay .aey-cpq-view>span{text-transform:uppercase;letter-spacing:.04em;font-size:8px}
#aey-offer-sheet-overlay .aey-cost-process-button{background:#f4f8fb!important;color:#17496b!important}

#aey-offer-sheet-overlay .aey-cpq-main{background:#fff}
#aey-offer-sheet-overlay .aey-cpq-quick-settings{min-height:48px;padding:7px 12px;background:#fbfcfd;border-bottom:1px solid #e4ebf0}
#aey-offer-sheet-overlay .aey-cpq-quick-settings input,#aey-offer-sheet-overlay .aey-cpq-quick-settings select{height:32px;border-radius:8px}
#aey-offer-sheet-overlay .aey-cpq-table{font-size:10px}
#aey-offer-sheet-overlay .aey-cpq-table th{height:40px;background:#f3f6f8;color:#587084;border-color:#dfe7ed;font-size:8px;text-transform:uppercase;letter-spacing:.025em}
#aey-offer-sheet-overlay .aey-cpq-table td{height:46px;border-color:#e7edf1;color:#253f51}
#aey-offer-sheet-overlay .aey-cpq-table tr:nth-child(even) td{background:#fbfcfd}
#aey-offer-sheet-overlay .aey-cpq-table tr:hover td{background:#f4f8fb}
#aey-offer-sheet-overlay .aey-cpq-table tr.selected td{background:#edf4ff!important;border-bottom-color:#b7cff3;box-shadow:inset 0 1px 0 #d9e7fa,inset 0 -1px 0 #d9e7fa}
#aey-offer-sheet-overlay .aey-cpq-table tr.selected td:first-child{box-shadow:inset 3px 0 0 #2f6fed,inset 0 1px 0 #d9e7fa,inset 0 -1px 0 #d9e7fa}
#aey-offer-sheet-overlay .aey-cpq-table .computed-cell{background:#f6f9fb!important;color:#27465b;font-weight:700}

#aey-offer-sheet-overlay .aey-cpq-detail{flex-basis:330px;width:330px;min-width:330px;background:#f8fafb;border-left:1px solid #dfe7ed}
#aey-offer-sheet-overlay .aey-cpq-detail>header{padding:14px 14px;background:#fff;border-bottom:1px solid #dfe7ed}
#aey-offer-sheet-overlay .aey-cpq-detail>header strong{font-size:13px}
#aey-offer-sheet-overlay .aey-cpq-detail details{margin:10px 10px 0;border:1px solid #e0e7ec;border-radius:11px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(13,44,66,.025)}
#aey-offer-sheet-overlay .aey-cpq-detail summary{padding:11px 12px;background:#fbfcfd;font-size:10px}
#aey-offer-sheet-overlay .aey-cpq-fields{padding:10px 12px 13px}
#aey-offer-sheet-overlay .aey-cpq-fields input{height:32px;border-radius:8px;background:#fff}
#aey-offer-sheet-overlay .aey-supplier-quotes-toolbar{padding:10px 12px}
#aey-offer-sheet-overlay .aey-supplier-quotes-list{padding:0 10px 10px}
#aey-offer-sheet-overlay .aey-cpq-price-card{margin:10px;border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(13,44,66,.03)}
#aey-offer-sheet-overlay .aey-cpq-cost-total{margin:0 10px 10px;border:1px solid #dfe7ed;border-radius:9px;background:#fff}

#aey-offer-sheet-overlay .aey-cpq-footer{min-height:66px;flex-basis:66px;background:#fff;border-top:1px solid #dde6ec;box-shadow:0 -6px 18px rgba(26,55,75,.035)}
#aey-offer-sheet-overlay .aey-cpq-footer>span{border-right:1px solid #edf1f4;padding:8px 16px}
#aey-offer-sheet-overlay .aey-cpq-footer small{font-size:8px;text-transform:uppercase;letter-spacing:.035em}
#aey-offer-sheet-overlay .aey-cpq-footer b{font-size:16px;letter-spacing:-.02em}

@media(max-width:1350px){
  #aey-offer-sheet-overlay .aey-command-primary .aey-command-button b{display:none}
  #aey-offer-sheet-overlay .aey-command-primary .aey-command-button{width:38px;padding:0}
  #aey-offer-sheet-overlay .aey-process-combobox{min-width:180px}
}
@media(max-width:1100px){
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-button b{display:none}
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-button{width:38px;padding:0}
  #aey-offer-sheet-overlay .aey-cpq-detail{flex-basis:290px;width:290px;min-width:290px}
}


/* AEY CPQ · factor de venta */
.aey-factor-box{display:grid;grid-template-columns:1.35fr .8fr 1.25fr;gap:10px;margin-bottom:10px;padding:12px;border:1px solid #dce5ee;border-radius:12px;background:#f8fafc}
.aey-factor-box label{display:flex;flex-direction:column;gap:5px;min-width:0}
.aey-factor-box label>span{font-size:11px;font-weight:700;color:#536475}
.aey-factor-box input,.aey-factor-box select{width:100%;height:36px;border:1px solid #ccd8e3;border-radius:8px;background:#fff;color:#17212b;padding:0 10px;font:inherit}
.aey-factor-box input:focus,.aey-factor-box select:focus{outline:2px solid rgba(24,119,242,.16);border-color:#1877f2}
.aey-factor-calculation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.aey-factor-calculation span{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid #e0e7ee;border-radius:10px;background:#fff;color:#647586;font-size:11px}
.aey-factor-calculation b{font-size:13px;color:#17212b}
.aey-factor-actions{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:8px}
.aey-factor-actions button{border:1px solid #1877f2;background:#1877f2;color:#fff;border-radius:8px;padding:8px 11px;font-weight:700;cursor:pointer}
.aey-factor-actions button:disabled{opacity:.45;cursor:not-allowed}
.aey-factor-actions small{color:#738292;line-height:1.35;text-align:right}
@media(max-width:1180px){.aey-factor-box,.aey-factor-calculation{grid-template-columns:1fr}.aey-factor-actions{align-items:flex-start;flex-direction:column}.aey-factor-actions small{text-align:left}}

/* AEY Presupuestos · compactación final y diseño adaptable */
#aey-offer-sheet-overlay .aey-budget-commandbar{
  min-height:54px;
  padding:7px 12px;
  gap:8px;
  flex-wrap:nowrap;
  overflow:visible;
}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-context,
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary,
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-outcomes{
  flex:0 0 auto;
}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox{
  min-width:260px;
  flex:1 1 420px;
}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-sheet-save-state{
  flex:0 0 68px;
}

/* Una sola banda operativa: acciones, parámetros y vistas */
#aey-offer-sheet-overlay .aey-cpq-controls{
  display:grid;
  grid-template-columns:auto minmax(500px,1fr) auto;
  align-items:end;
  gap:10px;
  min-height:58px;
  padding:7px 12px;
  background:#fff;
  border-bottom:1px solid #e2e9ee;
}
#aey-offer-sheet-overlay .aey-cpq-add,
#aey-offer-sheet-overlay .aey-cpq-view,
#aey-offer-sheet-overlay .aey-cpq-quick-settings{
  min-width:0;
  display:flex;
  align-items:flex-end;
  gap:7px;
}
#aey-offer-sheet-overlay .aey-cpq-add{align-self:center}
#aey-offer-sheet-overlay .aey-cpq-view{justify-content:flex-end;align-self:center}
#aey-offer-sheet-overlay .aey-cpq-quick-settings{
  padding:0;
  background:transparent;
  border:0;
  overflow:visible;
}
#aey-offer-sheet-overlay .aey-cpq-quick-settings label{
  display:flex;
  flex:1 1 105px;
  min-width:76px;
  max-width:150px;
  flex-direction:column;
  gap:3px;
  color:#718494;
  font-size:8px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.025em;
}
#aey-offer-sheet-overlay .aey-cpq-quick-settings label.aey-default-model{
  flex:1.45 1 160px;
  max-width:210px;
}
#aey-offer-sheet-overlay .aey-cpq-quick-settings input,
#aey-offer-sheet-overlay .aey-cpq-quick-settings select{
  width:100%;
  min-width:0;
  height:34px;
  border:1px solid #d5e0e8;
  border-radius:8px;
  background:#fff;
  color:#27475e;
  padding:0 9px;
  font-size:10px;
  font-weight:700;
  text-transform:none;
  letter-spacing:normal;
}
#aey-offer-sheet-overlay .aey-cpq-quick-settings>button{
  flex:0 0 auto;
  height:34px;
  white-space:nowrap;
}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-selection-count{
  display:none;
}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-selection-count.has-selection{
  display:inline-flex;
  align-items:center;
  height:26px;
  padding:0 8px;
  border-radius:999px;
  background:#edf4ff;
  color:#245ea8;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}

/* Más área útil para la tabla */
#aey-offer-sheet-overlay .aey-cpq-workarea{
  min-height:0;
  flex:1 1 auto;
}
#aey-offer-sheet-overlay .aey-cpq-main{
  min-width:0;
  min-height:0;
}
#aey-offer-sheet-overlay .aey-cpq-table-wrap{
  min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
}
#aey-offer-sheet-overlay .aey-cpq-footer{
  overflow-x:auto;
  scrollbar-width:thin;
}
#aey-offer-sheet-overlay .aey-cpq-footer>span{
  min-width:150px;
  flex:1 0 150px;
}

/* Portátiles: máximo dos bandas, sin comprimir controles */
@media(max-width:1450px){
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox{min-width:190px;flex-basis:260px}
  #aey-offer-sheet-overlay .aey-command-primary .aey-command-button b,
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-button b{display:none}
  #aey-offer-sheet-overlay .aey-command-primary .aey-command-button,
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-button{width:38px;padding:0}
  #aey-offer-sheet-overlay .aey-cpq-controls{
    grid-template-columns:auto minmax(420px,1fr) auto;
  }
  #aey-offer-sheet-overlay .aey-cpq-quick-settings label{max-width:125px}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings label.aey-default-model{max-width:175px}
}
@media(max-width:1180px){
  #aey-offer-sheet-overlay .aey-budget-commandbar{
    display:grid;
    grid-template-columns:auto minmax(180px,1fr) auto auto auto;
    grid-template-areas:
      "context process version more state"
      "primary primary outcomes outcomes outcomes";
    align-items:center;
    min-height:96px;
    gap:6px 8px;
  }
  #aey-offer-sheet-overlay .aey-command-context{grid-area:context}
  #aey-offer-sheet-overlay .aey-process-combobox{grid-area:process;min-width:0!important;width:100%}
  #aey-offer-sheet-overlay .aey-version-compact{grid-area:version}
  #aey-offer-sheet-overlay .aey-command-primary{grid-area:primary}
  #aey-offer-sheet-overlay .aey-command-outcomes{grid-area:outcomes;justify-self:end}
  #aey-offer-sheet-overlay .aey-command-more{grid-area:more}
  #aey-offer-sheet-overlay .aey-sheet-save-state{grid-area:state}
  #aey-offer-sheet-overlay .aey-cpq-controls{
    grid-template-columns:1fr auto;
    grid-template-areas:
      "actions view"
      "settings settings";
    align-items:center;
    min-height:104px;
  }
  #aey-offer-sheet-overlay .aey-cpq-add{grid-area:actions}
  #aey-offer-sheet-overlay .aey-cpq-view{grid-area:view}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings{grid-area:settings;width:100%}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings label{max-width:none}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings label.aey-default-model{max-width:none}
  #aey-offer-sheet-overlay .aey-cpq-detail{flex-basis:300px;width:300px;min-width:300px}
}

/* Celular: dos líneas principales y panel de detalle superpuesto */
@media(max-width:760px){
  #aey-offer-sheet-overlay .aey-sheet-book{margin:0!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:
      "process version state"
      "primary outcomes more";
    min-height:102px;
    padding:6px 8px;
    border-bottom:1px solid #dce5ec;
  }
  #aey-offer-sheet-overlay .aey-command-context{display:none}
  #aey-offer-sheet-overlay .aey-process-combobox{grid-area:process}
  #aey-offer-sheet-overlay .aey-process-combobox input{height:36px;font-size:10px;padding:0 9px}
  #aey-offer-sheet-overlay .aey-version-compact{grid-area:version}
  #aey-offer-sheet-overlay .aey-version-compact select{height:36px;max-width:92px}
  #aey-offer-sheet-overlay .aey-command-primary{grid-area:primary;display:flex;gap:5px;overflow-x:auto;justify-self:stretch}
  #aey-offer-sheet-overlay .aey-command-outcomes{grid-area:outcomes;display:flex;gap:5px;justify-self:end}
  #aey-offer-sheet-overlay .aey-command-more{grid-area:more}
  #aey-offer-sheet-overlay .aey-sheet-save-state{grid-area:state;min-width:52px!important;font-size:7px!important}
  #aey-offer-sheet-overlay .aey-command-primary .aey-command-button,
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-button{width:36px;height:36px;flex:0 0 36px}
  #aey-offer-sheet-overlay .aey-command-more>summary{width:36px;height:36px;padding:0;justify-content:center}
  #aey-offer-sheet-overlay .aey-command-more>summary span{display:none}
  #aey-offer-sheet-overlay .aey-command-menu{position:fixed;top:104px;right:8px;width:min(270px,calc(100vw - 16px))}

  #aey-offer-sheet-overlay .aey-cpq-controls{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "actions view"
      "settings settings";
    min-height:108px;
    padding:7px 8px;
    gap:7px;
  }
  #aey-offer-sheet-overlay .aey-cpq-add,
  #aey-offer-sheet-overlay .aey-cpq-view,
  #aey-offer-sheet-overlay .aey-cpq-quick-settings{
    overflow-x:auto;
    overflow-y:visible;
    scrollbar-width:none;
    padding-bottom:1px;
  }
  #aey-offer-sheet-overlay .aey-cpq-add::-webkit-scrollbar,
  #aey-offer-sheet-overlay .aey-cpq-view::-webkit-scrollbar,
  #aey-offer-sheet-overlay .aey-cpq-quick-settings::-webkit-scrollbar{display:none}
  #aey-offer-sheet-overlay .aey-cpq-add{grid-area:actions}
  #aey-offer-sheet-overlay .aey-cpq-view{grid-area:view;justify-content:flex-end}
  #aey-offer-sheet-overlay .aey-cpq-view>span{display:none}
  #aey-offer-sheet-overlay .aey-cpq-controls button,
  #aey-offer-sheet-overlay .aey-table-action-menu>summary,
  #aey-offer-sheet-overlay .aey-cpq-view select{height:34px;white-space:nowrap}
  #aey-offer-sheet-overlay .aey-cpq-add .aey-primary span{display:none}
  #aey-offer-sheet-overlay .aey-cpq-add .aey-primary{width:36px;flex:0 0 36px;padding:0;justify-content:center}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings{grid-area:settings;align-items:flex-end}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings label{flex:0 0 112px;min-width:112px;max-width:112px}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings label.aey-default-model{flex-basis:165px;min-width:165px;max-width:165px}
  #aey-offer-sheet-overlay .aey-cpq-quick-settings>button{flex:0 0 auto}
  #aey-offer-sheet-overlay .aey-selection-count{display:none!important}

  #aey-offer-sheet-overlay .aey-cpq-workarea{position:relative;display:block}
  #aey-offer-sheet-overlay .aey-cpq-main{width:100%;height:100%}
  #aey-offer-sheet-overlay .aey-cpq-detail{
    position:fixed;
    z-index:80;
    top:0;
    right:0;
    bottom:0;
    width:min(92vw,390px)!important;
    min-width:0!important;
    max-width:390px;
    box-shadow:-14px 0 36px rgba(20,47,68,.22);
  }
  #aey-offer-sheet-overlay .aey-cpq-detail.is-collapsed{
    position:absolute;
    top:8px;
    right:8px;
    bottom:auto;
    width:38px!important;
    height:38px;
    min-width:38px!important;
    box-shadow:none;
    background:transparent;
    border:0;
  }
  #aey-offer-sheet-overlay .aey-cpq-table-wrap{width:100%;max-height:none}
  #aey-offer-sheet-overlay .aey-cpq-table td{height:42px}
  #aey-offer-sheet-overlay .aey-cpq-footer{min-height:58px;flex-basis:58px}
  #aey-offer-sheet-overlay .aey-cpq-footer>span{min-width:128px;flex-basis:128px;padding:7px 11px}
  #aey-offer-sheet-overlay .aey-cpq-footer b{font-size:13px}
}

/* AEY Presupuesto R111 · detalle dinámico y selector de origen */
#aey-offer-sheet-overlay .aey-cpq-view small{
  color:#8493a0;
  font-size:8px;
  white-space:nowrap;
}
#aey-offer-sheet-overlay .aey-cpq-table th{
  position:relative;
  padding-right:14px;
  user-select:none;
}
#aey-offer-sheet-overlay .aey-cpq-table tbody tr td{
  height:var(--aey-row-height,43px);
  min-height:var(--aey-row-height,43px);
}
#aey-offer-sheet-overlay .aey-cpq-table tbody tr td input,
#aey-offer-sheet-overlay .aey-cpq-table tbody tr td select[data-cell]{
  height:max(30px,calc(var(--aey-row-height,43px) - 12px));
}
#aey-offer-sheet-overlay .aey-cpq-table select[data-cell]{
  width:100%;
  border:1px solid transparent;
  border-radius:5px;
  background:transparent;
  color:#20384a;
  padding:0 22px 0 5px;
  font:inherit;
  outline:0;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-cpq-table select[data-cell]:focus{
  border-color:#2f6fed;
  background:#fff;
  box-shadow:0 0 0 2px rgba(47,111,237,.14);
}
#aey-offer-sheet-overlay .aey-cpq-table .aey-select-col{
  position:relative;
  width:58px;
  min-width:58px;
  max-width:58px;
  overflow:visible;
}
#aey-offer-sheet-overlay .aey-column-resize{
  position:absolute;
  top:0;
  right:-5px;
  z-index:8;
  width:10px;
  height:100%;
  cursor:col-resize;
  touch-action:none;
}
#aey-offer-sheet-overlay .aey-column-resize::after{
  content:"";
  position:absolute;
  top:4px;
  bottom:4px;
  left:4px;
  width:1px;
  background:transparent;
}
#aey-offer-sheet-overlay .aey-column-resize:hover::after{background:#2f6fed}
#aey-offer-sheet-overlay .aey-row-resize{
  position:absolute;
  left:0;
  right:0;
  bottom:-5px;
  z-index:7;
  height:10px;
  cursor:row-resize;
  touch-action:none;
}
#aey-offer-sheet-overlay .aey-row-resize::after{
  content:"";
  position:absolute;
  right:4px;
  bottom:4px;
  left:4px;
  height:1px;
  background:transparent;
}
#aey-offer-sheet-overlay .aey-row-resize:hover::after{background:#2f6fed}
html.aey-grid-resizing,html.aey-grid-resizing *{user-select:none!important}
html.aey-grid-resizing-column,html.aey-grid-resizing-column *{cursor:col-resize!important}
html.aey-grid-resizing-row,html.aey-grid-resizing-row *{cursor:row-resize!important}
#aey-offer-sheet-overlay .aey-row-controls{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:100%;
  min-height:var(--aey-row-height,43px);
}
#aey-offer-sheet-overlay .aey-item-details-toggle{
  position:relative;
  display:inline-grid;
  place-items:center;
  flex:0 0 24px;
  width:24px;
  height:24px;
  padding:0;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  color:#587084;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
#aey-offer-sheet-overlay .aey-item-details-toggle:hover,
#aey-offer-sheet-overlay .aey-item-details-toggle:focus-visible,
#aey-offer-sheet-overlay .aey-item-details-toggle[aria-expanded="true"]{
  border-color:#bfd2ea;
  background:#edf4ff;
  color:#245fae;
  outline:0;
}
#aey-offer-sheet-overlay .aey-item-details-toggle svg{
  width:14px;
  height:14px;
  transition:transform .16s ease;
}
#aey-offer-sheet-overlay .aey-item-details-toggle[aria-expanded="true"] svg{transform:rotate(90deg)}
#aey-offer-sheet-overlay .aey-item-details-toggle em{
  position:absolute;
  top:-5px;
  right:-6px;
  display:grid;
  place-items:center;
  min-width:14px;
  height:14px;
  padding:0 3px;
  border:2px solid #fff;
  border-radius:999px;
  background:#1f6fba;
  color:#fff;
  font-size:7px;
  font-style:normal;
  font-weight:900;
  line-height:1;
}
#aey-offer-sheet-overlay .aey-cpq-table tr.has-extra-open td{border-bottom-color:#b8cce3}
#aey-offer-sheet-overlay .aey-cpq-table tr.aey-item-extra-row td{
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  border-bottom:1px solid #cbd9e7;
  background:#eef4fa!important;
  overflow:visible!important;
}
#aey-offer-sheet-overlay .aey-item-extra-card{
  position:sticky;
  left:58px;
  width:min(1080px,calc(100vw - 430px));
  min-width:700px;
  margin:7px 10px 10px;
  border:1px solid #c9d8e6;
  border-radius:12px;
  background:#fff;
  box-shadow:0 7px 22px rgba(30,63,91,.10);
  overflow:hidden;
}
#aey-offer-sheet-overlay .aey-item-extra-card>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:43px;
  padding:8px 12px;
  border-bottom:1px solid #e1e8ef;
  background:linear-gradient(180deg,#fbfcfd,#f6f9fb);
}
#aey-offer-sheet-overlay .aey-item-extra-heading{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
#aey-offer-sheet-overlay .aey-item-extra-heading-icon{
  display:grid;
  place-items:center;
  flex:0 0 28px;
  width:28px;
  height:28px;
  border-radius:8px;
  background:#e9f2fb;
  color:#1f619c;
}
#aey-offer-sheet-overlay .aey-item-extra-heading-icon svg{width:15px;height:15px}
#aey-offer-sheet-overlay .aey-item-extra-heading>div{display:grid;gap:1px;min-width:0}
#aey-offer-sheet-overlay .aey-item-extra-heading strong{color:#18384f;font-size:11px}
#aey-offer-sheet-overlay .aey-item-extra-heading small{
  color:#718696;
  font-size:8px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#aey-offer-sheet-overlay .aey-item-extra-card>header>button{
  flex:0 0 28px;
  width:28px;
  height:28px;
  padding:0;
  border:1px solid transparent;
  border-radius:8px;
  background:transparent;
  color:#657b8c;
  font-size:18px;
  line-height:1;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-item-extra-card>header>button:hover{
  border-color:#d5e0e9;
  background:#edf2f6;
  color:#24475f;
}
#aey-offer-sheet-overlay .aey-item-extra-fields{
  display:grid;
  grid-template-columns:minmax(280px,.85fr) minmax(460px,1.45fr);
  gap:14px;
  padding:12px;
}
#aey-offer-sheet-overlay .aey-item-extra-fields label{display:grid;gap:5px;min-width:0}
#aey-offer-sheet-overlay .aey-item-extra-fields label>span,
#aey-offer-sheet-overlay .aey-item-links>header>div>span{
  color:#526b7e;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.035em;
}
#aey-offer-sheet-overlay .aey-item-extra-fields textarea,
#aey-offer-sheet-overlay .aey-item-extra-fields input{
  width:100%;
  min-width:0;
  border:1px solid #cbd8e4;
  border-radius:8px;
  background:#fff;
  color:#20384a;
  font:inherit;
  outline:0;
}
#aey-offer-sheet-overlay .aey-item-extra-fields textarea{
  min-height:86px;
  padding:9px 10px;
  resize:vertical;
  line-height:1.45;
}
#aey-offer-sheet-overlay .aey-item-extra-fields input{height:32px;padding:0 9px}
#aey-offer-sheet-overlay .aey-item-extra-fields textarea:focus,
#aey-offer-sheet-overlay .aey-item-extra-fields input:focus{
  border-color:#2f6fed;
  box-shadow:0 0 0 2px rgba(47,111,237,.12);
}
#aey-offer-sheet-overlay .aey-item-extra-fields textarea:disabled,
#aey-offer-sheet-overlay .aey-item-extra-fields input:disabled{
  background:#f2f5f7;
  color:#6d7f8d;
}
#aey-offer-sheet-overlay .aey-item-links{display:grid;align-content:start;gap:7px;min-width:0}
#aey-offer-sheet-overlay .aey-item-links>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-height:23px;
}
#aey-offer-sheet-overlay .aey-item-links>header>div{display:flex;align-items:center;gap:6px}
#aey-offer-sheet-overlay .aey-item-links>header b{
  display:grid;
  place-items:center;
  min-width:19px;
  height:19px;
  padding:0 5px;
  border-radius:999px;
  background:#e9f2fb;
  color:#1b609a;
  font-size:8px;
}
#aey-offer-sheet-overlay .aey-item-links>header button{
  display:inline-flex;
  align-items:center;
  gap:5px;
  height:28px;
  padding:0 9px;
  border:1px solid #bed3e5;
  border-radius:7px;
  background:#f7fbff;
  color:#185e94;
  font-size:9px;
  font-weight:800;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-item-links>header button:hover{background:#eaf4fc;border-color:#8db9d9}
#aey-offer-sheet-overlay .aey-item-links>header button svg{width:13px;height:13px}
#aey-offer-sheet-overlay .aey-item-link-list{display:grid;gap:6px;max-height:196px;overflow:auto;padding-right:2px}
#aey-offer-sheet-overlay .aey-item-link-row{
  display:grid;
  grid-template-columns:27px minmax(130px,.62fr) minmax(205px,1.25fr) auto;
  align-items:center;
  gap:6px;
  padding:5px;
  border:1px solid #e1e8ef;
  border-radius:9px;
  background:#f9fbfc;
}
#aey-offer-sheet-overlay .aey-item-link-row:focus-within{border-color:#b9cfe4;background:#fff}
#aey-offer-sheet-overlay .aey-item-link-icon{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border-radius:7px;
  background:#e9f2fb;
  color:#2b6da5;
}
#aey-offer-sheet-overlay .aey-item-link-icon svg{width:13px;height:13px}
#aey-offer-sheet-overlay .aey-item-link-row input{height:30px!important;background:#fff}
#aey-offer-sheet-overlay .aey-item-link-actions{display:flex;align-items:center;gap:3px}
#aey-offer-sheet-overlay .aey-item-link-actions a,
#aey-offer-sheet-overlay .aey-item-link-actions button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  height:29px;
  min-width:29px;
  padding:0 7px;
  border:1px solid #cedbe6;
  border-radius:7px;
  background:#fff;
  color:#345d7d;
  font-size:8px;
  font-weight:800;
  text-decoration:none;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-item-link-actions a:hover,
#aey-offer-sheet-overlay .aey-item-link-actions button:hover{border-color:#9dbbd2;background:#eef6fc;color:#174f78}
#aey-offer-sheet-overlay .aey-item-link-actions a.is-disabled,
#aey-offer-sheet-overlay .aey-item-link-actions button:disabled{opacity:.38;pointer-events:none;cursor:default}
#aey-offer-sheet-overlay .aey-item-link-actions button.danger{color:#a43d38}
#aey-offer-sheet-overlay .aey-item-link-actions button.danger:hover{border-color:#e2b4b1;background:#fff3f2;color:#8f2924}
#aey-offer-sheet-overlay .aey-item-link-actions svg{width:13px;height:13px}
@media(max-width:1180px){
  #aey-offer-sheet-overlay .aey-item-extra-card{width:min(930px,calc(100vw - 355px))}
  #aey-offer-sheet-overlay .aey-item-extra-fields{grid-template-columns:minmax(250px,.75fr) minmax(420px,1.25fr)}
  #aey-offer-sheet-overlay .aey-item-link-row{grid-template-columns:26px minmax(110px,.55fr) minmax(180px,1fr) auto}
  #aey-offer-sheet-overlay .aey-item-link-actions a span{display:none}
}
@media(max-width:760px){
  #aey-offer-sheet-overlay .aey-cpq-view small{display:none}
  #aey-offer-sheet-overlay .aey-column-resize{width:14px;right:-7px}
  #aey-offer-sheet-overlay .aey-row-resize{height:14px;bottom:-7px}
  #aey-offer-sheet-overlay .aey-item-extra-card{left:0;width:calc(100vw - 24px);min-width:0;margin:7px 6px 9px}
  #aey-offer-sheet-overlay .aey-item-extra-fields{grid-template-columns:1fr;gap:10px;padding:10px}
  #aey-offer-sheet-overlay .aey-item-extra-fields textarea{min-height:72px}
  #aey-offer-sheet-overlay .aey-item-link-list{max-height:none}
  #aey-offer-sheet-overlay .aey-item-link-row{grid-template-columns:26px minmax(0,1fr) auto}
  #aey-offer-sheet-overlay .aey-item-link-row input[data-item-link-name]{grid-column:2/3}
  #aey-offer-sheet-overlay .aey-item-link-row input[data-item-link-url]{grid-column:2/3}
  #aey-offer-sheet-overlay .aey-item-link-icon{grid-row:1/3}
  #aey-offer-sheet-overlay .aey-item-link-actions{grid-column:3/4;grid-row:1/3;align-self:stretch;flex-direction:column;justify-content:center}
  #aey-offer-sheet-overlay .aey-item-link-actions a span{display:none}
}

/* AEY Presupuesto R114 · selector de origen estable fuera del contenedor de la tabla */
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker{
  width:100%;
  height:max(30px,calc(var(--aey-row-height,43px) - 12px));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#6f7f8d;
  padding:0 7px;
  font:inherit;
  text-align:left;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker.has-value{
  color:#173b55;
  font-weight:700;
}
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker:hover{
  border-color:#cbd8e4;
  background:#f8fbfd;
}
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker:focus,
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker[aria-expanded="true"]{
  outline:0;
  border-color:#2f6fed;
  background:#fff;
  box-shadow:0 0 0 2px rgba(47,111,237,.14);
}
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker svg{
  width:13px;
  height:13px;
  flex:0 0 auto;
  transition:transform .16s ease;
}
#aey-offer-sheet-overlay .aey-cpq-table .aey-origin-picker[aria-expanded="true"] svg{
  transform:rotate(180deg);
}
.aey-origin-options-floating{
  position:fixed;
  z-index:2147483645;
  display:grid;
  gap:4px;
  overflow:auto;
  padding:6px;
  border:1px solid #c8d6e3;
  border-radius:11px;
  background:#fff;
  box-shadow:0 18px 45px rgba(15,45,70,.22),0 2px 7px rgba(15,45,70,.12);
}
.aey-origin-options-floating[hidden]{display:none!important}
.aey-origin-options-floating button{
  width:100%;
  min-height:43px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 18px;
  align-items:center;
  gap:9px;
  border:0;
  border-radius:8px;
  background:#fff;
  color:#173b55;
  padding:7px 9px;
  text-align:left;
  cursor:pointer;
}
.aey-origin-options-floating button:hover,
.aey-origin-options-floating button:focus{
  outline:0;
  background:#eef5ff;
}
.aey-origin-options-floating button.is-active{
  background:#e8f1ff;
  color:#174f9e;
}
.aey-origin-options-floating button>span{
  min-width:0;
  display:grid;
  gap:1px;
}
.aey-origin-options-floating button b{
  font-size:11px;
  line-height:1.2;
}
.aey-origin-options-floating button small{
  overflow:hidden;
  color:#718397;
  font-size:9px;
  font-weight:500;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.aey-origin-options-floating button em{
  color:#566d82;
  font-size:9px;
  font-style:normal;
  font-weight:700;
  white-space:nowrap;
}
.aey-origin-options-floating button>svg{
  width:15px;
  height:15px;
  color:#2563eb;
}
@media(max-width:760px){
  .aey-origin-options-floating{max-width:calc(100vw - 16px)}
}

/* R116 · Tasas globales y multa propia por proceso */
#aey-offer-sheet-overlay .aey-rates-button{
  white-space:nowrap;
  background:#fff!important;
  border-color:#c9d7e2!important;
  color:#214861!important;
}
#aey-offer-sheet-overlay .aey-rates-button:hover,
#aey-offer-sheet-overlay .aey-rates-button[aria-expanded="true"]{
  border-color:#7da9c9!important;
  background:#edf6fc!important;
  color:#0d5d92!important;
}
.aey-rate-panel-floating{
  position:fixed;
  z-index:12040;
  overflow:auto;
  overscroll-behavior:contain;
  border:1px solid #cfdbe5;
  border-radius:14px;
  background:#fff;
  color:#17344a;
  box-shadow:0 20px 55px rgba(20,47,68,.24),0 3px 10px rgba(20,47,68,.1);
  font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
}
.aey-rate-panel-floating[hidden]{display:none!important}
.aey-rate-panel-card>header{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:14px 15px 12px;
  border-bottom:1px solid #e2e9ef;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(8px);
}
.aey-rate-panel-card>header>div{display:grid;gap:3px}
.aey-rate-panel-card>header strong{font-size:14px;color:#17344a}
.aey-rate-panel-card>header span{font-size:10px;color:#6c7f8e;line-height:1.35}
.aey-rate-panel-card>header button{
  width:28px;height:28px;border:0;border-radius:8px;background:#f1f5f8;color:#4d6577;font-size:20px;line-height:1;cursor:pointer
}
.aey-rate-panel-card>header button:hover{background:#e7eef3;color:#17344a}
.aey-rate-budget-card,.aey-rate-active-card{
  margin:12px 12px 0;
  padding:12px;
  border:1px solid #dbe5ec;
  border-radius:11px;
  background:#fbfcfd;
}
.aey-rate-active-card{background:#f6fbff;border-color:#c9e1f0}
.aey-rate-process-card{
  margin:12px 12px 0;
  padding:12px;
  border:1px solid #ead8b9;
  border-radius:11px;
  background:#fffaf1;
}
.aey-rate-process-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}
.aey-rate-process-grid label{display:grid;gap:4px}
.aey-rate-process-grid label>span{font-size:9px;font-weight:700;color:#6f6655}
.aey-rate-process-grid input{
  width:100%;height:32px;border:1px solid #d9c8a9;border-radius:8px;background:#fff;color:#17344a;padding:0 9px;font-size:10px;outline:none;font-variant-numeric:tabular-nums
}
.aey-rate-process-grid input:focus{border-color:#c4964c;box-shadow:0 0 0 3px rgba(196,150,76,.14)}
.aey-rate-process-card>button{
  width:100%;min-height:34px;margin-top:10px;border:1px solid #c99b51;border-radius:9px;background:#fff;color:#79551d;padding:0 12px;font-size:10px;font-weight:800;cursor:pointer
}
.aey-rate-process-card>button:hover{background:#fff3dc}
.aey-rate-process-card>button:disabled{cursor:not-allowed;opacity:.48}
.aey-rate-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.aey-rate-card-heading span{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#718493}
.aey-rate-card-heading b{font-size:10px;color:#264a62;text-align:right}
.aey-rate-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px}
.aey-rate-grid>div{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:25px;border-bottom:1px dashed #dce5eb}
.aey-rate-grid span{font-size:10px;color:#536b7c}
.aey-rate-grid b{font-size:11px;color:#17344a;font-variant-numeric:tabular-nums}
.aey-rate-state{margin-top:10px;padding:7px 9px;border-radius:8px;font-size:9px;font-weight:700}
.aey-rate-state.is-current{background:#eaf7ef;color:#27724a}
.aey-rate-state.has-update{background:#fff3df;color:#8a5812}
.aey-rate-panel-actions{display:flex;gap:8px;padding:12px}
.aey-rate-panel-actions button,.aey-rate-editor-actions button{
  min-height:34px;border:1px solid #ccd9e3;border-radius:9px;background:#fff;color:#27485f;padding:0 12px;font-size:10px;font-weight:800;cursor:pointer
}
.aey-rate-panel-actions button{flex:1}
.aey-rate-panel-actions button.primary,.aey-rate-editor-actions button.primary{background:#0e669d;border-color:#0e669d;color:#fff}
.aey-rate-panel-actions button:disabled{cursor:not-allowed;opacity:.48}
.aey-rate-editor{
  display:grid;
  gap:10px;
  margin:0 12px 12px;
  padding:12px;
  border:1px solid #cddde8;
  border-radius:11px;
  background:#f8fbfd;
}
.aey-rate-editor-title{display:grid;gap:3px}
.aey-rate-editor-title strong{font-size:12px;color:#17344a}
.aey-rate-editor-title span{font-size:9px;line-height:1.35;color:#6f8290}
.aey-rate-editor label{display:grid;gap:4px}
.aey-rate-editor label>span{font-size:9px;font-weight:700;color:#607687}
.aey-rate-editor input{height:32px;width:100%;border:1px solid #cad8e2;border-radius:8px;background:#fff;color:#17344a;padding:0 9px;font-size:10px;outline:none}
.aey-rate-editor input:focus{border-color:#4b95c5;box-shadow:0 0 0 3px rgba(39,132,190,.12)}
.aey-rate-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.aey-rate-editor-actions{display:flex;justify-content:flex-end;gap:8px}
.aey-rate-history{margin:0 12px 13px;border-top:1px solid #e1e8ed;padding-top:8px}
.aey-rate-history summary{cursor:pointer;font-size:10px;font-weight:800;color:#476176;list-style:none;padding:5px 1px}
.aey-rate-history summary::-webkit-details-marker{display:none}
.aey-rate-history>div{display:grid;gap:4px;margin-top:5px}
.aey-rate-history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 8px;border-radius:8px;background:#f6f8fa}
.aey-rate-history-row>span{display:flex;align-items:center;gap:8px;min-width:0}
.aey-rate-history-row b{font-size:10px;color:#24465f}
.aey-rate-history-row small{font-size:9px;color:#718392;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aey-rate-history-row em{font-size:8px;font-style:normal;font-weight:800;color:#26724a}
.aey-rate-history-row.is-active{background:#eaf7ef}
@media(max-width:640px){
  .aey-rate-panel-floating{max-width:calc(100vw - 12px);border-radius:12px}
  .aey-rate-grid,.aey-rate-editor-grid,.aey-rate-process-grid{grid-template-columns:1fr}
  .aey-rate-panel-actions{flex-direction:column}
}

/* Entregas: modal integrado en el archivo principal y controles compactos. */
#aey-offer-sheet-overlay .aey-deliveries .aey-sheet-empty button,
#aey-offer-sheet-overlay .aey-deliveries-commandbar button{
  display:inline-flex;align-items:center;justify-content:center;gap:7px
}
#aey-offer-sheet-overlay .aey-deliveries .aey-sheet-empty button svg,
#aey-offer-sheet-overlay .aey-deliveries-commandbar button svg,
#aey-offer-sheet-overlay .aey-delivery-card-actions button svg{
  width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round
}
#aey-offer-sheet-overlay .aey-deliveries .aey-sheet-empty button{min-height:38px;padding:0 15px;border-radius:9px}
.aey-delivery-edit-modal{position:fixed!important;inset:0!important;z-index:26000!important;padding:12px!important}
.aey-delivery-edit-modal .aey-modal-card{width:min(760px,calc(100vw - 24px));max-height:calc(100dvh - 24px)}
.aey-delivery-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px}
.aey-delivery-form .span-2{grid-column:1/-1}
.aey-delivery-form textarea{box-sizing:border-box;width:100%;min-height:88px;resize:vertical;border:1px solid #c7d6e1;border-radius:8px;background:#fff;color:#18384f;padding:9px;font:inherit;outline:0}
.aey-delivery-form textarea:focus{border-color:#1772a8;box-shadow:0 0 0 3px rgba(23,114,168,.12)}
.aey-delivery-add-pending{display:flex!important;grid-template-columns:18px 1fr!important;align-items:center;gap:8px;padding:9px 10px;border:1px solid #d8e5ed;border-radius:9px;background:#f7fafc}
.aey-delivery-add-pending input{width:16px!important;height:16px!important;min-height:16px!important;margin:0;padding:0}
.aey-delivery-add-pending span{font-size:10px;color:#476277}

/* CBM y flete: una sola ventana de trabajo, compacta, redimensionable y responsive. */
#aey-offer-sheet-overlay .aey-cbm-open-button{
  min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #b9d3e3;border-radius:8px;background:#f4faff;color:#14577f;padding:0 11px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap
}
#aey-offer-sheet-overlay .aey-cbm-open-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#aey-offer-sheet-overlay .aey-cbm-open-button:hover{background:#e8f5fc;border-color:#88b8d5}
#aey-agent-field{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:end}
#aey-offer-sheet-overlay .aey-agent-field>span{grid-column:1/-1}
#aey-offer-sheet-overlay .aey-agent-field>button{height:34px;border:1px solid #b8d2e2;border-radius:8px;background:#f4faff;color:#14577f;padding:0 10px;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}
#aey-offer-sheet-overlay .aey-agent-field>button:hover{background:#e7f5fc}

.aey-cbm-logistics-modal{position:absolute!important;inset:0!important;z-index:26000!important;width:100%!important;height:100%!important;max-width:100%!important;box-sizing:border-box!important;padding:8px!important;place-items:stretch!important;overflow:hidden!important}
.aey-cbm-logistics-modal .aey-modal-card{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;min-width:0!important;box-sizing:border-box!important;border-radius:13px}
.aey-cbm-logistics-modal .aey-modal-card>header{flex:0 0 auto;padding:11px 14px}
.aey-cbm-logistics-modal .aey-modal-card>header strong{font-size:13px}
.aey-cbm-logistics-modal .aey-modal-card>header span{font-size:9px}
.aey-cbm-logistics-modal .aey-modal-card>footer{flex:0 0 auto;align-items:center;justify-content:space-between;padding:9px 13px}
.aey-cbm-logistics-modal .aey-modal-card>footer>span{font-size:9px;color:#657b8c}
.aey-cbm-modal-body{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:8px;padding:8px 10px;background:#f4f7f9;overflow:hidden}
.aey-cbm-method-section,.aey-cbm-item-section{min-width:0;border:1px solid #d5e1e8;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(18,63,94,.04)}
.aey-cbm-method-section>header{display:flex;align-items:center;justify-content:space-between;padding:7px 10px;border-bottom:1px solid #e1e9ee;background:#fafcfd}
.aey-cbm-method-section>header>div,.aey-cbm-item-toolbar>div{display:grid;gap:1px;min-width:0}
.aey-cbm-method-section strong,.aey-cbm-item-toolbar strong{font-size:10px;color:#173f59}
.aey-cbm-method-section span,.aey-cbm-item-toolbar span{font-size:8px;color:#6a7e8d}
.aey-cbm-method-wrap,.aey-cbm-item-wrap{overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.aey-cbm-method-wrap{max-height:205px}
.aey-cbm-method-table,.aey-cbm-item-table{border-collapse:separate;border-spacing:0;font-size:9px;color:#28475d;font-variant-numeric:tabular-nums;table-layout:fixed}
.aey-cbm-method-table{width:666px;min-width:666px}
.aey-cbm-item-table{width:max-content;min-width:0}
.aey-cbm-method-table th,.aey-cbm-method-table td,.aey-cbm-item-table th,.aey-cbm-item-table td{box-sizing:border-box;border-right:1px solid #e2e9ee;border-bottom:1px solid #e2e9ee;padding:4px 5px;vertical-align:middle;background:#fff;overflow:hidden}
.aey-cbm-method-table th:last-child,.aey-cbm-method-table td:last-child,.aey-cbm-item-table th:last-child,.aey-cbm-item-table td:last-child{border-right:0}
.aey-cbm-method-table thead th,.aey-cbm-item-table thead th{position:sticky;top:0;z-index:4;background:#edf3f7;color:#345268;font-size:8px;font-weight:900;letter-spacing:.01em;text-transform:uppercase;white-space:nowrap;text-overflow:ellipsis}
.aey-cbm-item-table thead th{position:sticky;padding-right:13px}
.aey-cbm-method-table tbody th{background:#f8fbfd;color:#173f59;font-size:9px;text-align:left;white-space:nowrap}
.aey-cbm-method-table input,.aey-cbm-method-table select,.aey-cbm-item-table input,.aey-cbm-item-table select,.aey-cbm-item-toolbar select{box-sizing:border-box;height:28px;min-height:28px;border:1px solid #cbd9e2;border-radius:6px;background:#fff;color:#173f59;padding:0 6px;font-size:9px;outline:none}
.aey-cbm-method-table input:focus,.aey-cbm-method-table select:focus,.aey-cbm-item-table input:focus,.aey-cbm-item-table select:focus,.aey-cbm-item-toolbar select:focus{border-color:#3f8fbe;box-shadow:0 0 0 2px rgba(31,126,181,.12)}
.aey-cbm-method-table input,.aey-cbm-method-table select{width:100%}
.aey-cbm-method-table td:nth-child(3){display:table-cell}
.aey-cbm-base-editor{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px}
.aey-cbm-method-table td:nth-child(3) small{display:block;margin-top:2px;font-size:7.5px;color:#6d8190;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aey-cbm-method-table td:nth-child(3) small b{color:#264f69}
.aey-cbm-method-table td:nth-child(3) button{height:28px;border:1px solid #b9d3e3;border-radius:6px;background:#f4faff;color:#14577f;padding:0 7px;font-size:8px;font-weight:800;cursor:pointer;white-space:nowrap}
.aey-cbm-method-table output{font-size:9px;font-weight:900;color:#0f6598;white-space:nowrap}
.aey-cbm-item-section{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}
.aey-cbm-item-toolbar{display:flex;align-items:center;gap:7px;min-height:42px;padding:6px 8px;border-bottom:1px solid #dfe8ed;background:#fafcfd;overflow-x:auto}
.aey-cbm-item-toolbar>div{margin-right:auto;min-width:195px}
.aey-cbm-item-toolbar>label{display:flex;align-items:center;gap:5px;font-size:8.5px;font-weight:700;color:#496579;white-space:nowrap}
.aey-cbm-item-toolbar input[type="checkbox"],.aey-cbm-item-table input[type="checkbox"]{appearance:auto!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;accent-color:#176fa3}
.aey-cbm-item-toolbar>[data-cbm-selected-count]{min-width:84px;text-align:center;padding:4px 7px;border-radius:999px;background:#edf3f7;color:#557084;white-space:nowrap}
.aey-cbm-item-toolbar select{width:140px;min-width:140px}
.aey-cbm-item-toolbar button{height:28px;border:1px solid #176fa3;border-radius:6px;background:#176fa3;color:#fff;padding:0 9px;font-size:8.5px;font-weight:800;cursor:pointer;white-space:nowrap}
.aey-cbm-item-wrap{min-height:0;height:100%}
.aey-cbm-item-table tbody tr td{height:var(--aey-cbm-row-height,42px);min-height:var(--aey-cbm-row-height,42px)}
.aey-cbm-item-table tbody tr:hover td{background:#f8fbfd}
.aey-cbm-item-table td:nth-child(2),.aey-cbm-item-table td:nth-child(5),.aey-cbm-item-table td:nth-child(6){text-align:center;white-space:nowrap}
.aey-cbm-item-table .aey-cbm-select{position:relative;text-align:center;overflow:visible}
.aey-cbm-description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.aey-cbm-item-table input:not([type="checkbox"]),.aey-cbm-item-table select{width:100%;height:max(28px,calc(var(--aey-cbm-row-height,42px) - 10px));text-align:right}
.aey-cbm-item-table select{text-align:left;padding-right:20px}
.aey-cbm-item-table .computed-cell{background:#f6f9fb;color:#36566b;text-align:right;white-space:nowrap;text-overflow:ellipsis}
.aey-cbm-item-table .aey-cbm-agent-result{background:#eef8fd;color:#0e669d;font-weight:900}
.aey-cbm-item-table .aey-column-resize{right:-5px}
.aey-cbm-item-table .aey-row-resize{left:0;right:0}
.aey-cbm-empty{padding:28px!important;text-align:center!important;color:#718492!important;background:#fafcfd!important}
.aey-cbm-summary{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:9px;padding:7px 10px;border:1px solid #c8deeb;border-radius:9px;background:#eef8fd;color:#36556b}
.aey-cbm-summary span{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.aey-cbm-summary b{font-size:14px;color:#0d6496}
.aey-cbm-summary small{font-size:8px;color:#647d8e;text-align:right}

@media(max-width:900px){
  .aey-delivery-edit-modal{padding:6px!important}.aey-delivery-edit-modal .aey-modal-card{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  .aey-delivery-form{grid-template-columns:1fr}.aey-delivery-form .span-2{grid-column:auto}
  .aey-cbm-logistics-modal{width:100%!important;height:100%!important;padding:3px!important}
  .aey-cbm-logistics-modal .aey-modal-card{width:100%!important;max-width:100%!important;height:100%!important;max-height:100%!important;border-radius:8px}
  .aey-cbm-logistics-modal .aey-modal-card>header{padding:8px 10px}.aey-cbm-logistics-modal .aey-modal-card>header span{display:none}
  .aey-cbm-modal-body{padding:5px;gap:5px;grid-template-rows:auto minmax(0,1fr) auto}
  .aey-cbm-method-wrap{max-height:190px}
  .aey-cbm-item-toolbar{flex-wrap:wrap;overflow:visible}
  .aey-cbm-item-toolbar>div{flex:1 0 100%;min-width:0;margin-right:0}
  .aey-cbm-item-toolbar>[data-cbm-selected-count]{margin-left:auto}
  .aey-cbm-summary{grid-template-columns:auto auto}.aey-cbm-summary small{grid-column:1/-1;text-align:left}
  .aey-cbm-logistics-modal .aey-modal-card>footer>span{display:none}
  #aey-offer-sheet-overlay .aey-cbm-open-button span{display:none}
  #aey-offer-sheet-overlay .aey-cbm-open-button{width:36px;flex:0 0 36px;padding:0}
}
@media(max-width:560px){
  .aey-cbm-method-section>header{padding:6px 8px}.aey-cbm-method-section>header span{display:none}
  .aey-cbm-method-table{width:640px;min-width:640px}
  .aey-cbm-item-toolbar select{width:128px;min-width:128px}
  .aey-cbm-item-toolbar button{padding:0 7px}
}

/* Presupuesto móvil integrado en el componente principal. */
#aey-offer-sheet-overlay .aey-command-mobile-cbm,
#aey-offer-sheet-overlay .aey-command-mobile-add,
#aey-offer-sheet-overlay .aey-mobile-menu-only,
#aey-offer-sheet-overlay .aey-mobile-budget-settings,
#aey-offer-sheet-overlay .aey-mobile-workspace-tabs,
#aey-offer-sheet-overlay .aey-mobile-sheet-header{
  display:none!important;
}

@media(max-width:760px){
  html.aey-common-expenses-open,html.aey-common-expenses-open body{overflow:hidden!important}
  body[data-aey-offer-budget="1"] #aey-ops-content-root{
    top:var(--aey-native-header-height,56px)!important;
    right:0!important;
    bottom:72px!important;
    left:0!important;
    width:100vw!important;
    max-width:none!important;
    height:auto!important;
  }
  #aey-offer-sheet-overlay{
    width:100vw!important;
    max-width:none!important;
    height:100%!important;
    min-height:0;
    overflow:hidden;
    background:#f3f6f8;
  }
  #aey-offer-sheet-overlay .aey-sheet-book{
    width:100%!important;
    min-width:0!important;
    min-height:0!important;
    overflow:hidden!important;
  }

  /* Navegación, proceso y una sola línea de acciones operativas. */
  #aey-offer-sheet-overlay .aey-budget-commandbar{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 72px;
    grid-template-areas:
      "tabs tabs"
      "process version"
      "primary more";
    align-items:center;
    gap:6px 8px;
    flex:0 0 auto;
    min-height:0;
    padding:6px 8px 7px;
    overflow:visible;
    border-bottom:1px solid #d8e3ea;
    background:#fff;
  }
  #aey-offer-sheet-overlay .aey-mobile-workspace-tabs{
    grid-area:tabs;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:3px;
    min-width:0;
    padding:3px;
    border:1px solid #dbe5ec;
    border-radius:10px;
    background:#f2f6f9;
  }
  #aey-offer-sheet-overlay .aey-mobile-workspace-tabs button{
    min-width:0;
    height:30px;
    border:0;
    border-radius:7px;
    background:transparent;
    color:#5d7282;
    font:800 9px Montserrat,Arial,sans-serif;
  }
  #aey-offer-sheet-overlay .aey-mobile-workspace-tabs button.is-active{
    background:#0f6198;
    color:#fff;
    box-shadow:0 2px 6px rgba(15,97,152,.2);
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-context,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-outcomes,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-sheet-save-state{
    display:none!important;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox{
    grid-area:process;
    width:100%;
    min-width:0!important;
    max-width:none;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox input{
    width:100%;
    height:34px;
    min-width:0;
    padding:0 9px;
    border-radius:9px;
    font-size:9px;
    text-overflow:ellipsis;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-version-compact{grid-area:version;width:72px}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-version-compact select{
    width:72px;
    min-width:72px;
    max-width:72px;
    height:34px;
    border-radius:9px;
    padding:0 5px;
    font-size:9px;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary{
    grid-area:primary;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    align-items:center;
    gap:6px;
    min-width:0;
    overflow:visible;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary>button:not(.aey-command-save):not(.aey-command-mobile-add):not(.aey-command-mobile-cbm){display:none!important}
  #aey-offer-sheet-overlay .aey-command-mobile-add,
  #aey-offer-sheet-overlay .aey-command-mobile-cbm{display:inline-flex!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-save,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-add,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-cbm{
    width:100%!important;
    min-width:0;
    height:36px;
    justify-content:center;
    gap:5px;
    padding:0 6px!important;
    border-radius:9px;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-save b,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-add b,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-cbm b{
    display:inline!important;
    overflow:hidden;
    font-size:8.5px;
    text-overflow:ellipsis;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-add{border-color:#9fc8df;background:#0f6198;color:#fff}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-cbm{border-color:#b7d5e7;background:#eff8fd;color:#145d88}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-more{grid-area:more;justify-self:stretch;width:72px}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-more>summary{
    width:72px;
    min-width:72px;
    height:36px;
    justify-content:center;
    gap:5px;
    padding:0 7px;
    border-radius:9px;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-more>summary span{display:inline;font-size:8.5px}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-menu,
  #aey-offer-sheet-overlay .aey-table-action-menu>div{
    position:fixed!important;
    z-index:26010!important;
    top:auto!important;
    right:8px!important;
    bottom:calc(72px + env(safe-area-inset-bottom,0px) + 8px)!important;
    left:8px!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(66dvh,520px)!important;
    overflow:auto!important;
    padding:8px!important;
    border:1px solid #d0dee8!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:0 18px 54px rgba(8,33,52,.28)!important;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-menu button,
  #aey-offer-sheet-overlay .aey-table-action-menu>div button{
    min-height:42px!important;
    justify-content:flex-start!important;
    border-radius:9px!important;
    font-size:10px!important;
  }
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-mobile-menu-only{display:flex!important}

  /* La configuración deja de ocupar varias filas y queda plegable. */
  #aey-offer-sheet-overlay .aey-cpq-controls{
    display:block;
    flex:0 0 auto;
    min-height:0;
    padding:6px 8px;
    overflow:visible;
    background:#f8fafb;
  }
  #aey-offer-sheet-overlay .aey-cpq-add,
  #aey-offer-sheet-overlay .aey-desktop-quick-settings,
  #aey-offer-sheet-overlay .aey-cpq-view{display:none!important}
  #aey-offer-sheet-overlay .aey-mobile-budget-settings{
    display:block!important;
    width:100%;
    border:1px solid #d8e3ea;
    border-radius:10px;
    background:#fff;
    overflow:hidden;
  }
  #aey-offer-sheet-overlay .aey-mobile-budget-settings>summary{
    list-style:none;
    min-height:34px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:0 10px;
    color:#31516a;
    font-size:9px;
    font-weight:800;
    cursor:pointer;
  }
  #aey-offer-sheet-overlay .aey-mobile-budget-settings>summary::-webkit-details-marker{display:none}
  #aey-offer-sheet-overlay .aey-mobile-budget-settings>summary b{color:#0f6198;font-size:8px;white-space:nowrap}
  #aey-offer-sheet-overlay .aey-mobile-budget-settings-body{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:8px;
    border-top:1px solid #e1e9ef;
    background:#f8fafc;
  }
  #aey-offer-sheet-overlay .aey-mobile-budget-settings-body label{display:grid;gap:3px;min-width:0}
  #aey-offer-sheet-overlay .aey-mobile-budget-settings-body label.aey-default-model{grid-column:1/-1;margin:0!important}
  #aey-offer-sheet-overlay .aey-mobile-budget-settings-body label span{font-size:7.5px;font-weight:800;color:#607587}
  #aey-offer-sheet-overlay .aey-mobile-budget-settings-body input,
  #aey-offer-sheet-overlay .aey-mobile-budget-settings-body select{width:100%;min-width:0;height:34px;border:1px solid #cddae4;border-radius:8px;padding:0 8px;font-size:10px}

  /* Tabla móvil sin desplazamiento horizontal. */
  #aey-offer-sheet-overlay .aey-cpq-workarea{position:relative;display:flex;flex:1 1 auto;min-height:0;overflow:hidden}
  #aey-offer-sheet-overlay .aey-cpq-main{width:100%;height:100%;min-height:0;overflow:hidden}
  #aey-offer-sheet-overlay .aey-cpq-table-wrap{
    width:100%;
    min-width:0;
    min-height:0;
    max-height:none;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    background:#edf2f5;
  }
  #aey-offer-sheet-overlay .aey-cpq-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed;font-size:8.5px}
  #aey-offer-sheet-overlay .aey-cpq-table th{height:34px;padding:0 2px!important;font-size:6.8px;line-height:1.05;text-align:center;overflow:hidden;text-overflow:ellipsis}
  #aey-offer-sheet-overlay .aey-cpq-table td{height:48px;min-height:48px;padding:0 3px;font-size:8.2px;overflow:hidden}
  #aey-offer-sheet-overlay .aey-cpq-table td input{min-width:0!important;padding:0 2px!important;font-size:8.2px!important;text-overflow:ellipsis}
  #aey-offer-sheet-overlay .aey-cpq-table td[data-field="description"] input{text-align:left}
  #aey-offer-sheet-overlay .aey-cpq-table td[data-field="quantity"] input,
  #aey-offer-sheet-overlay .aey-cpq-table td[data-field="offered_unit_price"] input{text-align:right}
  #aey-offer-sheet-overlay .aey-cpq-table .computed-cell{padding:0 3px;text-align:right;font-size:7.8px}
  #aey-offer-sheet-overlay .aey-cpq-table .aey-select-col{position:sticky;left:0;width:50px!important;min-width:50px!important;max-width:50px!important;z-index:5}
  #aey-offer-sheet-overlay .aey-row-controls{gap:2px;min-height:48px}
  #aey-offer-sheet-overlay .aey-item-details-toggle{flex-basis:20px;width:20px;height:26px}
  #aey-offer-sheet-overlay .aey-cpq-table .aey-select-col input[type="checkbox"]{width:15px;height:15px;min-width:15px}
  #aey-offer-sheet-overlay .aey-column-resize,#aey-offer-sheet-overlay .aey-row-resize{display:none!important}
  #aey-offer-sheet-overlay .aey-cpq-table tbody tr[data-row-key]{cursor:pointer}

  /* Detalle del ítem como página móvil completa. */
  #aey-offer-sheet-overlay .aey-cpq-detail{
    position:fixed;
    z-index:26100;
    top:var(--aey-native-header-height,56px);
    right:0;
    bottom:72px;
    left:0;
    display:block!important;
    width:100vw!important;
    min-width:0!important;
    max-width:none!important;
    overflow:auto;
    border:0;
    border-radius:0;
    background:#f7f9fb;
    box-shadow:-14px 0 36px rgba(20,47,68,.24);
  }
  #aey-offer-sheet-overlay .aey-cpq-detail.is-collapsed{display:none!important}
  #aey-offer-sheet-overlay .aey-cpq-detail>header{top:0;min-height:56px;padding:10px 12px}
  #aey-offer-sheet-overlay .aey-cpq-detail>header button{width:38px;height:38px;border-radius:10px;background:#edf2f5}
  #aey-offer-sheet-overlay .aey-cpq-detail details{margin:8px 8px 0}
  #aey-offer-sheet-overlay .aey-cpq-fields{grid-template-columns:1fr 1fr;gap:8px;padding:0 10px 12px}

  /* Costos del proceso: panel cerrable, no contenido incrustado. */
  #aey-offer-sheet-overlay .aey-cpq-expenses:not([hidden]){
    position:fixed;
    z-index:26200;
    top:var(--aey-native-header-height,56px);
    right:0;
    bottom:72px;
    left:0;
    display:flex!important;
    flex-direction:column;
    width:100vw;
    overflow:auto;
    padding:0 8px 16px;
    background:#f4f7f9;
  }
  #aey-offer-sheet-overlay .aey-mobile-sheet-header{
    position:sticky;
    top:0;
    z-index:2;
    display:flex!important;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    min-height:58px;
    margin:0 -8px 8px;
    padding:9px 12px;
    border-bottom:1px solid #d8e2e9;
    background:#fff;
  }
  #aey-offer-sheet-overlay .aey-mobile-sheet-header>div{display:grid;gap:2px}
  #aey-offer-sheet-overlay .aey-mobile-sheet-header strong{font-size:14px;color:#173f5d}
  #aey-offer-sheet-overlay .aey-mobile-sheet-header small{font-size:8px;color:#748797}
  #aey-offer-sheet-overlay .aey-mobile-sheet-header button{width:36px;height:36px;border:1px solid #d5e1e9;border-radius:9px;background:#fff;color:#294f68;font-size:22px}
  #aey-offer-sheet-overlay .aey-cpq-expenses .aey-common-expenses{margin:0!important}
  #aey-offer-sheet-overlay .aey-common-row{min-width:0!important;grid-template-columns:1fr;gap:6px}
  #aey-offer-sheet-overlay .aey-common-toolbar{align-items:flex-start;flex-direction:column}

  /* Modales y paneles auxiliares ocupan el ancho real del dispositivo. */
  #aey-offer-sheet-overlay .aey-modal-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:27000!important;
    display:flex!important;
    align-items:flex-end!important;
    justify-content:center!important;
    width:100vw!important;
    max-width:none!important;
    padding:var(--aey-native-header-height,56px) 0 72px!important;
    background:rgba(7,29,45,.46)!important;
  }
  #aey-offer-sheet-overlay .aey-modal-card,
  #aey-offer-sheet-overlay .aey-import-modal .aey-modal-card{
    width:100vw!important;
    max-width:none!important;
    max-height:calc(100dvh - var(--aey-native-header-height,56px) - 72px)!important;
    min-height:0!important;
    border-radius:18px 18px 0 0!important;
    overflow:hidden!important;
  }
  #aey-offer-sheet-overlay .aey-modal-card>header{min-height:58px;padding:10px 12px}
  #aey-offer-sheet-overlay .aey-modal-card>footer{padding:9px 12px calc(9px + env(safe-area-inset-bottom,0px))}
  #aey-offer-sheet-overlay .aey-history-list{padding:0!important}
  #aey-offer-sheet-overlay .aey-history-row{padding:13px 12px!important}
  .aey-rate-panel-portal{position:fixed!important;inset:var(--aey-native-header-height,56px) 0 72px 0!important;width:100vw!important;max-width:none!important;z-index:27100!important}
  .aey-rate-panel-card{width:100%!important;max-width:none!important;height:100%!important;max-height:none!important;border-radius:0!important}

  /* Resumen inferior sobre la navegación nativa. */
  #aey-offer-sheet-overlay .aey-cpq-footer{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:0 0 58px;min-height:58px;overflow:hidden;background:#fff}
  #aey-offer-sheet-overlay .aey-cpq-footer>span{min-width:0!important;padding:6px 7px!important;border-right:1px solid #e1e8ed}
  #aey-offer-sheet-overlay .aey-cpq-footer>span:nth-child(n+5){display:none}
  #aey-offer-sheet-overlay .aey-cpq-footer small{font-size:6.6px}
  #aey-offer-sheet-overlay .aey-cpq-footer b{font-size:10px}
  #aey-offer-sheet-overlay .aey-sheet-toast{right:12px;bottom:84px;max-width:calc(100vw - 24px)}
  body.aey-offer-sheet-open .aeybot-root .aeybot-launcher{right:10px!important;bottom:82px!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
}

@media(max-width:380px){
  #aey-offer-sheet-overlay .aey-budget-commandbar{grid-template-columns:minmax(0,1fr) 66px;padding-left:5px;padding-right:5px}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-more,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-more>summary{width:66px;min-width:66px}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary{gap:4px}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-save,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-add,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-mobile-cbm{padding:0 4px!important}
  #aey-offer-sheet-overlay .aey-cpq-fields{grid-template-columns:1fr}
}

/* Ganados > Operaciones: jerarquía compacta, resumen económico y paneles contextuales. */
@media(min-width:761px){
#aey-offer-sheet-overlay .aey-budget-commandbar{
  display:flex!important;align-items:center!important;gap:8px!important;min-height:58px!important;height:auto!important;padding:8px 12px!important;overflow:visible!important
}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-context{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-sheet-module{display:flex;align-items:center;height:38px;padding:0 12px;border:1px solid #d7e3eb;border-radius:9px;background:#fff;color:#123d5b;font-size:11px;cursor:pointer}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-workspace-compact{display:flex!important;gap:5px!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-workspace-compact button{display:flex!important;width:auto!important;min-width:70px!important;height:38px!important;padding:0 10px!important;gap:6px!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox{flex:1 1 360px!important;min-width:190px!important;max-width:none!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-version-compact{flex:0 0 112px!important;width:112px!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary,
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-outcomes{display:flex!important;align-items:center!important;gap:6px!important;flex:0 0 auto!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-button{height:38px!important;white-space:nowrap!important}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-approval{order:1}
#aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-generate{order:2}
#aey-offer-sheet-overlay .aey-command-menu .aey-overflow-approval,
#aey-offer-sheet-overlay .aey-command-menu .aey-overflow-generate{display:none}
}

#aey-offer-sheet-overlay .aey-budget-summary{
  flex:0 0 auto;display:grid;grid-template-columns:minmax(155px,1.2fr) minmax(145px,1fr) repeat(6,minmax(105px,1fr));align-items:stretch;gap:0;
  min-height:58px;border-bottom:1px solid #dbe5ec;background:#fff;box-shadow:0 2px 8px rgba(20,55,77,.035);overflow-x:auto
}
#aey-offer-sheet-overlay .aey-budget-summary>span,
#aey-offer-sheet-overlay .aey-budget-summary>button,
#aey-offer-sheet-overlay .aey-budget-summary>label{min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px;padding:8px 12px;border:0;border-right:1px solid #e7edf1;background:#fff;text-align:left;color:#173d57}
#aey-offer-sheet-overlay .aey-budget-summary small{font-size:7.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#718596;white-space:nowrap}
#aey-offer-sheet-overlay .aey-budget-summary b{font-size:14px;line-height:1.1;color:#0d3754;white-space:nowrap}
#aey-offer-sheet-overlay .aey-budget-summary>button{cursor:pointer}
#aey-offer-sheet-overlay .aey-budget-summary>button:hover{background:#f3f9fc}
#aey-offer-sheet-overlay .aey-budget-summary .aey-summary-edit{position:relative;background:#fbfdfe}
#aey-offer-sheet-overlay .aey-budget-summary .aey-summary-edit input{width:100%;height:27px;padding:2px 6px;border:1px solid transparent;border-radius:6px;background:transparent;color:#0d3754;font-size:12px;font-weight:800}
#aey-offer-sheet-overlay .aey-budget-summary .aey-summary-edit:hover input,
#aey-offer-sheet-overlay .aey-budget-summary .aey-summary-edit input:focus{border-color:#9fc5dc;background:#fff;outline:0}
#aey-offer-sheet-overlay .aey-budget-summary .bad b{color:#b42318}.aey-budget-summary .warn b{color:#a15c00}.aey-budget-summary .ok b{color:#137548}

#aey-offer-sheet-overlay .aey-cpq-controls{display:flex!important;align-items:center!important;min-height:54px!important;padding:7px 10px!important;border-bottom:1px solid #dde7ed;background:#fff;overflow:visible!important}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-cpq-add{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:7px!important;width:100%!important;overflow:visible!important}
#aey-offer-sheet-overlay .aey-cpq-controls button,
#aey-offer-sheet-overlay .aey-cpq-controls summary{height:36px!important;white-space:nowrap!important}
#aey-offer-sheet-overlay .aey-min-margin{display:grid;grid-template-columns:auto 82px;align-items:center;gap:7px;height:36px;padding:0 8px;border:1px solid #d6e2e9;border-radius:8px;background:#fff;color:#526b7c;font-size:8px;font-weight:800;text-transform:uppercase;white-space:nowrap}
#aey-offer-sheet-overlay .aey-min-margin input{width:70px;height:26px;border:0;background:transparent;color:#133d59;font-size:11px;font-weight:800;outline:0}
#aey-offer-sheet-overlay .aey-items-indicator{display:flex;align-items:center;height:36px;padding:0 10px;border:1px solid #e1e8ed;border-radius:8px;background:#f7fafc;color:#476475;font-size:10px;font-weight:800;white-space:nowrap}
#aey-offer-sheet-overlay .aey-cpq-view,.aey-desktop-quick-settings,.aey-mobile-budget-settings{display:none!important}
#aey-offer-sheet-overlay .aey-selection-count{margin-left:auto!important}
#aey-offer-sheet-overlay .aey-cpq-footer{display:none!important}

#aey-offer-sheet-overlay .aey-cpq-workarea{min-height:0!important;flex:1 1 auto!important}
#aey-offer-sheet-overlay .aey-cpq-main{min-width:0!important}
#aey-offer-sheet-overlay .aey-cpq-detail{flex:0 0 330px!important;width:330px!important;min-width:330px!important;max-width:330px!important;overflow:auto!important;background:#f6f9fb!important}
#aey-offer-sheet-overlay .aey-cpq-detail .aey-cpq-fields{grid-template-columns:1fr 1fr!important}
#aey-offer-sheet-overlay .aey-cpq-detail .aey-cpq-fields label{grid-column:auto!important}
#aey-offer-sheet-overlay .aey-cpq-detail .aey-supplier-quotes{padding-bottom:10px}
#aey-offer-sheet-overlay .aey-supplier-quote-intro{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 11px}
#aey-offer-sheet-overlay .aey-supplier-quote-intro span{font-size:9px;color:#60798a}
#aey-offer-sheet-overlay .aey-supplier-quote-intro button{min-height:34px;border:1px solid #bdd3e1;border-radius:8px;background:#fff;color:#0e527d;font-weight:800}
#aey-offer-sheet-overlay .aey-supplier-quote-list{display:grid;gap:8px;padding:0 10px}
#aey-offer-sheet-overlay .aey-supplier-quote-card{display:grid!important;grid-template-columns:1fr auto!important;gap:6px!important;padding:9px!important;border:1px solid #dbe6ed!important;border-radius:9px!important;background:#fff!important}
#aey-offer-sheet-overlay .aey-supplier-quote-card .aey-quote-main{display:flex;align-items:center;gap:8px;min-width:0;border:0;background:transparent;text-align:left;cursor:pointer}
#aey-offer-sheet-overlay .aey-supplier-quote-card .aey-quote-main>span:last-child{display:grid;min-width:0;gap:2px}
#aey-offer-sheet-overlay .aey-supplier-quote-card strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#153e59}
#aey-offer-sheet-overlay .aey-supplier-quote-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:8px;color:#718697}
#aey-offer-sheet-overlay .aey-supplier-quote-card>em{grid-column:1/-1;font-size:8px;color:#718697;font-style:normal}
#aey-offer-sheet-overlay .aey-supplier-quote-card footer{grid-column:1/-1;display:flex;justify-content:flex-end;gap:5px;padding:0!important;border:0!important}
#aey-offer-sheet-overlay .aey-supplier-quote-card footer a,
#aey-offer-sheet-overlay .aey-supplier-quote-card footer button{display:grid;place-items:center;width:30px;height:28px;padding:0;border:1px solid #d7e3ea;border-radius:7px;background:#fff;color:#275a78}
#aey-offer-sheet-overlay .aey-supplier-empty{padding:18px 10px;border:1px dashed #cbd9e2;border-radius:9px;text-align:center;font-size:9px;color:#6d8292}
#aey-offer-sheet-overlay .aey-quote-preview{margin:10px;border:1px solid #dbe5eb;border-radius:10px;background:#fff;overflow:hidden}
#aey-offer-sheet-overlay .aey-quote-preview>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-bottom:1px solid #e4ebef}
#aey-offer-sheet-overlay .aey-quote-preview>header>div{display:grid;min-width:0}.aey-quote-preview>header strong{font-size:10px}.aey-quote-preview>header small{font-size:8px;color:#718697}
#aey-offer-sheet-overlay .aey-quote-preview iframe{display:block;width:100%;height:440px;border:0}.aey-quote-preview img{display:block;width:100%;height:auto;max-height:440px;object-fit:contain}

#aey-offer-sheet-overlay .aey-cpq-table td.has-cell-error{background:#fff5f5!important;box-shadow:inset 0 0 0 1.5px #dc2626!important}
#aey-offer-sheet-overlay .aey-cpq-table td.has-cell-error input,
#aey-offer-sheet-overlay .aey-cpq-table td.has-cell-error button{color:#991b1b!important}
#aey-offer-sheet-overlay .aey-common-row.has-cell-error{border-color:#dc2626!important;background:#fff5f5!important}
#aey-offer-sheet-overlay .aey-common-row.has-cell-error input[data-expense-field="expression_text"]{border-color:#dc2626!important}

#aey-offer-sheet-overlay .aey-cpq-expenses:not([hidden]){position:absolute!important;inset:0!important;z-index:75!important;display:flex!important;flex-direction:column!important;background:#f5f8fa!important;overflow:auto!important}
#aey-offer-sheet-overlay .aey-general-expenses-panel{display:grid;gap:12px;padding:12px}
#aey-offer-sheet-overlay .aey-general-expenses-panel>section{border:1px solid #dce6ec;border-radius:11px;background:#fff;overflow:hidden}
#aey-offer-sheet-overlay .aey-general-expenses-panel>section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-bottom:1px solid #e5ecef}
#aey-offer-sheet-overlay .aey-general-expenses-panel>section>header>div{display:grid;gap:2px}.aey-general-expenses-panel header strong{font-size:12px;color:#123d5a}.aey-general-expenses-panel header small{font-size:8px;color:#718697}
#aey-offer-sheet-overlay .aey-general-expenses-panel header button{height:32px;padding:0 10px;border:1px solid #bfd4e1;border-radius:8px;background:#fff;color:#135b86;font-weight:800}
#aey-offer-sheet-overlay .aey-general-fixed-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:9px;padding:11px}
#aey-offer-sheet-overlay .aey-general-fixed{display:grid;gap:5px;font-size:8px;font-weight:800;text-transform:uppercase;color:#667c8d}
#aey-offer-sheet-overlay .aey-general-fixed input{height:36px;padding:0 10px;border:1px solid #d5e1e8;border-radius:8px;background:#fff;color:#173d57;font-size:11px;font-weight:700}
#aey-offer-sheet-overlay .aey-general-expenses-panel .aey-common-row{margin:0 11px 9px}
#aey-offer-sheet-overlay .aey-allocation-summary{position:sticky;bottom:0;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:0!important;border:1px solid #d8e4ea!important;border-radius:10px!important;background:#fff!important;box-shadow:0 -4px 16px rgba(24,57,78,.06)}
#aey-offer-sheet-overlay .aey-allocation-summary span{display:grid;gap:3px;padding:10px;border-right:1px solid #e6ecef;font-size:8px;color:#6b8190}.aey-allocation-summary b{font-size:12px;color:#143d58}

#aey-offer-sheet-overlay .aey-bulk-editor label{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important}
#aey-offer-sheet-overlay .aey-bulk-editor label>span{display:flex;align-items:center;gap:6px;font-weight:800}
#aey-offer-sheet-overlay .aey-bulk-inline-error,
#aey-offer-sheet-overlay .aey-quote-form-error{grid-column:1/-1;padding:9px 11px;border:1px solid #fecaca;border-radius:8px;background:#fff1f2;color:#991b1b;font-size:10px;font-weight:700}

#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card{width:min(780px,calc(100vw - 32px));max-width:780px;max-height:min(856px,calc(100dvh - 32px));border-radius:14px;overflow:hidden;background:#fff}
#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header{background:#fff;min-height:72px;padding:18px 28px 14px}
#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header strong{color:#123f64;font-size:18px;line-height:1.2}
#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header span{color:#6b7f91;font-size:11px;line-height:1.4}
#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header>button{font-size:22px;height:34px;width:34px}
#aey-offer-sheet-overlay .aey-supplier-quote-form{position:relative;display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px 20px!important;overflow:auto!important;padding:14px 28px 18px!important}
#aey-offer-sheet-overlay .aey-supplier-quote-form>label{display:grid!important;gap:6px!important;color:#29465e!important;font-size:11px!important;font-weight:800!important;min-width:0}
#aey-offer-sheet-overlay .aey-supplier-quote-form>label>span{align-items:center;display:flex;gap:4px}
#aey-offer-sheet-overlay .aey-supplier-quote-form>label>span em{color:#76899a;font-style:normal;font-weight:600}
#aey-offer-sheet-overlay .aey-supplier-quote-form label.wide,#aey-offer-sheet-overlay .aey-supplier-quote-form .wide{grid-column:1/-1!important}
#aey-offer-sheet-overlay .aey-supplier-quote-form input,#aey-offer-sheet-overlay .aey-supplier-quote-form select,#aey-offer-sheet-overlay .aey-supplier-quote-form textarea{background:#fff!important;border:1px solid #cad9e5!important;border-radius:8px!important;color:#263f55!important;font-family:inherit!important;font-size:12px!important;min-height:39px!important;outline:0!important;padding:8px 11px!important;width:100%!important}
#aey-offer-sheet-overlay .aey-supplier-quote-form textarea{min-height:58px!important;resize:vertical}
#aey-offer-sheet-overlay .aey-supplier-quote-form input:focus,#aey-offer-sheet-overlay .aey-supplier-quote-form select:focus,#aey-offer-sheet-overlay .aey-supplier-quote-form textarea:focus{border-color:#4a83b0!important;box-shadow:0 0 0 3px rgba(14,79,136,.09)!important}
#aey-offer-sheet-overlay .aey-supplier-search-field{position:relative}
#aey-offer-sheet-overlay .aey-quote-input-icon{align-items:center;display:flex;position:relative}
#aey-offer-sheet-overlay .aey-quote-input-icon>svg{color:#527087;height:17px;left:12px;pointer-events:none;position:absolute;width:17px;z-index:2}
#aey-offer-sheet-overlay .aey-quote-input-icon>input{padding-left:38px!important}
#aey-offer-sheet-overlay .aey-supplier-suggestions{position:absolute;z-index:30;top:66px;left:0;right:0;display:grid;max-height:250px;overflow:auto;border:1px solid #cfdde5;border-radius:9px;background:#fff;box-shadow:0 12px 28px rgba(21,54,76,.18)}
#aey-offer-sheet-overlay .aey-supplier-suggestions[hidden]{display:none!important}
#aey-offer-sheet-overlay .aey-supplier-suggestions button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;padding:8px 10px;border:0;border-bottom:1px solid #edf1f4;background:#fff;text-align:left;color:#173e59}
#aey-offer-sheet-overlay .aey-supplier-suggestions button:hover{background:#f1f8fc}#aey-offer-sheet-overlay .aey-supplier-suggestions small{color:#718697;font-size:10px}
#aey-offer-sheet-overlay .aey-quote-dropzone{min-height:178px!important;display:grid!important;place-items:center!important;position:relative!important;border:1.5px dashed #8db8d6!important;border-radius:10px!important;background:#fbfdff!important;cursor:pointer!important;padding:18px!important}
#aey-offer-sheet-overlay .aey-quote-dropzone.is-dragging{border-color:#0875b5!important;background:#eaf6fc!important}
#aey-offer-sheet-overlay .aey-quote-dropzone>input{height:1px!important;opacity:0!important;pointer-events:none!important;position:absolute!important;width:1px!important}
#aey-offer-sheet-overlay .aey-quote-dropzone>span{display:grid!important;gap:5px!important;justify-items:center!important;text-align:center!important;color:#245f8b!important}
#aey-offer-sheet-overlay .aey-quote-dropzone>span>i{align-items:center;background:#eaf3ff;border-radius:999px;color:#1267df;display:flex;height:52px;justify-content:center;margin-bottom:5px;width:52px}
#aey-offer-sheet-overlay .aey-quote-dropzone>span>i svg{height:27px;width:27px}
#aey-offer-sheet-overlay .aey-quote-dropzone b{color:#14517d;font-size:13px!important;font-weight:800}
#aey-offer-sheet-overlay .aey-quote-dropzone small{color:#71869a;font-size:10px!important;font-weight:600!important}
#aey-offer-sheet-overlay .aey-quote-dropzone em{align-items:center;background:#fff;border:1px solid #b9cfe0;border-radius:8px;color:#0e5b92;display:flex;font-size:10px;font-style:normal;font-weight:800;justify-content:center;margin-top:7px;min-height:34px;padding:0 14px}
#aey-offer-sheet-overlay .aey-quote-dropzone em svg{height:14px;margin-right:7px;width:14px}
#aey-offer-sheet-overlay .aey-quote-links{border:1px solid #d7e2ea;border-radius:10px;overflow:hidden;background:#fff}
#aey-offer-sheet-overlay .aey-quote-links>header{align-items:center;border-bottom:0;display:flex;justify-content:space-between;padding:12px 14px 4px}
#aey-offer-sheet-overlay .aey-quote-links>header>div{display:grid;gap:2px}
#aey-offer-sheet-overlay .aey-quote-links>header strong{color:#174360;font-size:13px}
#aey-offer-sheet-overlay .aey-quote-links>header small{color:#718697;font-size:10px}
#aey-offer-sheet-overlay .aey-quote-links-tools{align-items:center;border-bottom:1px solid #e4ebf0;display:grid;gap:12px;grid-template-columns:minmax(180px,.8fr) minmax(260px,1.2fr);padding:8px 14px 10px}
#aey-offer-sheet-overlay .aey-quote-links-tools>label{align-items:center;color:#294a63;display:flex!important;font-size:11px!important;font-weight:750!important;gap:8px!important}
#aey-offer-sheet-overlay .aey-quote-links-tools input[type=checkbox],#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option]>input{accent-color:#0e65bf;height:18px!important;min-height:18px!important;padding:0!important;width:18px!important}
#aey-offer-sheet-overlay .aey-quote-links-tools>div{align-items:center;display:flex;position:relative}
#aey-offer-sheet-overlay .aey-quote-links-tools>div>svg{color:#637d91;height:16px;left:11px;pointer-events:none;position:absolute;width:16px}
#aey-offer-sheet-overlay .aey-quote-links-tools input[type=search]{height:36px!important;min-height:36px!important;padding-left:34px!important}
#aey-offer-sheet-overlay .aey-quote-links>[data-quote-item-list]{display:grid;gap:0;max-height:188px;overflow:auto;padding:0}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option]{align-items:center!important;border:0!important;border-bottom:1px solid #e7edf2!important;border-radius:0!important;display:grid!important;gap:10px!important;grid-template-columns:20px 38px minmax(0,1fr)!important;margin:0!important;min-height:58px!important;padding:8px 14px!important}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option]:last-child{border-bottom:0!important}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option]>i{align-items:center;background:#eaf3ff;border-radius:8px;color:#176bd1;display:flex;height:34px;justify-content:center;width:34px}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option]>i svg{height:18px;width:18px}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option]>span{display:grid;gap:2px;min-width:0}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option] b{color:#244157;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aey-offer-sheet-overlay .aey-quote-links [data-quote-item-option] small{color:#718697;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>footer{background:#fff;flex:0 0 auto;padding:12px 28px}
#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>footer button{font-size:11px;min-height:38px;padding:0 16px}
@media(max-width:1360px){
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-generate{display:none!important}
  #aey-offer-sheet-overlay .aey-command-menu .aey-overflow-generate{display:flex!important}
  #aey-offer-sheet-overlay .aey-budget-summary{grid-template-columns:minmax(155px,1.2fr) minmax(145px,1fr) repeat(6,minmax(98px,1fr))}
}
@media(max-width:1160px){
  #aey-offer-sheet-overlay .aey-command-outcomes .aey-command-approval{display:none!important}
  #aey-offer-sheet-overlay .aey-command-menu .aey-overflow-approval{display:flex!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox{flex-basis:250px!important}
  #aey-offer-sheet-overlay .aey-cpq-controls .aey-cpq-add{overflow-x:auto!important;padding-bottom:2px}
}
@media(max-width:760px){
  #aey-offer-sheet-overlay .aey-budget-commandbar{display:grid!important;grid-template-columns:minmax(0,1fr) 72px!important;grid-template-areas:"tabs tabs" "process version" "primary more"!important;padding:6px 8px 7px!important;gap:6px 8px!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-context{display:none!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-mobile-workspace-tabs{display:grid!important;grid-area:tabs!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-process-combobox{grid-area:process!important;min-width:0!important;width:100%!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-version-compact{grid-area:version!important;width:72px!important;min-width:72px!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary{grid-area:primary!important;justify-content:stretch!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-primary .aey-command-save{width:100%!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-more{grid-area:more!important;width:72px!important}
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-command-outcomes,
  #aey-offer-sheet-overlay .aey-budget-commandbar .aey-sheet-save-state{display:none!important}
  #aey-offer-sheet-overlay .aey-budget-summary{grid-template-columns:repeat(8,minmax(118px,1fr));min-height:55px}
  #aey-offer-sheet-overlay .aey-cpq-controls{overflow-x:auto!important}.aey-cpq-controls .aey-cpq-add{min-width:max-content!important}
  #aey-offer-sheet-overlay .aey-cpq-detail{position:fixed!important;inset:56px 0 72px 0!important;z-index:190!important;width:100vw!important;max-width:none!important;min-width:0!important;flex-basis:auto!important}
  #aey-offer-sheet-overlay .aey-general-fixed-grid{grid-template-columns:1fr 1fr}
  #aey-offer-sheet-overlay .aey-allocation-summary{grid-template-columns:1fr 1fr}.aey-allocation-summary span:last-child{grid-column:1/-1}
  #aey-offer-sheet-overlay .aey-supplier-quote-form{grid-template-columns:1fr!important}.aey-supplier-quote-form .wide{grid-column:auto!important}
}

#aey-offer-sheet-overlay .aey-system-costs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
#aey-offer-sheet-overlay .aey-system-costs > span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 210px;
  padding: 9px 11px;
  border: 1px solid #dce6f1;
  border-radius: 9px;
  background: #f7fafd;
  color: #53667b;
  font-size: 12px;
}
#aey-offer-sheet-overlay .aey-system-costs b { color: #0c3158; }

/* Los avisos ya no desplazan la tabla: aparecen como notificación flotante. */
#aey-offer-sheet-overlay .aey-sheet-feedback {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 28000 !important;
  width: auto !important;
  max-width: min(420px, calc(100vw - 32px)) !important;
  margin: 0 !important;
  padding: 10px 14px !important;
  border-radius: 9px !important;
  box-shadow: 0 12px 30px rgba(12, 39, 58, .2) !important;
}
#aey-offer-sheet-overlay .aey-cpq-main { position: relative !important; }
#aey-offer-sheet-overlay .aey-cpq-expenses .aey-mobile-sheet-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  min-height: 54px;
  padding: 9px 12px;
  border-bottom: 1px solid #dde7ed;
  background: #fff;
}
@media(max-width:760px){
  #aey-offer-sheet-overlay .aey-sheet-feedback { right: 12px !important; bottom: 84px !important; }
}

/* Gastos generales: ventana de trabajo amplia y estable. */
#aey-offer-sheet-overlay .aey-general-expenses-modal{
  position:fixed!important;
  inset:0!important;
  z-index:27200!important;
  display:grid!important;
  place-items:center!important;
  padding:22px!important;
  background:rgba(8,30,47,.48)!important;
  backdrop-filter:blur(3px);
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card{
  width:min(1120px,calc(100vw - 44px))!important;
  height:min(820px,calc(100dvh - 44px))!important;
  max-width:none!important;
  max-height:none!important;
  border-radius:16px!important;
  box-shadow:0 28px 90px rgba(5,35,55,.32)!important;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>header{
  flex:0 0 auto;
  padding:16px 20px;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>header strong{font-size:15px}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>header span{font-size:10px}
#aey-offer-sheet-overlay .aey-general-expenses-modal-body{
  display:block!important;
  flex:1 1 auto;
  min-height:0;
  overflow:auto!important;
  padding:16px 18px 22px!important;
  background:#f4f7f9;
  overscroll-behavior:contain;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel{
  display:grid;
  gap:14px;
  padding:0!important;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel>section{
  border:1px solid #d8e4eb;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(17,56,80,.035);
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel>section>header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 15px;
  border-bottom:1px solid #e5ecef;
  background:#fbfcfd;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel>section>header>div{display:grid;gap:3px}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel header strong{font-size:12px;color:#123d5a}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel header small{font-size:9px;color:#718697}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel header button{
  min-height:34px;
  padding:0 12px;
  border:1px solid #b8cfdd;
  border-radius:8px;
  background:#fff;
  color:#135b86;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-fixed-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding:14px 15px;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-fixed{display:grid;gap:6px;font-size:9px;font-weight:800;text-transform:uppercase;color:#667c8d}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-fixed input{
  height:38px;
  padding:0 11px;
  border:1px solid #cfdae3;
  border-radius:8px;
  background:#fff;
  color:#173d57;
  font-size:11px;
  font-weight:700;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row{
  display:grid!important;
  grid-template-columns:86px minmax(180px,1.55fr) minmax(150px,.8fr) minmax(170px,.9fr) 86px!important;
  gap:9px!important;
  align-items:center;
  min-width:0!important;
  margin:0 15px 10px!important;
  padding:10px!important;
  border:1px solid #e0e8ed!important;
  border-radius:10px;
  background:#fff;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row:first-of-type{margin-top:12px!important}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row input,
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row select{height:38px;min-width:0;border:1px solid #cfdae3;border-radius:8px;padding:0 10px;background:#fff;color:#173d57;font-size:11px}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row button.danger{height:36px;border:1px solid #f0c4c4;border-radius:8px;background:#fff;color:#b42318;font-size:9px;font-weight:800}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-system-costs{display:flex;flex-wrap:wrap;gap:10px;padding:0 15px 14px}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-system-costs span{display:flex;justify-content:space-between;gap:18px;min-width:220px;padding:10px 12px;border:1px solid #e1e9ee;border-radius:9px;background:#f8fafb;color:#60788a;font-size:10px}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-system-costs b{color:#153e59}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary{
  position:sticky!important;
  top:0!important;
  z-index:4!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  margin:0!important;
  border:1px solid #d4e1e8!important;
  border-radius:11px!important;
  background:#fff!important;
  box-shadow:0 8px 20px rgba(18,55,78,.09)!important;
  overflow:hidden;
}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary span{display:grid!important;gap:4px!important;padding:11px 13px!important;border-right:1px solid #e5ecef!important;background:#fff!important;color:#667d8e!important;font-size:9px!important}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary span:last-child{border-right:0!important;background:#eef7fc!important}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary b{font-size:13px!important;color:#123e5b!important}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-muted{margin:0;padding:18px 15px;color:#738897;font-size:10px}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>footer{flex:0 0 auto;align-items:center;padding:12px 18px;background:#fff}
#aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>footer>span{margin-right:auto;color:#6d8292;font-size:9px}

@media(max-width:900px){
  #aey-offer-sheet-overlay .aey-general-expenses-modal{padding:10px!important;align-items:center!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card{width:calc(100vw - 20px)!important;height:calc(100dvh - 20px)!important;border-radius:12px!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-fixed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row{grid-template-columns:72px minmax(140px,1fr) minmax(120px,.7fr) minmax(145px,.8fr) 74px!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:760px){
  #aey-offer-sheet-overlay .aey-general-expenses-modal{padding:0!important;align-items:stretch!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border:0!important;border-radius:0!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>header{min-height:58px;padding:10px 12px}
  #aey-offer-sheet-overlay .aey-general-expenses-modal-body{padding:10px 8px 18px!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-fixed-grid{grid-template-columns:1fr 1fr;padding:10px}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel>section>header{align-items:flex-start;padding:11px 10px}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-panel>section>header button{min-height:32px;padding:0 9px;font-size:9px}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row{grid-template-columns:1fr!important;gap:7px!important;margin:0 10px 10px!important;padding:9px!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-common-row button.danger{width:100%}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary{position:static!important;grid-template-columns:1fr 1fr!important}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-general-expenses-summary span:last-child{grid-column:1/-1}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>footer{padding:9px 10px calc(9px + env(safe-area-inset-bottom,0px))}
  #aey-offer-sheet-overlay .aey-general-expenses-modal .aey-modal-card>footer>span{display:none}
}


/* AEY Presupuesto R126 · edición masiva compacta y selección múltiple contextual */
#aey-offer-sheet-overlay .aey-modal-backdrop.aey-bulk-dialog .aey-modal-card{
  width:min(720px,calc(100vw - 32px));
  max-width:720px;
}
#aey-offer-sheet-overlay .aey-bulk-editor{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  padding:14px!important;
}
#aey-offer-sheet-overlay .aey-bulk-head,
#aey-offer-sheet-overlay .aey-bulk-row{
  display:grid;
  grid-template-columns:54px minmax(145px,180px) minmax(240px,1fr);
  align-items:center;
  gap:12px;
}
#aey-offer-sheet-overlay .aey-bulk-head{
  min-height:34px;
  padding:0 12px;
  border:1px solid #dce6ec;
  border-bottom:0;
  border-radius:10px 10px 0 0;
  background:#f4f8fb;
  color:#6b7f8d;
  font-size:9px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}
#aey-offer-sheet-overlay .aey-bulk-row{
  min-height:52px;
  padding:7px 12px;
  border:1px solid #e0e8ed;
  border-bottom:0;
  background:#fff;
  transition:background .15s ease,border-color .15s ease;
}
#aey-offer-sheet-overlay .aey-bulk-row:last-child{
  border-bottom:1px solid #e0e8ed;
  border-radius:0 0 10px 10px;
}
#aey-offer-sheet-overlay .aey-bulk-row.is-enabled{
  border-color:#b9d4ee;
  background:#f7fbff;
}
#aey-offer-sheet-overlay .aey-bulk-row>strong{
  color:#233f53;
  font-size:11px;
  line-height:1.25;
}
#aey-offer-sheet-overlay .aey-bulk-control{
  min-width:0;
  opacity:.62;
  transition:opacity .15s ease;
}
#aey-offer-sheet-overlay .aey-bulk-row.is-enabled .aey-bulk-control,
#aey-offer-sheet-overlay .aey-bulk-control:focus-within{
  opacity:1;
}
#aey-offer-sheet-overlay .aey-bulk-control input,
#aey-offer-sheet-overlay .aey-bulk-control select{
  width:100%;
  height:34px;
  min-height:34px;
  border:1px solid #ccd9e2;
  border-radius:8px;
  background:#fff;
  color:#173c56;
  padding:0 10px;
  font:inherit;
  font-size:11px;
  font-weight:650;
  outline:0;
}
#aey-offer-sheet-overlay .aey-bulk-control input:focus,
#aey-offer-sheet-overlay .aey-bulk-control select:focus{
  border-color:#2b76bd;
  box-shadow:0 0 0 2px rgba(43,118,189,.12);
}
#aey-offer-sheet-overlay .aey-bulk-switch{
  position:relative;
  display:inline-flex!important;
  align-items:center!important;
  width:30px!important;
  height:18px!important;
  min-width:30px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-bulk-switch input{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:1px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none;
}
#aey-offer-sheet-overlay .aey-bulk-switch span{
  position:relative;
  display:block;
  width:30px;
  height:18px;
  border-radius:999px;
  background:#cbd5df;
  box-shadow:inset 0 0 0 1px rgba(49,70,87,.08);
  transition:background .15s ease;
}
#aey-offer-sheet-overlay .aey-bulk-switch span::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:12px;
  height:12px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(22,47,64,.25);
  transition:transform .15s ease;
}
#aey-offer-sheet-overlay .aey-bulk-switch input:checked+span{background:#1769d2}
#aey-offer-sheet-overlay .aey-bulk-switch input:checked+span::after{transform:translateX(12px)}
#aey-offer-sheet-overlay .aey-bulk-switch input:focus-visible+span{outline:2px solid #7eb5ea;outline-offset:2px}
#aey-offer-sheet-overlay .aey-bulk-inline-error{
  margin-bottom:10px;
}

/* La primera columna solo muestra el detalle; los selectores aparecen en modo múltiple. */
#aey-offer-sheet-overlay .aey-cpq-shell:not(.is-selection-mode) .aey-cpq-table .aey-select-col{
  width:34px!important;
  min-width:34px!important;
  max-width:34px!important;
}
#aey-offer-sheet-overlay .aey-cpq-shell.is-selection-mode .aey-cpq-table .aey-select-col{
  width:50px!important;
  min-width:50px!important;
  max-width:50px!important;
  background:#f2f7fc;
}
#aey-offer-sheet-overlay .aey-row-controls{
  gap:3px!important;
  padding:0 2px;
}
#aey-offer-sheet-overlay .aey-item-details-toggle{
  flex-basis:20px!important;
  width:20px!important;
  height:20px!important;
  border-radius:6px!important;
}
#aey-offer-sheet-overlay .aey-item-details-toggle svg{width:12px!important;height:12px!important}
#aey-offer-sheet-overlay .aey-cpq-table .aey-select-col input[type="checkbox"]{
  appearance:auto!important;
  width:14px!important;
  height:14px!important;
  min-width:14px!important;
  min-height:14px!important;
  max-width:14px!important;
  max-height:14px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:3px!important;
  background:initial!important;
  box-shadow:none!important;
  accent-color:#1769d2;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-cpq-table thead .aey-select-col input[type="checkbox"]{
  display:block;
  margin:auto!important;
}
#aey-offer-sheet-overlay .aey-cpq-table tbody tr.multi-selected td{background:#eef6ff!important}
#aey-offer-sheet-overlay .aey-cpq-table tbody tr.multi-selected .aey-select-col{background:#dcecff!important}

#aey-offer-sheet-overlay .aey-multi-selection-toolbar{
  display:inline-flex;
  align-items:center;
  gap:5px;
  height:36px;
  padding:3px 4px 3px 9px;
  border:1px solid #bcd4e8;
  border-radius:9px;
  background:#eef6fd;
  box-shadow:0 2px 7px rgba(24,82,125,.08);
  white-space:nowrap;
}
#aey-offer-sheet-overlay .aey-multi-selection-toolbar>span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding-right:5px;
  color:#315d7d;
  font-size:9px;
  font-weight:750;
}
#aey-offer-sheet-overlay .aey-multi-selection-toolbar>span b{font-size:11px;color:#0f5688}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-multi-selection-toolbar button{
  height:28px!important;
  padding:0 8px!important;
  border-radius:7px!important;
  border-color:#c8dce9!important;
  background:#fff!important;
  color:#194f72!important;
  font-size:9px!important;
}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-multi-selection-toolbar button.danger{color:#b42318!important}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-multi-selection-toolbar button:disabled{opacity:.42;cursor:not-allowed}
#aey-offer-sheet-overlay .aey-cpq-controls .aey-multi-selection-toolbar .aey-selection-exit{
  width:28px!important;
  padding:0!important;
  font-size:16px!important;
  line-height:1!important;
}

@media(max-width:760px){
  #aey-offer-sheet-overlay .aey-modal-backdrop.aey-bulk-dialog .aey-modal-card{width:calc(100vw - 16px)}
  #aey-offer-sheet-overlay .aey-bulk-head{display:none}
  #aey-offer-sheet-overlay .aey-bulk-row{grid-template-columns:42px minmax(112px,1fr);gap:8px;padding:9px 10px}
  #aey-offer-sheet-overlay .aey-bulk-control{grid-column:1/-1}
  #aey-offer-sheet-overlay .aey-cpq-shell:not(.is-selection-mode) .aey-cpq-table .aey-select-col{width:30px!important;min-width:30px!important;max-width:30px!important}
  #aey-offer-sheet-overlay .aey-cpq-shell.is-selection-mode .aey-cpq-table .aey-select-col{width:46px!important;min-width:46px!important;max-width:46px!important}
  #aey-offer-sheet-overlay .aey-multi-selection-toolbar{min-width:max-content}
}
#aey-offer-sheet-overlay .aey-bulk-editor label.aey-bulk-switch{
  display:inline-flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:flex-start!important;
}
#aey-offer-sheet-overlay .aey-bulk-editor label.aey-bulk-switch>span{
  display:block!important;
  align-items:initial!important;
  gap:0!important;
  font-weight:400!important;
}

/* R127 · aprobación real y salida comercial PDF/Excel */
#aey-offer-sheet-overlay .aey-cpq-status[data-workflow-status="pending"]{
  color:#1d4ed8;
  background:#dbeafe;
}
#aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-card,
#aey-offer-sheet-overlay .aey-document-modal .aey-modal-card{
  width:min(880px,calc(100vw - 32px));
  max-height:min(820px,calc(100dvh - 28px));
}
#aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-body,
#aey-offer-sheet-overlay .aey-document-modal .aey-modal-body{
  min-width:0;
  overflow:auto;
  overscroll-behavior:contain;
}
#aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-card>footer,
#aey-offer-sheet-overlay .aey-document-modal .aey-modal-card>footer{
  flex:0 0 auto;
  flex-wrap:wrap;
  align-items:center;
}
#aey-offer-sheet-overlay .aey-workflow-modal{
  gap:12px!important;
}
#aey-offer-sheet-overlay .aey-workflow-current{
  min-height:48px;
  padding:10px 12px;
}
#aey-offer-sheet-overlay .aey-workflow-current b[data-workflow-status="pending"]{
  color:#1d4ed8;
}
#aey-offer-sheet-overlay .aey-workflow-current b[data-workflow-status="changes"]{
  color:#b45309;
}
#aey-offer-sheet-overlay .aey-workflow-current b[data-workflow-status="approved"]{
  color:#166534;
}
#aey-offer-sheet-overlay .aey-approval-summary,
#aey-offer-sheet-overlay .aey-offer-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
#aey-offer-sheet-overlay .aey-approval-summary>span,
#aey-offer-sheet-overlay .aey-offer-summary>span{
  display:grid;
  align-content:start;
  gap:3px;
  min-width:0;
  min-height:58px;
  padding:9px 10px;
  border:1px solid #dce6ed;
  border-radius:9px;
  background:#f8fbfd;
}
#aey-offer-sheet-overlay .aey-approval-summary small,
#aey-offer-sheet-overlay .aey-offer-summary small{
  color:#6a7f8f;
  font-size:9px;
  line-height:1.2;
}
#aey-offer-sheet-overlay .aey-approval-summary b,
#aey-offer-sheet-overlay .aey-offer-summary b{
  min-width:0;
  overflow:hidden;
  color:#173b55;
  font-size:11px;
  line-height:1.35;
  text-overflow:ellipsis;
}
#aey-offer-sheet-overlay .aey-approval-form{
  display:grid;
  grid-template-columns:minmax(230px,.8fr) minmax(320px,1.2fr);
  gap:12px;
  padding:12px;
  border:1px solid #d8e4ec;
  border-radius:10px;
  background:#fff;
}
#aey-offer-sheet-overlay .aey-approval-form label,
#aey-offer-sheet-overlay .aey-approval-review-comment{
  display:grid;
  gap:6px;
  min-width:0;
  color:#496175;
  font-size:10px;
  font-weight:700;
}
#aey-offer-sheet-overlay .aey-approval-form select,
#aey-offer-sheet-overlay .aey-approval-form textarea,
#aey-offer-sheet-overlay .aey-approval-review-comment textarea{
  width:100%;
  min-width:0;
  border:1px solid #c7d5df;
  border-radius:8px;
  background:#fff;
  color:#17384f;
  padding:9px 10px;
  font:inherit;
  font-size:11px;
}
#aey-offer-sheet-overlay .aey-approval-form select{
  min-height:38px;
}
#aey-offer-sheet-overlay .aey-approval-form textarea,
#aey-offer-sheet-overlay .aey-approval-review-comment textarea{
  resize:vertical;
}
#aey-offer-sheet-overlay .aey-approval-form select:focus,
#aey-offer-sheet-overlay .aey-approval-form textarea:focus,
#aey-offer-sheet-overlay .aey-approval-review-comment textarea:focus,
#aey-offer-sheet-overlay .aey-offer-notes textarea:focus{
  outline:none;
  border-color:#4a91c3;
  box-shadow:0 0 0 3px rgba(42,124,181,.12);
}
#aey-offer-sheet-overlay .aey-approval-assigned{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:12px;
  border:1px solid #cfe0ec;
  border-radius:10px;
  background:#f7fbfe;
}
#aey-offer-sheet-overlay .aey-approval-assigned>span{
  display:grid;
  gap:3px;
  min-width:0;
}
#aey-offer-sheet-overlay .aey-approval-assigned small{
  color:#6b8090;
  font-size:9px;
}
#aey-offer-sheet-overlay .aey-approval-assigned b{
  overflow:hidden;
  color:#173b55;
  font-size:11px;
  text-overflow:ellipsis;
}
#aey-offer-sheet-overlay .aey-approval-review-comment{
  padding:12px;
  border:1px solid #d8e4ec;
  border-radius:10px;
  background:#fff;
}
#aey-offer-sheet-overlay .aey-approval-result{
  display:grid;
  gap:4px;
  padding:12px 14px;
  border:1px solid #a7d8b5;
  border-radius:10px;
  background:#effaf3;
  color:#21643b;
}
#aey-offer-sheet-overlay .aey-approval-result.is-warning{
  border-color:#efcf91;
  background:#fff8e8;
  color:#8a5a0b;
}
#aey-offer-sheet-overlay .aey-approval-result b{font-size:12px}
#aey-offer-sheet-overlay .aey-approval-result span{font-size:10px}
#aey-offer-sheet-overlay .aey-workflow-history{
  max-height:230px;
  overflow:auto;
  padding-right:3px;
}
#aey-offer-sheet-overlay .aey-workflow-history article:last-child{
  border-bottom:0;
}

#aey-offer-sheet-overlay .aey-document-modal .aey-modal-card{
  width:min(820px,calc(100vw - 32px));
}
#aey-offer-sheet-overlay .aey-doc-center{
  display:grid;
  gap:12px;
}
#aey-offer-sheet-overlay .aey-document-types{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
#aey-offer-sheet-overlay .aey-document-type{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  padding:13px 14px;
  border:1px solid #d3e1eb;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
#aey-offer-sheet-overlay .aey-document-type:hover{
  border-color:#9fc4df;
  background:#fafdff;
}
#aey-offer-sheet-overlay .aey-document-type:has(input:checked){
  border-color:#2d82bd;
  background:#f1f8fd;
  box-shadow:0 0 0 2px rgba(45,130,189,.10);
}
#aey-offer-sheet-overlay .aey-document-type input{
  appearance:auto!important;
  flex:0 0 auto;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  margin:2px 0 0!important;
  accent-color:#1769d2;
}
#aey-offer-sheet-overlay .aey-document-type>span{
  display:grid;
  gap:4px;
  min-width:0;
}
#aey-offer-sheet-overlay .aey-document-type b{
  color:#173b55;
  font-size:11px;
}
#aey-offer-sheet-overlay .aey-document-type small{
  color:#6a7e8e;
  font-size:9px;
  line-height:1.4;
}
#aey-offer-sheet-overlay [data-doc-offer-options]{
  display:grid;
  gap:12px;
}
#aey-offer-sheet-overlay [data-doc-offer-options][hidden]{
  display:none!important;
}
#aey-offer-sheet-overlay .aey-offer-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#aey-offer-sheet-overlay .aey-offer-option{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 13px;
  border:1px solid #d3e1eb;
  border-radius:10px;
  background:#f8fbfd;
  cursor:pointer;
}
#aey-offer-sheet-overlay .aey-offer-option input{
  appearance:auto!important;
  flex:0 0 auto;
  width:15px!important;
  height:15px!important;
  min-width:15px!important;
  min-height:15px!important;
  margin:2px 0 0!important;
  accent-color:#1769d2;
}
#aey-offer-sheet-overlay .aey-offer-option>span{
  display:grid;
  gap:3px;
  min-width:0;
}
#aey-offer-sheet-overlay .aey-offer-option b{
  color:#173b55;
  font-size:11px;
}
#aey-offer-sheet-overlay .aey-offer-option small{
  color:#6a7e8e;
  font-size:9px;
  line-height:1.4;
}
#aey-offer-sheet-overlay .aey-offer-notes{
  display:grid;
  gap:6px;
  color:#496175;
  font-size:10px;
  font-weight:700;
}
#aey-offer-sheet-overlay .aey-offer-notes textarea{
  width:100%;
  min-height:92px;
  border:1px solid #c7d5df;
  border-radius:8px;
  background:#fff;
  color:#17384f;
  padding:10px 11px;
  font:inherit;
  font-size:11px;
  line-height:1.45;
  resize:vertical;
}
#aey-offer-sheet-overlay .aey-document-modal .aey-doc-note{
  margin:0;
  padding:10px 12px;
  border:1px solid #d5e5f1;
  background:#eef6fc;
  color:#466277;
  font-size:9px;
}

@media(max-width:820px){
  #aey-offer-sheet-overlay .aey-approval-summary,
  #aey-offer-sheet-overlay .aey-offer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  #aey-offer-sheet-overlay .aey-document-types{grid-template-columns:1fr}
  #aey-offer-sheet-overlay .aey-approval-form{grid-template-columns:1fr}
  #aey-offer-sheet-overlay .aey-approval-assigned{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  #aey-offer-sheet-overlay .aey-workflow-dialog,
  #aey-offer-sheet-overlay .aey-document-modal{padding:7px!important}
  #aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-card,
  #aey-offer-sheet-overlay .aey-document-modal .aey-modal-card{
    width:calc(100vw - 14px);
    max-height:calc(100dvh - 14px);
    border-radius:10px;
  }
  #aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-card>header span,
  #aey-offer-sheet-overlay .aey-document-modal .aey-modal-card>header span{display:block}
  #aey-offer-sheet-overlay .aey-approval-summary,
  #aey-offer-sheet-overlay .aey-offer-summary{grid-template-columns:1fr 1fr}
  #aey-offer-sheet-overlay .aey-approval-assigned{grid-template-columns:1fr}
  #aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-card>footer,
  #aey-offer-sheet-overlay .aey-document-modal .aey-modal-card>footer{
    justify-content:flex-start;
    overflow-x:auto;
    flex-wrap:nowrap;
  }
  #aey-offer-sheet-overlay .aey-workflow-dialog .aey-modal-card>footer button,
  #aey-offer-sheet-overlay .aey-document-modal .aey-modal-card>footer button{flex:0 0 auto}
}

@media(max-width:760px){#aey-offer-sheet-overlay .aey-supplier-quote-modal{padding:6px!important}#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card{height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);width:calc(100vw - 12px)}#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header{min-height:64px;padding:13px 14px}#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header strong{font-size:15px}#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>header span{font-size:9px}#aey-offer-sheet-overlay .aey-supplier-quote-form{grid-template-columns:1fr!important;gap:9px!important;padding:11px 13px!important}#aey-offer-sheet-overlay .aey-supplier-quote-form label.wide,#aey-offer-sheet-overlay .aey-supplier-quote-form .wide{grid-column:auto!important}#aey-offer-sheet-overlay .aey-quote-dropzone{min-height:145px!important}#aey-offer-sheet-overlay .aey-quote-links-tools{grid-template-columns:1fr;gap:8px}#aey-offer-sheet-overlay .aey-quote-links>[data-quote-item-list]{max-height:220px}#aey-offer-sheet-overlay .aey-supplier-quote-modal .aey-modal-card>footer{padding:10px 13px calc(10px + env(safe-area-inset-bottom,0px))}}
