/* Shared controls for the CRM and reporting shells. */
:root {
  --ui-paper: #f5f6f7;
  --ui-surface: #ffffff;
  --ui-ink: #242c32;
  --ui-muted: #55616a;
  --ui-line: #d9dfe2;
  --ui-edge: #78858e;
  --ui-subtle: #eef1f3;
  --ui-accent: #38586c;
  --ui-hover: #2a4658;
  --ui-down: #203847;
  --ui-on-accent: #ffffff;
  --ui-tint: #eaf0f3;
  --ui-focus: #145dac;
  --ui-success: #22583d;
  --ui-success-bg: #e9f3eb;
  --ui-wait: #694708;
  --ui-wait-bg: #f8efd9;
  --ui-error: #962d33;
  --ui-error-bg: #f9e9e8;
  --ui-control: 40px;
  --ui-font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html.dark {
  --ui-paper: #171c20;
  --ui-surface: #20272c;
  --ui-ink: #edf1f4;
  --ui-muted: #bdc7cf;
  --ui-line: #404b52;
  --ui-edge: #919fa8;
  --ui-subtle: #2c363e;
  --ui-accent: #a6c6db;
  --ui-hover: #bdd7e7;
  --ui-down: #d2e6f0;
  --ui-on-accent: #15232e;
  --ui-tint: #2c3a44;
  --ui-focus: #91c6ff;
  --ui-success: #a8e1bb;
  --ui-success-bg: #27392e;
  --ui-wait: #f0d28c;
  --ui-wait-bg: #3e3425;
  --ui-error: #ffb0b2;
  --ui-error-bg: #452b30;
}
@media (pointer: coarse), (max-width: 820px) {
  :root { --ui-control: 44px; }
}
.ui-header, .app .main-col > .topbar2 {
  background: var(--ui-surface);
  color: var(--ui-ink);
  border-bottom: 1px solid var(--ui-line);
  backdrop-filter: none;
}
.ui-button, .ui-tab, .ui-input {
  box-sizing: border-box;
  min-height: var(--ui-control);
  max-width: 100%;
  border: 1px solid var(--ui-edge);
  border-radius: 8px;
  background: var(--ui-surface);
  color: var(--ui-ink);
  font: 500 15px/1.35 var(--ui-font);
  padding: 8px 14px;
  box-shadow: none;
}
.ui-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; }
.ui-button svg { flex: none; width: 18px; height: 18px; }
.ui-button:hover, .ui-tab:hover { background: var(--ui-subtle); color: var(--ui-ink); }
.ui-button:active { background: var(--ui-tint); }
.ui-button.ui-primary { border-color: var(--ui-accent); background: var(--ui-accent); color: var(--ui-on-accent); }
.ui-button.ui-primary:hover { background: var(--ui-hover); }
.ui-button.ui-primary:active { background: var(--ui-down); }
.ui-input { min-width: 0; width: 100%; padding-inline: 12px; font-weight: 400; caret-color: var(--ui-accent); color-scheme: light; }
.dark .ui-input { color-scheme: dark; }
.ui-input[type="month"] { font-variant-numeric: tabular-nums; }
.ui-input:hover { border-color: var(--ui-ink); }
.ui-input::placeholder { color: var(--ui-muted); opacity: 1; }
.ui-input[aria-invalid="true"] { border: 2px solid var(--ui-error); }
.ui-link { color: var(--ui-accent); text-decoration: underline; text-underline-offset: .22em; }
.ui-link:hover { color: var(--ui-hover); text-decoration-thickness: 2px; }
.ui-link:active { color: var(--ui-down); }
.ui-tab { border-color: transparent; background: transparent; cursor: pointer; color: var(--ui-muted); }
.ui-tab[aria-selected="true"], .ui-tab[aria-pressed="true"] {
  color: var(--ui-ink); font-weight: 650; background: transparent;
  border: 0; border-bottom: 2px solid var(--ui-accent); border-radius: 0; text-decoration: none;
}
.ui-status, .topbar2 #savedState {
  display: inline-flex; width: fit-content; align-items: center; gap: 7px; margin: 0;
  padding: 4px 10px; border-radius: 6px; background: var(--ui-subtle); color: var(--ui-muted);
  font: 550 13px/1.45 var(--ui-font); font-variant-numeric: tabular-nums;
}
.ui-status::before, .topbar2 #savedState::before { content: ""; width: 6px; height: 6px; border-radius: 100%; background: currentColor; flex: none; }
.ui-status[data-state="success"], .topbar2 #savedState.good { color: var(--ui-success); background: var(--ui-success-bg); }
.ui-status[data-state="pending"] { color: var(--ui-wait); background: var(--ui-wait-bg); }
.ui-status[data-state="error"], .topbar2 #savedState.bad { color: var(--ui-error); background: var(--ui-error-bg); }
.ui-button:disabled, .ui-input:disabled, .ui-tab:disabled, .ui-button[aria-disabled="true"] {
  background: var(--ui-subtle); color: var(--ui-muted); border-color: var(--ui-line); opacity: 1; cursor: default;
}
.ui-input[type="month"]:focus-within,
:is(.ui-button,.ui-input,.ui-tab,.ui-link,.ui-scope :focus-visible):focus-visible {
  outline: 3px solid var(--ui-focus); outline-offset: 2px;
}
.ui-scope :focus-visible { scroll-margin-block: 8px; }
.ui-scope [hidden] { display: none !important; }
@media (forced-colors: active) {
  .ui-input[type="month"]:focus-within,
:is(.ui-button,.ui-input,.ui-tab,.ui-link,.ui-scope :focus-visible):focus-visible { outline-color: Highlight; }
  .ui-tab[aria-selected=true] { border-color: Highlight; }
}
/* The report shell keeps its existing navigation and editor layout. */
.staff-homebar.ui-header { padding: 12px; border-radius: 8px; }
:root{
  --practice-mast:#27323a;--practice-cover:#384e5b;--practice-cover-ink:#f8fafb;
  --ui-paper:#f5f6f7;--ui-edge:#77858e;--ui-control:42px;
}
html.dark{--practice-mast:#171e23;--practice-cover:#30434e;--ui-paper:#171c20;--ui-edge:#94a1aa}
.practice-crm,.practice-report{background:var(--ui-paper);color:var(--ui-ink);font-family:var(--ui-font)}
header.practice-mast{display:block;margin:0;padding:0;color:#f7f9fa;background:var(--practice-mast);border-bottom:1px solid #45535d}
.practice-bar{max-width:1440px;min-height:70px;margin:auto;padding:0 clamp(16px,4vw,64px);display:flex;align-items:center;gap:clamp(20px,4vw,62px)}
.practice-sign,.practice-mast nav,.practice-tools,.practice-tools a,.practice-tools button{display:flex;align-items:center}
.practice-sign{gap:10px;min-width:0;font:600 clamp(22px,2.35vw,27px)/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.04em}
.practice-icon{width:18px;height:18px;flex:none}.practice-sign svg{width:34px;height:34px;color:#eed293}
.practice-mast nav{align-self:stretch;gap:4px;margin:0;padding:0;border:0;background:transparent}
.practice-mast nav a{align-self:stretch;position:relative;display:grid;place-items:center;padding:0 16px;color:#d0d9df;font:500 15px var(--ui-font);text-decoration:none}
.practice-mast nav a[aria-current]{color:#fff;font-weight:650}
.practice-mast nav a[aria-current]:after{content:"";position:absolute;bottom:0;left:16px;right:16px;height:2px;background:#b7cbd7}
.practice-tools{margin-left:auto;gap:8px}
.practice-tools button,.practice-tools a{justify-content:center;gap:8px;color:#f7f9fa;border:1px solid #6d7c86;text-decoration:none;background:transparent;border-radius:8px;min-height:42px;padding:8px 12px;font:550 14px var(--ui-font);box-shadow:none;cursor:pointer}
.practice-tools button{width:42px;border-color:transparent}
.practice-mast :is(a,button):hover{background:#394750;color:white}
.practice-mast :focus-visible{outline:3px solid #c5e4f7!important;outline-offset:-4px!important}
.practice-tools .icon-sun,html.dark .practice-tools .icon-moon{display:none}
html.dark .practice-tools .icon-sun{display:block}
.practice-crm{--paper:var(--ui-paper);--card:var(--ui-surface);--ink:var(--ui-ink);--ink-soft:var(--ui-muted);--accent:var(--ui-accent)}
.practice-crm #rail>.brand{display:none}
.practice-crm #rail .nav-item.on{color:var(--ui-accent);background:var(--ui-tint)}
.practice-crm .ops-groups:has(.practice-owner){gap:18px}
.practice-owner{min-width:0}
.directory-title h1{font:600 clamp(30px,3.4vw,48px)/1.1 var(--ui-font);letter-spacing:-.04em;margin:8px 0 22px;color:var(--ui-ink)}
.team-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);align-items:start;gap:20px}
.team-layout:has(>.team-profile[hidden]){grid-template-columns:1fr}
.team-directory,.team-profile,.personal-ledger{min-width:0;border:1px solid var(--ui-line);border-radius:12px;background:var(--ui-surface);color:var(--ui-ink)}
.team-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}
.team-tools h2,.personal-ledger h3{font-size:20px;letter-spacing:-.025em;margin:0}
#staff-count{font-size:14px;color:var(--ui-muted)}
.team-search{position:relative;max-width:55%;width:220px}
.team-search svg{width:17px;height:17px;position:absolute;top:50%;left:12px;transform:translateY(-50%);fill:none;stroke:var(--ui-muted);stroke-width:1.8;pointer-events:none}
.team-search input{padding-left:38px}
.team-columns,.team-person{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(86px,.65fr) 12px;align-items:center;gap:10px;padding-inline:16px}
.team-columns{min-height:36px;background:var(--ui-paper);border-block:1px solid var(--ui-line);color:var(--ui-muted);font-size:13px}
#employees{padding:0;margin:0;list-style:none}
.team-directory #employees>li{display:block;padding:0;min-width:0;border:0}
.team-person{width:100%;text-align:left;min-height:62px;font:500 15px/1.4 var(--ui-font);border:0;border-bottom:1px solid var(--ui-line);border-radius:0;background:transparent;color:var(--ui-ink);cursor:pointer;box-shadow:none}
.team-person:hover{background:var(--ui-subtle)}.team-person[aria-pressed=true]{background:var(--ui-tint)}
.team-person:focus-visible{outline-offset:-4px!important}
#employees li:last-child>.team-person{border-bottom:0;border-radius:0 0 11px 11px}
.team-name{display:flex;align-items:center;gap:9px;font-weight:600;overflow-wrap:anywhere}
.team-avatar{display:grid;place-items:center;border-radius:50%;width:32px;height:32px;flex:none;background:var(--ui-subtle);color:var(--ui-muted);font-size:12px}
.team-person[aria-pressed=true] .team-avatar{background:var(--practice-cover);color:var(--practice-cover-ink)}
.team-role,.team-access,.team-note{font:400 14px/1.45 var(--ui-font);color:var(--ui-muted)}
.team-access{display:inline-flex;align-items:center;gap:6px;font-size:13px}
.team-access:before{content:"";width:7px;height:7px;border:1px solid currentColor;border-radius:50%;flex:none}
.team-access.open:before{background:var(--ui-success);border-color:var(--ui-success)}
.team-arrow{width:7px;height:7px;border:solid var(--ui-muted);border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
.team-cover{border-radius:11px 11px 0 0;background:var(--practice-cover);color:var(--practice-cover-ink);padding:22px}
.team-cover h2{font:400 clamp(24px,2.4vw,36px)/1.15 Georgia,serif;letter-spacing:-.03em;color:inherit}.team-cover p{color:#e3ebef;margin-top:5px}
.team-profile .owner-employee-tabs{padding:12px 16px;gap:3px;border-bottom:1px solid var(--ui-line)}
.team-profile .ui-tab{font-size:13px;padding:6px 8px;white-space:normal}
.team-fields{display:grid;gap:14px;padding:18px}
.team-fields:empty{display:none}
.team-field{display:grid;gap:5px;font-weight:580;color:var(--ui-ink);font-size:14px}
.team-fields>button{justify-self:start}
.team-fields>label:has([type=checkbox]){display:flex;gap:8px;align-items:center}
.team-fields input[type=checkbox]{width:18px;height:18px}
#profile-status:not(:empty){margin:0 18px 18px;color:var(--ui-ink)}
.practice-owner>details,.practice-owner>#issued{margin-top:14px}
.practice-owner summary,.ops-groups>details summary{cursor:pointer;font-weight:650}
.practice-owner details[open] summary,.ops-groups>details[open] summary{margin-bottom:12px}
.practice-report .top{--muted:var(--ui-muted);--ink:var(--ui-ink);--line:var(--ui-line);--page:var(--ui-paper);--surface:var(--ui-surface)}
.practice-report .top>.bar h1{color:var(--ui-ink);font-size:clamp(28px,3vw,42px);letter-spacing:-.035em}
.practice-report .top .tag{background:var(--ui-subtle);color:var(--ui-muted)}
.practice-report .staff-homebar{display:flex;align-items:flex-end;flex-direction:column;gap:6px;margin-bottom:8px}
.practice-report .staff-homebar:empty,.practice-report #signin,.practice-report[data-practice-owner=false] .staff-homebar{display:none!important}
/* Both levels of report navigation use the same baseline. */
.practice-report .workspace-nav{background:var(--ui-paper)}
.practice-report .editor .workspace-nav{background:var(--ui-surface)}
.practice-report .workspace-nav button,
.practice-crm .team-profile .owner-employee-tabs button{
  align-self:stretch; border:0; border-bottom:2px solid transparent;
  /* The report template rounds all buttons with !important, including navigation. */
  border-radius:0!important;
  padding-inline:6px; background:transparent; color:var(--ui-muted); box-shadow:none; text-decoration:none;
}
.practice-report .workspace-nav button[aria-selected=true],
.practice-crm .team-profile .owner-employee-tabs button[aria-pressed=true]{
  background:transparent; color:var(--ui-ink); border-bottom-color:var(--ui-accent); font-weight:650;
}
.practice-report .workspace-nav button:hover,
.practice-crm .team-profile .owner-employee-tabs button:hover{color:var(--ui-ink)}
.practice-report .workspace-nav button:focus-visible{outline:2px solid var(--ui-focus);outline-offset:-3px}
.practice-report #bonusSection:has(.personal-report),.practice-report .personal-report{color:var(--ui-ink);background:var(--ui-surface)}
.personal-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;margin-bottom:14px}
.practice-report .personal-heading h3{font:600 clamp(26px,3vw,40px)/1.12 var(--ui-font);letter-spacing:-.03em;margin:0}
.personal-heading p{margin:5px 0 0;color:var(--ui-muted)}
.personal-report .personal-total{padding:26px 14px;text-align:center;background:var(--practice-cover);color:var(--practice-cover-ink);border-radius:12px;margin:20px 0}
.personal-total span,.personal-total strong{display:block;text-align:center}
.personal-total strong{font:400 clamp(38px,5vw,64px)/1.2 Georgia,serif;letter-spacing:-.04em;overflow-wrap:anywhere;font-variant-numeric:lining-nums tabular-nums}
.personal-ledger h3,.personal-ledger>p{padding:16px}.personal-scroll{overflow-x:auto;max-width:100%}
.personal-ledger table{width:100%;border-collapse:collapse;table-layout:auto;margin:0;background:var(--ui-surface);color:var(--ui-ink);font-variant-numeric:tabular-nums}
.personal-ledger :is(td,th){font:400 14px/1.4 var(--ui-font);padding:12px;text-align:right;border:0;border-top:1px solid var(--ui-line);background:var(--ui-surface);color:var(--ui-ink)}
.personal-ledger th{background:var(--ui-paper);color:var(--ui-muted);font-weight:550}
.personal-ledger :is(td,th):first-child{text-align:left}
.personal-ledger td:last-child{font-weight:650}
.personal-report>.personal-ledger+p{color:var(--ui-muted);margin:14px 0 0}
html.dark .practice-report .top>.editor:not(:has(.personal-report)),html.dark .practice-report #bonusSection{color:#242c32}
@media(max-width:1150px){.team-avatar{display:none}.team-layout{gap:12px;grid-template-columns:minmax(0,1.55fr) minmax(240px,1fr)}}
@media(max-width:740px){
  :root{--ui-control:44px}
  .practice-bar{gap:4px 14px;flex-wrap:wrap;padding-block:9px 0}.practice-sign{font-size:25px}
  .practice-tools{gap:3px}.practice-mast nav{width:100%;order:3;min-height:44px}.practice-mast nav a:first-child{padding-left:2px}.practice-mast nav a:first-child:after{left:2px}
  .team-layout{display:block}.team-columns{display:none}.team-profile{margin:6px 8px 12px}
  .team-profile .team-cover{display:none}.team-person{grid-template-columns:minmax(0,1fr) auto 12px;grid-template-rows:auto auto;gap:0 8px;padding:12px}
  .team-name,.team-role{grid-column:1}.team-role{grid-row:2}.team-access,.team-arrow{grid-row:1/3}.team-access{grid-column:2}.team-arrow{grid-column:3}
  .team-tools{padding:12px}.team-tools h2{font-size:17px}.team-search input{font-size:16px}
  .practice-report .personal-ledger :is(table,tbody,tr){display:block;width:100%;min-width:0}
  .personal-ledger thead{display:none}.personal-ledger tr{padding:12px;border-top:1px solid var(--ui-line)}
  .personal-ledger td{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border:0}
  .personal-ledger td:first-child{font-weight:650;margin-bottom:5px}.personal-ledger td:not(:first-child):before{content:attr(data-label);color:var(--ui-muted);text-align:left}
}
.practice-crm .rail button.nav-item{width:100%;text-align:left;font-family:var(--ui-font);cursor:pointer}
.practice-crm .rail .ic.practice-icon{width:18px;height:18px}
.practice-crm .rail .nav-item:focus-visible{outline:3px solid var(--ui-focus);outline-offset:-3px}
.owner-report{max-width:1240px;margin:0 auto;padding:28px clamp(16px,4vw,54px);font:15px/1.5 var(--ui-font)}
.owner-report>.team-field{max-width:230px;margin:20px 0}
.owner-report .personal-heading{margin-top:18px}.owner-report .personal-heading h3{margin:0}
.owner-report .personal-ledger>h3{margin:0}
body.practice-report{margin:0}.team-report-link{font-weight:600;justify-self:start}

@media(max-width:740px){
  .practice-sign{font-size:clamp(20px,4.8vw,25px);flex:1 1 0;letter-spacing:-.025em}
  .practice-sign svg{width:29px;height:29px}
  .practice-sign span{min-width:0;text-wrap:balance}
  .practice-tools{flex:none}
}
@media(max-width:380px){
  .practice-bar{padding-inline:12px;column-gap:8px}
  .practice-sign{gap:6px}.practice-tools button{width:34px}
  .practice-tools a{padding-inline:8px}
}
.bonus-month{min-width:0;color:var(--ui-ink)}
.bonus-month>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;font-weight:400}
.bonus-month>summary::-webkit-details-marker{display:none}
.bonus-month>summary svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bonus-month-panel{margin-top:8px;padding:12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-surface)}
.bonus-month-grid{margin-top:10px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(72px,100%),1fr));gap:4px}
.bonus-month-grid button{min-width:0;min-height:42px;padding:5px 2px;border:1px solid transparent;border-radius:6px;font:500 13px/1.25 var(--ui-font);color:var(--ui-ink);background:transparent;cursor:pointer}
.bonus-month-grid button:hover:not(:disabled){background:var(--ui-subtle)}
.bonus-month-grid button[aria-pressed=true]{color:var(--ui-accent);border-color:currentColor;font-weight:650}
.bonus-month-grid button:disabled{color:var(--ui-muted);text-decoration:line-through;cursor:default}
@media(pointer:coarse){.bonus-month-grid button{min-height:44px}}
@media(max-width:480px){
  .practice-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;padding-inline:12px}
  .practice-sign{grid-column:1/-1;font-size:23px;min-height:34px}
  .practice-mast nav{grid-column:1;grid-row:2;order:initial;width:auto;gap:0}
  .practice-mast nav a{padding-inline:6px;font-size:14px}
  .practice-mast nav a[aria-current]:after{left:6px;right:6px}
  .practice-tools{grid-column:2;grid-row:2;gap:2px;margin:0 0 5px}
  .practice-tools button{width:32px}.practice-tools a{padding-inline:7px;font-size:13px}
}

/* Shared masthead, current section and period controls. */
.ops-login .brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:var(--ui-ink)}
.ops-login .brand .icon-brand,.rail .brand .icon-brand{width:34px;height:34px;flex:none;color:var(--ui-accent)}
.ops-login .brand-name{font:600 24px/1.1 Georgia,"Times New Roman",serif;letter-spacing:-.035em}
.practice-mast .practice-bar{box-sizing:border-box;max-width:none;min-height:64px;padding-inline:clamp(16px,3vw,48px)}
.practice-mast .practice-sign{letter-spacing:-.035em}
.practice-mast .practice-tools :is(button,a){min-height:44px}
.practice-mast .practice-tools button{width:44px}
.practice-mast nav a,.practice-mast nav a:is(:hover,[aria-current]){text-decoration:none;border:0;box-shadow:none}
.practice-mast nav a[aria-current]::after{bottom:8px;height:2px;background:#bdd1dd}
.practice-crm .app .main-col>.topbar2{position:static;background:var(--ui-surface);border-bottom:1px solid var(--ui-line);box-shadow:none;backdrop-filter:none}
.practice-crm .fin-month-nav{align-items:end;justify-content:start;gap:8px}
.practice-crm .fin-month-nav>button{min-height:44px;min-width:40px}
.practice-report .top>.controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:14px 0;border:0;border-block:1px solid var(--ui-line);border-radius:0;background:var(--ui-paper)}
:is(.practice-crm,.practice-report) label.period-field{display:grid;gap:4px;min-width:0;color:var(--ui-muted);font:550 13px/1.4 var(--ui-font)}
:is(.practice-crm,.practice-report) .period-field select,
.practice-report :is(.mobile-nav-select,#bonusSection label,.owner-report label) select,
.practice-crm .v20-registry-filters>select{
  box-sizing:border-box;appearance:none;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;
  padding:0 34px 0 12px;border:1px solid var(--ui-edge);border-radius:8px!important;
  color:var(--ui-ink);-webkit-text-fill-color:var(--ui-ink);background-color:var(--ui-surface);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%2355616a' stroke-width='1.6'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 11px center;box-shadow:none;font:500 15px/1.4 var(--ui-font)
}
html.dark :is(.practice-crm,.practice-report) select:is(.fin-sel,#period,#year,#employee-period,.v20-registry-filters>select,.mobile-nav-select select,#bonusSection label select){
  color-scheme:dark;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%23bdc7cf' stroke-width='1.6'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E")
}
.practice-report .workspace-nav,.practice-crm #v20RegModes,.practice-crm .team-profile .owner-employee-tabs{gap:4px;border:0;border-bottom:1px solid var(--ui-line);border-radius:0;padding:0;background:transparent;box-shadow:none}
.practice-report .workspace-nav button,.practice-crm #v20RegModes button,.practice-crm .team-profile .owner-employee-tabs button{
  min-height:44px;padding:8px 12px;border:0;border-bottom:2px solid transparent;border-radius:0!important;
  background:transparent;box-shadow:none;color:var(--ui-muted);text-decoration:none!important;font:550 15px/1.35 var(--ui-font)
}
.practice-report .workspace-nav button[aria-selected=true],.practice-crm #v20RegModes button.on,.practice-crm .team-profile .owner-employee-tabs button[aria-pressed=true]{
  background:transparent;color:var(--ui-ink);border-bottom:2px solid var(--ui-accent);box-shadow:none
}
.practice-report .mobile-nav-select{color:var(--ui-muted)}
:is(.practice-crm,.practice-report) :is(.period-field select,.v20-registry-filters>select,.mobile-nav-select select,.fin-month-nav button,.workspace-nav button,#v20RegModes button,.team-profile .owner-employee-tabs button):focus-visible,.ops-login .brand:focus-visible{
  outline:3px solid var(--ui-focus);outline-offset:-3px
}
@media(max-width:540px){
  .practice-crm .fin-month-nav{display:grid;grid-template-columns:40px minmax(64px,auto) minmax(0,1fr) 40px;width:100%;gap:4px}
  .practice-crm .fin-month-nav select{width:100%;padding-left:8px;padding-right:23px;background-position:right 5px center;font-size:16px}
  .practice-report .period-field select{font-size:16px}
  .practice-report .controls .spacer{display:none}
  .practice-mast nav a[aria-current]::after{bottom:1px}
}
@media(forced-colors:active){:is(.practice-crm,.practice-report) select{appearance:auto;background-image:none!important}}
.practice-report .top>.bar{align-items:center;gap:12px 20px;flex-wrap:wrap}
.practice-report .top>.bar>div:first-child{flex:1 1 16rem}
.practice-report .top>.bar .staff-homebar{margin:0}
.practice-report .staff-homebar>.ui-link{color:var(--ui-accent);font:550 14px/1.5 var(--ui-font)}
.practice-report .bar .sub{color:var(--ui-muted)}
:is(.practice-crm,.practice-report) .period-field select{transition:none}
@media(max-width:640px){
  .practice-report .top>.bar .staff-homebar{flex:1 1 100%;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}
}

/* Owner directory and employee profile */
.practice-owner .directory-title{display:flex;justify-content:space-between;align-items:center;gap:12px 24px;flex-wrap:wrap;margin-bottom:20px}
.practice-owner .directory-title h1{margin:0}
.team-directory .add-person{border-top:1px solid var(--ui-line);padding:10px 16px}
.team-directory .add-person>summary,.owner-services>summary,.team-fields .bonus-history>summary{cursor:pointer;color:var(--ui-accent);font-weight:600}
.team-directory .add-person>form{padding:8px 0;max-width:30rem}
.practice-crm .team-person .team-access{line-height:1.35;overflow-wrap:anywhere}
.team-profile #issued{margin:0 16px 16px;padding:12px;border:1px solid var(--ui-line);border-radius:8px;background:var(--ui-tint);color:var(--ui-ink)}
.team-profile #issued .ops-code{overflow-wrap:anywhere;white-space:normal;color:var(--ui-ink);background:var(--ui-surface)}
.team-profile .module-permission{min-height:44px;background:var(--ui-subtle);border-radius:6px;padding:8px 12px;cursor:pointer}
.team-fields .bonus-history ul{margin:8px 0 0;padding-inline-start:20px;color:var(--ui-muted)}
.owner-services{border-top:1px solid var(--ui-line);padding:16px 0}
.owner-services>summary{min-height:36px}
.owner-services[open]>.ops-group,.owner-services[open]>details{margin:14px 0}
.practice-crm .team-profile .owner-employee-tabs{display:flex;flex-wrap:wrap;gap:0;padding-inline:8px}
.practice-crm .team-profile .owner-employee-tabs button{padding-inline:8px;font-size:14px}
@media(min-width:741px){
 .practice-owner .team-columns,.practice-owner .team-person{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr) 10px}
}
@media(max-width:740px){
 .practice-owner .team-person{grid-template-columns:minmax(0,1fr) minmax(82px,34%) 10px}
 .team-person .team-access{justify-self:start}
}
