.avatar,.mobileaccount{overflow:hidden;flex-shrink:0}.avatar img,.mobileaccount img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}.user>div:last-child{min-width:0;overflow-wrap:anywhere}.accountphoto{display:flex;gap:20px;align-items:center;margin:8px 0 22px}.accountphoto .avatar{width:82px;height:82px;font-size:27px}.accountphoto>div:last-child{min-width:0}.accountphoto small{display:block;font-size:11px;margin-top:9px}.photochoose{position:relative;display:inline-flex;min-height:44px;align-items:center;border:1px solid var(--line);padding:10px 13px;border-radius:9px;cursor:pointer;font-size:12px}.photochoose input{position:absolute;inset:0;opacity:0;cursor:pointer}.photochoose:focus-within{outline:2px solid #759d89;outline-offset:2px}.accountphoto button[hidden]{display:none}.accountpassword{margin-top:25px;border-top:1px solid var(--line);padding-top:20px}.accountpassword summary{cursor:pointer;font-size:13px;font-weight:600;padding:8px 0}.accountpassword form{margin-top:20px}.themesettings{border:0;margin:25px 0 0;padding:0}.themesettings legend{font-size:13px;font-weight:600;margin-bottom:12px}.themeoptions{display:flex;gap:12px}.themeoptions label{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:12px 16px;border-radius:10px;flex:1;cursor:pointer}.themeoptions label:has(:checked){outline:2px solid #759d89;outline-offset:1px}.themeoptions input{width:17px;height:17px;min-height:0;padding:0;margin:0;accent-color:#568c72}.themeswatch{width:32px;height:32px;display:grid;place-items:center;border-radius:7px;font-size:12px}.lightpreview{background:#f5f6f2;color:#213c35;border:1px solid #d7dfd5}.darkpreview{background:#141e1b;color:#e3eee7;border:1px solid #344b40}
.financeperiod{margin-bottom:22px}.financeperiod .filters{margin-bottom:13px}.financemonth{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.financemonth>button:not(.small){min-width:44px;font-size:20px;padding:7px}.financemonth strong{min-width:135px;text-align:center;text-transform:capitalize;font-size:14px}.financemetrics{grid-template-columns:repeat(3,minmax(0,1fr))}.financemetrics .value{font-size:27px;overflow-wrap:anywhere;line-height:1.3}.financemetrics small{font-size:11px;line-height:1.6;display:block}.positivebalance{background:#edf3e9;border-color:#d6e3d2}.negativebalance{background:#fcf1ec;border-color:#ecd8ca}.financecoverage{margin-bottom:25px;padding:0 3px;line-height:1.6}.financecoverage strong{font-size:14px}.financecoverage small{display:block;font-size:11px;margin-top:5px}.financeexplainer{font-size:12px;line-height:1.8;color:var(--muted);border-bottom:1px solid var(--line)}.cashrow{display:flex;align-items:center;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line)}.cashrow:last-child{border-bottom:0}.cashsymbol{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;background:#f5eee6;color:#846549;font-size:19px}.cashsymbol.income{background:#e8f2e7;color:#48764f}.cashdescription{min-width:0;flex:1}.cashdescription strong{display:block;font-size:13px;overflow-wrap:anywhere;line-height:1.5}.cashdescription small{display:block;font-size:11px;margin-top:5px}.cashamount{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.cashamount.income{color:#3b754f}.cashactions{display:flex;gap:5px}.cashactions button{min-height:40px}.cashactions .ghost{color:#95634f}.financeundo{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;padding:12px 18px;background:#edf3e9;border:1px solid var(--line);border-radius:10px;margin-bottom:18px}.financeundo button{font-size:12px}#cashentry .formgrid>label:first-child{grid-column:1/-1}#cashentry .hint{margin-top:20px}button:focus-visible{outline:2px solid #759d89;outline-offset:3px}
@media(max-width:700px){.financemetrics{grid-template-columns:1fr;gap:10px}.financemetrics .metric{padding:17px 20px}.financemetrics .value{font-size:28px;margin:9px 0}.financeperiod .periodcustom{grid-template-columns:1fr}.cashrow{display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px 12px;padding:18px}.cashsymbol{grid-column:1;grid-row:1;width:30px;height:30px}.cashdescription{grid-column:2}.cashamount{grid-column:2;font-size:17px}.cashactions{grid-column:2;gap:10px}.cashactions button{min-height:44px;padding:8px 13px}.financeundo{flex-wrap:wrap}.themeoptions label{padding:12px 10px;gap:7px}.themeswatch{display:none}.accountphoto{gap:14px}.accountphoto .avatar{width:65px;height:65px}.accountphoto .photochoose{font-size:11px}.accountphoto small{font-size:10px}.financemonth{gap:8px}.financemonth strong{min-width:120px}.financemonth>.ghost{padding:10px 5px}.pagehead:has(+.financeperiod){display:block}.pagehead:has(+.financeperiod) .actions{margin-top:18px}}

/* User-selected theme. Printed documents deliberately keep their paper colours. */
html[data-theme=dark]{color-scheme:dark;background:#111916;color:#e1e9e4;--green:#bedec9;--muted:#a4b5ab;--line:#35473e;--lime:#d5ed9c;--surface:#1b2822;--raised:#24352b;--ink:#e1e9e4}
html[data-theme=dark] :is(.sidebar,.topbar,.panel,.metric,.reportmetrics .metric,.daytask,.daytask.calls,.appointmentday,.reminderdatecontrols,.callbackcard,.callbackpanel,.appointmentfilters,.formsection,.professionalform .dialoghead,.professionalform .formfooter,.professionalpreview .documenttools,.login,dialog,.reportvisitstable tr,.reportclienttable tr):where(:not(.printsheet *)){background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(button,input,select,textarea,.ro-date-trigger,.contactbutton):where(:not(.printsheet *)){background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(button.primary,.filters button.active,.profiletabs button.active,.ro-cal-days button.selected){background:#abd1b9;color:#10291c;border-color:#abd1b9}
html[data-theme=dark] :is(button.ghost,.nav button,.agendaclient,.ro-cal-days button){background:transparent}
html[data-theme=dark] :is(.nav button.active,.help,.avatar,.mobileaccount,.profilehero,.carttotal,.banner,.technicalhero,.technicaloperations label,.technicalheading>span,.clientflow fieldset,.reschedulesummary,.servicecurrenthint,.workscope,.daytaskicon,.daycount,.dayempty>span,.filterchip,.documenttype,.sectionheading>span,.importresult,.financeundo,#visititems .visititem){background:var(--raised);color:var(--ink);border-color:var(--line)}
html[data-theme=dark] :is(.professionalform,.professionalpreview){background:#152019}
html[data-theme=dark] :is(th,.search input):where(:not(.printsheet *)){background:#202f27;color:var(--muted)}
html[data-theme=dark] :is(td,.panelhead,.dayagendaitem,.dayduelist>article,.schedule,.check,.technicalcheck,.emailtools,.salesdiscount,.salestotals .nettotal,.reportvisitlink,.appointmentfilterfooter,.ro-cal-time):where(:not(.printsheet *)){border-color:var(--line)!important}
html[data-theme=dark] tr.clickable:hover{background:#263b2e}
html[data-theme=dark] :is(label,legend,.professionalform label,.clientflow legend,.daytask.calls>strong,.dayintro strong,.dayempty strong,.daytask.calls .daytaskicon,.servicecurrenthint strong,.agendaclient,.workspaceentry span):where(:not(.printsheet *)){color:var(--ink)}
html[data-theme=dark] :is(small,.hint,.empty,.muted,.metric .label,.daytasktop,.daytask.calls .daytasktop,.daytask.calls small,.daytaskbottom small,.dayagendainfo>small,.dayduelist small,.dayempty p,.dayintro,.daypicker>label,.dayresultvalues small,.dayfootnote,.agendatype,.eyebrow,.navlabel,.footer,.technicalhero span,.technicalcheck summary,.technicalrecommendations summary,.ro-cal-head p,.ro-cal-week,.ro-cal-time small,.banner p,.formintro,.fieldnote,.sectionheading p,.contactnumber,.servicecurrenthint p,.documenttools .hint,.savehint,.professionalform input[readonly],.reportvisitdate,.mobilefieldlabel,.appointmentaddress):where(:not(.printsheet *)){color:var(--muted)}
html[data-theme=dark] .daybacklog{background:#332e21;border-color:#50462e}html[data-theme=dark] :is(.daybacklog h2,.daybacklog p,.backloglinks button,.backloglinks strong){color:#e0ca98}
html[data-theme=dark] :is(.badge,.badge.green,.badge.blue,.badge.gray){background:#30463a;color:#c8e2d0}html[data-theme=dark] :is(.badge.red,.badge.amber,.dueflag){background:#503e28;color:#f3d8a6}
html[data-theme=dark] :is(.error,.deletewarning){background:#492c28;color:#f1c8ba;border-color:#765043}html[data-theme=dark] :is(.deleteclientlink,.cashactions .ghost){color:#efb9a5!important}
html[data-theme=dark] .positivebalance{background:#253a2c}html[data-theme=dark] .negativebalance{background:#3b2c26}html[data-theme=dark] .cashsymbol{background:#483b2a;color:#e9cda7}html[data-theme=dark] .cashsymbol.income{background:#2b4734;color:#b8dcc1}html[data-theme=dark] .cashamount.income{color:#b8dcc1}
html[data-theme=dark] #toast{background:#abd1b9;color:#10291c}html[data-theme=dark] .printsheet{color-scheme:light;background:#fff;color:#213c35;--green:#193f35;--muted:#78847e;--line:#e1e6df;--lime:#d5ed9c}
@media print{html[data-theme=dark],html[data-theme=dark] body.printing,html[data-theme=dark] body.printing dialog{color-scheme:light;background:#fff;color:#213c35}}

.budgetpanel{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.budgetpanel>div{flex:1;max-width:550px;min-width:0}.budgetpanel h2{font-size:15px;margin-bottom:8px}.budgetpanel p{font-size:12px;line-height:1.7;margin:0 0 8px;color:var(--muted)}.budgetpanel small{font-size:12px;display:block;margin-top:8px}.budgetpanel progress{display:block;width:100%;height:8px;accent-color:#729d76;border:0;border-radius:8px;overflow:hidden;background:#dfe8d9}.budgetpanel progress::-webkit-progress-bar{background:#dfe8d9}.budgetpanel progress::-webkit-progress-value{background:#729d76}.budgetpanel button{min-height:44px;flex-shrink:0}@media(max-width:700px){.budgetpanel{align-items:flex-start;flex-direction:column;padding:18px}.budgetpanel>div{width:100%}}

html[data-theme=dark] .nav .count{background:#344f3c;color:#cce6d4}html[data-theme=dark] .mark{background:#365341;color:#d5ed9c}

html[data-theme=dark] .financemetrics .positivebalance{background:#253a2c}html[data-theme=dark] .financemetrics .negativebalance{background:#3b2c26}

.accountcompany{margin:0 0 22px}.accountcompanylink{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px 16px;text-align:left;background:#f1f6ef;border:1px solid var(--line);border-radius:11px}.accountcompanylink>span:first-child{min-width:0;overflow-wrap:anywhere}.accountcompanylink strong{display:block;font-size:15px;color:var(--green)}.accountcompanylink small{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--muted)}.accountcompanylink>span:last-child{font-size:25px;flex-shrink:0}html[data-theme=dark] .accountcompanylink{background:#21362c}
