/* Family dashboard: approved period cards and current-cash comparison. */
.family-period-runtime .period-chevron{display:inline-flex;width:20px;height:20px;flex:0 0 20px;align-items:center;justify-content:center;color:#54758b}
.family-period-runtime .period-chevron svg{width:20px;height:20px;transition:transform .2s}
.family-period-runtime #family-metrics>.family-metric.period-window{display:block;min-width:0;padding:0;overflow:hidden;position:relative;transform-origin:top left;background:#fff}
.family-period-runtime #family-metrics .period-heading{display:grid;grid-template-columns:20px minmax(0,1fr) 20px;gap:4px 8px;align-items:start;align-content:start;width:100%;padding:12px 16px;margin:0;border:0;border-radius:0;background:transparent;text-align:left;font:inherit;color:inherit;box-shadow:none}
.family-period-runtime .period-heading>.cabinet-icon{width:20px;height:20px;min-width:20px;grid-column:1;grid-row:1;align-self:start}
.family-period-runtime .period-heading>.cabinet-icon svg{width:20px;height:20px}
.family-period-runtime #family-metrics .period-heading>span:not(.cabinet-icon):not(.period-chevron){grid-column:2;grid-row:1;font-size:14px;font-weight:600;line-height:20px}
.family-period-runtime .period-heading>.period-chevron{grid-column:3;grid-row:1}
.family-period-runtime #family-metrics .period-heading>strong{grid-column:1/-1;font-size:23px;line-height:29px;letter-spacing:0;font-weight:650}
.family-period-runtime .period-summary-comparison{grid-column:1/-1;line-height:20px;font-size:12px;color:#60778a}
.family-period-runtime .period-summary-comparison .gc-money{font:inherit}
.family-period-runtime .period-details{padding:0 16px 16px;min-width:0;max-height:none;overflow:visible}
.family-period-runtime .period-details[hidden]{display:none!important}
.family-period-runtime .period-tabs{display:flex;align-items:center;gap:8px;min-width:0;margin:0 0 8px;padding:0}
.family-period-runtime .period-tabs button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;margin:0;border:0;border-radius:0;background:transparent;color:#60778a;box-shadow:none;font-family:inherit;font-size:13px;font-weight:500;line-height:20px;white-space:nowrap;border-bottom:2px solid transparent}
.family-period-runtime .period-tabs button[aria-selected=true]{color:#087960;border-bottom-color:#18b2ac}
.family-period-runtime .period-tabs button:hover{background:#f1f7fa}
.family-period-runtime .period-short-label{display:none}
.family-period-runtime .period-body{min-width:0}
.family-period-runtime .period-body strong,.family-period-runtime .period-body .gc-money{font-size:14px;line-height:22px;letter-spacing:0}
.family-period-runtime .period-category{display:grid;grid-template-columns:minmax(0,1fr) auto 48px 20px;align-items:center;gap:8px 16px;min-height:44px;width:100%;padding:8px 0;margin:0;border:0;border-radius:4px;background:transparent;text-align:left;font:inherit;color:#263d4d;box-shadow:none;user-select:text}
.family-period-runtime .period-category:hover,.family-period-runtime .period-change:hover{background:#f3f8fb}
.family-period-runtime .period-category-label{font-size:14px;line-height:22px;overflow-wrap:anywhere}
.family-period-runtime .period-row-money{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;color:#263d4d}
.family-period-runtime .period-share{font-size:12px;line-height:20px;text-align:right;color:#60778a;white-space:nowrap}
.family-period-runtime .period-breadcrumb{display:flex;align-items:center;gap:16px;min-height:44px;margin:0 0 8px;color:#263d4d;font-size:14px}
.family-period-runtime .period-back,.family-period-runtime .period-more{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;min-height:44px;padding:8px 0;margin:0;border:0;border-radius:0;background:none;color:#087960;font-size:13px;box-shadow:none;text-align:left}
.family-period-runtime .period-back::before{content:'←';font-size:16px}
.family-period-runtime .period-more{margin-top:8px}
.family-period-runtime .period-comparison-range{font-size:12px;line-height:20px;color:#60778a;margin:8px 0}
.family-period-runtime .period-change{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 16px;align-items:baseline;width:100%;padding:12px 0;margin:0;border:0;border-radius:4px;background:none;box-shadow:none;text-align:left;font:inherit;color:#263d4d}
.family-period-runtime .period-change-name{font-size:14px;line-height:22px}
.family-period-runtime .period-change-values{display:flex;align-items:baseline;gap:8px;grid-column:1/-1;color:#60778a}
.family-period-runtime .period-change-values .gc-money{font-size:13px;font-weight:400;color:inherit}
.family-period-runtime .period-transition-mark{font-size:13px;color:#8093a1}
.family-period-runtime .period-operation{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 16px;padding:12px 0;min-width:0}
.family-period-runtime .period-operation-label{font-size:14px;line-height:22px;overflow-wrap:anywhere}
.family-period-runtime .period-operation-detail{grid-column:1/-1;font-size:12px;line-height:20px;color:#60778a}
.family-period-runtime .period-section-caption{font-size:12px;line-height:20px;font-weight:600;margin:16px 0 0;color:#60778a}
.family-period-runtime .period-empty{font-size:14px;line-height:22px;padding:12px 0;margin:0;color:#60778a}
@media(min-width:1000px){
 .family-period-runtime #family-metrics[data-period-open]>.family-metric.period-expanded{grid-column:1/span 2;grid-row:1/span 3}
 .family-period-runtime #family-metrics[data-period-open]>.family-metric:not(.period-expanded):not(.family-forecast-card){grid-column:3/span 2;grid-row:auto}
 .family-period-runtime #family-metrics[data-period-open]>.family-metric.family-forecast-card{grid-column:span 2;grid-row:4}
}
@media(max-width:999px){
 .family-period-runtime #family-metrics[data-period-open]>.family-metric.period-expanded{grid-column:1/-1;grid-row:1}
}
@media(max-width:699px){
 .family-period-runtime #family-metrics .period-heading{padding:12px}
 .family-period-runtime .period-details{padding:0 12px 16px}
 .family-period-runtime .period-tabs{gap:4px}
 .family-period-runtime .period-tabs button{padding:8px;font-size:12px}
 .family-period-runtime .period-wide-label{display:none}
 .family-period-runtime .period-short-label{display:inline}
 .family-period-runtime .period-category{grid-template-columns:minmax(0,1fr) auto 40px 20px;gap:8px}
 .family-period-runtime .period-category-label{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.family-period-runtime .period-chevron svg{transition:none}}

@media(max-width:699px){.family-period-runtime #family-metrics[data-period-open]>.budget-debt{grid-column:1/-1}}
.family-period-runtime .period-share-basis{margin:0 0 8px;color:#60778a;font-size:12px;line-height:20px}

/* Visual report views; scale changes presentation only, never ledger arithmetic. */
.family-period-runtime .period-distribution{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.family-period-runtime .period-ring .explorer-ring{max-width:300px}
.family-period-runtime .period-ring .explorer-amount,.family-period-runtime .period-ring .explorer-amount .gc-money{font-size:23px;line-height:28px}
.family-period-runtime .period-ring .explorer-context{min-height:0;margin:4px 0;font-size:11px}
.family-period-runtime .period-ring .explorer-footer{min-height:44px;padding:8px 0}
.family-period-runtime .period-ring .pie-slice{transition-duration:.315s,.28s}
.family-period-runtime .period-ring-legend .legend-item{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;min-height:44px;padding:8px;margin:0;border:0;background:transparent;box-shadow:none;text-align:left;font:inherit;color:#263d4d;transition:opacity .21s,background-color .21s}
.family-period-runtime .period-ring-legend .legend-item.is-highlighted{background:#eaf7ef}
.family-period-runtime .period-ring-legend .legend-item>svg{width:8px;height:8px}
.family-period-runtime .period-ring-legend .legend-name{font-size:13px;line-height:20px}
.family-period-runtime .period-ring-legend .legend-item strong,.family-period-runtime .period-ring-legend .legend-item .gc-money{font-size:12px}
.family-period-runtime .period-chart-key{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:11px;color:#60778a;margin:8px 0}
.family-period-runtime .period-chart-key>span{display:inline-flex;align-items:center;gap:8px}
.family-period-runtime .period-chart-key>span::before{content:'';width:16px;height:6px;border-radius:3px;background:#a3b0b8}
.family-period-runtime .period-chart-key>.period-key-now::before{background:#329ddb}
.family-period-runtime .period-compare-bars{display:grid;gap:5px;grid-column:1/-1;width:100%;padding:4px 0}
.family-period-runtime .period-compare-track,.family-period-runtime .period-rank-track{display:block;height:8px;background:#f0f4f6;border-radius:4px;overflow:hidden}
.family-period-runtime .period-compare-track>span,.family-period-runtime .period-rank-bar{display:block;height:100%;border-radius:4px;transform-origin:left center}
.family-period-runtime .period-bar-was{background:#a3b0b8}
.family-period-runtime .period-bar-now{background:#329ddb}
.family-period-runtime .period-rank-track{grid-column:1;align-self:center;height:10px}
.family-period-runtime .period-rank-share{font-size:11px;color:#60778a;text-align:right;align-self:center;line-height:20px}
.family-period-runtime .period-operation{row-gap:8px}
@media(min-width:1250px){.family-period-runtime .period-distribution{grid-template-columns:minmax(240px,1fr) minmax(0,1fr);align-items:center;gap:16px}.family-period-runtime .period-ring-legend .legend-item{grid-template-columns:8px minmax(0,1fr)}.family-period-runtime .period-ring-legend .legend-item>strong{grid-column:2}}
@media(prefers-reduced-motion:reduce){.family-period-runtime .period-ring .pie-slice,.family-period-runtime .period-ring-legend .legend-item{transition:none}}

/* Reuse the cabinet's accepted ring, one-click drilldown and list motion. */
.family-period-runtime .period-distribution{display:block}
.family-period-runtime .period-expanded:has(.period-tab[data-view=categories][aria-selected=true]) .period-heading>strong{display:none!important}
.family-period-runtime .period-distribution .report-heading{padding:0 0 8px!important;gap:4px 12px!important;border:0;min-height:0}
.family-period-runtime .period-distribution .report-title>h3,.family-period-runtime .period-distribution .report-period,.family-period-runtime .period-distribution .hierarchy-parent-value{display:none!important}
.family-period-runtime .period-distribution .report-title:has(.accepted-path[hidden]){display:none}
.family-period-runtime .period-distribution .report-title{flex:1 1 auto!important;min-width:0}
.family-period-runtime .period-distribution .layout-modes{margin:0!important;gap:8px;order:0!important;flex:0 0 auto!important}
.family-period-runtime .period-distribution .layout-modes button{min-height:36px;padding:4px 12px}
.family-period-runtime .period-distribution .cabinet-chart-preview .report-body{display:grid;grid-template-columns:minmax(180px,220px) minmax(0,1fr);gap:16px;padding:0;align-items:start}
.family-period-runtime .period-distribution .chart-column,.family-period-runtime .period-distribution .legend-column{width:auto;min-width:0;padding:0!important}
.family-period-runtime .period-distribution .chart-window{padding:0;min-height:0}
.family-period-runtime .period-distribution #motion-chart .explorer-ring{max-width:220px}
.family-period-runtime .period-distribution #motion-chart .explorer-footer{min-height:0;height:auto;padding:0}
.family-period-runtime .period-distribution #motion-chart .explorer-center .explorer-amount,.family-period-runtime .period-distribution #motion-chart .explorer-center .explorer-amount .gc-money{font-size:20px;line-height:28px}
.family-period-runtime .period-distribution .cabinet-chart-preview[data-structure=root] .legend-origin{display:none}
.family-period-runtime .period-distribution .legend-origin{height:auto;min-height:44px;margin:0 0 8px}
.family-period-runtime .period-distribution .hierarchy-parent{height:auto;min-height:44px;padding:0}
.family-period-runtime .period-distribution .hierarchy-parent-main{min-height:44px;margin:0}
.family-period-runtime .period-distribution .hierarchy-parent-name{font-size:13px;line-height:20px}
.family-period-runtime .period-distribution #legend-scroll{height:auto;max-height:none;overflow:visible;padding:0;min-height:0}
.family-period-runtime .period-distribution #chart-legend{gap:0!important}
.family-period-runtime .period-distribution #chart-legend>.legend-item{min-height:44px;padding:8px;grid-template-columns:8px minmax(0,1fr) auto;gap:8px}
.family-period-runtime .period-distribution #chart-legend>.legend-item>strong{grid-column:auto;font-weight:500}
.family-period-runtime .period-distribution .period-ring-legend .legend-item .gc-money{font-size:12px}
.family-period-runtime .period-distribution .period-ring-legend .hierarchy-row-name{font-size:13px;line-height:20px}
.family-period-runtime .period-distribution .period-ring-legend .legend-name{min-width:0}
.family-period-runtime .period-distribution .pie-slice{transition-duration:.315s,.28s}
@media(max-width:599px){.family-period-runtime .period-distribution .cabinet-chart-preview .report-body{grid-template-columns:minmax(0,1fr);gap:8px}.family-period-runtime .period-distribution #motion-chart .explorer-ring{max-width:220px}.family-period-runtime .period-distribution .layout-modes button{min-height:44px}}

/* A half-width card beside the desktop menu is too narrow at small laptop widths. */
@media(min-width:1000px) and (max-width:1199px){
 .family-period-runtime #family-metrics[data-period-open]>.family-metric.period-expanded{grid-column:1/-1;grid-row:1}
 .family-period-runtime #family-metrics[data-period-open]>.family-metric:not(.period-expanded):not(.family-forecast-card),.family-period-runtime #family-metrics[data-period-open]>.family-metric.family-forecast-card{grid-column:span 2;grid-row:auto}
}

/* Stable chart geometry at every category/operation depth. */
#app #family-metrics .period-heading>.cabinet-icon{width:20px;height:20px;min-width:20px;min-height:20px;line-height:20px;display:flex;align-items:center;justify-content:center;align-self:start}
#app #family-metrics .period-heading>.cabinet-icon svg{display:block;width:20px;height:20px;min-width:20px;min-height:20px}
.family-period-runtime .period-distribution .cabinet-chart-preview .report-body{grid-template-columns:300px minmax(0,1fr);gap:24px}
.family-period-runtime .period-distribution #motion-chart .explorer-ring{width:100%;max-width:300px}
.family-period-runtime .period-distribution #motion-chart .explorer-center,.family-period-runtime .period-distribution .scene-center .explorer-center{width:54%;height:54%;grid-template-rows:28px 28px 24px 44px;gap:2px;align-content:center;align-items:center;justify-items:center}
.family-period-runtime .period-distribution .scene-center .explorer-center{width:100%;height:100%}
.family-period-runtime .period-distribution #motion-chart .explorer-label,.family-period-runtime .period-distribution .scene-center .explorer-label{width:100%;font-size:12px;line-height:14px;max-height:28px;-webkit-line-clamp:2;align-self:center}
.family-period-runtime .period-distribution #motion-chart .explorer-share,.family-period-runtime .period-distribution .scene-center .explorer-share{font-size:10px;line-height:12px;height:auto;max-height:24px;max-width:100%;white-space:normal;text-wrap:balance}
.family-period-runtime .period-distribution #motion-chart .explorer-center>.explorer-back,.family-period-runtime .period-distribution .scene-center .explorer-center>.explorer-back{width:84px;height:44px;min-height:44px;padding:8px 12px}
.family-period-runtime .period-distribution .legend-column{container-type:inline-size}
.family-period-runtime .period-distribution #chart-legend>.legend-item{align-items:center;grid-template-columns:10px minmax(0,1fr) auto;gap:12px;padding:8px 4px;border:0;min-height:44px}
.family-period-runtime .period-distribution #chart-legend>.legend-item>svg{display:block;width:10px;height:10px;min-width:10px;min-height:10px;max-width:10px;max-height:10px;align-self:center;border:0;border-radius:50%;stroke:none;overflow:visible}
.family-period-runtime .period-distribution #chart-legend .legend-name{line-height:20px;overflow-wrap:break-word}
.family-period-runtime .period-distribution #chart-legend>.legend-item strong{line-height:20px}
@container(min-width:480px){.family-period-runtime .cabinet-chart-preview[data-structure=root][data-many-categories=true] #chart-legend{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 24px!important}}
@media(min-width:1000px) and (max-width:1599px){
 .family-period-runtime #family-metrics[data-period-open]>.family-metric.period-expanded:has(.period-distribution){grid-column:1/-1;grid-row:1}
 .family-period-runtime #family-metrics[data-period-open]:has(.period-expanded .period-distribution)>.family-metric:not(.period-expanded):not(.family-forecast-card),.family-period-runtime #family-metrics[data-period-open]:has(.period-expanded .period-distribution)>.family-metric.family-forecast-card{grid-column:span 2;grid-row:auto}
}
@media(min-width:1000px){
 .family-period-runtime #family-metrics[data-period-open]>.family-metric.period-expanded[data-dense-categories=true]:has(.period-distribution){grid-column:1/-1;grid-row:1}
 .family-period-runtime #family-metrics[data-period-open]:has(.period-expanded[data-dense-categories=true] .period-distribution)>.family-metric:not(.period-expanded):not(.family-forecast-card),.family-period-runtime #family-metrics[data-period-open]:has(.period-expanded[data-dense-categories=true] .period-distribution)>.family-metric.family-forecast-card{grid-column:span 2;grid-row:auto}
}
@media(max-width:599px){.family-period-runtime .period-distribution .cabinet-chart-preview .report-body{grid-template-columns:minmax(0,1fr);gap:16px}.family-period-runtime .period-distribution #motion-chart .explorer-ring{max-width:288px}}

.family-period-runtime .period-distribution #motion-chart .explorer-label,.family-period-runtime .period-distribution .scene-center .explorer-label{width:70%}
.family-period-runtime .period-distribution #chart-legend>.legend-item{align-items:start}
.family-period-runtime .period-distribution #chart-legend>.legend-item>svg{align-self:start;margin-top:5px}
.family-period-runtime .period-distribution #chart-legend>.legend-item>strong{align-self:start}
@media(max-width:350px){.family-period-runtime .period-distribution #motion-chart .explorer-center,.family-period-runtime .period-distribution .scene-center .explorer-center{grid-template-rows:24px 28px 24px 44px}.family-period-runtime .period-distribution #motion-chart .explorer-label,.family-period-runtime .period-distribution .scene-center .explorer-label{width:65%;font-size:11px;line-height:12px;max-height:24px}}

#app .period-distribution .cabinet-chart-preview #legend-scroll{height:auto;max-height:none;min-height:0;overflow:visible}

/* Optional action placement: the chart keeps one measured viewport on hover. */
.family-period-runtime .explorer-detail-panel[hidden]{display:none!important}
.family-period-runtime .explorer-detail-panel{min-width:0;margin-top:16px}
.family-period-runtime .explorer-detail-panel .explorer-operation-stable{display:grid;min-height:0;margin:0;padding:0;background:none;border:0;gap:0;border-radius:0}
.family-period-runtime .explorer-detail-panel .explorer-operation-card{grid-area:1/1;min-width:0;align-self:start}
.family-period-runtime .explorer-detail-panel .explorer-operation-card p{margin:0 0 8px;line-height:20px;font-size:12px;overflow-wrap:anywhere}
.family-period-runtime .explorer-detail-panel .explorer-operation-card p:last-child{margin-bottom:0}
.family-period-runtime .explorer-detail-panel .explorer-operation-card p>span{color:#60778a;margin-right:8px}
.family-period-runtime .explorer-detail-panel .explorer-operation-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px}
.family-period-runtime .explorer-detail-panel .explorer-journal-slot{margin-top:8px}
.family-period-runtime .explorer-detail-panel .explorer-journal{display:inline-flex;align-items:center;min-height:44px;max-width:100%;padding:8px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;font:inherit;font-size:12px;line-height:20px;text-decoration:underline;color:#087960}
.family-period-runtime #family-metrics>.budget-cash-window{border-top-width:3px}
.family-period-runtime #family-metrics .budget-cash-window #budget-cash{grid-template-columns:20px minmax(0,1fr);align-items:start;min-height:99px}
.family-period-runtime #family-metrics #budget-cash>.cabinet-icon{min-height:20px;height:20px}
.family-period-runtime #family-metrics #budget-cash .budget-cash-amounts{font-size:23px;line-height:29px}
.family-period-runtime #family-metrics #budget-cash .period-cash-comparison{grid-column:1/-1;min-height:18px;font-size:12px;line-height:18px;color:#60778a;letter-spacing:0;font-weight:400}
.family-period-runtime #family-metrics #budget-cash .period-cash-comparison .gc-money{font:inherit}
.family-period-runtime #family-metrics .period-summary-comparison[hidden]{display:block!important;visibility:hidden}
@media(max-width:699px){.family-period-runtime #family-metrics #budget-cash .budget-cash-amounts{font-size:clamp(16px,8cqi,23px)}}
.family-period-runtime #family-metrics #budget-cash:has(#budget-other-currencies[hidden]) .budget-cash-amounts{font-size:23px}
.family-period-runtime .explorer-detail-panel .explorer-operation-card p>span{display:inline}.family-period-runtime .explorer-detail-panel .explorer-operation-heading{justify-content:flex-start}

/* Align the operation text with the legend text, and values with one another. */
.family-period-runtime .cabinet-chart-preview[data-operation-details=right] .explorer-detail-panel{margin-inline-start:66px}
.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-heading{display:flex;align-items:baseline;gap:16px;justify-content:flex-start}
.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-heading>strong{font-size:14px;line-height:20px}
.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-heading>span{font-size:12px;line-height:20px;margin:0}
.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-field{display:grid;grid-template-columns:80px minmax(0,1fr);align-items:baseline;gap:12px}
.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-field>span{font-size:12px;line-height:20px;margin:0}
.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-value{color:#263d4d}

.family-period-runtime .period-distribution .list-ghost,.family-period-runtime .period-distribution .scene-center{contain:layout style;will-change:transform,opacity}

.family-period-runtime .explorer-detail-panel .explorer-operation-card .explorer-operation-heading{display:grid;grid-template-columns:80px minmax(0,1fr);column-gap:12px;align-items:baseline}
@supports(grid-template-columns:subgrid){
 .family-period-runtime .explorer-detail-panel .explorer-operation-card{display:grid;grid-template-columns:minmax(80px,max-content) minmax(0,1fr);gap:8px 12px}
 .family-period-runtime .explorer-detail-panel .explorer-operation-card>p{grid-column:1/-1;grid-template-columns:subgrid;margin:0}
}

/* Bounded lists: shared sectors remain complete, rows stay in a small viewport. */
#app .period-distribution .cabinet-chart-preview[data-bounded-list] #legend-scroll{height:auto;max-height:312px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;overflow-anchor:none}
#app .period-distribution .cabinet-chart-preview[data-bounded-list] #chart-legend{grid-template-columns:minmax(0,1fr)!important;gap:0!important}
#app .period-distribution .cabinet-chart-preview[data-bounded-list] #chart-legend>.legend-item{height:52px;min-height:52px;padding:6px 4px;align-items:center;box-sizing:border-box}
#app .period-distribution .cabinet-chart-preview[data-bounded-list] #chart-legend>.legend-item>svg{align-self:center;margin-top:0}
#app .period-distribution .cabinet-chart-preview[data-bounded-list] #chart-legend>.legend-item>strong{align-self:center}
.family-period-runtime .period-distribution .legend-name{display:block;min-width:0}
.family-period-runtime .period-distribution .hierarchy-row-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:20px;max-height:40px}
.family-period-runtime .period-distribution .legend-name:has(.period-category-parent) .hierarchy-row-name{-webkit-line-clamp:1;max-height:20px}
.family-period-runtime .period-category-parent{display:block;font-size:11px;line-height:16px;color:#60778a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.family-period-runtime .period-list-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:44px;margin-top:8px}
.family-period-runtime .period-list-pager[hidden],.family-period-runtime .period-page-basis[hidden]{display:none!important}
.family-period-runtime .period-list-range{min-width:84px;text-align:center;font-size:12px;line-height:20px;font-variant-numeric:tabular-nums;color:#60778a}
.family-period-runtime .period-page-arrow{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:10px;margin:0;border:0;border-radius:8px;background:transparent;color:#087960;box-shadow:none}
.family-period-runtime .period-page-arrow>svg{width:20px;height:20px}
.family-period-runtime .period-page-arrow:hover:enabled{background:#edf8f6}
.family-period-runtime .period-page-arrow:disabled{opacity:.35;cursor:default}
.family-period-runtime .period-page-basis{display:block;font-size:11px;line-height:16px;color:#60778a;text-align:right;margin:0 0 8px}
.family-period-runtime .period-distribution .explorer-pagination{display:none!important}
.family-period-runtime .period-distribution #motion-chart .explorer-footer:has(.explorer-pagination):not(:has(.explorer-status,.explorer-error)){display:none}
.family-period-runtime .period-operation-list{min-height:0}

.family-period-runtime .cabinet-chart-preview[data-bounded-list] #chart-legend>.legend-item:focus-visible{outline-offset:-3px}

/* The same navigation row is reserved at root and at every deeper level. */
#app .period-distribution .cabinet-chart-preview .report-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;height:52px;min-height:52px;max-height:52px;gap:0 12px!important;padding:0 0 8px!important;box-sizing:border-box}
#app .period-distribution .cabinet-chart-preview .report-title{display:block!important;grid-column:1;grid-row:1;min-width:0;order:0!important}
#app .period-distribution .cabinet-chart-preview .report-title:has(.accepted-path[hidden]){visibility:hidden}
#app .period-distribution .cabinet-chart-preview .layout-modes{grid-column:2;grid-row:1;display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;height:44px;min-height:44px;gap:4px;order:0!important}
#app .period-distribution .cabinet-chart-preview .layout-modes button{height:44px;min-height:44px;padding:8px;font-size:12px;line-height:20px;white-space:nowrap}
#app .period-distribution .cabinet-chart-preview .accepted-path{height:44px;min-height:44px;max-height:44px;min-width:0;overflow:hidden}
#app .period-distribution .cabinet-chart-preview .path-list{display:flex;align-items:center;flex-wrap:nowrap!important;height:44px;min-height:44px;max-height:44px;gap:0 4px;min-width:0;overflow:hidden}
#app .period-distribution .cabinet-chart-preview .path-list .path-current{flex:1 1 0;flex-basis:0!important;min-width:0;min-height:44px;max-width:100%;white-space:nowrap}
#app .period-distribution .cabinet-chart-preview .path-current>span{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap!important;font-size:13px!important;line-height:20px}
#app .period-distribution .cabinet-chart-preview .path-current>svg{display:block;flex:0 0 12px}
#app .period-distribution .cabinet-chart-preview .path-ancestor,#app .period-distribution .cabinet-chart-preview .path-gap{flex:0 0 auto;min-height:44px}
#app .period-distribution .cabinet-chart-preview .accepted-path[data-measuring=true] .path-current{flex:0 0 auto!important;max-width:none}
.family-period-runtime .period-list-pager{gap:4px;flex-wrap:nowrap}
.family-period-runtime .period-page-arrow[hidden]{display:none!important}
.family-period-runtime .period-page-size{display:inline-flex;align-items:center;gap:4px;min-height:44px;margin:0 0 0 4px;font-size:12px;line-height:20px;color:#60778a;white-space:nowrap}
#app .period-page-size select{display:block;box-sizing:border-box;width:54px;min-width:54px;height:44px;min-height:44px;padding:8px 18px 8px 6px;margin:0;border:1px dashed transparent;border-radius:6px;background-color:transparent;background-position:right 4px center;background-size:16px 16px;box-shadow:none;color:#29465c;font:inherit;cursor:pointer}
.family-period-runtime .period-list-pager:hover .period-page-size select,.family-period-runtime .period-page-size:focus-within select{border-color:#91b4b9}
.family-period-runtime .period-list-range{min-width:78px}

#app .period-distribution .accepted-path[data-root-omitted=true] .path-gap>svg{display:none}

/* The preview uses one expansion layout and one motion for all three cards. */
.family-period-runtime #family-metrics .budget-cash-window #budget-cash{grid-template-columns:20px minmax(0,1fr) 20px;min-height:99px}
.family-period-runtime #family-metrics #budget-cash>.budget-metric-label{padding-right:0}
.family-period-runtime #family-metrics #budget-cash>.period-chevron{grid-column:3;grid-row:1}
.family-period-runtime #family-metrics #budget-cash>.budget-cash-amounts{grid-column:1/-1;grid-row:2}
.family-period-runtime #family-metrics .budget-cash-window .budget-source-close{display:none}
.family-period-runtime #family-metrics #budget-source{border-top:0;background:#fff}
.family-period-runtime #family-metrics #budget-source .budget-source-body{padding:0 16px 16px}
.family-period-runtime #family-metrics .budget-window-heading:has(.budget-inline-undo) .budget-metric-label{padding-right:48px}
.family-period-runtime #family-metrics[data-period-open=cash]>.family-metric{grid-column:auto;grid-row:auto}
@media(min-width:1000px){
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric.period-expanded{grid-column:1/span 2;grid-row:1/span 3}
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric:not(.period-expanded):not(.family-forecast-card){grid-column:3/span 2;grid-row:auto}
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric.family-forecast-card{grid-column:span 2;grid-row:4}
}
@media(min-width:1000px) and (max-width:1599px){
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric.period-expanded{grid-column:1/-1;grid-row:1}
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric:not(.period-expanded){grid-column:span 2;grid-row:auto}
}
@media(max-width:999px){
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric.period-expanded{grid-column:1/-1;grid-row:1}
 .family-period-runtime #family-metrics[data-period-open=cash]>.family-metric.family-forecast-card{grid-column:auto;grid-row:auto}
}
@media(max-width:699px){
 .family-period-runtime #family-metrics #budget-source .budget-source-body{padding:0 12px 16px}
 .family-period-runtime #family-metrics[data-period-open=cash]>.budget-debt,.family-period-runtime #family-metrics[data-period-open=cash]>.family-metric.family-forecast-card{grid-column:1/-1}
}

/* Override only the legacy cash-specific grid; siblings keep the report layout. */
.family-period-runtime #app #family-metrics[data-period-open=cash]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none}
@media(min-width:1000px){.family-period-runtime #app #family-metrics[data-period-open=cash]{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:359px){.family-period-runtime #app #family-metrics[data-period-open=cash]{grid-template-columns:minmax(0,1fr)}}

.family-period-runtime #family-metrics>.period-window:not(.period-expanded){min-height:103px}

.family-period-runtime .period-expanded .period-heading>.period-chevron svg{transform:rotate(180deg)}
.family-period-runtime .period-empty-caption{display:none}
.family-period-runtime #family-metrics [data-period-empty=true] .period-empty-caption{display:block;grid-column:1/-1;font-size:12px;line-height:20px;color:#60778a}
.family-period-runtime #family-metrics [data-period-empty=true] .period-summary-comparison,.family-period-runtime [data-period-empty=true] .period-chevron{display:none!important}
.family-period-runtime #family-metrics .period-heading:disabled{opacity:1;color:inherit;cursor:default}
.family-period-runtime .period-operation-stage[aria-busy=true] .period-operation-list{opacity:.5}

.family-period-runtime #family-metrics[data-period-animating=true]{overflow-x:clip;overflow-y:visible}
