/* BECO U4 v1.7.8 — financial executive reporting; scoped, reversible. */
body.u4-v164-analytics{--v178-bg:#dbe5eb;--v178-card:#e7eef2;--v178-elev:#edf3f6;--v178-text:#173244;--v178-muted:#5a7585;--v178-stroke:#b6cbd5;--v178-track:#c4d3da;--v178-plan:#9ab5c4;--v178-real:#217e78;--v178-axis:#c3d5db;--v178-good:#257e78;--v178-danger:#b84954}
html[data-u4-theme="dark"] body.u4-v164-analytics{--v178-bg:#14283b;--v178-card:#20364b;--v178-elev:#263f54;--v178-text:#edf5f8;--v178-muted:#aec3ce;--v178-stroke:#3b5669;--v178-track:#344c60;--v178-plan:#a7c1d0;--v178-real:#60bfb0;--v178-axis:#32495a;--v178-good:#83d8ba;--v178-danger:#ff797f}
.v178-finance{display:grid;gap:12px;color:var(--v178-text);padding:6px 0 10px}
.v178-finance-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:12px 14px;background:var(--v178-card);border-radius:13px}
.v178-finance-head h2{font-size:18px;color:var(--v178-text);margin:5px 0 4px}.v178-finance-head p,.v178-subheading p,.v178-fin-card p{font-size:11.5px;color:var(--v178-muted);margin:0;line-height:1.5}
.v178-eyebrow{letter-spacing:.12em;color:#2aa29d;font-size:10px;font-weight:850}
.v178-switch{display:flex;gap:4px;padding:4px;background:var(--v178-bg);border:1px solid var(--v178-stroke);border-radius:10px;flex-wrap:wrap}
.v178-switch button{background:none;color:var(--v178-muted);border:0;border-radius:8px;padding:10px 13px;font-size:12px;font-weight:800;cursor:pointer}
.v178-switch button.is-active{background:var(--v178-elev);color:var(--v178-text);box-shadow:0 2px 7px #0014201a}
.v178-body{display:grid;gap:13px}.v178-subheading{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:5px 2px 0}
.v178-subheading h3{font-size:15px;color:var(--v178-text);margin:0 0 4px}
.v178-go,.v178-run{background:#236f71!important;color:#fff!important;text-decoration:none;border:0;border-radius:8px;padding:10px 16px;font-size:12px;font-weight:800;cursor:pointer}.v178-run:disabled{opacity:.45;cursor:not-allowed}
.v178-fin-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.v178-fin-kpi{background:var(--v178-card);padding:15px 13px;border-radius:11px;display:flex;flex-direction:column;justify-content:center;min-height:90px;box-shadow:0 3px 12px #09263c0b}.v178-fin-kpi small{color:var(--v178-muted);font-size:11px}.v178-fin-kpi b{font-size:18px;font-weight:850;letter-spacing:-.025em;color:var(--v178-text);margin:6px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.v178-fin-kpi span{font-size:10px;color:var(--v178-muted)}.v178-fin-kpi.negative b,.v178-down{color:var(--v178-danger)!important}
.v178-fin-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(270px,.9fr);gap:13px}.v178-fin-card{min-width:0;background:var(--v178-card);border-radius:12px;padding:17px;box-shadow:0 3px 14px #071a2a10}.v178-fin-card h4{font-size:15px;margin:0 0 5px;color:var(--v178-text)}.v178-fin-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}.v178-legend{font-size:10px;display:flex;align-items:center;gap:6px;color:var(--v178-muted)}.v178-legend i{width:9px;height:9px;border-radius:3px}.v178-legend i.plan{background:var(--v178-plan)}.v178-legend i.real{background:var(--v178-real)}
.v178-section-list{display:grid;gap:3px;margin-top:15px;max-height:430px;overflow:auto}.v178-section-row{width:100%;background:transparent;display:grid;grid-template-columns:minmax(155px,1.2fr) minmax(90px,1fr) minmax(100px,.55fr) 12px;gap:14px;align-items:center;text-align:left;color:var(--v178-text);border:0;border-bottom:1px solid color-mix(in srgb,var(--v178-stroke) 60%,transparent);padding:10px 7px;cursor:pointer;border-radius:7px}
.v178-section-row:hover,.v178-section-row.selected{background:var(--v178-elev)}.v178-section-label b,.v178-section-label small,.v178-section-amount small{display:block;overflow:hidden;text-overflow:ellipsis}.v178-section-label b{font-size:11.5px}.v178-section-label small,.v178-section-amount small{font-size:10px;color:var(--v178-muted);margin-top:4px}.v178-section-amount{font-size:12px;font-weight:800;font-variant-numeric:tabular-nums}.v178-chevron{color:var(--v178-real)}
.v178-two-tracks,.v178-cut-rails{display:grid;gap:6px}.v178-track,.v178-cut-rails{height:8px;background:var(--v178-track);border-radius:99px;overflow:hidden}.v178-two-tracks .v178-track{height:8px;display:block}.v178-track>i{display:block;height:100%;border-radius:99px}
.v178-mix{display:grid;gap:9px;margin-top:14px}.v178-mix button{background:transparent;border:0;color:var(--v178-text);cursor:pointer;text-align:left;display:grid;grid-template-columns:1fr auto;gap:6px 10px;padding:7px;border-radius:7px}.v178-mix button:hover{background:var(--v178-elev)}.v178-mix span{font-size:11px;overflow-wrap:anywhere}.v178-mix b{font-size:12px;font-variant-numeric:tabular-nums}.v178-mix i{grid-column:1/-1;height:6px;background:var(--v178-track);border-radius:8px;overflow:hidden}.v178-mix em{display:block;background:var(--v178-real);height:100%;border-radius:8px}
.v178-footnote{font-size:11px;color:var(--v178-muted);line-height:1.5;margin:14px 2px 2px}.v178-selection{margin-top:14px;padding:14px;background:var(--v178-elev);border-radius:9px;position:relative}.v178-selection h4{font-size:14px;margin:0 0 9px}.v178-selection p{font-size:11px;margin-top:8px}.v178-sel-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.v178-sel-kpis .v178-fin-kpi{min-height:60px;padding:9px}.v178-sel-kpis .v178-fin-kpi b{font-size:14px}.v178-clear{position:absolute;right:12px;top:8px;background:transparent;border:0;color:var(--v178-text);cursor:pointer;font-size:20px}
.v178-cut-picker{display:flex;gap:9px;align-items:flex-end;flex-wrap:wrap;background:var(--v178-card);border-radius:10px;padding:14px}.v178-cut-picker label,.v178-trend-tools label{display:grid;gap:5px;flex:1;min-width:205px;font-size:11px;color:var(--v178-muted)}.v178-cut-picker select,.v178-trend-tools select{background:var(--v178-elev)!important;border:1px solid var(--v178-stroke)!important;border-radius:8px;color:var(--v178-text)!important;padding:10px!important;max-width:100%;font-size:12px}.v178-cut-row{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(130px,1fr) 140px;align-items:center;gap:11px;width:100%;border:0;border-bottom:1px solid var(--v178-stroke);color:var(--v178-text);padding:10px;background:transparent;text-align:left;cursor:pointer}.v178-cut-row:hover{background:var(--v178-elev)}.v178-cut-row>span:first-child b{display:block;font-size:12px}.v178-cut-row>span:first-child small{font-size:10px;color:var(--v178-muted)}.v178-cut-row>strong{text-align:right;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}.v178-cut-rails{height:auto;display:grid;gap:4px;background:none;border-radius:0}.v178-cut-rails i{height:8px;border-radius:99px;display:block}.v178-change{border-bottom:1px solid var(--v178-stroke);padding:12px 5px;display:flex;gap:10px;justify-content:space-between;align-items:center;font-size:12px}.v178-change strong{white-space:nowrap}.v178-up{color:var(--v178-good)}
.v178-message{padding:17px 18px;border-radius:10px;background:var(--v178-card);color:var(--v178-muted);font-size:12px;line-height:1.5}.v178-message.is-error{color:var(--v178-danger);border-left:3px solid var(--v178-danger)}.v178-trend-tools{display:flex;align-items:end;justify-content:space-between;gap:10px;background:var(--v178-card);padding:13px;border-radius:10px}.v178-trend-tools span{font-size:11px;color:var(--v178-muted)}.v178-trend-chart{background:var(--v178-card);border-radius:11px;padding:18px;min-height:280px}.v178-trend-chart svg{width:100%;height:auto;max-height:285px}.v178-trend-foot{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
/* A3 export modal: keyboard accessible, independent scrolling, themes share semantics. */
.v178-dialog{position:fixed;inset:0;box-sizing:border-box;border:1px solid var(--v178-stroke);border-radius:16px;width:min(780px,calc(100vw - 30px));max-width:780px;max-height:min(90vh,830px);padding:0;background:var(--v178-bg);color:var(--v178-text);box-shadow:0 20px 80px #061523a0}.v178-dialog::backdrop{background:#061322a8}.v178-dialog-shell{display:flex;flex-direction:column;max-height:min(90vh,830px);min-height:380px}.v178-dialog-head{flex:0 0 auto;background:var(--v178-card);display:flex;justify-content:space-between;gap:10px;padding:21px 24px;border-bottom:1px solid var(--v178-stroke)}.v178-dialog-head h2{font-size:20px;margin:4px 0 7px;color:var(--v178-text)}.v178-dialog-head p{font-size:12px;color:var(--v178-muted);margin:0}.v178-x{height:32px;width:32px;border:1px solid var(--v178-stroke);background:var(--v178-elev);color:var(--v178-text);border-radius:8px;cursor:pointer;font-size:21px}.v178-dialog-scroll{overflow-y:auto;min-height:0;flex:1;padding:19px 24px;overscroll-behavior:contain}.v178-dialog-actions{display:flex;align-items:center;gap:9px;margin-bottom:10px}.v178-dialog-actions button{border:1px solid var(--v178-stroke);background:var(--v178-elev);border-radius:8px;color:var(--v178-text);padding:8px 12px;cursor:pointer}.v178-dialog-actions span{margin-left:auto;font-size:11px;color:var(--v178-muted)}.v178-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.v178-check-list label{display:flex;align-items:center;gap:11px;background:var(--v178-card);padding:11px 13px;border-radius:9px;cursor:pointer;border:1px solid transparent}.v178-check-list label:hover,.v178-check-list label:focus-within{border-color:var(--v178-real)}.v178-check-list input{accent-color:#267f7b;width:18px;height:18px;flex:0 0 auto}.v178-check-list span{display:grid;gap:3px}.v178-check-list b{font-size:12px;color:var(--v178-text)}.v178-check-list small{font-size:10px;color:var(--v178-muted)}.v178-export-options{margin-top:13px;padding:14px;background:var(--v178-card);border-radius:10px;display:grid;gap:12px}.v178-export-options label{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--v178-text)}.v178-export-options input{accent-color:#288c89}.v178-export-options select{background:var(--v178-elev)!important;color:var(--v178-text)!important;border:1px solid var(--v178-stroke)!important;padding:9px;max-width:330px;border-radius:7px}.v178-export-options p{font-size:10.5px;color:var(--v178-muted);line-height:1.5;margin:0}.v178-dialog-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid var(--v178-stroke);background:var(--v178-card);flex:0 0 auto}.v178-dialog-footer span{margin-right:auto;font-size:11px;color:var(--v178-muted);max-width:50%}
/* Restore focus, legibility and upper-layer priority without modifying the original official-cuts module. */
.v178-dialog:focus-visible,.v178-finance button:focus-visible,.v178-finance select:focus-visible{outline:2px solid var(--v178-real);outline-offset:3px}
@media(max-width:1160px){.v178-fin-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.v178-fin-grid{grid-template-columns:1fr}.v178-section-row{grid-template-columns:1.2fr .8fr .5fr 12px}}
@media(max-width:750px){.v178-fin-kpis,.v178-sel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.v178-section-row{grid-template-columns:1fr 1fr}.v178-section-amount,.v178-chevron{display:none}.v178-check-list{grid-template-columns:1fr}.v178-finance-head{align-items:flex-start}}
