.visa-sankey-section{order:95;flex:0 0 auto;align-self:center;box-sizing:border-box;width:min(calc(100% - var(--immersive-sheet-inset)*2),1280px);max-width:1280px;padding:28px 0 12px;margin-top:16px;border-top:1px solid var(--stats-line);color:var(--stats-fg);font-family:var(--tos-font-ui,system-ui,sans-serif)}
.visa-sankey-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:22px}
.visa-sankey-title{flex:1;min-width:230px}
.visa-sankey-title h2{margin:0;font-size:19px;line-height:26px;font-weight:600;letter-spacing:-.025em}
.visa-sankey-title p{margin:5px 0 0;color:var(--stats-muted);font-size:12px;line-height:18px}
.visa-sankey-toolbar label{display:flex;align-items:center;gap:7px;color:var(--stats-muted);font-size:12px}
.visa-sankey-toolbar select,.visa-sankey-retry{font:12px var(--tos-font-ui,system-ui);color:var(--stats-fg);background:var(--immersive-sheet);border:1px solid var(--stats-line);border-radius:5px;padding:7px 10px;cursor:pointer}
.visa-sankey-toolbar :is(select,button):focus-visible{outline:2px solid var(--tos-accent);outline-offset:3px}
.visa-sankey-units{color:var(--stats-muted);font-size:11px;white-space:nowrap}
.visa-sankey-scroll{overflow-x:auto;overscroll-behavior-x:contain}
.visa-sankey-chart{width:100%;min-width:900px;height:auto;display:block;overflow:visible;font-family:var(--tos-font-ui,system-ui);--flow-stream-0:#427BC2;--flow-stream-1:#439EC3;--flow-stream-2:#7470C1;--flow-stream-3:#6B9DAD;--flow-revenue:#459BC9;--flow-profit:#298B68;--flow-cost:#C55D68;--flow-label:#304153;--flow-muted:#677789;--flow-profit-text:#247252;--flow-cost-text:#A74655}
html[data-theme=dark] .visa-sankey-chart{--flow-stream-0:#82ADEB;--flow-stream-1:#71C7E0;--flow-stream-2:#ADA2EF;--flow-stream-3:#93BBC8;--flow-revenue:#75B5DD;--flow-profit:#6ED6AD;--flow-cost:#EB9297;--flow-label:#E7EDF3;--flow-muted:#A6B1C0;--flow-profit-text:#86DAB7;--flow-cost-text:#F0A7AD}
.visa-sankey-flow{transition:opacity .15s;cursor:help;outline:none}
.visa-sankey-chart:has(.visa-sankey-flow:is(:hover,:focus-visible)) .visa-sankey-flow:not(:hover):not(:focus-visible){opacity:.23}
.visa-sankey-flow:focus-visible{stroke:var(--flow-label);stroke-width:1}
.visa-sankey-insight{display:flex;justify-content:space-between;align-items:baseline;gap:20px;border-top:1px solid var(--stats-line);padding:14px 0;color:var(--stats-muted);font-size:12px;line-height:19px}
.visa-sankey-insight strong{color:var(--stats-fg);font-weight:500}
.visa-sankey-section a{color:var(--stats-muted);text-underline-offset:3px}
.visa-sankey-notes{color:var(--stats-muted);font-size:11px;line-height:19px}
.visa-sankey-notes summary{cursor:pointer}.visa-sankey-notes p{margin:8px 0}
.visa-sankey-status{padding:48px 0;color:var(--stats-muted);font-size:13px}
.visa-sankey-status:empty{display:none}
@media(max-width:800px){.visa-sankey-title{flex-basis:100%}.visa-sankey-units{margin-left:auto}.visa-sankey-insight{flex-wrap:wrap;gap:8px}.visa-sankey-section{padding-top:22px}}
@media(prefers-reduced-motion:reduce){.visa-sankey-flow{transition:none}}
/* Approved static business-flow design, integrated into the continuous research sheet. */
.visa-sankey-section.is-static{padding-top:20px}
.visa-static-heading{flex:1;margin:0;font-size:15px;line-height:22px;font-weight:500;letter-spacing:-.02em}
.visa-sankey-section.is-static .visa-sankey-toolbar{margin-bottom:4px}
.visa-static-chart>svg{display:block;width:100%;height:auto;min-width:960px;font-family:Inter,var(--tos-font-ui,system-ui)}
.visa-static-chart .stream-group{cursor:pointer;transition:none}
.visa-static-chart .source-hit:focus-visible{outline:2px solid var(--tos-accent);outline-offset:-2px}
.visa-sankey-section.is-static .visa-sankey-status{padding:10px 0}
.visa-sankey-section.is-static .visa-sankey-notes{padding-top:2px}

/* The period controls are the static chart's single header. */
.visa-sankey-section.is-static .visa-sankey-toolbar{justify-content:flex-end;margin-bottom:4px}

/* Match the Overview cards and the statements' in-page popup menus. */
.visa-sankey-section.is-static{background:var(--immersive-sheet);padding:12px 0;margin-top:8px}
.visa-sankey-section.is-static .visa-sankey-toolbar{padding:0 16px}
.visa-year-picker{position:relative;font-size:12px}
.visa-year-trigger{display:flex;align-items:center;gap:16px;font:inherit;color:var(--stats-muted);background:transparent;border:0;border-radius:4px;padding:6px 10px;cursor:pointer}
.visa-year-trigger:hover,.visa-year-trigger[aria-expanded=true]{background:var(--stats-head);color:var(--stats-fg)}
.visa-year-trigger svg{flex-shrink:0;transition:transform 140ms ease}
.visa-year-trigger[aria-expanded=true] svg{transform:rotate(180deg)}
.visa-year-menu{position:absolute;right:0;top:calc(100% + 5px);z-index:100;min-width:0;width:max-content;padding:2px;background:var(--tos-bg-dialog,var(--immersive-sheet));border:1px solid var(--tos-border-sep,var(--stats-line));border-radius:4px;box-shadow:0 5px 16px #0002;isolation:isolate}
.visa-year-menu[hidden]{display:none}
.visa-year-menu button{display:block;position:relative;width:100%;padding:5px 8px;border:0;border-radius:2px;background:transparent;font:inherit;white-space:nowrap;text-align:left;color:var(--stats-fg);cursor:pointer}
.visa-year-menu button:hover,.visa-year-menu button:focus-visible{background:var(--stats-head);outline:none}
.visa-year-menu button[aria-checked=true]{background:color-mix(in srgb,var(--stats-fg) 14%,var(--stats-bg))}
@media(prefers-reduced-motion:reduce){.visa-year-trigger svg{transition:none}}

/* The fiscal-year control has the same balanced row and button geometry as statements. */
.visa-sankey-section.is-static{padding:0}
.visa-sankey-section.is-static .visa-sankey-toolbar{box-sizing:border-box;min-height:36px;padding:4px 16px;margin:0;align-items:center}
.visa-year-picker{display:flex;align-items:center}
.visa-year-trigger{box-sizing:border-box;height:28px;line-height:16px;padding:6px 10px;border:0;outline:none;box-shadow:none;border-radius:4px;align-items:center}
.visa-year-trigger:focus-visible{outline:none!important;background:var(--stats-head)}
.visa-sankey-section.is-editorial .visa-static-chart{min-width:960px}
.visa-editorial{color:var(--editorial-fg);font-family:Inter,var(--tos-font-ui,system-ui);font-variant-numeric:tabular-nums}
.visa-editorial-header{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:20px 36px 16px;min-height:84px;box-sizing:border-box}
.visa-editorial-identity{display:flex;align-items:center;gap:24px}
.visa-editorial-header h2{display:block!important;margin:0!important;font:600 20px/28px var(--tos-font-ui,Inter,system-ui,sans-serif);letter-spacing:-.015em;color:var(--stats-fg)}
.visa-editorial-header p{margin:4px 0 0;font:12px/18px Inter,var(--tos-font-ui,system-ui);color:var(--editorial-muted)}
.visa-editorial-date{text-align:right;white-space:nowrap}
.visa-editorial-diagram{padding:6px 36px 12px}
.visa-editorial-diagram>svg{display:block;width:100%;height:auto;overflow:visible}
.visa-editorial-footer{padding:16px 36px 26px}
.visa-editorial-summary{display:flex;justify-content:space-between;align-items:baseline;gap:24px;border-top:1px solid var(--stats-line);padding-top:16px}
.visa-editorial-summary>div{display:flex;align-items:baseline;gap:10px}
.visa-editorial-summary strong{color:var(--editorial-profit);font-size:21px;font-weight:600;line-height:28px}
.visa-editorial-summary span{font-size:12px;line-height:18px}
.visa-editorial-summary>span{font-size:10px;color:var(--editorial-muted)}
.visa-editorial-footer p{font-size:11px;line-height:17px;color:var(--editorial-muted);margin:12px 0 0}
.visa-editorial-footer a{color:inherit}
/* Override the native desk card's small-heading and hidden-footer defaults. */
html.immersive-company #statistics-test-panel .visa-editorial-header h2{font:600 20px/28px var(--tos-font-ui,Inter,system-ui,sans-serif)!important;letter-spacing:-.015em!important}
html.immersive-company #statistics-test-panel .visa-editorial-footer{display:block!important}

/* One compact header, matching the surrounding Overview containers. */
.visa-sankey-section.is-static .visa-flow-header{min-height:36px;padding:4px 8px;gap:14px;background:var(--stats-head);border-bottom:1px solid var(--stats-line);border-radius:7px 7px 0 0;flex-wrap:nowrap}
.visa-flow-period-end{font:11px/18px var(--tos-font-ui,Inter,system-ui,sans-serif);color:var(--stats-muted);white-space:nowrap}
.visa-flow-header .visa-year-picker{margin-left:auto}
.visa-flow-footer{display:flex;justify-content:flex-end;padding:0 16px 12px}
.visa-flow-footer .visa-flow-period-end{margin:0}
.visa-flow-header .visa-year-trigger{font-size:12px}
.visa-flow-header .visa-sankey-units{margin-left:0}
.visa-sankey-section.is-editorial .visa-static-chart .visa-editorial-diagram{padding-top:16px}
@media(max-width:700px){.visa-sankey-section.is-static .visa-flow-header{flex-wrap:wrap;gap:4px 12px}.visa-flow-header .visa-year-picker{margin-left:auto}}

/* Match the section/statement tabs: stronger text and caret contrast on hover. */
.visa-flow-header .visa-year-trigger{transition:color 140ms ease}
@media(hover:hover){html.immersive-company #statistics-test-panel .visa-flow-header .visa-year-trigger:not(:disabled):hover{color:var(--immersive-tab-hover-ink)!important;background:transparent!important;box-shadow:none!important}}
html.immersive-company #statistics-test-panel .visa-flow-header .visa-year-trigger:is(:focus-visible,[aria-expanded=true]){color:var(--immersive-tab-hover-ink)!important}
@media(prefers-reduced-motion:reduce){.visa-flow-header .visa-year-trigger{transition:none}}

/* Same 6×4 caret, inset and text gap as the native Summary dropdown. */
.visa-flow-header .visa-year-trigger{padding:5px 8px;gap:8px}
.visa-flow-header .visa-year-trigger::after{content:'';width:0;height:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid currentColor;opacity:.65;flex-shrink:0}
