.staff-finance-overview,.finance-overview-back{display:none}
.staff-bonus-fire{position:relative;isolation:isolate;width:230px;height:230px;margin:48px auto 26px}
.staff-bonus-fire .master-bonus-ring{position:absolute!important;inset:10px;width:210px!important;height:210px!important;margin:0!important;z-index:2;padding:16px!important;background:conic-gradient(#ff9a36,#ffe7a1,#ff6b18,#ffcb65,#ff9a36)!important}
.staff-bonus-fire .master-bonus-ring:after{display:none}
.staff-bonus-fire .master-bonus-ring strong{color:#bd4e09!important;font-size:19px!important}
html[data-theme="dark"] .staff-bonus-fire .master-bonus-ring strong{color:#ffba64!important}
.staff-bonus-fire .master-bonus-ring b{font-size:42px!important}
.staff-bonus-fire .master-bonus-ring small{font-size:12px!important}
.staff-bonus-fire canvas{pointer-events:none}
@media(max-width:700px){
#masterFinance{color:var(--text);padding-bottom:24px}
#masterFinance .staff-finance-overview{display:block}
#masterFinance:not([data-finance-screen="home"]) .staff-finance-overview{display:none}
#masterFinance .finance-overview-back{display:block;margin:0 0 14px;padding:10px 14px;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--surface-solid);color:var(--primary);font:inherit;font-size:14px}
#masterFinance[data-finance-screen="home"] .finance-overview-back{display:none}
#masterFinance [data-finance-section]{display:none!important}
#masterFinance[data-finance-screen="salary"] [data-finance-section="salary"],#masterFinance[data-finance-screen="bonus"] [data-finance-section="bonus"],#masterFinance[data-finance-screen="results"] [data-finance-section="results"]{display:block!important}
#masterFinance #personalWallet{display:none}
#masterFinance[data-finance-screen="entry"] #personalWallet,#masterFinance[data-finance-screen="journal"] #personalWallet{display:block}
#masterFinance[data-finance-screen="entry"] .personal-wallet>.panel-heading,#masterFinance[data-finance-screen="entry"] .wallet-summary,#masterFinance[data-finance-screen="entry"] .wallet-journal{display:none}
#masterFinance[data-finance-screen="journal"] .wallet-calculator{display:none}
#masterFinance .wallet-content{display:block;padding:12px}
#masterFinance .wallet-calculator{max-width:100%;padding:12px}
#masterFinance .wallet-calculator input{box-sizing:border-box;max-width:100%;min-width:0;font-size:16px}
#masterFinance .wallet-date-label{min-width:0}
#masterFinance .staff-finance-overview header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 18px}
#masterFinance .staff-finance-overview small{display:block;color:var(--muted);font-size:12px;line-height:1.4}
#masterFinance .staff-finance-overview h1{font-size:27px;line-height:1.2;margin:3px 0;font-weight:650}
#masterFinance .finance-avatar{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;overflow:hidden;border-radius:50%;background:var(--violet-soft);color:var(--primary);font-size:18px}
#masterFinance .finance-avatar img{display:block;width:100%;height:100%;object-fit:cover}
#masterFinance .finance-dual{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;text-align:center;margin:16px 0}
#masterFinance .finance-dual>button{min-width:0}
#masterFinance .finance-dual>button+button{padding-left:12px;border-left:1px solid var(--line)}
#masterFinance .finance-dual svg{display:block;width:100%;height:82px;margin:10px 0;color:var(--green)}
#masterFinance .finance-mini-line{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#masterFinance .finance-mini-area{fill:currentColor;opacity:.12}
#masterFinance .finance-dual strong{display:block;font-size:clamp(19px,6vw,28px);line-height:1.3;overflow-wrap:anywhere}
#masterFinance .finance-wallet-split{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;font-size:13px;margin-bottom:18px}
#masterFinance .finance-quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
#masterFinance .finance-quick-actions button{min-height:46px;padding:10px;border:0;border-radius:13px;background:var(--violet-soft);color:var(--primary);font:inherit;font-size:15px;font-weight:650}
#masterFinance .finance-quick-actions button:first-child{background:var(--primary);color:#fff}
#masterFinance .finance-overview-menu{padding:0 14px;border-radius:20px;background:var(--surface-solid);border:1px solid var(--line)}
#masterFinance .finance-overview-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:68px;padding:12px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:left}
#masterFinance .finance-overview-menu button:last-child{border-bottom:0}
#masterFinance .finance-overview-menu button>span{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:12px;background:var(--violet-soft);color:var(--primary);font-size:19px}
#masterFinance .finance-overview-menu button>div{flex:1;min-width:0}
#masterFinance .finance-overview-menu b{display:block;font-size:15px}
#masterFinance .finance-overview-menu strong{font-size:13px;max-width:35%;overflow-wrap:anywhere}
#masterFinance .finance-overview-menu i{color:var(--muted);font-style:normal;font-size:19px}
#masterFinance .finance-recent-heading{display:flex;align-items:center;justify-content:space-between;margin-top:18px;gap:8px}
#masterFinance .finance-recent-heading h2{font-size:16px;margin:0}
#masterFinance .finance-recent-heading button{min-height:44px;border:0;background:transparent;color:var(--primary);font:inherit;font-size:14px}
#masterFinance .finance-recent-row{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:58px;border-bottom:1px solid var(--line);font-size:14px}
#masterFinance .finance-recent-row>div{min-width:0;overflow-wrap:anywhere}
#masterFinance .finance-recent-row strong{white-space:nowrap;font-size:14px}
#masterFinance .finance-recent-row .income{color:var(--green)}
#masterFinance .finance-recent-row .expense{color:var(--red,#d94364)}
#masterFinance[data-finance-screen="salary"] .master-finance-hero{display:block!important}
#masterFinance[data-finance-screen="salary"] .master-finance-hero-right{width:100%;max-width:none}
#masterFinance .master-finance-grid.lower>article{margin-bottom:14px}
#masterFinance .master-finance-metrics article{margin-bottom:10px}
#masterFinance .master-bonus-progress{overflow:hidden}
#masterFinance .master-bonus-ring{width:210px;height:210px}
#masterFinance .master-bonus-ring strong{font-size:19px}
#masterFinance .master-bonus-ring b{font-size:42px}
#masterFinance .master-bonus-ring small{font-size:12px}
#masterFinance .master-bonus-progress-copy strong{font-size:28px}
#masterFinance .master-bonus-progress-copy span,#masterFinance .master-bonus-progress-copy small,#masterFinance .master-bonus-progress-copy i{font-size:13px}
}

/* Let block layout resolve the available width before applying the user's
   content zoom. A percentage divided by zoom overflows older iOS WebViews
   that ignore zoom, and differs between WebKit and Chromium. */
@media(max-width:880px){
  body.master-access #page-finance > #masterFinance{
    width:auto!important;
    min-width:0;
    max-width:none!important;
    box-sizing:border-box;
  }
  #masterFinance .staff-finance-overview,
  #masterFinance .finance-overview-menu,
  #masterFinance .finance-dual,
  #masterFinance .finance-quick-actions{min-width:0;max-width:100%;box-sizing:border-box}
  #masterFinance .finance-overview-menu button{min-width:0;box-sizing:border-box}
  #masterFinance .finance-overview-menu button>div{overflow-wrap:anywhere}
}
@media(max-width:880px){
  #masterFinance .staff-bonus-fire{width:min(230px,100%);height:auto;aspect-ratio:1;container-type:inline-size}
  #masterFinance .staff-bonus-fire .master-bonus-ring{inset:4.35%;width:91.3%!important;height:91.3%!important;padding:7%!important}
  #masterFinance .staff-bonus-fire canvas{left:-15.22%!important;top:-28.26%!important;width:130.44%!important;height:139.13%!important}
  #masterFinance .staff-bonus-fire .master-bonus-ring strong{font-size:clamp(12px,8.3cqw,19px)!important}
  #masterFinance .staff-bonus-fire .master-bonus-ring b{font-size:clamp(24px,18.3cqw,42px)!important}
  #masterFinance .staff-bonus-fire .master-bonus-ring small{font-size:clamp(9px,5.2cqw,12px)!important}
  #masterFinance .master-bonus-ring{width:min(210px,100%);height:auto;aspect-ratio:1;max-width:100%;box-sizing:border-box}
  #masterFinance .master-bonus-progress-copy i{max-width:100%;white-space:normal}
  #masterFinance .wallet-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #masterFinance .wallet-summary-grid>div{min-width:0;overflow-wrap:anywhere}
  #masterFinance .finance-recent-row strong{white-space:normal;text-align:right;overflow-wrap:anywhere}
}
@media(max-width:880px){
  #masterFinance .panel-heading{flex-wrap:wrap;min-width:0}
  #masterFinance .panel-heading>div{min-width:0;max-width:100%}
  #masterFinance .master-chart-period{flex-wrap:wrap;max-width:100%}
  #masterFinance .master-chart-period button{white-space:normal;min-width:0;flex:1}
  #masterFinance .master-salary-period{width:100%;flex-wrap:wrap}
  #masterFinance .master-salary-period button{min-width:0;flex:1;white-space:normal}
  #masterFinance .wallet-journal-heading{flex-wrap:wrap;min-width:0}
  #masterFinance .wallet-filters{max-width:100%;flex-wrap:wrap}
  #masterFinance .sidebar-calc-switches{flex-wrap:wrap}
  #masterFinance .sidebar-calc-toggle{min-width:0;max-width:100%}
  #masterFinance .wallet-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  #masterFinance .wallet-categories button{min-width:0;overflow-wrap:anywhere}
}

@media(max-width:700px){
  #masterFinance .finance-dual>button{display:block;width:100%;padding:0;border:0;border-radius:0;background:transparent;color:var(--text);font:inherit;text-align:center;cursor:pointer}
  #masterFinance .finance-dual>button+button{padding-left:12px;border-left:1px solid var(--line)}
  #masterFinance[data-finance-screen="salary"] .master-finance-hero{display:flex!important;flex-direction:column;align-items:stretch;gap:10px}
  #masterFinance[data-finance-screen="salary"] .master-finance-hero-heading>small,
  #masterFinance[data-finance-screen="salary"] .master-finance-hero-heading>h1,
  #masterFinance[data-finance-screen="salary"] .master-finance-hero-heading>p,
  #masterFinance[data-finance-screen="salary"] [data-personal-salary-count],
  #masterFinance[data-finance-screen="salary"] #masterSavingsCard{display:none!important}
  #masterFinance[data-finance-screen="salary"] .master-finance-hero-right{order:0;flex:auto;width:100%;min-height:0}
  #masterFinance[data-finance-screen="salary"] .master-finance-hero-heading{order:1;flex:auto;text-align:center}
  #masterFinance[data-finance-screen="salary"] .master-salary-overview{margin:0}
  #masterFinance[data-finance-screen="salary"] .master-salary-overview>strong{font-size:26px}
  #masterFinance[data-finance-screen="salary"] .master-salary-accumulation svg{flex:none;height:150px}
}

#masterFinance .staff-bonus-model{width:min(100%,360px);height:300px;margin:8px auto 24px;display:grid;place-items:center;color:var(--muted);font-size:12px;text-align:center}#masterFinance .staff-bonus-model model-viewer{display:block;width:100%;height:100%;background:transparent;--poster-color:transparent}@media(max-width:700px){#masterFinance .staff-bonus-model{height:280px}}
