.v43-unit-table {table-layout:fixed;min-width:1220px;width:100%;border-collapse:collapse}
.v43-unit-table th:nth-child(1){width:15%}
.v43-unit-table th:nth-child(2){width:16%}
.v43-unit-table th:nth-child(3){width:13%}
.v43-unit-table th:nth-child(4){width:13%}
.v43-unit-table th:nth-child(5){width:9%}
.v43-unit-table th:nth-child(6){width:6%}
.v43-unit-table th:nth-child(7){width:22%;min-width:205px}
.v43-unit-table th:nth-child(8){width:4%}
.v43-unit-table th:nth-child(9){width:2%}
.v43-unit-table td,.v43-unit-table th{min-width:0;box-sizing:border-box;padding:9px 7px;vertical-align:middle}
.v43-unit-table th{white-space:normal;line-height:1.35}
.v43-unit-table input,.v43-unit-table select{box-sizing:border-box;max-width:100%;min-width:0;width:100%}
.v43-unit-table .v17-size-cell{display:table-cell;min-width:0}
.v45-size-fields{display:flex;align-items:center;gap:5px;width:100%;min-width:0}
.v43-unit-table .v17-size-cell input{flex:1 1 0;min-width:62px;width:0}
.v43-unit-table .v17-unit{flex:0 0 auto}
.v43-unit-table td:nth-child(6) input,.v43-unit-table td:nth-child(8) input{max-width:100%}
.v43-unit-table td:nth-child(9) .remove{padding:3px 5px;min-width:23px}
.v43-accommodation-title{padding:10px 12px;color:#346e59;font-size:13px}
.v43-assumption-heading td{font-weight:700;background:#eff7f2;color:#27684d}
.v43-allocation-actions{display:flex;gap:3px;flex-wrap:wrap}
.v43-group-header td{padding:9px 12px!important;background:#e7f2eb!important;color:#28684e!important;border-top:1px solid #cdded2}
.v43-group-header td>span{float:right;display:flex;gap:6px}
.v43-group-header strong{font-size:13px;line-height:1.35}
.v45-group-input td{vertical-align:middle;text-align:left}
.v45-group-input td.calculated{text-align:right;white-space:nowrap}
.v45-group-input input,.v45-group-input select{box-sizing:border-box;max-width:100%;width:100%;min-width:65px}
.v45-group-label{display:flex;align-items:center;gap:8px;justify-content:space-between;min-width:0;flex-wrap:wrap}
.v45-group-label>strong{white-space:nowrap}
.v45-group-buttons{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.v45-subgroup td{background:#f1f7f3!important}
.category-table .main-head .head-label{white-space:nowrap;flex:0 0 auto}
.category-table .main-head .group-toggle{gap:7px;flex-wrap:wrap}
.category-table.v9-table{min-width:1120px;table-layout:fixed}
.v9-table th:nth-child(1){width:43%}
.v9-table th:nth-child(2){width:15%}
.v9-table th:nth-child(3){width:9%}
.v9-table th:nth-child(4){width:9%}
.v9-table th:nth-child(5){width:10%}
.v9-table th:nth-child(6){width:9%}
.v9-table th:nth-child(7){width:5%}
.v9-table .main-head .group-toggle{display:flex!important;flex-wrap:wrap!important;justify-content:flex-start!important;align-items:center!important;gap:8px!important;min-width:0}
.v9-table .main-head .head-label{white-space:normal!important;overflow-wrap:anywhere;min-width:0;flex:0 1 auto!important}
.v9-table .main-head .allocation-v8-buttons{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:4px!important;white-space:normal!important;min-width:0}
.v9-table .main-head td:first-child{overflow:visible}
.v45-group-input td{background:#eaf4ed!important;border-bottom:1px solid #c7dccc!important}
.v45-subgroup td{background:#f3f8f4!important}
.v45-group-input .detail-td{padding-left:26px!important}
.v45-subgroup .detail-td{padding-left:42px!important;border-left:3px solid #92baa4}
.v45-group-input .v45-group-label>strong::before{content:'▸';color:#589375;margin-right:7px}
.v45-subgroup .v45-group-label>strong::before{content:'↳';color:#78a78f}
.v45-group-input .cost-input,.v45-group-input .cost-select,.v45-group-input select{height:35px;max-width:100%;box-sizing:border-box}
.v45-group-input .cost-input{text-align:right}
.v9-table tr.main-head>td{border-top:3px solid #d4e4da}
.v46-cost-label{display:flex;align-items:center;justify-content:space-between;gap:9px;flex-wrap:wrap;min-width:0}
.v46-cost-label>span:first-child{min-width:0;overflow-wrap:anywhere}
.v46-cost-actions{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap;flex:0 0 auto}
.v46-cost-actions .allocation-action{min-width:0}
.v46-unit-item td{background:#f8fbf9!important}
.v46-unit-item td:first-child{padding-left:48px!important;border-left:3px solid #afcfbb}
.v45-group-input td:first-child{border-left:3px solid #78ac8e}
.v45-subgroup td:first-child{border-left:3px solid #b2cfba}
.v9-table .v46-cost-parent td{background:#faf7ef!important;border-bottom:1px solid #e9e0cf}
.v9-table .v46-cost-parent .detail-td{padding-left:20px!important}
.v9-table .v45-group-input td{background:#e6f1fa!important;border-bottom:1px solid #c9dce9!important}
.v9-table .v45-subgroup td{background:#f1edfa!important;border-bottom:1px solid #dbd3e9!important}
.v9-table .v45-group-input td:first-child{border-left:4px solid #6f9dbb!important}
.v9-table .v45-subgroup td:first-child{border-left:4px solid #9f88c4!important}
.v9-table .v46-unit-item td{background:#fff!important;border-bottom:1px solid #e7eae7}
.category-table.v9-table{min-width:1210px}
.v9-table .main-head .group-toggle{flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important}
.v9-table .main-head .allocation-v8-buttons{flex-wrap:nowrap!important;flex:0 0 auto!important}
.v9-table .main-head .head-label{flex:0 1 auto!important;max-width:210px;overflow-wrap:normal}
.v46-cost-label{flex-wrap:nowrap;justify-content:flex-start}
.v46-cost-label>span:first-child{flex:0 1 auto;max-width:230px}
.v46-cost-actions{flex:0 0 auto;flex-wrap:nowrap}
.v9-table .qty-value .v11-locked,.v9-table .qty-value .v10-total-label{min-height:35px;width:100%;padding:8px 6px;box-sizing:border-box}
.v9-table .qty-value{font-size:12px;white-space:nowrap}
.v45-group-input .v45-group-label>strong{font-size:13px;font-weight:750}
.v9-table .v45-group-input .detail-td{padding-left:34px!important}
.v9-table .v45-subgroup .detail-td{padding-left:52px!important}
.v9-table .v46-unit-item .detail-td{padding-left:66px!important}
.v45-group-label{flex-wrap:nowrap;justify-content:flex-start}
.v45-group-buttons{flex-wrap:nowrap}
.v45-group-input .cost-select,.v45-group-input select{font-size:12px;width:100%}
.v9-table tr>td:nth-child(2) select{display:block;width:100%;min-width:0;max-width:100%;height:38px;padding:0 9px;box-sizing:border-box;border-radius:8px;font-size:13px}
.v9-table tr>td:nth-child(3) select{display:block;width:100%;min-width:0;max-width:100%;height:38px;box-sizing:border-box;font-size:12px}
.v9-table .qty-value .v11-locked,.v9-table .qty-value .v10-total-label{min-height:38px;height:38px;line-height:20px}
.unit-table.v17-provision-table.v43-unit-table{width:100%!important;min-width:1290px!important;table-layout:fixed!important;border-collapse:collapse}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(1){width:15%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(2){width:15%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(3){width:12%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(4){width:12%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(5){width:11%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(6){width:7%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(7){width:20%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(8){width:4%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(9){width:4%!important}
.unit-table.v17-provision-table.v43-unit-table td{display:table-cell!important;position:static!important;overflow:hidden!important;vertical-align:middle!important;white-space:normal!important}
.unit-table.v17-provision-table.v43-unit-table .v17-size-cell{display:table-cell!important;min-width:0!important;max-width:none!important}
.unit-table.v17-provision-table.v43-unit-table .v45-size-fields{display:flex!important;align-items:center;gap:4px;width:100%;min-width:0}
.unit-table.v17-provision-table.v43-unit-table .v45-size-fields input{box-sizing:border-box!important;flex:1 1 0!important;width:0!important;min-width:59px!important;max-width:none!important}
.unit-table.v17-provision-table.v43-unit-table td:nth-child(8) input{min-width:0!important;width:100%!important;max-width:100%!important;padding:7px 4px!important}
.unit-table.v17-provision-table.v43-unit-table td:nth-child(9) button{min-width:22px!important;width:24px!important;padding:2px!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(1){width:14%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(2){width:14%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(3){width:11%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(4){width:10%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(5){width:9%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(6){width:7%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(7){width:26%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(8){width:5%!important}
.unit-table.v17-provision-table.v43-unit-table th:nth-child(9){width:4%!important}
.unit-table.v17-provision-table.v43-unit-table .v45-size-fields input{min-width:78px!important}
.v9-table .v49-empty{background:inherit!important}
/* V50: one fixed editor grid, with the descriptive column taking the spare width. */
.category-table.v9-table{min-width:1220px;table-layout:fixed!important}
.v9-table th:nth-child(1){width:50%!important}
.v9-table th:nth-child(2){width:14%!important}
.v9-table th:nth-child(3){width:10%!important}
.v9-table th:nth-child(4){width:7%!important}
.v9-table th:nth-child(5){width:8%!important}
.v9-table th:nth-child(6){width:9%!important}
.v9-table th:nth-child(7){width:2%!important}
.v9-table td:nth-child(6),.v9-table th:nth-child(6){text-align:right!important;white-space:nowrap!important;font-variant-numeric:tabular-nums}
.v9-table .main-head .group-toggle,.v9-table .v46-cost-label,.v9-table .v45-group-label{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;width:100%;min-width:0}
.v9-table .main-head .head-label,.v9-table .v46-cost-label>span:first-child,.v9-table .v45-group-label>strong{max-width:none!important;min-width:0!important;overflow-wrap:anywhere;white-space:normal!important}
.v9-table .main-head .allocation-v8-buttons,.v9-table .v46-cost-actions,.v9-table .v45-group-buttons{justify-self:end!important;display:flex!important;gap:5px!important;flex-wrap:nowrap!important;white-space:nowrap!important}
.v9-table .v45-group-input .detail-td{padding-left:27px!important}
.v9-table .v45-subgroup .detail-td{padding-left:42px!important}
.v9-table .v46-unit-item .detail-td{padding-left:58px!important}
.v9-table .v45-group-label>strong::before{content:'↳'!important;margin-right:7px!important;color:#638d76!important}
.v9-table .v45-subgroup .v45-group-label>strong::before{content:'↳'!important}
.v9-table .main-head td{background:#deebe2!important}
.v9-table .v46-cost-parent td{background:#e8f1ea!important;border-color:#d6e5d9!important}
.v9-table .v45-group-input td{background:#edf5ef!important;border-color:#dce9df!important}
.v9-table .v45-subgroup td{background:#f2f7f3!important;border-color:#e1ebe4!important}
.v9-table .v46-unit-item td,.v9-table tr.v11-unit-row:not(.v43-group-header) td{background:#f5f8f6!important;border-bottom:1px solid #e0e9e2!important}
.v9-table tr.v11-unit-row:not(.v43-group-header) td:first-child{border-left:3px solid #b3cdbb}
.v9-table td.qty-value,.v9-table td:nth-child(4),.v9-table td:nth-child(4) .v11-locked,.v9-table td:nth-child(4) .v10-total-label{box-sizing:border-box;text-align:center!important;font-size:12px!important;font-variant-numeric:tabular-nums;white-space:nowrap!important}
.v9-table td:nth-child(4) .v11-locked,.v9-table td:nth-child(4) .v10-total-label{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-width:0!important;padding:7px 3px!important}
.v9-table td:nth-child(4) input{box-sizing:border-box;width:100%!important;min-width:0!important;text-align:center!important}
/* V51: wider editor controls without returning excess width to totals. */
.v9-table th:nth-child(1){width:41%!important}
.v9-table th:nth-child(2){width:13%!important}
.v9-table th:nth-child(3){width:9%!important}
.v9-table th:nth-child(4){width:14%!important}
.v9-table th:nth-child(5){width:12%!important}
.v9-table th:nth-child(6){width:9%!important}
.v9-table th:nth-child(7){width:2%!important}
.v9-table td:nth-child(5) input{box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:none!important;text-align:right!important}
.v9-table .main-head .allocation-v8-buttons,.v9-table .v46-cost-actions,.v9-table .v45-group-buttons{display:grid!important;grid-template-columns:repeat(4,58px)!important;gap:4px!important;width:244px!important;justify-content:end!important;align-items:center!important}
.v9-table .cascade-slot51{box-sizing:border-box!important;min-width:0!important;width:58px!important;justify-self:center!important;text-align:center!important;padding-left:3px!important;padding-right:3px!important;white-space:nowrap!important}
.v9-table .cascade-costs51{grid-column:1}
.v9-table .cascade-type51{grid-column:2}
.v9-table .cascade-tenure51{grid-column:3}
.v9-table .cascade-units51{grid-column:4}
/* The gutter is genuinely white: child colours begin further to the right. */
.v9-table .v46-cost-parent td:first-child{background:linear-gradient(to right,#fff 0 13px,#e8f1ea 13px)!important;padding-left:29px!important;border-left:0!important}
.v9-table .v45-group-input:not(.v45-subgroup) td:first-child{background:linear-gradient(to right,#fff 0 24px,#edf5ef 24px)!important;padding-left:39px!important;border-left:0!important}
.v9-table .v45-subgroup td:first-child{background:linear-gradient(to right,#fff 0 36px,#f2f7f3 36px)!important;padding-left:52px!important;border-left:0!important}
.v9-table .v46-unit-item td:first-child,.v9-table tr.v11-unit-row:not(.v43-group-header) td:first-child{background:linear-gradient(to right,#fff 0 46px,#f5f8f6 46px)!important;padding-left:62px!important;border-left:0!important}
/* V52: stronger same-hue depth, a dark vertical rail and item boundaries. */
.v9-table .main-head td{background:#cfe4d6!important}
.v9-table .v46-cost-parent td{background:#dcebe0!important;border-top:3px solid white!important}
.v9-table .v45-group-input td{background:#e6f1e9!important}
.v9-table .v45-subgroup td{background:#eff6f0!important}
.v9-table .v46-unit-item td,.v9-table tr.v11-unit-row:not(.v43-group-header) td{background:#f5f8f6!important}
.v9-table .v46-cost-parent td:first-child{background:linear-gradient(to right,#fff 0 12px,#28714e 12px 16px,#dcebe0 16px)!important;padding-left:30px!important}
.v9-table .v45-group-input:not(.v45-subgroup) td:first-child{background:linear-gradient(to right,#fff 0 23px,#438d63 23px 27px,#e6f1e9 27px)!important;padding-left:41px!important}
.v9-table .v45-subgroup td:first-child{background:linear-gradient(to right,#fff 0 35px,#6aa17e 35px 39px,#eff6f0 39px)!important;padding-left:53px!important}
.v9-table .v46-unit-item td:first-child,.v9-table tr.v11-unit-row:not(.v43-group-header) td:first-child{background:linear-gradient(to right,#fff 0 45px,#91b69e 45px 49px,#f5f8f6 49px)!important;padding-left:63px!important}
.v9-table tr.v46-cost-parent+tr.v46-cost-parent td{border-top:3px solid white!important}
.v9-table tr.main-head:not(:first-child) td{border-top:4px solid white!important}
.v9-table td:nth-child(n+2):nth-child(-n+6){padding-left:10px!important;padding-right:10px!important}
.v9-table td:nth-child(5) input.qty-rate,.v9-table td:nth-child(5) input.cost-input{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;height:38px!important;box-sizing:border-box!important}
/* V53: progressively lighter green, visible hierarchy rails and usable gutter controls. */
.v9-table .main-head td{background:#acd2ba!important}
.v9-table .v46-cost-parent td{background:#cce5d5!important}
.v9-table .v45-group-input td{background:#e1f0e6!important}
.v9-table .v45-subgroup td{background:#eff8f1!important}
.v9-table .v46-unit-item td,.v9-table tr.v11-unit-row:not(.v43-group-header) td{background:#fbfdfb!important}
.v9-table .v46-cost-parent td:first-child{background:linear-gradient(to right,#fff 0 24px,#246c49 24px 28px,#cce5d5 28px)!important;padding-left:43px!important}
.v9-table .v45-group-input:not(.v45-subgroup) td:first-child{background:linear-gradient(to right,#fff 0 36px,#4a9567 36px 40px,#e1f0e6 40px)!important;padding-left:56px!important}
.v9-table .v45-subgroup td:first-child{background:linear-gradient(to right,#fff 0 48px,#79ac89 48px 52px,#eff8f1 52px)!important;padding-left:68px!important}
.v9-table .v46-unit-item td:first-child,.v9-table tr.v11-unit-row:not(.v43-group-header) td:first-child{background:linear-gradient(to right,#fff 0 60px,#a8cab2 60px 64px,#fbfdfb 64px)!important;padding-left:80px!important}
.v9-table .main-head+.v46-cost-parent td{border-top:0!important}
.v9-table .v53-gutter-cell{position:relative!important}
.v9-table .v53-gutter-toggle{position:absolute!important;top:50%!important;transform:translateY(-50%);width:18px;height:19px;line-height:16px;text-align:center;background:#fff;border:1px solid #a4c7b0;border-radius:4px;color:#246c49;font-size:12px;font-weight:800;padding:0;cursor:pointer;z-index:1}
.v9-table .v53-gutter-toggle.depth-cost{left:3px!important}
.v9-table .v53-gutter-toggle.depth-type{left:15px!important}
.v9-table .v53-gutter-toggle.depth-tenure{left:27px!important}
.v9-table .v53-gutter-toggle:hover{background:#e2f1e6;border-color:#246c49}
.v9-table td:nth-child(5){padding-left:10px!important;padding-right:10px!important;text-align:right!important}
.v9-table td:nth-child(5) input,.v9-table .v45-group-input td:nth-child(5) input{margin:0!important;float:none!important;width:100%!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important}
/* V54: the darkest row is always the parent; the rail toggle only hides descendants. */
.v9-table tr.main-head>td,.v9-table tbody>tr.main-head:first-child>td{background:#8fbea1!important}
.v9-table tr.v46-cost-parent>td{background:#c7e1d0!important}
.v9-table tr.v43-group-header:not(.v45-subgroup)>td{background:#e0efe5!important}
.v9-table tr.v43-group-header.v45-subgroup>td{background:#f0f7f1!important}
.v9-table tr.v11-unit-row:not(.v43-group-header)>td{background:#fbfdfb!important}
.v9-table .v46-cost-parent td:first-child{background:linear-gradient(to right,#fff 0 24px,#246c49 24px 28px,#c7e1d0 28px)!important}
.v9-table .v45-group-input:not(.v45-subgroup) td:first-child{background:linear-gradient(to right,#fff 0 36px,#4a9567 36px 40px,#e0efe5 40px)!important}
.v9-table .v45-subgroup td:first-child{background:linear-gradient(to right,#fff 0 48px,#79ac89 48px 52px,#f0f7f1 52px)!important}
.v9-table .v54-visibility-hidden{display:none!important}
.v9-table .v53-gutter-toggle.depth-type{left:9px!important}
.v9-table .v53-gutter-toggle.depth-tenure{left:15px!important}
/* V55: softer parent contrast and a single explicit indentation scale. */
.category-table.v9-table tr.main-head>td{background:#b8d9c4!important;color:#205c43!important}
.category-table.v9-table tr.main-head>td.calculated,.category-table.v9-table tr.main-head>td:nth-child(6){color:#164e37!important;font-weight:800!important}
.category-table.v9-table tr.v46-cost-parent>td{background:#d3e9db!important}
.category-table.v9-table tr.v43-group-header:not(.v45-subgroup)>td{background:#e6f2e9!important}
.category-table.v9-table tr.v43-group-header.v45-subgroup>td{background:#f1f8f2!important}
.category-table.v9-table tr.v11-unit-row:not(.v43-group-header)>td{background:#fbfdfb!important}
.category-table.v9-table tr.v46-cost-parent>td:first-child{background:linear-gradient(to right,#fff 0 30px,#357b56 30px 34px,#d3e9db 34px)!important;padding-left:50px!important;border-left:0!important}
.category-table.v9-table tr.v45-group-input:not(.v45-subgroup)>td:first-child{background:linear-gradient(to right,#fff 0 46px,#5b9871 46px 50px,#e6f2e9 50px)!important;padding-left:66px!important;border-left:0!important}
.category-table.v9-table tr.v45-group-input.v45-subgroup>td:first-child{background:linear-gradient(to right,#fff 0 62px,#83ae91 62px 66px,#f1f8f2 66px)!important;padding-left:82px!important;border-left:0!important}
.category-table.v9-table tr.v11-unit-row:not(.v43-group-header)>td:first-child{background:linear-gradient(to right,#fff 0 78px,#b4d2bd 78px 82px,#fbfdfb 82px)!important;padding-left:98px!important;border-left:0!important}
.category-table.v9-table .v53-gutter-toggle.depth-cost{left:6px!important}
.category-table.v9-table .v53-gutter-toggle.depth-type{left:14px!important}
.category-table.v9-table .v53-gutter-toggle.depth-tenure{left:22px!important}
/* The currency/percent adornment wrapper used to cap at 125px, offsetting
   typology and tenure rates against plain unit-row inputs. */
.category-table.v9-table td:nth-child(5)>.v13-rate-shell,.category-table.v9-table td:nth-child(5) .v13-rate-shell{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
.category-table.v9-table td:nth-child(5)>.v13-rate-shell>input,.category-table.v9-table td:nth-child(5) input.qty-rate{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;box-sizing:border-box!important}
/* V56: 30px of *new* gutter per level, with the toggle centred within it. */
.category-table.v9-table tr.main-head>td{background:#c8e3d2!important}
.category-table.v9-table tr.main-head>td:nth-child(6){color:#164e37!important}
.category-table.v9-table tr.v46-cost-parent>td{background:#d9ecdf!important}
.category-table.v9-table tr.v43-group-header:not(.v45-subgroup)>td{background:#e9f4ec!important}
.category-table.v9-table tr.v43-group-header.v45-subgroup>td{background:#f3f9f4!important}
.category-table.v9-table tr.v11-unit-row:not(.v43-group-header)>td{background:#fbfdfb!important}
.category-table.v9-table tr.v46-cost-parent>td:first-child{background:linear-gradient(to right,#fff 0 30px,#488662 30px 34px,#d9ecdf 34px)!important;padding-left:51px!important}
.category-table.v9-table tr.v45-group-input:not(.v45-subgroup)>td:first-child{background:linear-gradient(to right,#fff 0 60px,#6ca281 60px 64px,#e9f4ec 64px)!important;padding-left:81px!important}
.category-table.v9-table tr.v45-group-input.v45-subgroup>td:first-child{background:linear-gradient(to right,#fff 0 90px,#96bba1 90px 94px,#f3f9f4 94px)!important;padding-left:111px!important}
.category-table.v9-table tr.v11-unit-row:not(.v43-group-header)>td:first-child{background:linear-gradient(to right,#fff 0 120px,#bfd7c5 120px 124px,#fbfdfb 124px)!important;padding-left:141px!important}
.category-table.v9-table .v53-gutter-toggle.depth-cost{left:6px!important}
.category-table.v9-table .v53-gutter-toggle.depth-type{left:36px!important}
.category-table.v9-table .v53-gutter-toggle.depth-tenure{left:66px!important}
/* V57: Purchase Price is a true root level, matching the SDLT background. */
.category-table.v9-table tbody>tr.v57-purchase-root.main-head>td{background:#c8e3d2!important}
.category-table.v9-table tbody>tr.v57-purchase-root.main-head>td:first-child{background:linear-gradient(to right,#fff 0 30px,#488662 30px 34px,#c8e3d2 34px)!important;padding-left:52px!important;position:relative!important}
.category-table.v9-table .v53-gutter-toggle.depth-root{left:6px!important}
.category-table.v9-table tr.v57-purchase-child.v46-cost-parent>td:first-child{background:linear-gradient(to right,#fff 0 60px,#488662 60px 64px,#d9ecdf 64px)!important;padding-left:81px!important}
.category-table.v9-table tr.v57-purchase-child.v45-group-input:not(.v45-subgroup)>td:first-child{background:linear-gradient(to right,#fff 0 90px,#6ca281 90px 94px,#e9f4ec 94px)!important;padding-left:111px!important}
.category-table.v9-table tr.v57-purchase-child.v45-group-input.v45-subgroup>td:first-child{background:linear-gradient(to right,#fff 0 120px,#96bba1 120px 124px,#f3f9f4 124px)!important;padding-left:141px!important}
.category-table.v9-table tr.v57-purchase-child.v11-unit-row:not(.v43-group-header)>td:first-child{background:linear-gradient(to right,#fff 0 150px,#bfd7c5 150px 154px,#fbfdfb 154px)!important;padding-left:171px!important}

/* V58: purchase extras, laptop-width inputs, and section hierarchy. */
.v9-table .v46-cost-parent .cost-edit-name{box-sizing:border-box;width:100%;min-width:0;font:500 13px Manrope,sans-serif!important;color:#5c7568;background:#fff;border:1px solid #d7e6dc;border-radius:6px;padding:7px 9px;letter-spacing:normal!important}
.input-card>header .v39-input-actions strong.v58-acq-total{font-size:18px!important;font-weight:800;line-height:1.2}
.v9-table tr.v58-purchase-add td{padding-left:66px!important;background:#f6faf7!important}
.v9-table .v11-unit-row .v11-descriptor{font-size:11px!important;line-height:1.5;white-space:normal}
@media(max-width:1600px){
 .cost-responsive{max-width:100%;min-width:0;overflow-x:auto}
 .category-table.v9-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
 .v9-table th:nth-child(1){width:41%!important}.v9-table th:nth-child(2){width:12%!important}.v9-table th:nth-child(3){width:9%!important}.v9-table th:nth-child(4){width:13%!important}.v9-table th:nth-child(5){width:12%!important}.v9-table th:nth-child(6){width:11%!important}.v9-table th:nth-child(7){width:2%!important}
 .v9-table td,.v9-table th{min-width:0!important;box-sizing:border-box}
 .v9-table td:nth-child(2) select,.v9-table td:nth-child(3) select{width:100%!important;min-width:0!important;max-width:100%!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:6px!important;padding-right:12px!important;font-size:11px}
 .v9-table .main-head .allocation-v8-buttons,.v9-table .v46-cost-actions,.v9-table .v45-group-buttons{width:208px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;min-width:0!important}
 .v9-table .cascade-slot51{width:100%!important;min-width:0!important;font-size:10px!important;padding-left:1px!important;padding-right:1px!important}
 .v9-table .v46-cost-label,.v9-table .category-title,.v9-table .group-toggle,.v9-table .v45-group-label{min-width:0!important}
 .v9-table .v13-rate-shell,.v9-table .cost-input,.v9-table .cost-select{min-width:0!important;max-width:100%!important;box-sizing:border-box}
 .v9-table .calculated,.v9-table .amount-cell,.v9-table .category-amount{font-size:12px!important;white-space:nowrap}
}
@media(max-width:1250px){
 .v9-table .main-head .allocation-v8-buttons,.v9-table .v46-cost-actions,.v9-table .v45-group-buttons{width:174px!important;gap:2px!important}
 .v9-table .cascade-slot51{font-size:9px!important;letter-spacing:-.25px!important}
 .v9-table td,.v9-table th{padding-left:5px!important;padding-right:5px!important}
 .v9-table .v57-purchase-child td:first-child,.v9-table .v57-purchase-root td:first-child{padding-right:4px!important}
}
@media(max-width:950px){.category-table.v9-table{min-width:900px!important}}
.category-table.v9-table tr.v57-purchase-child .v53-gutter-toggle.depth-cost{left:36px!important}
.category-table.v9-table tr.v57-purchase-child .v53-gutter-toggle.depth-type{left:66px!important}
.category-table.v9-table tr.v57-purchase-child .v53-gutter-toggle.depth-tenure{left:96px!important}

/* V59: these selectors outrank the older stylesheets loaded later in index.html.
   Keep the four action slots as a grid at laptop widths. */
@media(max-width:1600px){
 html body .cost-responsive{max-width:100%!important;min-width:0!important;overflow-x:auto!important}
 html body .category-table.v9-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
 html body .category-table.v9-table th:nth-child(1){width:41%!important}
 html body .category-table.v9-table th:nth-child(2){width:12%!important}
 html body .category-table.v9-table th:nth-child(3){width:9%!important}
 html body .category-table.v9-table th:nth-child(4){width:13%!important}
 html body .category-table.v9-table th:nth-child(5){width:12%!important}
 html body .category-table.v9-table th:nth-child(6){width:11%!important}
 html body .category-table.v9-table th:nth-child(7){width:2%!important}
 html body .category-table.v9-table .main-head .group-toggle,
 html body .category-table.v9-table .v46-cost-label,
 html body .category-table.v9-table .v45-group-label{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important;flex-wrap:nowrap!important}
 html body .category-table.v9-table .main-head .allocation-v8-buttons,
 html body .category-table.v9-table .v46-cost-actions,
 html body .category-table.v9-table .v45-group-buttons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important;width:208px!important;min-width:0!important;flex:0 0 208px!important;justify-self:end!important;align-items:center!important}
 html body .category-table.v9-table .cascade-slot51{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;font-size:10px!important;padding:7px 1px!important;text-align:center!important;white-space:nowrap!important;flex:initial!important}
 html body .category-table.v9-table td,html body .category-table.v9-table th{min-width:0!important;box-sizing:border-box!important}
 html body .category-table.v9-table td:nth-child(2) select,html body .category-table.v9-table td:nth-child(3) select{min-width:0!important;max-width:100%!important;width:100%!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}
}
@media(max-width:1250px){
 html body .category-table.v9-table .main-head .allocation-v8-buttons,
 html body .category-table.v9-table .v46-cost-actions,
 html body .category-table.v9-table .v45-group-buttons{width:174px!important;flex-basis:174px!important;gap:2px!important}
 html body .category-table.v9-table .cascade-slot51{font-size:9px!important;padding:7px 0!important}
}
@media(max-width:950px){html body .category-table.v9-table{min-width:900px!important}}

/* V60: a real rightmost delete-button column, with the entire button visible. */
html body .category-table.v9-table th:nth-child(1){width:39%!important}
html body .category-table.v9-table th:nth-child(7){width:4%!important}
html body .category-table.v9-table td:nth-child(7){box-sizing:border-box!important;padding:4px 3px!important;text-align:center!important;overflow:visible!important}
html body .category-table.v9-table td:nth-child(7) button.small-icon{box-sizing:border-box!important;display:inline-flex!important;align-items:center;justify-content:center;width:28px!important;height:29px!important;max-width:100%!important;min-width:0!important;padding:0!important;margin:0 auto!important}

/* V61: group labels can occupy the unused cascade-button slots. A tenure
   group has only Units; a type group has Tenure and Units. */
html body .category-table.v9-table .v45-group-label{display:block!important;position:relative!important;min-width:0!important;box-sizing:border-box!important}
html body .category-table.v9-table .v45-group-label .v45-group-buttons{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%);margin:0!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;align-items:center!important}
html body .category-table.v9-table .v45-group-label>strong{display:block!important;box-sizing:border-box!important;width:auto!important;max-width:calc(100% - 53px)!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;white-space:normal!important}
html body .category-table.v9-table .v45-group-label:has(.cascade-tenure51)>strong{max-width:calc(100% - 105px)!important}
html body .category-table.v9-table .v45-group-label:has(.cascade-type51)>strong{max-width:calc(100% - 157px)!important}
html body .category-table.v9-table .v45-group-label:not(:has(.allocation-action))>strong{max-width:100%!important}
@media(max-width:1600px){
 html body .category-table.v9-table th:nth-child(1){width:36%!important}
 html body .category-table.v9-table th:nth-child(2){width:14%!important}
 html body .category-table.v9-table th:nth-child(3){width:10%!important}
 html body .category-table.v9-table th:nth-child(4){width:13%!important}
 html body .category-table.v9-table th:nth-child(5){width:12%!important}
 html body .category-table.v9-table th:nth-child(6){width:11%!important}
 html body .category-table.v9-table th:nth-child(7){width:4%!important}
 html body .category-table.v9-table tbody>tr>td:not(:first-child){padding-left:4px!important;padding-right:4px!important}
 html body .category-table.v9-table tbody>tr>td:first-child{padding-right:5px!important}
 html body .category-table.v9-table .v45-group-label>strong{max-width:calc(100% - 53px)!important}
 html body .category-table.v9-table .v45-group-label:has(.cascade-tenure51)>strong{max-width:calc(100% - 105px)!important}
}
@media(max-width:1250px){
 html body .category-table.v9-table .v45-group-label>strong{max-width:calc(100% - 45px)!important}
 html body .category-table.v9-table .v45-group-label:has(.cascade-tenure51)>strong{max-width:calc(100% - 90px)!important}
}

/* V62: slimmer navigation, compact column proportions and hoverable ellipsis. */
html body .app>.sidebar{width:198px!important;flex:0 0 198px!important;padding:22px 9px!important}
html body .app>.main{min-width:0!important;flex:1 1 0!important}
html body .category-table.v9-table .main-head .head-label,
html body .category-table.v9-table .v46-cost-label>span:first-child,
html body .category-table.v9-table .v45-group-label>strong{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;display:block!important;min-width:0!important}
html body .category-table.v9-table .v46-cost-label>span:first-child{flex:1 1 0!important}
html body .category-table.v9-table .cost-edit-name{min-width:0!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
@media(max-width:1600px){
 html body .category-table.v9-table th:nth-child(1){width:36%!important}
 html body .category-table.v9-table th:nth-child(2){width:15.5%!important}
 html body .category-table.v9-table th:nth-child(3){width:11.75%!important}
 html body .category-table.v9-table th:nth-child(4){width:9.75%!important}
 html body .category-table.v9-table th:nth-child(5){width:12%!important}
 html body .category-table.v9-table th:nth-child(6){width:11%!important}
 html body .category-table.v9-table th:nth-child(7){width:4%!important}
}

/* V63: slimmer, text-only cascade actions and capped editor-column widths. */
html body .category-table.v9-table .main-head .allocation-v8-buttons,
html body .category-table.v9-table .v46-cost-actions,
html body .category-table.v9-table .v45-group-buttons{width:164px!important;min-width:0!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;flex-basis:164px!important}
html body .category-table.v9-table .cascade-slot51{font-size:0!important;padding-left:0!important;padding-right:0!important;letter-spacing:normal!important}
html body .category-table.v9-table .cascade-slot51::after{font-size:10px!important;font-weight:700!important;letter-spacing:normal!important}
html body .category-table.v9-table .cascade-costs51::after{content:'Costs'}
html body .category-table.v9-table .cascade-type51::after{content:'Type'}
html body .category-table.v9-table .cascade-tenure51::after{content:'Ten.'}
html body .category-table.v9-table .cascade-units51::after{content:'Units'}
html body .category-table.v9-table .allocation-action.active{background:#d4ecde!important;border-color:#6ea98b!important;color:#176145!important;box-shadow:inset 0 0 0 1px #9acbb0}
html body .category-table.v9-table .v45-group-label>strong{max-width:calc(100% - 41px)!important}
html body .category-table.v9-table .v45-group-label:has(.cascade-tenure51)>strong{max-width:calc(100% - 84px)!important}
html body .category-table.v9-table .v45-group-label:not(:has(.allocation-action))>strong{max-width:100%!important}
@media(min-width:1350px){
 html body .category-table.v9-table{table-layout:fixed!important;width:100%!important}
 html body .category-table.v9-table th:nth-child(1){width:auto!important}
 html body .category-table.v9-table th:nth-child(2){width:158px!important}
 html body .category-table.v9-table th:nth-child(3){width:104px!important}
 html body .category-table.v9-table th:nth-child(4){width:125px!important}
 html body .category-table.v9-table th:nth-child(5){width:150px!important}
 html body .category-table.v9-table th:nth-child(6){width:135px!important}
 html body .category-table.v9-table th:nth-child(7){width:38px!important}
}

/* V64: values fit without broad empty editor cells; cost labels receive it. */
html body .category-table.v9-table .cascade-costs51::after{content:'Sub'}
html body .category-table.v9-table .main-head .allocation-v8-buttons,
html body .category-table.v9-table .v46-cost-actions,
html body .category-table.v9-table .v45-group-buttons{width:140px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:2px!important;flex-basis:140px!important}
html body .category-table.v9-table .cascade-slot51::after{font-size:10px!important}
html body .category-table.v9-table .main-head .head-label{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;word-break:normal!important;overflow-wrap:normal!important;max-width:100%!important}
html body .category-table.v9-table .v46-cost-label{display:block!important;position:relative!important;min-width:0!important;box-sizing:border-box!important}
html body .category-table.v9-table .v46-cost-actions{position:absolute!important;right:0!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important}
html body .category-table.v9-table .v46-cost-label>span:first-child{display:block!important;box-sizing:border-box!important;max-width:calc(100% - 108px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html body .category-table.v9-table .v46-cost-label:not(:has(.cascade-type51)):not(:has(.cascade-tenure51))>span:first-child{max-width:calc(100% - 36px)!important}
html body .category-table.v9-table .v46-cost-label:has(.cascade-type51):not(:has(.cascade-tenure51))>span:first-child{max-width:calc(100% - 72px)!important}
html body .category-table.v9-table .v45-group-label>strong{max-width:calc(100% - 36px)!important}
html body .category-table.v9-table .v45-group-label:has(.cascade-tenure51)>strong{max-width:calc(100% - 72px)!important}
@media(min-width:1350px){
 html body .category-table.v9-table th:nth-child(1){width:auto!important}
 html body .category-table.v9-table th:nth-child(2){width:150px!important}
 html body .category-table.v9-table th:nth-child(3){width:88px!important}
 html body .category-table.v9-table th:nth-child(4){width:104px!important}
 html body .category-table.v9-table th:nth-child(5){width:124px!important}
 html body .category-table.v9-table th:nth-child(6){width:112px!important}
 html body .category-table.v9-table th:nth-child(7){width:34px!important}
}

/* V65: never let action buttons spill out of their four fixed slots. Restore
   practical editor sizes for currency and full Applied To selections. */
html body .category-table.v9-table .main-head .allocation-v8-buttons,
html body .category-table.v9-table .v46-cost-actions,
html body .category-table.v9-table .v45-group-buttons{display:grid!important;grid-template-columns:repeat(4,38px)!important;column-gap:2px!important;width:158px!important;min-width:158px!important;max-width:158px!important;flex-basis:158px!important;justify-content:end!important;overflow:visible!important}
html body .category-table.v9-table .allocation-action.cascade-slot51{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:0!important;max-width:38px!important;height:28px!important;margin:0!important;padding:0!important;overflow:hidden!important;flex:0 0 38px!important}
html body .category-table.v9-table .allocation-action.cascade-slot51::after{font-size:9px!important;white-space:nowrap!important}
html body .category-table.v9-table .v46-cost-label>span:first-child{max-width:calc(100% - 126px)!important}
html body .category-table.v9-table .v46-cost-label:has(.cascade-type51):not(:has(.cascade-tenure51))>span:first-child{max-width:calc(100% - 86px)!important}
html body .category-table.v9-table .v45-group-label>strong{max-width:calc(100% - 44px)!important}
html body .category-table.v9-table .v45-group-label:has(.cascade-tenure51)>strong{max-width:calc(100% - 84px)!important}
@media(min-width:1350px){
 html body .category-table.v9-table th:nth-child(1){width:auto!important}
 html body .category-table.v9-table th:nth-child(2){width:160px!important}
 html body .category-table.v9-table th:nth-child(3){width:105px!important}
 html body .category-table.v9-table th:nth-child(4){width:125px!important}
 html body .category-table.v9-table th:nth-child(5){width:146px!important}
 html body .category-table.v9-table th:nth-child(6){width:135px!important}
 html body .category-table.v9-table th:nth-child(7){width:36px!important}
}

/* V67: balanced, denser cascade rows and consistent editor typography. */
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail)>td{height:44px!important;padding-top:4px!important;padding-bottom:4px!important;vertical-align:middle!important}
html body .category-table.v9-table .allocation-action.cascade-slot51::after{font-size:10px!important;line-height:1.1!important}
html body .category-table.v9-table tbody>tr>td.qty-value,
html body .category-table.v9-table tbody>tr>td:nth-child(4),
html body .category-table.v9-table tbody>tr>td:nth-child(4) .v11-locked,
html body .category-table.v9-table tbody>tr>td:nth-child(4) .v10-total-label,
html body .category-table.v9-table tbody>tr>td.calculated,
html body .category-table.v9-table tbody>tr>td:nth-child(6){font-size:13px!important;font-variant-numeric:tabular-nums!important}

/* V68: controls must fit the same row height as non-editable cascade headings. */
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail){height:44px!important}
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail)>td{height:44px!important;padding-top:2px!important;padding-bottom:2px!important;line-height:1.3!important}
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail) select,
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail) input:not([type=checkbox]){box-sizing:border-box!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding-top:4px!important;padding-bottom:4px!important;line-height:20px!important;vertical-align:middle!important}
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail) .v11-locked,
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail) .v10-total-label,
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail) .v12-unit-automatic{box-sizing:border-box!important;height:32px!important;min-height:32px!important;padding-top:5px!important;padding-bottom:5px!important;line-height:20px!important}
html body .category-table.v9-table tbody>tr:not(.v9-unit-detail) .v13-rate-shell{box-sizing:border-box!important;height:32px!important;min-height:32px!important;display:flex!important;align-items:center!important}

/* V71: requested compact column widths and cascade action captions. */
html body .category-table.v9-table .cascade-type51::after{content:'Typ'}
html body .category-table.v9-table .cascade-tenure51::after{content:'Ten'}
html body .category-table.v9-table .cascade-units51::after{content:'Unit'}
@media(min-width:1350px){
 html body .category-table.v9-table th:nth-child(2){width:140px!important}
 html body .category-table.v9-table th:nth-child(5){width:130px!important}
 html body .category-table.v9-table th:nth-child(6){width:110px!important}
}

/* V72: consistent desktop columns across the 1600px boundary and compact
   two-line labels on cost and grouping cascades. */
@media(min-width:1200px){
 html body .category-table.v9-table{width:100%!important;table-layout:fixed!important;min-width:0!important}
 html body .category-table.v9-table th:nth-child(1){width:auto!important}
 html body .category-table.v9-table th:nth-child(2){width:140px!important}
 html body .category-table.v9-table th:nth-child(3){width:105px!important}
 html body .category-table.v9-table th:nth-child(4){width:125px!important}
 html body .category-table.v9-table th:nth-child(5){width:130px!important}
 html body .category-table.v9-table th:nth-child(6){width:110px!important}
 html body .category-table.v9-table th:nth-child(7){width:36px!important}
}
html body .category-table.v9-table .v46-cost-label>span:first-child:not(:has(input)),
html body .category-table.v9-table .v45-group-label>strong{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;line-clamp:2!important;
 white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;
 word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;
 font-size:12px!important;line-height:15px!important;max-height:30px!important;
}

/* V73: rate editors must retain the same usable width at every desktop size.
   Older stylesheets cap the currency wrapper at 125px, and the <=1600 rule
   previously masked that cap only on narrower displays. */
@media(min-width:1200px){
 html body .category-table.v9-table td:nth-child(5) .v13-rate-shell,
 html body .category-table.v9-table td:nth-child(5)>.v13-rate-shell,
 html body .category-table.v9-table td:nth-child(5) input.cost-input,
 html body .category-table.v9-table td:nth-child(5) input.qty-rate{
  width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 }
 html body .category-table.v9-table td:nth-child(5) .v13-rate-shell>input{
  flex:1 1 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 }
}
/* Make cost subcategory captions legible, preserving two lines and the
   compact grid whenever the caption fits. */
html body .category-table.v9-table .v46-cost-label>span:first-child:not(:has(input)){
 font-size:13px!important;line-height:16px!important;max-height:32px!important;
}

/* V74: <=1600px already had 4px editor-cell gutters. The default 10px
   padding above that breakpoint made 130px Rate columns display a 110px
   editor instead of the 122px editor seen below 1600px. */
@media(min-width:1601px){
 html body .category-table.v9-table tbody>tr>td:not(:first-child){
  padding-left:4px!important;padding-right:4px!important;
 }
}

/* V75: make the summary amount slightly roomier at every viewport width. */
html body .category-table.v9-table th:nth-child(6){width:120px!important}

/* V75: compact accommodation editors and return their space to unit labels.
   These are stable pixel budgets even when the viewport grows. */
html body .unit-table.v17-provision-table.v43-unit-table{
 width:100%!important;min-width:1050px!important;table-layout:fixed!important;
}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(1){width:auto!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(2){width:150px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(3){width:140px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(4){width:140px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(5){width:87px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(6){width:46px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(7){width:205px!important;min-width:0!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(8){width:76px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(9){width:30px!important}
html body .unit-table.v17-provision-table.v43-unit-table td,
html body .unit-table.v17-provision-table.v43-unit-table th{
 padding-left:4px!important;padding-right:4px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields{
 display:flex!important;align-items:center!important;gap:2px!important;min-width:0!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields input:first-of-type{
 flex:0 1 58px!important;width:58px!important;min-width:48px!important;max-width:58px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields input:nth-of-type(2){
 flex:1 1 78px!important;width:78px!important;min-width:65px!important;max-width:78px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields .v17-unit{
 min-width:0!important;margin:0!important;font-size:10px!important;
}

/* V76: refine accommodation column proportions. */
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(2){width:140px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(4){width:125px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(5){width:92px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(6){width:61px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(8){width:71px!important}

/* V77: final unit schedule refinement. */
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(2){width:135px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(7){width:209px!important;min-width:0!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(8){width:67px!important}
html body .unit-table.v17-provision-table.v43-unit-table td:nth-child(7){padding-right:2px!important}
html body .unit-table.v17-provision-table.v43-unit-table td:nth-child(8){padding-left:2px!important}

/* Cascade actions occupy only their available slots, in their existing order.
   No invisible Tenure placeholder remains when that dimension has one value. */
html body .category-table.v9-table .main-head .allocation-v8-buttons,
html body .category-table.v9-table .v46-cost-actions,
html body .category-table.v9-table .v45-group-buttons{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 justify-content:flex-end!important;gap:2px!important;
}
html body .category-table.v9-table .cascade-slot51{
 grid-column:auto!important;
}

/* Reuse the acquisition cost-detail indentation in the remaining sections. */
html body .category-table.v9-table tr.v77-cost-detail>td:first-child{
 background:linear-gradient(to right,#fff 0 60px,#488662 60px 64px,#d9ecdf 64px)!important;
 padding-left:81px!important;border-left:0!important;
}
html body .category-table.v9-table tr.v77-cost-detail>td{
 background:#d9ecdf!important;
}

/* V78: trim trailing whitespace after sqft while giving its input 5px more. */
html body .unit-table.v17-provision-table.v43-unit-table{min-width:1040px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(7){width:214px!important;min-width:0!important}
html body .unit-table.v17-provision-table.v43-unit-table td:nth-child(7){padding-right:0!important}
html body .unit-table.v17-provision-table.v43-unit-table td:nth-child(8){padding-left:1px!important}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields{
 justify-content:flex-end!important;gap:2px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields input:nth-of-type(2){
 flex:0 0 83px!important;width:83px!important;min-width:65px!important;max-width:83px!important;
}

/* V79: the older nested grid selector otherwise wins over the compact
   action row and puts a lone Unit control in the first slot over the label. */
html body .category-table.v9-table .v45-group-label .v45-group-buttons{
 display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
 justify-content:flex-end!important;gap:2px!important;
}

/* V80: all top-level categories get the same 30px visibility gutter and
   vertical bar as Purchase Price, including SDLT and legal cost sections. */
html body .category-table.v9-table tr.main-head:not(.v57-purchase-root)>td:first-child{
 background:linear-gradient(to right,#fff 0 30px,#488662 30px 34px,#c8e3d2 34px)!important;
 padding-left:52px!important;border-left:0!important;
}
html body .category-table.v9-table tr.v80-add-detail>td{
 background:#f6faf7!important;
}

/* V81: one numeric style regardless of parent, group or leaf row. */
html body .category-table.v9-table tbody>tr>td.calculated,
html body .category-table.v9-table tbody>tr.main-head>td.calculated,
html body .category-table.v9-table tbody>tr.v45-group-input>td.calculated{
 font-size:13px!important;font-weight:700!important;line-height:20px!important;
 font-variant-numeric:tabular-nums!important;text-align:right!important;
 white-space:nowrap!important;
}
html body .category-table.v9-table tbody>tr.v45-group-input>td:nth-child(3) .v11-locked,
html body .category-table.v9-table tbody>tr.v45-group-input>td:nth-child(3) select.v9-applied{
 display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
 box-sizing:border-box!important;
}

/* V83: symmetrical spacing around both size editors, each 5px wider.
   Header and editors use the same 214px size column boundaries. */
html body .unit-table.v17-provision-table.v43-unit-table td:nth-child(7){
 padding-left:4px!important;padding-right:4px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table td:nth-child(8){padding-left:4px!important}
html body .unit-table.v17-provision-table.v43-unit-table th:nth-child(7){
 width:214px!important;min-width:0!important;padding-left:4px!important;padding-right:4px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields{
 justify-content:center!important;gap:2px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields input:first-of-type{
 flex:0 0 63px!important;width:63px!important;min-width:63px!important;max-width:63px!important;
}
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields input:nth-of-type(2){
 flex:0 0 88px!important;width:88px!important;min-width:88px!important;max-width:88px!important;
}

/* V84: keep the purchase Add component strip inside the same 60px inset
   as the cost-detail rows immediately above it. */
html body .category-table.v9-table tr.v58-purchase-add>td{
 background:linear-gradient(to right,#fff 0 60px,#f6faf7 60px)!important;
}

/* V85: position each non-purchase Add item row inside the same cascade
   indentation as its detailed cost lines. */
html body .category-table.v9-table tr.v80-add-detail>td{
 background:linear-gradient(to right,#fff 0 60px,#488662 60px 64px,#f6faf7 64px)!important;
 padding-left:81px!important;
}

/* V88: the acquisition grid is the presentation standard for Works,
   Grants, Operating Expenditure and Other Income cost details. */
html body .category-table.v9-table tr.v77-cost-detail>td{
 height:44px!important;padding-top:2px!important;padding-bottom:2px!important;
 vertical-align:middle!important;border-bottom:2px solid #fff!important;
}
html body .category-table.v9-table tr.v77-cost-detail>td.detail-td{
 color:#5c7669!important;font-size:13px!important;font-weight:650!important;
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body .category-table.v9-table tr.v80-add-detail>td{
 height:44px!important;padding-top:3px!important;padding-bottom:3px!important;
 border-bottom:2px solid #fff!important;
}
/* Both size controls are number inputs; neither should spontaneously shift
   digits right as its value changes length. */
html body .unit-table.v17-provision-table.v43-unit-table .v45-size-fields input{
 text-align:left!important;font-variant-numeric:tabular-nums!important;
}

/* V90 cost items use their own allocation action band and the same
   increasingly pale stepped hierarchy as Acquisition. */
html body .category-table.v9-table .v90-label{display:flex;align-items:center;gap:5px;min-width:0;width:100%}
html body .category-table.v9-table .v90-item-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .category-table.v9-table .v90-item-name>input{box-sizing:border-box;max-width:100%!important;min-width:0!important}
html body .category-table.v9-table .v90-actions{display:flex;align-items:center;justify-content:flex-end;gap:2px;flex-shrink:0;margin-left:auto}
html body .category-table.v9-table .v90-action{width:38px!important;min-width:38px!important;max-width:38px!important;height:28px!important;padding:0!important;font-size:10px!important}
html body .category-table.v9-table tr.v90-parent>td:nth-child(2)>*,
html body .category-table.v9-table tr.v90-parent>td:nth-child(3)>*,
html body .category-table.v9-table tr.v90-parent>td:nth-child(5)>*{visibility:hidden!important}
html body .category-table.v9-table tr.v90-parent>td:nth-child(4){font-size:0!important}
html body .category-table.v9-table tr.v90-child>td{height:44px!important;padding-top:2px!important;padding-bottom:2px!important;vertical-align:middle!important;border-bottom:2px solid #fff!important;background:#e9f4ed!important}
html body .category-table.v9-table tr.v90-child>td:first-child{background:linear-gradient(to right,#fff 0 90px,#90bba0 90px 94px,#e9f4ed 94px)!important;padding-left:108px!important}
html body .category-table.v9-table tr.v90-depth-3>td{background:#f2f8f4!important}
html body .category-table.v9-table tr.v90-depth-3>td:first-child{background:linear-gradient(to right,#fff 0 120px,#accfba 120px 124px,#f2f8f4 124px)!important;padding-left:137px!important}
html body .category-table.v9-table tr.v90-depth-4>td{background:#f9fbfa!important}
html body .category-table.v9-table tr.v90-depth-4>td:first-child{background:linear-gradient(to right,#fff 0 150px,#bed9c7 150px 154px,#f9fbfa 154px)!important;padding-left:171px!important}

/* V91: override the old first-category dark cell selector. The uninterrupted
   dark rectangle was specific to Works' first expanded category row. */
html body .category-table.v9-table tbody>tr.main-head>td:not(:first-child){background:#c8e3d2!important}
html body .category-table.v9-table tr.v90-child .v90-readonly-basis,
html body .category-table.v9-table tr.v90-child .v90-readonly-scope{
 display:flex!important;align-items:center!important;width:100%!important;height:34px!important;
 box-sizing:border-box!important;padding:0 9px!important;border:1px solid #d5e2d9!important;
 border-radius:7px!important;background:#fff!important;color:#243a30!important;font-size:12px!important;
}
/* Area bases always apply to Total; present that fixed field at the same
   height and visual weight as the adjacent editable Applied To controls. */
html body .category-table.v9-table tr.v90-child .v90-readonly-scope{
 height:38px!important;min-height:38px!important;border:1px solid #d5e0d8!important;
 background:#f1f5f2!important;color:#61796c!important;font-weight:600!important;
}

/* V94: any row actively cascading into visible children is a heading/total,
   not another editable input row. Hide all four control columns while keeping
   the cell backgrounds, action buttons and calculated amount aligned. */
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(2)>*,
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(3)>*,
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(4)>*,
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(5)>*,
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(2)>*,
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(3)>*,
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(4)>*,
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(5)>*{display:none!important}
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(2),
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(3),
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(4),
html body .category-table.v9-table tbody>tr.v90-parent>td:nth-child(5),
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(2),
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(3),
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(4),
html body .category-table.v9-table tbody>tr.v94-expanded-parent>td:nth-child(5){font-size:0!important}

/* V95: explicit 30px indentation steps for generated Works/Grant/OPEX
   descendants. These selectors win over legacy detail-td background rules. */
html body .category-table.v9-table tbody>tr.v90-depth-2>td.detail-td{
 background:linear-gradient(to right,#fff 0 90px,#6ca281 90px 94px,#e9f4ed 94px)!important;
 padding-left:111px!important;
}
html body .category-table.v9-table tbody>tr.v90-depth-3>td.detail-td{
 background:linear-gradient(to right,#fff 0 120px,#96bba1 120px 124px,#f2f8f4 124px)!important;
 padding-left:141px!important;
}
html body .category-table.v9-table tbody>tr.v90-depth-4>td.detail-td{
 background:linear-gradient(to right,#fff 0 150px,#bfd7c5 150px 154px,#f9fbfa 154px)!important;
 padding-left:171px!important;
}

/* V96: separate gutter visibility toggles at cost-item, type and tenure
   depths, matching the Acquisition +/- rail without changing allocation state. */
html body .category-table.v9-table tbody>tr.v90-parent>td.detail-td,
html body .category-table.v9-table tbody>tr.v90-child>td.detail-td{position:relative!important;overflow:visible!important}
html body .category-table.v9-table .v96-gutter-toggle{
 position:absolute!important;top:50%!important;transform:translateY(-50%)!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:18px!important;min-width:18px!important;height:20px!important;
 border:1px solid #afd0bb!important;border-radius:5px!important;background:#fff!important;
 color:#207351!important;font-size:12px!important;line-height:1!important;font-weight:600!important;
 padding:0!important;margin:0!important;z-index:3!important;cursor:pointer!important;
}
html body .category-table.v9-table .v96-gutter-toggle.v96-depth-1{left:36px!important}
html body .category-table.v9-table .v96-gutter-toggle.v96-depth-2{left:66px!important}
html body .category-table.v9-table .v96-gutter-toggle.v96-depth-3{left:96px!important}

/* V100: continue each horizontal divider through the entire left gutter,
   including unit leaves and nested Works/Grant/OPEX cascade rows. A cell-wide
   inset rule is independent of the level-specific gradient/vertical rail. */
html body .category-table.v9-table tbody>tr>td:first-child{
 box-shadow:inset 0 -1px 0 #dce6df!important;
}

/* V102: the SDLT calculator dropdown stays inside its cell on every browser
   (Safari ignored the earlier min-width override and drew it borderless). */
.category-table .cost-select.v12-sdlt-select,.v9-table select.v12-sdlt-select{
 -webkit-appearance:none!important;appearance:none!important;
 width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
 overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
 border:1px solid #dce7df!important;border-radius:8px!important;background-color:#fff!important;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d2a25' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
 background-repeat:no-repeat!important;background-position:right 9px center!important;background-size:10px 6px!important;
 padding:4px 26px 4px 8px!important;
}
.v9-table td:has(> select.v12-sdlt-select){overflow:hidden;max-width:0}

/* V116: every section's header total (left of Collapse) uses the same size
   and weight. Acquisition's total was larger (18px / 800). */
html body .input-card>header .v39-input-actions strong.v58-acq-total{font-size:17px!important;font-weight:700!important;line-height:inherit}

/* V117: gap under Market Rent, then the two benchmark total lines, then the
   income table (Applied Rent onward) without repeating its column headings. */
html body .v117-benchmark-total{margin-top:0}
html body .cost-responsive+.v117-benchmark-total{margin-top:18px}
html body .v117-income-table{margin-top:18px}
html body .v117-income-table thead tr{visibility:collapse}

/* V121: DCF tables with one set of headings and no row borders. */
html body .v121-dcf .v121-dcf-head,html body .v121-dcf .v121-dcf-row,html body .v121-dcf .v121-dcf-total{display:grid;grid-template-columns:minmax(160px,2.2fr) minmax(110px,1fr) minmax(110px,1fr) minmax(110px,1fr) minmax(130px,1.2fr);gap:12px;align-items:center}
html body .v121-dcf .v121-dcf-head{font-size:11px;color:var(--muted,#6b7f72);padding:4px 0}
html body .v121-dcf .v121-dcf-row{padding:6px 0;border:0!important}
html body .v121-dcf .v121-dcf-row input,html body .v121-dcf .v121-dcf-row select{width:100%;box-sizing:border-box}
html body .v121-dcf .v121-rate{position:relative;display:block}
html body .v121-dcf .v121-rate input{padding-right:26px}
html body .v121-dcf .v121-rate i{position:absolute;right:10px;top:50%;transform:translateY(-50%);font-style:normal;font-size:12px;color:var(--muted,#6b7f72)}
html body .v121-dcf .v121-dcf-total{padding:10px 0 2px;font-weight:700}
html body .v121-dcf .v121-dcf-total span{grid-column:1 / 5}
html body .v121-dcf .v121-dcf-result,html body .v121-dcf .v28-dcf-result{margin:0}
@media (max-width:700px){html body .v121-dcf .v121-dcf-head{display:none}html body .v121-dcf .v121-dcf-row{grid-template-columns:1fr 1fr}}

/* V122: DCF and disposal tables use the same controls as the rest of the app. */
html body .v121-dcf .v121-name{font-family:"DM Sans",sans-serif;font-size:14px;font-weight:400;color:rgb(37,68,58)}
html body .v121-dcf .v121-dcf-head span{font-family:"DM Sans",sans-serif;font-size:12px;font-weight:650;color:rgb(87,109,100)}
html body .v121-dcf .v121-dcf-row input,html body .v121-dcf .v121-dcf-row select{height:41px;padding:8px 11px;border:1px solid rgb(214,226,218);border-radius:8px;background-color:#fff;font-family:"DM Sans",sans-serif;font-size:14px;font-weight:400;color:rgb(37,68,58);box-shadow:none;outline:none}
html body .v121-dcf .v121-dcf-row input{text-align:right}
html body .v121-dcf .v121-rate input{padding-right:28px}
html body .v121-dcf .v121-dcf-row select{-webkit-appearance:none;appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d2a25' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;background-size:10px 6px}
html body .v121-dcf .v121-dcf-row input:focus,html body .v121-dcf .v121-dcf-row select:focus{border-color:rgb(40,95,73)}
html body .v121-dcf .v121-dcf-row .v28-dcf-result{display:flex;align-items:center;height:41px;padding:0 12px;box-sizing:border-box}
html body .v121-dcf .v121-dcf-total span,html body .v121-dcf .v121-dcf-total strong{font-family:"DM Sans",sans-serif;font-size:14px}
html body .v121-dcf .v121-dcf-total strong{padding-left:12px}
html body .v121-dcf .v28-dcf-result strong{margin:0;line-height:1.2}

/* V123: values sit in the centre of the green boxes; each table's grand total
   lines up with the values above it; section totals are 17px at the bottom of
   each section and in the section headers. */
html body .v121-dcf .v121-dcf-row .v28-dcf-result{flex-direction:row!important;justify-content:center!important;align-items:center!important;height:41px!important;min-height:41px!important;padding:0 12px!important;box-sizing:border-box}
html body .v121-dcf .v121-dcf-total strong{grid-column:5;justify-self:center;padding:0!important;font-family:Manrope,sans-serif;font-weight:800;color:rgb(27,113,79)}
html body .category-footer strong{font-size:17px!important}
html body .input-card>header .v39-input-actions strong{font-size:17px!important;font-weight:700!important;line-height:inherit}
html body .v117-income-table{margin-top:18px}

/* V128: Irrecoverable VAT rows. */
html body .v128-vat-row .group-toggle{flex-direction:column;align-items:flex-start;gap:2px}
html body .v128-vat-row .v128-hint{font-size:11px;font-weight:500;color:rgb(87,109,100)}

/* V130: five cascade slots (Sub · Typ · Ten · Bed · Unit) and deeper indents. */
html body .category-table.v9-table .main-head .allocation-v8-buttons,
html body .category-table.v9-table .v46-cost-actions,
html body .category-table.v9-table .v45-group-buttons{grid-template-columns:repeat(5,38px)!important;width:198px!important;min-width:198px!important;max-width:198px!important;flex-basis:198px!important}
html body .category-table.v9-table .cascade-beds51{grid-column:4}
html body .category-table.v9-table .cascade-units51{grid-column:5}
html body .category-table.v9-table .cascade-beds51::after{content:'Bed'}
html body .category-table.v9-table .v90-actions .cascade-slot51::after{font-size:9px}
html body .category-table.v9-table tr.v130-depth-3>td.detail-td{padding-left:76px!important}
html body .category-table.v9-table tr.v130-depth-4>td.detail-td{padding-left:92px!important}
html body .category-table.v9-table tr.v130-depth-5>td.detail-td{padding-left:108px!important}

/* V131: tighter cascade buttons (Sub · Typ · Ten · Bed · Unit). Labels are
   10px bold, the widest ("Unit") about 20px, so each button is 26px wide
   (was 38px) with a 2px gap: 138px for all five instead of 198px. */
html body .category-table.v9-table .main-head .allocation-v8-buttons,
html body .category-table.v9-table .v46-cost-actions,
html body .category-table.v9-table .v45-group-buttons{grid-template-columns:repeat(5,26px)!important;column-gap:2px!important;width:138px!important;min-width:138px!important;max-width:138px!important;flex-basis:138px!important}
html body .category-table.v9-table .allocation-action.cascade-slot51{width:26px!important;max-width:26px!important;min-width:26px!important}
html body .category-table.v9-table .v90-actions{gap:2px!important}

/* V133: one 16px indent step per level (bar, label and +/- follow the level),
   smaller +/- buttons and tighter Sub / Typ / Ten / Bed / Unit buttons. */
html body .category-table.v9-table tbody>tr.v133-bg-main{--v133-bg:#c8e3d2}
html body .category-table.v9-table tbody>tr.v133-bg-sub{--v133-bg:#d9ecdf}
html body .category-table.v9-table tbody>tr.v133-bg-group{--v133-bg:#e9f4ec}
html body .category-table.v9-table tbody>tr.v133-bg-subgroup{--v133-bg:#f3f9f4}
html body .category-table.v9-table tbody>tr.v133-bg-unit{--v133-bg:#fbfdfb}
html body .category-table.v9-table tbody>tr.v133-bg-none{--v133-bg:#fbfdfb}
html body .category-table.v9-table tbody>tr.v133-lvl-0:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 22px,#488662 22px 25px,var(--v133-bg) 25px)!important;padding-left:34px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-0:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-0:not(#v133)>td:first-child .v96-gutter-toggle{left:6px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-1:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 38px,#488662 38px 41px,var(--v133-bg) 41px)!important;padding-left:50px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-1:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-1:not(#v133)>td:first-child .v96-gutter-toggle{left:22px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-2:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 54px,#6ca281 54px 57px,var(--v133-bg) 57px)!important;padding-left:66px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-2:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-2:not(#v133)>td:first-child .v96-gutter-toggle{left:38px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-3:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 70px,#96bba1 70px 73px,var(--v133-bg) 73px)!important;padding-left:82px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-3:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-3:not(#v133)>td:first-child .v96-gutter-toggle{left:54px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-4:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 86px,#bfd7c5 86px 89px,var(--v133-bg) 89px)!important;padding-left:98px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-4:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-4:not(#v133)>td:first-child .v96-gutter-toggle{left:70px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-5:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 102px,#cfe0d4 102px 105px,var(--v133-bg) 105px)!important;padding-left:114px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-5:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-5:not(#v133)>td:first-child .v96-gutter-toggle{left:86px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-6:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 118px,#d9e7dd 118px 121px,var(--v133-bg) 121px)!important;padding-left:130px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-6:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-6:not(#v133)>td:first-child .v96-gutter-toggle{left:102px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-7:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 134px,#e1ece4 134px 137px,var(--v133-bg) 137px)!important;padding-left:146px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-7:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-7:not(#v133)>td:first-child .v96-gutter-toggle{left:118px!important}
html body .category-table.v9-table tbody>tr.v133-lvl-8:not(#v133)>td:first-child{background:linear-gradient(to right,#fff 0 150px,#e6efe8 150px 153px,var(--v133-bg) 153px)!important;padding-left:162px!important;position:relative!important;border-left:0!important}
html body .category-table.v9-table tbody>tr.v133-lvl-8:not(#v133)>td:first-child .v53-gutter-toggle,html body .category-table.v9-table tbody>tr.v133-lvl-8:not(#v133)>td:first-child .v96-gutter-toggle{left:134px!important}
html body .category-table.v9-table tbody>tr[class*="v133-lvl-"]:not(#v133) .v53-gutter-toggle,html body .category-table.v9-table tbody>tr[class*="v133-lvl-"]:not(#v133) .v96-gutter-toggle{position:absolute!important;top:50%!important;transform:translateY(-50%)!important;width:14px!important;min-width:14px!important;height:14px!important;padding:0!important;margin:0!important;font-size:11px!important;line-height:1!important;border-radius:3px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
html body .category-table.v9-table .main-head .allocation-v8-buttons,html body .category-table.v9-table .v46-cost-actions,html body .category-table.v9-table .v45-group-buttons{grid-template-columns:repeat(5,24px)!important;column-gap:1px!important;width:124px!important;min-width:124px!important;max-width:124px!important;flex-basis:124px!important}
html body .category-table.v9-table .allocation-action.cascade-slot51{width:24px!important;max-width:24px!important;min-width:24px!important}
html body .category-table.v9-table .v90-actions{gap:1px!important}

/* V138: one-unit dashboard tables have no per-unit column. */
.v33-table-card.v138-single .v33-col-head,.v33-table-card.v138-single .v33-finance-row{grid-template-columns:minmax(0,1fr) minmax(102px,.48fr)}
.v39-operating-impact.v138-single .v33-col-head,.v39-operating-impact.v138-single .v33-finance-row{grid-template-columns:minmax(140px,1fr) repeat(3,minmax(94px,.52fr))!important}
@media(max-width:800px){.v39-operating-impact.v138-single .v33-col-head,.v39-operating-impact.v138-single .v33-finance-row{min-width:560px}}

/* V139: dashboard tables stay side by side down to 1240px wide (most laptops:
   1280, 1366, 1440, 1536px). Below 1240px they stack, as before. */
@media(min-width:1240px) and (max-width:1450px){.v33-tables:not(#v139){grid-template-columns:minmax(340px,45fr) minmax(490px,55fr)!important}
 /* Several units: the operating table has 5 columns and needs about 600px. */
 .v33-tables:not(#v139):has(.v39-operating-impact:not(.v138-single)){grid-template-columns:minmax(330px,1fr) minmax(606px,1.4fr)!important}}

/* V140: "Applied To" column 2px narrower (was 105px on desktop, 11.75% below 1200px). */
@media(min-width:1200px){html body .category-table.v9-table:not(#v140) th:nth-child(3){width:103px!important}}
@media(max-width:1199.98px){html body .category-table.v9-table:not(#v140) th:nth-child(3){width:calc(11.75% - 2px)!important}}

/* V141: left panel becomes an icon strip below 1340px wide; » opens it over the page. */
.v141-toggle{display:none}
@media(max-width:1339.98px){
 html body .app>.sidebar:not(#v141){width:56px!important;flex:0 0 56px!important;padding:16px 6px!important;z-index:60;transition:width .15s ease,box-shadow .15s ease}
 html body .app>.sidebar:not(#v141) .v141-text,
 html body .app>.sidebar:not(#v141) .smalllabel{display:none!important}
 html body .app>.sidebar:not(#v141) .brand{justify-content:center;padding-left:0;padding-right:0}
 html body .app>.sidebar:not(#v141) .brandmark{margin:0!important}
 html body .app>.sidebar:not(#v141) .nav{display:flex;justify-content:center;align-items:center;padding:11px 0!important;margin-bottom:4px;font-size:15px}
 html body .app>.sidebar:not(#v141) .sidebar-bottom{display:flex!important;justify-content:center;padding:12px 0 0!important}
 html body .app>.sidebar:not(#v141) .sidebar-bottom .avatar{margin:0!important}
 html body .app>.sidebar:not(#v141) .v141-toggle{display:block;width:100%;margin:6px 0 14px;padding:4px 0;border:1px solid #376158;border-radius:6px;background:transparent;color:#a5c5b9;font-size:14px;line-height:1;cursor:pointer}
 html body .app>.sidebar:not(#v141) .v141-toggle:hover{background:#1c4c44;color:#fff}
 /* Opened: full width over the page; still takes only 56px of layout. */
 html body.v141-open .app>.sidebar:not(#v141){width:198px!important;flex:0 0 198px!important;margin-right:-142px;padding:16px 9px!important;box-shadow:6px 0 24px rgba(10,40,34,.28)}
 html body.v141-open .app>.sidebar:not(#v141) .v141-text{display:inline!important}
 html body.v141-open .app>.sidebar:not(#v141) .smalllabel{display:block!important}
 html body.v141-open .app>.sidebar:not(#v141) .brand{justify-content:flex-start;padding-left:4px}
 html body.v141-open .app>.sidebar:not(#v141) .nav{justify-content:flex-start;gap:12px;padding:11px 14px!important;font-size:inherit}
 html body.v141-open .app>.sidebar:not(#v141) .sidebar-bottom{display:block!important;padding:16px 13px!important}
 html body.v141-open .app>.sidebar:not(#v141) .v141-toggle{text-align:right;padding-right:10px}
}
html body .app>.sidebar .v141-icon{display:inline-block;margin-right:11px}
@media(max-width:1339.98px){html body .app>.sidebar .v141-icon{margin-right:0}}
/* V141: keep the logo and footer laid out exactly as before when their text shows. */
html body .app>.sidebar .brand>.v141-text,html body .app>.sidebar .sidebar-bottom>.v141-text,
html body.v141-open .app>.sidebar:not(#v141) .brand>.v141-text,html body.v141-open .app>.sidebar:not(#v141) .sidebar-bottom>.v141-text{display:contents!important}
@media(max-width:1339.98px){
 html body:not(.v141-open) .app>.sidebar:not(#v141) .brand>.v141-text,html body:not(.v141-open) .app>.sidebar:not(#v141) .sidebar-bottom>.v141-text{display:none!important}
 html body.v141-open .app>.sidebar:not(#v141) .sidebar-bottom{display:block!important}
 html body.v141-open .app>.sidebar:not(#v141) .sidebar-bottom .avatar{margin-right:10px!important}
}

/* V142: the KPIs button and panel sit above the sticky page, tab and section
   bars (z-index 78-81), so they are never covered when scrolling. The opened
   left menu (V141) stays above everything. */
html body .v18-kpi-open:not(#v142){z-index:92!important}
html body .v18-kpi-panel:not(#v142){z-index:91!important}
html body.v141-open .app>.sidebar:not(#v141){z-index:100!important}

/* V145: a little more space either side of the Sub / Type / Ten. / Bed / Units
   labels: each button 28px wide (was 24px), so about 2px more each side. */
html body .category-table.v9-table .main-head .allocation-v8-buttons:not(#v145),html body .category-table.v9-table .v46-cost-actions:not(#v145),html body .category-table.v9-table .v45-group-buttons:not(#v145){grid-template-columns:repeat(5,28px)!important;column-gap:1px!important;width:144px!important;min-width:144px!important;max-width:144px!important;flex-basis:144px!important}
html body .category-table.v9-table .allocation-action.cascade-slot51:not(#v145){width:28px!important;max-width:28px!important;min-width:28px!important}

/* V146: Viability → NPV appraisal. */
.v146-npv{display:grid;gap:16px;margin-top:14px}
.v146-intro{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap;background:#fff;border:1px solid #dfeae2;border-radius:10px;padding:18px 22px}
.v146-intro h2{margin:0 0 4px;font:800 18px Manrope,sans-serif;color:#1f4d3c}
.v146-intro p{margin:0;max-width:640px;color:#6d8777;font-size:12px;line-height:1.5}
.v146-kpis{display:flex;gap:10px;flex-wrap:wrap}
.v146-kpis>div{background:#edf6ef;border:1px solid #d0e4d7;border-radius:8px;padding:9px 14px;min-width:140px}
.v146-kpis span{display:block;font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;color:#6d8777}
.v146-kpis b{display:block;margin-top:3px;font:800 17px Manrope,sans-serif;color:#15754d;font-variant-numeric:tabular-nums}
.v146-kpis .v146-negative b{color:#b15a4d}
.v146-card{background:#fff;border:1px solid #dfeae2;border-radius:10px;padding:8px 22px 18px;overflow-x:auto}
.v146-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:fixed;margin-top:12px;font-size:12px;color:#446153;font-variant-numeric:tabular-nums}
.v146-table col.v146-c1{width:32%}
.v146-table th,.v146-table td{padding:7px 10px;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v146-table .v146-first{text-align:left}
.v146-cols th{background:#1f5c45;color:#fff;font-size:10px;font-weight:800;letter-spacing:.6px;text-transform:uppercase;border:0}
.v146-group td{padding-top:14px;font-weight:800;color:#1f4d3c;font-size:12.5px;text-align:left;border-bottom:1px solid #dfeae2}
.v146-subgroup td{font-weight:700;color:#488662;font-size:11.5px;text-align:left;padding-left:18px}
.v146-row td{border-bottom:1px solid #f1f5f2}
.v146-row td.v146-first{padding-left:26px}
.v146-total td{font-weight:800;color:#225940;background:#f5faf6;border-top:1px solid #d0e4d7}
.v146-total td:last-child{color:#15754d}
.v146-big td{font:800 13px Manrope,sans-serif;color:#fff;background:#2c7a59;padding:10px}
.v146-big td:first-child{border-radius:6px 0 0 6px}.v146-big td:last-child{border-radius:0 6px 6px 0}
.v146-return .v146-row td{font-weight:700;color:#225940}

/* V147: per-unit DCF receipts and the DCF cash flow under a unit. */
.v146-receipts{min-width:900px}
.v146-table col.v146-c1r{width:27%}
.v147-dcf-link{border:0;background:none;padding:0;font:inherit;color:#15754d;font-weight:800;text-decoration:underline dotted;text-underline-offset:3px;cursor:pointer}
.v147-dcf-link:hover,.v147-dcf-link.active{color:#0e5a3a;text-decoration-style:solid}
.v146-table tr.v147-dcf-row>td{padding:4px 0 14px;white-space:normal;overflow:visible;text-align:left;background:#fff}
.v147-dcf{border:1px solid #d0e4d7;border-radius:8px;background:#f7fbf8;padding:10px 12px}
.v147-dcf-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:8px}
.v147-dcf-head b{color:#1f4d3c;font-size:12.5px}
.v147-dcf-head span{color:#6d8777;font-size:11px}
.v147-dcf-head button{margin-left:auto;border:1px solid #d0e4d7;background:#fff;border-radius:6px;padding:4px 10px;font-size:11px;font-weight:700;color:#225940;cursor:pointer}
.v147-dcf-scroll{max-height:360px;overflow:auto;border-radius:6px;background:#fff;border:1px solid #e3ede6}
.v147-dcf table{width:100%;border-collapse:collapse;font-size:11.5px;font-variant-numeric:tabular-nums}
.v147-dcf th{position:sticky;top:0;background:#e6f1e9;color:#1f4d3c;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.5px;padding:7px 10px;text-align:right}
.v147-dcf td{padding:5px 10px;text-align:right;border-bottom:1px solid #f0f5f1;color:#446153}
.v147-dcf th:nth-child(-n+2),.v147-dcf td:nth-child(-n+2){text-align:left}
.v147-dcf td.v147-neg{color:#b15a4d}

/* V148: Assumptions sub-category headings look like ordinary rows (no green,
   not bold, white), detail rows are white too, and section headings carry a total. */
.v37-assumptions tbody tr.v43-assumption-heading:not(#v148)>td{color:rgb(23,45,48)!important;font-weight:400!important;background:#fff!important}
.v37-assumptions tbody tr.v37-detail:not(#v148)>td{background:#fff!important}
.v37-assumptions tbody tr.v148-group:not(#v148)>td:nth-child(2){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

/* V150: Assumptions columns: Calculated total 20px narrower (135px), Quantity ×
   rate 30px narrower; Comments / notes takes the 50px. */
.v40-assumptions .v37-scroll th:nth-child(2):not(#v150),.v40-assumptions .v37-scroll td:nth-child(2):not(#v150){width:135px!important;min-width:135px!important;max-width:135px!important}
.v40-assumptions .v37-scroll th:nth-child(3):not(#v150),.v40-assumptions .v37-scroll td:nth-child(3):not(#v150){width:30.5%!important;min-width:230px!important} /* exact width set by V150 in cashflow-v43.js */

/* V153: NPV costs laid out like Assumptions, savings below the line, and the DCF tab. */
.v146-table.v153-costs{min-width:640px}
.v146-table col.v153-c1{width:42%}
.v146-table tr.v146-group td:last-child:not([colspan]){text-align:right}
.v153-costs tr.v153-lvl-0 td.v146-first{padding-left:10px;color:rgb(23,45,48)}
.v153-costs tr.v153-lvl-1 td.v146-first{padding-left:26px;color:#5f7a6b}
.v153-costs tr.v153-lvl-2 td.v146-first{padding-left:44px;color:#718477}
.v153-costs tr.v153-head td{color:rgb(23,45,48)}
.v146-receipts tr.v146-row td.v146-first{padding-left:26px}
.v146-return tr.v153-post td{background:#1f5c45}
.v153-dcf .v153-card{padding:14px 22px 18px}
.v153-card h3{margin:0 0 4px;font:800 14px Manrope,sans-serif;color:#1f4d3c}
.v153-note{margin:0 0 6px;color:#6d8777;font-size:11.5px}
.v146-table.v153-kv{min-width:0;max-width:760px}
.v146-table.v153-kv td:last-child,.v146-table.v153-kv th:last-child{text-align:left;white-space:normal}
.v146-table.v153-kv col,.v153-kv td.v146-first{width:220px}
.v146-table.v153-wide{table-layout:auto;min-width:720px}
.v153-opex th small{display:block;margin-top:2px;font-size:9px;font-weight:600;letter-spacing:0;text-transform:none;opacity:.85;white-space:normal}
.v153-opex th{white-space:normal;vertical-align:bottom}
.v146-table td.v147-neg{color:#b15a4d}
.v146-table tr.v153-on td{background:#f1f8f3}
.v153-picker{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.v153-picker button{border:1px solid #d0e4d7;background:#fff;border-radius:16px;padding:5px 12px;font-size:11.5px;font-weight:700;color:#225940;cursor:pointer}
.v153-picker button.active{background:#2c7a59;border-color:#2c7a59;color:#fff}
.v147-dcf-scroll.v153-tall{max-height:520px}

/* V155: DCF tab: unit buttons on top, one-unit reconciliation tables. */
.v155-pick{padding:12px 18px}
.v153-picker.v155-top{margin:0}
.v153-picker button span{opacity:.7;font-weight:600;margin-left:2px}
.v146-table.v155-recon{min-width:900px}
.v146-table.v155-recon col.v155-c1{width:24%}
.v146-table.v155-recon col.v155-c2{width:20%}
.v146-table.v155-recon col.v155-c3{width:12%}
.v146-table.v155-recon col.v155-c4{width:22%}
.v146-table.v155-recon col.v155-c5{width:11%}
.v146-table.v155-recon col.v155-c6{width:11%}
.v146-table.v155-recon.v155-cap col.v155-c5{width:22%}
.v155-recon td:nth-child(2),.v155-recon td:nth-child(4){text-align:left;white-space:normal;color:#5f7a6b}
.v155-recon th:nth-child(2),.v155-recon th:nth-child(4){text-align:left}
.v155-recon tr.v146-group td:nth-child(n+2){text-align:right}
.v155-recon .v147-neg,.v155-npv .v147-neg{color:#b15a4d}
.v146-table.v155-npv{min-width:640px}
.v155-npv th:last-child,.v155-npv td:last-child{text-align:left;white-space:normal;color:#5f7a6b}
.v155-npv tr.v146-big td:last-child{color:#fff}
.v155-npv td:nth-child(2){width:140px}
.v155-npv td:first-child{width:240px}

/* V155: reconciliation fits a laptop-width card; text columns wrap. */
.v146-table.v155-recon{min-width:760px}
.v155-recon td:first-child,.v155-recon th{white-space:normal}
.v155-recon th{vertical-align:bottom;line-height:1.25}
.v155-recon tr.v146-big td{color:#fff!important}

/* V157: one-unit Income & Expenditure on the DCF tab. */
.v146-table.v157-ie{min-width:720px}
.v146-table.v157-ie col.v157-c1{width:30%}
.v146-table.v157-ie col.v157-c2{width:15%}
.v146-table.v157-ie col.v157-c3{width:22%}
.v146-table.v157-ie col.v157-c4{width:20%}
.v146-table.v157-ie col.v157-c5{width:13%}
.v157-ie td:nth-child(3),.v157-ie td:nth-child(4),.v157-ie th:nth-child(3),.v157-ie th:nth-child(4){white-space:normal}
.v157-ie td.v146-first{white-space:normal}
.v157-ie tr.v146-group td:last-child{text-align:right}
.v157-ie .v147-neg{color:#b15a4d}
.v157-tag{display:inline-block;padding:2px 8px;border-radius:10px;font-size:10.5px;font-weight:700}
.v157-direct{background:#e6f1e9;color:#1f5c45}
.v157-app{background:#fbf0dc;color:#8a5a12}
.v157-ie tr.v157-dcfbar td{background:#1f5c45}

/* V159: DCF cash flow: even column spacing, narrow two-line discount factor. */
.v147-dcf table.v159-flow{table-layout:fixed;width:100%}
.v159-flow th,.v159-flow td{padding:6px 12px}
.v159-flow th{line-height:1.2;vertical-align:bottom;white-space:normal}
.v159-flow th:first-child,.v159-flow td:first-child{width:52px;text-align:left}
.v159-flow th.v159-df,.v159-flow td.v159-df{width:74px}
.v159-flow th:nth-child(2),.v159-flow td:nth-child(2){text-align:right}

/* V160: NPV costs with Amount / Sub-total / Total; roomier DCF cash flow. */
.v146-table.v160-costs{min-width:760px}
.v146-table.v160-costs col.v153-c1{width:36%}
.v160-costs tr.v153-lvl-3 td.v146-first{padding-left:62px;color:#7c8d82}
.v160-costs td:nth-child(5){color:#225940;font-weight:700}
.v147-dcf table.v159-flow{min-width:860px}
.v159-flow th,.v159-flow td{padding:7px 18px}
.v159-flow th:first-child,.v159-flow td:first-child{width:56px;padding-left:14px}
.v159-flow th.v159-df,.v159-flow td.v159-df{width:80px}
.v159-flow tbody tr:nth-child(even) td{background:#fafcfa}
.v147-dcf table.v159-flow{min-width:0!important}
.v159-flow th,.v159-flow td{padding:7px 14px}

/* V161: Savings DCF on the DCF tab. */
.v153-picker button.v161-savbtn{border-color:#c9a45f;color:#8a5a12}
.v153-picker button.v161-savbtn.active{background:#8a5a12;border-color:#8a5a12;color:#fff}
.v146-table.v161-sav{min-width:640px}
.v146-table.v161-sav col.v161-c1{width:34%}
.v146-table.v161-sav col.v161-c2{width:30%}
.v161-sav td:nth-child(2),.v161-sav th:nth-child(2){text-align:left;white-space:normal}
.v161-sav tr.v146-group td{text-align:right}
.v161-sav tr.v146-group td:first-child{text-align:left}
.v161-sav th{white-space:normal;vertical-align:bottom;line-height:1.25}

/* V163: DCF cash flow columns all the same width. */
.v147-dcf table.v159-flow{table-layout:fixed!important;width:100%!important}
.v159-flow th,.v159-flow td,.v159-flow th:first-child,.v159-flow td:first-child,.v159-flow th.v159-df,.v159-flow td.v159-df{width:auto!important;padding:7px 12px!important;text-align:right!important}

/* V164: every Sub-total figure in the NPV cost table looks the same. */
.v160-costs tbody tr td:nth-child(5){color:#225940!important;font-weight:700!important}

/* V165: NPV appraisal and DCF tables use one text size for headings, rows and bars
   (only the column-title strip stays in small capitals). */
.v146-npv .v146-table tr.v146-group td,
.v146-npv .v146-table tr.v146-subgroup td,
.v146-npv .v146-table tr.v146-row td,
.v146-npv .v146-table tr.v146-total td,
.v146-npv .v146-table tr.v146-big td{font-size:12.5px!important;font-family:inherit!important}
.v146-npv .v146-table tr.v146-subgroup td{color:#1f4d3c!important}
.v146-npv .v146-table.v146-receipts{min-width:0!important}
.v146-receipts th{white-space:normal;line-height:1.2}

/* V168: inflation table under the Assumptions table. */
.v168-infl{margin-top:18px}
.v168-infl h3{margin:0 0 4px;font:800 14px Manrope,sans-serif;color:#1f4d3c}
.v168-infl p{margin:0 0 8px;color:#6d8777;font-size:11.5px}

/* V169: Provision table rows look like Acquisition's main rows: same green
   background, white row gaps, compact cells, and the same 13px / 32px white
   input boxes. */
html body .unit-table.v43-unit-table:not(#v169) tbody tr:has(input,select)>td{background:#c8e3d2!important;padding:2px 4px!important;border-top:4px solid #fff!important;border-bottom:1px solid #eef1ee!important;vertical-align:middle!important;font-size:13px!important;color:rgb(32,92,67)}
html body .unit-table.v43-unit-table:not(#v169) tbody tr:has(input,select)>td:first-child{padding-left:8px!important}
html body .unit-table.v43-unit-table:not(#v169) tbody td input,html body .unit-table.v43-unit-table:not(#v169) tbody td select{font-size:13px!important;height:32px!important;min-height:32px!important;padding:4px 8px!important;background:#fff!important;border-radius:8px!important;line-height:1.2!important}
html body .unit-table.v43-unit-table:not(#v169) tbody td select{padding-right:22px!important}

/* V173: plain read-only inflation table on the Assumptions tab. */
.v173-infl{width:100%;border-collapse:collapse;font-size:12.5px;color:#446153;font-variant-numeric:tabular-nums}
.v173-infl th{background:#e3f0e7;color:#2a6c4d;font-size:10px;font-weight:850;letter-spacing:.7px;text-transform:uppercase;padding:10px 12px;text-align:right}
.v173-infl td{padding:9px 12px;border-bottom:1px solid #edf2ee;text-align:right}
.v173-infl th:nth-child(-n+2),.v173-infl td:nth-child(-n+2){text-align:left}
.v173-infl td:first-child{color:rgb(23,45,48)}
html body .v40-assumptions .v168-infl table.v173-infl:not(#v173){table-layout:fixed!important;width:100%!important;min-width:0!important}
html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) th,html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) td{width:auto!important;min-width:0!important;max-width:none!important;text-align:right!important;font-weight:400!important;white-space:nowrap}
html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) th{font-weight:850!important}
html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) th:first-child,html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) td:first-child{width:30%!important;text-align:left!important}
html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) th:nth-child(2),html body .v40-assumptions .v168-infl table.v173-infl:not(#v173) td:nth-child(2){width:14%!important;text-align:left!important}

/* V176: RAG indicator on the right of each KPI box; ungeared rows in Cash Flow & Calcs. */
.v33-stat.v176-has-rag{position:relative;padding-right:46px!important}
.v176-rag{position:absolute;top:50%;right:12px;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font:800 11px Manrope,sans-serif;font-style:normal;color:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.9)}
.v176-green{background:#2f8a5c}
.v176-amber{background:#d79a2b}
.v176-red{background:#c4574c}
.v22-flow-table tr.v176-ungeared td,.v22-flow-table tr.v176-irr td{font-weight:800}
.v22-flow-table tr.v176-irr td.v27-total{color:#15754d}
/* V176: RAG sits in the top-right corner so the figure keeps its full width. */
.v33-stat.v176-has-rag{padding-right:inherit!important}
.v33-stat.v176-has-rag>span{display:block;padding-right:26px}
.v176-rag{top:12px!important;right:12px!important;transform:none!important;width:20px!important;height:20px!important;font-size:10px!important}
html body .v33-stat.v176-has-rag>span:not(#v176){padding-right:28px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}

/* V178: DCF tab unit / saving buttons stacked vertically. */
.v153-dcf .v153-picker.v155-top{flex-direction:column;align-items:stretch;gap:6px}
.v153-dcf .v153-picker.v155-top button{text-align:left;border-radius:8px;padding:8px 12px}
/* V178: Provision rows get the same green above / below the inputs as Acquisition (44px rows). */
html body .unit-table.v43-unit-table:not(#v169) tbody tr:has(input,select)>td{padding-top:4px!important;padding-bottom:4px!important}

/* V179: Property Manager accommodation summary. */
.v179-summary{margin:16px 0 4px;padding:12px 14px;border:1px solid #dfeae2;border-radius:10px;background:#f7fbf8}
.v179-summary .sectiontitle{margin:0 0 8px}
.v179-summary .sectiontitle span{font-weight:500;text-transform:none;letter-spacing:0;color:#6d8777;margin-left:6px}
.v179-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}
.v179-grid span{display:block;font-size:10.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase;color:#6d8777}
.v179-grid b{display:block;font-size:13px;color:#1f4d3c;font-weight:700;margin-top:2px}
.v179-warn{margin:10px 0 0;color:#8a5a12;background:#fbf0dc;border-radius:6px;padding:6px 10px;font-size:12px}
.v179-edit{margin-top:10px}

/* V180: Payback (flexible) rows. */
.v22-flow-table tr.v180-close td{font-weight:800}
.v22-flow-table tr.v180-result td{font-weight:800;color:#15754d}

/* V183: scenario bar. */
.v183-wrap{margin:0 0 12px}
.v183-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #dfeae2;border-radius:10px;padding:8px 12px}
.v183-label{font-size:10.5px;font-weight:850;letter-spacing:.7px;text-transform:uppercase;color:#6d8777}
.v183-select{min-width:220px;max-width:340px;height:32px;border:1px solid #dce7df;border-radius:8px;padding:4px 10px;font-size:13px;background:#fff;color:#1f4d3c;font-weight:700}
.v183-status{font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:12px}
.v183-saved{background:#e6f1e9;color:#1f5c45}
.v183-unsaved{background:#fbf0dc;color:#8a5a12}
.v183-actions{margin-left:auto;display:flex;gap:6px;flex-wrap:wrap}
.v183-btn{height:30px;padding:0 12px;border:1px solid #d0e4d7;border-radius:8px;background:#fff;color:#225940;font-size:12px;font-weight:700;cursor:pointer}
.v183-btn:hover{background:#f1f8f3}
.v183-primary{background:#1f5c45;border-color:#1f5c45;color:#fff}
.v183-primary:hover{background:#174a37}
.v183-danger{background:#b15a4d;border-color:#b15a4d;color:#fff}
.v183-confirm{margin-top:8px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fbf0dc;color:#5f4410;border-radius:8px;padding:8px 12px;font-size:12.5px}

/* V184: Compare scenarios. */
.v184-pick{display:flex;flex-wrap:wrap;gap:6px}
.v184-chip{border:1px solid #d0e4d7;background:#fff;border-radius:16px;padding:6px 12px;font-size:12px;font-weight:700;color:#225940;cursor:pointer}
.v184-chip b{display:inline-block;width:14px}
.v184-chip.on{background:#1f5c45;border-color:#1f5c45;color:#fff}
.v184-base{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12px;color:#6d8777;font-weight:700}
.v184-base select{height:30px;border:1px solid #dce7df;border-radius:8px;padding:2px 8px;font-size:12.5px;font-weight:700;color:#1f4d3c}
.v184-scroll{overflow-x:auto}
.v146-table.v184-table{table-layout:auto;min-width:640px}
.v184-table th small{display:block;font-size:9px;font-weight:700;opacity:.8;text-transform:none;letter-spacing:0}
.v184-table th,.v184-table td{text-align:right;white-space:nowrap}
.v184-table .v146-first{text-align:left}
.v184-table th.v184-dh{background:#2c6b52}
.v184-table td.v184-d{font-size:11.5px;color:#6d8777}
.v184-table td.v184-better{color:#1f7a4f;font-weight:700}
.v184-table td.v184-worse{color:#b15a4d;font-weight:700}
.v184-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;vertical-align:middle}
.v184-diff{border-top:1px solid #edf2ee;padding:10px 0}
.v184-diff:first-of-type{border-top:0}
.v184-diff h4{margin:0 0 6px;font:800 13px Manrope,sans-serif;color:#1f4d3c}
.v184-diff h4 span{font-weight:500;color:#6d8777;font-size:12px}
.v184-sec{margin:4px 0 8px}
.v184-sec b{font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:#488662}
.v184-sec ul{margin:4px 0 0;padding-left:18px;font-size:12.5px;color:#446153}
.v184-sec li{margin:2px 0}
.v184-sec li span{color:#8a8a8a;text-decoration:line-through}
.v184-sec li strong{color:#1f4d3c}
.v184-sec li em{color:#8a5a12;font-style:normal;font-weight:700}
.v184-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:12px;color:#446153;margin:4px 0 6px}
.v184-legend i{display:inline-block;width:14px;height:4px;border-radius:2px;margin-right:6px;vertical-align:middle}
.v184-chart svg{width:100%;height:auto}
.v184-chart text{font-size:11px;fill:#6d8777}
.v184-table tr.v146-group td{text-align:left!important}

/* V185: Compare baseline column tint. */
.v184-table th.v185-base{background:#163f30!important}
.v184-table td.v185-base{background:#eef6f1!important;font-weight:700;color:#1f4d3c}

/* V188: Default assumptions page and Default rows on Inputs. */
.v188-intro{display:flex;gap:18px;align-items:flex-start;justify-content:space-between;background:#fff;border:1px solid #dfeae2;border-radius:10px;padding:12px 16px;margin:0 0 14px}
.v188-intro b{font:800 13px Manrope,sans-serif;color:#1f4d3c}
.v188-intro p{margin:4px 0 0;font-size:12.5px;line-height:1.5;color:#446153;max-width:900px}
.v188-meta{text-align:right;white-space:nowrap;font-size:11px;color:#6d8777}
.v188-meta span{display:block;text-transform:uppercase;letter-spacing:.6px;font-weight:800;font-size:10px}
.v188-meta b{font-size:12.5px}
.v188-cards{display:flex;flex-direction:column;gap:14px}
.v188-card .input-inner{display:block}
.v188-note{font-size:11.5px;color:#6d8777;text-align:left}
.v188-unset{color:#9aa9a0;font-style:italic}
.v188-table input.cost-input::placeholder{color:#a6b5ab;font-style:italic}
.v188-table button.allocation-action[disabled]{opacity:.45;cursor:not-allowed}
/* Default tag on Inputs rows */
.v188-tag{display:inline-flex;align-items:center;gap:4px;margin-left:6px;padding:2px 4px 2px 9px;border-radius:12px;background:#e3eefb;color:#1d4f86;font-size:11px;font-weight:800;letter-spacing:.2px;white-space:nowrap;vertical-align:middle}
.v188-tag-static{padding:1px 8px;margin:0 2px}
.v188-tag button{border:0;background:transparent;color:#1d4f86;cursor:pointer;font-size:11px;font-weight:800;padding:1px 5px;border-radius:9px;line-height:1.3}
.v188-tag button:hover{background:#c9dcf3}
.v188-tag .v188-update{background:#fbf0dc;color:#8a5a12}
.v188-tag .v188-update:hover{background:#f3dfb6}
/* Locked rows: inputs read-only and greyed, values still shown */
tr.v188-locked input:disabled,tr.v188-locked select:disabled{background:#f1f4f2!important;color:#5d6f64!important;border-color:#e1e8e3!important;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#5d6f64}
tr.v188-locked button.allocation-action:disabled{opacity:.55;cursor:not-allowed}
tr.v188-locked select.cost-select:not(:disabled){border-color:#9fbfe3;color:#1d4f86;font-weight:700}

/* V190: Defaults page. No Notes column; the first column takes the spare width, and
   the name and its split buttons sit side by side, wrapping instead of overlapping. */
html body .category-table.v9-table.v188-table th:nth-child(1){width:auto!important;min-width:0!important;max-width:none!important}
html body .category-table.v9-table.v188-table th:nth-child(2){width:150px!important;min-width:0!important;max-width:none!important}
html body .category-table.v9-table.v188-table th:nth-child(3){width:92px!important;min-width:0!important;max-width:none!important}
html body .category-table.v9-table.v188-table th:nth-child(4){width:130px!important;min-width:0!important;max-width:none!important}
html body .category-table.v9-table.v188-table th:nth-child(5){width:34px!important;min-width:0!important;max-width:none!important}
html body .category-table.v9-table.v188-table .group-toggle:not(#v190a):not(#v190b),html body .category-table.v9-table.v188-table .v45-group-label:not(#v190a):not(#v190b),html body .category-table.v9-table.v188-table .v90-label:not(#v190a):not(#v190b){display:flex!important;flex-wrap:wrap!important;align-items:center!important;justify-content:space-between!important;gap:4px 8px!important;grid-template-columns:none!important;width:auto!important;max-width:none!important}
html body .category-table.v9-table.v188-table .head-label:not(#v190a):not(#v190b),html body .category-table.v9-table.v188-table .v45-group-label > strong:not(#v190a):not(#v190b),html body .category-table.v9-table.v188-table .v90-item-name:not(#v190a):not(#v190b){display:block!important;flex:1 1 140px!important;min-width:0!important;max-width:none!important;width:auto!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;-webkit-line-clamp:unset!important;overflow-wrap:normal!important}
html body .category-table.v9-table.v188-table .allocation-v8-buttons:not(#v190a):not(#v190b),html body .category-table.v9-table.v188-table .v45-group-buttons:not(#v190a):not(#v190b),html body .category-table.v9-table.v188-table .v90-actions:not(#v190a):not(#v190b){display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;justify-content:flex-end!important;gap:3px!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0 0 0 auto!important;position:static!important;grid-template-columns:none!important;transform:none!important;top:auto!important;right:auto!important}
html body .category-table.v9-table.v188-table .allocation-v8-buttons:not(#v190a):not(#v190b) > button,html body .category-table.v9-table.v188-table .v45-group-buttons:not(#v190a):not(#v190b) > button,html body .category-table.v9-table.v188-table .v90-actions:not(#v190a):not(#v190b) > button{width:auto!important;min-width:0!important;padding:3px 8px!important;white-space:nowrap!important}
.v188-table td.v188-note{text-align:left;white-space:nowrap}

/* V192: "Update properties automatically" switch on the Defaults page. */
.v188-meta .v188-auto{display:flex;align-items:center;justify-content:flex-end;gap:6px;margin:0 0 8px;font-size:12px;font-weight:700;color:#1f4d3c;cursor:pointer;text-transform:none;letter-spacing:0}
.v188-meta .v188-auto input{width:15px;height:15px;accent-color:#1f6b4f;cursor:pointer;margin:0}

/* V193: Default shown in the Input basis dropdown only (no tag); Update sits beside it. */
tr.v188-locked select.v193-default{border-color:#9fbfe3;color:#1d4f86;font-weight:700;width:100%}
td .v193-update{display:block;margin:4px 0 0;border:0;border-radius:9px;background:#fbf0dc;color:#8a5a12;font-size:11px;font-weight:800;padding:2px 9px;cursor:pointer}
td .v193-update:hover{background:#f3dfb6}

/* V198: "Default · % rent" in the Input basis dropdown of a row on Default. */
html body tr.v188-locked select.cost-select.v198-default{font-size:12px!important;padding-left:5px!important;letter-spacing:-.1px}

/* V200: rows on Default. The split buttons are replaced by the "Default ✕" label, and
   the Input basis dropdown is locked (greyed like the row's other inputs). */
html body table button.allocation-action.v200-hidden:not(#v200a):not(#v200b){display:none!important}
.v200-tag{margin-left:auto}
html body tr.v188-locked select.cost-select.v200-basis:disabled{opacity:1;cursor:not-allowed}

/* V201: Voids and Bad Debt under Operating Income, then Net Operating Income. The copied
   column header keeps the columns aligned and is not shown. */
.v201-less{margin-top:6px}
.v201-less thead.v201-ghost th{height:0!important;padding-top:0!important;padding-bottom:0!important;border:0!important;font-size:0!important;line-height:0!important;overflow:hidden}
.category-footer.v201-noi{border-top:2px solid #1f4d3c}

/* V202: Net income rows on the Viability pages. */
tr.v202-net td{border-top:2px solid #1f4d3c}

/* V205: Asset Value and Finance defaults. */
.v205-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 4px}
.v205-table th{text-align:left;font-size:11px;letter-spacing:.6px;text-transform:uppercase;color:#6d8777;padding:6px 8px}
.v205-table td{padding:5px 8px;vertical-align:middle}
.v205-table td.v205-label{width:34%}
.v205-table tr.main-head td{background:#cfe5d8}
.v205-table tr.v11-unit-row td{background:#eef6f1}
.v205-table select.cost-select,.v205-table .v13-rate-shell{width:100%;max-width:200px}
select.v205-on{border-color:#9fbfe3!important;color:#1d4f86!important;font-weight:700}
.v205-locked:disabled{background:#f1f4f2!important;color:#5d6f64!important;border-color:#e1e8e3!important;cursor:not-allowed;opacity:1;-webkit-text-fill-color:#5d6f64}
.v205-update{margin-left:6px;border:0;border-radius:9px;background:#fbf0dc;color:#8a5a12;font-size:11px;font-weight:800;padding:3px 9px;cursor:pointer}
html body .v205-table select.cost-select{height:36px!important;min-height:36px!important;line-height:20px!important;padding:6px 8px!important;font-size:13px!important}

/* V212–V213: Defaults page gutter and tabs. */
.v188-table td.v53-gutter-cell{padding-left:30px!important}
.v213-tabs{display:flex;gap:6px;margin:0 0 14px;padding:6px;background:#fff;border:1px solid #dfeae2;border-radius:10px;width:max-content}
.v213-tabs button{border:0;background:transparent;padding:8px 16px;border-radius:7px;font:700 13px Manrope,sans-serif;color:#446153;cursor:pointer}
.v213-tabs button.active{background:#1f4d3c;color:#fff}
.v213-tabs button:not(.active):hover{background:#eef6f1}
.v213-infl td.v205-label{width:26%}
.v213-infl td .v13-rate-shell{max-width:96px}
.v213-flow td.v205-label{width:30%}
.v213-flow td .v13-rate-shell{max-width:110px;margin-top:4px}

/* V214: % Upfront column; finance tidy-ups. */
td.v214-upfront .v214-shell{display:flex;align-items:center;gap:3px;background:#fff;border:1px solid #d5e3da;border-radius:7px;padding:0 6px;min-width:70px}
td.v214-upfront input{width:100%;border:0;background:transparent;text-align:right;font:inherit;padding:5px 0;min-width:0}
td.v214-upfront input:disabled{color:#9aa9a0}
td.v214-upfront .v214-shell span{color:#6d8777;font-size:12px}
input[onchange^="setFinance15(true,'term'"]{text-align:right!important}
html body .v16-fee-row{grid-template-columns:minmax(110px,1.4fr) minmax(118px,1fr) minmax(104px,1fr) minmax(84px,.8fr) 26px!important}
html body .v16-fee-row .v16-fee-total{text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* V215: % Upfront column 75px wide. */
html body th.v214-upfront-th{width:90px!important;min-width:90px!important;max-width:90px!important}
html body td.v214-upfront{width:90px!important;min-width:90px!important;max-width:90px!important;padding-left:4px!important;padding-right:4px!important}
td.v214-upfront .v214-shell{min-width:0!important;width:100%;box-sizing:border-box;padding:0 5px}
html body .v213-flow td:nth-child(2) .v13-rate-shell{max-width:90px}

/* V221: sticky horizontal scroll bar for wide tables. */
.v221-hbar{position:sticky;bottom:0;z-index:40;overflow-x:auto;overflow-y:hidden;height:16px;background:rgba(249,252,250,.96);border-top:1px solid #dfeae2;box-shadow:0 -3px 8px rgba(28,74,48,.08);margin-top:-1px}
.v221-hbar-inner{height:1px}
.v221-host{scrollbar-width:none}
.v221-host::-webkit-scrollbar{height:0;display:none}

/* V223: Asset Value / Finance rows styled like the other input tables. */
.v223-table{width:100%;border-collapse:collapse;table-layout:fixed;margin:4px 0 10px}
.v223-table th{font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#82918e;text-align:center;padding:4px 8px 11px}
.v223-table th.v223-first{text-align:left;padding-left:34px;width:34%}
.v223-table tr.v223-row td{background:#c8e3d2;border-top:3px solid #d4e4da;border-bottom:1px solid #eef1ee;padding:6px 8px;vertical-align:middle;height:44px;box-sizing:border-box}
.v223-table tr.v223-row td.v223-label{background:linear-gradient(to right,#fff 0,#fff 22px,#488662 22px,#488662 25px,#c8e3d2 25px);padding-left:34px;color:#205e47;font-size:14px}
.v223-table tr.v223-row td.v223-label strong{font-weight:800;color:#205e47}
.v223-table tr.v223-row td.v223-amount{text-align:right;font-weight:700;color:#164e37;font-size:13px}
.v223-table tr.v223-row td.v223-amount *{text-align:right;font-weight:700;color:#164e37;font-size:13px;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.v223-table td input[type=number]{width:100%;text-align:right;padding:0 8px}
.v223-table td .v35-percent-shell input,.v223-table td .v121-rate input,.v223-table td .v17-fee-rate input{flex:1;min-width:0}
.v223-table td .v35-percent-shell,.v223-table td .v121-rate,.v223-table td .v17-fee-rate{gap:4px;width:100%}
.v223-table tr.v223-total td{background:#f3f8f5;border-top:3px solid #d4e4da}
.v223-table tr.v223-total td.v223-label{background:linear-gradient(to right,#fff 0,#fff 22px,#f3f8f5 22px)}
.v223-table td select,.v223-table td input[type=number],.v223-table td input[type=text]{height:32px;border:1px solid #dce7df;border-radius:8px;background:#fff;box-sizing:border-box;max-width:100%}
.v223-table td > select{width:100%}
.v223-table td .v35-percent-shell,.v223-table td .v121-rate,.v223-table td .v17-fee-rate{display:flex;align-items:center;max-width:100%}
.v223-table td input:disabled,.v223-table td select:disabled{background:#f1f4f2!important}
.v223-table td .v205-update{margin-left:6px}
.v223-table tr.v223-row td.v223-amount > *{display:block;margin:0!important;line-height:1.3}
.v223-fees th.v223-first{width:30%}
.v223-fees th:nth-child(2){width:31%}
.v223-fees th:nth-child(3){width:21%}
.v223-fees th:nth-child(4){width:14%}
.v223-fees th:nth-child(5){width:26px}
.v223-fees tr.v223-row td{padding-left:5px;padding-right:5px}
.v223-fees tr.v223-row td.v223-label{padding-left:34px}

/* V228: Price & refurb+ margin box and footnote. */
.v228-margin{display:inline-flex;align-items:center;gap:4px;margin-top:4px;background:#fff;border:1px solid #dce7df;border-radius:8px;padding:0 8px;height:30px;box-sizing:border-box;width:100%}
.v228-margin span,.v228-margin i{color:#6d8777;font-style:normal;font-size:12px}
.v228-margin input{border:0!important;height:28px!important;flex:1;min-width:0;text-align:right;background:transparent!important}
.v228-note{font-size:11.5px;color:#5d6f64;margin:6px 4px 2px;line-height:1.45}
.v228-na{color:#9aa9a0}

/* V229: Defaults page boxes right-aligned like Inputs. */
.v188-cards input.qty-rate,.v188-cards input[type=number]{text-align:right!important}
html body .v188-cards table input.qty-rate:not(#v229a),html body .v188-cards table .v13-rate-shell input:not(#v229a){text-align:right!important}

/* V230: one row format everywhere — the standard input row (44px, green band with the dark
   stripe, bold dark-green label, 32px white boxes, figures right-aligned).
   Applies to Inputs › Asset Value / Finance (V223 tables) and the Defaults page Asset Value,
   Finance, Inflation and Cash flow cards (V205 / V213 tables). */
html body .v223-table tr.v223-row td,html body .v205-table tbody tr td{height:44px!important;padding:3px 8px!important;box-sizing:border-box;vertical-align:middle;background:#c8e3d2!important;border-top:3px solid #d4e4da!important;border-bottom:1px solid #eef1ee!important;border-left:0!important;border-right:0!important}
html body .v223-table tr.v223-row td.v223-label,html body .v205-table tbody tr td:first-child{background:linear-gradient(to right,#fff 0,#fff 22px,#488662 22px,#488662 25px,#c8e3d2 25px)!important;padding-left:34px!important;color:#205e47;font-size:14px}
html body .v205-table tbody tr td:first-child strong,html body .v205-table tbody tr td:first-child{font-weight:800;color:#205e47}
html body .v223-table tr.v223-total td{background:#f3f8f5!important}
html body .v223-table tr.v223-total td.v223-label{background:linear-gradient(to right,#fff 0,#fff 22px,#f3f8f5 22px)!important}
html body .v205-table{border-collapse:collapse!important;border-spacing:0!important}
html body .v205-table th{font-size:10px!important;font-weight:700!important;letter-spacing:1px!important;text-transform:uppercase!important;color:#82918e!important;padding:4px 8px 11px!important}
html body .v205-table th:first-child{padding-left:34px!important;text-align:left!important}
html body .v223-table td select,html body .v223-table td input[type=number],html body .v223-table td input[type=text],
html body .v205-table td select,html body .v205-table td input{height:32px!important;min-height:32px!important;box-sizing:border-box!important;border:1px solid #dce7df;border-radius:8px;background:#fff;margin:0!important;font-size:13px!important}
html body .v205-table td .v13-rate-shell{height:32px!important;min-height:32px!important;margin:0!important;max-width:none!important;width:100%!important;box-sizing:border-box}
html body .v205-table td .v13-rate-shell input{height:30px!important;min-height:30px!important;border:0!important}
html body .v205-table td select.cost-select{width:100%!important;max-width:none!important}
html body .v223-table .v28-dcf-result{min-height:0!important;height:auto!important;padding:0!important;margin:0!important;display:block}
html body .v223-table td > *{margin-top:0!important;margin-bottom:0!important}
html body .v223-table .v121-rate i,html body .v223-table .v35-percent-sign{line-height:1}
html body .v205-table td select.cost-select:not(#v230a){height:32px!important;min-height:32px!important;padding:4px 8px!important;line-height:20px!important}
html body .v213-infl th:first-child{width:27%!important}
html body .v213-flow th:first-child{width:30%!important}
html body .v205-table:not(.v213-infl):not(.v213-flow) th:first-child{width:26%}
html body .v205-table td:first-child{white-space:normal;line-height:1.2}
.v234-calc{display:block;text-align:right;color:#5d6f64;font-style:italic}
.v234-blank .v188-note{color:#9aa9a0;font-style:italic}

/* V237: subtotal on split headings in Assumptions — light so it reads as "not added again". */
.v237-sub{color:#b3c0b8;font-weight:400;font-style:italic}

/* V238 */
tr.v238-sub td{font-weight:700;color:#205e47}

/* V239: lender-cost rows fit a half-width card; dropdown text no longer cut off. */
html body .v223-table td select:not(#v239a){padding:4px 26px 4px 8px!important;line-height:22px!important;font-size:13px!important;text-overflow:ellipsis}
html body .v223-fees:not(#v239a) th.v223-first{width:31%!important}
html body .v223-fees:not(#v239a) th:nth-child(2){width:29%!important}
html body .v223-fees:not(#v239a) th:nth-child(3){width:20%!important}
html body .v223-fees:not(#v239a) th:nth-child(4){width:15%!important}
html body .v223-fees:not(#v239a) th:nth-child(5){width:5%!important}
html body .v223-fees tr.v223-row td:last-child{padding-left:0!important;padding-right:2px!important;text-align:center}
html body .v223-fees tr.v223-row td:last-child button{min-width:0;width:22px;height:22px;padding:0}
html body .v223-fees td input[type=text]:not(.qty-rate),html body .v223-fees td > input{width:100%}
.v239-manual{display:flex;width:100%;max-width:none}
.v239-manual input{text-align:right!important}
td.v239-na input{opacity:.5}

/* V241: Acquisition & Works Finance and Operating Finance each take a full-width row. */
.inputs-layout > #v18-section-8,.inputs-layout > #v18-section-9{grid-column:1/-1!important}
#v18-section-8 .v223-table:not(.v223-fees) td:nth-child(2) > select,#v18-section-9 .v223-table:not(.v223-fees) td:nth-child(2) > select,
#v18-section-8 .v223-table:not(.v223-fees) td:nth-child(2) > input,#v18-section-9 .v223-table:not(.v223-fees) td:nth-child(2) > input,
#v18-section-8 .v223-table:not(.v223-fees) td:nth-child(2) > .v35-percent-shell,#v18-section-9 .v223-table:not(.v223-fees) td:nth-child(2) > .v35-percent-shell{max-width:260px!important}
#v18-section-8 .v223-fees td select,#v18-section-8 .v223-fees td .v17-fee-rate{max-width:260px}
#v18-section-8 .v223-table:not(.v223-fees) th:nth-child(2),#v18-section-9 .v223-table:not(.v223-fees) th:nth-child(2){width:290px!important}
#v18-section-8 .v223-table:not(.v223-fees) th.v223-first,#v18-section-9 .v223-table:not(.v223-fees) th.v223-first{width:auto!important}

/* V245: Acquisition & Works Finance no longer shows the Lender fees / Estimated interim
   interest / All-in funding need boxes at the bottom of the section. */
#v18-section-8 .v31-finance-bottom{display:none!important}

/* V248: Inputs tables — Input Basis 10px wider, Applied To 5px narrower. */
html body .category-table.v9-table:not(.v188-table):not(#v248a) th:nth-child(2){width:143px!important}
html body .category-table.v9-table:not(.v188-table):not(#v248a) th:nth-child(3){width:71px!important}
/* Applied Rent row: the Default label sits beside the name, as on other rows. */
html body tr.v115-rent-row td:first-child .group-toggle{display:flex!important;align-items:center;justify-content:space-between;gap:8px;flex-wrap:nowrap}
html body tr.v115-rent-row td:first-child .group-toggle .allocation-v8-buttons{margin-left:auto}
/* V248b: Applied Rent row — the buttons cell grows to fit the Default ✕ label on the name line. */
html body .v9-table tr.v115-rent-row.main-head td:first-child .group-toggle .allocation-v8-buttons{display:flex!important;align-items:center;justify-content:flex-end;width:auto!important;min-width:0!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body .v9-table tr.v115-rent-row.main-head td:first-child .group-toggle .allocation-v8-buttons .v200-tag{position:static!important;margin:0!important;white-space:nowrap}
/* V249: Applied To 5px wider (71 → 76px). */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v249a) th:nth-child(3){width:76px!important}
/* V250: Applied To another 10px wider (76 → 86px). */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v249a):not(#v250a) th:nth-child(3){width:86px!important}
/* V251: Applied To another 10px wider (86 → 96px). */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v249a):not(#v250a):not(#v251a) th:nth-child(3){width:96px!important}
/* V253: Council savings row note on the Defaults page. */
.v253-note{font-weight:400;color:var(--muted,#6b7a72);font-size:11px;margin-left:6px}
/* V254: Asset disposal — a Manual £ box fills its column and lines up on the right, like the
   other boxes and the £ amounts. */
html body .v223-table tr.v223-row td:has(.v239-manual){text-align:right}
html body .v223-table tr.v223-row td .v13-rate-shell.v239-manual{display:flex!important;width:100%!important;max-width:none!important;margin-left:auto;box-sizing:border-box}
html body .v223-table tr.v223-row td .v13-rate-shell.v239-manual input{width:100%!important;text-align:right}
/* V254: Timing & Inflation › inflation indices use the green input rows, as on the Defaults page. */
html body table.v21-inflation-table tbody tr td{background:#c8e3d2;border-top:3px solid #d4e4da;border-bottom:1px solid #eef1ee;padding:6px 8px;vertical-align:middle;height:44px;box-sizing:border-box}
html body table.v21-inflation-table tbody tr td:first-child{background:linear-gradient(to right,#fff 0,#fff 22px,#488662 22px,#488662 25px,#c8e3d2 25px);padding-left:34px;color:#205e47;font-size:14px;font-weight:800}
html body table.v21-inflation-table tbody tr td{padding-top:3px!important;padding-bottom:3px!important}
html body table.v21-inflation-table tbody tr td :is(input,select){height:32px;min-height:0;margin:0}
/* V255: Defaults › Tenures — text boxes, left-aligned. */
html body .v255-table .v255-text{width:100%;box-sizing:border-box;text-align:left;height:32px;padding:0 10px}
html body .v255-table th:nth-child(1){width:34%}html body .v255-table th:nth-child(3){width:140px}
html body .v255-table th:nth-child(2),html body .v255-table th:nth-child(3){text-align:left}
/* V256: Defaults › Names › Line names. */
html body .v256-table th:nth-child(1){width:46%}
html body .v256-table tr.v256-sec td{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#205e47;padding:14px 8px 6px;background:transparent}
html body .v256-table td.v256-sub{padding-left:48px;color:#3d5a4b}
html body .v256-table .v255-text::placeholder{color:#9aa9a0}
html body table.v256-table tbody tr.v256-sec td{background:#fff!important;border:0!important;height:auto!important;padding:16px 8px 6px!important;font-size:11px!important;font-weight:800!important;letter-spacing:.06em;text-transform:uppercase;color:#205e47!important}
html body table.v256-table tbody tr.v11-unit-row td{background:#fff!important;height:40px;padding-top:3px!important;padding-bottom:3px!important;border-bottom:1px solid #eef1ee}
html body table.v256-table tbody tr.v11-unit-row td.v256-sub{padding-left:48px!important;font-weight:500!important;color:#3d5a4b!important;font-size:13px!important;background:#fff!important}
/* V257: main lines whose name is fixed. */
html body .v256-table .v257-fixed-note{font-size:12px;color:#5d7a69;font-style:italic;padding-left:10px}
/* V261: Payback (flexible) year labels. */
html body tr.v261-years td{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#205e47;background:#f3f8f5}
/* V262: Defaults › KPIs. */
html body .v262-table th:nth-child(1){width:28%}html body .v262-table th:nth-child(2){width:120px}
html body .v262-table .v262-dir{display:block;font-weight:500;font-size:11px;color:#4f7362;margin-top:2px}
html body .v262-cell{display:flex;align-items:center;gap:6px;justify-content:flex-end}
html body .v262-cell .v13-rate-shell{flex:1 1 auto;min-width:0;max-width:150px}
html body .v262-cell small{font-size:11px;color:#4f7362;white-space:nowrap}
html body .v262-cell b{font-weight:700;color:#205e47}
html body .v262-cell .v176-rag{position:static!important;flex:0 0 auto;margin:0!important;transform:none!important}
html body .v262-red{justify-content:flex-start;color:#7a2e2e;font-weight:600}
html body .v262-switch{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:12px;font-weight:600;color:#205e47}
html body .v262-switch input{width:16px;height:16px;accent-color:#2f7a55;margin:0}
html body tr.v262-off td{opacity:.6}
html body .v262-cell .v13-rate-shell{min-width:96px}
/* V263: KPIs tab — every threshold box the same width; the unit note has a fixed slot. */
html body .v262-cell{justify-content:flex-start}
html body .v262-cell .v13-rate-shell{flex:0 0 120px!important;width:120px!important;min-width:120px!important;max-width:120px!important}
html body .v262-cell .v13-rate-shell input{width:100%!important}
html body .v262-cell small.v263-note{flex:0 0 26px;width:26px}
html body .v262-cell b{flex:0 0 12px;text-align:center}
/* V264: Inputs tables — Input Basis 5px wider (143 → 148px). */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v264a) th:nth-child(2){width:148px!important}
/* V265: Inputs tables — Input Basis another 5px wider (148 → 153px). */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v264a):not(#v265a) th:nth-child(2){width:153px!important}
/* V265: Inputs tables — Calculated amount 5px narrower (120 → 115px). */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v264a):not(#v265a) th:nth-child(6){width:115px!important}
/* V268: manual cash-flow boxes — no spinner arrows, right-aligned with separators; balance status and fill dropdown. */
html body .v22-period-input input::-webkit-outer-spin-button,html body .v22-period-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
html body .v22-period-input input[type=number]{-moz-appearance:textfield;appearance:textfield}
html body .v22-period-input{position:relative;display:flex;align-items:center}
html body .v22-period-input input.v268-box{text-align:right;padding-right:4px;min-width:0;flex:1 1 auto}
html body .v22-period-input select.v268-fill{flex:0 0 18px;width:18px;padding:0;border:0;background:transparent;color:#2f7a55;font-size:11px;cursor:pointer;appearance:none;-webkit-appearance:none;text-align:center}
html body small.v268-status{display:block;font-size:11px;font-weight:700;margin-top:2px}
html body small.v268-ok{color:#2f7a55}
html body small.v268-off{color:#a8641a}
html body table tr td small.v268-status{display:block!important;line-height:1.2}
html body .v22-period-input input.v268-box{width:auto!important;flex:1 1 0!important;min-width:0!important}
html body .v22-period-input select.v268-fill{display:inline-block!important;height:22px;line-height:22px;border-radius:4px;background:#e6f1ea!important;margin-left:2px}
html body .v22-period-input select.v268-fill:hover{background:#cfe6d8!important}
html body .v22-period-input:has(.v268-box) > span{position:static!important;transform:none!important;margin:0 1px 0 3px;flex:0 0 auto;font-size:11px;color:#4f7362}
/* V269: smaller manual cash-flow boxes, right-aligned in the month column. */
html body td.v22-month .v22-period-input:has(.v268-box){max-width:112px;margin-left:auto;gap:0}
html body td.v22-month .v22-period-input input.v268-box{height:26px!important;min-height:0!important;padding:0 6px!important;font-size:12px!important;border-radius:6px!important}
html body td.v22-month:has(.v268-box){padding-top:4px!important;padding-bottom:4px!important}
/* V270: manual cash-flow boxes 5px wider. */
html body td.v22-month .v22-period-input:has(.v268-box){max-width:117px}
/* V271: inflated figure under a manual cash-flow box. */
html body table tr td small.v271-infl{display:block!important;text-align:right;font-size:10px;line-height:1.1;color:#4f7362;margin-top:2px;white-space:nowrap}
/* V272: while a line is not fully allocated (the ▾ balance arrow shows), its boxes are 5px wider. */
html body td.v22-month .v22-period-input:has(.v268-box):has(.v268-fill){max-width:122px}
/* V273: no text highlighting while a cash-flow table is being dragged. */
html body .v273-noselect,html body .v273-noselect *{user-select:none!important;-webkit-user-select:none!important}
html body .v273-noselect input,html body .v273-noselect textarea{user-select:text!important;-webkit-user-select:text!important}
/* V275: single home — no Add accommodation button or # column. */
html body .v275-hidden{display:none!important}
/* V277: the # box in the Provision table really hides for a single home (an older cell rule kept it visible). */
html body table.v43-unit-table tr > td.v275-hidden,html body table.v43-unit-table tr > th.v275-hidden,html body table.v17-provision-table tbody tr > td.v275-hidden{display:none!important}
html body table.unit-table.v17-provision-table.v43-unit-table tr > td.v275-hidden,html body table.unit-table.v17-provision-table.v43-unit-table tr > th.v275-hidden{display:none!important}
/* V278: one readable text scale on the Viability pages. */
html body #content.v278-viab table td,html body #content.v278-viab table td *:not(i):not(svg):not(svg *){font-size:13px!important}
html body #content.v278-viab table th,html body #content.v278-viab table th *{font-size:11px!important}
html body #content.v278-viab .v33-finance-row span,html body #content.v278-viab .v33-finance-row b{font-size:13px!important}
html body #content.v278-viab .v33-col-head span,html body #content.v278-viab .v33-col-head b{font-size:11px!important}
html body #content.v278-viab .v33-stat > span{font-size:12px!important}
html body #content.v278-viab .v33-stat small{font-size:12px!important}
html body #content.v278-viab .v42-bullet h4{font-size:13px!important}
html body #content.v278-viab .v42-bullet-legend span,html body #content.v278-viab .v37-chart-legend span{font-size:12px!important}
html body #content.v278-viab p.v40-npv-note,html body #content.v278-viab section footer,html body #content.v278-viab .v33-caveat,html body #content.v278-viab header small,html body #content.v278-viab .v33-table-card p,html body #content.v278-viab .v146-intro p,html body #content.v278-viab .v153-note{font-size:12px!important;line-height:1.45}
/* V279: Location & map card on Property Manager. */
html body .v279-card{margin-top:18px}
html body .v279-card header .v39-input-actions button{border:1px solid #cfe0d6;background:#fff;border-radius:8px;padding:5px 12px;font-size:12px;font-weight:700;color:#205e47;cursor:pointer;margin-left:6px}
html body .v279-card header .v39-input-actions button.active{background:#205e47;color:#fff;border-color:#205e47}
html body .v279-body{display:grid;grid-template-columns:300px minmax(0,1fr);gap:16px;padding:14px 18px 18px}
html body .v279-side{display:flex;flex-direction:column;gap:10px;min-width:0;font-size:13px}
html body .v279-facts{display:grid;gap:6px}
html body .v279-facts div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #eef1ee;padding:4px 0}
html body .v279-facts span{color:#5d7a69}
html body .v279-facts b{color:#205e47;text-align:right}
html body .v279-facts small{font-weight:500;color:#5d7a69}
html body .v279-msg{margin:0;color:#a8641a;font-weight:600}
html body .v279-actions{display:flex;gap:8px;flex-wrap:wrap}
html body .v279-actions button{border:1px solid #cfe0d6;background:#fff;border-radius:8px;padding:7px 12px;font-weight:700;color:#205e47;cursor:pointer}
html body .v279-actions button.primary{background:#205e47;color:#fff;border-color:#205e47}
html body .v279-actions button:disabled{opacity:.6;cursor:wait}
html body .v279-overlaps ul{list-style:none;margin:6px 0 0;padding:0;max-height:220px;overflow:auto}
html body .v279-overlaps li{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid #eef1ee}
html body .v279-overlaps li span{font-weight:700;color:#205e47;white-space:nowrap}
html body .v279-overlaps small{color:#5d7a69}
html body .v279-layers,html body .v279-service{border:1px solid #e3ece6;border-radius:8px;padding:6px 10px}
html body .v279-layers summary,html body .v279-service summary{cursor:pointer;font-weight:700;color:#205e47}
html body .v279-layers{max-height:340px;overflow:auto}
html body .v279-layer{display:flex;align-items:center;gap:6px;padding:2px 0;font-size:12px;cursor:pointer}
html body .v279-layer i{width:10px;height:10px;border-radius:2px;flex:0 0 10px;border:1px solid rgba(0,0,0,.2)}
html body .v279-group{display:block;margin:6px 0 2px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#5d7a69}
html body .v279-service label{display:block;font-size:12px;margin-top:6px;color:#5d7a69}
html body .v279-service input{display:block;width:100%;box-sizing:border-box;margin-top:2px;height:30px;border:1px solid #cfe0d6;border-radius:6px;padding:0 8px}
html body .v279-mapbox,html body .v279-canvas{min-height:460px;height:460px;border-radius:10px;overflow:hidden;background:#eef3f0}
@media (max-width:900px){html body .v279-body{grid-template-columns:1fr}}
/* V283: details under each overlap (district, PTAL score, ward…). */
html body .v279-overlaps li small.v283-detail{display:block;font-size:12px;font-weight:700;color:#205e47;margin-top:1px}
html body .v279-overlaps li{align-items:flex-start}

/* V292: Rightmove import status line */
.v292-status{margin-top:8px;font-size:12px;line-height:1.4;color:var(--muted,#667)}
.v292-status:empty{display:none}
.v292-status.v292-ok{color:#1d7a46}
.v292-status.v292-warn{color:#a86b00}
.v292-status.v292-err{color:#b3261e}

/* V293: Check overlaps button once this boundary has been checked */
.v279-actions button.primary.v293-checked{background:#e6f4ec!important;color:#1d6a43!important;border-color:#8cc5a3!important}
.v279-actions button.primary.v293-checked:hover{background:#d5ecdf!important}

/* V295: Assumptions colours. Main / sub line totals in the same dark colour as the labels (bold kept);
   cascade (↳) totals plain, a shade lighter than their grey labels. Section headings stay green. */
#content .v37-assumptions tbody tr:not(.v37-group):not(.v37-detail) > td:nth-child(2),#content .v37-assumptions tbody tr:not(.v37-group):not(.v37-detail) > td:nth-child(2) *{color:rgb(23,45,48)!important}
#content .v37-assumptions tbody tr.v43-assumption-heading > td:nth-child(2),
#content .v37-assumptions tbody tr.v43-assumption-heading > td:nth-child(2) .v237-sub{color:rgb(23,45,48)!important;font-weight:800!important}
#content .v37-assumptions tbody tr.v37-detail > td:nth-child(2){color:rgb(132,149,138)!important;font-weight:400!important}

/* V297: one DCF section (asset by tenure + council savings) */
.v121-dcf tr.v297-sub td{padding-top:14px!important;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:rgb(87,109,100)}
.v121-dcf tr.v297-subtotal td,.v121-dcf tr.v297-subtotal td strong{font-weight:700!important;color:rgb(23,45,48)!important}
.v121-dcf tr.v297-total td{border-top:1px solid rgb(214,226,218)}

/* V298: where the set rents come from */
tr.v298-note td{padding:6px 14px 10px!important;font-size:12px;color:rgb(87,109,100);background:#f7faf8}
tr.v298-note .v298-refresh{margin-left:8px;padding:2px 10px;font-size:12px;border:1px solid rgb(214,226,218);border-radius:6px;background:#fff;color:rgb(32,112,79);cursor:pointer}

/* V301: formula rent pop-up */
.v301-how{margin-left:8px;padding:2px 10px;font-size:12px;font-weight:600;border:1px solid rgb(214,226,218);border-radius:6px;background:#fff;color:rgb(32,112,79);cursor:pointer;white-space:nowrap}
.v301-how:hover{background:#eef6f1}
.v301-overlay{position:fixed;inset:0;z-index:10000;background:rgba(18,38,30,.42);display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow:auto}
.v301-dialog{background:#fff;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.25);width:min(780px,100%);font-family:"DM Sans",sans-serif;color:rgb(23,45,48)}
.v301-dialog header{display:flex;align-items:center;justify-content:space-between;padding:18px 22px 10px;border-bottom:1px solid rgb(226,234,229)}
.v301-dialog h3{margin:0;font-size:18px;font-weight:800;color:rgb(32,94,71)}
.v301-close{border:0;background:none;font-size:26px;line-height:1;color:rgb(87,109,100);cursor:pointer;padding:0 4px}
.v301-body{padding:14px 22px 22px;font-size:13px;line-height:1.5}
.v301-body h4{margin:18px 0 6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:rgb(87,109,100)}
.v301-lead{margin:4px 0 6px;color:rgb(60,80,72)}
.v301-pick{display:flex;gap:8px;align-items:center;margin-bottom:8px;font-weight:600}
.v301-pick select{padding:6px 10px;border:1px solid rgb(214,226,218);border-radius:8px}
.v301-table{width:100%;border-collapse:collapse}
.v301-table td{padding:7px 8px;border-bottom:1px solid rgb(236,242,238);vertical-align:top}
.v301-table td:first-child{width:38%;font-weight:600}
.v301-table td:nth-child(2){font-variant-numeric:tabular-nums;white-space:nowrap}
.v301-table td:nth-child(3){color:rgb(100,120,110);font-size:12px}
.v301-table small{display:block;color:rgb(100,120,110);font-weight:400;font-size:12px}
.v301-steps td.v301-n{width:28px!important;color:rgb(32,112,79);font-weight:800}
.v301-steps td:nth-child(2){white-space:normal;font-weight:600}
.v301-steps td:nth-child(3){text-align:right;white-space:nowrap;color:rgb(23,45,48);font-size:13px;font-weight:700}
.v301-result td{border-top:2px solid rgb(32,112,79);font-weight:800!important;font-size:14px!important;color:rgb(32,94,71)!important}
.v301-note{margin-top:14px;font-size:12px;color:rgb(110,128,118)}
@media (max-width:600px){.v301-table td:first-child{width:auto}.v301-table td:nth-child(3){display:none}.v301-steps td:nth-child(3){display:table-cell}}

/* V302: formula rent pop-up laid out like the guidance's worked example */
.v301-formula td:first-child{width:40%;font-weight:600}
.v301-formula td:nth-child(2){white-space:normal!important;color:rgb(87,109,100);font-size:12.5px}
.v301-formula td:nth-child(3){text-align:right;white-space:nowrap;font-weight:700;font-variant-numeric:tabular-nums}
.v301-formula td i{font-style:normal;font-weight:500;color:rgb(110,128,118);font-size:11px;margin-left:4px}
.v301-formula tr.v301-sum td{border-top:1px solid rgb(200,214,205);font-weight:800}
.v301-steps td.v301-n:empty{width:0!important;padding:0!important}

/* V303: set rent working under each home in Assumptions */
.v303-why{display:block;margin-top:2px;font-size:11.5px;color:rgb(110,128,118);line-height:1.4}

/* V309: a split line's total in Assumptions reads like the other main lines (not italic) */
#content .v37-assumptions tbody tr.v43-assumption-heading > td:nth-child(2) .v237-sub{font-style:normal!important}

/* V313: Rightmove link in Property Manager */
.v313-listing .v313-row{display:flex;gap:8px;align-items:center}
.v313-listing .v313-row input{flex:1;min-width:0}
.v313-listing .v313-row a{white-space:nowrap;font-size:13px;font-weight:600;color:rgb(32,112,79);text-decoration:none}
.v313-listing .v313-row a:hover{text-decoration:underline}

/* V317: figures line up in every table. DM Sans (the body font) has no equal-width digits, so a
   "1" is half the width of a "0"; tables use Manrope (already the app's heading font), whose
   digits are all the same width, with tabular figures switched on. Inputs keep DM Sans. */
#content table,#content table td,#content table th,body table td,body table th{font-family:Manrope,"DM Sans",sans-serif!important;font-variant-numeric:tabular-nums lining-nums!important;font-feature-settings:"tnum" 1,"lnum" 1}
.v301-dialog td{font-family:Manrope,"DM Sans",sans-serif!important}

/* V321: DCF & Asset Valuation and Asset disposal tables get the same white gap between rows as the
   other Inputs tables (.v9-table tr.main-head:not(:first-child) td) */
#content .v121-dcf table.v223-table tbody > tr:not(:first-child) > td{border-top:4px solid #fff!important}

/* V324: Property Manager layout */
.fieldgrid .v324-full{grid-column:1 / -1}
.v324-panel{margin-bottom:16px}

/* V325: Property record and Accommodation & workflow side by side at the same height */
#content .two.v325-equal{align-items:stretch}
#content .two.v325-equal > div{display:flex;flex-direction:column}
#content .two.v325-equal > div > section.panel{flex:1 1 auto;margin-bottom:0}
.v325-condition textarea{width:100%;box-sizing:border-box;resize:vertical}

/* V326: notes typed in Assumptions › Comments / notes */
.v37-assumptions td.v326-note{cursor:text;min-width:160px;vertical-align:middle}
.v37-assumptions td.v326-note .v326-add::before{content:"+ Add note";color:rgb(140,160,150);font-size:12px;opacity:0;transition:opacity .15s}
.v37-assumptions tr:hover td.v326-note .v326-add::before{opacity:1}
.v37-assumptions td.v326-note .v326-text{display:block;white-space:normal;color:rgb(23,45,48);font-size:12.5px;line-height:1.4}
.v37-assumptions td.v326-note:hover{background:rgba(32,112,79,.05)}
.v326-edit{width:100%;box-sizing:border-box;min-height:44px;padding:6px 8px;border:1px solid rgb(32,112,79);border-radius:6px;font:inherit;font-size:12.5px;resize:vertical;background:#fff}

/* V327: notes on Inputs lines */
.v327-note-btn{margin-left:6px;padding:0 5px;height:20px;line-height:18px;font-size:12px;border:1px solid transparent;border-radius:5px;background:transparent;color:rgb(140,160,150);cursor:pointer;vertical-align:middle;opacity:.35}
tr.main-head:hover .v327-note-btn{opacity:1;border-color:rgb(214,226,218);background:#fff}
.v327-note-btn.v327-has{opacity:1;color:#fff;background:rgb(32,112,79);border-color:rgb(32,112,79)}
tr.v327-editor td{padding:8px 14px 12px!important;background:#f7faf8!important;border-top:0!important}
tr.v327-editor label{display:block;font-size:12px;font-weight:700;color:rgb(32,94,71);margin-bottom:4px}
tr.v327-editor label small{font-weight:400;color:rgb(120,138,128);margin-left:6px}
tr.v327-editor textarea{width:100%;box-sizing:border-box;min-height:46px;padding:6px 8px;border:1px solid rgb(32,112,79);border-radius:6px;font:inherit;font-size:13px;resize:vertical;background:#fff}
.v37-assumptions td.v327-out{cursor:default}

/* V330: note button in the margin to the right of the table */
#content .v330-room{padding-right:30px!important;box-sizing:border-box}
#content td.v330-margin{position:relative;overflow:visible!important}
#content td.v330-margin > .v327-note-btn{position:absolute;left:calc(100% + 5px);top:50%;transform:translateY(-50%);margin:0}

/* V334: link from the Payback (flexible) tile to its schedule */
.v33-stat a.v334-link{color:inherit;text-decoration:underline;text-decoration-style:dotted;cursor:pointer}
.v33-stat a.v334-link:hover{color:rgb(32,112,79)}
tr.v334-flash > td{background:#fff3c4!important;transition:background .4s}

/* V336: portfolios */
.v336-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.v336-card{padding:18px 20px;cursor:pointer;transition:box-shadow .15s,transform .15s}
.v336-card:hover{box-shadow:0 6px 20px rgba(23,45,48,.10);transform:translateY(-1px)}
.v336-card h3{margin:0 0 2px;font-size:17px}
.v336-figs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 10px}
.v336-figs span{display:block;font-size:11px;color:rgb(110,128,118);text-transform:uppercase;letter-spacing:.04em}
.v336-figs b{font-family:Manrope,"DM Sans",sans-serif;font-size:16px;font-variant-numeric:tabular-nums}
.v336-figs b.negative{color:#b3261e}
.v336-open{font-size:12px;font-weight:700;color:rgb(32,112,79)}
.v336-members td,.v336-members th{vertical-align:middle}
.v336-members select{padding:6px 8px;border:1px solid rgb(214,226,218);border-radius:8px;background:#fff;max-width:220px}
.v336-members .v336-c{text-align:center}
.v336-members tr.v336-off td{opacity:.5}
.v336-add{padding:7px 10px;border:1px solid rgb(32,112,79);border-radius:8px;background:#fff;color:rgb(32,112,79);font-weight:600}
.v336-tabs{display:flex;gap:8px;margin:18px 0 12px}
.v336-tabs button{padding:8px 16px;border:1px solid rgb(214,226,218);border-radius:10px;background:#fff;font-weight:700;color:rgb(32,94,71);cursor:pointer}
.v336-tabs button.active{background:rgb(32,94,71);color:#fff;border-color:rgb(32,94,71)}
.v336-note{margin:0 0 10px}
.v336-chart{padding:16px 20px;margin-top:16px}
.v336-chart h3{margin:0}
.v336-cf{overflow-x:auto}
.v336-cf td:first-child,.v336-cf th:first-child{position:sticky;left:0;background:#fff;z-index:1;min-width:230px}
.v336-npv td:nth-child(n+3),.v336-npv th:nth-child(n+3){text-align:right}
/* V337: portfolio pages laid out as a property's Viability pages */
.v336-members td.v22-cell-num{white-space:nowrap}
.v337-subnav{margin-top:14px}
.v337-body .v146-npv [onclick],.v337-body .v37-assumptions .v327-edit{cursor:default}
/* V338: portfolio tab bar sits at the top of the window (no property bar above it); site rows; cash-flow toggle on one line */
.v337-subnav{top:0}
.v337-body tr.v337-site td{font-weight:750;color:#1f5a40;background:#f4f9f5}
.v337-body tr.v337-in td:first-child{text-indent:14px}
.v337-body .toolbar{align-items:flex-start;gap:18px}
.v337-body .toolbar>div:first-child{flex:1;min-width:0}
.v337-body .toolbar .v35-fy-toggle{flex-wrap:nowrap;white-space:nowrap;margin:0;flex:none}
/* V340: portfolio site names on the left (NPV); the Assumptions "Calculated total" heading lines up with its right-aligned figures */
.v337-body tr.v337-site td:first-child{text-align:left!important}
.v37-assumptions thead th:nth-child(2){text-align:right}
/* V342: DCF popup over the NPV tab */
.v342-back{position:fixed;inset:0;background:rgba(18,44,32,.45);z-index:3000;display:flex;align-items:flex-start;justify-content:center;padding:36px 16px;overflow:auto}
.v342-pop{background:#f7faf8;border-radius:12px;max-width:1180px;width:100%;box-shadow:0 22px 60px #0005;padding:16px 18px 18px}
.v342-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;color:#1f5a40;font-size:15px}
.v342-close{border:1px solid #cfe2d6;background:#fff;color:#225940;border-radius:8px;padding:7px 12px;cursor:pointer;font-weight:750;font-size:12px}
.v342-pop .v146-npv{margin:0}
.v337-body .v146-npv .v147-dcf-link{cursor:pointer}
/* V343: on wide screens the Dashboard and NPV pages stop at a comfortable width (space on the right) */
@media (min-width:1500px){
 .content .v33-viability,.content .v146-npv:not(.v153-dcf){max-width:1320px}
}
/* V344: Vestega */
.v344-toast{position:fixed;right:22px;bottom:22px;z-index:3100;background:#1f5a40;color:#fff;padding:11px 16px;border-radius:10px;font-size:13px;font-weight:650;box-shadow:0 10px 30px #0003;max-width:520px}
.v344-toast.bad{background:#8a3b32}
tr.v344-default input:disabled{background:#f1f5f2;color:#9aa9a0}
.v344-dnote{display:block;font-size:11px;color:#4f7a62;font-weight:650;margin-top:3px}
/* V345: Vestega market yield card on the Defaults page */
.v345-adj{background:#fff;border:1px solid #d9e9df;border-radius:12px;padding:14px 16px;margin:12px 0 16px}
.v345-head b{display:block;color:#1f5a40;font-size:14px;margin-bottom:3px}
.v345-head small{display:block;color:#5d7a6b;font-size:12px;line-height:1.45;max-width:980px}
.v345-grid{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:10px}
.v345-grid>b{width:64px;font-size:12px;color:#355f49;padding-bottom:8px}
.v345-cell{display:flex;flex-direction:column;gap:3px;font-size:11px;color:#5d7a6b;font-weight:700}
.v345-in{display:flex;align-items:center;gap:4px}
.v345-in input{width:64px;padding:6px 8px;border:1px solid #cfe2d6;border-radius:7px;font:inherit;font-size:12.5px;text-align:right}
.v345-in i{font-style:normal;color:#6b8577}
.v345-set .v345-in input{border-color:#7fb89a;background:#eef7f1}
/* V346: Vestega Market Rent shows the rent per month under the annual amount */
.v346-pm{display:block;font-size:11px;font-weight:700;color:#2f7a55;margin-top:2px;white-space:nowrap}
/* V347: Defaults › Purchase Price on Vestega (its only default) */
.v347-total{color:#7d9488;font-size:12px}
.v347-note{font-size:11.5px;color:#4f7a62;font-weight:650}
/* V349: rows on Vestega are locked (figures read-only, Sub / split / Default buttons hidden) */
tr.v349-locked input.v349-lock{background:#eef2ef!important;color:#4f6358!important;border-color:#dbe5de!important;pointer-events:none;cursor:default}
tr.v349-locked .v349-hide{display:none!important}
/* V352: the Vestega tag (as the Default tag, in its own colour) */
.v188-tag.v352-tag{background:#fbf0dc!important;color:#8a5a12!important;border-color:#ecd3a6!important}
.v188-tag.v352-tag .v188-off{color:#8a5a12!important}
/* V354: still copy of the page while the Excel file is built */
.v354-snap{pointer-events:none}
/* V355: overlaps are automatic (no Check overlaps button); on a property the site is fixed */
.v279-card .v279-actions button[onclick^="checkOverlaps279"]{display:none!important}
.v279-card.v355-ro .v279-actions,.v279-card.v355-ro header .v39-input-heading small{display:none!important}

/* V358: finance inputs: Debt / Equity lines with linked £ and % (basis, distribution / repayment, rate and term span both lines) */
.v358-wrap{margin:14px 0 12px;overflow-x:auto}
.v358-fin{width:100%;border-collapse:separate;border-spacing:0;background:#f4f9f5;border:1px solid #d9e9df;border-radius:10px;overflow:hidden}
.v358-fin th{font-size:10.5px;font-weight:800;color:#4f6f5e;text-transform:uppercase;letter-spacing:.3px;text-align:left;padding:9px 12px 6px;white-space:nowrap}
.v358-fin th.v358-num{text-align:right}
.v358-fin td{padding:6px 12px;vertical-align:middle;border-top:1px solid #e3eee7}
.v358-fin tbody tr:first-child td{border-top:1px solid #d9e9df}
.v358-fin td[rowspan]{border-left:1px solid #e3eee7}
.v358-fin td[rowspan]:first-child{border-left:0}
.v358-line{font-weight:750;color:#1f5a40;width:80px}
.v358-fin select{width:100%;min-width:130px;height:34px;border:1px solid #cfe2d6;border-radius:8px;background:#fff;padding:5px 9px;font:inherit;font-size:13px;color:#1f3d2f}
.v358-in{display:flex;align-items:center;gap:6px;height:34px;border:1px solid #cfe2d6;border-radius:8px;background:#fff;padding:0 10px;min-width:96px}
.v358-in input{border:0;outline:0;background:transparent;width:100%;min-width:0;text-align:right;font:inherit;font-size:13px;color:#1f3d2f;padding:0}
.v358-in i{font-style:normal;color:#6b8577;font-size:12px}
.v358-gbp{min-width:130px}
.v358-fin select:disabled,.v358-fin input:disabled{color:#6a7d72;cursor:not-allowed}
.v358-fin select:disabled{background:#eef2ef}
.v358-in:has(input:disabled){background:#eef2ef}
/* V359: no headline boxes (peak funding / debt / equity; net requirement / debt / equity) above the finance inputs */
#content .input-card .v15-finance-grid{display:none!important}
/* V361: lender fees on Default: tag by the name, basis shown and locked */
.v361-lab{display:flex;align-items:center;justify-content:space-between;gap:10px}
select.v361-locked{background:#eef2ef!important;color:#4f6358!important;cursor:not-allowed;opacity:1}
/* V362: Asset Value tables like the other input cards */
.v28-valuation .v362-block{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0 0 18px!important}
.v28-valuation .v362-block>h3{font-size:12px;font-weight:800;color:#355f49;margin:0 0 8px;padding:0}
.v28-valuation .v362-block table{width:100%}
.v28-valuation th.v362-slot,.v28-valuation td.v362-slot{width:32px;padding:0;background:transparent!important;border:0!important}
.v362-footer{margin-top:0}
/* V363: Asset Value rows on Default */
tr.v363-def .group-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px}
tr.v363-def input:disabled{background:#eef2ef!important;color:#4f6358!important}
/* V364: the accommodation schedule's boxes use the same text as the other inputs (black, medium weight) */
#content table.v17-provision-table tbody input,#content table.v17-provision-table tbody select{color:#000!important;font-weight:500!important}
/* V365: Applied To column 5px wider (96px -> 101px) */
html body .category-table.v9-table:not(.v188-table):not(#v248a):not(#v249a):not(#v250a):not(#v251a):not(#v365a) th:nth-child(3){width:101px!important}
/* V366: Asset Value total lines run to the right edge (across the ✎ notes strip), as on the other cards */
.v28-valuation .v330-room>.v362-footer{margin-right:-30px}
/* V371: Compare sites */
.v371-picks{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.v371-col{display:flex;flex-direction:column;gap:8px;min-width:220px;flex:1 1 220px;max-width:280px;padding:12px;border:1px solid #d9e9df;border-radius:10px;background:#fff}
.v371-col.v371-basecol{background:#f4f9f5;border-color:#9fcab2}
.v371-row{display:flex;gap:6px;align-items:center}
.v371-col select{width:100%;height:34px;border:1px solid #cfe2d6;border-radius:8px;background:#fff;padding:5px 9px;font:inherit;font-size:13px;color:#1f3d2f}
.v371-x{border:1px solid #e3d3d0;background:#fff;color:#a54b40;border-radius:8px;width:32px;height:34px;cursor:pointer;flex:none}
.v371-base{font-size:12px;color:#4f6f5e;font-weight:700;display:flex;align-items:center;gap:6px}
.v371-add{align-self:center;border:1px dashed #9fcab2;background:#fff;color:#205e47;border-radius:10px;padding:10px 16px;font-weight:750;cursor:pointer;min-height:44px}
.v371-page th small{display:block;font-weight:600;opacity:.8;text-transform:none;letter-spacing:0;margin-top:2px}

/* V372: Compare sites - site columns and difference columns in different colours (baseline stays green) */
.v371-page .v184-table tr.v146-cols th:not(.v146-first):not(.v184-dh):not(.v185-base){background:#1f4f6e}
.v371-page .v184-table tr.v146-row td:not(.v146-first):not(.v184-d):not(.v185-base){background:#eef4f9;color:#1d3a4f;font-weight:650}
.v371-page .v184-table th.v184-dh{background:#6b6f73}
.v371-page .v184-table td.v184-d{background:#f5f5f2}

/* V373: Compare sites - fixed column widths, so one or two sites don't stretch across the page */
.v371-page .v146-table.v184-table{width:auto;min-width:0}
.v371-page .v184-table th.v146-first{width:230px;min-width:230px}
.v371-page .v184-table tr.v146-cols th:not(.v146-first):not(.v184-dh){width:150px;min-width:150px;max-width:150px;white-space:normal;vertical-align:bottom}
.v371-page .v184-table th.v184-dh{width:110px;min-width:110px;max-width:110px;vertical-align:bottom}

/* V374: same column colours and fixed widths on a property's scenario Compare tab; chart buttons and pop-up */
.v184-page .v184-table tr.v146-cols th:not(.v146-first):not(.v184-dh):not(.v185-base){background:#1f4f6e}
.v184-page .v184-table tr.v146-row td:not(.v146-first):not(.v184-d):not(.v185-base){background:#eef4f9;color:#1d3a4f;font-weight:650}
.v184-page .v184-table th.v184-dh{background:#6b6f73}
.v184-page .v184-table td.v184-d{background:#f5f5f2}
.v184-page .v146-table.v184-table{width:auto;min-width:0}
.v184-page .v184-table th.v146-first{width:230px;min-width:230px}
.v184-page .v184-table tr.v146-cols th:not(.v146-first):not(.v184-dh){width:150px;min-width:150px;max-width:150px;white-space:normal;vertical-align:bottom}
.v184-page .v184-table th.v184-dh{width:110px;min-width:110px;max-width:110px;vertical-align:bottom}
.v374-btn{display:inline-flex;align-items:center;justify-content:center;width:22px;height:20px;margin-left:6px;padding:0;border:1px solid #cfe2d6;border-radius:5px;background:#fff;color:#4f7a64;cursor:pointer;vertical-align:middle;opacity:.75}
.v374-btn svg{fill:currentColor}
.v374-btn:hover{opacity:1;background:#eef6f1;color:#1f4d3c;border-color:#9fcab2}
.v374-pop{max-width:680px}
.v374-pop:has(.v374-multi){max-width:1240px}
.v374-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.v374-top h3{margin:0;font:800 16px Manrope,sans-serif;color:#1f4d3c}
.v374-x{border:1px solid #d9e9df;background:#fff;border-radius:8px;width:32px;height:32px;cursor:pointer;color:#4f6f5e}
.v374-grid{display:grid;grid-template-columns:1fr;gap:12px}
.v374-grid.v374-multi{grid-template-columns:repeat(auto-fill,minmax(520px,1fr))}
.v374-chart{background:#fff;border:1px solid #e1ece5;border-radius:10px;padding:10px 12px}
.v374-chart h4{margin:0 0 6px;font:750 13px Manrope,sans-serif;color:#1f4d3c}
.v374-n{font:700 12px 'DM Sans',sans-serif;fill:#1f3d2f}
.v374-s{font:500 10px 'DM Sans',sans-serif;fill:#7a8f83}
.v374-v{font:700 12px 'DM Sans',sans-serif;fill:#1f3d2f}
.v374-b{fill:#2f7d5b}
.v374-o{fill:#2f6d95}
.v374-z{stroke:#9aa9a0;stroke-width:1}
@media (max-width:700px){.v374-grid.v374-multi{grid-template-columns:1fr}}

/* V375: Defaults rows on Vestega - locked blank Rate */
.v375-blank{display:block;min-width:110px}

/* V377: Vestega rows - locked Input basis, greyed like the other locked boxes */
select.cost-select.v377-locked{background-color:#f0f3f0!important;color:#6e8174!important;border-color:#d9e1db!important;cursor:not-allowed;opacity:1}

/* V379: AI assistant - button and side panel */
.v379-fab{position:fixed;right:20px;bottom:20px;z-index:2500;display:flex;align-items:center;gap:8px;padding:11px 18px;border:0;border-radius:999px;background:#1f4d3c;color:#fff;font:750 14px Manrope,sans-serif;box-shadow:0 10px 28px #0003;cursor:pointer}
.v379-fab span{color:#9fe0bd;font-size:16px}
.v379-fab:hover{background:#163f30}
body.v379-open .v379-fab{display:none}
.v379-panel{position:fixed;top:0;right:0;bottom:0;width:min(420px,100vw);z-index:2600;background:#f7faf8;border-left:1px solid #d9e9df;box-shadow:-14px 0 40px #0002;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .18s ease}
body.v379-open .v379-panel{transform:none}
.v379-panel header{display:flex;align-items:center;gap:8px;padding:14px 14px 12px 18px;border-bottom:1px solid #e1ece5;background:#fff}
.v379-panel header b{font:800 15px Manrope,sans-serif;color:#1f4d3c}
.v379-model{font-size:11px;color:#7a8f83;background:#eef6f1;border-radius:999px;padding:2px 8px;margin-right:auto}
.v379-ghost{border:1px solid #cfe2d6;background:#fff;color:#205e47;border-radius:8px;padding:6px 10px;font:700 12px 'DM Sans',sans-serif;cursor:pointer}
.v379-x{border:1px solid #d9e9df;background:#fff;border-radius:8px;width:32px;height:32px;cursor:pointer;color:#4f6f5e}
.v379-msgs{flex:1;overflow-y:auto;padding:16px 16px 8px;display:flex;flex-direction:column;gap:10px}
.v379-m{max-width:92%;padding:10px 13px;border-radius:12px;font:500 13.5px/1.5 'DM Sans',sans-serif;color:#1f3d2f}
.v379-m p{margin:0 0 6px}.v379-m p:last-child{margin:0}
.v379-m ul{margin:4px 0 6px;padding-left:18px}.v379-m li{margin:2px 0}
.v379-user{align-self:flex-end;background:#1f4d3c;color:#fff;white-space:pre-wrap}
.v379-assistant{align-self:flex-start;background:#fff;border:1px solid #e1ece5}
.v379-note{align-self:center;background:#fff6e8;border:1px solid #f0d9b0;color:#7a5418;font-size:12.5px}
.v379-hello{color:#4f6f5e;font:500 13.5px/1.5 'DM Sans',sans-serif}
.v379-hello button{display:block;width:100%;text-align:left;margin:6px 0;padding:9px 12px;border:1px solid #d9e9df;border-radius:10px;background:#fff;color:#1f4d3c;font:600 13px 'DM Sans',sans-serif;cursor:pointer}
.v379-hello button:hover{background:#eef6f1}
.v379-busy{display:flex;align-items:center;gap:8px;color:#6d8777;font:600 12.5px 'DM Sans',sans-serif;padding:4px 2px}
.v379-busy span{width:10px;height:10px;border-radius:50%;background:#2f7d5b;animation:v379p 1s infinite ease-in-out}
@keyframes v379p{0%,100%{opacity:.25}50%{opacity:1}}
.v379-card{align-self:stretch;background:#fff;border:1px solid #9fcab2;border-radius:12px;padding:12px 14px;font:500 13px/1.45 'DM Sans',sans-serif;color:#1f3d2f}
.v379-card-h{font:800 12px Manrope,sans-serif;color:#2f7d5b;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.v379-card p{margin:0 0 8px}
.v379-sub{font:750 12px Manrope,sans-serif;color:#4f6f5e;margin:8px 0 4px}
.v379-ch{list-style:none;margin:0;padding:0}
.v379-ch li{display:flex;flex-wrap:wrap;gap:4px 10px;justify-content:space-between;padding:4px 0;border-top:1px solid #eef3ef}
.v379-ch li:first-child{border-top:0}
.v379-ch span{color:#4f6f5e}.v379-ch b{color:#1f3d2f;font-weight:750}
.v379-ch i{font-style:normal;font-size:12px;color:#6d8777;width:100%;text-align:right}
.v379-btns{display:flex;gap:8px;align-items:center;margin-top:10px}
.v379-apply{border:0;background:#1f4d3c;color:#fff;border-radius:8px;padding:8px 16px;font:750 13px Manrope,sans-serif;cursor:pointer}
.v379-done{color:#1f7a4f;font-weight:750}.v379-muted{color:#7a8f83}
.v379-warn{color:#8a5a12;background:#fff6e8;border-radius:8px;padding:6px 8px}
.v379-form{display:flex;gap:8px;padding:12px 14px 14px;border-top:1px solid #e1ece5;background:#fff}
.v379-form textarea{flex:1;resize:none;border:1px solid #cfe2d6;border-radius:10px;padding:9px 11px;font:500 13.5px 'DM Sans',sans-serif;color:#1f3d2f;min-height:42px}
.v379-send{border:0;background:#1f4d3c;color:#fff;border-radius:10px;padding:0 16px;font:750 13px Manrope,sans-serif;cursor:pointer}
.v379-send:disabled{opacity:.5;cursor:default}
@media print{.v379-fab,.v379-panel{display:none!important}}
.v379-ch li.v379-more span{color:#7a8f83;font-size:12px}
.v379-ch li.v380-unlock span{color:#8a5a12;font-weight:650}

/* V382: Sensitivity tab */
.v382-page{max-width:1320px}
.v382-tabs{display:flex;gap:10px;margin:0 0 14px}
.v382-tabs button{flex:1 1 0;max-width:340px;text-align:left;padding:12px 16px;border:1px solid #d9e9df;border-radius:12px;background:#fff;cursor:pointer;color:#1f4d3c}
.v382-tabs button b{display:block;font:800 15px Manrope,sans-serif}
.v382-tabs button small{display:block;font:500 12px 'DM Sans',sans-serif;color:#6d8777;margin-top:2px}
.v382-tabs button.active{background:#1f4d3c;border-color:#1f4d3c;color:#fff}
.v382-tabs button.active small{color:#cfe8da}
.v382-sub{font:500 12.5px 'DM Sans',sans-serif;color:#6d8777;margin:0 0 10px}
.v382-goal{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.v382-radio{flex:1 1 260px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center;padding:10px 12px;border:1px solid #d9e9df;border-radius:10px;background:#fff;cursor:pointer}
.v382-radio input{grid-row:span 2}
.v382-radio b{font:750 14px Manrope,sans-serif;color:#1f4d3c}
.v382-radio small{font:500 12px 'DM Sans',sans-serif;color:#6d8777}
.v382-kpis{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:6px 14px}
.v382-chk{display:flex;align-items:center;gap:8px;font:500 13px 'DM Sans',sans-serif;color:#1f3d2f;padding:4px 0;cursor:pointer}
.v382-chk span{flex:1}
.v382-chk em{font-style:normal;color:#6d8777;font-size:12px;white-space:nowrap}
.v382-chk .v184-dot{margin-right:0}
.v382-dead{opacity:.5;cursor:default}
.v382-target{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.v382-target select,.v382-target input,.v382-torhead select{height:36px;border:1px solid #cfe2d6;border-radius:8px;background:#fff;padding:5px 10px;font:inherit;font-size:13px;color:#1f3d2f}
.v382-target input{width:140px;text-align:right}
.v382-target small{color:#6d8777}
.v382-pickhead{display:flex;align-items:center;gap:12px;margin-bottom:6px;font:600 12.5px 'DM Sans',sans-serif;color:#4f6f5e}
.v382-link{border:0;background:none;color:#205e47;font:700 12.5px 'DM Sans',sans-serif;cursor:pointer;padding:0;text-decoration:underline}
.v382-picks{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px 22px}
.v382-pg>b{display:block;font:800 12px Manrope,sans-serif;color:#2f7d5b;text-transform:uppercase;letter-spacing:.04em;margin:2px 0 4px}
.v382-run{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.v382-go{border:0;background:#1f4d3c;color:#fff;border-radius:9px;padding:10px 18px;font:750 13.5px Manrope,sans-serif;cursor:pointer}
.v382-go:disabled{opacity:.45;cursor:default}
.v382-prog{display:flex;align-items:center;gap:10px;flex:1;min-width:260px}
.v382-prog span{font:600 12.5px 'DM Sans',sans-serif;color:#4f6f5e}
.v382-bar{flex:1;max-width:380px;height:8px;border-radius:999px;background:#e5efe8;overflow:hidden}
.v382-bar i{display:block;height:100%;background:#2f7d5b;transition:width .15s}
.v382-table td,.v382-table th{text-align:right;white-space:nowrap}
.v382-table .v146-first{text-align:left;white-space:normal}
.v382-table td small,.v382-wtable td small{display:block;font-size:11px;color:#7a8f83;font-weight:500}
.v382-need{font-weight:800;color:#1f4d3c}
.v382-after .v184-dot{margin-right:3px}
.v382-apply{border:1px solid #1f4d3c;background:#fff;color:#1f4d3c;border-radius:7px;padding:5px 12px;font:750 12px Manrope,sans-serif;cursor:pointer}
.v382-apply:hover{background:#1f4d3c;color:#fff}
.v382-none{font:500 12.5px 'DM Sans',sans-serif;color:#6d8777;margin:10px 0 0}
.v382-undo{display:flex;align-items:center;gap:12px;justify-content:space-between;background:#eef6f1;border:1px solid #9fcab2;border-radius:10px;padding:9px 14px;margin-bottom:12px;font:600 13px 'DM Sans',sans-serif;color:#1f4d3c}
.v382-what{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:14px;align-items:start}
.v382-inputs{max-height:620px;overflow-y:auto}
.v382-wtable td,.v382-wtable th{text-align:right;white-space:nowrap}
.v382-wtable .v146-first{text-align:left;white-space:normal}
.v382-wtable tr.v146-group td{text-align:left}
.v382-changed td{background:#fff8ea}
.v382-step{display:inline-flex;align-items:center;gap:3px}
.v382-step input{width:92px;height:30px;border:1px solid #cfe2d6;border-radius:7px;text-align:right;padding:3px 7px;font:inherit;font-size:13px}
.v382-step button{width:24px;height:30px;border:1px solid #d9e9df;border-radius:6px;background:#fff;color:#205e47;cursor:pointer;font-weight:800}
.v382-step button:disabled,.v382-step input:disabled{opacity:.45}
.v382-kpicard{position:sticky;top:70px}
.v382-ktable td.v382-wcol{background:#eef4f9;color:#1d3a4f;font-weight:650}
.v382-torhead{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font:600 13px 'DM Sans',sans-serif;color:#4f6f5e;margin-bottom:10px}
.v382-tor{max-width:900px}
.v382-lo{fill:#c9774f;background:#c9774f}
.v382-hi{fill:#2f6d95;background:#2f6d95}
.v382-legend{font:500 12px 'DM Sans',sans-serif;color:#6d8777;display:flex;align-items:center;gap:6px}
.v382-legend i{display:inline-block;width:12px;height:10px;border-radius:2px;margin-left:8px}
@media (max-width:1000px){.v382-what{grid-template-columns:1fr}.v382-kpicard{position:static}}
.v382-checking{font-style:normal;color:#8a7a3a;font-weight:600}
.v382-page .v146-table.v382-wtable,.v382-page .v146-table.v382-ktable,.v382-page .v146-table.v382-table{min-width:0;width:100%;table-layout:auto}
@media (max-width:1400px){.v382-what{grid-template-columns:1fr}.v382-kpicard{position:static}}

/* V383: the "* NPV treats operating interest as £0..." note under the NPV table is removed */
.v40-npv-note{display:none!important}
/* V384: What-if boxes match the other inputs (£ / % shells) */
.v382-step .v13-rate-shell{display:inline-flex;width:128px}
.v382-step .v13-rate-shell input.v382-in{width:100%;height:30px;text-align:right}
.v385-note{display:block;font-style:normal;font-weight:600;color:#8a5a12;margin-top:3px}
/* V389: Hide button, chat-in-progress dot, and room for the panel on wide screens */
.v379-hide{border:1px solid #cfe2d6;background:#fff;color:#205e47;border-radius:8px;height:32px;padding:0 11px;font:750 12px Manrope,sans-serif;cursor:pointer}
.v379-hide:hover{background:#eef6f1}
.v389-dot{display:none;width:8px;height:8px;border-radius:50%;background:#9fe0bd;margin-left:2px}
body.v389-has-chat .v389-dot{display:inline-block}
@media (min-width:1280px){body.v379-open .main{margin-right:420px;transition:margin-right .18s ease}}
/* V390: Goal seek target box (£ / %), and the reason Find the changes is locked */
.v390-target{display:inline-flex;width:160px}
.v390-target input{width:100%;height:36px;text-align:right}
.v390-suf{font-style:normal;color:#4f6f5e;font-weight:600;font-size:13px}
.v390-why{font:600 12.5px 'DM Sans',sans-serif;color:#8a5a12}
/* V391: tidy What's different */
.v391-table td small{display:block;font-size:11px;color:#7a8f83;font-weight:600}
.v391-table td.v391-diff{background:#fff8ea;font-weight:700;color:#1f3d2f}
.v391-table td.v391-same{color:#a3b3a9}
/* V392: rating to reach (green / amber or better) */
.v392-level{display:flex;align-items:center;gap:8px;margin:0 0 10px;font:600 12.5px 'DM Sans',sans-serif;color:#4f6f5e}
.v392-level button{display:inline-flex;align-items:center;gap:6px;border:1px solid #d9e9df;background:#fff;border-radius:999px;padding:5px 12px;font:700 12.5px 'DM Sans',sans-serif;color:#1f4d3c;cursor:pointer}
.v392-level button.on{border-color:#1f4d3c;background:#eef6f1}
.v392-level .v184-dot{margin:0}
/* V400: Inputs to try - one section per category, stacked; each category's inputs run left to right, then wrap */
.v382-page .v382-picks:has(.v382-pg){display:block}
.v382-page .v382-pg{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:0 26px;padding:8px 0 10px;border-top:1px solid #edf2ee}
.v382-page .v382-pg:first-child{border-top:0;padding-top:0}
.v382-page .v382-pg>b{grid-column:1/-1;margin:2px 0 2px}
/* V407: a tick box on each Goal seek section heading */
.v382-page .v382-pg>.v407-head{grid-column:1/-1;display:flex;align-items:center;gap:8px;cursor:pointer;margin:2px 0}
.v382-page .v382-pg>.v407-head b{display:inline;margin:0;font:800 12px Manrope,sans-serif;color:#2f7d5b;text-transform:uppercase;letter-spacing:.04em}

/* V408: Report tab */
.v408{max-width:1320px}
.v408-bar{display:flex;align-items:center;gap:10px;margin:0 0 14px;padding:12px 16px;background:#fff;border:1px solid #d9e9df;border-radius:12px}
.v408-bar>div{flex:1;display:flex;flex-direction:column}
.v408-bar>div b{font:800 15px Manrope,sans-serif;color:#1f4d3c}.v408-bar>div span{font:500 12.5px 'DM Sans',sans-serif;color:#6d8777}
.v408-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:14px;align-items:start}
.v408-edit{position:sticky;top:70px}
.v408-edit label{display:block;font:700 12.5px 'DM Sans',sans-serif;color:#1f4d3c;margin:0 0 10px}
.v408-edit textarea,.v408-edit select{display:block;width:100%;margin-top:4px;border:1px solid #cfe2d6;border-radius:8px;padding:8px 10px;font:500 13px/1.45 'DM Sans',sans-serif;color:#1f3d2f;resize:vertical;box-sizing:border-box}
.v408-doc{background:#fff;border:1px solid #d9e9df;border-radius:12px;padding:34px 40px;box-shadow:0 6px 22px #0000000d;font:500 13.5px/1.55 'DM Sans',sans-serif;color:#1f3d2f}
.v408-cover{border-bottom:3px solid #1f4d3c;padding-bottom:12px;margin-bottom:8px}
.v408-cover h1{margin:0;font:800 26px Manrope,sans-serif;color:#1f4d3c}
.v408-sub{color:#4f6f5e;font-size:14px}.v408-meta{color:#7a8f83;font-size:12px;margin-top:2px}
.v408-doc h2{font:800 18px Manrope,sans-serif;color:#1f4d3c;margin:22px 0 8px}
.v408-doc h3{font:800 14px Manrope,sans-serif;color:#2f7d5b;margin:14px 0 6px}
.v408-doc p{margin:0 0 8px}.v408-doc ul{margin:0 0 8px;padding-left:20px}
.v408-note{font-size:11px;color:#7a8f83;margin-top:16px!important}
.v408-t{width:100%;border-collapse:collapse;margin:4px 0 12px;font-size:12.5px}
.v408-t th{background:#1f4d3c;color:#fff;text-align:left;padding:6px 8px;font-weight:700}
.v408-t td{padding:5px 8px;border-bottom:1px solid #e4ece6}
.v408-t .n{text-align:right;white-space:nowrap}
.v408-small{font-size:11.5px}
.v408-rag{font-weight:700}
.v408-chart svg{width:100%;height:auto;display:block;margin:4px 0 12px}
.v408-verdict{display:inline-block;margin:4px 0 6px;padding:6px 12px;border-radius:8px;font-size:13px}
.v408-green{background:#eef6f1;color:#1f7a4f}.v408-amber{background:#fff6e8;color:#8a5a12}.v408-red{background:#fbeeec;color:#a54b40}
@media (max-width:1250px){.v408-grid{grid-template-columns:1fr}.v408-edit{position:static}}
/* V411: report appendices */
.v408-doc h2.v411-apx{margin-top:34px;padding-top:18px;border-top:2px dashed #d9e9df}
.v408-t.v411-tiny{font-size:10.5px}
.v408-t.v411-tiny td,.v408-t.v411-tiny th{padding:3px 6px}
.v408-t{table-layout:fixed}.v408-t td{overflow-wrap:anywhere}
.v408-t.v411-tiny .n{white-space:normal}
/* V413: appendix spacing - figures sit in from the edge, text columns start clear of them */
.v408-t.v411-tiny td.n,.v408-t.v411-tiny th.n{padding-right:26px}
.v408-t.v411-tiny td:not(.n):not(:first-child),.v408-t.v411-tiny th:not(.n):not(:first-child){padding-left:22px}
/* V417: Dashboard Capital & funding with a % of gross column; bigger appendix text */
.v33-table-card.v417-pct .v33-col-head,.v33-table-card.v417-pct .v33-finance-row{grid-template-columns:minmax(0,1fr) 150px 110px!important}
.v33-table-card.v417-pct .v417-p,.v33-table-card.v417-pct .v33-col-head>b:last-child{text-align:right} /* V435: same colour and weight as Total */
.v408-t.v411-tiny{font-size:12px}
/* V420: nothing pinned to the screen shows while Excel is being made (the page works out of sight) */
body.v420-exporting #content .v18-kpi-open,body.v420-exporting #content #v18-kpi-panel{visibility:hidden!important}
/* V424: Property record listing figures; listing data hidden for non-single homes; notes box stretches */
.v424-hide{display:none!important}
.v424-fig{position:relative}
.v424-shell{display:flex}.v424-shell input{width:100%;text-align:right}
.v424-sfx{position:absolute;right:-26px;bottom:12px;font-style:normal;font-size:12px;color:#6d8777}
.v424-fig:has(.v424-sfx) .v424-shell{margin-right:26px}
.v424-stretch{display:flex!important;flex-direction:column}
.v424-stretch>.v424-stretch,.v424-stretch>.v424-grow{flex:1 1 auto}
.v424-grow{display:flex;flex-direction:column}
.v424-grow textarea{flex:1 1 auto;min-height:102px}
/* V425: inflation names editable on Defaults */
.v425-name{width:100%;border:1px solid transparent;background:transparent;border-radius:6px;padding:4px 6px;font:700 13px 'DM Sans',sans-serif;color:#1f3d2f}
.v425-name:hover{border-color:#cfe2d6;background:#fff}
.v425-name:focus{border-color:#2f7d5b;background:#fff;outline:none}
/* V427: listing figures fill their box like the other fields */
.v424-fig .v13-rate-shell.v424-shell{display:flex!important;width:100%!important;max-width:none!important;box-sizing:border-box}
.v424-fig .v13-rate-shell.v424-shell input{width:100%!important;max-width:none!important;flex:1 1 auto;box-sizing:border-box;min-height:42px}
.v424-fig:has(.v424-sfx) .v424-shell{margin-right:0}
/* V430: Vestega logo in the sidebar */
.sidebar .brand .brandmark:has(.v430-icon){background:transparent!important;display:flex;align-items:center;justify-content:center}
.v430-icon{width:26px;height:auto;display:block}
.v430-full{height:22px;width:auto;display:block}
/* V433: Vestega logo on the report cover */
.v408-cover{position:relative}
.v433-logo{position:absolute;right:0;top:4px;height:40px;width:auto}
.v408-cover h1{padding-right:140px}

/* V435: "% of gross" matches the Total figures (colour and weight); portfolio table has Item | Total | £ / unit | % of gross */
.v33-table-card.v417-pct.v435-four .v33-col-head,.v33-table-card.v417-pct.v435-four .v33-finance-row{grid-template-columns:minmax(0,1fr) 140px 120px 100px!important}

/* V436: KPI side panel — 10 KPIs with RAG ratings */
.v18-kpi-card.v436-card{position:relative;padding-right:76px}
.v436-card .v436-rag{position:absolute;right:12px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;gap:5px;font-style:normal;font-size:11px;font-weight:700;color:#6b5a6e}
.v436-card .v436-rag .v184-dot{margin:0}
.v436-card.v436-rag-green{box-shadow:inset 3px 0 0 #2f8f5b}.v436-card.v436-rag-amber{box-shadow:inset 3px 0 0 #d99a1e}.v436-card.v436-rag-red{box-shadow:inset 3px 0 0 #c8463d}
#v436-kpis.v436-stale{opacity:.55;transition:opacity .2s}

/* V438: source tags each have their own colour: Default = blue (as before), Vestega = brand purple, Listing = raspberry */
.v188-tag.v352-tag{background:#efe3f7!important;color:#5b2a86!important;border-color:#dcc6ee!important}
.v188-tag.v352-tag .v188-off{color:#5b2a86!important}
.v188-tag.v352-tag .v188-off:hover{background:#dcc6ee!important}
.v188-tag.v352-tag.v438-listing{background:#ffe2d8!important;color:#a23d5e!important;border-color:#f7c3b3!important}
.v188-tag.v352-tag.v438-listing .v188-off{color:#a23d5e!important}
.v188-tag.v352-tag.v438-listing .v188-off:hover{background:#f7c3b3!important}

/* V441: Create property form: numbers right-aligned, £ sign on money boxes, button greyed until complete */
#content input.v441-num{text-align:right}
.v441-money{position:relative;display:block}
.v441-money::before{content:"£";position:absolute;left:13px;top:50%;transform:translateY(-50%);color:#6b5a75;font-size:14px;pointer-events:none}
.v441-money>input{padding-left:28px!important;width:100%;box-sizing:border-box}
#content input.v441-bad{border-color:#c0476a!important;box-shadow:0 0 0 2px rgba(192,71,106,.15)!important}
button.v441-off{opacity:.45;cursor:not-allowed}
.v441-msg{margin-top:10px;font-size:13px;color:#a23d5e;line-height:1.45}
