/* Navigation and consultation redesign. All financial values come from existing reports. */
:root{--sidebar:212px;--radius:12px;--shadow:none;--ink:#19324f;--muted:#61748c;--line:#dce5ef;--canvas:#f3f6fa}
body{font-size:14px}.card{box-shadow:none;border-radius:12px;padding:18px}.page-head{margin-bottom:18px;gap:14px}.page-head h1{font-size:26px;letter-spacing:-.025em;margin:3px 0 5px}.page-head p{font-size:13px;margin:0}.eyebrow{font-size:10px;letter-spacing:.1em}.card-head{margin-bottom:14px}.card-head h2,h2{font-size:18px}.card-head p{font-size:12px}.field-hint{font-size:11px}.section-gap{margin-top:16px}#main-content{padding:22px;max-width:none}.topbar{min-height:64px;padding:10px 22px}.top-context strong{font-size:15px}.top-context span{font-size:11px}.btn{min-height:36px;padding:8px 13px;font-size:12px}.icon-btn{min-width:36px;min-height:36px}.avatar{width:36px;height:36px;font-size:15px}input,select{min-height:36px;font-size:13px;padding:8px 10px}label{font-size:12px}.toolbar{gap:12px;align-items:end}.toolbar>.field{min-width:140px}.toolbar>.field input[type=date]{max-width:190px}.toolbar>.field input[type=number]{max-width:130px}.toolbar>.field.wide{flex:2}.toolbar>.field:first-child:has(input[type=search]){flex:2;min-width:200px}
.kpi{padding:16px 18px;min-height:0}.kpi::after{display:none}.kpi-value{font-size:25px;letter-spacing:-.03em}.kpi-label{font-size:12px}.kpi-foot{font-size:11px}.grid{gap:16px}.amount-table td,.amount-table th{padding:9px 10px}.text-btn{font-size:12px}.tabs{gap:6px}.tab{font-size:12px;padding:10px 12px}.section-navigation{margin:0 0 16px;flex-wrap:wrap}.sidebar{background:#fff;color:var(--ink);border-right:1px solid var(--line);box-shadow:none}.sidebar .brand{color:var(--ink);padding:18px 16px}.brand-mark{background:#19324f;color:#fff;width:32px;height:32px;font-size:12px}.sidebar .brand strong{font-size:13px}.sidebar .brand small{font-size:11px;color:var(--muted)}.nav-group{margin:6px 0}.nav-label{font-size:10px;color:var(--muted);padding:8px 14px}.nav-item{font-size:12px;padding:11px 12px;border-radius:7px;color:var(--muted);gap:8px;margin-bottom:3px}.nav-item:hover,.nav-item.active{background:#edf3ff;color:#315bcb}.sidebar-foot{border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.sidebar-foot small{font-size:10px}.sidebar .nav-icon{font-size:15px}
.redesign-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:16px 0;margin-bottom:18px}.redesign-metrics>div{padding:0 18px;border-right:1px solid var(--line)}.redesign-metrics>div:last-child{border:0}.redesign-metrics .kpi-value{display:block;font-size:24px;margin:5px 0}.redesign-metrics small{display:block}.redesign-pagination{display:flex;gap:14px;align-items:center;justify-content:flex-end;border-top:1px solid var(--line);padding:12px 0;font-size:11px}.redesign-pagination>span{margin-right:auto}.redesign-pagination .field-hint{margin:0}.compact-sheet .text-btn{white-space:normal;text-align:left}.compact-sheet td:not(:first-child){font-variant-numeric:tabular-nums}.compact-sheet tr.selected{background:#edf3ff}
.source-summary>.grid.grid-3{grid-template-columns:1.3fr 1fr}.source-summary .source-column-total{display:none}.source-summary>.field-hint{font-size:11px;margin:10px 0}.source-summary>.grid.grid-2{grid-template-columns:1fr}.source-summary>.grid.grid-2>.card:first-child{grid-column:1/-1}.source-summary .kpi{border:1px solid var(--line)}.source-summary .notice.warning{font-size:11px;padding:9px 12px;background:#fff8e8;border:1px solid #ead9b8}.source-summary .amount-table td{font-size:12px}.source-summary .amount-table tr{height:35px}.source-summary .amount-table .text-btn{min-height:0}
.people-directory{padding:0!important;display:block!important}.people-directory>.toolbar{padding:16px;border-bottom:1px solid var(--line)}.people-directory-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);align-items:start}.people-directory-layout>.person-detail{padding:18px;border-left:1px solid var(--line);min-width:0}.people-directory-layout .redesign-pagination{padding:12px}.people-directory .directory-amount{display:block;font-size:26px;font-variant-numeric:tabular-nums;letter-spacing:-.03em}.people-directory .person-detail>h2{margin-top:4px}.people-directory .person-detail>div{margin-top:18px}.people-directory .person-detail .compact-sheet{table-layout:fixed}.people-directory .person-detail .compact-sheet td:nth-child(1){width:85px}.people-directory .person-detail .compact-sheet td:nth-child(3){width:90px;white-space:nowrap;text-align:right}.people-directory .person-detail .text-btn{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.people-directory .person-detail .compact-sheet td{overflow:hidden;max-width:220px}.people-directory .person-detail .table-wrap{overflow:auto}
.budget-history{margin-bottom:18px;padding:18px}.budget-history .toolbar{display:flex;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px}.budget-history .toolbar>label:first-child{flex:2;min-width:220px}.budget-history .toolbar>label{flex:1;min-width:130px}.budget-history-upper{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:30px;padding:18px 0}.budget-history-chart h3{font-size:14px;margin:0}.history-bar-row{display:grid;grid-template-columns:35px minmax(20px,1fr) 110px;gap:12px;align-items:center;font-size:12px;margin-top:10px}.history-bar-row>span:last-child{text-align:right;font-variant-numeric:tabular-nums}.history-bar-track{height:13px;background:#eef1f6;border-radius:3px;overflow:hidden}.history-bar-track>span{display:block;height:100%;background:#b3c5ed;border-radius:3px}.history-bar-track>span.current{background:#315bcb}.budget-history-insight{border-left:1px solid var(--line);padding:14px 0 0 24px;display:flex;flex-direction:column;align-items:flex-start;gap:5px}.budget-history-insight>strong{font-size:25px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.budget-history-tables{display:grid;grid-template-columns:1fr;gap:16px;border-top:1px solid var(--line);padding-top:16px}.budget-history-tables h3{font-size:14px;margin:0 0 10px}.budget-history-tables td:not(:first-child){text-align:right;white-space:nowrap}.budget-history-tables th:not(:first-child){text-align:right}.budget-history-tables th:first-child{width:40%}.budget-compact{padding:18px}.budget-sheet{min-width:1360px;table-layout:auto}.budget-sheet th,.budget-sheet td{font-size:12px;padding:7px 9px}.budget-sheet td .text-btn{font-size:12px}.budget-sheet th{font-size:11px}.budget-sheet td .text-btn{white-space:nowrap}.budget-context{padding:14px 18px;margin-top:16px}.budget-context>summary{font-size:12px}.budget-history-insight .text-btn{font-size:11px}.budget-drill .table-wrap{max-height:none}
.compact-investment-history{padding:18px}.compact-investment-history .toolbar{display:flex;gap:12px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:16px}.compact-investment-history .toolbar>label:first-child{flex:2;min-width:220px}.compact-investment-history .toolbar>label{flex:1;min-width:130px}.history-summary{display:flex;gap:32px;padding:18px 0;flex-wrap:wrap}.history-summary strong{display:block;font-size:22px;font-variant-numeric:tabular-nums}.compact-investment-history td:nth-child(2),.compact-investment-history td:nth-child(3){text-align:right;white-space:nowrap}.compact-investment-history th:nth-child(2),.compact-investment-history th:nth-child(3){text-align:right}.history-source{padding:10px;background:#edf3ff;border-radius:6px}.investment-filters{gap:12px}.investment-tabs{flex-wrap:wrap}.investment-tabs .tab{font-size:12px}.investment-status:empty{display:none}
.liquidity-controls{display:flex;flex-wrap:wrap;margin-bottom:18px;align-items:end}.liquidity-controls input{width:140px}.liquidity-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.compact-liquidity-forecast,.compact-liquidity-hypotheses,.compact-liquidity-events{margin-top:16px}.compact-liquidity-forecast h2,.compact-liquidity-hypotheses h2,.compact-liquidity-events h2{font-size:18px;margin:0 0 14px}.compact-liquidity-forecast td:not(:first-child),.compact-liquidity-forecast th:not(:first-child){text-align:right;white-space:nowrap}.compact-liquidity-events .text-btn{white-space:normal;text-align:left}.report-monthly-override{display:flex;align-items:center;gap:8px}.report-monthly-override input{width:130px}.compact-liquidity-hypotheses td:nth-child(3){white-space:nowrap;text-align:right}.loan-sheet .loan-actions{max-width:260px}.loan-totals{margin:14px 0}
@media(min-width:1100px){html:not(.nav-collapsed) .sidebar,html:not(.nav-collapsed) .sidebar.open{width:212px;transform:none;box-shadow:none;z-index:30}html:not(.nav-collapsed) .app-frame{margin-left:212px}#menu-btn{display:inline-grid}html:not(.nav-collapsed) .sidebar-reveal{display:none!important}html:not(.nav-collapsed) .scrim.visible{display:none}html.nav-collapsed .sidebar.open{z-index:30}.sidebar .brand>span:last-child,.sidebar .nav-label,.sidebar .nav-item>span:last-child,.sidebar .sidebar-foot>span:last-child{display:block}.sidebar .brand{justify-content:flex-start}.sidebar .nav-item{justify-content:flex-start}}
@media(max-width:1099px){.sidebar{width:230px}.source-summary>.grid.grid-2{grid-template-columns:1fr}.redesign-metrics .kpi-value{font-size:21px}}
@media(max-width:767px){#main-content{padding:14px}.topbar{padding:10px 14px}.page-head h1{font-size:24px}.redesign-metrics,.liquidity-metrics,.source-summary>.grid.grid-3{grid-template-columns:1fr 1fr}.redesign-metrics>div{border:0;margin-bottom:12px}.people-directory-layout{grid-template-columns:1fr}.people-directory-layout>.person-detail{border-left:0;border-top:1px solid var(--line)}.budget-history-upper{grid-template-columns:1fr;gap:12px}.budget-history-insight{padding:12px 0;border-left:0;border-top:1px solid var(--line)}.section-navigation{gap:0}.section-navigation .tab{padding:9px;font-size:11px}.liquidity-controls>label{min-width:120px}.compact-investment-history .toolbar>label:first-child,.budget-history .toolbar>label:first-child{flex-basis:100%;min-width:0}.budget-history,.compact-investment-history{padding:14px}.budget-history-insight>strong{font-size:23px}.redesign-metrics .kpi-value{font-size:22px}.people-directory .person-detail .compact-sheet{min-width:440px}}
@media(max-width:430px){.redesign-metrics,.liquidity-metrics,.source-summary>.grid.grid-3{grid-template-columns:1fr}.redesign-metrics>div{padding:0 16px}.redesign-metrics>div:last-child{margin-bottom:0}.toolbar>.field{min-width:110px}.history-bar-row{grid-template-columns:32px minmax(20px,1fr) 100px;gap:8px}.budget-history .toolbar>label,.compact-investment-history .toolbar>label{min-width:110px}input,select{font-size:16px}.source-summary .card{padding:14px}}
@media(pointer:coarse){.compact-sheet td{min-height:44px}.text-btn{min-height:36px}.nav-item{min-height:44px}}
@media(min-width:1280px){.budget-history-tables{grid-template-columns:1fr 1fr}}
.budget-history-tables>section,.people-directory-layout>div{min-width:0}.budget-context{overflow-x:auto}
.investment-pyramid-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px;align-items:start}.investment-pyramid-overview>.card{min-width:0}.source-pyramid-layout{display:grid;grid-template-columns:minmax(100px,180px) minmax(0,1fr);gap:16px;align-items:stretch}.source-pyramid-layout>svg{display:block;width:100%;height:360px}.source-pyramid-rows{min-width:0;display:grid;grid-template-rows:repeat(6,60px)}.source-pyramid-row{display:grid;grid-template-columns:minmax(0,1fr) auto 42px;gap:8px;align-items:center;text-align:left;border:0;border-bottom:1px solid var(--line);background:transparent;padding:8px 4px;min-width:0;border-radius:0}.source-pyramid-row>span{font-size:12px;font-weight:650;overflow-wrap:normal}.source-pyramid-row>strong{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.source-pyramid-row>small{font-size:11px;color:var(--muted);text-align:right}.source-pyramid-row:hover,.source-pyramid-row:focus-visible{background:#eef3ff}.pyramid-total{font-weight:700;margin-top:14px}.pyramid-details{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}.pyramid-details td:last-child{white-space:nowrap;text-align:right}.pyramid-allocation .allocation-layout{display:flex;flex-direction:column;gap:14px}.pyramid-allocation .allocation-ring{align-self:center}.pension-metrics{grid-template-columns:1fr;margin-top:18px}.pension-metrics>div{border:0}#pensionBody{min-width:0}#pensionBody>.toolbar{margin-bottom:18px}.pension-metrics .kpi-value{font-size:30px}#pensionBody .card h2{margin-top:0}#pensionBody .compact-investment-history{margin-top:18px}
@media(max-width:1199px){.investment-pyramid-overview{grid-template-columns:1fr}.pyramid-allocation .allocation-layout{display:grid;grid-template-columns:220px 1fr}.source-pyramid-layout{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:600px){.source-pyramid-layout{grid-template-columns:85px minmax(0,1fr);gap:10px}.source-pyramid-row{grid-template-columns:minmax(0,1fr) auto;gap:1px 6px;align-content:center}.source-pyramid-row>span{grid-column:1/-1;font-size:12px}.source-pyramid-row>strong{font-size:12px}.source-pyramid-row>small{font-size:11px}.pyramid-allocation .allocation-layout{display:flex}.pyramid-details table{font-size:12px}}
/* Manual total-value worksheet: one editable number per investment. */
.worksheet-toolbar,.worksheet-controls{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 0}
.worksheet-toolbar .field{max-width:210px}.worksheet-controls [role=status]{flex:1;margin:0;min-width:180px}
.investment-value-sheet table{width:100%;font-variant-numeric:tabular-nums;font-size:13px}
.investment-value-sheet th:not(:first-child),.investment-value-sheet td:not(:first-child){text-align:right;white-space:nowrap}
.investment-value-sheet td{padding:6px 12px!important}.investment-value-sheet td:first-child{width:38%}
.investment-value-sheet .text-btn{min-height:0;padding:0;line-height:1.2}
.investment-value-sheet small{display:block;margin-top:2px}.investment-value-sheet input{width:150px;min-height:34px!important;padding:6px 10px!important;text-align:right;border-radius:6px}
.investment-value-sheet .value-edited{background:#fff6d6;border-color:#d6aa3d}
.investment-value-sheet tfoot{background:#edf3ff;border-top:2px solid #c8d5eb;font-weight:700}
.investment-worksheet>.card-head{margin-bottom:6px}.investment-worksheet .field-hint{font-size:12px}
@media(max-width:650px){.investment-value-sheet table{min-width:800px}.investment-worksheet{padding:14px}.worksheet-controls .btn{flex:1}.worksheet-controls [role=status]{flex-basis:100%}}
/* Keep the long composition sheet below both investment overview charts. */
.investment-pyramid-overview{align-items:stretch}
.investment-composition{min-width:0}
.investment-composition table{width:100%;font-variant-numeric:tabular-nums}
.investment-composition th:not(:first-child),.investment-composition td:not(:first-child){text-align:right;white-space:nowrap}
.investment-composition td:first-child{width:34%}
