/* Computo: shared document, compact navigation and readable measurement ledger. */
.nx-cost-shell{display:flex;flex-direction:column;min-width:0;color:#292438;background:#fff;border:1px solid #ddd7e6;border-radius:8px;overflow:clip}
.nx-cost-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px 12px;border-bottom:1px solid #ece8f1;background:#fff}
.nx-cost-top h2{margin:4px 0!important;font-size:20px!important;font-weight:700}.nx-cost-top p{margin:0;color:#746a82}.nx-cost-eyebrow{font-size:10px;letter-spacing:.08em;font-weight:700;color:#76638e}
.nx-cost-top-actions,.nx-cost-toolbar,.nx-cost-rule-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.nx-cost-export{position:relative}.nx-cost-export>summary{display:block;cursor:pointer;list-style:none;padding:8px 12px;border:1px solid #cfc4df;border-radius:5px;font:600 12px system-ui;color:#543477;background:#f8f5fc}.nx-cost-export[open]>div{position:absolute;z-index:7;right:0;top:calc(100% + 5px);padding:6px;background:white;min-width:210px;border:1px solid #d4c8e3;box-shadow:0 8px 24px #281b4422;border-radius:6px;display:flex;flex-direction:column;gap:4px}.nx-cost-export button{text-align:left;white-space:nowrap}
.nx-cost-kpis{display:grid;grid-template-columns:minmax(220px,1.6fr) repeat(4,minmax(100px,1fr));gap:0;padding:12px 20px;background:#fcfbfe;border-bottom:1px solid #e5deed}.nx-cost-kpi{display:flex!important;flex-direction:column;justify-content:center;gap:4px;align-items:flex-start;padding:6px 14px;border:0!important;border-left:1px solid #e5deed!important;border-radius:0!important;background:transparent!important;text-align:left;min-width:0}.nx-cost-kpi:first-child{border-left:0!important;padding-left:0}.nx-cost-kpi>span{font-size:11px;font-weight:500;color:#71677d}.nx-cost-kpi>strong{font-size:20px;font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums}.nx-cost-kpi.has-issue>strong{color:#a55813}.nx-cost-total>strong{font-size:25px;color:#65409b}.nx-cost-total small{display:inline;font-size:11px;letter-spacing:.04em;color:#71677d}.nx-cost-kpi:hover{background:#f3edf9!important}.nx-cost-kpi:focus-visible{outline:2px solid #7c50b3;outline-offset:2px}
.nx-cost-layout{display:grid;grid-template-columns:185px minmax(0,1fr);min-width:0;align-items:stretch}.nx-cost-nav{padding:14px 10px;background:#f8f6fb;border-right:1px solid #e5deed;display:flex;flex-direction:column;gap:20px}.nx-cost-nav-group{display:flex;flex-direction:column;gap:3px}.nx-cost-nav-group>span{padding:0 8px 6px;color:#776b87;font-size:10px;text-transform:uppercase;letter-spacing:.06em;font-weight:750}.nx-cost-nav [data-cost-tab]{text-align:left;background:transparent;border:1px solid transparent;line-height:1.25;padding:9px 8px;font-size:12px;font-weight:500;white-space:normal}.nx-cost-nav [data-cost-tab][aria-current=page]{background:#ebe3f7;color:#5a2f91;border-color:#d9caef;font-weight:700}.nx-cost-shell .nx-cost-content{padding:18px 20px;overflow:auto;height:auto;min-width:0;max-width:100%;background:#fff;scrollbar-gutter:stable}
.nx-cost-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 12px}.nx-cost-heading h2{font-size:17px!important;margin:0!important}.nx-cost-heading h3{margin:0!important}.nx-cost-heading nav{display:flex;align-items:center;gap:4px}.nx-cost-heading nav button{font-size:11px;padding:5px 8px;background:transparent;border-color:transparent;color:#7c6d8c}.nx-cost-heading nav button[aria-current]{background:#f0e9f8;color:#613899;font-weight:700}.nx-cost-heading nav>span{color:#aaa0b5}.nx-cost-heading h3 small{display:inline;margin-left:6px;font-weight:400;color:#7c6d8c}
.nx-cost-readiness{padding:9px 12px;margin:0 0 14px!important;border-left:3px solid #b3a4cd;background:#faf7fe;color:#665477;font-size:12px!important}.nx-cost-readiness.ready{border-color:#45856a;background:#f3faf6;color:#3c6452}.nx-cost-readiness.partial{border-color:#b88b4f;background:#fffaf1;color:#7c623e}
.nx-cost-table-filters{display:grid;grid-template-columns:minmax(200px,2fr) repeat(3,minmax(120px,1fr)) auto;align-items:end;gap:8px;margin:10px 0}.nx-cost-table-filters label{font-size:11px;margin:0!important}.nx-cost-table-filters>button{align-self:end;margin-bottom:0;min-height:32px}.nx-cost-shell .nx-cost-grid-scroll{max-width:100%;overflow:auto;max-height:58vh;border:1px solid #e2dbe9;border-radius:6px;margin:12px 0 0;overscroll-behavior:contain}.nx-cost-shell .nx-cost-grid{min-width:850px;width:100%;table-layout:fixed;margin:0}.nx-cost-grid th:nth-child(1){width:16%}.nx-cost-grid th:nth-child(2){width:31%}.nx-cost-grid th:nth-child(3){width:5%}.nx-cost-grid th:nth-child(4),.nx-cost-grid th:nth-child(5),.nx-cost-grid th:nth-child(6){width:11%}.nx-cost-grid th:nth-child(7){width:15%}.nx-cost-shell .data-table th{font-size:11px;font-weight:700;background:#f4f1f8}.nx-cost-shell .data-table td{font-size:12px;line-height:1.45;vertical-align:top;white-space:normal}.nx-cost-shell .nx-cost-grid td,.nx-cost-shell .nx-cost-grid th{padding:10px}.nx-cost-grid .nx-cost-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap!important}.nx-cost-grid th:nth-child(n+4):nth-child(-n+6){text-align:right}.nx-cost-grid td>button{display:block;margin:0 0 5px;width:100%;font-size:11px}.nx-cost-grid td>small{font-size:10px;color:#7d7387;line-height:1.4}.nx-cost-grid summary{font-weight:600;line-height:1.45;padding-right:6px}.nx-cost-grid .unpriced td:first-child>strong{color:#93642c}.nx-cost-grid .has-error td:first-child{border-left:3px solid #b34739}.nx-cost-measurements{padding:8px 0 0}.nx-cost-measurements p{font-size:11px!important;border-bottom:1px solid #eee8f3;padding-bottom:8px}.nx-cost-tag{display:inline-block;font-size:10px;margin-top:5px;padding:2px 5px;border-radius:4px;background:#fff2da;color:#8e5715}.nx-cost-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;color:#7b6f87;font-size:11px}.nx-cost-pagination>div{display:flex;align-items:center;gap:10px}.nx-cost-pagination button{padding:5px 9px}.nx-cost-empty{padding:25px;color:#80728f;max-width:560px;margin:auto;text-align:center}
.nx-cost-chapters,.nx-cost-measure-help,.nx-cost-manual-list{margin:12px 0;padding:10px 0;border-top:1px solid #ebe5f0}.nx-cost-chapters summary,.nx-cost-measure-help summary,.nx-cost-manual-list summary{font-size:12px;font-weight:650;color:#705685}.nx-cost-chapter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;margin-top:12px}.nx-cost-chapter-grid>div{border:1px solid #e6dfed;border-radius:5px;padding:10px;display:flex;flex-direction:column;gap:4px}.nx-cost-chapter-grid span{font-size:11px;color:#756780}.nx-cost-chapter-grid strong{font-size:16px}.nx-cost-chapter-grid small{font-size:10px}
.nx-cost-rule-grid{display:grid;grid-template-columns:minmax(250px,1fr) minmax(250px,1fr);gap:14px}.nx-cost-rule-card{padding:14px;border:1px solid #e0d7e9;border-radius:7px;min-width:0;background:#fff}.nx-cost-rule-card h3{display:flex;gap:7px;align-items:center;font-size:13px!important;margin:0 0 12px!important}.nx-cost-rule-card h3>span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;font-size:11px;background:#eee6f8;color:#694598}.nx-cost-rule-measure{grid-column:1/-1}.nx-cost-rule-card label{font-size:11px!important}.nx-cost-rule-card .nx-cost-fields{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:4px 0}.nx-cost-rule-card .nx-cost-fields label{margin:4px 0}.nx-cost-rule-measure>.nx-cost-fields{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));align-items:end}.nx-cost-rule-card [hidden],.nx-cost-content [data-rule-scope-field][hidden]{display:none!important}.nx-cost-rule-card details>summary{font-size:11px}.nx-cost-rule-card fieldset{margin:8px 0!important}.nx-cost-selection{padding:9px 10px;background:#f7f4fb;border-radius:4px;color:#6a517e;margin:0 0 8px!important}.nx-cost-price-info{border-left:2px solid #a98fc6;padding:7px 10px;background:#fbf9fd;color:#6d5681;font:11px/1.5 system-ui}.nx-cost-rule-actions{position:sticky;bottom:0;z-index:4;background:#fff;padding:12px 0;border-bottom:1px solid #e6dfee}.nx-cost-rule-actions button.primary{padding:9px 16px}.nx-cost-existing-filter{padding:8px;background:#faf7ef;font-size:11px;color:#776343}.nx-cost-existing-filter label{display:flex;flex-direction:row;align-items:center}.nx-cost-linked{margin-top:24px}.nx-cost-linked .data-table{min-width:760px;width:100%}.nx-cost-linked .data-table td{max-width:350px}.nx-cost-preview{padding:14px;border:1px solid #b3cbbf;border-radius:7px;background:#f4faf6;margin:14px 0}.nx-cost-preview h3{font-size:14px;margin:0}.nx-cost-alert{padding:10px 12px;border:1px solid #e3cfb2;background:#fffaf2;border-radius:5px;margin:10px 0;font-size:12px}.nx-cost-alert summary{font-weight:650}.nx-cost-alert p{margin:5px 0}.nx-cost-shell button:disabled{opacity:.45;cursor:default}.nx-cost-content #nxRuleCriteria{margin-top:12px;padding-top:10px;border-top:1px solid #eee7f5}.nx-cost-content #nxRuleCriteria .nx-cost-fields{grid-template-columns:1fr 1fr}.nx-cost-content #nxRuleCriteria .nx-cost-fields label:last-of-type{grid-column:1/-1}
@media(max-width:1200px){.nx-cost-layout{grid-template-columns:160px minmax(0,1fr)}.nx-cost-top,.nx-cost-kpis{padding-left:14px;padding-right:14px}.nx-cost-shell .nx-cost-content{padding:14px}.nx-cost-table-filters{grid-template-columns:repeat(2,minmax(140px,1fr))}.nx-cost-table-filters>label:first-child{grid-column:1/-1}.nx-cost-kpis{grid-template-columns:minmax(200px,1.6fr) repeat(4,minmax(70px,1fr))}.nx-cost-kpi{padding-left:10px;padding-right:8px}.nx-cost-kpi>span{font-size:10px}}
@media(max-width:1000px){.nx-cost-layout{grid-template-columns:minmax(0,1fr)}.nx-cost-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-right:0;border-bottom:1px solid #e5deed;padding:10px}.nx-cost-nav-group{gap:2px}.nx-cost-nav [data-cost-tab]{padding:5px 7px;font-size:11px}.nx-cost-nav-group>span{padding-bottom:3px}.nx-cost-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.nx-cost-total{grid-column:1/-1;margin-bottom:8px}.nx-cost-kpi:nth-child(2){border-left:0!important;padding-left:0}.nx-cost-rule-grid{grid-template-columns:minmax(0,1fr)}.nx-cost-rule-measure{grid-column:auto}.nx-cost-top h2{font-size:17px!important}}
@media(max-width:600px){.nx-cost-top{align-items:flex-start;flex-direction:column;padding:12px}.nx-cost-kpis{padding:10px 12px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nx-cost-kpi{border:0!important;padding:0}.nx-cost-total{margin:0}.nx-cost-kpi>strong{font-size:18px}.nx-cost-total>strong{font-size:24px}.nx-cost-shell .nx-cost-content{padding:10px}.nx-cost-nav{gap:3px}.nx-cost-nav-group>span{font-size:9px;padding-left:4px}.nx-cost-nav [data-cost-tab]{padding:5px 4px;font-size:10px}.nx-cost-heading{gap:6px}.nx-cost-heading nav{width:100%}.nx-cost-rule-card{padding:10px}.nx-cost-rule-card .nx-cost-fields,.nx-cost-table-filters{grid-template-columns:minmax(0,1fr)}.nx-cost-table-filters>label:first-child{grid-column:auto}.nx-cost-rule-actions{position:static}.nx-cost-pagination{align-items:flex-start}.nx-cost-pagination>span{max-width:60%}.nx-cost-export[open]>div{left:0;right:auto}.nx-cost-grid-scroll{max-height:62vh!important}}
