/* ADB Nexus
   Porcelain and slate, set in Urbanist (the O&A Team Access typeface).
   The one flourish: anything a person wrote by hand on the paper forms (initials, signatures) is shown
   in a ballpoint-blue hand (.hand). The accent and "done" colors follow the picked office's brand. */

:root {
  /* colours from O&A Team Access */
  --porcelain: #f6f7f8;  /* page */
  --surface: #ffffff;
  --sunken: #f0f2f3;
  --ink: #1f2428;
  --steel: #68737b;
  --rule: #e1e4e6;
  --rule-soft: #eceef0;
  --accent: #1a5f70;     /* links and brand-coloured text */
  --head-ink: #0b3d47;   /* headings */
  --fill: #1fb3c2;       /* O&A teal: primary buttons, current tab and menu item */
  --fill-hover: #0f6f7a;
  --fill-soft: #e6f6f8;
  --done: #1c9e95;       /* O&A teal */
  --pen: #1f4fa8;        /* ballpoint */
  /* aliases for Doctor Tools, which defines its own variables with these names */
  --nx-accent: var(--accent); --nx-fill: var(--fill); --nx-ink: var(--ink); --nx-surface: var(--surface);
  --warn: #8a5d0b;
  --warn-soft: #fbf1d9;
  --bad: #b23a26;
  --bad-soft: #fbe7e2;

  --f-ui: Urbanist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  /* type scale: 1.2 ratio from 16px */
  --t-sm: .833rem;
  --t-base: 1rem;
  --t-md: 1.1rem;
  --t-lg: 1.3rem;
  --t-xl: 1.5rem;

  --r-sm: 6px;
  --r-md: 10px;
  --rail: 232px;
  --top: 60px;

  color-scheme: light;
  font: 500 14px/1.4 var(--f-ui);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--porcelain); }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: var(--t-xl); font-weight: 800; letter-spacing: -.01em; color: var(--head-ink); }
h2 { font-size: var(--t-md); font-weight: 800; color: var(--head-ink); }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--steel); }
:focus-visible { outline: 3px solid #ffb703; outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.boot, .loading { color: var(--steel); padding: 2rem; }

/* Nexus components stop at Doctor Tools (.dt), which brings its own styles for the same class names. */
@scope (:root) to (.dt, .ta, .tech) {

/* ---------- wordmark ---------- */
.wordmark { white-space: nowrap; font-weight: 800; font-size: 2.6rem; letter-spacing: -.01em; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark::after { content: ""; display: inline-block; width: .22em; height: .22em; margin-left: .06em; border-radius: 50%; background: var(--done); vertical-align: baseline; }
.wordmark-sm { font-size: 1.45rem; }

/* ---------- sign-in gate ---------- */
.gate { min-height: 100vh; display: grid; place-content: center; gap: 1rem; padding: 1.5rem; }
.gate-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 2.25rem 2rem; display: grid; gap: .9rem; }
.gate-org { color: var(--steel); margin-top: -.4rem; }
.gate-lead { font-size: var(--t-md); line-height: 1.4; margin: .6rem 0 .4rem; }
.gate-note { background: var(--warn-soft); color: var(--warn); padding: .7rem .85rem; border-radius: var(--r-sm); }
.gate-dev { border-top: 1px dashed var(--rule); padding-top: 1rem; display: grid; gap: .4rem; }
.gate .version { text-align: center; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; grid-template-rows: var(--top) 1fr; min-height: 100vh; }
.top { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: 0 1.1rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.top-gap { flex: 1; }
.top .menu-btn { display: inline-grid; width: 46px; height: 46px; font-size: 30px; line-height: 1; margin-left: -8px; }
.brand-link { display: flex; }
.brand-logo { height: 34px; width: auto; display: block; }
.conn { position: relative; display: inline-flex; align-items: center; padding: 8px; margin-left: -12px; cursor: help; outline: none; }
.conn-light { width: 10px; height: 10px; border-radius: 50%; background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); flex: none; }
.conn-light.off { background: #d43c2f; box-shadow: 0 0 0 3px rgba(212, 60, 47, .18); }
.conn:focus-visible .conn-light { outline: 2px solid var(--fill); outline-offset: 3px; }
/* hover (or tap) the light: connection, who's signed in and their role */
.conn-tip { display: none; position: absolute; left: -8px; top: calc(100% + 2px); z-index: 45; min-width: 260px; max-width: 340px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .7rem .8rem; gap: .3rem;
  box-shadow: 0 10px 30px -12px rgba(24, 40, 47, .35); cursor: default; line-height: 1.3; }
.conn:hover .conn-tip, .conn:focus-within .conn-tip { display: grid; }
.conn-status { font: 700 12px/1.2 var(--f-ui); color: #16794a; display: flex; align-items: center; gap: .4rem; }
.conn-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.conn-status.off { color: #b4302a; }
.conn-name { font-weight: 700; color: var(--ink); margin-top: .2rem; }
.conn-email { color: var(--steel); font-size: var(--t-sm); overflow-wrap: anywhere; }
.conn-proj { color: var(--steel); font-size: 12px; }
/* phones: Sign out sits at the foot of the ☰ menu, since the settings bar is hidden there */
.rail .rail-signout { display: none; margin-top: 1.2rem; border: 0; background: none; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
.conn-tip .chip { margin-top: .1rem; }
.top-version { font: 700 11.5px/1 var(--f-ui); padding: 5px 9px; border-radius: 999px; background: #dff1ec; color: #0f5f55; white-space: nowrap; }
.rail-closed .shell { grid-template-columns: 1fr; }
.rail-closed .rail { display: none; }
/* icons only: a narrow menu; hover a picture for its name. Pages without an icon show their initials. */
.rail-ab { display: none; }
@media (min-width: 861px) {
  .rail-icons .shell { grid-template-columns: 64px 1fr; }
  .rail-icons .rail { padding: .7rem .4rem 1.2rem; align-items: stretch; }
  .rail-icons .rail .rail-tx, .rail-icons .rail .rail-chev, .rail-icons .rail .viewer, .rail-icons .rail .rail-signout { display: none; }
  .rail-icons .rail-group { margin-top: .5rem; }
  .rail-icons .rail-group.shut .rail-links { display: grid; }
  .rail-icons .rail-head { justify-content: center; padding: .3rem 0 .2rem; min-height: 6px; pointer-events: none; }
  .rail-icons .rail-link { display: flex; justify-content: center; align-items: center; padding: .4rem 0; position: relative; }
  .rail-icons .rail .rail-ic { width: 22px; height: 22px; }
  .rail-icons .rail-home img, .rail-icons .rail-home svg { margin: 0; }
  .rail-icons .rail-ab { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font: 800 10.5px/1 var(--f-ui);
    letter-spacing: .02em; color: #fff; background: var(--c, var(--g, var(--steel))); }
  .rail-icons .rail-badge { position: absolute; top: 0; right: 4px; }
}

.office-pick select { font: 700 var(--t-sm)/1 var(--f-ui); color: var(--ink); background: var(--sunken); border: 1px solid transparent;
  border-radius: var(--r-sm); padding: .45rem 2rem .45rem .7rem; max-width: 46vw; }
.office-pick select:hover { border-color: var(--rule); }

/* Region / Group / Office viewer */
.viewer { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.viewer-rail { display: none; }
.viewer-label { font: 700 var(--t-sm)/1 var(--f-ui); color: var(--steel); white-space: nowrap; }
.viewer .office-pick select { height: 36px; }
.vmode { height: 36px; box-sizing: border-box; }
.vmode { display: inline-flex; background: var(--sunken); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.vmode button { font: 700 var(--t-sm)/1 var(--f-ui); color: var(--steel); background: transparent; border: 0; border-radius: calc(var(--r-sm) - 2px);
  padding: .5rem .7rem; cursor: pointer; }
.vmode button:hover { color: var(--ink); }
.vmode button[aria-pressed="true"] { background: var(--surface); color: var(--head-ink); box-shadow: 0 1px 2px rgba(24, 40, 47, .18); }
/* the office drop-down shows in Region and Group views too (Reconciliation included) */

/* Settings, top right: gear, links, sign out (same look as O&A Team Access) */
.setmenu { position: relative; flex: none; display: flex; align-items: center; gap: .1rem; align-self: stretch; margin-left: .4rem; }
.setmenu .set-links { display: flex; align-items: center; gap: .1rem; }
.setmenu .gear { display: inline-flex; align-items: center; color: #4b5563; padding: 0 4px 2px 6px; border: 0; background: none; cursor: default; }
.setmenu .gear svg { width: 17px; height: 17px; }
.setmenu a { font: 600 14px/1.45 var(--f-ui); white-space: nowrap; text-decoration: none; color: #4b5563; padding: .3rem .45rem .4rem;
  border-radius: 6px; }
.setmenu a:hover { background: #f1f2f4; }
.setmenu a.on { background: #e7e9ec; color: var(--ink); box-shadow: none; font-weight: 700; }
.setmenu .icon-link { display: inline-flex; align-items: center; padding: .3rem .5rem; border: 0; background: none; color: #4b5563; cursor: pointer; border-radius: 6px; }
.setmenu .icon-link:hover { background: #f1f2f4; color: var(--ink); }
.setmenu .icon-link svg { width: 18px; height: 18px; }
/* the gear opens Site Settings; ▾ beside it opens the other settings links when there isn't room for them */
.setmenu a.gear-link { display: inline-flex; align-items: center; cursor: pointer; padding: .35rem .45rem; border-radius: 6px; }
.setmenu a.gear-link:hover { background: #f1f2f4; color: var(--ink); }
.setmenu .gear-link + .gear-more { display: none; }
/* side menu: icons and colours from Site Settings */
.rail-hl { display: inline-flex; align-items: center; gap: .4rem; }
.rail-head .rail-ic { width: 14px; height: 14px; }
.rail-ic { width: 18px; height: 18px; object-fit: contain; flex: none; display: block; }
.rail-link.has-ic { display: flex; align-items: center; gap: .5rem; }
.rail-link.has-c { color: var(--c); }
.rail-link.has-c.on { color: color-mix(in srgb, var(--c) 85%, #000); }
/* the settings pages live up here, so the side menu leaves them out (except on phones) */
.rail .rg-settings { display: none; }
.me summary { white-space: nowrap; }
/* not enough room for everything: the gear opens the settings links as a small menu */
@media (max-width: 1440px) {   /* (wider than before: the view pickers and feature search share the bar) */
  .setmenu .gear { cursor: pointer; padding: .35rem .45rem; border-radius: 6px; }
  .setmenu .gear-link + .gear-more { display: inline-flex; padding: .35rem .35rem; font-size: 12px; }
  .setmenu .gear:hover, .setmenu.open .gear { background: #f1f2f4; color: var(--ink); }
  .setmenu .set-links { display: none; position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; flex-direction: column; align-items: stretch;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .4rem; min-width: 180px; box-shadow: 0 10px 30px -12px rgba(24, 40, 47, .35); }
  .setmenu.open .set-links { display: flex; }
  .setmenu .set-links a { border-radius: 6px; border-bottom: 0; padding: .45rem .6rem; }
  .setmenu .set-links a.on { box-shadow: inset 3px 0 0 #6b7280; }
}
.me { position: relative; }
.me { margin-left: .4rem; padding-left: 1rem; border-left: 1px solid var(--rule); }
.me summary { list-style: none; cursor: pointer; display: block; text-align: left; line-height: 1.15; }
.me summary::-webkit-details-marker { display: none; }
/* the signed-in person: a chip in their role's colour */
.me-chip { display: inline-grid; padding: .28rem .8rem .3rem .7rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--rc) 40%, #fff);
  background: color-mix(in srgb, var(--rc) 12%, #fff); box-shadow: inset 4px 0 0 var(--rc); }
.me summary:hover .me-chip { background: color-mix(in srgb, var(--rc) 20%, #fff); }
.me-name { font-weight: 700; color: var(--ink); }
.me-init { display: none; }
.me-role { font-size: 12px; font-weight: 700; color: color-mix(in srgb, var(--rc) 80%, #000); }
/* coloured badges (roles) */
.chip { display: inline-flex; align-items: center; gap: .35rem; font: 700 12px/1.2 var(--f-ui); padding: .18rem .6rem; border-radius: 999px; white-space: nowrap;
  color: color-mix(in srgb, var(--rc) 82%, #000); background: color-mix(in srgb, var(--rc) 13%, #fff); border: 1px solid color-mix(in srgb, var(--rc) 35%, #fff); vertical-align: 1px; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); flex: none; }
/* drop-downs whose options have colours show the picked one's colour on the left edge */
select.tinted { box-shadow: inset 4px 0 0 var(--rc); padding-left: .8rem; }
select.tinted option { font-weight: 600; }
.field:has([data-rolecolor]) { grid-column: 1 / -1; }
[data-rolecolor] { width: 48px; height: 30px; }
.swatches { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--rule); cursor: pointer; padding: 0; }
.swatch:hover { transform: scale(1.12); }
.me-menu { position: absolute; left: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: .8rem; display: grid; gap: .6rem; min-width: 300px; box-shadow: 0 10px 30px -12px rgba(24, 40, 47, .35); }
.me-email { color: var(--steel); font-size: var(--t-sm); overflow-wrap: anywhere; }

.rail { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; padding: 1.1rem .75rem 1.5rem;
  border-right: 1px solid var(--rule); background: var(--porcelain); display: flex; flex-direction: column; gap: .2rem; }
.rail-group { margin-top: 1.1rem; display: grid; gap: .1rem; }
.rail-head { font: 800 11px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--g, var(--steel));
  padding: .55rem .65rem .45rem; border: 0; border-top: 2px solid var(--g, var(--rule)); background: none; width: 100%;
  display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; }
.rail-head:hover { background: color-mix(in srgb, var(--g, var(--steel)) 8%, transparent); }
.rail-chev { font-size: 13px; letter-spacing: 0; transition: transform .15s ease; }
.rail-links { display: grid; gap: .1rem; }
.rail .rail-home { display: flex; align-items: center; gap: .5rem; line-height: 1; }
.rail-home img { width: 24px; height: 24px; flex: none; display: block; object-fit: contain; }
.rail-group.shut .rail-links { display: none; }
.rail-group.shut .rail-chev { transform: rotate(-90deg); }
/* each menu group has its own colour (the same ones Doctor Tools used for its groups) */
.rg-practice { --g: #0f766e; }
.rg-team { --g: #0e8f9c; }
.rg-numbers { --g: #b45309; }
.rg-tech { --g: #4f46e5; }
.rg-accounting { --g: #15803d; }
.rg-psg { --g: #7c3aed; }
.rg-recruiting { --g: #be185d; }
.rg-settings { --g: #4b5563; }
.rail-link { display: block; font-weight: 600; padding: .45rem .65rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.rail-link:hover { background: var(--sunken); }
/* the current page takes its menu group's colour (Home, outside any group, keeps the teal) */
.rail-link.on { background: color-mix(in srgb, var(--g, var(--fill)) 12%, #fff); box-shadow: inset 3px 0 0 var(--g, var(--fill)); color: color-mix(in srgb, var(--g, var(--head-ink)) 85%, #000); font-weight: 700; }
.rail .version { margin-top: auto; padding: 1rem .65rem 0; }
.version { color: var(--steel); font-size: var(--t-sm); }

.page { padding: 1.1rem clamp(.8rem, 2vw, 1.6rem) 3rem; width: 100%; min-width: 0; outline: none; }
.shell > * { min-width: 0; }
.paper { overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .setmenu { display: none; }
  .rail .rg-settings { display: grid; }
  .rail .rail-signout { display: block; }
  .shell { grid-template-columns: 1fr; }
  .rail-closed .rail { display: flex; }
  .rail { position: fixed; top: var(--top); left: 0; bottom: 0; width: min(300px, 86vw); height: auto; z-index: 30;
    background: var(--surface); box-shadow: 10px 0 40px -20px rgba(24, 40, 47, .5); transform: translateX(-105%); transition: transform .2s ease; }
  .menu-open .rail { transform: none; }
  .top-version, .me-role, .me-name { display: none; }
  .brand-logo { height: 26px; }
  .me { margin-left: 0; padding-left: 0; border-left: 0; }
  .me-menu { left: auto; right: -4rem; }
  .office-pick { min-width: 0; }
  .viewer-top .vmode, .viewer-top .scope-pick, .viewer-top .viewer-label { display: none; }
  .page-multi .viewer-top .scope-pick { display: block; }
  .viewer-rail { display: grid; gap: .5rem; padding: 0 .25rem 1rem; margin-bottom: .5rem; border-bottom: 1px solid var(--rule); }
  .viewer-rail .vmode { display: flex; }
  .viewer-rail .vmode button { flex: 1; }
  .viewer-rail .office-pick select { width: 100%; max-width: none; }
  .viewer-rail .office-pick:not(.scope-pick) { display: none; }
  .office-pick select { max-width: 100%; }
  .me-chip { display: none; }
  .me-init { display: grid; place-content: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--rc) 16%, #fff); color: color-mix(in srgb, var(--rc) 80%, #000); box-shadow: inset 0 0 0 2px var(--rc); font-weight: 700; }
  .me summary { padding: 0; }
  .top { gap: .6rem; padding: 0 .6rem; }
  .conn { position: static; }
  .conn-tip { left: .6rem; right: .6rem; max-width: none; min-width: 0; top: 100%; }
}
@media (max-width: 480px) {
  .top .wordmark { display: none; }
}

/* ---------- page parts ---------- */
.page-head { margin-bottom: .9rem; display: grid; gap: .15rem; }
.page-head + .block { margin-top: 0; }
.block + .page-head { margin-top: 2.5rem; }
.sub { color: var(--steel); max-width: 70ch; }
/* the line under a page title runs the width of the page (buttons stay at the right) */
.page-head .sub { max-width: none; }
.page-head.row-between > div:first-child { flex: 1 1 auto; min-width: 0; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.block { margin-top: 1.1rem; }
.block > h2 { margin-bottom: .7rem; }
.empty { max-width: 60ch; display: grid; gap: .8rem; padding: 2rem 0; }
.empty-row { color: var(--steel); padding: 1rem 0; }

/* home */
.launch { margin-top: 2rem; }
.launch h2 { font-size: var(--t-base); color: var(--steel); font-weight: 600; margin-bottom: .5rem; }
.launch-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.launch-list li { border-bottom: 1px solid var(--rule); }
.launch-list a { display: grid; grid-template-columns: minmax(180px, 280px) 1fr auto; gap: 1rem; align-items: baseline; padding: .55rem .4rem; text-decoration: none; color: var(--ink); }
.launch-list a:hover { background: var(--surface); }
.launch-name { font-weight: 700; font-size: var(--t-md); }
.launch-blurb { color: var(--steel); }
@media (max-width: 600px) { .launch-list a { grid-template-columns: 1fr auto; } .launch-blurb { grid-column: 1; } }

/* ---------- controls ---------- */
.btn { font: 700 13.5px/1 var(--f-ui); padding: .5rem .85rem; border-radius: var(--r-sm); border: 1px solid var(--rule);
  background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.btn:hover { background: var(--sunken); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--fill); border-color: var(--fill); color: #fff; }
.btn-primary:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, var(--rule)); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-quiet { border-color: transparent; background: transparent; color: var(--accent); padding: .35rem .5rem; }
.btn-quiet:hover { background: var(--sunken); }
.btn-lg { padding: .7rem 1.1rem; font-size: 15px; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-content: center; border: 0; background: transparent; border-radius: var(--r-sm);
  font-size: 1.15rem; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--sunken); }

input, select, textarea { font: inherit; color: inherit; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) {
  width: 100%; padding: .35rem .6rem; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); min-height: 34px; }
:where(input[readonly]) { background: var(--sunken); color: var(--steel); }
input[type=color] { width: 64px; height: 40px; padding: 2px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }

.field { display: grid; gap: .2rem; margin-bottom: .65rem; }
.field-label { font-weight: 700; font-size: 13px; }
.field-hint { color: var(--steel); font-size: var(--t-sm); }
.fieldset { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: .35rem .75rem .5rem; margin: 0 0 .65rem; }
.fieldset legend { font-weight: 700; padding: 0 .3rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 0 .8rem; }
.check { display: flex; gap: .45rem; align-items: center; padding: .15rem 0; cursor: pointer; }
.check-strong { font-weight: 700; }
.ed-all { flex-wrap: wrap; gap: .2rem .55rem; padding-bottom: .5rem; margin-bottom: .4rem; border-bottom: 1px solid var(--rule-soft); }
.ed-all .field-hint { font-weight: 500; flex-basis: 100%; padding-left: calc(18px + .55rem); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 .8rem; }

.toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .7rem; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }
.count { color: var(--steel); margin-left: auto; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.table th { text-align: left; font-weight: 800; color: var(--steel); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: .45rem .7rem; border-bottom: 1px solid var(--rule); background: var(--surface); }
.table td { padding: .4rem .7rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
/* lists split into several tables (one per role) keep their columns lined up */
.table-fixed { table-layout: fixed; }
.table-fixed td { overflow-wrap: anywhere; }
@media (max-width: 700px) { .table-fixed { table-layout: auto; } .table-fixed colgroup { display: none; } }
.cell-main { font-weight: 700; display: block; }
/* as a table cell it must stay a cell, or its row's borders don't line up */
td.cell-main { display: table-cell; }
.cell-sub { color: var(--steel); font-size: var(--t-sm); display: grid; gap: .1rem; }
.cell-wrap { max-width: 34ch; }
.cell-act { text-align: right; width: 1%; white-space: nowrap; }
.num { font-weight: 700; white-space: nowrap; }
.row-off td { color: var(--steel); }
.table-scroll { overflow-x: auto; border-radius: var(--r-md); }
@media (max-width: 700px) {
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: 1fr auto; padding: .45rem 0; border-bottom: 1px solid var(--rule-soft); }
  .table td { grid-column: 1; border: 0; padding: .15rem .8rem; max-width: none; }
  .table td.cell-act { grid-column: 2; grid-row: 1; align-self: start; }
}

/* roles grid: one column per page, rotated headings */
.table-grid { min-width: 980px; }
.table-grid td.lvl { text-align: center; font-size: var(--t-sm); font-weight: 700; }
.lvl-edit { color: var(--done); background: color-mix(in srgb, var(--done) 10%, transparent); }
.lvl-view { color: var(--accent); }
.table-grid td.lvl { padding: 0; }
.lvl-btn { width: 100%; min-height: 34px; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.lvl-btn:hover { background: var(--fill-soft); outline: 1px solid color-mix(in srgb, var(--fill) 50%, transparent); }
.lvl-none .lvl-btn { color: var(--rule); }
.th-rot { height: 150px; vertical-align: bottom; text-align: center !important; }
.th-rot span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
/* Roles grid: columns grouped and coloured like the side menu */
.table-grid .grp-row th { padding: .35rem .4rem .3rem; border-bottom: 0; }
.table-grid .grp-head { font: 800 10.5px/1.1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; text-align: center !important;
  color: var(--g); background: color-mix(in srgb, var(--g) 10%, #fff); border-top: 3px solid var(--g); border-left: 2px solid #fff; }
.table-grid .th-rot[class*="rg-"] { color: var(--g); background: color-mix(in srgb, var(--g) 6%, #fff); }
.table-grid .grp-first { border-left: 2px solid color-mix(in srgb, var(--g) 45%, #fff); }

.perm-table .perm-grp td { font: 800 11px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--g);
  background: color-mix(in srgb, var(--g) 9%, #fff); border-top: 2px solid var(--g); padding: .5rem .7rem; }
.perm-table td { vertical-align: middle; }
.perm-table select { min-width: 110px; }
.perm-table .cell-sub b { color: var(--ink); font-weight: 600; }
.note { color: var(--warn); }

/* ---------- tags ---------- */
.tag { display: inline-block; font-size: var(--t-sm); font-weight: 600; padding: .05rem .45rem; border-radius: 4px; background: var(--sunken); color: var(--steel); vertical-align: 1px; }
.tag-off { background: var(--bad-soft); color: var(--bad); }
.tag-on { background: color-mix(in srgb, var(--done) 14%, transparent); color: color-mix(in srgb, var(--done) 70%, #000); }

/* ---------- handwriting: what people wrote on the paper forms ---------- */
.hand { font-family: var(--f-hand); font-weight: 600; color: var(--pen); font-size: 1.45em; line-height: 1; letter-spacing: .01em; }

/* ---------- dialogs and toasts ---------- */
.dlg { border: 0; padding: 0; border-radius: var(--r-md); width: min(560px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(24, 40, 47, .55); }
.dlg-wide { width: min(860px, calc(100vw - 2rem)); }
.dlg::backdrop { background: rgba(24, 40, 47, .42); }
.dlg-form { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100vh - 2rem); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem .6rem; }
.dlg-body { padding: .4rem 1.2rem 1rem; overflow-y: auto; }
.dlg-foot { display: flex; gap: .6rem; justify-content: flex-end; padding: .9rem 1.2rem; border-top: 1px solid var(--rule-soft); }
.dlg-foot .btn-danger { margin-right: auto; }

.toasts { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: grid; gap: .5rem; z-index: 100; width: min(520px, calc(100vw - 2rem)); }
.toast { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r-sm); box-shadow: 0 12px 30px -12px rgba(24, 40, 47, .6); transition: opacity .25s, transform .25s; }
.toast-bad { background: var(--bad); }
.toast-good { background: color-mix(in srgb, var(--done) 80%, #000); }
.toast.out { opacity: 0; transform: translateY(6px); }

/* ================= Checklists ================= */
.tabs { display: flex; gap: .2rem; flex-wrap: wrap; border-bottom: 1px solid var(--rule); margin-bottom: .8rem; }
.tab { font: 800 14px/1 var(--f-ui); color: var(--steel); background: none; border: 0; padding: .55rem .75rem; cursor: pointer; text-decoration: none;
  border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--head-ink); border-bottom-color: var(--fill); }
.notice { background: var(--warn-soft); color: var(--warn); padding: .7rem .9rem; border-radius: var(--r-sm); margin-bottom: 1rem; max-width: 80ch; }
.date-pick input { width: auto; }

.lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
/* A list looks like the paper form it replaces. Sizes match the OA Practice Dashboard exactly. */
.paper { background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 1px 2px rgba(16, 24, 22, .06), 0 2px 8px rgba(16, 24, 22, .04);
  padding: 1.1rem 1.4rem 1.2rem; font-family: var(--f-ui); font-size: 14.5px; line-height: 1.35; color: #111; }
.paper b { font-weight: 700; }
.paper-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.paper-head h2 { font: 700 22px/1.2 var(--f-ui); margin: 0; color: #111; }
.paper-date { font-weight: 700; font-size: 20px; white-space: nowrap; }
.paper-date span { display: inline-block; min-width: 9.5rem; border-bottom: 1.5px solid #111; text-align: center; font-weight: 600; color: #1d4ed8; }
.paper .hand { font: 600 1em/1.2 var(--f-ui); color: #1d4ed8; letter-spacing: 0; }
.progress { height: 4px; background: var(--rule-soft); border-radius: 99px; overflow: hidden; margin: .5rem 0 .3rem; }
.progress span { display: block; height: 100%; background: var(--done); border-radius: 99px; transition: width .35s ease; }
.paper-meta { font-size: 12px; color: var(--steel); margin-bottom: .5rem; }
.paper.is-done .paper-meta { color: color-mix(in srgb, var(--done) 75%, #000); font-weight: 600; }
.paper-instr { margin: .3rem 0 .2rem; white-space: pre-line; }
.u-red { color: #e11d48; text-decoration: underline; }
.p-sec { font-weight: 700; margin: .9rem 0 .3rem; }
.p-subsec { font-weight: 600; color: var(--steel); margin: .6rem 0 .25rem; }
.p-row { display: flex; gap: .55rem; align-items: flex-start; padding: .22rem 0; }
.p-text { flex: 1; padding-top: .1rem; min-width: 0; }
.p-sub { white-space: normal; }
.p-times { flex-wrap: wrap; align-items: center; gap: .35rem .5rem; font-size: 13px; }
.p-time { display: inline-flex; align-items: center; gap: .3rem; }
.p-field { align-items: center; }
.p-confirm-title { font-weight: 700; margin-top: .35rem; }
.p-confirm { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px dashed #555; margin-top: .3rem; }
.p-ccol { text-align: center; padding: .5rem .4rem .3rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.p-ccol + .p-ccol { border-left: 1px dashed #555; }
.p-ctitle { font-weight: 700; margin-top: .15rem; }
.p-cline { font-size: 13.5px; }
.p-cnote { margin-top: .3rem; font-size: 12.5px; border-top: 1px dashed #555; padding-top: .25rem; width: 100%; }
.p-cfoot { text-align: center; font-size: 13.5px; padding: .35rem 0 .2rem; border-bottom: 1px dashed #555; }
.g-sec { font-weight: 700; margin: .9rem 0 .35rem; font-size: 15px; }
.g-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.g-tbl td { border: 1px solid #333; padding: .4rem .5rem; vertical-align: middle; width: 50%; }
.g-tbl .p-row { padding: 0; align-items: center; }
@media (max-width: 700px) {
  .paper { padding: .9rem .8rem; }
  .p-confirm { grid-template-columns: 1fr; }
  .p-ccol + .p-ccol { border-left: 0; border-top: 1px dashed #555; }
  .g-tbl, .g-tbl tbody, .g-tbl tr, .g-tbl td { display: block; width: 100%; }
  .g-tbl td:empty { display: none; }
  .g-tbl td + td { border-top: 0; }
}
.hint { display: block; color: var(--steel); font-size: var(--t-sm); }
.ico { height: 1.45em; width: auto; vertical-align: -0.35em; margin: 0 .15em; }
.c-red { color: #c62828; } .c-blue { color: #1d4ed8; } .c-green { color: #15803d; } .c-orange { color: #c2410c; } .c-purple { color: #7e22ce; } .c-gray { color: var(--steel); }

/* initials boxes: type straight in (same sizes as the Practice Dashboard) */
input.ibox.ibox { width: 46px; height: 22px; min-width: 0; min-height: 0; border-radius: 2px; text-align: center; text-transform: uppercase; cursor: text;
  font: 700 12px/1 var(--f-ui); color: #1d4ed8; background: #fff; border: 1.5px solid #333; padding: 0 3px; flex: none; vertical-align: middle; }
input.ibox:hover:not([readonly]) { background: #eef4ff; }
input.ibox.big { width: 50px; height: 24px; }
/* boxes holding several people's initials (KR/JT/ML) grow to fit */
input.ibox.big.done { field-sizing: content; width: auto; min-width: 50px; max-width: 9rem; }
input.ibox.wide { width: 52px; }
input.ibox.sm { width: 34px; height: 17px; font-size: 10px; border-width: 1.3px; padding: 0 1px; letter-spacing: -.01em; margin: 0 .2em 0 .35em; vertical-align: -3px; }
input.ibox.done { background: #f3f7ff; }
input.ibox.part { border-style: dashed; }
input.ibox.part::placeholder { color: var(--steel); font-weight: 600; opacity: 1; }
input.ibox:focus { outline: 2px solid #93c5fd; outline-offset: 1px; background: #fffdf2; }
input.ibox[readonly] { cursor: default; }
input.ibox[readonly]:focus { outline: none; background: #fff; }
input.ibox.namebox { width: 190px; height: 26px; text-align: left; text-transform: none; font: 600 13.5px/1 var(--f-ui); padding: 0 6px; }
input.ibox.namebox::placeholder { color: #b8c0c8; font-weight: 400; }
input.ibox.namebox.sm { width: 130px; height: 18px; font-size: 11.5px; margin: 0 .25em 0 .35em; vertical-align: -3px; }
@media (max-width: 700px) { input.ibox.namebox { width: 150px; } }
input.ibox.fieldbox { flex: 1; width: auto; max-width: 640px; height: 26px; text-align: left; text-transform: none; font: 600 13.5px/1 var(--f-ui);
  padding: 0 6px; border-width: 0 0 1.5px 0; border-radius: 0; background: transparent; }
input.ibox.fieldbox.done { background: transparent; }

.vid { display: inline-flex; vertical-align: -3px; margin-left: .2em; text-decoration: none; line-height: 1; }
.vid.on { color: #2563eb; }
.vid.on:hover { color: #1d4ed8; }
.vid.on:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.vid.none { color: #b8c0c6; cursor: default; }

/* signature line: the doctor's full name */
.paper-sign { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.p-slabel { white-space: nowrap; }
.sigline { flex: 1; min-width: 14rem; border-bottom: 1.5px solid #111; min-height: 1.5em; padding: 0 .4rem; font: italic 600 18px/1.3 var(--f-ui); color: #1d4ed8; }
.sigline .hand { font: inherit; color: inherit; }
.sig-input { flex: 1; min-width: 14rem; max-width: 32rem; border: 0 !important; border-bottom: 1.5px solid #111 !important; border-radius: 0 !important; min-height: 0 !important;
  font: italic 600 18px/1.3 var(--f-ui) !important; color: #1d4ed8 !important; background: #fffdf2 !important; padding: .15rem .4rem !important; }
.sig-input:focus { outline: 2px solid #bfdbfe; }
.sig-input::placeholder { font: 400 14px/1 var(--f-ui); color: var(--steel); }

.dlg-video { width: min(960px, calc(100vw - 2rem)); padding: 0 0 1rem; }
.dlg-video .dlg-head { padding: .8rem 1rem; gap: 1rem; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ================= Training ================= */
.summary { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: .8rem 1rem; margin-bottom: .8rem; }
.howto { margin-bottom: 1.2rem; }
.meter { display: inline-block; width: 70px; height: 6px; background: var(--rule-soft); border-radius: 99px; overflow: hidden; vertical-align: middle; margin-right: .3rem; }
.meter span { display: block; height: 100%; background: var(--done); }
.due-late { background: var(--bad-soft); color: var(--bad); }
.due-today, .due-soon { background: var(--warn-soft); color: var(--warn); }
.tr-tbl { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.tr-tbl th { text-align: left; font-size: var(--t-sm); font-weight: 600; color: var(--steel); padding: .4rem .5rem; border-bottom: 1.5px solid var(--ink); }
.tr-tbl td { padding: .45rem .5rem; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
.tr-tbl .tr-head td { font-weight: 700; padding-top: 1rem; border-bottom-color: var(--rule); }
.tr-tbl .tr-sub td { font-weight: 600; color: var(--steel); padding-top: .7rem; }
.tr-tbl .c-box { width: 76px; }
.tr-tbl .c-quiz { width: 120px; }
.tr-tbl .c-trainer { width: 14rem; }
.tr-tbl .c-trainer .ibox { width: 100%; }
.tr-done .c-task { color: var(--steel); }
.guide { font-size: var(--t-sm); margin-left: .4rem; }
.quiz-btn.pass { color: color-mix(in srgb, var(--done) 75%, #000); }
.quiz-btn.fail { color: var(--bad); }
.quiz-q legend { font-weight: 700; }
.quiz-result { font-weight: 700; padding: .7rem .9rem; border-radius: var(--r-sm); margin-bottom: .8rem; }
.quiz-result.pass { background: color-mix(in srgb, var(--done) 14%, #fff); color: color-mix(in srgb, var(--done) 70%, #000); }
.quiz-result.fail { background: var(--bad-soft); color: var(--bad); }
.quiz-rev { display: grid; gap: .15rem; padding: .5rem 0; border-bottom: 1px solid var(--rule-soft); }
.quiz-rev.no b { color: var(--bad); }
.assign-tbl input[type=date] { max-width: 12rem; }
@media (max-width: 700px) {
  .tr-tbl thead { display: none; }
  .tr-tbl tr { display: grid; grid-template-columns: auto 1fr; gap: .3rem .6rem; padding: .5rem 0; border-bottom: 1px solid var(--rule-soft); }
  .tr-tbl td { border: 0; padding: 0; width: auto !important; }
  .tr-tbl td.c-task { grid-column: 2; grid-row: 1; }
  .tr-tbl td.c-quiz, .tr-tbl td.c-trainer { grid-column: 1 / -1; }
  .tr-tbl .tr-head, .tr-tbl .tr-sub { display: block; }
}

/* ================= Reports ================= */
.filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; margin-bottom: 1rem; }
.mini { display: grid; gap: .25rem; font-size: var(--t-sm); color: var(--steel); }
.mini input, .mini select { width: auto; color: var(--ink); font-size: var(--t-base); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.seg button { font: 600 var(--t-sm)/1 var(--f-ui); border: 0; background: none; color: var(--steel); padding: 0 .7rem; min-height: 34px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:hover { background: var(--sunken); color: var(--ink); }
.seg button.on { background: var(--fill); color: #fff; }
.office-sel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .6rem .9rem; margin-bottom: 1rem; }
.office-sel summary { cursor: pointer; font-weight: 600; }
.office-sel .row { margin: .4rem 0; }

/* the grid: rows are tasks, columns are days or offices */
.mx-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); }
.mx-tbl { border-collapse: separate; border-spacing: 0; font-size: var(--t-sm); min-width: 100%; }
.mx-tbl th, .mx-tbl td { border-bottom: 1px solid var(--rule-soft); }
.mx-tbl thead th, .mx-tbl thead td { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.mx-tbl thead .mx-total td { top: auto; font-weight: 700; text-align: center; border-bottom: 1.5px solid var(--ink); }
.mx-tbl thead .mx-total td:first-child { text-align: left; padding-left: .8rem; color: var(--steel); }
.mx-task { position: sticky; left: 0; background: var(--surface); z-index: 1; text-align: left; padding: .4rem .8rem; min-width: 260px; max-width: 420px; font-weight: 400; }
.mx-tbl thead .mx-svc td { text-align: center; font-size: 12px; padding: .15rem 0; }
.mx-tbl thead .mx-svc td:first-child { text-align: left; padding-left: .8rem; color: var(--steel); font-weight: 700; white-space: nowrap; }
.mx-tbl thead .mx-svc td { background: color-mix(in srgb, var(--sc) 9%, #fff); } .mx-tbl thead .mx-svc td:first-child { box-shadow: inset 3px 0 0 var(--sc); }
.mx-yes { color: #15803d; font-weight: 900; } .mx-noo { color: #cbd5e1; }
.mx-col.mx-col-ar { background: #eef6ff; }
.mx-tag { display: inline-block; margin-left: .4rem; font: 800 10px/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; vertical-align: 1px; }
.mx-tag-skip { background: #fff4d6; color: #92400e; } .mx-tag-only { background: #dbeafe; color: #1d4ed8; }
tr.mx-nonar > td.mx-task { box-shadow: inset 3px 0 0 #f59e0b; } tr.mx-aronly > td.mx-task { box-shadow: inset 3px 0 0 #3b82f6; }
.mx-col { vertical-align: bottom; padding: .5rem .25rem; height: 120px; }
.mx-col span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-weight: 600; }
.mx { width: 2.4rem; min-width: 2.4rem; text-align: center; border-left: 1px solid var(--rule-soft); }
.mx.ok { color: color-mix(in srgb, var(--done) 75%, #000); background: color-mix(in srgb, var(--done) 12%, #fff); font-weight: 700; }
.mx.no { background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); }
.mx.na { background: repeating-linear-gradient(135deg, var(--sunken) 0 4px, var(--rule-soft) 4px 8px); }
.mx.wait { background: var(--warn-soft); }
.mx .hand { font-size: 1.15rem; }
.mx-q { display: block; font-size: .75em; font-weight: 600; color: var(--steel); }
.mx-q.pass { color: color-mix(in srgb, var(--done) 75%, #000); }
.mx-q.fail { color: var(--bad); }
.mx-func th { text-align: left; padding: 1rem .8rem .3rem; font-size: var(--t-base); position: sticky; left: 0; background: var(--surface); }
.mx-list th { text-align: left; padding: .5rem .8rem; background: var(--porcelain); font-weight: 700; position: sticky; left: 0; }
.mx-sign .mx-task { font-weight: 700; }
.mx-h { font-weight: 700; padding-top: .8rem; }
.mx-sh { font-weight: 600; color: var(--steel); }
.pct-good { color: color-mix(in srgb, var(--done) 75%, #000); }
.pct-ok { color: var(--warn); }
.pct-bad { color: var(--bad); }

/* ================= Module Builder ================= */
/* formatted text boxes: bold / underline / colour show as you type; the bar floats above the box in use */
.rich-in { font: 500 14px/1.4 var(--f-ui); padding: .35rem .6rem; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; min-height: 34px;
  outline: none; white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; cursor: text; color: var(--ink); }
.rich-in.multi { white-space: pre-wrap; min-height: 3.6rem; overflow-x: hidden; }
.rich-in:focus { border-color: var(--fill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fill) 18%, transparent); }
.rich-in:empty::before { content: attr(data-ph); color: #9aa3a8; pointer-events: none; }
.rich-in b, .rich-in strong { font-weight: 700; }
.fmt-bar { position: absolute; z-index: 60; display: flex; align-items: center; gap: 2px; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 3px 4px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.fmt-bar[hidden] { display: none !important; }
.fmt-bar button { border: 0; background: none; min-width: 26px; height: 24px; border-radius: 5px; cursor: pointer; font: 600 13px/1 var(--f-ui); color: var(--ink); padding: 0 6px; }
.fmt-bar button:hover { background: #eef2f1; }
.fmt-bar .fmt-sw { min-width: 18px; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: var(--sw); margin: 0 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.fmt-bar .fmt-sep { width: 1px; height: 18px; background: var(--rule); margin: 0 3px; }
/* confirmation-calls table in the checklist editor: columns side by side */
.ed-confirm { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: .4rem 0; }
.ed-ccol { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: .4rem .7rem .6rem; margin: 0; min-width: 0; display: grid; gap: .4rem; }
.ed-ccol legend { font-weight: 700; padding: 0 .3rem; }
.ed-card, .ed-body { border: 0; padding: 0; margin: 0; min-width: 0; }
.ed-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .8rem 1rem .2rem; margin-bottom: .9rem; }
.ed-wide { grid-column: 1 / -1; }
.ed-section { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .6rem .8rem; margin-bottom: .7rem; }
.ed-sec-head { display: flex; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.ed-sec-head select { width: auto; }
.ed-section.is-collapsed { padding-bottom: .6rem; }
.ed-section.is-collapsed .ed-sec-head { margin-bottom: 0; }
.ed-fold { font-size: 1rem; width: 2rem; flex: none; }
.ed-count { flex: none; background: var(--surface-2, #f1f5f9); border: 1px solid var(--rule); border-radius: 999px; padding: .15rem .6rem; font-size: .8rem; color: var(--ink-2, #475569); cursor: pointer; }
.ed-fold-bar { align-items: center; margin: 1rem 0 .4rem; }
.ed-fold-bar .ed-preview-title { margin: 0; }
.ed-sec-head input { flex: 1; font-weight: 700; }
.ed-task { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--rule-soft); }
.ed-num { color: var(--steel); font-weight: 700; padding-top: .7rem; text-align: right; white-space: nowrap; font-size: .85rem; }
.ed-fields { display: grid; gap: .4rem; min-width: 0; align-content: start; }
.ed-pair { display: grid; grid-template-columns: minmax(160px, 1fr) 2.2fr; gap: .6rem; align-items: start; }
/* bold name and task text sit on one line; they grow if the text wraps */
.ed-pair .rich-in, .ed-pair .rich-in.multi { min-height: 34px; }
/* small boxes and the note side by side */
.ed-two { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem .8rem; padding-top: .5rem; align-items: end; }
.ed-two textarea, .ed-two .rich-in.multi { min-height: 4.6rem; height: 4.6rem; box-sizing: border-box; }
.ed-two .rich-in.multi { overflow: auto; }
.ed-tools { display: flex; gap: 0; align-items: flex-start; }
.ed-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .5rem .8rem; padding: .5rem 0 .1rem; }
.ed-l { display: grid; gap: .25rem; font-size: var(--t-sm); font-weight: 600; }
.ed-fields details summary { cursor: pointer; color: var(--accent); font-size: var(--t-sm); font-weight: 600; }
.ed-preview-title { margin: 1.6rem 0 .6rem; }
.ed-preview { pointer-events: none; opacity: .97; }
.ed-bar { position: sticky; top: var(--top); background: var(--porcelain); z-index: 5; padding: .6rem 0; }
@media (max-width: 700px) { .ed-pair, .ed-two { grid-template-columns: 1fr; } .ed-task { grid-template-columns: 1fr auto; } .ed-num { display: none; } .ed-bar { position: static; } }

.qz { display: grid; gap: .4rem; padding: .7rem 0; border-top: 1px solid var(--rule-soft); }
.qz-opt { display: flex; gap: .5rem; align-items: center; }
.qz-opt input[type=radio] { width: 18px; height: 18px; accent-color: var(--done); flex: none; }
.qb textarea { min-height: 12rem; }

.ic-img { height: 32px; width: auto; max-width: 120px; image-rendering: auto; }
.ic-code { font-weight: 700; background: var(--sunken); padding: .1rem .35rem; border-radius: 4px; }
.ic-tbl td { vertical-align: middle; }

.dropzone { display: grid; gap: .3rem; place-items: center; text-align: center; padding: 2rem 1rem; border: 2px dashed var(--rule); border-radius: var(--r-md); background: var(--surface); cursor: pointer; }
.dropzone:hover { border-color: var(--accent); }
.imp { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 1rem 1.2rem; }
.imp-off { opacity: .55; }
.imp-off .ed-preview { display: none; }
.imp-summary { margin: .3rem 0 .8rem; }
.imp-warn { color: var(--warn); font-size: var(--t-sm); margin: 0 0 .8rem; }

} /* end @scope */

/* Users & Access: sheet-style tabs on top of the panel (same look as the EFT Log months) */
.ua-tabs, .sheet-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px; position: relative; z-index: 1; margin-top: .4rem; }
.ua-tabs button, .sheet-tabs .tab { font: 800 13.5px/1 var(--f-ui); color: var(--ink); border-radius: 9px 9px 0 0; border: 1px solid #d6dce0; border-bottom: 0;
  background: #eef2f4; padding: 10px 18px; margin-bottom: -1px; cursor: pointer; }
.ua-tabs button:hover, .sheet-tabs .tab:hover { background: #e2eef1; color: var(--ink); }
.ua-tabs button.on, .sheet-tabs .tab.on { background: var(--surface); box-shadow: inset 0 3px 0 var(--fill); position: relative; z-index: 2; }
/* Checklists: the tabs sit on a line, with the lists below */
.sheet-tabs { border-bottom: 1px solid #d6dce0; margin-bottom: 1rem; }
.sheet-tabs .tab.on { color: var(--ink); border-bottom: 1px solid var(--surface); }
.ua-panel { border: 1px solid #d6dce0; border-radius: 0 var(--r-md) var(--r-md) var(--r-md); background: var(--surface); }
.ua-body { padding: .2rem 1rem 1rem; min-width: 0; }
/* the tab names the screen, so each screen's own big title steps aside */
.ua-body > .page-head:first-child h1 { display: none; }
.ua-body > .page-head:first-child { margin-top: .6rem; }

/* ================= Practice Accounting ================= */
.acct-year { margin: 0; }
.acct-year select { width: auto; }
.acct .pos { color: #15803d; }
.acct .neg { color: #b4302a; }
.acct .r { text-align: right; }
.acct .nowrap { white-space: nowrap; }
.acct .small { font-size: 12.5px; }
.acct .muted, .acct .sub { color: var(--steel); }
.acct .warn-text { color: var(--warn); font-weight: 600; }
.acct .ok-text { color: #15803d; font-weight: 700; }
.acct .warn-link { color: var(--warn); font-weight: 700; }
.acct-filters { margin-top: .8rem; }
.acct-sum { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin: .2rem 0 .7rem; font-size: 13.5px; color: var(--steel); }
.acct-sum b { color: var(--ink); }
.acct-bulk { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem .7rem; margin-bottom: .6rem;
  background: color-mix(in srgb, var(--fill) 10%, #fff); border: 1px solid color-mix(in srgb, var(--fill) 35%, #fff); border-radius: var(--r-sm); }
.acct-bulk select { width: auto; }
.acct-tbl td { vertical-align: middle; }
.acct-tbl select { width: 100%; min-width: 190px; padding: .3rem .5rem; font-size: 13px; }
.acct-tbl select + select { margin-top: .25rem; }
.acct-tbl tr.unsorted td { background: #fffbeb; }
.acct-tbl .c-pick { width: 28px; }
.acct-rec { display: block; font-size: 12px; color: var(--steel); margin-top: .1rem; }
.acct-more { text-align: center; margin-top: .8rem; }
.acct-empty { padding: 1.4rem 0; }
.acct-sec { margin-top: 1rem; }
.acct-sec + .acct-sec { border-top: 1px solid var(--rule); padding-top: 1rem; }
.acct-sec h3 { font-size: 16px; margin: 0 0 .3rem; }
.acct-sec .sub { margin: 0 0 .7rem; max-width: 90ch; }
.acct-map { margin-top: .8rem; }
.acct-map > summary { cursor: pointer; font-weight: 700; color: var(--accent); }
.acct-map select { width: auto; min-width: 220px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 .8rem; }
.acct-csv { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .8rem 1rem; background: var(--porcelain); }
.acct-csv .table { margin: .6rem 0; }
.acct-scroll { overflow-x: auto; }
.acct-pl td, .acct-pl th { white-space: nowrap; font-size: 12.5px; padding: .3rem .5rem; }
.acct-pl tr.acct-kind td, .acct-k1 tr.acct-kind td { font: 800 11px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding-top: .8rem; background: var(--porcelain); }
.acct-pl tr.acct-subtotal td { font-weight: 700; border-top: 1px solid var(--rule); }
.acct tr.acct-net td { font-weight: 800; border-top: 2px solid var(--ink); }
.acct-pl tr.unsorted td { background: #fffbeb; }
.acct-steps { padding-left: 1.2rem; display: grid; gap: .9rem; }
.acct-steps li .sub { display: block; margin: .3rem 0 0; }
.acct-steps .btn { margin: .2rem .2rem 0 .3rem; }
.acct-k1s { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; margin-top: 1rem; }
.acct-k1 h4 { margin: 0 0 .4rem; font-size: 15px; }
.acct-prow { display: grid; grid-template-columns: 1fr 90px auto 190px auto; gap: .4rem; align-items: center; margin-bottom: .4rem; }
@media (max-width: 700px) { .acct-prow { grid-template-columns: 1fr 70px auto; } .acct-prow [name=pcap] { grid-column: 1 / -1; } .acct-k1s { grid-template-columns: 1fr; } }
.acct input[type=file] { width: auto; border: 0; padding: 0; background: none; }
.acct-sc td.b { width: 54px; font-weight: 800; color: var(--steel); }
.acct-sc tr.acct-kind td { font: 800 11px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding-top: .8rem; background: var(--porcelain); }
.acct-sc tr.acct-subtotal td { font-weight: 700; border-top: 1px solid var(--rule); }
.acct-h4 { font-size: 14px; margin: 1.2rem 0 .4rem; }

/* ================= spreadsheet-like pages (Personal Financial Statement, Real Estate Master) ================= */
.g-wrap { overflow-x: auto; }
.g-tbl { margin: .3rem 0 .4rem; }
.g-tbl td { padding: .2rem .3rem; vertical-align: middle; }
.g-tbl th { padding: .4rem .4rem; white-space: nowrap; }
.g-tbl input[type=text], .g-tbl select, .g-tbl input[type=date], .g-tbl textarea { width: 100%; min-width: 90px; padding: .3rem .45rem; font-size: 13px; }
.g-tbl input.g-num { text-align: right; min-width: 90px; }
.g-tbl td.g-check { text-align: center; }
.g-tbl td.g-check input { width: auto; min-width: 0; }
.g-tbl .g-x { width: 34px; text-align: center; }
.g-tbl tfoot td { font-weight: 800; border-top: 2px solid var(--rule); background: var(--porcelain); }
.g-tbl .r { text-align: right; white-space: nowrap; }
.g-add { margin-bottom: .6rem; }
.pfs .muted, .re .muted { color: var(--steel); }
.pfs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 .9rem; }
.pfs-grid .field input, .pfs-grid .field select { width: 100%; }
.pfs-ssn { font-size: 12.5px; color: var(--steel); padding: .45rem 0; }
.pfs-bs { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1rem; margin: .6rem 0; }
.pfs-bs .table td, .re-sum td { padding: .32rem .6rem; }
.pfs-bs tr.acct-kind td, .re-sum tr.acct-kind td { font: 800 11px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--steel); padding-top: .8rem; background: var(--porcelain); }
.pfs-bs tr.acct-subtotal td, .re-sum tr.acct-subtotal td { font-weight: 700; border-top: 1px solid var(--rule); }
.pfs-bs tr.acct-net td, .re tr.acct-net td { font-weight: 800; border-top: 2px solid var(--ink); }
.pfs-bs tr.pfs-nw td { background: color-mix(in srgb, var(--fill) 10%, #fff); font-size: 15px; }
.pfs .r, .re .r { text-align: right; white-space: nowrap; }
.pfs .pos, .re .pos { color: #15803d; } .pfs .neg, .re .neg { color: #b4302a; }
.pfs-q { display: grid; grid-template-columns: 1fr 120px minmax(160px, 260px); gap: .6rem; align-items: center; border-bottom: 1px solid var(--rule-soft); padding: .3rem 0; }
.pfs-q .field { margin: 0; }
.re-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 1.5rem; }
.re-sum { margin: .5rem 0; }
.re-port td, .re-port th { white-space: nowrap; font-size: 13px; }
.re-link { padding: 0; font-weight: 700; color: var(--accent); }
.re-amort { max-height: 60vh; overflow: auto; }
.re-amort tr.muted td { color: var(--steel); }
.re-rent td, .re-rent th { white-space: nowrap; font-size: 13px; }
.re .toolbar select { width: auto; min-width: 220px; }
@media (max-width: 700px) { .re-cols { grid-template-columns: 1fr; } .pfs-q { grid-template-columns: 1fr; } .pfs-bs { grid-template-columns: 1fr; } }
/* these tables stay tables on phones (they scroll sideways instead) */
@media (max-width: 700px) {
  .g-wrap .table thead, .acct-scroll .table thead, .re-amort .table thead, .pfs-bs .table thead, .re-sum thead { display: table-header-group; }
  .g-wrap .table tr, .acct-scroll .table tr, .re-amort .table tr, .pfs-bs .table tr, .re-sum tr { display: table-row; padding: 0; }
  .g-wrap .table td, .acct-scroll .table td, .re-amort .table td, .pfs-bs .table td, .re-sum td { display: table-cell; border-bottom: 1px solid var(--rule-soft); padding: .3rem .5rem; }
}
.re-roll td { vertical-align: middle; }
.re-roll input { min-width: 80px; }
.rr-tag { font: 700 12px/1 var(--f-ui); padding: .25rem .55rem; border-radius: 999px; background: #eef2f4; color: var(--steel); }
.rr-vacant .rr-tag { background: #fde8e6; color: #9f2f25; }
.rr-expired .rr-tag, .rr-soon .rr-tag { background: #fff4d6; color: #8a5d0b; }
.rr-year .rr-tag { background: #fffbeb; color: #8a5d0b; }
.rr-ok .rr-tag { background: #e7f6ec; color: #15803d; }
.re .warn-text { color: var(--warn); font-weight: 700; }
.re .acct-sum { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: 13.5px; color: var(--steel); }
.re .acct-sum b { color: var(--ink); }
.re-roll td:nth-child(3) input { min-width: 190px; }
.re-roll td:nth-child(2) input { min-width: 90px; }
.rr-tag { white-space: nowrap; display: inline-block; }

/* ================= Retention ================= */
.ret-months { align-items: flex-end; }
.ret-months select { width: auto; margin: 0 0 4px 8px; }
.ret-top, .ret-tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: .8rem 0 .5rem; }
.ret-top > div, .ret-tot > div { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .55rem .75rem; background: var(--surface); display: grid; gap: .25rem; }
.ret-top span, .ret-tot span { font: 800 11px/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.ret-top b, .ret-tot b { font-size: 18px; color: var(--ink); }
.ret-top input { font-size: 16px; font-weight: 700; padding: .3rem .5rem; width: 100%; }
.ret-tot > div { background: var(--porcelain); }
.ret-roi { border-color: color-mix(in srgb, var(--fill) 50%, #fff) !important; background: color-mix(in srgb, var(--fill) 8%, #fff) !important; }
.table.ret-days td { padding: .2rem .4rem; vertical-align: middle; }
/* PSG Tasklist */
.sheet-tabs .tab.tl-tpl { font-style: italic; color: var(--steel); }
.tl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-bottom: 1rem; }
.tl-bar label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 13px; }
.tl-bar select { width: auto; } .tl-bar .sub { flex-basis: 100%; margin: 0; }
.tl-prog { display: flex; align-items: center; gap: .5rem; }
.tl-meter { display: inline-block; width: 140px; height: 8px; border-radius: 4px; background: var(--rule-soft); overflow: hidden; }
.tl-meter i { display: block; height: 100%; background: var(--fill); }
.tl-sec { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); margin-bottom: 1rem; overflow: hidden; }
.tl-sec-head { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; background: var(--porcelain); border-bottom: 1px solid var(--rule-soft); }
.tl-sec-head h2 { font-size: 14px; letter-spacing: .06em; margin: 0; }
.tl-sec-head .tl-title { font: 800 14px var(--f-ui); letter-spacing: .06em; width: 260px; }
.tl-sec-head .btn:first-of-type { margin-left: auto; }
.tl-note { padding: .5rem .8rem; border-bottom: 1px solid var(--rule-soft); font-size: 13px; white-space: pre-wrap; }
.tl-note p { margin: 0; } .tl-note textarea { width: 100%; font-size: 13px; }
.tl-tbl { font-size: 13px; } .tl-tbl td { vertical-align: top; padding: .3rem .4rem; } .tl-tbl td.c, .tl-tbl th.c { text-align: center; width: 54px; }
.tl-tbl td.c small { display: block; font-size: 10.5px; }
.tl-tbl textarea { width: 100%; min-width: 140px; font-size: 13px; padding: .25rem .4rem; resize: vertical; field-sizing: content; }
.tl-tbl textarea.tl-ins { min-width: 280px; } .tl-tbl select { min-width: 130px; font-size: 13px; }
.tl-tbl .tl-pre { white-space: pre-wrap; max-width: 420px; }
.tl-tbl tr.tl-done td { background: #f1f8f2; } .tl-tbl tr.tl-done td:nth-child(4) b, .tl-tbl tr.tl-done textarea[data-k=task] { text-decoration: line-through; color: var(--steel); }
.tl-chk { font-weight: 600 !important; }

/* PSG Monthly Numbers */
.pn-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 13px; margin: 0 0 .6rem; }
.pn-wrap { max-height: 72vh; overflow: auto; border: 1px solid var(--rule-soft); border-radius: var(--r-md); }
.pn-agg, .pn-teams { font-size: 12.5px; border-collapse: separate; border-spacing: 0; }
.pn-agg th, .pn-teams th { font-size: 10.5px; line-height: 1.2; vertical-align: bottom; min-width: 96px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
.pn-agg thead tr:nth-child(2) th, .pn-teams thead tr:nth-child(2) th { top: 26px; }
.pn-agg thead tr.pn-target td { position: sticky; top: 70px; background: #fffbe8; z-index: 2; font-weight: 700; font-size: 11.5px; }
.pn-groups th { text-align: center; font-size: 11.5px; letter-spacing: .08em; height: 26px; }
.pn-g-rev, th.pn-rev { box-shadow: inset 0 -3px 0 #16a34a; } .pn-g-exp, th.pn-exp { box-shadow: inset 0 -3px 0 #dc2626; }
.pn-g-roy, th.pn-roy { box-shadow: inset 0 -3px 0 #2563eb; } .pn-g-pct, th.pn-pct { box-shadow: inset 0 -3px 0 #7c3aed; }
.pn-team { box-shadow: inset 0 -3px 0 var(--fill); border-left: 2px solid var(--rule); }
.pn-sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; }
thead .pn-sticky { z-index: 3; }
.pn-agg td { padding: .15rem .25rem; vertical-align: middle; } .pn-agg input.g-num { width: 96px; padding: .2rem .35rem; font-size: 12.5px; text-align: right; }
.pn-agg input.pn-auto, .pn-agg td.pn-auto { background: #f3f5f6; color: #3b4a52; }
.pn-agg tr.pn-empty td { color: var(--steel); }
.pn-good { color: #15803d; font-weight: 800; } .pn-bad { color: #b91c1c; font-weight: 800; } .pn-neg { color: #b91c1c; }
.pn-teams td.pn-pf, .pn-teams th.pn-pf { font-weight: 800; border-right: 2px solid var(--rule); }

/* Settings → Offices: number, name, brand and region on one line */
.of-row { display: grid; grid-template-columns: 100px minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: .6rem; align-items: end; margin-bottom: .8rem; }
.of-row .field { margin: 0; min-width: 0; } .of-row input, .of-row select { width: 100%; min-width: 0; }
.of-days .checks { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.of-roles .checks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.of-svc .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dlg-head .to-head { margin: 0 .8rem 0 auto; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) { .of-days .checks, .of-roles .checks { grid-template-columns: repeat(4, 1fr); } .of-svc .checks { grid-template-columns: 1fr; } .of-row { grid-template-columns: 1fr 1fr; } }

/* PSG services: coloured tags and the editor */
.svc-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font: 700 12px/1.5 var(--f-ui); white-space: nowrap; color: color-mix(in srgb, var(--sc) 75%, #000); background: color-mix(in srgb, var(--sc) 14%, #fff); border: 1px solid color-mix(in srgb, var(--sc) 30%, #fff); margin: 1px 0; }
.svc-cell { min-width: 150px; }
.svc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--sc); margin-right: 6px; vertical-align: 0; }
.svc-list { display: grid; gap: .5rem; margin: .6rem 0; }
.svc-row { display: grid; grid-template-columns: 34px minmax(140px, 220px) minmax(90px, 140px) minmax(0, 1fr) auto auto; grid-template-areas: "c n s m on tools"; gap: .3rem .6rem; align-items: end; padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.svc-row.svc-off { opacity: .6; background: var(--porcelain); }
.svc-row input[type=color] { grid-area: c; width: 32px; height: 32px; align-self: end; padding: 0; border: 1px solid var(--rule); border-radius: 8px; cursor: pointer; margin-bottom: 1px; }
.svc-f { display: grid; gap: 2px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); min-width: 0; }
.svc-f input { font: 500 14px var(--f-ui); text-transform: none; letter-spacing: 0; padding: .3rem .45rem; min-width: 0; }
.svc-row > .svc-f:nth-of-type(1) { grid-area: n; } .svc-short { grid-area: s; } .svc-desc { grid-area: d; }
.svc-on { grid-area: on; white-space: nowrap; font-size: 13px; padding-bottom: .45rem; align-self: end; }
.svc-meta { grid-area: m; display: flex; gap: .5rem; align-items: center; font-size: 12px; padding-bottom: .35rem; min-width: 0; flex-wrap: wrap; }
.svc-tools { grid-area: tools; display: flex; gap: 2px; justify-content: flex-end; padding-bottom: .15rem; }
.svc-add { display: flex; gap: .5rem; } .svc-add input { flex: 1; }
@media (max-width: 760px) { .svc-row { grid-template-columns: 34px 1fr 1fr; grid-template-areas: "c n s" "c m m" "c on tools"; } }
/* descriptions in dialogs run the full width */
.dlg-body .sub { max-width: none; }

/* menu badges */
.rail-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--fill); color: #fff; font: 800 11.5px/20px var(--f-ui); text-align: center; }
.rail-badge.late { background: #dc2626; }
.rail-badge.dot { min-width: 10px; width: 10px; height: 10px; padding: 0; background: #dc2626; }
/* My Tasks: items from elsewhere in Nexus */
.rn-mine-link { color: inherit; text-decoration: none; } .rn-mine-link:hover { text-decoration: underline; }
.rn-src { display: inline-block; font: 800 10.5px/1 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 5px; background: #e7f4f6; color: #0e6170; vertical-align: 1px; }
.rn-src-signature { background: #fee2e2; color: #b91c1c; } .rn-src-startup { background: #fef3c7; color: #92400e; }

/* Communications: categories and @mentions */
.cl-cats .tab .muted { font-weight: 600; font-size: 12px; margin-left: 2px; }
.cl-catdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cc); margin-right: 6px; }
.cl-cat { font: 800 10.5px/1 var(--f-ui); letter-spacing: .04em; padding: 3px 6px; border-radius: 5px; color: color-mix(in srgb, var(--cc) 80%, #000); background: color-mix(in srgb, var(--cc) 14%, #fff); }
.cl-ment { font-weight: 800; font-size: 11.5px; padding: 1px 6px; border-radius: 10px; background: #eef2f5; color: #475569; }
.cl-ment.me { background: #fff; color: #b91c1c; border: 1px solid #fca5a5; }
.cl-ment.new { background: #dc2626; color: #fff; }
.cl-card.cl-tagged { box-shadow: inset 3px 0 0 #dc2626, 0 1px 2px rgba(0,0,0,.05); }
.cl-compose { position: relative; }
.cl-atlist { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.12); max-height: 220px; overflow: auto; }
.cl-atlist button { display: flex; justify-content: space-between; gap: .6rem; width: 100%; border: 0; background: none; padding: .4rem .6rem; font: 600 13.5px var(--f-ui); text-align: left; cursor: pointer; }
.cl-atlist button:hover, .cl-atlist button:focus { background: #e7f4f6; }
.cl-atlist .muted { font-size: 12px; font-weight: 500; }
.cl-at { background: #e7f4f6; color: #0e6170; font-weight: 800; border-radius: 4px; padding: 0 3px; }
.cl-notes li.cl-me { box-shadow: inset 3px 0 0 #dc2626; }

/* Doctor signature requests */
.sig-req { margin: .3rem 0 0; font-size: 13px; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.sig-apply { flex: 1; min-height: 46px; border: 2px dashed var(--fill); background: #f2fafb; color: var(--fill); font: 800 15px var(--f-ui); border-radius: 8px; cursor: pointer; }
.sig-apply:hover { background: #e3f3f6; }
.sigline.sig-has-img { display: inline-flex; align-items: flex-end; min-height: 54px; }
.sig-img { max-height: 64px; max-width: 280px; display: block; }
.sig-name { font-size: 12px; color: var(--steel); margin-left: .5rem; }
.sig-stamp { font-size: 12px; color: var(--steel); margin-left: auto; padding-left: .75rem; white-space: nowrap; }
.paper-sign .sig-req { font-size: 13px; }
.sig-pick { display: grid; gap: .4rem; } .sig-pick label { display: flex; gap: .5rem; align-items: baseline; padding: .4rem .5rem; border: 1px solid var(--rule-soft); border-radius: 8px; }
.sig-mine { border: 1px solid #fca5a5; background: #fef2f2; border-radius: var(--r-md); padding: .6rem .9rem; margin-bottom: .9rem; }
.sig-mine h2 { font-size: 15px; margin: 0 0 .4rem; display: flex; gap: .5rem; align-items: center; }
.sig-mine ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; font-size: 13.5px; }
.sig-home { display: grid; gap: .2rem; border: 1px solid #fca5a5; background: #fef2f2; color: var(--ink); border-radius: var(--r-md); padding: .7rem 1rem; margin-bottom: 1rem; text-decoration: none; }
.sig-home b { color: #b91c1c; } .sig-home span { font-size: 13px; color: var(--steel); }
.cred-sig { max-height: 70px; max-width: 300px; display: block; margin-bottom: .3rem; background: repeating-linear-gradient(0deg, transparent, transparent 66px, #cbd5e1 66px, #cbd5e1 67px); }

/* Claims Board */
.rail .rail-claims svg { width: 24px; height: 22px; flex: none; color: var(--fill); }
.cl-bar input[type=search] { min-width: 300px; }
.cl-mine { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 13.5px; }
.cl-count { min-width: 22px; height: 20px; border-radius: 10px; background: var(--rule-soft); display: inline-grid; place-items: center; font-size: 12px; padding: 0 6px; }
.cl-count.on { background: #dc2626; color: #fff; }
.cl-board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: .8rem; overflow-x: auto; align-items: start; padding-bottom: .5rem; }
.cl-col { background: var(--porcelain); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .5rem; min-height: 200px; transition: background .15s; }
.cl-col.over { background: #e3f1f4; border-color: var(--fill); }
.cl-col > header { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .5rem; }
.cl-col h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.cl-new h2 { color: #2563eb; } .cl-review h2 { color: #b45309; } .cl-followup h2 { color: #dc2626; } .cl-resolved h2 { color: #15803d; }
.cl-cards { display: grid; gap: .5rem; }
.cl-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: .55rem .65rem; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cl-card:hover, .cl-card:focus { border-color: var(--fill); outline: none; } .cl-card.dragging { opacity: .45; }
.cl-card.cl-mycard { box-shadow: inset 3px 0 0 #dc2626, 0 1px 2px rgba(0,0,0,.05); }
.cl-card h3 { font-size: 14px; margin: .25rem 0 .15rem; line-height: 1.3; }
.cl-top { display: flex; gap: .4rem; flex-wrap: wrap; }
.cl-office, .cl-payer { font: 800 10.5px/1 var(--f-ui); letter-spacing: .05em; padding: 3px 6px; border-radius: 5px; background: #e7f4f6; color: #0e6170; }
.cl-payer { background: #f1f1f4; color: #475569; }
.cl-pt { font-size: 12.5px; color: var(--steel); margin: 0 0 .3rem; }
.cl-meta { display: flex; flex-wrap: wrap; gap: .3rem .6rem; font-size: 12px; color: var(--steel); }
.cl-due { border-radius: 5px; padding: 1px 5px; } .cl-due.cl-soon { background: #fef3c7; color: #92400e; } .cl-due.cl-late { background: #fee2e2; color: #b91c1c; font-weight: 800; }
.cl-who.me { color: #b91c1c; font-weight: 800; }
.cl-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 1.2rem; }
@media (max-width: 860px) { .cl-detail { grid-template-columns: 1fr; } }
.cl-detail h3 { font-size: 14px; margin: .9rem 0 .4rem; }
.cl-tlist { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.cl-tlist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem .6rem; padding: .35rem .5rem; border: 1px solid var(--rule-soft); border-radius: 8px; font-size: 13.5px; }
.cl-tlist li.done span:not(.cl-tmeta *) { text-decoration: line-through; color: var(--steel); }
.cl-tlist label { display: inline-flex; gap: .4rem; align-items: flex-start; }
.cl-tmeta { display: inline-flex; gap: .5rem; align-items: center; font-size: 12px; }
.cl-tadd { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; } .cl-tadd input[data-tnew] { flex: 1 1 220px; } .cl-tadd select { width: auto; max-width: 200px; }
.cl-side { border-left: 1px solid var(--rule-soft); padding-left: 1rem; display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 860px) { .cl-side { border-left: 0; padding-left: 0; } }
.cl-notes { list-style: none; padding: 0; margin: 0; max-height: 340px; overflow: auto; display: grid; gap: .45rem; }
.cl-notes li { background: var(--porcelain); border-radius: 8px; padding: .4rem .6rem; font-size: 13px; }
.cl-notes li.auto { background: none; padding: 0 .6rem; font-size: 12px; color: var(--steel); } .cl-notes li.auto p { display: inline; }
.cl-notes p { margin: .2rem 0 0; white-space: pre-wrap; }
.cl-side textarea { width: 100%; } .cl-by { font-size: 12px; }
.cl-ttpl { display: grid; gap: .35rem; } .cl-ttpl > div { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cl-ttpl input[name^=tt] { flex: 1 1 240px; } .cl-ttpl select { width: auto; max-width: 220px; } .cl-ttpl input[type=number] { width: 64px; }

/* PSG Marketing */
.mk-agg { font-size: 12px; border-collapse: separate; border-spacing: 0; }
.mk-agg th { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.mk-agg thead tr:nth-child(2) th { top: 30px; }
.mk-agg th.mk-site { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: 10.5px; min-width: 24px; max-width: 30px; padding: .4rem .15rem; text-align: left; vertical-align: bottom; height: 150px; }
.mk-agg td.c { text-align: center; padding: .15rem; } .mk-agg td { padding: .2rem .35rem; }
.mk-g { font-size: 10.5px !important; white-space: normal; min-width: 120px; line-height: 1.2; text-align: center; }
.mk-g0 { box-shadow: inset 0 -3px 0 #2563eb; } .mk-g1 { box-shadow: inset 0 -3px 0 #0891b2; } .mk-g2 { box-shadow: inset 0 -3px 0 #ca8a04; }
.mk-g3 { box-shadow: inset 0 -3px 0 #64748b; } .mk-g4 { box-shadow: inset 0 -3px 0 #16a34a; } .mk-g5 { box-shadow: inset 0 -3px 0 #c026d3; } .mk-g6 { box-shadow: inset 0 -3px 0 #dc2626; }
.mk-gt { box-shadow: inset 0 -3px 0 var(--fill); }
.mk-yes { color: #15803d; font-weight: 900; } .mk-dot { color: var(--accent); }
.mk-onote { min-width: 160px; font-size: 12px; padding: .2rem .35rem; }
.mk-office { display: grid; gap: 1rem; }
.mk-info { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .8rem 1rem; background: var(--surface); }
.mk-info h2 { margin: 0; } .mk-info dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .4rem 1.2rem; margin: .6rem 0 0; }
.mk-info dl > div { display: grid; grid-template-columns: 160px 1fr; gap: .5rem; align-items: center; }
.mk-info dt { font: 800 11px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; color: var(--steel); }
.mk-info dd { margin: 0; font-size: 13.5px; min-width: 0; overflow-wrap: anywhere; } .mk-info dd input { width: 100%; font-size: 13px; padding: .25rem .4rem; }
.mk-cits { font-size: 13px; } .mk-cits td { padding: .2rem .3rem; } .mk-cits input { font-size: 12.5px; padding: .2rem .35rem; width: 100%; min-width: 130px; }
.mk-cits input.mk-url { min-width: 300px; width: calc(100% - 24px); } .mk-open { text-decoration: none; margin-left: 2px; }
.mk-search { min-width: 320px; }
.mk-pw { font-size: 13px; } .mk-pw td { vertical-align: top; padding: .35rem .45rem; }
.mk-qa { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: 12.5px; margin-bottom: .2rem; } .mk-qa > span:first-child { color: var(--steel); }
.mk-sites-ta { width: 100%; font: 12.5px/1.45 ui-monospace, Menlo, Consolas, monospace; }
/* Review Data */
.rv-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .9rem; }
.rv-bar select { width: auto; } .rv-bar input[type=search] { width: 220px; flex: 0 1 220px; } .rv-tools { margin-left: auto; display: flex; gap: .4rem; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: .4rem .8rem; font: 800 13px var(--f-ui); color: var(--ink); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); } .seg button.on { background: var(--fill); color: #fff; }
.rv-gbp, .rv-sum { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); margin-bottom: .9rem; }
.rv-gbp > summary, .rv-sum > summary { padding: .55rem .8rem; cursor: pointer; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.rv-gbp > summary .btn { margin-left: auto; } .rv-gbp-body { padding: 0 .9rem .8rem; }
.rv-sum .pn-wrap { border: 0; border-top: 1px solid var(--rule-soft); border-radius: 0; max-height: 60vh; }
.rv-steps { margin: 0 0 .6rem; padding-left: 1.2rem; font-size: 13.5px; } .rv-steps li { margin: .35rem 0; } .rv-steps li.done::marker { color: #15803d; }
.rv-steps code { display: block; margin: .3rem 0; font-size: 12px; background: var(--porcelain); padding: .3rem .5rem; border-radius: 6px; overflow-wrap: anywhere; }
.rv-locs { font-size: 13px; } .rv-locs select { width: auto; font-size: 13px; }
.rv-sumt, .rv-kwt { font-size: 12.5px; border-collapse: separate; border-spacing: 0; } .rv-sumt th, .rv-kwt th { position: sticky; top: 0; background: var(--surface); z-index: 2; font-size: 11px; }
.rv-sumt thead tr:nth-child(2) th { top: 26px; }
.rv-sep { border-left: 2px solid var(--rule) !important; }
.rv-n { border: 0; background: none; color: var(--accent); font: 800 12.5px var(--f-ui); cursor: pointer; padding: 0; text-decoration: underline dotted; }
.rv-kwgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1rem; margin-bottom: .8rem; }
.rv-kwl { font-size: 13px; } .rv-kwl tr.rv-on td { background: #e7f4f6; }
.rv-h { font-size: 15px; margin: .6rem 0 .5rem; } .rv-kwon { background: #fff3c4; border-radius: 6px; padding: 0 .3rem; }
.rv-list { display: grid; gap: .6rem; }
.rv-card { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); padding: .65rem .85rem; }
.rv-card header { display: flex; align-items: center; gap: .6rem; } .rv-card header > div { display: grid; } .rv-card header .muted { font-size: 12px; }
.rv-card header img, .rv-av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.rv-av { display: grid; place-items: center; background: var(--porcelain); font-weight: 800; color: var(--steel); }
.rv-stars { margin-left: auto; font-size: 15px; white-space: nowrap; } .rv-st { color: #f59e0b; } .rv-st0 { color: #d6dce0; }
.rv-card p { margin: .45rem 0; font-size: 14px; white-space: pre-line; } .rv-card mark { background: #fff3a8; padding: 0 1px; border-radius: 3px; }
.rv-reply summary { cursor: pointer; font-size: 12.5px; color: var(--steel); font-weight: 700; } .rv-reply p { font-size: 13px; color: var(--steel); border-left: 3px solid var(--rule); padding-left: .6rem; }
.rv-noreply { font-size: 12px !important; color: #b45309; margin: .2rem 0 !important; }
.rv-card footer { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: 12.5px; }
.rv-card footer label { display: inline-flex; gap: .3rem; align-items: center; font-weight: 700; }
.rv-pages { justify-content: center; }

/* PSG Payroll */
.pay-periods { align-items: flex-end; }
.pay-periods select { width: auto; margin: 0 0 4px 8px; }
.table.pay-grid td { vertical-align: middle; }
.pay-head { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: .8rem; }
.pay-head > div { background: var(--surface); border: 1px solid var(--rule-soft); border-radius: 10px; padding: .5rem .8rem; display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.pay-head span { font: 700 11.5px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pay-head b { font-size: 16px; } .pay-head small { color: var(--muted); font-size: 12px; }
.pay-head input { width: 120px; padding: .25rem .45rem; font: 700 15px var(--f-ui); }
.pay-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .8rem; }
.pay-steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--fill); color: #fff; font-size: 12px; margin-right: 4px; }
.pay-steps .btn-primary b { background: #fff; color: var(--fill); }
.pay-warn { border: 1px solid #e8c766; background: #fff8e1; border-radius: 10px; padding: .5rem .8rem; margin-bottom: .8rem; }
.pay-warn p { margin: .2rem 0; } .pay-stray { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.pay-grid { font-size: 13px; } .pay-grid th { font-size: 11.5px; line-height: 1.2; vertical-align: bottom; }
.pay-grid td { padding: .2rem .3rem; } .pay-grid td.c { text-align: center; }
.pay-grid input[type=text] { padding: .25rem .4rem; font-size: 13px; }
.pay-grid input.g-num { width: 78px; text-align: right; }
.pay-grid input.pay-id { width: 56px; } .pay-grid input.pay-name { width: 170px; } .pay-grid input.pay-dept { width: 150px; }
.pay-grid input.pay-auto { background: #f3f5f6; color: #3b4a52; }
.pay-grid input.pay-ov, .pay-grid input.pay-entry { background: #fff6c2; }
.pay-grid .pay-dash { display: block; text-align: center; color: var(--muted); }
.pay-grid tr.pay-extra td { background: #fafbfc; }
.pay-dup { border: 1px solid var(--rule-soft); border-radius: 10px; margin: 0 0 .8rem; padding: .4rem .8rem .7rem; }
.pay-dup legend { font-weight: 800; } .pay-dup > label { display: block; margin-top: .3rem; }
.ret-days input { padding: .3rem .45rem; font-size: 13px; }
.ret-days input.g-num { width: 100px; text-align: right; }
.ret-days td:last-child input { width: 100%; min-width: 220px; }
.ret-days tr.ret-today td { background: color-mix(in srgb, var(--fill) 8%, #fff); }
.ret .r { text-align: right; white-space: nowrap; }
.ret tr.muted td { color: var(--steel); }
.ret tr.acct-net td { font-weight: 800; border-top: 2px solid var(--ink); }
/* pencil icons in place of "Edit" */
.pencil-btn { display: inline-flex !important; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: .3rem !important; color: var(--accent); line-height: 0; }
.pencil-btn:hover { color: var(--fill-hover, var(--accent)); }
.pencil-btn svg { display: block; }

/* ================= Credentialing ================= */
.cred-search { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: .4rem; }
.cred-find { flex: 1 1 560px; min-width: 0; }
.cred-title { font-weight: 800; color: var(--head-ink); font-size: 15px; margin-bottom: .35rem; }
.cred-picks { display: grid; grid-template-columns: repeat(4, minmax(170px, 260px)); gap: 0 .8rem; align-items: end; }
.cred-picks .field { margin-bottom: 0; }
.cred-stats { display: grid; grid-template-columns: auto auto; gap: .1rem .4rem; padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); box-shadow: 0 1px 2px rgba(24, 40, 47, .06); }
.cred-stat { display: grid; justify-items: center; min-width: 76px; padding: .15rem .5rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--fill) 8%, #fff); }
.cred-stat b { font-size: 22px; line-height: 1.1; color: var(--head-ink); }
.cred-stat span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
.cred-stat-st { grid-column: 1 / -1; text-align: center; font-size: 11.5px; color: var(--steel); }
.cred-search select { width: 100%; }
.cred-counts { display: grid; gap: .15rem; font-size: 13.5px; color: var(--steel); padding-bottom: .7rem; }
.cred-counts > b { color: var(--head-ink); font-size: 15px; }
.cred-counts b { color: var(--ink); }
.cred-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; margin-top: .6rem; }
.cred-card { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .7rem .9rem; background: var(--surface); min-width: 0; }
.cred-card h3 { margin: 0 0 .4rem; font-size: 15px; }
.table.cred-tbl th { width: 42%; text-align: left; font: 600 12.5px/1.3 var(--f-ui); color: var(--steel); text-transform: none; letter-spacing: 0; padding: .28rem .5rem; background: none; vertical-align: top; }
.cred-tbl td { padding: .28rem .5rem; font-size: 13.5px; overflow-wrap: anywhere; white-space: pre-line; }
.cred-tbl tr.cred-sub th { padding-left: 1.4rem; font-weight: 500; }
.cred-tbl textarea { width: 100%; font-size: 13px; padding: .25rem .4rem; min-height: 30px; }
.cred-tbl tbody tr:nth-child(even) > * { background: #f3f7f9; }
.cred-tbl tbody tr:nth-child(odd) > * { background: #fff; }
.cred-v { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: copy; text-align: left; white-space: pre-line; }
.cred-v:hover { color: var(--accent); text-decoration: underline dotted; }
.cred-roster td, .cred-roster th { white-space: nowrap; font-size: 12.5px; }
.cred .muted { color: var(--steel); }
@media (max-width: 900px) { .cred-picks { grid-template-columns: 1fr; } .cred-panels { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .cred-tbl thead, .cred-tbl tr, .cred-tbl td, .cred-tbl th { display: revert !important; }
  .cred-roster .table thead { display: table-header-group; } .cred-roster .table tr { display: table-row; } .cred-roster .table td { display: table-cell; }
}
.cred-secret th { color: #9f2f25 !important; }
.cred-mask { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.cred-eye { padding: .1rem .4rem !important; font-size: 12px; }
/* values that come from Credentialing */
.cred-lock { display: inline-flex; align-items: center; margin-left: .3rem; color: #7c3aed; cursor: help; vertical-align: -1px; }
input.cred-ro, .cred-ro { background: #f5f3ff !important; color: var(--ink); cursor: not-allowed; }
.cred-dl { display: grid; grid-template-columns: 110px 1fr; gap: .2rem .8rem; margin: .2rem 0; font-size: 13.5px; }
.cred-dl dt { color: var(--steel); font-weight: 600; }
.cred-dl dd { margin: 0; white-space: pre-line; }

/* checklist tasks signed off with a plain checkbox */
.ichk-wrap { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-right: .35em; }
.ichk-wrap + .ichk-wrap, * + .ichk-wrap:not(.big) { margin-left: .15em; }
.ichk-wrap.big { min-width: 46px; }
.ichk { width: 22px; height: 22px; accent-color: var(--done); cursor: pointer; margin: 0; }
.ichk:disabled { cursor: default; }
.ichk-who { font: 700 10.5px/1 var(--f-ui); color: var(--steel); }

.ed-main-head { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); padding: .6rem .9rem; margin-bottom: .5rem; cursor: pointer; font: inherit; color: inherit; }
.ed-main-head .ed-fold { width: 1.2rem; }
.ed-main-head.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; border-bottom: 0; }
.ed-main-head.open + .ed-card { border-top-left-radius: 0; border-top-right-radius: 0; }
.ed-main-sum { color: var(--ink-2, #475569); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-card[hidden] { display: none; }
/* Credentialing → Nexus Forms */
.cf-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 120px; margin: .8rem 0; padding: 1rem; border: 2px dashed var(--rule); border-radius: var(--r-md); background: var(--surface); cursor: pointer; text-align: center; }
.cf-drop span { color: var(--ink-2, #475569); font-size: .9rem; }
.cf-drop.over { border-color: var(--accent, #0891b2); background: color-mix(in srgb, var(--accent, #0891b2) 8%, var(--surface)); }
.cf-drop.busy { opacity: .6; }
.cf-map select { min-width: 260px; }
.cf-fname { font-family: ui-monospace, monospace; font-size: .85rem; }
.cf-val { color: var(--ink-2, #475569); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-pages { display: flex; flex-direction: column; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.cf-page { position: relative; flex: none; background-size: 100% 100%; background-repeat: no-repeat; box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: crosshair; }
.cf-box { position: absolute; display: flex; align-items: center; gap: 2px; background: rgba(255,255,255,.92); border: 1px solid var(--accent, #0891b2); border-radius: 4px; padding: 1px 2px; cursor: default; }
.cf-box select { width: auto; max-width: 220px; font-size: .75rem; padding: 1px 4px; height: auto; }
.cf-box .icon-btn { width: 1.3rem; height: 1.3rem; font-size: .7rem; padding: 0; }
.cf-prev { font-size: .75rem; color: #0f172a; white-space: nowrap; }
.cf-actions { margin-top: .8rem; justify-content: flex-end; align-items: center; }
.cl-mytasks { margin: 0 0 12px; } .cl-mytasks .panel { margin: 0; }
.cf-lib { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .6rem 0 0; }
.cf-libitem { display: inline-flex; align-items: center; gap: 2px; }
.cf-libitem .icon-btn { width: 1.4rem; height: 1.4rem; font-size: .7rem; padding: 0; }
.cred-search-left { justify-content: flex-start; }
.cred-search-left .cred-counts { grid-column: 1 / -1; padding-bottom: .4rem; }

.cred-drag { display: inline-block; width: 1.1rem; margin-right: .45rem; color: var(--steel); cursor: grab; user-select: none; font-size: 15px; line-height: 1; vertical-align: middle; }
.cred-drag:active { cursor: grabbing; }
.cred-tbl tr.dragging { opacity: .45; }
.cred-tbl tr.drop-above > * { box-shadow: inset 0 3px 0 var(--accent, #0891b2); }
.cred-tbl tr.drop-below > * { box-shadow: inset 0 -3px 0 var(--accent, #0891b2); }
/* PXG → Training Kit/Supply Inventory */
.inv-views { margin-bottom: .8rem; }
.inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.inv-stats > div { display: grid; gap: .1rem; padding: .6rem .8rem; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); }
.inv-stats b { font-size: 1.35rem; color: var(--head-ink); }
.inv-stats span { font-size: .8rem; color: var(--steel); }
.inv-stats .bad b { color: #b42318; }
.inv-bar { align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.inv-bar input[type=search] { min-width: 260px; }
.inv-bar .grow { flex: 1; }
.inv-tbl td.num, .inv-tbl th.num { text-align: right; white-space: nowrap; }
.inv-tbl tr.inv-low td { background: #fff5f4; }
.inv-flag { display: inline-block; margin-left: .3rem; padding: 0 .45rem; border-radius: 999px; background: #fde2e0; color: #b42318; font-size: .72rem; font-weight: 700; }
.inv-note { font-size: .8rem; max-width: 380px; }
.inv-acts { white-space: nowrap; text-align: right; }
.inv-acts .btn { margin-left: .2rem; }
.inv-up { color: #067647; font-weight: 700; } .inv-down { color: #b42318; font-weight: 700; }
/* Monthly Numbers → Distribution */
.ds-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-bottom: .6rem; }
.ds-pill { padding: .2rem .7rem; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.ds-pill.ok { background: #e7f6ec; color: #067647; } .ds-pill.warn { background: #fff4d6; color: #93610b; }
.ds-legend { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--steel); }
.ds-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid var(--rule); margin-left: .5rem; }
.ds-legend i.ds-yel { background: #fff7cc; } .ds-legend i.ds-tan { background: #f3e9d7; } .ds-legend i.ds-white { background: #fff; } .ds-legend i.ds-kpi { background: #efe9fb; }
.ds-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .5rem .8rem; margin-bottom: .8rem; }
.ds-names label { display: grid; gap: .15rem; font-size: .8rem; color: var(--steel); font-weight: 600; }
.ds-tbl { min-width: 980px; }
.ds-tbl th:first-child { text-align: left; font-weight: 600; min-width: 290px; }
.ds-tbl thead th { text-align: right; } .ds-tbl thead th:first-child { text-align: left; }
.ds-tbl td { text-align: right; white-space: nowrap; padding: 3px 8px; }
.ds-who { font-size: .72rem; font-weight: 500; color: var(--steel); text-transform: none; letter-spacing: 0; }
.ds-tbl tr.ds-h th { background: var(--surface-2, #f1f5f9); color: var(--head-ink); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: .7rem; }
.ds-tbl td.ds-yel { background: #fffbe6; } .ds-tbl td.ds-tan { background: #faf4ea; }
.ds-tbl tr.ds-kpi th, .ds-tbl tr.ds-kpi td.ds-num { background: #f6f2fd; }
.ds-tbl tr.ds-calc th { font-weight: 700; }
.ds-in { width: 118px; text-align: right; padding: 3px 6px; border: 1px solid #e3d9a8; border-radius: 4px; background: #fff; font: inherit; font-size: .88rem; }
.ds-tan .ds-in { border-color: #e2d3b6; }
.ds-in.ds-fromrec::placeholder { color: #5b4a2a; opacity: 1; }
.ds-in.ds-memo { width: 130px; text-align: left; }
.ds-names .ds-in { width: 100%; text-align: left; }
.ds-unit { margin-left: 2px; color: var(--steel); }
.ds-typed { margin-left: 3px; color: #93610b; font-size: .8rem; }
.ds-sub { font-size: .72rem; color: var(--steel); }
.ds-help { color: var(--steel); cursor: help; font-weight: 400; font-size: .8rem; }
.ds-bad { color: #b42318; font-weight: 700; } .ds-good { color: #067647; }
.ds-status { margin-top: 1.2rem; max-width: 720px; }
.ds-tbl tbody th { text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ink); padding: 3px 10px; vertical-align: middle; }
.ds-tbl tbody tr.ds-h th { text-transform: uppercase; }
.ds-tbl tbody td { vertical-align: middle; font-size: .88rem; }
.ds-tbl .ds-in { height: 28px; min-height: 0; padding: 2px 6px; }
.ds-tbl select { height: 28px; min-height: 0; padding: 0 6px; font-size: .85rem; width: auto; }
.mx-fold { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--head-ink); }
.mx-fold:focus-visible { outline: 2px solid var(--accent, #0891b2); outline-offset: 2px; }
.mx-chev { display: inline-block; transition: transform .15s; }
.mx-shut .mx-chev, .mx-sshut .mx-chev { transform: rotate(-90deg); }
.mx-lsec.mx-shut tr:not(.mx-list) { display: none; }
.mx-secrow th { text-align: left; padding: .35rem .8rem .2rem 1.4rem; font-size: .85rem; position: sticky; left: 0; background: var(--surface); }
.mx-sfold { font-weight: 600; color: var(--steel); }
.mx-list .mx-fold { font-weight: 700; }
.ds-months { margin: 0 0 .8rem; flex-wrap: wrap; } .ds-months .tab { white-space: nowrap; }
.imp-mode { display: flex; align-items: center; gap: .4rem 1.2rem; flex-wrap: wrap; margin-bottom: .6rem; }
.imp-mode .field-label { margin: 0; }
.ti-tbl td.nowrap { display: flex; align-items: center; gap: .4rem; }
.ti-tbl td.nowrap select, .ti-tbl tr[class^="ti-"] select { width: auto; min-width: 130px; }
.ti-tbl tr.ti-heading td { background: var(--surface-2, #f1f5f9); }
.ti-tbl tr.ti-sub td b { font-weight: 600; color: var(--steel); }
/* Training: two-column modules (like the paper form) */
.tr-two { table-layout: fixed; }
.tr-two > tbody > tr.tr-pair > td.tr-half { width: 50%; padding: 0; vertical-align: top; border: 1px solid var(--rule); }
.tr-two .tr-in { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tr-two .tr-in td { border: 0; padding: .4rem .45rem; vertical-align: middle; }
.tr-two .tr-in .c-box { width: 64px; }
.tr-two .tr-in .c-quiz { width: 0; padding: 0; overflow: hidden; }
.tr-two .tr-in .c-quiz:not(:empty) { width: 6.5rem; padding: 0 .2rem; }
.tr-two .tr-in .namebox, .tr-two .tr-in .ibox { min-width: 0; }
.tr-two .tr-in .c-task { width: auto; }
.tr-two .tr-in .c-trainer { width: 8.5rem; }
.tr-two .tr-in .c-trainer .ibox { width: 100%; }
@media (max-width: 900px) { .tr-two > tbody > tr.tr-pair { display: grid; } .tr-two > tbody > tr.tr-pair > td.tr-half { width: 100%; } }
/* Doctor Tools pages (KPI Tracker, P&C, Reconciliation…): the first box sits right under the tabs */
.sheet-tabs:has(+ [data-dt-slot]) { margin-bottom: 0; }
[data-dt-slot] .dt main > section.wrap { padding-top: 0 !important; }
[data-dt-slot] .dt main > section.wrap > .panel:first-child { margin-top: 0; border-top-left-radius: 0; }
/* Chippy: the assistant bubble on every page */
.chippy { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: var(--f-ui, inherit); }
.cp-bubble { width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; background: #fff; box-shadow: 0 4px 16px rgba(15, 40, 50, .25); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.cp-bubble:hover { transform: scale(1.06); }
.cp-bubble img { width: 40px; height: 40px; object-fit: contain; }
.cp-bubble.on { box-shadow: 0 0 0 3px #1fb5c4, 0 4px 16px rgba(15, 40, 50, .25); }
.cp-panel { position: absolute; right: 0; bottom: 72px; width: min(420px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 16px; box-shadow: 0 12px 40px rgba(15, 40, 50, .28); overflow: hidden; border: 1px solid #d6e7ea; }
.cp-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #1fb5c4; color: #fff; }
.cp-head img { width: 34px; height: 34px; background: #fff; border-radius: 50%; padding: 3px; }
.cp-head b { display: block; font-size: 16px; } .cp-head span { font-size: 12px; opacity: .9; }
.cp-head .grow { flex: 1; }
.cp-head .icon-btn { color: #fff; background: transparent; border: 0; }
.cp-tab { background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.cp-tab.on { background: #fff; color: #0b6b75; }
.cp-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6fafb; }
.cp-hello { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid #dceef1; border-radius: 12px; padding: 12px; font-size: 14px; }
.cp-hello img { width: 42px; }
.cp-hello p { margin: 0; }
.cp-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.cp-msg.me { align-self: flex-end; background: #1fb5c4; color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.cp-msg.bot { align-self: flex-start; background: #fff; border: 1px solid #dceef1; border-bottom-left-radius: 4px; }
.cp-msg.bot p { margin: 0 0 .45em; } .cp-msg.bot p:last-child { margin-bottom: 0; }
.cp-msg.bot ol, .cp-msg.bot ul { margin: .2em 0 .5em; padding-left: 1.3em; }
.cp-msg.cp-gap { border-color: #f1d9a6; background: #fffaf0; }
.cp-ref { display: inline-grid; place-items: center; min-width: 16px; height: 16px; margin-left: 2px; padding: 0 3px; border-radius: 8px; background: #e2f6f8; color: #0b6b75; font-size: 10px; font-weight: 700; cursor: pointer; vertical-align: super; line-height: 1; }
.cp-src { margin-top: 6px; font-size: 12.5px; }
.cp-src summary { cursor: pointer; color: #0b6b75; font-weight: 600; }
.cp-srci { margin-top: 6px; padding: 6px 8px; background: #f6fafb; border-radius: 8px; }
.cp-srci p { margin: 3px 0 0; color: #3d4b52; white-space: pre-wrap; max-height: 9em; overflow: auto; }
.cp-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.cp-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9bb4ba; animation: cpdot 1s infinite ease-in-out; }
.cp-typing span:nth-child(2) { animation-delay: .15s; } .cp-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cpdot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cp-ask { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3eef0; background: #fff; align-items: flex-end; }
.cp-ask textarea { flex: 1; resize: none; min-height: 40px; max-height: 140px; border: 1px solid #cfdfe3; border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; }
.cp-ask .btn { height: 40px; min-width: 44px; border-radius: 10px; }
.cp-pad { padding: 14px; overflow-y: auto; flex: 1; font-size: 14px; }
.cp-up { display: inline-flex; margin: 4px 0 12px; cursor: pointer; }
.cp-mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cp-mlist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid #e3eef0; border-radius: 10px; }
.cp-mlist li div { display: grid; } .cp-mlist .muted { font-size: 12px; }
@media print { .chippy { display: none; } }
/* Chippy sits at the bottom of the side menu; the chat opens beside it */
.chippy { left: 12px; right: auto; bottom: 14px; }
.cp-bubble { width: calc(var(--rail) - 34px); height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; background: #1fb5c4; color: #fff; font: inherit; font-weight: 700; font-size: 15px; box-shadow: 0 3px 10px rgba(15, 40, 50, .18); }
.cp-bubble img { width: 32px; height: 32px; background: #fff; border-radius: 50%; padding: 2px; }
.cp-bubble:hover { transform: none; filter: brightness(1.05); }
.cp-bubble.on { box-shadow: 0 0 0 3px #0b6b75; }
.cp-panel { left: 0; right: auto; bottom: 60px; }
.shell .rail { padding-bottom: 80px; }   /* room for the button below the last menu item */
body.rail-closed .cp-bubble, body:not(.menu-open) .cp-bubble.cp-phone { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
body.rail-closed .cp-label { display: none; }
@media (max-width: 860px) {
  .cp-bubble { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .cp-label { display: none; }
  .cp-panel { bottom: 64px; }
}
/* the white Chippy: no white circle behind it on teal; a teal circle where the background is white */
.cp-bubble img, .cp-head img { background: none; padding: 0; border-radius: 0; }
.cp-bubble img { width: 34px; height: 34px; }
body.rail-closed .cp-bubble img { width: 36px; height: 36px; }
.cp-head img { width: 36px; height: 36px; }
.cp-hello img { width: 44px; height: 44px; flex: none; background: #1fb5c4; border-radius: 50%; padding: 5px; }
/* Ask Chippy button: yellow (#FDD531) with the colour Chippy; the colour icon sits in a white circle on the teal header */
.cp-bubble { background: #FDD531; color: #0b4f55; }
.cp-bubble.on { box-shadow: 0 0 0 3px #0b6b75; }
.cp-head img { background: #fff; border-radius: 50%; padding: 3px; }
.cp-hello img { background: none; padding: 0; }
.roles-tabs { margin-bottom: .6rem; flex-wrap: wrap; }
.th-sort button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.th-sort button:focus-visible { outline: 2px solid var(--accent, #0891b2); outline-offset: 2px; }
.th-sort .sort-ind { font-size: .7em; opacity: .45; }
.th-sort.on .sort-ind { opacity: 1; }
/* Groups / Regions: the name column hugs its text so the office names get the room */
.grp-tbl th:first-child, .grp-tbl td:first-child { width: 1%; white-space: nowrap; padding-right: 1.6rem; }
.grp-tbl td.cell-act { width: 1%; }
/* Roles: the group tabs share the full width in one row (they wrap on narrow screens) */
.roles-tabs { flex-wrap: nowrap; padding: 0; }
.roles-tabs { align-items: flex-end; }
.roles-tabs .tab { flex: 0 1 auto; justify-content: center; text-align: center; white-space: nowrap; padding-left: 14px; padding-right: 14px; }
.roles-tabs .roles-add { margin-left: auto; align-self: center; flex: none; margin-bottom: 4px; }   /* + Role on the tab row, at the right */
@media (max-width: 1100px) { .roles-tabs { flex-wrap: wrap; } .roles-tabs .tab { flex: 1 1 auto; } }
/* Users: name and role side by side; offices get the rest */
.users-tbl th:nth-child(1), .users-tbl td:nth-child(1) { width: 1%; white-space: nowrap; padding-right: 1.4rem; }
.users-tbl th:nth-child(2), .users-tbl td:nth-child(2) { width: 1%; white-space: nowrap; padding-right: 1.4rem; }
.users-tbl th:nth-child(4), .users-tbl td:nth-child(4) { width: 1%; white-space: nowrap; }
.users-tbl td.cell-act { width: 1%; }
/* Brands: the office count sits in the middle of the page */
.brands-tbl th:first-child, .brands-tbl td:first-child { width: 50%; }
.brands-tbl th:nth-child(2), .brands-tbl td:nth-child(2) { width: 12%; }
/* Roles: every level column the same skinny width, whichever tab is showing */
.table-grid { min-width: 0; width: auto; }
.table-grid th.th-rot, .table-grid td.lvl { width: 34px; min-width: 34px; max-width: 34px; }
.table-grid th:first-child, .table-grid td:first-child { width: 230px; min-width: 230px; max-width: 230px; box-sizing: border-box; }
.table.table-grid { width: max-content !important; min-width: 0 !important; }   /* never stretch: level columns stay skinny and left-aligned */
/* role editor: each menu group folds */
.perm-fold { all: unset; cursor: pointer; display: flex; align-items: center; gap: .45rem; width: 100%; font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }
.perm-fold:focus-visible { outline: 2px solid var(--accent, #0891b2); outline-offset: 2px; }
.perm-chev { width: 1em; }
.perm-on { margin-left: auto; font-weight: 600; text-transform: none; letter-spacing: 0; opacity: .75; }

/* ---------- PSG → Timeclock ---------- */
.tc .tc-clock { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .9rem 0 1rem; padding: 1rem 1.1rem;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sunken); }
.tc .tc-clock.on { background: var(--fill-soft); border-color: color-mix(in srgb, var(--fill) 45%, var(--rule)); }
.tc .tc-status { margin: 0; font-size: var(--t-md); display: flex; align-items: center; gap: .5rem; }
.tc .tc-since { margin: .2rem 0 0; color: var(--steel); }
.tc .tc-since b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: var(--t-lg); margin-left: .2rem; }
.tc .tc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--done); box-shadow: 0 0 0 4px color-mix(in srgb, var(--done) 22%, transparent); animation: tc-pulse 2s ease-in-out infinite; }
@keyframes tc-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--done) 8%, transparent); } }
@media (prefers-reduced-motion: reduce) { .tc .tc-dot { animation: none; } }
.tc .tc-in-fields { display: flex; align-items: flex-end; gap: .9rem; flex-wrap: wrap; }
.tc .tc-f { display: grid; gap: .25rem; }
.tc .tc-f select { min-width: 12rem; }
.tc .seg label { display: inline-flex; cursor: pointer; }
.tc .seg label + label { border-left: 1px solid var(--rule); }
.tc .seg input { position: absolute; opacity: 0; pointer-events: none; }
.tc .seg span { padding: 0 .9rem; min-height: 38px; display: inline-flex; align-items: center; font: 800 13.5px/1 var(--f-ui); color: var(--steel); background: var(--surface); }
.tc .seg input:checked + span { background: var(--fill); color: #fff; }
.tc .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.tc .tc-nav { display: flex; align-items: center; gap: .3rem; margin: .4rem 0 .6rem; }
.tc .tc-nav select { font-weight: 700; }
.tc .tc-lock { font: 800 11.5px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); background: var(--warn-soft); padding: .3rem .55rem; border-radius: 999px; margin-left: .4rem; }
.tc .tc-strip { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 .8rem; }
.tc .tc-strip > div { display: grid; gap: .15rem; padding: .5rem .85rem; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); min-width: 6.5rem; }
.tc .tc-strip span { font: 800 11px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--steel); }
.tc .tc-strip b { font-size: var(--t-lg); font-variant-numeric: tabular-nums; color: var(--head-ink); }
.tc .tc-states { margin-top: -.3rem; }
.tc .tc-days td, .tc .tc-team td { vertical-align: middle; font-variant-numeric: tabular-nums; }
.tc .tc-days tr.tc-cont td { border-top: 0; }
.tc .tc-days tr.tc-first:not(:first-child) td { border-top: 1px solid var(--rule); }
.tc .tc-days tr.tc-open td { background: var(--fill-soft); }
.tc .tc-kind { font: 700 12px/1 var(--f-ui); padding: .22rem .5rem; border-radius: 999px; background: var(--sunken); }
.tc .tc-travel { background: #e8eefb; color: #1f4fa8; }
.tc .tc-pto { background: #f1ebfb; color: #5b3aa0; }
.tc .tc-now { color: var(--done); font-weight: 700; }
.tc .tc-ot { color: var(--warn); }
.tc .tc-hol { font: 700 11px/1 var(--f-ui); color: #5b3aa0; }
.tc .tc-edited { font: 700 11px/1 var(--f-ui); color: var(--warn); background: var(--warn-soft); padding: .15rem .4rem; border-radius: 999px; white-space: nowrap; }
.tc .tc-note-cell { max-width: 22rem; color: var(--steel); }
.tc .tc-x { color: var(--steel); }
.tc .tc-note { background: var(--warn-soft); color: var(--warn); padding: .6rem .8rem; border-radius: var(--r-sm); margin-top: .8rem; }
.tc .tc-head { align-items: center; }
.tc .tc-team tfoot td { border-top: 1px solid var(--rule); background: var(--sunken); }
.tc .tc-name { margin: .2rem 0 0; }
.tc .tc-sec { margin: 1rem 0 1.6rem; }
.tc .tc-sec h2 { font-size: var(--t-lg); margin: 0 0 .3rem; }
.tc .tc-hols { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .25rem; max-width: 30rem; }
.tc .tc-hols li { display: flex; align-items: center; gap: .6rem; }
.tc .tc-hols li button { margin-left: auto; }
.tc .link-btn { all: unset; cursor: pointer; font-weight: 700; color: var(--accent); }
.tc .link-btn:hover { text-decoration: underline; }
.tc .link-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc .empty-line { color: var(--steel); padding: 1rem 0; }
.tc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 .9rem; }
@media (max-width: 640px) {
  .tc .tc-clock { flex-direction: column; align-items: stretch; }
  .tc .tc-clock .btn-lg { width: 100%; }
  .tc .tc-f select { min-width: 0; width: 100%; }
  .tc .tc-in-fields { display: grid; }
}

/* Provider Numbers: the copy / sensitive-lines note sits under the pickers, full width and centred */
.cred-note { max-width: none !important; width: 100%; grid-column: 1 / -1; flex-basis: 100%; text-align: center; margin: .2rem 0 .8rem; }
/* Roles → Practice Home: an eye for each section a role sees, a struck-through eye (faint) for one it doesn't */
.table-grid td.sec-eye { text-align: center; }
.table-grid td.sec-eye .lvl-btn, .table-grid td.sec-eye > span { display: inline-flex; align-items: center; justify-content: center; }
.sec-eye .eye-on { color: var(--accent); }
.sec-eye .eye-off { color: var(--steel); opacity: .35; }
.sec-eye .eye-off:hover { opacity: .8; }
/* My Tasks: + Task(s) at the top right of the box; own tasks have a remove ✕ */
.rn-mine > summary .rn-add-task { margin-left: auto; }
.rn-src-todo { background: #e6f6f8; color: #0b6b75; }
.rn-todo-x { border: 0; background: none; color: var(--steel); cursor: pointer; padding: 0 4px; margin-left: 4px; opacity: .6; }
.rn-todo-ed + .rn-todo-x { margin-left: 0; }
.rn-todo-x:hover { opacity: 1; color: var(--bad); }
/* Communications: Templates and + New card sit at the right of the search line */
.cl-bar .cl-bar-act { margin-left: auto; display: inline-flex; gap: .5rem; }
/* My Tasks: + Task(s) in the O&A teal like the other add buttons */
.rn-mine > summary .rn-add-task { background: var(--fill); border-color: var(--fill); color: #fff; }
.rn-mine > summary .rn-add-task:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
/* Timeclock: two-tap clock-in (location, then function), the Functions list and Holiday pay by role */
.tc .tc-clock.tc-pick { display: block; }
.tc .tc-step-h { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .6rem; font-weight: 700; font-size: var(--t-md); }
.tc .tc-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fill); color: #fff; font-size: 13px; }
.tc .tc-locq { max-width: 16rem; margin-left: auto; }
.tc .tc-st { margin-left: auto; } .tc .tc-st select { min-width: 10rem; }
.tc .tc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .5rem; }
.tc .tc-tile { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .8rem 1rem; min-height: 52px; border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--surface); font: 600 15px/1.25 var(--f-ui); color: var(--ink); cursor: pointer; transition: background .12s, border-color .12s; }
.tc .tc-tile:hover { background: #f4f7f6; border-color: #cfd8d4; }
.tc .tc-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tc .tc-tile.on, .tc .tc-tile:disabled { opacity: .5; cursor: default; }
.tc .tc-tdot { width: 14px; height: 14px; border-radius: 50%; background: #9bb386; flex: none; }
.tc .tc-tile-loc .tc-tdot { background: var(--fill); }
.tc .tc-tile-travel { border-style: dashed; } .tc .tc-tile-travel .tc-tdot { background: #1f4fa8; }
.tc .tc-step-in { flex-basis: 100%; margin-top: .4rem; }
.tc .tc-f { max-width: 20rem; }
.tc .tc-h3 { font-size: var(--t-md); margin: 1.2rem 0 .2rem; }
.tc .tc-hroles { display: flex; flex-wrap: wrap; gap: .4rem; }
.tc .tc-hrole { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; border: 1px solid color-mix(in srgb, var(--rc) 35%, var(--rule)); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--rc); background: var(--surface); }
.tc .tc-hrole:has(input:checked) { background: color-mix(in srgb, var(--rc) 12%, #fff); }
.tc .tc-hrole input { accent-color: var(--rc); }
.tc .tc-warnline { color: var(--warn); }
/* Timeclock Setup: two-column functions, inline workweek, four-column holiday roles, holidays list, PTO */
.tc-fnlist { list-style: none; padding: 0; margin: .5rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem .9rem; }
.tc-fnlist li { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem; border: 1px solid var(--rule-soft); border-radius: var(--r-sm); background: var(--surface); }
.tc-fnlist li button { margin-left: auto; }
.tc .tc-inline { display: inline-flex; align-items: center; gap: .5rem; margin: .2rem 0 .3rem; }
.tc .tc-inline .field-label { margin: 0; }
.tc .tc-inline select { width: auto; min-width: 10rem; }
.tc .tc-inline input[type=number] { width: 5.5rem; }
.tc .tc-inline-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.tc .tc-hroles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.tc .tc-hrole { gap: .55rem; padding: .35rem .8rem; }
.tc .tc-hrole span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc .tc-hols { max-width: 46rem; gap: .3rem; }
.tc .tc-hols li { display: grid; grid-template-columns: 12rem 1fr auto; align-items: center; gap: .8rem; padding: .3rem .6rem; border: 1px solid var(--rule-soft); border-radius: var(--r-sm); background: var(--surface); }
.tc .tc-hols li button { margin-left: 0; }
.tc .tc-hol-act { display: inline-flex; align-items: center; }
.tc-geartab { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; }
.tc .tc-strip-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; margin-bottom: .8rem; }
.tc .tc-strip-row .tc-strip { margin: 0; }
.tc .tc-pto { display: grid; gap: .15rem; padding: .5rem .9rem; border: 1px solid color-mix(in srgb, #5b3aa0 30%, var(--rule)); border-radius: var(--r-sm); background: #f8f5fd; margin-left: auto; }
.tc .tc-pto span { font: 800 11px/1 var(--f-ui); letter-spacing: .07em; text-transform: uppercase; color: #5b3aa0; }
.tc .tc-pto b { font-size: var(--t-lg); color: #3f2775; font-variant-numeric: tabular-nums; }
.tc .tc-pto small { color: var(--steel); }
@media (max-width: 900px) { .tc-fnlist { grid-template-columns: 1fr; } .tc .tc-hroles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tc .tc-hols li { grid-template-columns: 1fr auto; } .tc .tc-pto { margin-left: 0; } }
.tc-grid[hidden], [data-rep][hidden] { display: none !important; }
/* Timeclock → My PTO: the bubble (earned / used / max) and legend */
.tc .tc-year { font-size: var(--t-lg); color: var(--head-ink); min-width: 3.2rem; text-align: center; }
.tc .tc-ptobox { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin: .6rem 0 1.2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); }
.tc .tc-bubble { position: relative; width: 180px; height: 180px; flex: none; }
.tc .tc-bubble circle { fill: none; stroke-width: 16; stroke-linecap: round; }
.tc .tc-bubble .b-track { stroke: #ece6f6; stroke-linecap: butt; }
.tc .tc-bubble .b-earned { stroke: #a78bdb; }
.tc .tc-bubble .b-used { stroke: #4b2a8c; }
.tc .tc-bubble .b-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.tc .tc-bubble .b-mid b { font-size: 1.7rem; color: #3f2775; font-variant-numeric: tabular-nums; }
.tc .tc-bubble .b-mid span { font: 800 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.tc .tc-ptolegend { margin: 0; display: grid; gap: .45rem; min-width: 16rem; }
.tc .tc-ptolegend > div { display: flex; justify-content: space-between; gap: 2rem; }
.tc .tc-ptolegend dt { display: flex; align-items: center; gap: .5rem; color: var(--steel); font-weight: 600; }
.tc .tc-ptolegend dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.tc .tc-ptolegend i { width: 12px; height: 12px; border-radius: 50%; }
.tc .k-earned { background: #a78bdb; } .tc .k-used { background: #4b2a8c; } .tc .k-max { background: #ece6f6; border: 1px solid #d5c9ec; }
.tc .tc-ptoleft { border-top: 1px solid var(--rule); padding-top: .45rem; }
.tc .tc-ptoleft dt { color: var(--ink); } .tc .tc-ptoleft dd { color: #3f2775; font-size: var(--t-md); }
.tc .tc-ptolegend .sub { margin: .2rem 0 0; max-width: 34ch; }
.tc .tc-ptotbl td { font-variant-numeric: tabular-nums; }
/* Sign in: email + password under the Google button */
.gate-or { display: flex; align-items: center; gap: .7rem; color: var(--steel); font-size: var(--t-sm); margin-top: .3rem; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.gate-pw { display: grid; gap: .55rem; }
.gate-pw .field { margin: 0; }
.gate-hint { margin: 0; color: var(--steel); font-size: var(--t-sm); }
.gate-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .1rem 0 0; font-size: var(--t-sm); }
.gate-links a { color: var(--accent); }
.gate-card { justify-self: center; }
/* Office + Month bar (Reconciliation's), used by Distribution and the EFT Log */
.om-bar { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); margin: .4rem 0 1rem; }
.om-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding: .75rem 1rem; }
.om-l { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 15px; }
.om-l select, .om-l input { width: auto; font: inherit; font-weight: 500; }
.om-l select { min-width: 13rem; }
.om-extra { margin-left: auto; color: var(--steel); font-size: var(--t-sm); }
.om-months { display: flex; flex-wrap: wrap; gap: 6px; padding: .55rem 1rem .7rem; border-top: 1px solid var(--rule-soft); }
.om-months:empty { display: none; }
.om-mtab { border: 1px solid #d6dce0; background: #fff; border-radius: 999px; padding: 4px 14px; font: 600 13.5px/1.4 var(--f-ui); cursor: pointer; white-space: nowrap; color: var(--ink); }
.om-mtab:hover { background: var(--sunken); }
.om-mtab.on { background: #1fb5c4; border-color: #1fb5c4; color: #fff; font-weight: 800; }
.om-mtab.on .muted { color: #e6fbfd; }
.om-mtab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.om-bar .om-l select, .om-bar .om-l input { padding: .45rem .7rem; min-height: 38px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; font: 500 15px/1.2 var(--f-ui); color: var(--ink); }
/* My Tasks: + Task(s) looks exactly like + New Card */
.cl-mytasks .rn-mine > summary .rn-add-task { font: 700 13.5px/1 var(--f-ui); padding: .5rem .85rem; border: 1px solid var(--fill); border-radius: var(--r-sm); background: var(--fill); color: #fff; box-shadow: none; outline: none; cursor: pointer; }
.cl-mytasks .rn-mine > summary .rn-add-task:hover { background: var(--fill-hover); border-color: var(--fill-hover); }
.cl-mytasks .rn-mine > summary .rn-add-task:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rail-badge.rail-chat { margin-left: 4px; background: #7c3aed; }
.rail-badge + .rail-badge.rail-chat { margin-left: 4px; }
.rail-badge[hidden] + .rail-badge.rail-chat { margin-left: auto; }
/* EFT Log: search on the left, the buttons on the same line at the right */
.eft-toolbar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 .8rem; }
.eft-toolbar .eft-search { flex: 0 1 26rem; margin: 0; }
.eft-toolbar .eft-search input { width: 100%; }
.eft-toolbar .eft-actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
/* ---------- Communications → Chat ---------- */
.cl-views { margin: .2rem 0 0; }
/* the Tasks / Chats tabs sit right on My Tasks and the chat box, like folder tabs */
.cl-views + .cl-mytasks { margin-top: -1px; } .cl-views + .cl-mytasks .panel { border-top-left-radius: 0; }
.cl-views + .cl-chat .ch { margin-top: -1px; border-top-left-radius: 0; }
.cl-chatn { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #7c3aed; color: #fff; font-size: 11px; margin-left: 4px; }
.ch { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - 210px); min-height: 480px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.ch-side { display: flex; flex-direction: column; border-right: 1px solid var(--rule); background: #fafbfb; min-height: 0; }
.ch-side-top { display: flex; gap: .4rem; padding: .7rem; border-bottom: 1px solid var(--rule-soft); }
.ch-side-top input { flex: 1; min-width: 0; }
.ch-list { flex: 1; overflow-y: auto; padding: .3rem .4rem .8rem; }
.ch-h { display: flex; align-items: center; justify-content: space-between; margin: .8rem .5rem .3rem; font: 800 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.ch-hadd { border: 0; background: none; color: var(--accent); font: 800 16px/1 var(--f-ui); cursor: pointer; padding: 0 .2rem; }
.ch-none { color: var(--steel); font-size: var(--t-sm); margin: .2rem .5rem; }
.ch-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: .55rem; align-items: center; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.ch-item:hover { background: #eef2f3; }
.ch-item.on { background: var(--fill-soft); }
.ch-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ch-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #dfe7ea; color: var(--head-ink); font: 800 12.5px/1 var(--f-ui); }
.ch-av-office { background: #e6f6f8; font-size: 16px; } .ch-av-team { background: #efe9fb; color: #5b3aa0; font-size: 16px; } .ch-av-group { background: #eef2ff; font-size: 15px; }
.ch-it { display: grid; min-width: 0; }
.ch-nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-last { color: var(--steel); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-item.un .ch-nm { font-weight: 800; } .ch-item.un .ch-last { color: var(--ink); }
.ch-when { display: grid; justify-items: end; gap: 4px; color: var(--steel); font-size: 11.5px; }
.ch-dot { width: 9px; height: 9px; border-radius: 50%; background: #7c3aed; }
.ch-mail { display: flex; gap: .45rem; align-items: center; padding: .6rem .8rem; border-top: 1px solid var(--rule-soft); font-size: 12.5px; color: var(--steel); }
.ch-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.ch-main.drop::after { content: "Drop to attach"; position: absolute; inset: 8px; display: grid; place-items: center; border: 2px dashed var(--fill); border-radius: var(--r-md); background: rgba(230, 246, 248, .85); font-weight: 800; color: var(--head-ink); }
.ch-empty { margin: auto; color: var(--steel); text-align: center; padding: 2rem; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--rule-soft); }
.ch-title h2 { margin: 0; font-size: var(--t-md); }
.ch-title p { margin: .1rem 0 0; color: var(--steel); font-size: 12.5px; max-width: 70ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-tools { display: flex; gap: .2rem; }
.ch-msgs { flex: 1; overflow-y: auto; padding: .6rem 1rem 1rem; display: flex; flex-direction: column; }
.ch-day { text-align: center; margin: .9rem 0 .4rem; } .ch-day span { font: 700 11.5px/1 var(--f-ui); color: var(--steel); background: var(--sunken); padding: .3rem .7rem; border-radius: 999px; }
.ch-msg { position: relative; max-width: min(75%, 640px); margin-top: .55rem; align-self: flex-start; }
.ch-msg.join { margin-top: .15rem; }
.ch-msg.mine { align-self: flex-end; }
.ch-meta { display: flex; gap: .5rem; align-items: baseline; font-size: 12px; color: var(--steel); margin: 0 .3rem .15rem; }
.ch-meta b { color: var(--ink); font-size: 12.5px; }
.ch-msg.mine .ch-meta { justify-content: flex-end; }
.ch-bubble { padding: .5rem .75rem; border-radius: 14px; background: #f0f2f4; line-height: 1.4; overflow-wrap: anywhere; }
.ch-msg.mine .ch-bubble { background: #d9f2f5; }
.ch-bubble a { color: var(--accent); }
.ch-files { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; }
.ch-bubble > .ch-files:first-child { margin-top: 0; }
.ch-img { border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.ch-img img { display: block; max-width: 260px; max-height: 220px; object-fit: cover; background: #e5e9eb; min-width: 80px; min-height: 60px; }
.ch-filechip { border: 1px solid var(--rule); background: #fff; border-radius: 8px; padding: .35rem .6rem; font: 600 13px/1.2 var(--f-ui); cursor: pointer; color: var(--ink); }
.ch-cardlink { display: inline-block; margin-top: .35rem; font-size: 12px; font-weight: 700; }
/* the bar sits on the bubble's outer edge and grows toward the middle of the chat, so a short message never pushes it off the side */
.ch-acts { position: absolute; top: -10px; left: 6px; display: none; gap: 2px; white-space: nowrap; z-index: 3; background: #fff; border: 1px solid var(--rule); border-radius: 8px; padding: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.ch-msg.mine .ch-acts { left: auto; right: 6px; }
.ch-msg:hover .ch-acts, .ch-msg:focus-within .ch-acts { display: flex; }
.ch-acts:empty { display: none !important; }
.ch-acts button { border: 0; background: none; font: 700 12px/1 var(--f-ui); color: var(--accent); padding: .3rem .45rem; border-radius: 6px; cursor: pointer; }
.ch-acts button:hover { background: var(--sunken); }
.ch-pending { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 1rem 0; }
.ch-pchip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .5rem; border: 1px solid var(--rule); border-radius: 8px; font-size: 13px; background: #fff; }
.ch-pchip button { border: 0; background: none; cursor: pointer; color: var(--steel); }
.ch-compose { display: flex; align-items: flex-end; gap: .5rem; padding: .7rem 1rem .9rem; border-top: 1px solid var(--rule-soft); }
.ch-compose textarea { flex: 1; resize: none; min-height: 40px; max-height: 180px; padding: .55rem .75rem; border-radius: 10px; line-height: 1.4; }
.ch-attach { border: 1px solid var(--rule); background: #fff; border-radius: 10px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--steel); cursor: pointer; flex: none; }
.ch-attach:hover { color: var(--ink); background: var(--sunken); }
.ch-compose .btn { height: 40px; }
.ch-pfind { width: 100%; margin-bottom: .5rem; }
.ch-plist { max-height: 300px; overflow-y: auto; display: grid; gap: .2rem; border: 1px solid var(--rule-soft); border-radius: var(--r-sm); padding: .4rem .6rem; }
.ch-pp small { margin-left: .3rem; }
@media (max-width: 860px) {
  .ch { grid-template-columns: 1fr; height: auto; }
  .ch-side { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 280px; }
  .ch-main { min-height: 60vh; }
  .ch-msg { max-width: 90%; }
}
/* Marketing → Citations: values from Provider Numbers (PN) are read-only; every value copies on click */
.mk-info .mk-edit { display: flex; align-items: center; gap: .3rem; min-width: 0; }
.mk-info .mk-edit input { flex: 1; min-width: 0; }
.mk-info .mk-copy { flex: 1; min-width: 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: .3rem .45rem; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; font: inherit; color: var(--ink); cursor: copy; }
.mk-info .mk-copy:hover { background: var(--fill-soft); border-color: color-mix(in srgb, var(--fill) 40%, var(--rule)); }
.mk-info .mk-fromcred .mk-copy { background: #f5f7fb; }
.mk-info .mk-fromcred .mk-copy:hover { background: var(--fill-soft); }
.mk-info .mk-cp { flex: none; border: 1px solid var(--rule); background: #fff; border-radius: var(--r-sm); width: 28px; height: 28px; cursor: copy; color: var(--steel); }
.mk-info .mk-cp:hover { color: var(--ink); background: var(--sunken); }
.mk-info .mk-open { flex: none; text-decoration: none; padding: 0 .2rem; color: var(--accent); font-weight: 700; }
.mk-pn { display: inline-block; font: 800 9.5px/1 var(--f-ui); letter-spacing: .04em; color: #4f46e5; background: #eef0ff; border-radius: 4px; padding: 2px 4px; vertical-align: 1px; text-transform: none; }
/* ---------- PSG → Invoicing ---------- */
.inv .inv-months { margin: .2rem 0 .8rem; }
.inv .inv-head { align-items: center; margin-bottom: .5rem; }
.inv .inv-grand { font-size: var(--t-md); color: var(--head-ink); }
.inv .inv-tbl { font-size: 12.5px; }
.inv .inv-tbl th { white-space: normal; min-width: 76px; vertical-align: bottom; }
.inv .inv-tbl th small { display: block; font-weight: 600; color: var(--steel); text-transform: none; letter-spacing: 0; }
.inv .inv-tbl .inv-gr th, .inv .inv-g { text-align: center; background: var(--sunken); }
.inv .inv-tbl td { padding: .25rem .4rem; vertical-align: middle; }
.inv .inv-tbl .g-num { width: 84px; text-align: right; padding: .2rem .35rem; font-size: 12.5px; }
.inv .inv-auto .g-num::placeholder, .inv .inv-auto { color: #6b7280; }
.inv .inv-auto .g-num { background: #f6f7f9; }
.inv .inv-total { background: var(--fill-soft); }
.inv .inv-st { min-width: 64px; font-size: 10.5px; }
.inv .inv-chk { display: inline-grid; justify-items: center; gap: 1px; cursor: pointer; }
.inv .inv-chk small { font-size: 10px; color: var(--steel); }
.inv .inv-partner td { background: #fbfaf6; }
.inv .inv-mkt-top { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.inv .inv-mkt-top label { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.inv .inv-mkt-top input { width: 110px; text-align: right; }
.inv .inv-track td { white-space: nowrap; }
.inv .inv-ok { color: var(--done); font-weight: 700; }
.inv .inv-due { background: var(--warn-soft); }
.inv tfoot td { background: var(--sunken); border-top: 1px solid var(--rule); }
.inv .inv-months select { width: auto; min-width: 9rem; margin-left: .3rem; }

/* ---------- PSG → Accounts Receivable ---------- */
.ar-bar input[type=search] { width: min(22rem, 100%); }
.ar-hint { margin: 0 0 .8rem; }
.ar-sec { margin: 0 0 1.6rem; }
.ar-sec h2 { font-size: 1.02rem; margin: 0 0 .35rem; display: flex; gap: .5rem; align-items: baseline; }
.ar-n { font-size: .8rem; font-weight: 400; }
.ar-addtop { margin: 0 0 .6rem; }
.ar-ofc { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; margin: 0 0 .8rem; font-size: .9rem; }
.ar-fold { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); margin: 0 0 .8rem; overflow: clip; }
.ar-fold > summary { list-style: none; cursor: pointer; padding: .75rem 1rem; display: flex; align-items: center; }
.ar-fold > summary::-webkit-details-marker { display: none; }
.ar-fold > summary::after { content: ''; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg); transition: transform .15s; }
.ar-fold[open] > summary::after { transform: rotate(45deg); }
.ar-fold > summary:hover { background: var(--sunken); }
.ar-fold > summary h2 { margin: 0; }
.ar-fold[open] > summary { border-bottom: 1px solid var(--rule); }
.ar-fold-b { padding: .8rem 1rem 1rem; }
.ar-note { white-space: normal; background: var(--fill-soft, #f3f6fb); border-radius: var(--r-sm, 6px); padding: .5rem .7rem; margin: 0 0 .5rem; font-size: .88rem; }
.ar-tbl { font-size: .86rem; }
.ar-tbl th { position: sticky; top: 0; background: #fff; white-space: nowrap; }
.ar-tbl td { vertical-align: top; min-width: 7rem; }
.ar-tbl td.ar-cell { white-space: normal; }
.ar-tbl.ar-c1 td, .ar-tbl.ar-c2 td:last-child { min-width: 0; }
/* Templates: alternating rows, and the boxes for editing in line */
.ar-tbl tr.ar-z > td { background: var(--surface, #fff); }
.ar-tbl tr.ar-z.ar-alt > td { background: #f2f7f9; }
.ar-tbl tr.ar-inl > td { background: #fffbea; vertical-align: top; }
.ar-tbl tr.ar-inl textarea { width: 100%; min-width: 12rem; font: inherit; padding: .4rem .5rem; border: 1px solid var(--rule); border-radius: 6px; resize: vertical; }
.ar-inl-acts { white-space: nowrap; }
.ar-inl-acts .btn + .btn, .ar-inl-name .btn + .btn { margin-left: 4px; }
.ar-inl-g { display: flex; align-items: center; gap: .6rem; } .ar-inl-g input { flex: 0 1 320px; padding: .35rem .5rem; border: 1px solid var(--rule); border-radius: 6px; font: inherit; }
.ar-inl-name { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.ar-inl-name input { min-width: 14rem; padding: .3rem .5rem; border: 1px solid var(--accent); border-radius: 6px; font: inherit; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ar-tbl th .ar-hed { margin-left: 2px; opacity: .55; } .ar-tbl th:hover .ar-hed { opacity: 1; }
.ar-grp th { background: #f1f4f8 !important; text-align: left; font-weight: 700; padding: .45rem .5rem; position: static; white-space: normal; }
.ar-ginfo { display: block; font-weight: 400; font-size: .8rem; color: var(--muted, #667); margin-top: .15rem; }
.ar-copy { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--rule, #dde); border-radius: var(--r-sm, 6px); padding: .3rem .45rem; cursor: copy; }
.ar-copy:hover { background: var(--fill-soft, #eef3fb); border-color: color-mix(in srgb, var(--fill, #2563eb) 40%, var(--rule, #dde)); }
.ar-acts { white-space: nowrap; width: 1%; }
.ar-chk { text-align: center; width: 1%; } .ar-chk input { width: 18px; height: 18px; cursor: pointer; } .ar-yes { color: #1d6b3d; font-weight: 800; }
/* Templates: ✎ ✕ in line on each row, faint until the row is hovered */
.ar-t-templates .ar-acts .btn, table[class*="ar-t-"] .ar-acts .btn { padding: 2px 6px; }
.ar-fold .ar-acts .btn { opacity: .45; }
.ar-hed { margin-left: .4rem; padding: 1px 6px; opacity: .45; font-weight: 400; }
.ar-hed:hover, .ar-hed:focus-visible { opacity: 1; }
/* Accounts Receivable: its tabs stay on one row (they shrink to fit) */
.ua-tabs.ar-tabs { flex-wrap: nowrap; gap: 3px; }
.ua-tabs.ar-tabs button { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding: 10px 12px; }
/* drag to reorder (AR Templates): a grip at the left of each row and category */
.ck-due { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #e8f0fb; color: #1e4f8f; white-space: nowrap; }
.ck-due.late { background: #fde2e2; color: #a31d1d; }
.ck-drag { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 16px; height: 22px; margin-right: 4px; color: #a3b0b7; cursor: grab; border-radius: 4px; vertical-align: middle; }
.ck-drag:hover { color: var(--ink); background: #eef2f4; }
.ck-dragging { opacity: .45; }
li.ck-over { box-shadow: inset 0 2px 0 var(--fill, #1e6fd9), inset 0 -2px 0 var(--fill, #1e6fd9); }
/* My Tasks: drag handle at the left of each open task */
.rn-drag { display: inline-flex; align-self: center; align-items: center; justify-content: center; flex: none; width: 16px; height: 20px; margin-right: 2px; color: #a3b0b7; cursor: grab; border-radius: 4px; }
.rn-drag:hover { color: var(--ink); background: #eef2f4; }
.rn-dragging { opacity: .45; }
li.rn-over { box-shadow: inset 0 2px 0 var(--fill, #1e6fd9), inset 0 -2px 0 var(--fill, #1e6fd9); }
.ar-dragc { width: 1%; padding-left: 4px !important; padding-right: 0 !important; }
.ar-drag { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 22px; color: #9aa8b0; cursor: grab; border-radius: 4px; }
.ar-drag:hover { color: var(--ink); background: #eef2f4; }
.ar-drag:active { cursor: grabbing; }
.ar-dragsec { margin-right: .5rem; }
.ar-dragging { opacity: .45; }
tr.ar-over > * { box-shadow: inset 0 2px 0 var(--fill, #1e6fd9), inset 0 -2px 0 var(--fill, #1e6fd9); }
details.ar-over { box-shadow: 0 0 0 2px var(--fill, #1e6fd9); }
.ar-fold tr:hover .ar-acts .btn, .ar-fold .ar-acts .btn:focus-visible { opacity: 1; }
.ar-upd { font-size: .8rem; margin-top: .6rem; }
.ar-doc { max-width: 60rem; line-height: 1.55; padding: .4rem .2rem; }
.ar-contract .ar-rich { min-height: 22rem; max-width: 60rem; }
.ar-edbar { max-width: 60rem; margin-top: .6rem; }
.ar-implist { margin: .4rem 0 .6rem 1.1rem; padding: 0; font-size: .9rem; }
.ar-implist li { margin: .2rem 0; }

/* ---------- Technology → Equipment Data Sheets ---------- */
.eq-bar select { min-width: 15rem; }
.eq-bar input[type=search] { width: min(18rem, 100%); }
.eq-head { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .5rem 1rem; margin: .2rem 0 .6rem; }
.eq-head .eq-v { display: block; padding: .35rem 0; }
.eq-instr { font-size: .84rem; margin: 0 0 .8rem; }
.eq-h { font-size: 1rem; margin: .4rem 0; }
.eq-tbl { font-size: .88rem; }
.eq-link { cursor: pointer; }
.eq-link:hover td { background: var(--fill-soft, #eef3fb); }
.eq-grid .g-tbl td.g-money input { text-align: right; }
.eq-upd { font-size: .8rem; margin-top: .6rem; }
.ar-grp th { text-transform: none; letter-spacing: normal; font-size: .9rem; color: var(--ink, #111); }
.ar-ginfo { text-transform: none; letter-spacing: normal; }
.eq-grid .g-tbl th { white-space: normal; vertical-align: bottom; }
.ar-bar .grow, .eq-bar .grow { flex: 1; }

/* ---------- PSG → Answering Service ---------- */
.ah-bar .ah-month { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
.ah-bar .grow, .rs-bar .grow, .rs-chips .grow { flex: 1; }
.ah-chips { display: flex; gap: .3rem; flex-wrap: wrap; }
.ah-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .5rem 1rem; margin: .2rem 0 .7rem; }
.ah-tops input { text-align: right; }
.ah-warn { background: #fff7e6; border: 1px solid #f5d48a; border-radius: var(--r-sm, 6px); padding: .45rem .7rem; font-size: .88rem; }
.ah-tbl { font-size: .85rem; }
.ah-tbl th { white-space: nowrap; }
.ah-tbl input { width: 5.2rem; text-align: right; padding: .2rem .35rem; }
.ah-tbl input.ah-auto { background: #f3f5f8; color: var(--muted, #556); }
.ah-tbl .ah-grp th { text-align: center; background: #f1f4f8; border-bottom: 0; }
.ah-tbl tfoot td { font-weight: 700; border-top: 2px solid var(--rule, #dde); }
.ah-stats { margin-top: .9rem; }
.ah-how { font-size: .82rem; margin: .5rem 0 1rem; }
.ah-tiers h2 { font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.ah-tiergrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .7rem; }
.ah-tier { border: 1px solid var(--rule, #dde); border-radius: var(--r-sm, 6px); padding: .6rem .75rem; background: #fff; font-size: .85rem; }
.ah-tier h3 { font-size: .9rem; margin: 0 0 .35rem; }
.ah-tier p { margin: 0; color: var(--muted, #445); }
.ah-impl { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
textarea[data-weave], textarea[data-tier] { width: 100%; font: inherit; margin-bottom: .5rem; }
.ck-cols { display: grid; gap: 1rem; }
.ck-sec h2 { font-size: 1rem; display: flex; gap: .5rem; align-items: baseline; margin: 0 0 .4rem; }
.ck-prog { margin-left: auto; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; background: #eef1f5; }
.ck-prog.all { background: #dcfce7; color: #166534; }
.ck-list { list-style: none; margin: 0; padding: 0; }
.ck-list li { display: flex; align-items: center; gap: .6rem; padding: .45rem .3rem; border-bottom: 1px solid var(--rule-soft, #eef); }
.ck-list li .check { flex: 1; }
.ck-list li.done .check span { color: var(--muted, #667); text-decoration: line-through; }
.ck-by { font-size: .78rem; color: var(--muted, #667); white-space: nowrap; }
.ck-acts { white-space: nowrap; }

/* ---------- PSG → Reconciliation ---------- */
.rs-bar input[type=search] { width: min(16rem, 100%); }
.rs-chips { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin: 0 0 .7rem; }
.rs-chips .fchip b { margin-left: .25rem; }
.rs-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .3rem; }
.rs-pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: .12rem .55rem; border-radius: 999px; white-space: nowrap; }
.rs-none { background: #eef1f5; color: #556; } .rs-dot.rs-none { background: #b6bfcc; }
.rs-prog { background: #e0ecff; color: #1e40af; } .rs-dot.rs-prog { background: #3b82f6; }
.rs-fix { background: #fff1e6; color: #9a3412; } .rs-dot.rs-fix { background: #f97316; }
.rs-ok { background: #dcfce7; color: #166534; } .rs-dot.rs-ok { background: #22c55e; }
.rs-sub { font-size: .75rem; margin-top: .15rem; }
.rs-tbl td { vertical-align: top; }
.rs-bad { color: #b91c1c; font-weight: 600; }
.rs-steps { font-variant-numeric: tabular-nums; }
.fchip { display: inline-flex; align-items: center; gap: .2rem; font: 600 .8rem/1.2 inherit; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--rule, #dde); background: #fff; color: var(--ink, #222); cursor: pointer; }
.fchip:hover { background: var(--fill-soft, #eef3fb); }
.fchip.on { background: var(--fill, #0f4c5c); border-color: var(--fill, #0f4c5c); color: #fff; }
.rs-bar input[type=month], .ah-bar input[type=month], .ah-bar input[type=date] { width: auto; }
.ah-tbl td:nth-child(2) { min-width: 8.5rem; }
/* Users → Add / Edit User: Offices and Groups fold like the role editor's sections */
details.fold-set > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; font-weight: 700; padding: .1rem 0; }
details.fold-set > summary::-webkit-details-marker { display: none; }
details.fold-set > summary .perm-chev { display: inline-block; transition: transform .15s; }
details.fold-set[open] > summary .perm-chev { transform: rotate(90deg); }
details.fold-set[open] > summary { margin-bottom: .5rem; }
/* month rows: "Data available for" + the months of the year picked */
.om-mlabel { align-self: center; font: 700 12px/1.2 var(--f-ui); color: var(--muted, #667); text-transform: uppercase; letter-spacing: .04em; margin-right: .3rem; }
/* Distribution → Distribution Settings */
.ds-namesro { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
.ds-namesro b { font-weight: 700; margin-right: .3rem; }
.dset-sec { margin: 0 0 1.4rem; }
.dset-sec h3 { margin: 0 0 .5rem; font-size: 1rem; }
.dset-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.dset-row .field { min-width: 14rem; }
.dset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .5rem 1rem; }
.dset-tbl { max-width: 44rem; }
.dset-tbl input { width: 10rem; }
.dset input.ds-in { width: 100%; max-width: 22rem; text-align: left; padding: .4rem .55rem; font-size: .95rem; }
.dset-tbl input.ds-in { width: 10rem; }
.dset-tbl { max-width: 60rem; } .dset-tbl input.ds-doc { width: 16rem; max-width: none; } .dset-tbl select { min-width: 12rem; }
.ds-tbl tr.ds-h .ds-fold { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
/* Distribution → Production & Collections */
.pc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .8rem; margin: .4rem 0 1rem; }
.pc-card { border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; padding: .7rem .9rem; }
.pc-card-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.pc-card-b { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; }
.pc-amt { font-size: 1.3rem; font-weight: 800; }
.pc-warn { color: #9a3412; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--r-sm); padding: .35rem .6rem; font-size: .86rem; }
.pc-tbl tr.pc-un td { background: #fff7ed; }
.pc-tbl tfoot td { font-weight: 700; border-top: 2px solid var(--rule); }
/* Distribution: instructions on hover */
.ds-help { cursor: help; }
.ds-tip { position: fixed; z-index: 1000; max-width: 22rem; background: #1f2d33; color: #fff; font: 500 12.5px/1.45 var(--f-ui); padding: .5rem .7rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.18); pointer-events: none; text-transform: none; letter-spacing: normal; }
.dset-tbl select.ds-docsel { width: 16rem; }
/* Monthly Numbers → Organization KPIs */
.ok-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font-size: .8rem; margin: .2rem 0 .5rem; }
.ok-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; border: 1px solid var(--rule); }
.ok-wrap { max-height: 72vh; overflow: auto; }
.ok-tbl { font-size: .8rem; }
.ok-tbl thead th { position: sticky; top: 0; z-index: 2; background: #fff; vertical-align: bottom; }
.ok-tbl .ok-th button { all: unset; cursor: pointer; display: block; white-space: normal; min-width: 5.2rem; max-width: 7rem; text-align: right; font: inherit; line-height: 1.2; }
.ok-tbl .ok-off { position: sticky; left: 0; z-index: 1; background: #fff; white-space: nowrap; text-align: left; }
.ok-tbl thead .ok-off { z-index: 3; }
.ok-tbl td { white-space: nowrap; }
.ok-tbl td.ok-in input { width: 5.5rem; text-align: right; padding: .15rem .35rem; font-size: .8rem; }
.ok-tbl tfoot td, .ok-tbl tfoot th { font-weight: 700; background: #f6f8fa; }
.ok-dist, .ok-legend i.ok-dist { background: #fdf3df; } .ok-as, .ok-legend i.ok-as { background: #e8f1ff; }
.ok-typed, .ok-legend i.ok-typed { background: #fffbe6; } .ok-imp, .ok-legend i.ok-imp { background: #f1f3f5; }
.ok-tbl td.ok-top { font-weight: 800; color: #166534; }
.ok-tbl td.ok-new { background: #dbeafe; font-weight: 700; }
.ok-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem; margin-top: 1rem; }
.ok-card { border: 1px solid var(--rule); border-radius: var(--r-sm); padding: .6rem .8rem; background: #fff; font-size: .86rem; }
.ok-card h3 { margin: 0 0 .4rem; font-size: .95rem; }
.ok-card p { margin: .3rem 0; }
.ok-how { margin: 0 0 .8rem; font-size: .86rem; }
.ok-how summary { cursor: pointer; font-weight: 700; }
.ok-how dt { font-weight: 700; margin-top: .5rem; } .ok-how dd { margin: .1rem 0 0; color: var(--muted); }
.ok-date { max-width: 14rem; }
.ok-links a { margin-right: .4rem; }
.ok-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr)); gap: 1rem; }
.ok-chart { margin: 0; border: 1px solid var(--rule); border-radius: var(--r-sm); background: #fff; padding: .6rem .7rem .3rem; }
.ok-chart figcaption { font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; gap: .5rem; }
.ok-chart svg { width: 100%; height: auto; display: block; }
.ok-grid { stroke: #e6eaee; stroke-width: 1; } .ok-ax { font: 10px var(--f-ui); fill: #6b7680; }
.ok-line { fill: none; stroke: #0f766e; stroke-width: 2.2; } .ok-dot { fill: #0f766e; }
.ok-impl { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.ok-loading { opacity: .5; pointer-events: none; }
.ok-tbl .ok-off { text-transform: none; letter-spacing: normal; font-size: .82rem; font-weight: 500; color: var(--ink); }
.ok-h { font-size: 1rem; margin: .3rem 0 .5rem; } .ok-prev { margin-top: 1rem; } .ok-prev summary { cursor: pointer; font-weight: 700; margin-bottom: .5rem; }
/* Organization KPIs: headings read bottom-to-top (like the workbook) so more columns fit */
.ok-tbl thead th:not(.ok-off) { vertical-align: bottom; text-align: left; padding: .45rem .25rem; height: 11.5rem; font-size: .72rem; letter-spacing: .02em; }
.ok-tbl .ok-vh { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; line-height: 1.15; }
.ok-tbl .ok-th button { display: inline-block; min-width: 0; max-width: none; text-align: left; }
.ok-tbl td { padding-left: .35rem; padding-right: .35rem; }
.ok-tbl td.ok-in input { width: 3.8rem; }
.sec-eye .sec-pen { color: #b45309; }

/* Site Settings → Menu */
.ss-tbl td { vertical-align: middle; }
.ss-tbl tr.ss-g td { background: color-mix(in srgb, var(--g) 8%, #fff); border-top: 2px solid var(--g); }
.ss-tbl tr.ss-g td:first-child b { color: var(--g); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.ss-ind { padding-left: 1.2rem; display: inline-block; }
.ss-name { width: 260px; max-width: 100%; }
.ss-tbl input[type="color"] { width: 38px; height: 28px; padding: 0 2px; border: 1px solid var(--rule); border-radius: 6px; vertical-align: middle; background: #fff; }
.ss-icon { position: relative; }
.ss-icon > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; min-width: 70px; min-height: 30px; padding: .2rem .5rem;
  border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.ss-icon > summary::-webkit-details-marker { display: none; }
.ss-icon > summary img { width: 22px; height: 22px; object-fit: contain; }
.ss-pick { position: absolute; z-index: 30; right: 0; top: calc(100% + 4px); width: 320px; display: flex; flex-wrap: wrap; gap: 4px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: 0 10px 30px -12px rgba(24, 40, 47, .35); }
.ss-pick button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--rule-soft, #e5e7eb); border-radius: 6px; background: #fff; cursor: pointer; }
.ss-pick button img { max-width: 28px; max-height: 28px; }
.ss-pick button.on { outline: 2px solid var(--fill); }
.ss-pick .ss-none { width: auto; padding: 0 .6rem; font: 600 12px var(--f-ui); }
.ss-pick .ss-more { flex-basis: 100%; font-size: 12px; margin-top: .3rem; }
.cell-sub.ic-menu { color: var(--fill); font-weight: 600; }
.ss-gname { font-weight: 700; } input.ss-ind { margin-left: 1.2rem; width: calc(260px - 1.2rem); }
.ss-tbl .ss-mv { width: 34px; white-space: nowrap; padding-right: 0; }
.ss-arrow { border: 1px solid var(--rule); background: #fff; border-radius: 5px; width: 24px; height: 24px; font-size: 10px; line-height: 1; cursor: pointer; color: var(--steel); margin-right: 2px; }
.ss-arrow:hover:not([disabled]) { color: var(--ink); background: var(--sunken); }
.ss-arrow[disabled] { opacity: .3; cursor: default; }
.ss-handle { border: 0; background: none; padding: 6px 6px; border-radius: 5px; color: var(--steel); cursor: grab; display: inline-flex; opacity: .55; }
.ss-handle:hover, .ss-handle:focus-visible { opacity: 1; background: var(--sunken); color: var(--ink); }
.ss-handle:active { cursor: grabbing; }
.ss-tbl tr.ss-dragging td { opacity: .45; }
.ss-tbl tr.ss-drop-before td { box-shadow: inset 0 3px 0 var(--fill); }
.ss-tbl tr.ss-drop-after td { box-shadow: inset 0 -3px 0 var(--fill); }
/* drag handles (lib/draghandle.js) */
.dh-handle { border: 0; background: none; padding: 5px 5px; border-radius: 5px; color: var(--steel); cursor: grab; display: inline-flex; align-items: center; opacity: .55; flex: none; }
.dh-handle:hover, .dh-handle:focus-visible { opacity: 1; background: var(--sunken); color: var(--ink); }
.dh-handle:active { cursor: grabbing; }
.dh-dragging { opacity: .45; }
.dh-before { box-shadow: inset 0 3px 0 var(--fill) !important; }
.dh-after { box-shadow: inset 0 -3px 0 var(--fill) !important; }
tr.dh-before > td { box-shadow: inset 0 3px 0 var(--fill); }
tr.dh-after > td { box-shadow: inset 0 -3px 0 var(--fill); }
td.dh-cell, th.dh-cell { width: 30px; padding-right: 0 !important; }
.ed-task.has-dh > .dh-handle { align-self: flex-start; margin-top: 2px; }
.ed-task.has-dh { grid-template-columns: 26px 3.4rem 1fr auto; }
@media (max-width: 700px) { .ed-task.has-dh { grid-template-columns: 26px 1fr auto; } }
.gear-tab { display: inline-flex !important; align-items: center; justify-content: center; min-width: 46px; }
.gear-tab svg { width: 18px; height: 18px; flex: none; }
.ss-pick { overflow-y: auto; align-content: flex-start; }
/* Users → + Bulk Users */
.bulk-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.bulk-tbl td { vertical-align: top; }
.bulk-bad { color: #b91c1c; }
.bulk-tbl tr.bulk-row-bad td { background: #fef2f2; }
/* Organization KPIs: narrow columns */
.ok-tbl thead th:not(.ok-off) { padding: .45rem .1rem; width: 2.9rem; }
.ok-tbl td { padding-left: .15rem; padding-right: .15rem; }
.ok-tbl td.ok-in input { width: 2.9rem; min-width: 0; padding: .12rem .2rem; font-size: .76rem; }
.table.ok-tbl { width: auto; }
.ok-tbl thead th:not(.ok-off) { width: auto; min-width: 0; padding: .4rem .05rem; }
.ok-tbl td.ok-in input { width: 2.6rem; }
.ok-tbl td { padding-left: .1rem; padding-right: .1rem; }
.table.ok-tbl td, .table.ok-tbl th { padding-left: .15rem; padding-right: .15rem; }
.table.ok-tbl .ok-off { padding-left: .6rem; padding-right: .5rem; }
.cred-pick { width: 100%; }
.ok-revbar { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; margin: .4rem 0 .8rem; }
.ok-revbar .field { margin: 0; }
/* side menu: room for a scrollbar is kept, so opening a long heading never squeezes the menu and wraps it */
.rail { scrollbar-gutter: stable; scrollbar-width: thin; }
.rail-head { letter-spacing: .1em; }
.rail-head .rail-hl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rail-head { padding-right: .35rem; }
/* Credentialing pickers: type-to-search with the old grouped list */
.cred-cb { position: relative; }
.cred-cb-list { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 30; max-height: 340px; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: 0 10px 30px -12px rgba(24, 40, 47, .35); padding: .25rem 0; }
.cred-cb-g { font: 800 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); padding: .55rem .75rem .3rem; }
.cred-cb-o { padding: .4rem .75rem .4rem 1.1rem; cursor: pointer; font-size: 14px; }
.cred-cb-o:hover, .cred-cb-o.act { background: var(--sunken); }
.cred-cb-o.cur { font-weight: 700; }
.ok-tbl td.ok-pid input { width: 12.5rem; font-size: .72rem; padding: .12rem .3rem; }
.ok-tbl td.ok-pid { padding-left: .4rem !important; }
/* Organization KPIs → Monthly Numbers: equal columns across the whole page; PSG summary above the table */
.table.ok-tbl.ok-main { width: 100%; table-layout: fixed; min-width: 1350px; }
.ok-main thead th.ok-off, .ok-main tbody th.ok-off, .ok-main tfoot th.ok-off { width: 160px; }
.ok-main thead th:not(.ok-off) { width: auto; }
.ok-main td { overflow: hidden; text-overflow: clip; font-size: .74rem; padding-left: .1rem !important; padding-right: .2rem !important; }
.ok-summary { margin: .2rem 0 1rem; }
.ok-sum-h { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.ok-summary .ok-extra { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.ok-summary .ok-card .table td, .ok-summary .ok-card .table th { padding: .35rem .5rem; }
@media (max-width: 1100px) { .ok-summary .ok-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
details.ok-summary > summary.ok-sum-h { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .35rem; }
details.ok-summary > summary.ok-sum-h::-webkit-details-marker { display: none; }
details.ok-summary > summary.ok-sum-h::before { content: "▸"; display: inline-block; transition: transform .15s; }
details.ok-summary[open] > summary.ok-sum-h::before { transform: rotate(90deg); }
details.ok-summary:not([open]) { margin-bottom: .6rem; }
/* Monthly Numbers grid: compact rows */
.table.ok-main tbody td, .table.ok-main tbody th, .table.ok-main tfoot td, .table.ok-main tfoot th { padding-top: .18rem !important; padding-bottom: .18rem !important; line-height: 1.2; }
.table.ok-main tbody th.ok-off { font-size: .76rem; }
.table.ok-main thead th:not(.ok-off) { height: 9.5rem; }
.ok-chartnote { margin-left: auto; font-size: .78rem; font-weight: 700; color: #b45309; }
.ok-chartnote.ok-chartok { color: #15803d; }
.ok-pidlink { align-self: center; font-size: .85rem; font-weight: 600; }
.cred-titlebar { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .35rem; }
.cred-titlebar .cred-title { margin: 0; }
.cred-stat-tog { display: inline-flex; background: var(--sunken); border-radius: 999px; padding: 2px; gap: 2px; }
.cred-stat-tog button { border: 0; background: none; border-radius: 999px; padding: .25rem .7rem; font: 700 12.5px var(--f-ui); color: var(--steel); cursor: pointer; }
.cred-stat-tog button b { font-weight: 800; opacity: .7; margin-left: .15rem; }
.cred-stat-tog button[aria-pressed="true"] { background: var(--surface); color: var(--head-ink); box-shadow: 0 1px 2px rgba(24, 40, 47, .18); }
.cred-st { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: .3rem; }
.cred-st-active { background: #dcfce7; color: #166534; }
.cred-st-onboarding { background: #dbeafe; color: #1e40af; }
.cred-st-termed { background: #f1f5f9; color: #64748b; }
.cred-stsel { font-size: 12.5px; padding: .2rem .4rem; margin-left: auto; margin-right: .4rem; }
.mk-lock { display: inline-flex; color: #94a3b8; vertical-align: -1px; margin-left: .15rem; cursor: help; }
/* Credentialing → Nexus Forms */
.cf-map input.cf-label { width: 100%; min-width: 220px; font-size: 13px; }
.cf-map input.cf-custom { margin-left: .4rem; width: 220px; font-size: 13px; }
.cf-removed { margin: .5rem 0; font-size: 13px; }
.cf-removed summary { cursor: pointer; color: var(--steel); }
.cf-bulk { margin-top: 1.2rem; padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); }
.cf-bulk h3 { margin: 0 0 .2rem; }
.cf-bulk-row { display: flex; align-items: center; gap: .4rem 1.2rem; flex-wrap: wrap; margin-top: .4rem; }
/* Checklists: a task's instructions open under it */
.ck-list li { flex-wrap: wrap; }
.ck-notes { order: 10; flex-basis: 100%; margin: .15rem 0 0 1.7rem; font-size: .85rem; }
.ck-notes summary { cursor: pointer; color: var(--steel, #3d6470); font-weight: 600; }
.ck-notes > div { white-space: pre-wrap; margin-top: .3rem; padding: .5rem .7rem; background: var(--surface-2, #f5f7f8); border-radius: 6px; color: var(--ink, #1f2428); }
/* Light / Dark mode button (top right; in the ☰ menu on phones). Dark colours: css/dark.css */
.theme-btn .th-moon, .theme-btn .th-sun { display: inline-flex; }
:root:not([data-theme="dark"]) .theme-btn .th-sun, :root[data-theme="dark"] .theme-btn .th-moon { display: none; }
.rail .rail-theme { display: none; margin-top: 1.2rem; border: 0; background: none; text-align: left; font: inherit; font-weight: 600; cursor: pointer; }
.rail .rail-theme + .rail-theme, .rail .rail-theme + .rail-signout { margin-top: .2rem; }   /* the gap only above the first one */
:root:not([data-theme="dark"]) .rail-theme .th-to-light, :root[data-theme="dark"] .rail-theme .th-to-dark { display: none; }
@media (max-width: 860px) { .rail .rail-theme { display: block; } }
/* Nexus Forms: signatures */
.cf-sig { display: block; max-height: 48px; max-width: 220px; object-fit: contain; }
.cf-box-sig { transform: translateY(-100%); flex-wrap: wrap; align-items: flex-end; }
.cf-box-sig .cf-prev { flex-basis: 100%; order: -1; }
.cf-box-sig .cf-sig { max-height: none; max-width: none; height: auto; }
:root[data-theme="dark"] .cf-sig { background: #fff; border-radius: 4px; }
/* ---------- Credentialing → New Doctor Onboarding (pages/psg/onboarding.js, onboard.html) ---------- */
.ob .grow { flex: 1; }
.ob-h { margin: 0; }
.ob-list tbody tr { cursor: pointer; }
.ob-list tbody tr:hover { background: var(--fill-soft); }
.ob-st { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--sunken); color: var(--steel); white-space: nowrap; }
.ob-st-sent, .ob-st-returned { background: var(--warn-soft); color: var(--warn); }
.ob-st-submitted { background: var(--fill-soft); color: var(--accent); }
.ob-st-approved { background: color-mix(in srgb, var(--done) 16%, var(--surface)); color: var(--done); }
.ob-packets { margin-top: 1.4rem; }
.ob-packgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; margin-top: .6rem; }
.ob-pack { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .7rem .9rem; background: var(--surface); }
.ob-pack h3 { margin: 0; font-size: 1rem; }
.ob-pack ul { margin: .4rem 0 0; padding-left: 1.1rem; font-size: .88rem; }
.ob-packlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .3rem 1rem; max-height: 60vh; overflow: auto; }
.ob-top { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .6rem; }
.ob-top h2 { margin: 0; }
.ob-link { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: .3rem 0 .6rem; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--fill-soft); }
.ob-link input { flex: 1; min-width: 240px; font-size: .82rem; }
.ob-nav { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0 .8rem; border-bottom: 2px solid var(--rule); }
.ob-nav button { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: none; padding: .55rem .8rem; font: inherit; font-weight: 700; color: var(--steel); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.ob-nav button.on { color: var(--head-ink); border-bottom-color: var(--fill); }
.ob-n { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--sunken); font-size: .75rem; }
.ob-nav button.on .ob-n { background: var(--fill); color: #fff; }
.ob-miss { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: var(--bad-soft); color: var(--bad); font-size: .7rem; }
.ob-page h2 { margin: 0 0 .1rem; }
.ob-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .2rem 1rem; margin-top: .8rem; }
.ob-grid > * { grid-column: span 6; }
.ob-grid > .ob-half { grid-column: span 3; }
.ob-grid > .ob-third { grid-column: span 2; }
@media (max-width: 700px) { .ob-grid > .ob-half, .ob-grid > .ob-third { grid-column: span 6; } }
.ob-sec { margin: 1rem 0 0; font-size: 1rem; color: var(--head-ink); border-top: 1px solid var(--rule); padding-top: .8rem; }
.ob-req { color: var(--bad); }
.ob-opts { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; padding: .3rem 0; }
.ob-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ob-sig { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .4rem 0; }
.ob-sig img { max-height: 70px; max-width: 300px; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 4px; }
.ob-sig-btns { display: flex; gap: .4rem; }
.ob-loc { border: 1px solid var(--rule); border-radius: var(--r-md); padding: .7rem 1rem; background: var(--sunken); }
.ob-loc h3 { margin: 0 0 .4rem; }
.ob-loc dl { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; margin: 0; }
.ob-loc dt { color: var(--steel); font-weight: 600; }
.ob-loc dd { margin: 0; }
.ob-pager { display: flex; gap: .5rem; align-items: center; margin-top: 1rem; }
.ob-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.ob-actions h3 { margin: 0 0 .3rem; font-size: 1rem; }
.ob-actions .toolbar { flex-wrap: wrap; align-items: center; }
.ob-pad-wrap { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(0,0,0,.45); padding: 1rem; }
.ob-pad { background: var(--surface); border-radius: var(--r-md); padding: 1rem; width: min(640px, 100%); display: grid; gap: .6rem; }
.ob-pad canvas { width: 100%; aspect-ratio: 3 / 1; background: #fff; border: 2px dashed var(--rule); border-radius: 8px; touch-action: none; cursor: crosshair; }
.ob-pad-btns { display: flex; gap: .5rem; }
/* the doctor's page */
.ob-public { background: var(--porcelain); }
.ob-pub-head { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; padding: 1rem clamp(16px, 4vw, 40px); background: var(--surface); border-bottom: 1px solid var(--rule); }
.ob-pub { max-width: 920px; margin: 1.2rem auto 3rem; padding: 1rem clamp(16px, 3vw, 28px) 1.4rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); }
.ob-foot { margin-top: .8rem; }
.ob-done { text-align: center; padding: 2rem 1rem; }
.ob-done h1 { margin-bottom: .6rem; }
.ob-file { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; padding: .3rem 0; }
.ob-file-name { font-weight: 600; }
.ob-inline { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; }
/* Onboarding step bar: arrows like the Plato form, each with a check when complete or how many answers are left */
.ob-prog { margin: .4rem 0 .6rem; }
.ob-prog-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: var(--steel); margin-bottom: .3rem; }
.ob-prog-top b { color: var(--ink); }
.ob-prog-bar { height: 8px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.ob-prog-bar > span { display: block; height: 100%; background: var(--done); border-radius: inherit; transition: width .3s; }
.ob-steps { display: flex; flex-wrap: wrap; gap: 4px 2px; margin: .6rem 0 1rem; }
.ob-step { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .5rem; align-items: center; text-align: left;
  min-width: 180px; padding: .45rem 1.6rem .45rem 1.4rem; border: 0; cursor: pointer; font: inherit;
  background: var(--fill-soft); color: var(--accent); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); }
.ob-step:first-child { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); border-radius: 6px 0 0 6px; padding-left: .9rem; }
.ob-step-n { grid-row: span 2; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--surface); font-size: .8rem; font-weight: 800; }
.ob-step-t { font-weight: 700; white-space: nowrap; }
.ob-step-s { font-size: .74rem; font-weight: 700; color: var(--bad); }
.ob-step.done { background: color-mix(in srgb, var(--done) 18%, var(--surface)); color: var(--done); }
.ob-step.done .ob-step-n { background: var(--done); color: #fff; }
.ob-step.done .ob-step-s { color: var(--done); }
.ob-step.on { background: var(--fill); color: #fff; }
.ob-step.on .ob-step-n { background: #fff; color: var(--fill); }
.ob-step.on .ob-step-s { color: #fff; opacity: .9; }
.ob-step:hover:not(.on) { filter: brightness(.97); }
.ob-step:focus-visible { outline-offset: -3px; }
@media (max-width: 700px) { .ob-step { min-width: 0; flex: 1 1 45%; } }
.ob-mini { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; white-space: nowrap; }
.ob-mini-bar { width: 60px; height: 6px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.ob-mini-bar > span { display: block; height: 100%; background: var(--done); }
.ob-pack > .row-between { display: flex; align-items: flex-start; gap: .5rem; }
.ob-pack > .row-between h3 { flex: 1; }
.ob-pack > .row-between .btn { flex: none; white-space: nowrap; }
/* Timeclock: Switch Function or Location */
.tc-swloc { display: flex; align-items: flex-end; gap: .4rem 1rem; flex-wrap: wrap; margin: .2rem 0 .7rem; }
.tc-swloc label { display: grid; gap: .15rem; font-size: .85rem; font-weight: 600; }
.tc-swloc select { min-width: 200px; }
/* Timeclock → Summary */
.tc-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.tc-tile-k { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); padding: .6rem .8rem; display: grid; gap: .15rem; }
.tc-tile-k span { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); }
.tc-tile-k b { font-size: 1.35rem; color: var(--head-ink); }
.tc-tasks { margin: 0 0 1.2rem; }
.tc-tasks h3, .tc-sec-h { margin: 0 0 .5rem; font-size: 1rem; }
.tc-bars { display: grid; gap: .35rem; }
.tc-bar-row { display: grid; grid-template-columns: minmax(160px, 260px) 1fr 64px minmax(120px, auto); align-items: center; gap: .6rem; font-size: .9rem; }
.tc-bar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-bar { height: 12px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.tc-bar > span { display: block; height: 100%; background: var(--fill); border-radius: inherit; }
.tc-bar-row b { text-align: right; }
@media (max-width: 700px) { .tc-bar-row { grid-template-columns: 1fr 64px; } .tc-bar-row .tc-bar, .tc-bar-row .muted { grid-column: 1 / -1; } }
.tc-matrix th { white-space: normal; min-width: 80px; font-size: .75rem; }
.table-scroll + .tc-tasks { margin-top: 1.2rem; }
/* Timeclock: time off requests and the Calendar */
.tc-badge { display: inline-grid; place-items: center; min-width: 1.2rem; height: 1.2rem; padding: 0 .3rem; margin-left: .3rem; border-radius: 999px; background: var(--bad); color: #fff; font-size: .7rem; }
.tc-offs { margin: .8rem 0 1rem; }
.tc-offs h3 { margin: 0 0 .4rem; font-size: 1rem; }
.tc-offs ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); }
.tc-off { display: flex; align-items: center; gap: .4rem .9rem; flex-wrap: wrap; padding: .5rem .8rem; border-bottom: 1px solid var(--rule-soft); }
.tc-off:last-child { border-bottom: 0; }
.tc-off .row { margin-left: auto; gap: .3rem; }
.tc-off-k { font-size: .72rem; font-weight: 800; padding: .1rem .5rem; border-radius: 999px; color: #fff; }
.tc-off-st { font-size: .8rem; font-weight: 700; color: var(--steel); }
.tc-off-approved .tc-off-st { color: var(--done); }
.tc-off-denied .tc-off-st { color: var(--bad); }
.tc-off-pending .tc-off-st { color: var(--warn); }
.tc-wait ul { border-color: var(--warn); }
.tc-k-pto { background: #6b4fbb; }
.tc-k-unpaid { background: #64748b; }
.tc-k-pending { background: repeating-linear-gradient(45deg, #b7a6e6, #b7a6e6 4px, #d5cbf2 4px, #d5cbf2 8px); color: #3b2a7a !important; }
.tc-skipwe { align-self: end; padding-bottom: .5rem; }
.tc-calhead { margin: .4rem 0 .5rem; flex-wrap: wrap; gap: .5rem; }
.tc-legend { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; color: var(--steel); margin-right: .4rem; }
.tc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.tc-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; background: var(--rule); gap: 1px; }
.tc-cal-h { background: var(--sunken); padding: .35rem .5rem; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--steel); }
.tc-cal-d { background: var(--surface); min-height: 96px; padding: .3rem .35rem; display: flex; flex-direction: column; gap: 3px; }
.tc-cal-d.out { background: var(--porcelain); }
.tc-cal-d.out .tc-cal-n { opacity: .45; }
.tc-cal-d.today .tc-cal-n { background: var(--fill); color: #fff; border-radius: 999px; padding: 0 .4rem; }
.tc-cal-n { align-self: flex-start; font-size: .8rem; font-weight: 700; }
.tc-cal-hol { font-size: .7rem; font-weight: 700; color: var(--warn); }
.tc-cal-e { display: block; font-size: .74rem; font-weight: 700; color: #fff; border-radius: 4px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .tc-cal-d { min-height: 64px; } .tc-cal-e { font-size: .65rem; } }
/* Timeclock → Summary: the two charts side by side on wide screens */
.tc-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 1.2rem; }
.tc-sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .4rem; vertical-align: middle; }
.tc-stack > span { display: flex; height: 100%; background: none; overflow: hidden; border-radius: inherit; }
.tc-stack > span > i { display: block; height: 100%; min-width: 2px; }
.tc-key { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin-top: .5rem; font-size: .8rem; color: var(--steel); }
@media (max-width: 520px) { .tc-charts { grid-template-columns: 1fr; } }
.tc-charts .tc-bar-row { grid-template-columns: minmax(110px, 170px) minmax(120px, 1fr) 52px auto; }
/* Communications → My Tasks: my task list beside My Cards */
.cl-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: .4rem; }
@media (max-width: 1000px) { .cl-split { grid-template-columns: 1fr; } }
.cl-split > .cl-mytasks { margin: 0; }
.cl-mycards { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); padding: .8rem 1rem 1rem; }
.cl-mycards-h { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule); }
.cl-mycards-h h2 { margin: 0; }
.cl-mycards-h .btn { margin-left: auto; }
.cl-mycards .cl-cards { display: grid; gap: .5rem; }
.cl-empty { padding: .4rem 0; }
.cl-colchip { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: .05rem .45rem; border-radius: 999px; background: var(--sunken); color: var(--steel); }
.cl-colchip-new { color: #4f46e5; } .cl-colchip-review { color: #b45309; } .cl-colchip-followup { color: #b91c1c; }
.rn-src.rn-src-loc { letter-spacing: 0; text-transform: none; }
.cl-views + .cl-cats { margin-top: .8rem; }
/* Chat: who's in Nexus now */
.ch-av { position: relative; }
.ch-on { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c3c9ce; border: 2px solid var(--surface); vertical-align: middle; }
.ch-on.on { background: #22c55e; }
.ch-on.off { background: #3b82f6; }
.ch-on.out { background: #ef4444; }
.ch-av .ch-on { position: absolute; right: -2px; bottom: -2px; }
.ch-pres { white-space: nowrap; }
.ch-pres.on { color: #15803d; font-weight: 700; }
.ch-pres.off { color: #1d4ed8; font-weight: 700; }
/* Communications: the Resolved drop spot on the board, and the Archive */
.cl-dropres { border-style: dashed; background: transparent; }
.cl-dropres p { font-size: .82rem; padding: .3rem .2rem; }
.cl-dropres.over { background: color-mix(in srgb, var(--done) 10%, var(--surface)); }
.cl-arch tbody tr { cursor: pointer; }
.cl-arch tbody tr:hover { background: var(--fill-soft); }
.cl-split + .cl-cats { margin-top: 1.2rem; }
/* Profile pictures (lib/avatar.js) */
.av { display: inline-grid; place-items: center; border-radius: 50%; object-fit: cover; flex: none; vertical-align: middle; }
.av-ini { background: hsl(var(--avh, 190) 45% 88%); color: hsl(var(--avh, 190) 45% 28%); font-weight: 800; letter-spacing: .02em; }
:root[data-theme="dark"] .av-ini { background: hsl(var(--avh, 190) 30% 26%); color: hsl(var(--avh, 190) 50% 82%); }
.setmenu .me-av { padding: .15rem; border-radius: 50%; }
.setmenu .me-av .av { width: 28px; height: 28px; }
.me-photo { display: grid; justify-items: center; gap: .6rem; text-align: center; }
.pp-who { display: flex; align-items: center; gap: .6rem; }
.pp-who > span { display: grid; }
.pp-photo .row { align-items: center; gap: .6rem; }
.ch-av .ch-avimg { width: 100%; height: 100%; }
.ch-meta .ch-mav { width: 22px; height: 22px; margin-right: .35rem; }
.ch-msg.mine .ch-mav { display: none; }
.cl-who .cl-av { width: 18px; height: 18px; margin-right: .1rem; }
.cl-notes .cl-av { width: 20px; height: 20px; margin-right: .35rem; }
.tc-who { display: inline-flex; align-items: center; gap: .45rem; }
.tc-name { display: flex; align-items: center; gap: .6rem; }
/* Communications → Support Staff Schedule */
/* Support Staff Schedule: one panel laid out like Chats (grey people list on the left, the schedule on the right) */
.ss { display: grid; grid-template-columns: 300px minmax(0, 1fr); height: calc(100vh - 210px); min-height: 520px; margin-top: .6rem; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
@media (max-width: 900px) { .ss { grid-template-columns: 1fr; height: auto; } .ss-side { max-height: 340px; border-right: 0; border-bottom: 1px solid var(--rule); } }
.ss-side { display: flex; flex-direction: column; border-right: 1px solid var(--rule); background: #fafbfb; min-height: 0; }
.ss-role > summary { list-style: none; cursor: pointer; }
.ss-role > summary::-webkit-details-marker { display: none; }
.ss-role > summary span:first-child { display: inline-flex; align-items: center; gap: .4rem; }
.ss-role > summary::after { content: "▾"; font-size: 11px; margin-left: .4rem; transition: transform .15s; }
.ss-role:not([open]) > summary::after { transform: rotate(-90deg); }
.ss-n { margin-left: auto; font-weight: 700; letter-spacing: 0; }
.ss-item { grid-template-columns: 34px minmax(0, 1fr) auto; }
.ss-item input { margin: 0; }
.ss-foot { justify-content: flex-start; }
.ss-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ss-body { flex: 1; overflow-y: auto; padding: .4rem 1rem 1rem; }
.ss-main .ch-tools { flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.ss-main { min-width: 0; }
.ss-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .3rem; }
.ss-seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.ss-seg button { border: 0; background: var(--surface); padding: .35rem .8rem; font: inherit; font-weight: 700; cursor: pointer; color: var(--steel); }
.ss-seg button.on { background: var(--fill); color: #fff; }
.ss-week th, .ss-week td { white-space: nowrap; text-align: center; }
.ss-week th.ss-wn { text-align: left; }
.ss-week th.ss-wn { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); }
.ss-wn > div { display: flex; align-items: center; gap: .45rem; font-weight: 700; }
.ss-week .today { background: var(--fill-soft); }
.ss-hrs { font-size: .82rem; font-weight: 600; }
.ss-hrs .ss-mine { display: block; font-size: .7rem; font-weight: 500; color: var(--muted, #64748b); white-space: nowrap; }
.ss-tz { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: rgba(13, 52, 104, .08); color: var(--muted, #64748b); font-size: .66rem; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.me-tz { margin-top: 12px; }
.me-sig { display: block; max-width: 260px; max-height: 80px; margin: 2px 0 8px; background: #fff; border: 1px solid #e3e8eb; border-radius: 6px; padding: 4px; }
.ss-off { display: inline-block; font-size: .72rem; font-weight: 800; color: #fff; border-radius: 4px; padding: 1px 6px; }
.ss-pto { background: #6b4fbb; } .ss-unpaid { background: #64748b; }
.ss-key { font-size: .8rem; color: var(--steel); }
.ss-edit { font-size: .8rem; padding: 0 .2rem; }
.ss-hedit td { padding: .2rem .4rem; }
.ss-meetppl { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .2rem .8rem; max-height: 220px; overflow: auto; }
.ss-meetppl .check span { display: inline-flex; align-items: center; gap: .3rem; }
.ss-rolelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .2rem .8rem; }
/* the connection light now sits at the top right, left of your picture: its card opens leftward */
.setmenu .conn { margin-left: 0; padding: 6px; }
.setmenu .conn-tip { left: auto; right: -8px; text-align: left; }
.setmenu .me-av + .icon-link { margin-left: -.2rem; }
/* Support Staff Schedule: Available Now (support staff on the clock; a picture opens a chat) */
.ss-now { text-align: center; margin: .6rem 0 .2rem; }
.ss-now h2 { font-size: 1rem; margin: 0 0 .5rem; }
.ss-now-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.ss-now-p { display: grid; justify-items: center; gap: .25rem; background: none; border: 0; padding: .2rem; font: inherit; font-size: .8rem; color: var(--ink); border-radius: var(--r-md); }
button.ss-now-p { cursor: pointer; }
button.ss-now-p:hover .ss-now-av, button.ss-now-p:focus-visible .ss-now-av { box-shadow: 0 0 0 3px var(--accent, #0d9488); }
.ss-now-av { box-shadow: 0 0 0 2px #22c55e; border-radius: 50%; }
.cred-termed .cred-termed-box { display: flex; align-items: center; gap: .55rem; min-width: 170px; padding: .35rem .6rem; min-height: 34px; line-height: 1.4; margin: 0; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-size: 14px; color: var(--steel); white-space: nowrap; box-sizing: border-box; }
.cred-termed .cred-termed-box:hover { border-color: var(--fill); }
.cred-termed .cred-termed-box.on { color: var(--ink); background: var(--fill-soft); border-color: color-mix(in srgb, var(--fill) 45%, var(--rule)); }
.cred-termed input { width: 17px; height: 17px; margin: 0; accent-color: var(--fill); }
/* totals at the right end of the tab row (Provider Numbers) */
.cred-tabrow { align-items: flex-end; }
.cred-tabrow .cred-stats { margin: 0 0 .35rem auto; padding: .3rem .45rem; }
.cred-tabrow .cred-stat b { font-size: 18px; }
.cred-tabrow .cred-stat span { font-size: 10.5px; }
/* the Active Practices / Active Providers counts sit at the right of the page title */
.cred-headstats .cred-stats { margin: 0; padding: .3rem .45rem; }
.cred-headstats .cred-stat b { font-size: 18px; }
.cred-headstats .cred-stat span { font-size: 10.5px; }
/* PSG Contacts tab: laid out like Chats (.ch); the right side shows the picked contact */
.tcn { height: calc(100vh - 250px); }
.tcn-body { flex: 1; overflow-y: auto; padding: 1rem 1.2rem; }
.tcn-dl { display: grid; gap: .55rem; margin: 0; max-width: 720px; }
.tcn-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: .8rem; align-items: baseline; }
.tcn-row dt { font: 800 11px/1.4 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.tcn-row dd { margin: 0; overflow-wrap: anywhere; }
.tcn-pre { white-space: pre-line; }
.tcn-copy { padding: .1rem .45rem; font-size: 12px; margin-left: .3rem; }
.tcn-upd { margin-top: 1.2rem; font-size: 12px; }
.tcn-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem .8rem; }
.tcn-form .field { grid-column: span 2; }
.tcn-form .tcn-f-phone, .tcn-form .tcn-f-cell, .tcn-form .tcn-f-fax { grid-column: span 1; }
.tcn-form .tcn-f-ext { grid-column: span 1; }
.tcn-form .tcn-f-address, .tcn-form .tcn-f-notes { grid-column: 1 / -1; }
@media (max-width: 700px) { .tcn-form { grid-template-columns: 1fr; } .tcn-form .field { grid-column: auto !important; } .tcn-row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 900px) { .tcn { grid-template-columns: 1fr; height: auto; } .tcn .ch-side { max-height: 320px; } }
/* Support Staff Schedule: Google busy times and the Google Calendar dialog */
.ss-busy { display: block; margin-top: 2px; font-size: .7rem; font-weight: 700; color: #b45309; white-space: nowrap; }
.ss-gc h3 { margin: 0 0 .4rem; font-size: 1rem; }
.ss-gc-list { margin: .2rem 0 .6rem 1.1rem; padding: 0; display: grid; gap: .3rem; }
.ss-gc-ok { display: flex; gap: .45rem; align-items: baseline; }
.ss-gc-err { color: var(--bad); }
.ss-gc-feed { margin-top: .8rem; border-top: 1px solid var(--rule-soft); padding-top: .6rem; }
.ss-gc-feed summary { cursor: pointer; font-weight: 700; color: var(--steel); }
.tcn-cb { position: relative; display: block; }
.tcn-cb-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 3px); max-height: 220px; overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-sm); box-shadow: 0 6px 18px rgba(24, 40, 47, .14); padding: 4px; }
.tcn-cb-o { display: block; width: 100%; text-align: left; border: 0; background: none; padding: .45rem .6rem; border-radius: 6px; font: inherit; color: var(--ink); cursor: pointer; }
.tcn-cb-o:hover { background: var(--fill-soft); }
.tcn-cb-o[hidden], .tcn-cb-list[hidden] { display: none; }
/* Roles: the Role column stays put (and stays narrow) while the page columns scroll sideways */
.roles-grid th:first-child, .roles-grid td:first-child { position: sticky; left: 0; z-index: 3; background: var(--surface); white-space: nowrap; box-shadow: inset -1px 0 0 var(--rule); }
.roles-grid thead th:first-child { z-index: 4; vertical-align: bottom; }
.table.roles-grid { overflow: clip; }   /* hidden would stop the Role column sticking */
/* Communications card attachments */
.cl-fhead { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .8rem; }
.cl-fhead h3 { margin: 0; }
.cl-fbtn { cursor: pointer; }
.cl-files { list-style: none; margin: .4rem 0 .6rem; padding: 0; display: grid; gap: .25rem; }
.cl-files li { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; border: 1px solid var(--rule-soft); border-radius: var(--r-sm); background: var(--surface); }
.cl-files li.muted { border-style: dashed; font-size: 13px; }
.cl-fopen { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cl-fopen:hover { text-decoration: underline; }
.cl-files .muted { font-size: 12px; white-space: nowrap; }
.cl-fhead-top { margin-top: 0; }
.ss-role > summary .ss-n { order: 1; } .ss-role > summary::after { order: 2; }
.ss-role .ss-rolepick { order: 3; margin: 0 .5rem 0 .8rem; }
/* Communications card forms: two columns; the checklist inside the details */
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; }
.cl-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .cl-grid { grid-template-columns: 1fr; } }
.cl-ck ul { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .2rem; }
.cl-ck li { display: flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border: 1px solid var(--rule-soft); border-radius: var(--r-sm); background: var(--surface); }
.cl-ck li label { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; cursor: pointer; }
.cl-ck li.done span { text-decoration: line-through; color: var(--steel); }
.cl-ck .icon-btn { width: 26px; height: 26px; }
.cl-ckadd { display: flex; gap: .4rem; }
.cl-ckadd input { flex: 1; }
.cl-ckadd input.cl-ckdue, .cl-ck li .cl-ckdue { flex: 0 0 auto; width: 9.2rem; padding: .2rem .35rem; font-size: .82rem; }
.cl-ckduetxt { font-size: .78rem; font-weight: 700; color: var(--steel); white-space: nowrap; }
.cl-ck li.late .cl-ckduetxt, .cl-ck li.late .cl-ckdue { color: #b91c1c; }
.cl-ckn.all { color: #15803d; font-weight: 700; }
.cl-dr { margin-top: -.1rem; }
/* Feature search in the top bar (lib/featuresearch.js), right of the office picker */
.fs { position: relative; flex: 0 1 380px; min-width: 180px; }
.fs input[type=search] { width: 100%; height: 38px; min-height: 0; padding: 0 3.6rem 0 2.2rem; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font: 600 14px var(--f-ui); }
.fs input[type=search]:focus { border-color: var(--fill); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--fill) 25%, transparent); }
.fs-ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .7; pointer-events: none; }
.fs-kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font: 700 10.5px var(--f-ui); color: var(--steel); border: 1px solid var(--rule); border-radius: 5px; padding: 2px 6px; background: var(--sunken); pointer-events: none; }
.fs input[type=search]:focus ~ .fs-kbd, .fs input[type=search]:not(:placeholder-shown) ~ .fs-kbd { display: none; }
.fs-pop { position: absolute; top: calc(100% + 6px); left: 0; width: min(560px, 92vw); max-height: min(70vh, 560px); overflow-y: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; box-shadow: 0 14px 40px rgba(24, 40, 47, .18); padding: .4rem; z-index: 60; }
.fs-h { font: 800 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); margin: .7rem .6rem .35rem; }
.fs-r { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .65rem; align-items: center; padding: .45rem .6rem; border-radius: 8px; color: var(--ink); text-decoration: none; }
.fs-r:hover, .fs-r.on { background: var(--fill-soft); }
.fs-b { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; background: #e6f6f8; }
.fs-g-monthly { background: #fdf1e6; } .fs-g-practice { background: #e6f6f8; } .fs-g-accounting { background: #e7f6ec; } .fs-g-technology { background: #eef2ff; } .fs-g-settings { background: #eef0f2; } .fs-g-recruiting { background: #fbe9ef; }
.fs-r .fs-t b { font-size: 14px; font-weight: 700; } .fs-r mark { background: #fff3bf; color: inherit; border-radius: 3px; padding: 0 1px; }
.fs-r small { display: block; color: var(--steel); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-grp { font: 700 11px var(--f-ui); color: var(--steel); background: var(--sunken); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.fs-foot { border-top: 1px solid var(--rule-soft); margin-top: .4rem; padding: .5rem .6rem .2rem; font-size: 12px; color: var(--steel); }
.fs-none { margin: .6rem; color: var(--steel); font-size: 13.5px; }
@media (max-width: 860px) { .fs { flex: 1 1 auto; min-width: 0; } .fs-kbd { display: none; } .fs-grp { display: none; } }
/* the Region / Group drop-down keeps room for "All my offices" (the feature search gives way instead) */
.viewer-top .scope-pick { flex-shrink: 0; }
.viewer-top .scope-pick select { min-width: 160px; }
/* Practice → End of Day */
.eod-date { display: grid; gap: .2rem; font: 700 12px var(--f-ui); color: var(--steel); }
.eod-recent { display: flex; gap: .3rem; flex-wrap: wrap; margin: .2rem 0 .9rem; }
.eod-day { display: grid; justify-items: center; width: 44px; padding: .25rem 0 .3rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); font: 800 14px var(--f-ui); color: var(--ink); cursor: pointer; }
.eod-day small { font-size: 10px; font-weight: 700; color: var(--steel); }
.eod-day.ok { background: #dcfce7; border-color: #86efac; } .eod-day.part { background: #fef3c7; border-color: #fcd34d; } .eod-day.wknd { opacity: .55; }
.eod-day.on { outline: 2px solid var(--fill); outline-offset: 1px; }
.eod-prog { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .8rem; }
.eod-bar { flex: 1 1 240px; max-width: 420px; height: 10px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.eod-bar i { display: block; height: 100%; background: var(--fill); border-radius: 999px; transition: width .3s; }
.eod-complete { color: #15803d; font-weight: 800; }
.eod-list { display: grid; gap: .55rem; max-width: 900px; }
.eod-box { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface); }
.eod-box.done { border-color: #86efac; }
.eod-box.drag { outline: 2px dashed var(--fill); outline-offset: 2px; background: var(--fill-soft); }
.eod-box > summary { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; gap: .7rem; align-items: center; padding: .7rem .9rem; cursor: pointer; }
.eod-box > summary::-webkit-details-marker { display: none; }
.eod-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 14px var(--f-ui); background: var(--sunken); color: var(--steel); }
.eod-box.done .eod-num { background: #22c55e; color: #fff; }
.eod-t b { display: block; font-size: 15px; } .eod-t small { color: var(--steel); font-size: 12.5px; }
.eod-state { font: 700 12px var(--f-ui); color: var(--steel); white-space: nowrap; }
.eod-box:not(.done) .eod-state { color: #b45309; }
.eod-chev { color: var(--steel); transition: transform .15s; } .eod-box:not([open]) .eod-chev { transform: rotate(-90deg); }
.eod-body { padding: 0 .9rem .9rem 3.6rem; display: grid; gap: .6rem; }
.eod-drop { position: relative; display: grid; justify-items: center; gap: .2rem; padding: 1.2rem 1rem; border: 2px dashed var(--rule); border-radius: var(--r-md); background: var(--sunken); text-align: center; cursor: pointer; color: var(--ink); }
.eod-drop:hover, .eod-drop:focus-visible { border-color: var(--fill); outline: none; }
.eod-drop small { color: var(--steel); }
.eod-drop-ic { font-size: 20px; color: var(--fill); }
.eod-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .8); border-radius: var(--r-md); font-weight: 800; }
.eod-files { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.eod-files li { display: flex; align-items: center; gap: .6rem; padding: .3rem .5rem; border: 1px solid var(--rule-soft); border-radius: var(--r-sm); }
.eod-open { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eod-files .muted { font-size: 12px; white-space: nowrap; }
@media (max-width: 640px) { .eod-body { padding-left: .9rem; } .eod-box > summary { grid-template-columns: 30px minmax(0, 1fr) 18px; } .eod-state { display: none; } }
/* the office drop-down keeps room for the office's name; the feature search sits on the right, next to the settings */
.viewer-top .office-pick { flex-shrink: 0; }
.viewer-top .office-pick select { min-width: 190px; }
.top > .fs { flex: 0 1 300px; min-width: 150px; margin-right: .4rem; }
/* Distribution: the colour key beside the month picker; Paid Out rows (amounts due to associates and specialists) in bright green */
.ds-meta-bar { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 0 .6rem; }
.ds-legend i.ds-paidk { background: #4ade80; border-color: #22c55e; }
.ds-tbl td.ds-paidamt { background: #4ade80; color: #052e16; font-weight: 800; }
.page-dist .om-extra { margin-left: 0; display: inline-flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.page-dist .om-extra .ds-meta-bar { margin-left: 0; }
/* End of Day: the days strip and the progress row are as wide as the boxes below */
.eod-recent { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); max-width: 900px; }
.eod-day { width: auto; }
.eod-prog { max-width: 900px; }
.eod-bar { flex: 1 1 auto; max-width: none; }
@media (max-width: 640px) { .eod-recent { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* Top bar fit: the view pickers keep their size; the feature search gives way (down to just its magnifier) */
.top > .viewer-top { flex-shrink: 0; }
.top > .fs { flex: 1 1 280px; min-width: 44px; max-width: 320px; }
.top > .fs input[type=search] { padding-left: 2.1rem; }
@media (max-width: 1350px) { .viewer-top .viewer-label { display: none; } }
@media (max-width: 1250px) { .top > .fs .fs-kbd { display: none; } }
.top > .setmenu { flex-shrink: 0; }
.top > .top-gap { flex: 1 1 0; min-width: 0; }
/* Distribution: compact rows so more fits on a page */
.acct-scroll .table.ds-tbl td, .acct-scroll .table.ds-tbl tbody th, .table.ds-tbl td, .table.ds-tbl tbody th { padding-top: 1px; padding-bottom: 1px; line-height: 1.25; }
.table.ds-tbl tbody tr.ds-h th { padding-top: .35rem; padding-bottom: .25rem; }
.table.ds-tbl .ds-in, .table.ds-tbl select { height: 23px; padding-top: 0; padding-bottom: 0; font-size: .84rem; }
.table.ds-tbl tbody td, .table.ds-tbl tbody th { font-size: .84rem; }
.table.ds-tbl td.ds-fxwide { text-align: left; } .table.ds-tbl td.ds-fxwide .ds-fxin { width: 100%; text-align: left; }
/* Distribution: every line the same height, typed-in or not (small notes sit beside the box, not under it) */
.table.ds-tbl tbody tr:not(.ds-h) > td, .table.ds-tbl tbody tr:not(.ds-h) > th { height: 27px; box-sizing: border-box; }
.table.ds-tbl .ds-sub { display: inline-block; margin: 0 0 0 6px; vertical-align: middle; line-height: 1; }
.table.ds-tbl .ds-typed { vertical-align: middle; }
/* Distribution: custom payout formula window */
.ds-fxrow { display: inline-flex; align-items: center; gap: 4px; width: 100%; }
.ds-fxrow .ds-fxin { flex: 1; min-width: 0; }
.ds-fxedit { border: 1px solid var(--rule); background: var(--surface); border-radius: 4px; height: 23px; width: 26px; cursor: pointer; color: var(--steel); padding: 0; flex: none; }
.ds-fxedit:hover { color: var(--ink); border-color: var(--steel); }
.ds-fxdlg { width: min(760px, 94vw); border: 0; border-radius: 12px; padding: 0; box-shadow: 0 20px 60px rgba(0,0,0,.35); background: var(--surface); color: var(--ink); }
.ds-fxdlg::backdrop { background: rgba(15,23,42,.5); }
.ds-fxdlg form { display: grid; gap: 12px; padding: 16px 18px; }
.ds-fxhd { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.05rem; }
.ds-fxdlg textarea { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; width: 100%; box-sizing: border-box; resize: vertical; background: var(--surface); color: var(--ink); }
.ds-fxmap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px; border: 1px solid #e3d9a8; background: #fffbe6; border-radius: 8px; font-size: .88rem; }
.ds-fxmap > b { width: 100%; }
.ds-fxmap select { width: auto; height: 28px; padding: 0 6px; font-size: .85rem; }
.ds-fxwords { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-fxwords button { border: 1px solid var(--rule); background: var(--surface-2, #f1f5f9); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--ink); }
.ds-fxwords button:hover { border-color: var(--steel); }
.ds-fxres { padding: 10px 12px; border-radius: 8px; background: #ecfdf5; color: #065f46; font-size: .95rem; }
.ds-fxres.bad { background: #fef2f2; color: #991b1b; }
.ds-fxres code { word-break: break-all; }
.ds-fxft { display: flex; gap: 8px; align-items: center; }
.ds-stdrow { display: grid; gap: 4px; margin: 0 0 16px; max-width: 900px; }
.ds-stdrow label { display: grid; gap: 6px; }
.ds-stdrow textarea { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; width: 100%; box-sizing: border-box; resize: vertical; background: var(--surface); color: var(--ink); }
.ds-stdft { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ds-stdsay { font-size: .88rem; color: var(--steel); padding: 6px 10px; background: var(--surface-2, #f1f5f9); border-radius: 6px; }
/* Organization KPIs: new office records (Monthly Numbers and Office Records), 3 × 2 charts in their own colours */
.ok-tbl td.ok-new, .ok-tbl td.ok-new.ok-dist, .ok-tbl td.ok-new.ok-as, .ok-tbl td.ok-new.ok-typed, .ok-tbl td.ok-new.ok-imp { background: #93c5fd; color: #0c2d6b; font-weight: 800; }
.ok-legend i.ok-newk { background: #93c5fd; }
.ok-charts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 1100px) { .ok-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ok-charts { grid-template-columns: 1fr; } }
.ok-chart { border-top: 4px solid var(--okc, #0f766e); padding: .7rem .8rem .4rem; }
.ok-chart figcaption { color: var(--okc, inherit); }
.ok-chart .ok-line { stroke: var(--okc, #0f766e); stroke-width: 2.6; } .ok-chart .ok-dot { fill: var(--okc, #0f766e); }
.ok-barx { display: inline-flex; align-items: center; gap: .6rem; margin-left: .5rem; }
/* Organization KPIs → Monthly Numbers: each column sized to what it holds */
.table.ok-tbl.ok-main td { font-variant-numeric: tabular-nums; }
.table.ok-tbl.ok-main thead th.okw1:not(.ok-off), .table.ok-tbl.ok-main td.okw1 { width: calc(1ch + .4rem); min-width: calc(1ch + .4rem); max-width: none; padding-left: .2rem; padding-right: .2rem; }
.table.ok-tbl.ok-main thead th.okw2:not(.ok-off), .table.ok-tbl.ok-main td.okw2 { width: calc(2ch + .4rem); min-width: calc(2ch + .4rem); max-width: none; padding-left: .2rem; padding-right: .2rem; }
.table.ok-tbl.ok-main thead th.okw3:not(.ok-off), .table.ok-tbl.ok-main td.okw3 { width: calc(3ch + .4rem); min-width: calc(3ch + .4rem); max-width: none; padding-left: .2rem; padding-right: .2rem; }
.table.ok-tbl.ok-main thead th.okw4:not(.ok-off), .table.ok-tbl.ok-main td.okw4 { width: calc(4ch + .4rem); min-width: calc(4ch + .4rem); max-width: none; padding-left: .2rem; padding-right: .2rem; }
.table.ok-tbl.ok-main thead th.okw5:not(.ok-off), .table.ok-tbl.ok-main td.okw5 { width: calc(5ch + .4rem); min-width: calc(5ch + .4rem); max-width: none; padding-left: .2rem; padding-right: .2rem; }
.table.ok-tbl.ok-main thead th.okw8:not(.ok-off), .table.ok-tbl.ok-main td.okw8 { width: calc(8ch + .4rem); min-width: calc(8ch + .4rem); max-width: none; padding-left: .2rem; padding-right: .2rem; }
.table.ok-tbl.ok-main tbody td:not(.c), .table.ok-tbl.ok-main tfoot td { text-align: left; }
.table.ok-tbl.ok-main thead th:not(.ok-off) { text-align: center; }
.table.ok-tbl.ok-main thead th:not(.ok-off) .ok-th, .table.ok-tbl.ok-main .ok-th button { display: inline-block; text-align: center; }
/* Monthly Numbers and Office Records: the same row height */
.table.ok-tbl.ok-main tbody tr > *, .table.ok-tbl.ok-main tfoot tr > *, .table.ok-tbl.ok-rec tbody tr > *, .table.ok-tbl.ok-rec tfoot tr > * { height: 30px; box-sizing: border-box; padding-top: 2px; padding-bottom: 2px; vertical-align: middle; line-height: 1.2; }
.table.ok-tbl.ok-main tbody td, .table.ok-tbl.ok-main tbody td:not(.c), .table.ok-tbl.ok-main tfoot td { text-align: center; }
.table.ok-tbl.ok-main thead th.okw1:not(.ok-off), .table.ok-tbl.ok-main td.okw1, .table.ok-tbl.ok-main thead th.okw2:not(.ok-off), .table.ok-tbl.ok-main td.okw2 { min-width: 1.6rem; width: 1.6rem; }
/* Top bar: a slimmer search so the view, group and office pickers always fit */
.top { gap: .7rem; }
.top > .fs { flex: 0 1 240px; min-width: 40px; max-width: 240px; margin-right: 0; }
.top > .fs input[type=search] { height: 34px; padding: 0 2.6rem 0 1.9rem; font-size: 13.5px; }
.top > .fs .fs-ic { left: .65rem; }
.top > .fs .fs-kbd { right: .45rem; padding: 1px 5px; }
.viewer-top .office-pick select { min-width: 170px; }
.settings-tabs { margin-bottom: 1rem; }
/* End of Day: the date box sits in front of the two-week strip */
.eod-dayrow { display: flex; align-items: flex-end; gap: .6rem; max-width: 900px; margin-bottom: .2rem; }
.eod-dayrow .eod-date { flex: none; margin: 0; }
.eod-dayrow .eod-recent { flex: 1; min-width: 0; margin: 0; }
@media (max-width: 760px) { .eod-dayrow { flex-direction: column; align-items: stretch; } }
.eod-dayrow .eod-recent { max-width: none; }
/* Technology → Resources */
.tr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 1300px; }
.tr-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 1px 2px rgba(24, 40, 47, .04); --tc: #4f46e5; }
.tr-card.tr-guide { --tc: #0e7490; } .tr-card.tr-batch { --tc: #4f46e5; } .tr-card.tr-bg { --tc: #b45309; } .tr-card.tr-dl { --tc: #15803d; }
.tr-wide { grid-column: 1 / -1; }
.tr-card > header { display: flex; align-items: center; gap: .75rem; margin-bottom: .8rem; }
.tr-card h2 { margin: 0; font-size: 1.05rem; } .tr-card header p { margin: .1rem 0 0; color: var(--steel); font-size: .85rem; }
.tr-badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 12%, #fff); color: var(--tc); flex: none; }
.tr-badge svg { width: 22px; height: 22px; fill: currentColor; }
.tr-n { margin-left: auto; font: 800 12px var(--f-ui); color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, #fff); border-radius: 999px; padding: 3px 9px; }
.tr-list { display: grid; gap: .45rem; }
.tr-wide .tr-list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.tr-btn { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .12s, box-shadow .12s, transform .12s; }
a.tr-btn:hover { border-color: var(--tc); box-shadow: 0 4px 14px -6px color-mix(in srgb, var(--tc) 50%, transparent); transform: translateY(-1px); }
.tr-ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 10%, #fff); color: var(--tc); flex: none; }
.tr-ic svg { width: 15px; height: 15px; fill: currentColor; }
.tr-go { margin-left: auto; color: var(--tc); font-weight: 800; }
button.tr-btn { font-family: inherit; text-align: left; cursor: pointer; width: 100%; }
.tr-btn.off { color: var(--steel); background: var(--sunken); border-style: dashed; cursor: default; }
.tr-btn.off .tr-ic { filter: grayscale(1); opacity: .6; }
.tr-soon { margin-left: auto; font: 700 10.5px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--steel); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 1px 7px; }
.tr-foot { margin-top: 1rem; }
@media (max-width: 1000px) { .tr-grid { grid-template-columns: 1fr; } }
/* Users & Access: Domains / Groups / Roles / Users as pill buttons with their counts */
.ua-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.ua-pills button { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .45rem 1rem; font: 700 15px var(--f-ui); cursor: pointer; }
.ua-pills button:hover { border-color: var(--steel); }
.ua-pills button.on { background: var(--fill, #0e8f9c); border-color: var(--fill, #0e8f9c); color: #fff; }
.ua-n { font: 800 12px var(--f-ui); background: var(--sunken); color: var(--steel); border-radius: 999px; padding: 2px 8px; min-width: 1.4em; text-align: center; }
.ua-n:empty { display: none; }
.ua-pills button.on .ua-n { background: #fff; color: #b42318; }
.ua-pills + .ua-panel { border-radius: var(--r-md); }
/* Communications → New Card: attachments drop box */
.cl-drop { display: grid; justify-items: center; gap: .15rem; padding: 1.1rem 1rem; border: 2px dashed var(--rule); border-radius: 12px; background: var(--sunken); color: var(--ink); text-align: center; cursor: pointer; font-weight: 500; }
.cl-drop:hover, .cl-drop.over { border-color: var(--fill); background: color-mix(in srgb, var(--fill) 8%, var(--surface)); }
.cl-drop-ic { font-size: 20px; color: var(--fill); }
.cl-drop small { color: var(--steel); font-size: 12px; }
.cl-dropl { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .25rem; }
.cl-dropl:empty { display: none; }
.cl-dropl li { display: flex; align-items: center; gap: .6rem; padding: .3rem .55rem; border: 1px solid var(--rule-soft); border-radius: 8px; font-size: 14px; }
.cl-dropl li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-dropl li small { color: var(--steel); }
/* Site Settings → Users & Access: no descriptions under the buttons, just the screens */
.ua-pills + .ua-panel .page-head .sub { display: none; }
.ua-pills + .ua-panel .ua-body > .page-head:first-child:not(:has(.row, .row-gap, button, a.btn)) { display: none; }
.ok-svcs { display: inline-flex; gap: 3px; margin-left: .4rem; vertical-align: 1px; } .ok-svcs .svc-tag { font-size: 10px; padding: 0 5px; }
.table.ok-tbl.ok-main thead th.ok-off, .table.ok-tbl.ok-main tbody th.ok-off, .table.ok-tbl.ok-main tfoot th.ok-off { width: 300px; }   /* room for the name and its PSG tags (fixed table layout) */
.table.ok-tbl.ok-main { min-width: 1490px; }
/* Communications → Feature Requests */
.fr-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; padding: 1.1rem 1.3rem; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0e7490, #4f46e5 70%, #7c3aed); box-shadow: 0 10px 30px -12px rgba(79, 70, 229, .55); }
.fr-hero h2 { margin: 0; font-size: 1.3rem; color: #fff; } .fr-hero p { margin: .2rem 0 0; opacity: .9; }
.fr-stats { display: flex; gap: .6rem; }
.fr-stats span { display: grid; justify-items: center; min-width: 74px; padding: .45rem .6rem; border-radius: 12px; background: rgba(255, 255, 255, .16); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.fr-stats b { font-size: 1.4rem; letter-spacing: 0; }
.fr-wrap { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.fr-new { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .75rem; position: sticky; top: calc(var(--top, 64px) + 12px); box-shadow: 0 4px 18px -12px rgba(24, 40, 47, .3); }
.fr-new h3 { margin: 0; font-size: 1.05rem; }
.fr-new .field span small { font-weight: 500; }
.fr-drop { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 2px dashed var(--rule); border-radius: 12px; background: var(--sunken); cursor: pointer; }
.fr-drop:hover, .fr-drop.over { border-color: #4f46e5; background: #eef2ff; }
.fr-drop-ic { font-size: 22px; } .fr-drop > span { display: grid; } .fr-drop small { color: var(--steel); font-size: 12px; }
.fr-send { width: 100%; height: 42px; font-size: 15px; }
.fr-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.fr-thumbs:empty { display: none; }
.fr-thumbs figure { position: relative; margin: 0; }
.fr-thumbs img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; border: 1px solid var(--rule); display: block; background: var(--sunken); transition: transform .12s; }
.fr-thumbs a:hover img { transform: scale(1.03); }
.fr-thumbs figure button { position: absolute; top: 3px; right: 3px; border: 0; border-radius: 50%; width: 22px; height: 22px; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; font-size: 11px; }
.fr-list { display: grid; gap: .75rem; }
.fr-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fr-filters, .fr-sort { display: flex; gap: .35rem; padding: 3px; background: var(--sunken); border-radius: 999px; }
.fr-filters button, .fr-sort button { border: 0; background: none; border-radius: 999px; padding: .32rem .8rem; font: 700 13px var(--f-ui); cursor: pointer; color: var(--steel); }
.fr-filters button span { margin-left: .25rem; font-weight: 800; color: var(--ink); opacity: .6; }
.fr-filters button.on, .fr-sort button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(24, 40, 47, .15); }
.fr-filters button.on span { opacity: 1; color: #4f46e5; }
.fr-item { display: flex; gap: .9rem; background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--sc); border-radius: 14px; padding: .9rem 1rem; transition: box-shadow .12s; }
.fr-item:hover { box-shadow: 0 6px 20px -12px rgba(24, 40, 47, .35); }
.fr-vote { flex: none; display: grid; justify-items: center; align-content: center; gap: 1px; width: 54px; height: 60px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--steel); cursor: pointer; font: inherit; }
.fr-vote b { font-size: 1.1rem; color: var(--ink); }
.fr-vote .fr-arrow { font-size: 12px; }
.fr-vote:not(:disabled):hover { border-color: #4f46e5; color: #4f46e5; }
.fr-vote.on { background: #4f46e5; border-color: #4f46e5; color: #fff; } .fr-vote.on b { color: #fff; }
.fr-vote:disabled { cursor: default; opacity: .65; }
.fr-main { flex: 1; min-width: 0; }
.fr-main header { display: flex; justify-content: space-between; gap: .6rem; align-items: start; }
.fr-main h4 { margin: 0; font-size: 1rem; }
.fr-meta { margin: .2rem 0 0; color: var(--steel); font-size: 12.5px; }
.fr-page { background: var(--sunken); border-radius: 6px; padding: 0 6px; }
.fr-body { margin: .5rem 0 0; white-space: pre-wrap; }
.fr-st { font: 800 11px var(--f-ui); color: color-mix(in srgb, var(--sc) 80%, #000); background: color-mix(in srgb, var(--sc) 14%, #fff); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.fr-reply { margin-top: .6rem; padding: .55rem .75rem; border-radius: 10px; background: #f5f3ff; border: 1px solid #ddd6fe; }
.fr-replyh { display: block; font: 800 11px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: #6d28d9; margin-bottom: .15rem; }
.fr-admin { display: flex; gap: .4rem; margin-top: .7rem; align-items: center; }
.fr-admin select { width: auto; } .fr-admin input { flex: 1; }
.fr-empty { display: grid; justify-items: center; gap: .3rem; padding: 2.5rem 1rem; border: 2px dashed var(--rule); border-radius: 16px; text-align: center; color: var(--steel); }
.fr-empty span { font-size: 30px; }
@media (max-width: 900px) { .fr-wrap { grid-template-columns: 1fr; } .fr-new { position: static; } }
/* Organization KPIs: the colour key beside the month picker; a narrower Office column so every column fits */
.ok-legend-bar { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; margin: 0 0 0 .8rem; font-size: .82rem; }
.ok-legend-bar .ok-chartnote { margin-left: .4rem; }
.table.ok-tbl.ok-main thead th.ok-off, .table.ok-tbl.ok-main tbody th.ok-off, .table.ok-tbl.ok-main tfoot th.ok-off { width: 235px; }
.table.ok-tbl.ok-main { min-width: 0; }
.table.ok-main tbody th.ok-off { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ok-svcs { margin-left: .3rem; } .ok-svcs .svc-tag { font-size: 9.5px; padding: 0 4px; }
.table.ok-tbl.ok-main td { font-size: .72rem; }
.table.ok-tbl.ok-main thead th:not(.ok-off), .table.ok-tbl.ok-main td { padding-left: .12rem !important; padding-right: .12rem !important; }
.table.ok-tbl.ok-main thead th.ok-off, .table.ok-tbl.ok-main tbody th.ok-off, .table.ok-tbl.ok-main tfoot th.ok-off { width: 215px; }
.table.ok-main tbody th.ok-off { font-size: .72rem; }
/* Office month calendars (Answering Service → Office Hours, Specialty → Specialty Schedule) */
.oc-bar { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.oc-m { min-width: 9.5rem; text-align: center; font-size: 1.05rem; }
.oc-bar select { width: auto; min-width: 210px; }
.oc-key { display: inline-flex; gap: .9rem; margin-left: auto; font-size: .85rem; color: var(--steel); }
.oc-key i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.oc-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--rule-soft, #eef1f3); gap: 1px; }
.oc-wd { background: var(--sunken); text-align: center; font: 800 11px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); padding: .4rem 0; }
.oc-day { background: var(--surface); min-height: 96px; padding: .35rem .4rem; display: flex; flex-direction: column; gap: .25rem; }
.oc-blank { background: var(--sunken); }
.oc-we { background: color-mix(in srgb, var(--sunken) 60%, var(--surface)); }
.oc-ed { cursor: pointer; } .oc-ed:hover { box-shadow: inset 0 0 0 2px var(--fill, #0e8f9c); }
.oc-n { font: 700 12px var(--f-ui); color: var(--steel); }
.oc-today .oc-n { background: var(--fill, #0e8f9c); color: #fff; border-radius: 999px; padding: 1px 7px; align-self: flex-start; }
.oc-chips { display: flex; flex-direction: column; gap: 3px; }
.oc-chip { font: 700 11px/1.3 var(--f-ui); color: color-mix(in srgb, var(--cc) 80%, #000); background: color-mix(in srgb, var(--cc) 14%, #fff); border-left: 3px solid var(--cc); border-radius: 4px; padding: 2px 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-chip b { font-weight: 800; }
.oc-note { font-size: 11px; color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-pick { display: grid; gap: .45rem; margin-bottom: .8rem; }
.oc-opt { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border: 1px solid var(--rule); border-left: 4px solid var(--cc); border-radius: 8px; font-weight: 700; cursor: pointer; }
.oc-busy { opacity: .6; }
@media (max-width: 700px) { .oc-day { min-height: 64px; } .oc-chip { font-size: 9.5px; } .oc-key { margin-left: 0; } }
.table.ok-main tbody th.ok-off { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }   /* a long name wraps (its PSG tags too) instead of being cut off */
.table.ok-main tbody th.ok-off .ok-svcs { flex-wrap: wrap; }
/* ⓘ info on checklist tasks and training modules (lib/infotip.js): click opens the note */
.info-tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: .2em; padding: 0; border: 0; border-radius: 50%; background: none; color: #2563eb; font-size: 15px; line-height: 1; cursor: pointer; vertical-align: -2px; }
.info-tip:hover { color: #1d4ed8; background: #eff6ff; }
.info-tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-pop { white-space: pre-wrap; font-size: 15px; line-height: 1.5; max-width: 60ch; }
.oc-range { display: flex; align-items: center; gap: .5rem; } .oc-range input { flex: 1; }
/* Organization KPIs: a long office name is cut short (…) so its PSG tags stay on the same line */
.table.ok-main tbody th.ok-off { white-space: nowrap; overflow: hidden; }
.ok-offin { display: flex; align-items: center; min-width: 0; }
.ok-oname { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ok-offin .ok-svcs { flex: none; flex-wrap: nowrap; }
/* Office calendar day window: each option's time boxes on its own line, shown once it's ticked */
.oc-opt { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; min-height: 44px; padding: .35rem .7rem; font-weight: 700; cursor: default; }
.oc-optl { display: flex; align-items: center; gap: .5rem; cursor: pointer; flex: 0 0 auto; min-width: 9.5rem; }
.oc-in { display: none; align-items: center; gap: .45rem; margin-left: auto; font-weight: 500; font-size: 13px; color: var(--steel); }
.oc-opt.on .oc-in { display: inline-flex; }
.oc-in input[type=time] { width: 8.2rem; height: 32px; min-height: 0; padding: 0 .4rem; }
.oc-in select { width: 13rem; height: 32px; min-height: 0; padding: 0 .4rem; font-size: 13px; }
.oc-at { font-weight: 500; opacity: .85; }
/* Communications → Office Schedules: one item per category, its offices under it */
.os-grp { display: block; white-space: normal; cursor: help; }
.os-grp b { display: block; font-weight: 700; }
.os-grp .os-offs { display: block; font-weight: 500; font-size: 11px; opacity: .9; overflow-wrap: anywhere; }
.oc-opt.on { background: color-mix(in srgb, var(--cc) 7%, var(--surface)); }
.ss-roleall { margin: .2rem 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--rule-soft); }
/* Chat GIFs (lib/gifs.js) */
.ch-giftag { font: 800 13px/1 var(--f-ui); letter-spacing: .03em; }
.ch-gif { display: block; max-width: min(280px, 100%); max-height: 260px; width: auto; height: auto; border-radius: 10px; margin-top: .2rem; }
.ch-bubble.ch-gifonly { background: none !important; padding: 0 !important; box-shadow: none !important; }
.gif-pop { position: fixed; z-index: 90; width: min(460px, 94vw); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 50px rgba(24, 40, 47, .25); padding: .6rem; display: grid; gap: .5rem; }
.gif-top { display: flex; gap: .4rem; }
.gif-top input { flex: 1; height: 36px; min-height: 0; }
.gif-x { border: 0; background: none; font-size: 15px; cursor: pointer; color: var(--steel); width: 32px; }
.gif-grid { display: block; height: min(400px, 60vh); overflow-y: auto; padding-right: 2px; }
.gif-grid > p { margin: .5rem; }
.gif-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: start; }
.gif-col { display: grid; gap: 6px; }
.gif-err { color: #b42318; font-size: 13px; }
.gif-cell { display: block; width: 100%; min-height: 0; height: auto; border: 0; padding: 0; background: var(--sunken); border-radius: 8px; overflow: hidden; cursor: pointer; }
.gif-cell img { width: 100%; height: auto; display: block; }
.gif-cell:hover { outline: 3px solid var(--fill, #0e8f9c); outline-offset: -3px; }
.gif-foot { font-size: 10.5px; color: var(--steel); text-align: right; }
.fr-vote { height: 70px; width: 58px; } .fr-vlab { font: 800 10px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; }
.gif-setup { display: grid; gap: .5rem; font-size: 13px; padding: .3rem; } .gif-keyrow { display: flex; gap: .4rem; } .gif-keyrow input { flex: 1; height: 32px; min-height: 0; }
/* Google Docs / Sheets / Slides opened inside Nexus (lib/gdoc.js) */
.gdoc-pane { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--surface); }
.gdoc-bar { display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem; border-bottom: 1px solid var(--rule); background: var(--surface); }
.gdoc-bar b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.gdoc-hint { flex: 1; font-size: 12.5px; color: var(--steel); }
.gdoc-pane iframe { flex: 1; width: 100%; border: 0; background: #fff; }
body.gdoc-open { overflow: hidden; }
@media (max-width: 700px) { .gdoc-hint { display: none; } }

/* Site Settings → Integrations */
.integ-wrap { display: grid; gap: 1rem; margin-top: 1rem; }
.integ-wrap > div:empty { display: none; }
.integ { display: contents; }   /* its sections sit in .integ-wrap's grid, sorted A–Z with the others (integrations.js) */
.integ > p { order: 999; }
.integ-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1rem 1.2rem; display: grid; gap: .55rem; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); }
.integ-card h2 { margin: 0; font-size: 1.05rem; }
.integ-card > summary { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; cursor: pointer; list-style: none; }
.integ-card > summary::-webkit-details-marker { display: none; }
.integ-card > summary::before { content: '▸'; color: var(--steel); width: 1em; }
.integ-card[open] > summary::before { content: '▾'; }
.integ-card:not([open]) { gap: 0; }
.integ-card .field > span { font-weight: 700; font-size: 13px; }
.integ-card input, .integ-card textarea { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.integ-card .hint { margin: -.15rem 0 .35rem; }

/* chat reactions */
.ch-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: .25rem .2rem 0; }
.ch-msg.mine .ch-reacts { justify-content: flex-end; }
.ch-react { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--rule); background: var(--surface); border-radius: 999px; padding: 1px 8px; font-size: 13px; line-height: 20px; cursor: pointer; }
.ch-react b { font: 700 12px/1 var(--f-ui); color: var(--steel); }
.ch-react:hover { background: var(--sunken); }
.ch-react.me { border-color: #0e8f9c; background: #e0f5f7; } .ch-react.me b { color: #0b6f79; }
.ch-rpick { position: absolute; top: -44px; left: 6px; right: auto; z-index: 5; display: none; gap: 2px; background: #fff; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 5px; box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.ch-msg.mine .ch-rpick { left: auto; right: 6px; }   /* opens toward the middle, so a short message's picker isn't cut off at the edge */
.ch-msg.picking .ch-rpick { display: flex; }
.ch-msg.picking .ch-acts { display: none !important; }
.ch-rpick button { border: 0; background: none; font-size: 20px; line-height: 1; padding: 4px; border-radius: 50%; cursor: pointer; transition: transform .1s; }
.ch-rpick button:hover, .ch-rpick button:focus-visible { transform: scale(1.25); background: var(--sunken); }

.rv-gbp-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .55rem .8rem; font-size: 13.5px; }
.rv-gbp-bar .btn { margin-left: auto; }
.integ-gbp h2 .small { font-weight: 500; }

/* Checklists: two-column by time form, drawn like the Front Office Daily Checklist (Word): centred navy title, teal
   line under it, a pale box with Team member(s) / Date and the instructions, then time blocks: a chip on the left rail
   (teal and navy in turn), ticks on the rail, zebra rows, yellow highlighted tasks, a line on the rail between groups */
.paper.tm { --tm-teal: #1f9a9a; --tm-teal-rail: #dcedec; --tm-navy: #20354a; --tm-navy-rail: #e2e9ef; --tm-ink: #1f3b57; }
.paper.tm .paper-head.tm-head { flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; margin-bottom: .6rem; }
.paper.tm .tm-head h2 { font: 800 26px/1.15 var(--f-ui); letter-spacing: .03em; text-transform: uppercase; color: var(--tm-ink); }
.tm-subtitle { margin: 0; color: #1f9a9a; font-style: italic; font-size: 14px; }
.tm-band { background: #eaf6f5; border-radius: 4px; padding: .7rem 1rem .75rem; margin: 0 0 1rem; font-size: 13px; color: #24414f; }
.tm-band-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem 1.4rem; }
.tm-band-rows .p-row { margin: 0; padding: 0; border: 0; background: none; }
.tm-band-rows .p-field { display: flex; align-items: center; gap: .4rem; }
.tm-band-rows input.fieldbox { min-width: 260px; background: #fff; }
.paper.tm .tm-band .paper-date { font: 600 13px/1.4 var(--f-ui); color: #24414f; margin: 0; }
.paper.tm .tm-band .paper-date span { font: 700 13px/1.4 var(--f-ui); color: #24414f; border-bottom: 1px solid #24414f; padding: 0 .6rem; }
.tm-instr { margin: .65rem 0 0; white-space: pre-line; line-height: 1.5; font-size: 12.5px; }
.tm-top { margin: .4rem 0 .8rem; }
.tm-tbl { width: 100%; border-collapse: collapse; margin: 0; }
.tm-tbl + .tm-tbl { margin-top: 0; }
.tm-tbl td { padding: 1px 6px 1px 8px; vertical-align: middle; background: #fff; }
.tm-tbl tr.tm-alt td { background: #f4f7fa; }
.tm-tbl tr.tm-hl td { background: #fff2a6; }
.tm-tbl tr.tm-hl .p-text { font-weight: 700; color: #4a3b00; }
.tm-time { width: 100px; padding: 0; vertical-align: middle; text-align: center; border-right: 8px solid #fff; }
.tm-c-teal .tm-time { background: var(--tm-teal-rail); }
.tm-c-navy .tm-time { background: var(--tm-navy-rail); }
.tm-chip { display: block; padding: .5rem .3rem; color: #fff; font: 700 12.5px/1 var(--f-ui); text-align: center; white-space: nowrap; }
.tm-c-teal .tm-chip { background: var(--tm-teal); }
.tm-c-navy .tm-chip { background: var(--tm-navy); }
.tm-tick { display: inline-block; width: 2px; height: 14px; border-radius: 1px; vertical-align: middle; }
.tm-c-teal .tm-tick { background: #4fb0ae; }
.tm-c-navy .tm-tick { background: #5c6f80; }
.tm-tbl tr.tm-gap th { border-top: 2px solid #fff; }
.tm-tbl tr.tm-gap td { box-shadow: inset 0 1px 0 #d5dee5; }
.tm-tbl .p-row { margin: 0; }
.paper.tm .tm-sign { justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.paper.tm .tm-sign > .sigline { flex: 0 1 260px; }
.tm-sdate { display: inline-flex; align-items: center; gap: .4rem; margin-left: .8rem; }
.tm-sdate .sigline.sm { min-width: 110px; }
input.ibox.ibox-pair { width: 60px; }
@media (max-width: 640px) { .tm-time { width: 66px; border-right-width: 4px; } .tm-chip { font-size: 11px; } .tm-head h2 { font-size: 20px; } .tm-band-rows input.fieldbox { min-width: 160px; } }

/* Communications → Contacts: who sees each contact */
.tcn-show { grid-column: 1 / -1; border: 1px solid var(--rule); border-radius: 10px; padding: .5rem .8rem .6rem; }
.tcn-show legend { font-weight: 700; font-size: 13px; padding: 0 .3rem; }
.tcn-rolechecks { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .4rem 0 .2rem; }
.tcn-rolechecks[data-off] { opacity: .45; pointer-events: none; }
.tcn-roles { display: inline-flex; flex-wrap: wrap; gap: .3rem; }

/* Chat side bar: headings fold */
.ch-fold { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; padding: .15rem 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.ch-fold:hover { color: var(--ink, #1f2933); }
.ch-caret { width: .8em; font-size: 10px; }
.ch-foldn { min-width: 18px; padding: 2px 5px; border-radius: 999px; background: var(--accent, #0e8f9c); color: #fff; font-size: 10px; letter-spacing: 0; text-align: center; }
.ch-pushtip { font-size: 12px; color: var(--steel); }

/* Communications: the category tabs sit on top of a box holding the search bar and the cards */
.sheet-tabs.cl-cats { margin-bottom: 0; border-bottom: 0; position: relative; z-index: 1; }
.cl-panel { background: var(--surface); border: 1px solid #d6dce0; border-radius: 0 12px 12px 12px; padding: .9rem; margin-top: -1px; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); }
.cl-panel > .cl-bar { margin-top: 0; }
.cl-panel .cl-board { padding-bottom: 0; }
.cl-views + [data-sshost] .ss { margin-top: -1px; border-top-left-radius: 0; border-color: #d6dce0; }

/* Real Estate Master: whose book, and sharing */
.re-whose { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: 13px; }
.re-whose select { width: auto; }
.re-share-list { display: grid; gap: .4rem; margin: .6rem 0; }
.re-share-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border: 1px solid var(--rule); border-radius: 10px; }
.re-share-row > span { flex: 1; min-width: 0; }
.re-share-row select { width: auto; }
.re-share-add { display: flex; gap: .5rem; } .re-share-add input { flex: 1; } .re-share-add select { width: auto; }
.re-view .g-add, .re-view [data-gdel], .re-view [data-do="addProp"], .re-view [data-do="delProp"], .re-view [data-do="import"] { display: none !important; }
/* Review Data: the platform icons on Google / Facebook / Yelp */
.rv-srcs button { display: inline-flex; align-items: center; gap: .45rem; }
.rv-srcic { width: 18px; height: 18px; flex: none; object-fit: contain; vertical-align: -3px; margin-right: .1rem; }
.rv-srcs button { padding-left: .9rem; padding-right: .9rem; }
.rv-srcs .rv-srcic { width: 20px; height: 20px; margin: 0; }
/* Chats, Contacts and Support Staff Schedule: the left box's top (search + button) is as tall as the right's header */
.ch { --ch-headh: 76px; }
.ch-side-top, .ch-head { min-height: var(--ch-headh); box-sizing: border-box; }
.ch-side-top { align-items: center; }
.ss { --ch-headh: 76px; }
/* Review Data → Keywords by office (and by doctor): every heading after Office reads bottom to top */
.rv-kwt thead th.rv-vth { text-align: center; vertical-align: bottom; padding: .5rem .3rem; white-space: nowrap; overflow: visible; height: auto; }
.rv-kwt thead th.rv-vth > span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-align: left; line-height: 1.1; max-height: none; }
.rv-kwt thead th { text-overflow: clip; }
.rv-kwt td:not(:first-child) { text-align: center; }
/* Credentialing → Insurance Networks: the office picker above the Insurance screen */
.cred-ins-bar { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.cred-ins-bar .field { margin: 0; min-width: 240px; } .cred-ins-bar p { margin: 0 0 .4rem; max-width: 640px; }
/* Communications → My Tasks: whose cards (like the header's view picker, teal when picked) */
.cl-who-pick { height: auto; min-height: 38px; flex-wrap: wrap; }
.cl-who-pick button { font: 700 13px/1 var(--f-ui); color: var(--steel); background: transparent; border: 0; border-radius: calc(var(--r-sm) - 2px); padding: .5rem .75rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.cl-who-pick button:hover { color: var(--ink); }
.cl-who-pick button[aria-pressed="true"] { background: var(--fill); color: #fff; box-shadow: 0 1px 2px rgba(24, 40, 47, .18); }
.cl-whon { font-weight: 600; font-size: 12px; opacity: .7; }
.cl-who-pick button[aria-pressed="true"] .cl-whon { opacity: .9; }
.rv-kwt thead th:first-child { vertical-align: bottom; }
/* Technology → Resources: editing the buttons */
.tr-edit { display: grid; gap: 6px; padding: 10px 14px 14px; }
.tr-file { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.tr-erow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 6px; align-items: center; }
.tr-x { border: 0; background: none; color: #b42318; font-size: 15px; cursor: pointer; padding: 4px 6px; }
.tr-edit .btn { justify-self: start; }
/* each button's fields in its own band, alternating, so a checkbox or file clearly belongs to the link above it */
.tr-edit .tr-erow { padding: 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.tr-edit .tr-erow:nth-of-type(even) { background: var(--sunken); }
.tr-edit .tr-file .btn { justify-self: auto; }
.tr-perofc { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.tr-ofc-urls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 10px; padding: 2px 0 10px 24px; }
.tr-ofc-urls label { display: grid; gap: 2px; font-size: 12px; }
/* Communications boards: the category tabs stay on one row (smaller, and they scroll sideways if the window's narrow) */
.sheet-tabs.cl-cats { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; gap: 3px; padding: 0 4px; scrollbar-width: thin; }
.sheet-tabs.cl-cats .tab { flex: none; font-size: 12.5px; padding: .5rem .6rem; white-space: nowrap; }
.cl-cats .tab .cl-catdot { margin-right: 1px; }
/* the whose-cards picker: teal for the one picked */
.cl-bar .vmode.cl-who-pick button[aria-pressed="true"] { background: var(--fill); color: #fff; }
/* Provider Numbers: Show / Copy on sensitive lines as icons (like Practice Home) */
.cred-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 4px; padding: 0; border: 1px solid #d6dce0; border-radius: 6px; background: #fff; color: var(--steel); cursor: pointer; vertical-align: middle; }
.cred-ic:hover { background: #e6f6f8; color: var(--ink); }
.cred-ic svg { width: 16px; height: 16px; }
/* PSG services: a drag handle at the left of each row */
.svc-row { grid-template-columns: 22px 34px minmax(140px, 220px) minmax(90px, 140px) minmax(0, 1fr) auto auto; grid-template-areas: "g c n s m on tools"; }
.svc-grip { grid-area: g; align-self: center; border: 0; background: none; color: var(--steel); cursor: grab; padding: 4px 2px; border-radius: 6px; line-height: 0; }
.svc-grip:hover, .svc-grip:focus-visible { color: var(--ink); background: var(--sunken); }
.svc-row.svc-dragging { opacity: .45; }
.svc-row.svc-drop-before { box-shadow: inset 0 3px 0 var(--fill); } .svc-row.svc-drop-after { box-shadow: inset 0 -3px 0 var(--fill); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 22px 34px 1fr 1fr; grid-template-areas: "g c n s" "g c m m" "g c on tools"; } }
/* Site Settings: the page sits in a box with its tabs on top */

/* Boxed tabs (Site Settings, Checklists, Module Builder, PSG → Reports, Eaglesoft Security Settings, Recruiting,
   Computers): the tab strip sits right on top of one box holding the tab's page (lib/tabbox.js) */
.box-tabs, .box-top, .dt .subtabs.box-tabs { margin-bottom: 0 !important; border-bottom: 0 !important; position: relative; z-index: 1; }
.tab-box { background: var(--surface); border: 1px solid #d6dce0; border-radius: 12px; padding: 1rem 1.1rem 1.2rem; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); }
.tab-box.attached { border-top-left-radius: 0; margin-top: -1px; }
/* Doctor Tools pages (Reconciliation, Recruiting) space their parts with a 16px flex gap: pull the box up onto its tabs */
.dt .wrap > .tab-box.attached { margin-top: -17px; }
.tab-box > :first-child { margin-top: 0; }
.tab-box > :last-child { margin-bottom: 0; }
/* a page's own cards inside the box lose their frame (Recruiting's panels) */
.tab-box > .panel { border: 0 !important; box-shadow: none !important; margin: 0 !important; background: transparent !important; padding: 0 !important; }
.tab-box > .pw-list { border: 0 !important; box-shadow: none !important; background: transparent !important; padding: 0 !important; border-radius: 0 !important; }
.tab-box > .pw-bulk { margin-top: 0; }
.tab-box > [id^="recPane"] > .panel { border: 0 !important; box-shadow: none !important; margin: 0 !important; background: transparent !important; padding: 0 !important; }
.tab-box > [id^="recPane"] > .panel > .hd { padding-top: 0; padding-left: 0; padding-right: 0; }
.tab-box > [id^="recPane"] > .panel > .bd { padding-left: 0; padding-right: 0; padding-bottom: 0; }
/* Reconciliation: all its tabs on one row, inside the box's width (on a narrow screen they shrink, and long names end in …) */
.dt .recsubs.box-tabs { flex-wrap: nowrap !important; gap: 1px !important; margin: 4px 0 0 !important; padding: 0 6px !important; min-width: 0; }
.dt .recsubs.box-tabs button { font-size: 12.5px !important; padding: 9px 7px !important; white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dt .recsubs.box-tabs button.gear-tab { flex: 0 0 auto; overflow: visible; }
.dt .recsubs.box-tabs .count { margin-left: 3px; }
.tab-box > .panel > .hd { padding-top: 0; padding-left: 0; padding-right: 0; }
.tab-box > .panel > .bd { padding-left: 0; padding-right: 0; padding-bottom: 0; }
/* Computers: the Technology Dashboard's tabs sit on its page */
.tech .topnav:not(.hidden) { margin-bottom: 0 !important; border-bottom: 0 !important; position: relative; z-index: 1; }
.tech .topnav:not(.hidden) + main { background: var(--surface); border: 1px solid #d6dce0; border-radius: 0 12px 12px 12px; padding: 1rem 1.1rem 1.2rem; margin-top: -1px; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); }
/* PSG → Answering Service → Checklists: the daily checklist (Practice → Checklists' lists, for the admin group), then Team Tasks */
[data-dailyck] > .tab-box { border: 0; box-shadow: none; padding: 0; background: none; margin: 0; }
.ck-emb-head { margin: 0 0 .8rem; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ck-emb-head .sub { margin: 0; font-weight: 700; }
.as-ck-h { font-size: 16px; font-weight: 800; margin: 1.6rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid #e3e8eb; }
/* Module Builder: each role's checklists fold open or shut */
details.mb-role > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 4px; border-radius: 8px; user-select: none; }
details.mb-role > summary::-webkit-details-marker { display: none; }
details.mb-role > summary:hover { background: #f1f6f7; }
details.mb-role > summary h2 { margin: 0; }
details.mb-role .mb-chev { color: #6b7c85; font-size: 12px; transition: transform .15s; width: 12px; }
details.mb-role[open] .mb-chev { transform: rotate(90deg); }
details.mb-role .mb-n { font-size: 12px; font-weight: 800; color: #4b5d66; background: #eef3f5; border-radius: 999px; padding: 2px 8px; }
details.mb-role:not([open]) { margin-bottom: .2rem; }
/* Technology → Weave */
.wv-body .toolbar { margin-bottom: .9rem; }
/* Weave: Import Workbook, + User and Edit sit at the right end of the tab row */
.wv-tabs { align-items: flex-end; }
.wv-acts { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 6px; }
.wv-sum { margin-left: auto; font-size: 13px; color: var(--steel); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wv-st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; border: 0; }
.wv-stbtn { cursor: pointer; }
.wv-st-ok { background: #e6f4ec; color: #1d6b3d; }
.wv-st-lost { background: #f4cccc; color: #8a1f1f; }
.wv-st-unused { background: #fff2cc; color: #7a5a00; }
.wv-st-return { background: #c8f4f4; color: #0b5c63; }
.wv-st-delete { background: #ffd4d4; color: #a40000; }
.wv-locs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 540px), 1fr)); gap: 14px; align-items: start; }
.wv-loc { border: 1px solid #dfe5e8; border-radius: 12px; padding: 10px 12px 6px; background: var(--surface); min-width: 0; }
.wv-loc > header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.wv-loc > header h3 { margin: 0; font-size: 15px; font-weight: 800; }
.wv-loc > header .btn { margin-left: auto; }
.wv-locname { font: inherit; font-weight: 800; font-size: 15px; padding: 4px 8px; min-width: 0; flex: 1; }
.wv-dev { font-size: 13px; } .wv-dev td { vertical-align: top; overflow-wrap: anywhere; }
.wv-row-lost td, .wv-row-delete td { color: #7c8b92; }
.wv-loc .g-wrap { overflow-x: auto; }
.wv-role { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef3f5; color: #3c4f57; white-space: nowrap; }
.wv-mx-wrap { overflow-x: auto; }
/* frozen column headers: the table scrolls inside its box */
.wv-scroll { max-height: calc(100vh - 260px); overflow: auto; border: 1px solid var(--rule); border-radius: 10px; }
.wv-scroll .g-wrap { overflow: visible; }
.wv-scroll table { margin: 0; overflow: visible; }   /* .table clips its corners, which would stop the headers sticking */
.wv-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
.wv-mx { font-size: 13px; }
.wv-mx th.wv-c, .wv-mx td.wv-c { text-align: center; width: 76px; }
.wv-mx thead th.wv-c { font-size: 11px; line-height: 1.2; vertical-align: bottom; }
.wv-mx .wv-cat td { background: #f3f6f7; font-weight: 800; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #4b5d66; }
.wv-mx .wv-desc { max-width: 520px; }
.wv-yes { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #e6f4ec; color: #1d7a45; }
.wv-no { color: #a7b3b9; }
.wv-mx tfoot td { font-weight: 800; }
.wv-macs summary { cursor: pointer; color: var(--fill, #0e8f9c); font-weight: 700; }
.wv-macs div { text-align: left; margin-top: 4px; }
.wv-pkgs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: 12px; margin-bottom: 14px; overflow-x: auto; padding-bottom: 4px; }   /* every package side by side on one line */
.wv-pkg { min-width: 0; }
.wv-pkg textarea, .wv-pkg input { width: 100%; box-sizing: border-box; }
.wv-pkg { border: 1px solid #dfe5e8; border-radius: 14px; padding: 14px 16px; background: var(--surface); }
.wv-pkg h3 { margin: 0 0 4px; font-size: 16px; font-weight: 800; }
.wv-price { font-size: 22px; font-weight: 800; color: var(--ink); }
.wv-pkg ul { margin: 10px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.wv-notes { border: 1px solid #dfe5e8; border-radius: 14px; padding: 14px 16px; margin-top: 4px; }
.wv-notes h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.wv-notes textarea { width: 100%; box-sizing: border-box; font: inherit; }
.wv-pre { white-space: pre-line; font-size: 13.5px; line-height: 1.6; }
.wv-setup { display: inline-flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid #dfe5e8; border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--surface); }
.wv-setup:hover { border-color: var(--fill, #0e8f9c); background: #f3fafb; }
.wv-setup > span:nth-child(2) { display: grid; gap: 2px; }
.wv-setup-ic { color: var(--fill, #0e8f9c); display: grid; }
.wv-setup-edit { display: grid; gap: 10px; max-width: 640px; }
.wv-locs.editing { grid-template-columns: minmax(0, 1fr); }
.wv-dev td.wv-nw { white-space: nowrap; overflow-wrap: normal; }
.wv-price > span { font-size: 13px; font-weight: 600; }
/* Passwords: restricted logins, and the Login popup */
.pw-lock { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #fff2d6; color: #8a5a00; margin-right: 6px; vertical-align: -4px; }
.pw-who { display: block; font-size: 11.5px; font-weight: 600; color: #8a5a00; margin-top: 2px; }
.pw-form .grid2 { margin-bottom: 6px; }
.pw-form h3 { font-size: 13px; font-weight: 800; margin: 12px 0 6px; }
.pw-form .pw-qrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 6px; }
.pw-form .pw-qrow input { width: 100%; box-sizing: border-box; }
.pw-passrow { display: flex; gap: 6px; align-items: center; } .pw-passrow input { flex: 1; min-width: 0; }
.pw-roles { grid-row: span 2; border: 1px solid #e3e8eb; border-radius: 10px; padding: 8px 12px 6px; margin: 0; min-width: 0; }
.pw-roles legend { font-size: 13px; font-weight: 700; color: #3c454b; padding: 0 4px; }
.pw-role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 12px; max-height: 150px; overflow-y: auto; }
.pw-role-list .check { font-size: 13px; font-weight: 600; }
.pw-roles .hint { margin: 6px 0 2px; }
/* Org KPIs → Data Collection: every heading centred over its column */
.ok-tbl.ok-data thead th, .ok-tbl.ok-data thead th:not(.ok-off) { text-align: center; vertical-align: bottom; }
.ok-tbl.ok-data thead th .ok-vh { margin: 0 auto; }
/* Technology → OA Eaglesoft Utilities */
.eu-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid #d6dce0; border-radius: 14px; padding: 18px 20px; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); max-width: 900px; }
.eu-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #e2f3f5; color: var(--fill, #0e8f9c); flex: none; }
.eu-main { flex: 1; min-width: 260px; } .eu-main h2 { margin: 0 0 2px; font-size: 18px; } .eu-main p { margin: 2px 0; }
.eu-sha code { font-size: 11.5px; overflow-wrap: anywhere; }
.eu-dl { min-height: 44px; padding: 0 22px; font-size: 15px; }
.eu-how { max-width: 900px; margin-top: 18px; } .eu-how h3 { font-size: 15px; margin: 0 0 6px; } .eu-how ol { margin: 0; padding-left: 20px; line-height: 1.6; }

/* Module Builder editor: section tools */
.ed-sec-tools { display: flex; flex-wrap: wrap; gap: 4px; }
/* Practice Support Group → Microexperiments */
.mx-head { gap: 10px; flex-wrap: wrap; margin-bottom: .6rem; } .mx-head p { margin: 0; }
.mx-bar { flex-wrap: wrap; gap: .5rem; }
.mx-bar .seg button { padding: 0 .65rem; } .mx-n { opacity: .75; font-weight: 700; margin-left: 2px; }
.mx-crit { border: 1px solid #e3e8eb; border-radius: 10px; padding: .5rem .8rem; margin: 0 0 .8rem; background: var(--surface); }
.mx-crit summary { cursor: pointer; } .mx-crit ul { margin: .4rem 0 .3rem; padding-left: 1.2rem; font-size: 13.5px; }
.mx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.mx-card { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border: 1px solid #dfe5e8; border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; box-shadow: 0 3px 14px -12px rgba(24, 40, 47, .4); }
.mx-card:hover, .mx-card:focus-visible { border-color: var(--fill, #0e8f9c); outline: none; }
.mx-card.mx-due { border-left: 4px solid #c2410c; }
.mx-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mx-st { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.mx-st-requested { background: #eef1ff; color: #3730a3; } .mx-st-active { background: #e2f3f5; color: #0b5c63; }
.mx-st-due { background: #ffe6d5; color: #9a3412; } .mx-st-done { background: #e6f4ec; color: #1d6b3d; }
.mx-type { font-size: 11.5px; font-weight: 700; color: #4b5d66; background: #eef3f5; border-radius: 999px; padding: 2px 8px; }
.mx-att { margin-left: auto; font-size: 12px; color: #4b5d66; }
.mx-owner { font-weight: 800; font-size: 14.5px; }
.mx-details { font-size: 13.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.mx-result { font-size: 13px; color: #24414f; background: #f4f7fa; border-radius: 8px; padding: 6px 8px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mx-dates { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: #5f6f76; }
.mx-dates b { color: var(--ink); font-weight: 700; } .mx-dates .mx-due b { color: #c2410c; }
.mx-form .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.mx-form .mx-psg { margin-top: .6rem; }
.mx-files { list-style: none; margin: .2rem 0 .4rem; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.cl-frpanel { padding: 1rem; }
.tcn-cb-h { display: block; padding: .35rem .6rem .15rem; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }

/* Module Builder → checklist Editor → Icons */
.ed-icgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: .6rem; }
.ed-ic { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; }
.ed-ic img { height: 32px; max-width: 100%; object-fit: contain; }
.ed-ic code { font-size: 12px; color: var(--steel); }
.ed-ic:hover { border-color: var(--tc); background: var(--sunken); }

/* Patient Retention: headers centered; Hours from the Timeclock */
.ret-days th, .ret-days th.r, .ret-year th, .ret-year th.r { text-align: center; }
.ret-hrs { display: block; text-align: right; padding: 0 .5rem; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Weave → Roles & Permissions: Edit */
.wv-mx-tools { margin-bottom: .6rem; }
.wv-mx.editing thead th.wv-c { width: 110px; white-space: nowrap; }
.wv-rolein { width: 82px; font: inherit; font-size: 11px; font-weight: 700; padding: 3px 4px; text-align: center; }
.wv-x { border: 0; background: none; color: var(--steel); cursor: pointer; padding: 0 3px; font-size: 12px; }
.wv-x:hover { color: #b42318; }
.wv-catin { font: inherit; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 6px; }
.wv-pedit { display: flex; gap: 4px; align-items: center; }
.wv-pedit input { flex: 1; font: inherit; padding: 3px 6px; }
.wv-mx.editing td textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 12px; margin-top: 4px; min-width: 260px; }

/* Accounts Receivable → Diagrams */
.ar-diagrams { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
.ar-dg { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--surface); min-width: 0; }
.ar-dg h2 { margin: 0 0 10px; font-size: 1.02rem; }
.ar-dg img { display: block; max-width: 100%; height: auto; border-radius: 8px; background: #fff; }
.ar-dg-row { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 18px; align-items: start; }
.ar-terms { margin: 0; padding-left: 1.1rem; line-height: 1.55; font-size: .95rem; }
.ar-terms > li { margin-bottom: .45rem; }
.ar-terms ul { margin: .25rem 0 0; padding-left: 1.1rem; }
@media (max-width: 1100px) { .ar-diagrams, .ar-dg-row { grid-template-columns: minmax(0, 1fr); } }

/* Accounts Receivable → Codes: Helpful Hints (folded) */
.ar-hints { border: 1px solid var(--rule); border-radius: 10px; margin: 0 0 .7rem; background: var(--surface); }
.ar-hints > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .5rem .8rem; }
.ar-hints > summary::-webkit-details-marker { display: none; }
.ar-hints > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg); transition: transform .15s; }
.ar-hints[open] > summary::before { transform: rotate(45deg); }
.ar-hints-ed { margin-left: auto; }
.ar-hints .ar-note { margin: 0 .8rem .8rem; }

/* Accounts Receivable → Codes: the table scrolls in its box; the header row stays at the top and each group's row
   sticks under it until the next group comes up; click a group to fold it */
.ar-lock { max-height: calc(100vh - 230px); overflow: auto; border: 1px solid var(--rule); border-radius: 10px; }
.ar-lock .ar-tbl { overflow: visible; margin: 0; }
.ar-lock .ar-tbl thead th { position: sticky; top: 0; z-index: 3; box-shadow: inset 0 -1px 0 var(--rule); }
.ar-lock .ar-grp th { position: sticky; top: var(--arh, 34px); z-index: 2; box-shadow: inset 0 -1px 0 var(--rule); }
.ar-grp-fold th { cursor: pointer; user-select: none; }
.ar-grp-fold:hover th { background: #e7edf4 !important; }
.ar-chev { display: inline-block; width: 7px; height: 7px; margin: 0 .55rem .12rem .15rem; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); transition: transform .15s; }
.ar-grp-fold.shut .ar-chev { transform: rotate(-45deg); }

/* Accounts Receivable → Codes: each category in its own colour, its rows alternating two shades of it */
.ar-tbl tr.ar-hue > td { background: color-mix(in srgb, hsl(var(--gh) 70% 50%) 5%, var(--surface, #fff)); }
.ar-tbl tr.ar-hue.ar-alt > td { background: color-mix(in srgb, hsl(var(--gh) 70% 50%) 12%, var(--surface, #fff)); }
.ar-tbl tr.ar-grp.ar-hue > th { background: color-mix(in srgb, hsl(var(--gh) 65% 45%) 26%, var(--surface, #fff)) !important; color: var(--ink); border-left: 4px solid hsl(var(--gh) 60% 42%); }
.ar-tbl tr.ar-grp.ar-hue:hover > th { background: color-mix(in srgb, hsl(var(--gh) 65% 45%) 34%, var(--surface, #fff)) !important; }

/* Weave: locations and permission categories fold (start folded) */
.wv-foldhead, .wv-foldrow td { cursor: pointer; user-select: none; }
.wv-loc.shut > :not(header) { display: none; }
.wv-loc.shut > header { margin-bottom: 0; }
.wv-loc.shut { padding-bottom: 10px; }
.wv-chev { display: inline-block; flex: none; width: 7px; height: 7px; margin: 0 .5rem .15rem .1rem; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); transition: transform .15s; }
.shut > .wv-foldhead .wv-chev, .wv-foldrow.shut .wv-chev { transform: rotate(-45deg); }
.wv-foldrow:hover td { background: #e8eef0; }
.wv-locs { align-items: start; }

/* Integrations → Facebook / Yelp: offices with no match stand out */
.rv-locs tr.rv-nf td:first-child { color: #9a3412; font-weight: 600; }
.rv-nf-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fff1e6; color: #9a3412; }

/* Marketing → Website Bios */
.wb-list { display: grid; gap: 8px; }
.wb-card { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
.wb-card > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.wb-card > summary::-webkit-details-marker { display: none; }
.wb-card > summary::after { content: ''; flex: none; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg); transition: transform .15s; }
.wb-card[open] > summary::after { transform: rotate(45deg); }
.wb-card[open] > summary { border-bottom: 1px solid var(--rule); }
.wb-card > summary:hover { background: var(--sunken); border-radius: 12px; }
.wb-thumb { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #e6f4f3; color: #0f766e; font-weight: 800; font-size: 14px; }
.wb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wb-who { display: grid; gap: 1px; min-width: 0; flex: 1; }
.wb-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.wb-chip { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.wb-chip.ok { background: #e6f4ec; color: #1d6b3d; } .wb-chip.no { background: #fff1e6; color: #9a3412; }
.wb-chip.on { background: #e0f2fe; color: #075985; } .wb-chip.off { background: var(--sunken); color: var(--steel); }
.wb-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 16px; }
.wb-photo { display: grid; gap: 8px; align-content: start; justify-items: start; }
.wb-pic { width: 200px; height: 200px; border-radius: 14px; overflow: hidden; background: #e6f4f3; display: grid; place-items: center; color: #0f766e; font-size: 48px; font-weight: 800; }
.wb-pic img { width: 100%; height: 100%; object-fit: cover; }
.wb-fields textarea { width: 100%; box-sizing: border-box; font: inherit; }
.wb-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.wb-bar { flex-wrap: wrap; align-items: center; }
@media (max-width: 720px) { .wb-body { grid-template-columns: minmax(0, 1fr); } .wb-chips { display: none; } }

/* starting up: Chippy, gently bobbing, with the Nexus wordmark */
.boot-chippy { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 0; }
.boot-chippy img { width: min(240px, 50vw); height: min(240px, 50vw); object-fit: contain; animation: boot-bob 1.4s ease-in-out infinite; }
.boot-chippy .wordmark { font-size: 4rem; opacity: .9; }
@keyframes boot-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
@media (prefers-reduced-motion: reduce) { .boot-chippy img { animation: none; } }

/* Marketing → Office Profiles (cards like Doctor Profiles) */
.of-thumb { border-radius: 10px; font-size: 11px; }
.of-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; padding: 16px; }
.of-photos { display: grid; gap: 8px; align-content: start; justify-items: start; }
.of-main { width: 300px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--sunken); display: grid; place-items: center; }
.of-main img { width: 100%; height: 100%; object-fit: cover; }
.of-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 300px; }
.of-thumbs figure { margin: 0; display: grid; gap: 2px; }
.of-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.of-thumbs figure.main img { outline: 2px solid var(--done, #1c9e95); }
.of-thumbs figure div { display: flex; align-items: center; justify-content: space-between; }
.of-ro { margin: .6rem 0 0; }
.of-dl { margin: 0; display: grid; gap: 4px; width: 100%; font-size: 13px; }
.of-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.of-dl dt { color: var(--steel); } .of-dl dd { margin: 0; overflow-wrap: anywhere; }
.of-docs { margin: 0; padding-left: 1.1rem; font-size: 13px; }
.of-fields textarea { width: 100%; box-sizing: border-box; font: inherit; }
.of-h { margin: .8rem 0 .3rem; font-size: 14px; }
@media (max-width: 860px) { .of-body { grid-template-columns: minmax(0, 1fr); } .of-main, .of-thumbs { width: 100%; } }

.of-why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.of-why-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: start; }
.of-why-txt { display: grid; gap: 4px; }
.of-why-icon { display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border: 1px dashed var(--rule); border-radius: 10px; min-height: 64px; align-content: center; }
.of-why-icon img { width: 44px; height: 44px; object-fit: contain; }
.of-why-icon .btn { padding: 1px 6px; font-size: 12px; }
.of-why input, .of-why textarea { width: 100%; box-sizing: border-box; font: inherit; }
.of-why input { font-weight: 700; }
.of-logo { display: flex; align-items: center; gap: 10px; }
.of-logo img { width: 64px; height: 64px; object-fit: contain; }
@media (max-width: 720px) { .of-why { grid-template-columns: minmax(0, 1fr); } }

/* Marketing → Services (cards like Office Profiles) */
.sv-thumb { border-radius: 10px; background: #eef6fb; }
.sv-thumb img { object-fit: contain; padding: 5px; box-sizing: border-box; }
.sv-body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; padding: 16px; }
.sv-media { display: grid; gap: 6px; align-content: start; }
.sv-pics { display: grid; gap: 8px; }
.sv-icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sv-slot { margin: 0; display: grid; gap: 3px; }
.sv-img { border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--sunken); display: grid; place-items: center; }
.sv-img a { display: contents; }
.sv-pic .sv-img img { width: 100%; height: 100%; object-fit: cover; }
.sv-ic .sv-img { aspect-ratio: 1; background: #fff; }
.sv-ic .sv-img img { width: 64%; height: 64%; object-fit: contain; }
.sv-dark .sv-img { background: #313638; }
.sv-slot figcaption { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; line-height: 1.2; }
.sv-slot figcaption > span { flex: 1 1 100%; }
.sv-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; }
.sv-checks label { display: inline-flex; align-items: center; gap: 5px; }
.sv-offices { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.of-h .btn { margin-left: 6px; }
@media (max-width: 860px) { .sv-body { grid-template-columns: minmax(0, 1fr); } }
.ic-prev { width: 100%; height: 150px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; }

/* Marketing → FAQs */
.fq-group { margin: 10px 0; }
.fq-group > summary { cursor: pointer; display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.fq-group > summary h3 { margin: 0; font-size: 15px; display: inline; }
.fq-group > .wb-list { margin-top: 6px; }
.fq-card .wb-who b { font-weight: 600; }
.fq-body { padding: 14px 16px; display: grid; gap: 6px; }
.fq-body textarea { width: 100%; box-sizing: border-box; font: inherit; }
.fq-prev { border-left: 3px solid var(--rule); padding: 2px 0 2px 12px; font-size: 13.5px; }
.fq-prev p { margin: .35em 0; } .fq-prev ul { margin: .35em 0; padding-left: 1.2em; }
.fq-newcat { width: 160px; }

/* Microexperiments: Microexperiments / Claim Results switch, and the Claim Results table */
.mx-views { margin-bottom: .8rem; }
.mx-claims { font-size: 13px; }
.mx-claims td { vertical-align: top; }
.mx-claims td.mx-wrap { white-space: pre-line; min-width: 14rem; }
.mx-paid { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.mx-paid.yes { background: #e6f4ec; color: #1d6b3d; } .mx-paid.no { background: #fff1e6; color: #9a3412; }

/* PSG → Chat Inbox */
.ci-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ci-head p { margin: 0; }
.ci-wrap { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 0; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); height: calc(100vh - 250px); min-height: 480px; overflow: hidden; }
.ci-list { border-right: 1px solid var(--rule); display: flex; flex-direction: column; min-height: 0; }
.ci-tabs { padding: 6px 8px 0; flex-wrap: wrap; }
.ci-filters { display: grid; grid-template-columns: 120px 1fr; gap: 6px; padding: 8px; border-bottom: 1px solid var(--rule); }
.ci-filters input, .ci-filters select { min-width: 0; }
.ci-threads { overflow-y: auto; flex: 1; }
.ci-t { display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--rule); background: none; cursor: pointer; font: inherit; color: inherit; align-items: flex-start; }
.ci-t:hover { background: var(--sunken); }
.ci-t.on { background: #e0f2fe; }
.ci-t.unread .ci-tl { font-weight: 700; color: inherit; }
.ci-ch { flex: none; font-size: 16px; line-height: 1.4; }
.ci-tw { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ci-tn { display: flex; justify-content: space-between; gap: 6px; }
.ci-tn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-tl { color: var(--steel); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; box-sizing: border-box; }
.ci-conv { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ci-none { display: grid; place-items: center; height: 100%; }
.ci-ch-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.ci-acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ci-acts select { max-width: 190px; }
.ci-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--sunken); }
.ci-m { max-width: 72%; display: grid; gap: 2px; }
.ci-in { align-self: flex-start; } .ci-out { align-self: flex-end; justify-items: end; }
.ci-note, .ci-system { align-self: center; max-width: 86%; justify-items: center; }
.ci-b { padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--rule); overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; }
.ci-out .ci-b { background: #0f766e; color: #fff; border-color: #0f766e; } .ci-out .ci-b a { color: #fff; }
.ci-note .ci-b { background: #fef9c3; border-color: #fde68a; color: #713f12; }
.ci-system .ci-b { background: transparent; border: 1px dashed var(--rule); color: var(--steel); font-size: 12.5px; }
.ci-meta { font-size: 11.5px; color: var(--steel); }
.ci-err { color: #b91c1c; }
.ci-compose { border-top: 1px solid var(--rule); padding: 8px 10px; display: grid; gap: 6px; }
.ci-compose textarea { width: 100%; box-sizing: border-box; font: inherit; resize: vertical; }
.ci-compose.note textarea { background: #fefce8; }
.ci-cbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-warn { margin: 0; font-size: 12.5px; color: #9a3412; background: #fff1e6; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 820px) { .ci-wrap { grid-template-columns: minmax(0, 1fr); height: auto; } .ci-list { border-right: 0; border-bottom: 1px solid var(--rule); max-height: 45vh; } .ci-conv { min-height: 60vh; } .ci-m { max-width: 90%; } }
:root[data-theme="dark"] .ci-t.on { background: #0c2a3a; }
:root[data-theme="dark"] .ci-note .ci-b { background: #3a3110; color: #fde68a; border-color: #5c4a12; }
.ci-cfg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0; } .ci-cfg input { width: 100%; box-sizing: border-box; } @media (max-width: 720px) { .ci-cfg { grid-template-columns: 1fr; } }

/* CDS Codes & Fees, editing */
.cds-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0 8px; }
.cds-edit .cds-in { width: 100%; min-width: 70px; box-sizing: border-box; font: inherit; padding: 3px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); }
.cds-edit .ref-desc .cds-in { min-width: 240px; }
.cds-edit .cds-in.num { text-align: right; }
.cds-edit thead th { vertical-align: top; }
.cds-edit thead .cds-in { font-weight: 700; margin-bottom: 3px; }
.cds-x { border: 0; background: none; color: var(--steel); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.cds-x:hover { background: var(--surface-2, #eef2f4); color: #b42318; }

.ref-tbl .ucr-cell { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ref-tbl .ucr-in { width: 84px; text-align: right; font: inherit; padding: 2px 6px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); color: inherit; }
.ref-tbl .ucr-tog { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--steel); white-space: nowrap; cursor: pointer; }
.ref-tbl .ucr-tog input { margin: 0; }
.ref-tbl .ref-off, .ref-tbl .ref-off .ucr-in, .ref-key .ref-off { color: #1d5fd6; font-weight: 700; }
.ref-tbl td.ref-off .ucr-tog { color: #1d5fd6; }

/* Insurance: Mass Update */
.ins-tbl .ins-pick { width: 28px; text-align: center; }
.ins-tbl tr.picked td { background: color-mix(in srgb, var(--teal, #0e86a3) 8%, transparent); }
.ins-mass { margin: 8px 0; }
.ins-mass .ins-mdocs { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 6px 0 10px; }
.ins-mass .ins-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 12px; }
.ins-mass .ins-mclr { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--steel); margin-top: 2px; }

.ref-tbl .ap-code { width: 70px; text-align: left; font-weight: 700; }
.ref-tbl .ap-desc { width: 100%; min-width: 220px; text-align: left; }
.ref-tbl th.ref-code .cds-x { padding: 0 4px; }

/* AR → Denial Tracker */
.dn-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 12px; }
.dn-stats > div { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: grid; }
.dn-stats b { font-size: 1.25rem; } .dn-stats span { color: var(--steel); font-size: 13px; }
.dn-stats .bad b { color: #b42318; }
.dn-tbl td { vertical-align: top; } .dn-tbl .num { text-align: right; white-space: nowrap; }
.dn-tbl .dn-reason { min-width: 200px; max-width: 340px; } .dn-tbl .dn-reason small { display: block; white-space: pre-line; }
.dn-tbl tr.dn-done td { opacity: .65; }
.dn-tbl .dn-late { color: #b42318; font-weight: 700; }
.dn-st { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #eef2f4; color: #334155; }
.dn-st.dn-open { background: #fff4e5; color: #9a5b00; } .dn-st.dn-appealed { background: #e8f0fe; color: #1d4ed8; }
.dn-st.dn-resubmitted { background: #f3e8ff; color: #6b21a8; } .dn-st.dn-paid { background: #e7f6ec; color: #166534; }
.dn-st.dn-written-off { background: #f1f5f9; color: #475569; }

.dlg-head .to-head + .to-head { margin-left: 0; }
.tag.tag-web { background: #e7f6ec; color: #166534; }

/* Credentialing: a doctor's Office line as an office picker */
.cred-ofchips { display: flex; flex-wrap: wrap; gap: 6px; }
.cred-ofchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; font-size: 13px; background: var(--surface); }
.cred-ofchip.on { background: #e6f4f7; border-color: #0e86a3; color: #0b5e73; font-weight: 600; }
.cred-ofchip input { margin: 0; }
.cred-ofchip small { color: var(--steel); font-weight: 400; }

.cred-web { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; margin: 0 6px; }

/* EFT Log: year ‹ 2026 › and the months JAN … DEC */
.eft-ym { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 12px; }
.eft-year { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; min-height: 34px; }
.eft-year span { padding: 0 .9rem; font-weight: 700; font-variant-numeric: tabular-nums; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); align-self: stretch; display: flex; align-items: center; }
.eft-year button { border: 0; background: none; color: var(--steel); font-size: 18px; padding: 0 .65rem; min-height: 34px; cursor: pointer; }
.eft-year button:hover { background: var(--sunken); color: var(--ink); }
.eft-mseg { flex-wrap: wrap; }
.eft-mseg button { position: relative; letter-spacing: .04em; padding: 0 .75rem; }
.eft-mdot { position: absolute; top: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--fill); }
.eft-mseg button.on .eft-mdot { background: #fff; }
/* EFT Log: the months and the year picker are the same height */
.eft-ym { --eft-h: 40px; align-items: stretch; }
.eft-year { height: var(--eft-h); min-height: 0; }
.eft-year button, .eft-year span { height: 100%; min-height: 0; box-sizing: border-box; }
.eft-mseg { height: var(--eft-h); border-radius: var(--r-sm); }
.eft-ym .eft-mseg button { height: 100%; min-height: 0; padding-top: 0; padding-bottom: 0; line-height: 1; border-radius: 0; box-sizing: border-box; }

/* EFT Log header: Totals · Quick IDs · Notes Highlight Key */
.ta section.eft-head, .ta section.eft-head.panel { padding: 0; border: 0; background: none; box-shadow: none; border-radius: 0; }
.eft-cards { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(240px, 1fr) minmax(240px, 1fr); gap: 12px; }
.eft-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .35); min-width: 0; }
.eft-card h3 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--steel); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.eft-card h3 small { font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.eft-big { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--fill) 10%, transparent); margin-bottom: 6px; }
.eft-big span { font-weight: 700; color: var(--ink); }
.eft-big b { font-size: 1.45rem; font-variant-numeric: tabular-nums; color: var(--fill); }
.eft-trow { display: flex; justify-content: space-between; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed var(--rule); font-size: 13.5px; }
.eft-trow:last-child { border-bottom: 0; }
.eft-trow b { font-variant-numeric: tabular-nums; }
.eft-trow.muted-row span { color: var(--steel); }
.eft-c-ids { display: flex; flex-direction: column; gap: 6px; }
.eft-id { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--sunken, #f6f8f9); color: var(--ink); cursor: pointer; }
.eft-id:hover:not(:disabled) { border-color: var(--fill); }
.eft-id:disabled { cursor: default; opacity: .7; }
.eft-id span { color: var(--steel); font-weight: 600; }
.eft-id b { font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eft-keys { display: flex; flex-direction: column; gap: 6px; }
.eft-c-key .eft-flag { margin: 0; padding: 6px 10px; border-radius: 8px; font-size: 13px; line-height: 1.3; }
.eft-head-actions { margin-top: 8px; }
@media (max-width: 1000px) { .eft-cards { grid-template-columns: 1fr 1fr; } .eft-c-key { grid-column: 1 / -1; } }
@media (max-width: 640px) { .eft-cards { grid-template-columns: 1fr; } }
.eft-keyhint { margin: -4px 0 10px; font-size: 13px; color: var(--steel); line-height: 1.4; }

/* Users & Access → edit: the Timeclock box (Uses Timeclock? in its heading) */
.tc-fold > summary { display: flex; align-items: center; gap: .5rem; }
.tc-fold .tc-uses { margin-left: auto; font-weight: 700; }
.tc-fold .tc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 8px 0; }
@media (max-width: 600px) { .tc-fold .tc-grid { grid-template-columns: 1fr; } }

/* Communications → AR Board (Trello-style lists) */
.ar-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 272px); gap: .7rem; overflow-x: auto; align-items: start; padding-bottom: .6rem; }
.ar-col { background: #eef1f3; }
.ar-col.ar-done { background: #eef6f1; }
.ar-col .cl-cards { display: grid; gap: .45rem; min-height: 20px; }
.ar-addin { width: 100%; margin-top: .45rem; border: 0; background: none; color: var(--steel); text-align: left; padding: .4rem .5rem; border-radius: 8px; cursor: pointer; font: inherit; font-size: 13px; }
.ar-addin:hover { background: rgba(0,0,0,.06); color: var(--ink); }
.ar-card h3 { margin: .1rem 0 .15rem; font-size: 14px; }
.ar-ctype { margin: 0; font-size: 12px; color: var(--steel); font-weight: 600; }
.ar-lbls { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.ar-lbl { display: inline-block; background: var(--lc); color: var(--lt); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; line-height: 1.35; white-space: nowrap; }
.ar-lbl-sm { width: 36px; height: 8px; padding: 0; border-radius: 4px; }
.ar-lpick { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-lopt { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.ar-lopt input { margin: 0; }
.ar-intro { margin: 0 0 .6rem; padding: .5rem .7rem; background: #fff8e1; border: 1px solid #f3dc93; border-radius: 8px; font-style: italic; font-size: 13.5px; }
.ar-typepick { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.ar-tbtn { display: grid; gap: 3px; text-align: left; padding: .7rem .8rem; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); cursor: pointer; font: inherit; }
.ar-tbtn:hover { border-color: var(--fill); background: color-mix(in srgb, var(--fill) 6%, var(--surface)); }
.ar-lrow, .ar-srow { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.ar-lrow input, .ar-srow input { flex: 1; }
.ar-type { border: 1px solid var(--rule); border-radius: 10px; padding: .4rem .7rem; margin: 6px 0; }
.ar-type > summary { cursor: pointer; }
.ar-tfields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 10px; }
.ar-ofc { white-space: nowrap; }
.ar-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 .6rem; }
.ar-sub .grow { flex: 1; }
.ar-sub select { width: auto; min-width: 12rem; max-width: 22rem; }
/* Team checklists: rotating roles */
.ck-roles { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ck-role { display: grid; gap: 1px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); min-width: 170px; }
.ck-role.me { border-color: var(--fill); background: color-mix(in srgb, var(--fill) 8%, var(--surface)); }
.ck-role b { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--steel); }
.ck-rchip { display: inline-block; margin-left: 6px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #eef2f4; color: #475569; }
.ck-rchip.me { background: color-mix(in srgb, var(--fill) 15%, transparent); color: var(--ink); }
.ck-rrow { display: grid; grid-template-columns: 1fr 1.4fr 10rem auto; gap: 6px; margin: 4px 0; }
@media (max-width: 640px) { .ck-rrow { grid-template-columns: 1fr; } }
/* My Tasks: checked-off tasks in the Archive */
.rn-arch { margin-top: 6px; border-top: 1px dashed var(--rule); padding-top: 6px; }
.rn-arch > summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--steel); }
.pp-lead { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; margin: -2px 0 8px; }
.pp-lead .field-hint { margin: 0; }
/* Communications → Task Archive: resolved cards as cards */
.cl-archgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .7rem; padding: .3rem 0 .6rem; }
.cl-archcell { display: grid; gap: 3px; }
.cl-archcell .cl-card { opacity: .92; }
.cl-archwhen { padding-left: 4px; }
.rn-archbox > summary h2 { margin-right: .4rem; }
.rn-archlink { font-weight: 600; }
.ck-xfer { padding: 0 6px; }
.ck-rhead { display: grid; gap: 4px; margin-bottom: 8px; }
.ck-rhead .ck-rrow { grid-template-columns: 1fr 10rem auto; }
.ck-rtbl input { width: 100%; min-width: 9rem; }
.ck-rtbl .ck-rall td { background: var(--sunken, #f6f8f9); }
.ck-dayset { border: 0; padding: 0; margin: 0; }
.ck-daybox { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ck-days { margin-left: 6px; }

/* My Tasks / Archived Tasks: collapsible sub-headers by office or source */
.rn-grp-pick.vmode { display: inline-flex; margin: 2px 0 6px; height: 30px; background: var(--sunken); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.ta .rn-grp-pick button { font: 700 12px/1 var(--f-ui); color: var(--steel); background: transparent; border: 0; border-radius: calc(var(--r-sm) - 2px); padding: .35rem .65rem; cursor: pointer; }
.ta .rn-grp-pick button:hover { color: var(--ink); }
.ta .rn-grp-pick button[aria-pressed="true"] { background: var(--surface); color: var(--head-ink); box-shadow: 0 1px 2px rgba(24, 40, 47, .18); }
.rn-grp { margin-top: 6px; border-top: 1px solid var(--rule); padding-top: 6px; }
.rn-grps { column-count: 2; column-gap: 28px; }
@media (max-width: 900px) { .rn-grps { column-count: 1; } }
.rn-grp { break-inside: avoid; }
.rn-grp:first-of-type { border-top: 0; margin-top: 0; }
.rn-grp > summary { cursor: pointer; font-weight: 800; font-size: 13.5px; color: var(--steel); display: flex; align-items: center; gap: 6px; list-style: none; }
.rn-grp > summary::-webkit-details-marker { display: none; }
.rn-grp > summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
.rn-grp[open] > summary::before { transform: rotate(90deg); }
.rn-grp-n { font-weight: 700; font-size: 11px; padding: 1px 7px; border-radius: 9px; background: #e7f4f6; color: #0e6170; }
.rn-grp-late { font-size: 12px; color: var(--red); }
.rn-grp > .rn-mine-list { margin-top: 4px; }

/* Weave: the search row stays put while the page scrolls; an open location keeps its name and column headings in view */
.wv-body { --wv-tb: 48px; }
.wv-body > .toolbar { position: sticky; top: var(--top); z-index: 6; background: var(--surface); margin: -.4rem -.2rem .9rem; padding: .5rem .2rem; box-shadow: 0 1px 0 var(--rule); }
.wv-loc:not(.shut) > header { position: sticky; top: calc(var(--top) + var(--wv-tb)); z-index: 4; background: var(--surface); margin: 0 -12px 6px; padding: 6px 12px; box-shadow: 0 1px 0 var(--rule); }
.wv-loc .wv-dev, .wv-body > table.table { overflow: visible; }
.wv-loc .wv-dev thead th { position: sticky; top: calc(var(--top) + var(--wv-tb) + 32px); z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
.wv-body > table.table thead th { position: sticky; top: calc(var(--top) + var(--wv-tb)); z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
/* Weave → Roles & Permissions: the category you're scrolling through (with + Permission while editing) stays under the headings */
.wv-scroll .wv-mx .wv-cat td { position: sticky; top: 40px; z-index: 1; box-shadow: inset 0 -1px 0 var(--rule); }
.wv-scroll .wv-mx.editing .wv-cat td { top: 48px; }
/* Weave → Plans & Billing while editing: columns keep their widths and the table scrolls sideways instead of squeezing */
.wv-plans-edit .g-tbl { table-layout: fixed; width: 1520px; min-width: 100%; }
.wv-plans-edit .g-tbl input, .wv-plans-edit .g-tbl select { min-width: 0; width: 100%; box-sizing: border-box; }
.wv-plans-edit .g-tbl td textarea { min-width: 0; }
/* Microexperiments: boxed tabs; on Claim Results the search row and column headings stay in view while scrolling */
.mxp .mx-bar { position: sticky; top: var(--top); z-index: 6; background: var(--surface); margin: 0 -.2rem .6rem; padding: .5rem .2rem; box-shadow: 0 1px 0 var(--rule); }
.mx-claimwrap .mx-claims { overflow: visible; }
.mx-claimwrap .mx-claims thead th { position: sticky; top: calc(var(--top) + var(--mx-bar, 48px)); z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
@media (max-width: 900px) { .mx-claimwrap { overflow-x: auto; } }
/* Communications: a department's sub-categories (Accounts Receivable: Denials · Audits · Claims; Office: Front · Doctors) */
.cl-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cl-sub { font: 700 13px/1 var(--f-ui); color: var(--steel); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem; }
.cl-sub:hover { color: var(--ink); border-color: var(--fill); }
.cl-sub.on { background: var(--fill); border-color: var(--fill); color: #fff; }
.cl-sub.on .cl-whon { opacity: .9; }
/* Accounts Receivable → Codes: a narrow ADA Code column, a wide Submission Rules column */
.ar-tbl.ar-t-codes th:nth-child(1), .ar-tbl.ar-t-codes td:nth-child(1) { min-width: 0; width: 5.5rem; white-space: nowrap; }
.ar-tbl.ar-t-codes th:nth-child(3), .ar-tbl.ar-t-codes td:nth-child(3) { min-width: 24rem; }
/* Site Settings → Access Log: the table scrolls in its own box under the filters, headings frozen */
.al-bar { flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.al-bar input[type=search] { flex: 1 1 260px; max-width: 360px; }
.al-wrap { max-height: calc(100vh - 300px); overflow: auto; border: 1px solid var(--rule); border-radius: 10px; }
.al-tbl { font-size: 13px; margin: 0; overflow: visible; width: 100%; table-layout: fixed; }
.al-tbl thead th { position: sticky; top: 0; background: var(--surface); z-index: 3; box-shadow: inset 0 -1px 0 var(--rule); white-space: nowrap; }
.al-tbl td { vertical-align: middle; overflow-wrap: anywhere; }
.al-tbl tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--sunken) 55%, transparent); }
.al-tbl .al-when { width: 11.5rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--steel); }
.al-tbl .al-who { width: 22rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.al-tbl .al-where { width: 9.5rem; }
.al-tbl .al-rec { width: 12rem; font-weight: 700; }
.al-tbl .al-did { width: 6.5rem; text-align: center; }
.al-area { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #eef3f5; color: #3c4f57; white-space: nowrap; }
.al-act { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.al-act.show { background: #e6f1fb; color: #1d5a8a; } .al-act.copy { background: #fff2cc; color: #7a5a00; } .al-act.form { background: #eef3f5; color: #3c4f57; }
/* Marketing → Doctor Profiles: school logo */
.wb-logo { display: grid; gap: 6px; justify-items: start; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule); width: 200px; }
.wb-logopic { width: 200px; height: 200px; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--rule); background: #fff; display: grid; place-items: center; padding: 12px; box-sizing: border-box; overflow: hidden; }
.wb-logopic img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }

/* Doctor Profiles: Replace and Remove side by side */
.wb-btnrow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; width: 200px; }   /* as wide as the photo / logo */
.wb-btnrow > .btn { width: 100%; min-width: 0; justify-content: center; text-align: center; padding-left: 4px; padding-right: 4px; font-size: 12.5px; white-space: nowrap; box-sizing: border-box; }
.wb-btnrow > .btn-quiet { border: 1px solid var(--rule); }
/* Recruiting → Schools & Contacts → Data: school donuts */
.sd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.sd-card { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.sd-card h3 { margin: 0 0 10px; font-size: 16px; }
.sd-body { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sd-donut { width: 200px; height: 200px; flex: 0 0 auto; }
.sd-n { font: 800 28px/1 var(--f-ui); fill: var(--ink); } .sd-l { font: 600 11px/1 var(--f-ui); fill: var(--steel); text-transform: uppercase; letter-spacing: .06em; }
.sd-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; flex: 1 1 200px; font-size: 13px; }
.sd-leg li { display: grid; grid-template-columns: 12px 1fr auto 3rem; gap: 8px; align-items: center; }
.sd-leg i { width: 12px; height: 12px; border-radius: 3px; }
.sd-leg .muted { text-align: right; }
/* Marketing → Website Data */
.sdata { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; margin: 8px 0; }
.sdata > .field { flex: 0 1 280px; margin: 0; }
.sdata-act { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sdata-act .btn { height: 34px; box-sizing: border-box; }
/* Marketing & Website: every tab on one row (they shrink to fit; the full name shows when there's room) */
.ua-tabs.mk-tabs { flex-wrap: nowrap; gap: 3px; padding: 0 4px; }
.ua-tabs.mk-tabs button { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: clamp(.45rem, 1vw, 1rem); padding-right: clamp(.45rem, 1vw, 1rem); font-size: clamp(11.5px, .85vw, 13.5px); }
/* Marketing & Website: the website tabs (Doctor Profiles → Website Data) in their own colour */
.ua-tabs.mk-tabs button.mk-web { background: #fbefe3; border-color: #ecd3b8; color: #7a3f12; }
.ua-tabs.mk-tabs button.mk-web:hover { background: #f7e2cc; color: #5e2f0b; }
.ua-tabs.mk-tabs button.mk-web.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 3px 0 #e07a2f; }
/* Recruiting → Recruiting Flyer: the flyer is a US Letter page (8.5 × 11 in), shown scaled on screen */
.fly-bar { gap: .6rem; } .fly-pick { display: inline-flex; gap: .5rem; align-items: center; font-weight: 700; }
.fly-hint { margin: 0 0 12px; }
.fly-stage { background: #e9edf0; border-radius: 12px; padding: 24px; overflow: auto; display: flex; justify-content: center; }
.fly-form { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; background: var(--surface); }
.fly-form h3 { margin: 0; } .fly-form > p { margin: 2px 0 10px; }
.fly-form .btn { margin-top: 10px; }
.fly-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.fly-ph { position: relative; cursor: pointer; } .fly-ph input { position: absolute; top: 6px; left: 6px; }
.fly-ph img { width: 150px; height: 96px; object-fit: cover; border-radius: 8px; border: 3px solid transparent; display: block; }
.fly-ph input:checked + img { border-color: var(--fill); }
/* Practice → Patient Forms */
.pf-bar { flex-wrap: wrap; gap: .5rem; } .pf-note { margin: 0 0 10px; }
.pf-tbl { font-size: 13.5px; } .pf-tbl td { vertical-align: middle; }
.pf-tbl tr.pf-row-new td { background: color-mix(in srgb, #e6f4f6 60%, transparent); } .pf-tbl tr.pf-hl td { box-shadow: inset 0 0 0 2px var(--fill); }
.pf-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pf-st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.pf-new { background: #ffe9c7; color: #8a4b00; } .pf-opened { background: #e6f1fb; color: #1d5a8a; } .pf-done { background: #e6f4ec; color: #1d6b3d; }
.pf-grp { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.pf-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14.5px; }
.pf-grp > summary::-webkit-details-marker { display: none; }
.pf-chev { width: 0; height: 0; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transition: transform .15s; }
.pf-grp[open] .pf-chev { transform: rotate(90deg); }
.pf-grp .pf-wrap { padding: 0 10px 8px; overflow-x: auto; } .pf-grp .pf-tbl { margin: 0; }
/* Practice → Onboarding */
.ob-bar { flex-wrap: wrap; gap: .5rem; }
.ob-list { display: grid; gap: 8px; }
.ob-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-align: left; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; cursor: pointer; font: inherit; color: var(--ink); }
.ob-card:hover { border-color: var(--fill); } .ob-who { display: grid; gap: 2px; }
.ob-head { display: flex; gap: 14px; align-items: center; margin: 6px 0 12px; } .ob-head h2 { margin: 0; } .ob-head p { margin: 2px 0 0; }
.ob-sec { border: 1px solid var(--rule); border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; background: var(--surface); }
.ob-sec h3 { margin: 0 0 6px; font-size: 15px; }
.ob-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ob-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 3px 0; }
.ob-items li label { display: flex; gap: 8px; align-items: baseline; flex: 1 1 420px; cursor: pointer; }
.ob-items li.done label span { color: var(--steel); text-decoration: line-through; }
.ob-link { font-size: 12.5px; font-weight: 700; } .ob-by { white-space: nowrap; }
.ob-res { margin: 0 0 8px; padding-left: 18px; display: grid; gap: 6px; }
.ob-pk { display: grid; gap: 10px; }
#obPrint { display: none; }
/* Marketing & Website → Website Analytics */
.ga-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ga-head p { margin: 0; }
.ga-range { display: flex; gap: 6px; }
.ga-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.ga-tile { display: grid; gap: 4px; text-align: center; background: #F0F0F0; border: 1.5px solid #9AA0A6; border-radius: 10px; box-shadow: 0 2px 6px rgba(0,0,0,.25); padding: 16px 10px 12px; }
.ga-tile strong { font: 600 26px/1.15 var(--f-ui); color: #333; }
.ga-tile span { font-size: 13px; color: #4A5154; }
.ga-ch { font-style: normal; font-size: 12px; font-weight: 700; color: var(--steel); }
.ga-ch.up { color: #19693A; } .ga-ch.down { color: #A8322D; }
.ga-card { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--surface); margin-bottom: 16px; }
.ga-card h3 { margin: 0 0 10px; font-size: 16px; }
.ga-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 16px; }
.ga-table td.num, .ga-table th.num { text-align: right; white-space: nowrap; }
.ga-path a { word-break: break-all; }
.ga-chart { width: 100%; height: auto; display: block; }
.ga-line { fill: none; stroke: #4D9BC4; stroke-width: 2.5; }
.ga-dot { fill: #4D9BC4; }
.ga-bar { fill: #F8D553; }
.ga-grid { stroke: var(--rule); stroke-width: 1; }
.ga-ax { font: 11px var(--f-ui); fill: var(--steel); }
.ga-err { border-color: #E5B8B5; }
/* Marketing & Website: smaller tabs so all twelve fit on one row; on narrow screens they wrap rather than cut off */
.ua-tabs.mk-tabs { flex-wrap: wrap; gap: 2px; }
.ua-tabs.mk-tabs button { flex: 0 0 auto; overflow: visible; text-overflow: clip; font-size: clamp(11px, .78vw, 12.5px); padding: .55rem clamp(.4rem, .62vw, .75rem); letter-spacing: -.01em; }
.ga-sec { font-size: 18px; margin: 22px 0 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
/* Marketing & Website → Google Ads */
.ads-office h3 { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ads-table td { vertical-align: top; }
.ads-table select { max-width: 12rem; }
.ads-st { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.ads-st--enabled { background: #DDF5E4; color: #19693A; } .ads-st--paused { background: #ECEFF1; color: #5b6366; }
.ads-idle { margin: 0 0 12px; }
.ads-cmp .ads-hi { color: #A8322D; } .ads-cmp .ads-lo { color: #19693A; }
.ads-cmp .ads-cmp-tot td { font-weight: 700; border-top: 2px solid var(--rule); }
:root[data-theme="dark"] .ads-cmp .ads-hi { color: #F2A19C; } :root[data-theme="dark"] .ads-cmp .ads-lo { color: #7BD69A; }
.ads-month { font: 600 12.5px var(--f-ui); padding: 4px 8px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); }
.ads-month.on { border-color: var(--fill); box-shadow: inset 0 0 0 1px var(--fill); }
/* Marketing & Website: the numbers tabs (Website Analytics, Google Ads) in a colour of their own */
.ua-tabs.mk-tabs button.mk-stat { background: #ece8fb; border-color: #cfc6f1; color: #4a3a98; }
.ua-tabs.mk-tabs button.mk-stat:hover { background: #e0d9f8; color: #3a2c80; }
.ua-tabs.mk-tabs button.mk-stat.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 3px 0 #7b6fd6; }
/* Organization KPIs → Data Collection: alternating rows; read-only cells (Provider Numbers, Pull Review Data) */
.ok-tbl.ok-data tbody tr:nth-child(even) > * { background: #F3F7F9; }
.ok-tbl.ok-data tbody tr:nth-child(odd) > * { background: var(--surface); }
.ok-tbl.ok-data td.ok-rocell { color: var(--ink); }
.ok-robad { color: #b45309; font-weight: 700; cursor: help; }
.ok-ro { display: inline-block; min-width: 2.5em; padding: 0 .35rem; }
:root[data-theme="dark"] .ok-tbl.ok-data tbody tr:nth-child(even) > * { background: #252b30; }
.ok-ymbar .eft-ym { margin: 0 0 .6rem; } .ok-ymbar .om-extra { margin-left: auto; display: inline-flex; align-items: center; }
.info-pop img.ico { height: 1.25em; width: auto; vertical-align: -.25em; }
.ed-extras .ed-full { grid-column: 1 / -1; }
/* Module Builder task details: Sign-off (narrow), video, training task, Skip at and Only at on one row; Info under them */
.ed-extras.ed-task-x { display: flex; flex-wrap: wrap; align-items: flex-start; }
.ed-task-x > * { flex: 1 1 180px; min-width: 0; }
.ed-task-x > .ed-sign { flex: 0 0 7.5rem; }
.ed-task-x > .ed-grow { flex: 1 1 150px; }
.ed-task-x > .ed-svc { flex: 0 0 auto; }
.ed-task-x > .ed-svc .row { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 6px 14px; }   /* 2 × 2 */
.ed-task-x > .ed-full { flex: 1 1 100%; }
.ed-task-x > .ed-svc + .ed-svc { margin-left: 1.4rem; padding-left: 1.4rem; border-left: 1px solid var(--rule); }   /* Skip at | Only at */
/* Module Builder → checklist settings: Also Checked By beside a Signature box, each role list a short scrolling checklist */
.ed-who { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(320px, 2fr); gap: 12px; align-items: stretch; margin: 8px 0; }
@media (max-width: 760px) { .ed-who { grid-template-columns: 1fr; } }
.ed-who > .fieldset { margin: 0; }
.ed-sig2 { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr); gap: 10px; margin-top: 8px; align-items: start; }
.ed-sig2 .field { margin: 0; }
.checks.role-scroll { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-auto-rows: 26px; align-content: start; gap: 0 .8rem;
  height: calc(26px * 5 + 12px); overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; background: var(--surface); }   /* five whole rows, no half-cut names */
.checks.role-scroll .check { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-items: center; min-width: 0; }
.checks.role-scroll .check span { overflow: hidden; text-overflow: ellipsis; }
.ed-who > .fieldset { display: flex; flex-direction: column; }
.ed-who .field-label { display: block; margin-bottom: 4px; }
/* FAQs: an arrow on each category heading (points right when folded, down when open) */
.fq-group > summary { list-style: none; align-items: center; }
.fq-group > summary::-webkit-details-marker { display: none; }
.fq-group > summary::before { content: ''; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(-45deg); transition: transform .15s; }
.fq-group[open] > summary::before { transform: rotate(45deg); }
/* Module Builder settings: Title, Subtitle and Show This Checklist on one line; Signature Required above the prompt */
.ed-titlerow { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.ed-titlerow > .ed-t { flex: 1 1 260px; margin: 0; }
.ed-titlerow > .ed-show { flex: 0 0 auto; padding-bottom: 8px; white-space: nowrap; }
.ed-sigright { display: grid; gap: 8px; align-content: start; }
.ed-sigright .field { margin: 0; }
.ed-sig2.off { grid-template-columns: 1fr; margin-top: 4px; }
.ed-who .ed-sig2 { margin-top: 0; }   /* both role lists start at the same height */
/* Owner Dentists' Practice Opportunities settings (Your Profile, Users & Access) */
.own-box { margin-top: 12px; } .own-row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; }
.own-row .field { margin: 0; flex: 0 1 220px; } .own-row .check { padding-bottom: 8px; }
.own-sale { display: flex; flex-wrap: wrap; gap: 4px 16px; }
/* Recruiting → Associate Contract Request */
.acr-form { display: grid; gap: 14px; padding: 6px 4px; }
.acr-intro p { margin: 0 0 4px; } .acr-hi { font-weight: 700; font-size: 1.05rem; }
.acr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
@media (max-width: 1000px) { .acr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .acr-grid { grid-template-columns: 1fr; } }
.acr-sample { margin: 0; }
.acr-up { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.acr-upbtn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.acr-or { font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.acr-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.acr-listhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.acr-listhead [data-acrcfg] { margin-left: auto; }
.acr-tbl .acr-changes { max-width: 320px; white-space: pre-wrap; }
/* Monthly Numbers → Referral Tracking */
.rt-card { padding: 16px 18px; }
.rt-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 4px 0 16px; }
.rt-box { border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--surface); padding: 10px 14px; }
.rt-box h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rt-box ul { list-style: none; margin: 0; padding: 0; max-height: 170px; overflow: auto; }
.rt-box li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--rule); font-size: 13.5px; }
.rt-box li:last-child { border-bottom: 0; }
.rt-big { display: flex; flex-direction: column; } .rt-n { font-size: 2.2rem; line-height: 1.1; }
.rt-st { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; border: 1px solid var(--rule); background: var(--surface); }
.rt-st-new { background: #e6f4f6; } .rt-st-scheduled { background: #fff4d6; } .rt-st-seen { background: #e3f6e8; } .rt-st-noreach, .rt-st-declined { background: #f5e6e6; }
.acr-tbl .acr-changes { max-width: 280px; white-space: pre-wrap; }
.tr-src { font: inherit; font-size: 13px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line, #d5d9db); background: transparent; color: inherit; max-width: 140px; }

.tr-tabs { margin-bottom: 10px; } .tr-tabs .tab { font: inherit; cursor: pointer; }
.pf-tbl th.tr-c, .pf-tbl td.tr-c { text-align: center; } .pf-tbl td.tr-c input { width: 17px; height: 17px; accent-color: var(--fill); }
/* Associate Contract Request: resume drop zones */
.acr-up { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
@media (max-width: 700px) { .acr-up { grid-template-columns: 1fr; } }
.acr-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 120px; padding: 16px; border: 2px dashed var(--rule); border-radius: var(--r-sm); background: var(--sunken); cursor: pointer; transition: border-color .15s, background .15s; }
.acr-drop:hover, .acr-drop.over { border-color: var(--fill); background: var(--fill-soft); }
.acr-drop.has { border-style: solid; border-color: var(--fill); background: var(--fill-soft); }
.acr-dropicon { font-size: 26px; line-height: 1; }
.acr-or { align-self: center; }
/* EFT Log: the Quick IDs pencil sits in its own box */
.eft-idhead { display: inline-flex; align-items: center; gap: 8px; }
.eft-pencil { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--steel); cursor: pointer; padding: 0; }
.eft-pencil:hover { color: var(--ink); border-color: var(--fill); background: var(--fill-soft); }
/* EFT Log: the search, buttons and the log in one box */
.eft-box { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md, 14px); padding: 14px 16px 16px; box-shadow: var(--shadow-1, 0 1px 3px rgba(16,42,52,.06)); margin-top: 14px; }
.eft-box .eft-toolbar { margin-top: 0; }
.rt-tabs + .tab-box > .rt-card, .tab-box > .rt-card { border: 0; box-shadow: none; padding: 4px 2px; }
.pf-grp-empty > summary { color: var(--muted); } .pf-grp-empty .empty-line { margin: 0; padding: 0 14px 12px; }
.tr-tabs .tab { font-weight: 700; }
.rv-who { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* Organization KPIs → Data Collection: headers centred over their columns; the editable "How to collect" steps */
.ok-tbl.ok-data thead th.c { text-align: center; }
.ok-tbl.ok-data thead th .ok-vh { display: block; margin: 0 auto; }
.ok-howed { width: 28px; height: 28px; margin-left: .35rem; vertical-align: middle; display: inline-grid; place-items: center; color: var(--muted); } .ok-howed:hover { color: inherit; }
.ok-hlist { display: grid; gap: .7rem; margin-bottom: .8rem; }
.ok-hrow { display: flex; gap: .5rem; align-items: flex-start; border: 1px solid var(--line, #ddd); border-radius: 10px; padding: .6rem; }
.ok-hf { flex: 1; display: grid; gap: .4rem; } .ok-hf input, .ok-hf textarea { width: 100%; }
.ok-hf input { font-weight: 700; }
.ok-hbtns { display: flex; flex-direction: column; gap: .2rem; }

/* Provider Numbers: ‹ › to step to the previous or next office / dentist */
.cred-lblrow { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.cred-step { display: inline-flex; gap: .25rem; margin-bottom: .25rem; }
.cred-stepb { width: 24px; height: 22px; display: inline-grid; place-items: center; border: 1px solid var(--rule, #d6dadd); border-radius: 6px; background: var(--card, #fff); color: var(--steel, #44535c); cursor: pointer; padding: 0; }
.cred-stepb:hover:not(:disabled) { background: var(--teal-soft, #e6f7f6); color: inherit; }
.cred-stepb:disabled { opacity: .35; cursor: default; }
.cred-stepb-prev svg { transform: scaleX(-1); }

/* ---------- Collapsing sections and menus: one circled arrow everywhere ----------
   It points at its label while shut (right when it sits before the text, left when after) and down, toward what opens, when open. */
:root { --ci-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M256,0C114.618,0,0,114.618,0,256s114.618,256,256,256s256-114.618,256-256S397.382,0,256,0z M256,469.333c-117.818,0-213.333-95.515-213.333-213.333S138.182,42.667,256,42.667S469.333,138.182,469.333,256S373.818,469.333,256,469.333z'/%3E%3Cpath d='M228.418,134.248c-8.331-8.331-21.839-8.331-30.17,0c-8.331,8.331-8.331,21.839,0,30.17L289.83,256l-91.582,91.582c-8.331,8.331-8.331,21.839,0,30.17c8.331,8.331,21.839,8.331,30.17,0l106.667-106.667c8.331-8.331,8.331-21.839,0-30.17L228.418,134.248z'/%3E%3C/svg%3E"); }
.perm-chev, .pf-chev, .mx-chev, .wv-chev, .ref-chev, .mb-chev, .ch-caret, .ar-chev, .rail-chev, .eod-chev, .ta .lp .chev, .lp .chev, .dt .piv .tog .caret,
details.ok-summary > summary.ok-sum-h::before, .integ-card > summary::before, .rn-grp > summary::before, .ar-hints > summary::before, .fq-group > summary::before,
.ar-fold > summary::after, .ss-role > summary::after, .wb-card > summary::after {
  content: '' !important; display: inline-block !important; flex: none; width: 15px !important; height: 15px !important; margin: 0 .45rem 0 0; padding: 0;
  border: 0 !important; background: currentColor !important; color: var(--steel); font-size: 0 !important; line-height: 0; vertical-align: -2px;
  -webkit-mask: var(--ci-mask) center / contain no-repeat; mask: var(--ci-mask) center / contain no-repeat; transition: transform .18s ease; transform: none !important;
}
.ta .lp .chev svg, .lp .chev svg { display: none; }
/* before the label: → when shut, ↓ when open */
details.fold-set[open] > summary .perm-chev, .perm-fold[aria-expanded="true"] .perm-chev, .pf-grp[open] .pf-chev, .mx-fold[aria-expanded="true"] .mx-chev,
:not(.shut) > .wv-foldhead .wv-chev, .wv-foldrow:not(.shut) .wv-chev, .ref-tbl tr.ref-fold:not(.shut) .ref-chev, details.mb-role[open] .mb-chev,
.ch-fold[aria-expanded="true"] .ch-caret, .ar-grp-fold:not(.shut) .ar-chev, .dt .piv tr.open .tog .caret,
details.ok-summary[open] > summary.ok-sum-h::before, .integ-card[open] > summary::before, .rn-grp[open] > summary::before, .ar-hints[open] > summary::before, .fq-group[open] > summary::before
  { transform: rotate(90deg) !important; }
.mx-shut .mx-chev, .mx-sshut .mx-chev { transform: none !important; }
/* after the label: ← when shut, ↓ when open */
.rail-chev, .eod-chev, .lp .chev, .ar-fold > summary::after, .ss-role > summary::after, .wb-card > summary::after { margin: 0 0 0 .45rem; transform: rotate(180deg) !important; }
.rail-group:not(.shut) .rail-chev, .eod-box[open] .eod-chev, .lp:not(.collapsed) .chev, .ar-fold[open] > summary::after, .ss-role[open] > summary::after, .wb-card[open] > summary::after
  { transform: rotate(90deg) !important; }
.lp .chev { position: absolute; top: calc(50% - 9px); width: 18px !important; height: 18px !important; }
.ar-fold > summary::after { margin-left: auto; }
.dt .piv tr.ofc .tog .caret { color: var(--warn-ink); } .dt .piv .tog .caret { color: var(--accent); }
/* plain sections (the browser's own ▸): the same arrow */
summary::marker { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='14' height='14' fill='%25235b6f79'%3E%3Cpath d='M256,0C114.618,0,0,114.618,0,256s114.618,256,256,256s256-114.618,256-256S397.382,0,256,0z M256,469.333c-117.818,0-213.333-95.515-213.333-213.333S138.182,42.667,256,42.667S469.333,138.182,469.333,256S373.818,469.333,256,469.333z'/%3E%3Cpath d='M228.418,134.248c-8.331-8.331-21.839-8.331-30.17,0c-8.331,8.331-8.331,21.839,0,30.17L289.83,256l-91.582,91.582c-8.331,8.331-8.331,21.839,0,30.17c8.331,8.331,21.839,8.331,30.17,0l106.667-106.667c8.331-8.331,8.331-21.839,0-30.17L228.418,134.248z'/%3E%3C/svg%3E") "  "; }
details[open] > summary::marker { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='14' height='14' fill='%25235b6f79'%3E%3Cg transform='rotate%2890 256 256%29'%3E%3Cpath d='M256,0C114.618,0,0,114.618,0,256s114.618,256,256,256s256-114.618,256-256S397.382,0,256,0z M256,469.333c-117.818,0-213.333-95.515-213.333-213.333S138.182,42.667,256,42.667S469.333,138.182,469.333,256S373.818,469.333,256,469.333z'/%3E%3Cpath d='M228.418,134.248c-8.331-8.331-21.839-8.331-30.17,0c-8.331,8.331-8.331,21.839,0,30.17L289.83,256l-91.582,91.582c-8.331,8.331-8.331,21.839,0,30.17c8.331,8.331,21.839,8.331,30.17,0l106.667-106.667c8.331-8.331,8.331-21.839,0-30.17L228.418,134.248z'/%3E%3C/g%3E%3C/svg%3E") "  "; }
/* every expand / collapse arrow sits to the left of its label: → shut, ↓ open */
.rail-chev, .eod-chev, .lp .chev, .ar-fold > summary::after, .ss-role > summary::after, .wb-card > summary::after { order: -1 !important; margin: 0 .45rem 0 0 !important; transform: none !important; }
.rail-group:not(.shut) .rail-chev, .eod-box[open] .eod-chev, .lp:not(.collapsed) .chev, .ar-fold[open] > summary::after, .ss-role[open] > summary::after, .wb-card[open] > summary::after
  { transform: rotate(90deg) !important; }
/* the menu: the arrow in the group's own colour, before its name */
.rail-group > .rail-head { justify-content: flex-start !important; }
.rail-chev { color: inherit; }
.ss-role > summary { display: flex; align-items: center; }
.eod-box > summary { grid-template-columns: 18px 34px minmax(0, 1fr) auto; }
@media (max-width: 640px) { .eod-box > summary { grid-template-columns: 18px 30px minmax(0, 1fr); } }
.lp .chev { left: 16px; right: auto !important; }
/* Web Chat: office, Assign to Me and Close on one line at the right */
.ci-ch-head { align-items: flex-start; }
.ci-who { flex: 1 1 260px; min-width: 0; }
.ci-acts { flex: none; flex-wrap: nowrap; justify-content: flex-end; margin-left: auto; }
.ci-acts select { max-width: 170px; }

/* dark mode: the browser-arrow image is drawn in a lighter grey */
:root[data-theme="dark"] summary::marker { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='14' height='14' fill='%23d3dee3'%3E%3Cpath d='M256,0C114.618,0,0,114.618,0,256s114.618,256,256,256s256-114.618,256-256S397.382,0,256,0z M256,469.333c-117.818,0-213.333-95.515-213.333-213.333S138.182,42.667,256,42.667S469.333,138.182,469.333,256S373.818,469.333,256,469.333z'/%3E%3Cpath d='M228.418,134.248c-8.331-8.331-21.839-8.331-30.17,0c-8.331,8.331-8.331,21.839,0,30.17L289.83,256l-91.582,91.582c-8.331,8.331-8.331,21.839,0,30.17c8.331,8.331,21.839,8.331,30.17,0l106.667-106.667c8.331-8.331,8.331-21.839,0-30.17L228.418,134.248z'/%3E%3C/svg%3E") "  "; }
:root[data-theme="dark"] details[open] > summary::marker { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='14' height='14' fill='%23d3dee3'%3E%3Cg transform='rotate%2890 256 256%29'%3E%3Cpath d='M256,0C114.618,0,0,114.618,0,256s114.618,256,256,256s256-114.618,256-256S397.382,0,256,0z M256,469.333c-117.818,0-213.333-95.515-213.333-213.333S138.182,42.667,256,42.667S469.333,138.182,469.333,256S373.818,469.333,256,469.333z'/%3E%3Cpath d='M228.418,134.248c-8.331-8.331-21.839-8.331-30.17,0c-8.331,8.331-8.331,21.839,0,30.17L289.83,256l-91.582,91.582c-8.331,8.331-8.331,21.839,0,30.17c8.331,8.331,21.839,8.331,30.17,0l106.667-106.667c8.331-8.331,8.331-21.839,0-30.17L228.418,134.248z'/%3E%3C/g%3E%3C/svg%3E") "  "; }
.acr-up.acr-up--one { grid-template-columns: 1fr; }
.cred-titlebar .cred-addbar { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
/* Specialty → Preferred Specialists */
.ps-seg { margin-bottom: 1rem; }
.ps-bar { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.ps-h { margin: 1.25rem 0 .4rem; font-size: 1.05rem; }
.ps-tbl td { vertical-align: top; }
.ps-new td { font-weight: 600; }
.ps-st-new { --rc: #2563eb; } .ps-st-contacted { --rc: #ca8a04; } .ps-st-approved { --rc: #15803d; } .ps-st-declined { --rc: #6b7280; }
.ps-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .25rem 0 .75rem; }
.ps-dl dt { font-weight: 700; color: var(--steel); } .ps-dl dd { margin: 0; white-space: pre-wrap; }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ps-offs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .2rem .75rem; }
@media (max-width: 700px) { .ps-grid { grid-template-columns: 1fr; } }
.own-checks { display: flex; flex-direction: column; gap: 2px; padding-bottom: 4px; } .own-row .own-checks .check { padding-bottom: 0; }

/* Chat: @tags, editing */
.ch-at { font-weight: 700; color: var(--accent); }
.ch-at.me { background: #fff3c4; color: #7a5a00; border-radius: 4px; padding: 0 .2em; }
.ch-edited { margin-left: .4rem; font-size: 11px; color: var(--steel); }
.ch-edit textarea { width: 100%; min-width: min(420px, 60vw); font: inherit; border: 1px solid var(--rule); border-radius: 8px; padding: .45rem .6rem; resize: none; box-sizing: border-box; background: #fff; }
.ch-edit-btns { display: flex; gap: .4rem; align-items: center; justify-content: flex-end; margin-top: .35rem; flex-wrap: wrap; }
.ch-edit-btns .muted { margin-right: auto; }
.ch-tagmenu { margin: 0 .75rem .35rem; background: #fff; border: 1px solid var(--rule); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,.12); padding: 4px; max-width: 360px; display: grid; gap: 1px; }
.ch-tagmenu[hidden] { display: none; }
.ch-tagopt { display: flex; align-items: center; gap: .5rem; border: 0; background: none; text-align: left; padding: .35rem .5rem; border-radius: 6px; cursor: pointer; font: inherit; color: var(--ink); }
.ch-tagopt .muted { margin-left: auto; }
.ch-tagopt.on, .ch-tagopt:hover { background: var(--sunken); }
/* Chat: Find someone hides the people who don't match (labels are flex, so [hidden] needs help) */
.ch-pp[hidden] { display: none !important; }
/* Chat: group and team photos */
.ch-gphoto { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ch-title { display: flex; align-items: center; gap: .6rem; }
.ch-headphoto { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.ch-photo-dlg { display: flex; align-items: center; gap: 1rem; }
.ch-photo-prev { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 30px; background: #eef2ff; }
/* Practice Support Group → Meeting Notes */
.mn-bar { display: flex; gap: .6rem; flex-wrap: wrap; margin: .75rem 0; } .mn-bar input[type=search] { flex: 1 1 280px; max-width: 460px; }
.mn-row { cursor: pointer; } .mn-row:hover td { background: var(--sunken); }
.mn-count { font-weight: 700; font-size: 12.5px; color: #b45309; } .mn-count.all { color: #15803d; }
.mn-mine { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: .75rem 1rem; margin: .5rem 0 1rem; }
.mn-mine h2 { font-size: 1rem; margin: 0 0 .4rem; }
.mn-mine ul, .mn-alist { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mn-mine li { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.mn-mine .linkish, .mn .linkish { border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.mn-due { font-size: 12px; font-weight: 700; color: var(--steel); } .mn-due.late { color: #b42318; }
.mn-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .mn-grid { grid-template-columns: 1fr; } }
.mn-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; }
.mn-card h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.mn-alist li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; padding: .45rem .5rem; border-radius: 8px; background: var(--sunken); }
.mn-alist li.done .mn-atext { text-decoration: line-through; color: var(--steel); }
.mn-ameta { display: block; font-size: 12.5px; color: var(--steel); margin-top: .15rem; }
.mn-tick { width: 18px; height: 18px; margin-top: 2px; }
.mn-notes h4 { margin: .9rem 0 .3rem; font-size: .98rem; } .mn-notes p { margin: 0 0 .5rem; line-height: 1.5; } .mn-notes ul { margin: 0 0 .6rem 1.1rem; padding: 0; } .mn-notes li { margin: .15rem 0; line-height: 1.45; }
.mn-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 .8rem; }
.mn-acthead { display: flex; align-items: center; gap: .5rem; margin: .5rem 0 .35rem; flex-wrap: wrap; }
.mn-arows { display: grid; gap: .35rem; }
.mn-arow { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 150px auto; gap: .35rem; align-items: center; }
@media (max-width: 700px) { .mn-arow { grid-template-columns: 1fr 1fr; } }
.mn-tabs { margin: .5rem 0 0; flex-wrap: wrap; } .mn-tabn { display: inline-block; min-width: 1.3em; padding: 0 .35em; border-radius: 999px; background: var(--sunken); font-size: 11px; font-weight: 800; margin-left: .25rem; }
/* Meeting Notes: + New Meeting Notes sits at the right end of the tab row; the content in the usual panel */
.mn-tabs { display: flex; align-items: flex-end; } .mn-tabs .mn-new { margin-left: auto; align-self: center; margin-bottom: 4px; }
.mn-panel .mn-bar { margin-top: 0; }
.ua-tabs button.mn-new { font: 700 13.5px/1 var(--f-ui); padding: .55rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--fill); background: var(--fill); color: #fff; margin-bottom: 6px; box-shadow: none; }
.ua-tabs button.mn-new:hover { filter: brightness(1.08); background: var(--fill); color: #fff; }
.al-wrap > table.al-tbl { overflow: visible !important; }   /* .table clips its corners (overflow: hidden), which stops the sticky headings */
/* Site Settings → Offices: the headings stay at the top of the screen while the list scrolls */
table.off-tbl { overflow: visible !important; }
.off-tbl thead th { position: sticky; top: var(--top, 0px); z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
.of-live { display: flex; gap: .5rem; align-items: center; background: #f0f9fb; border: 1px solid #cfe9ee; border-radius: 10px; padding: .55rem .75rem; margin-bottom: .75rem; }
.off-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; } .off-head h2 { margin: 0; } .off-tools { gap: .5rem; }
/* Frozen header rows: Site Settings → Icons, and Users & Access (Users, Groups, Roles) */
table.ic-tbl, table.users-tbl, table.grp-tbl { overflow: visible !important; }
.ic-tbl thead th, .users-tbl thead th, .grp-tbl thead th { position: sticky; top: var(--top, 0px); z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
/* Roles scroll sideways, so their grid scrolls in its own box with the role names and the headings both frozen */
.table-scroll:has(> .table-grid) { max-height: calc(100vh - var(--top, 60px) - 170px); overflow: auto; }
.table-grid { overflow: clip !important; }
.table-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--surface); box-shadow: inset 0 -1px 0 var(--rule); }
.roles-grid thead th:first-child { z-index: 5; left: 0; }
/* Users & Access tabs as one segmented picker (like the language picker on the website's Patient Forms) */
.ua-pills { display: inline-flex; flex-wrap: wrap; gap: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin: .2rem 0 1rem; }
.ua-pills button { border: 0; border-left: 1px solid var(--rule-soft, #e3e6e8); border-radius: 0; height: 42px; padding: 0 1.25rem; font: 600 13px var(--f-ui); text-transform: uppercase; letter-spacing: .07em; background: var(--surface); color: var(--ink); }
.ua-pills button:first-child { border-left: 0; }
.ua-pills button:hover { background: var(--sunken); border-color: var(--rule-soft, #e3e6e8); }
.ua-pills button.on { background: var(--fill, #52B2C3); color: #fff; border-left-color: var(--fill, #52B2C3); }
.ua-pills button.on + button { border-left-color: var(--fill, #52B2C3); }
.ua-pills .ua-n { letter-spacing: 0; }
.tc-grid.tc-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } @media (max-width: 640px) { .tc-grid.tc-grid3 { grid-template-columns: 1fr 1fr; } }
/* Site Settings → Loading Screen */
.ls-wrap { display: grid; gap: 1rem; }
.ls-now-card { display: grid; grid-template-columns: 200px 1fr; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem; }
.ls-now-card h2, .ls-wrap h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.ls-preview { border: 1px solid var(--rule); border-radius: 14px; background: var(--porcelain, var(--sunken)); }
.ls-boot.boot-chippy { min-height: 0; padding: 1rem .75rem; gap: 8px; }
.ls-boot.boot-chippy img { width: 150px; height: 150px; }
.ls-boot.boot-chippy .wordmark { font-size: 1.9rem; }
.ls-tbl td { vertical-align: middle; }
.ls-thumb { width: 48px; height: 48px; object-fit: contain; }
.ls-st { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--sunken); }
.ls-now { background: #e3f6e8; color: #17673a; } .ls-soon { background: #fff4d6; color: #7a5600; } .ls-ended { color: var(--steel); }
.ls-edit { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.ls-left { display: grid; gap: .4rem; justify-items: center; text-align: center; }
.ls-dims { margin: 0; max-width: 190px; }
.ls-fields { display: grid; gap: .6rem; min-width: 0; }
.ls-fields .field, .ls-fields p { margin: 0; }
.ls-pick { display: grid; gap: .5rem; justify-items: center; cursor: pointer; }
.ls-pickimg { width: 180px; height: 160px; display: grid; place-items: center; border: 2px dashed var(--rule); border-radius: 12px; background: var(--sunken); }
.ls-pickimg img { width: 160px; height: 140px; object-fit: contain; }
@media (max-width: 640px) { .ls-now-card, .ls-edit { grid-template-columns: 1fr; } }
/* Loading Screen: Edit and Delete the same size */
.ls-acts { display: inline-flex; gap: 6px; }
.ls-ib { width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--rule); border-radius: 9px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ls-ib:hover { border-color: var(--fill); background: var(--fill-soft); }
.ls-ib-del { color: var(--steel); }
.ls-ib-del:hover { color: #b91c1c; border-color: #f0b4b4; background: #fdf0f0; }
.ls-yearly { margin: 0; }
.ls-md { display: flex; gap: 6px; } .ls-md select:first-child { flex: 1; } .ls-md select:last-child { width: 4.5rem; }

/* Chat: emoji picker (lib/emoji.js) */
.emo-pop { position: fixed; z-index: 90; width: min(360px, 94vw); background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 50px rgba(24, 40, 47, .25); padding: .55rem; display: grid; gap: .4rem; }
.emo-top { display: flex; gap: .4rem; } .emo-top input { flex: 1; min-width: 0; padding: .45rem .7rem; border-radius: 9px; }
.emo-x { border: 0; background: none; color: var(--steel); cursor: pointer; font-size: 15px; padding: 0 .4rem; }
.emo-tabs { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule-soft, var(--rule)); padding-bottom: .3rem; }
.emo-tabs button { border: 0; background: none; font-size: 19px; cursor: pointer; border-radius: 8px; padding: 2px 5px; }
.emo-tabs button:hover { background: var(--sunken); }
.emo-body { max-height: 260px; overflow-y: auto; }
.emo-body h4 { margin: .45rem .2rem .2rem; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); }
.emo-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.emo-cell { border: 0; background: none; font-size: 22px; line-height: 1; padding: 6px 0; border-radius: 8px; cursor: pointer; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.emo-cell:hover, .emo-cell:focus-visible { background: var(--sunken); }

/* Chat: the purple @ (you're tagged), muted chats */
.ch-tagged { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; margin-left: 4px; }
.ch-foldn.tagged, [data-badge="chat"].tagged { background: #7c3aed !important; color: #fff !important; }
.ch-muted { font-size: 11px; margin-left: 4px; opacity: .7; }
.ch-dot.muted { background: var(--steel) !important; opacity: .5; }
.ch-item.mute .ch-nm { opacity: .75; }
.ch-mutebtn.on { color: var(--steel); }

/* Accounts Receivable → Contracts (pages/psg/ar-contract.js, lib/contractsign.js): the agreement on a page of paper */
/* .toolbar.arc-bar: .toolbar sits in an @scope block, which otherwise wins */
.toolbar.arc-bar { margin-bottom: 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 12px; }
/* the view picker, the Office / Owner(s) / Effective Date boxes and the button: one height, the boxes centred between */
.arc-mid { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; min-width: 0; }
.arc-bar .arc-views { height: 40px; box-sizing: border-box; align-items: stretch; padding: 3px; }
.arc-bar .arc-views button { gap: 6px; padding: 0 14px; }
.arc-bar .arc-views .cl-whon { margin-left: 2px; }
.arc-bar .arc-views button { display: inline-flex; align-items: center; }
.arc-bar .arc-issue { height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; }
@media (max-width: 1100px) { .toolbar.arc-bar { grid-template-columns: 1fr auto; } .arc-mid { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; } }
.arc-pick { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--steel); position: relative; }
.arc-pick select, .arc-pick input { font-size: 14px; height: 40px; min-height: 0; padding: 0 10px; box-sizing: border-box; }
.arc-pick select { max-width: 260px; }
.arc-owners > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.arc-owners > summary::-webkit-details-marker { display: none; }
.arc-owners > summary b { font-size: 14px; font-weight: 600; color: var(--ink); height: 40px; box-sizing: border-box; display: flex; align-items: center; padding: 0 30px 0 10px; border: 1px solid #cfd9de; border-radius: 8px; background: #fff; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.arc-owners > summary b::after { content: ''; position: absolute; right: 12px; top: 14px; width: 7px; height: 7px; border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel); transform: rotate(45deg); }
.arc-menu { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 300px; background: #fff; border: 1px solid #d6dce0; border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(24, 40, 47, .35); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; font-weight: 500; color: var(--ink); font-size: 14px; }
.arc-filled { background: #e6f4ec; border-radius: 4px; padding: 0 3px; }
.arc-hasdrag { padding-left: 26px; }
.arc-drag { position: absolute; left: 4px; top: 12px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 22px; color: #a3b0b7; cursor: grab; border-radius: 4px; }
.arc-drag:hover { color: var(--ink); background: #eef2f4; }
.arc-dragging { opacity: .45; }
.arc-sec.arc-over { box-shadow: inset 0 2px 0 var(--fill, #1e6fd9), inset 0 -2px 0 var(--fill, #1e6fd9); }
.arc-paper { max-width: 860px; margin: 0 auto; background: #fff; color: #1b2328; border: 1px solid #e1e6e9; border-radius: 12px; padding: 34px 46px 30px; box-shadow: 0 6px 24px -18px rgba(24, 40, 47, .4); font-size: 14px; line-height: 1.6; }
.arc-head { text-align: center; margin-bottom: 18px; }
.arc-logo { width: 260px; max-width: 70%; }
.arc-title { font-size: 19px; letter-spacing: .03em; margin: 14px 0 2px; }
.arc-ver { margin: 0; color: #6b7b82; font-size: 12.5px; }
.arc-sec { position: relative; padding: 6px 8px; margin: 0 -8px 4px; border-radius: 8px; }
.arc-sec:hover { background: #f6f9fa; }
.arc-sec h3 { font-size: 14.5px; margin: 10px 0 6px; }
.arc-body p { margin: 0 0 8px; }
.arc-li { position: relative; padding-left: 22px; margin: 0 0 4px; }
.arc-li::before { content: '•'; position: absolute; left: 8px; }
.arc-blank { background: #fff4c2; border-radius: 4px; padding: 0 3px; font-weight: 600; }
.arc-tools { position: absolute; top: 4px; right: 4px; display: none; gap: 2px; }
.arc-sec:hover .arc-tools, .arc-sec:focus-within .arc-tools { display: inline-flex; }
.arc-editing { background: #f3f8fa; outline: 2px solid #b9dbe4; }
.arc-edit { display: flex; flex-direction: column; gap: 8px; }
.arc-rich { min-height: 160px; background: #fff; }
.arc-edbar { display: flex; gap: 8px; align-items: center; }
.arc-add { margin: 6px 0 2px; }
.arc-sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 26px; }
.arc-sig { display: flex; flex-direction: column; gap: 5px; }
.arc-sig .arc-line { border-bottom: 1px solid #333; padding: 14px 0 2px; }
.arc-sigrow { display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid #333; min-height: 46px; padding-bottom: 2px; }
.arc-sigimg { max-height: 50px; max-width: 230px; }
.arc-sigimg.hand { font-family: 'Brush Script MT', 'Segoe Script', cursive; font-size: 24px; }
.arc-stamp { margin-left: auto; font-size: 12px; color: #4b5a61; white-space: nowrap; }
.arc-sig .btn { align-self: flex-start; }
.arc-upd { margin-top: 18px; }
.arc-termed { margin-top: 18px; font-weight: 700; color: #a31d1d; }
.arc-filter { margin-bottom: .8rem; }
.arc-tbl .arc-acts { white-space: nowrap; display: flex; gap: 4px; flex-wrap: wrap; }
.arc-st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.arc-st-sent { background: #fff2cc; color: #7a5a00; } .arc-st-signed { background: #e6f4ec; color: #1d6b3d; } .arc-st-termed { background: #f4d7d7; color: #8a1f1f; }
.arc-docs { display: flex; flex-direction: column; gap: 4px; }
.arc-dlg .arc-paper { box-shadow: none; border: 0; padding: 10px 6px; }
@media (max-width: 760px) { .arc-paper { padding: 20px 16px; } .arc-sigs { grid-template-columns: 1fr; } }
/* the Associate Employment Agreement: 8.2 / 8.2.1 lines indent, optional parts are tagged, Exhibit A after the signatures */
.arc-l2 { padding-left: 18px; }
.arc-l3 { padding-left: 36px; }
.arc-table { border-collapse: collapse; margin: 4px 0 12px 18px; font-size: 13px; }
.arc-table th, .arc-table td { border: 1px solid #d5dde1; padding: 4px 10px; text-align: left; vertical-align: top; }
.arc-table th { background: #f2f5f7; font-weight: 700; }
.arc-app { margin-top: 34px; padding-top: 22px; border-top: 1px dashed #c9d3d8; }
.arc-opt { display: inline-block; margin: 2px 0 4px; padding: 1px 8px; border-radius: 999px; background: #fff4dc; color: #8a5a00; font: 600 11px/1.6 Urbanist, sans-serif; letter-spacing: .02em; }
.arc-optlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; }
.arc-blankgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; }
/* sign.html: an Associate signing from their emailed link */
.sg-pub { max-width: 900px; margin: 0 auto; padding: 18px 16px 60px; }
.sg-note { max-width: 860px; margin: 0 auto 14px; padding: 10px 14px; border-radius: 10px; background: #eef6f8; color: #1b3a44; }
.sg-note.sg-ok { background: #e7f6ec; color: #17502b; }
.sg-btns { display: flex; justify-content: center; gap: 10px; margin: 16px 0; }
.sg-how { max-width: 620px; }
.sg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.sg-row input { flex: 1 1 200px; min-width: 0; padding: 8px 10px; border: 1px solid #cdd6da; border-radius: 8px; font: inherit; }

/* Services Profiles: the default icon tag and Manage Icons */
.sv-def { font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: #e3f1f5; color: #0b5c63; }
.sv-slots input:not([type=radio]) { width: 100%; min-width: 9rem; }
.sv-slots td.c { text-align: center; }
/* the contract's Document History (signing log) in Nexus */
.arc-hist { max-width: 860px; margin: 12px auto 0; background: #fff; color: #1b2328; border: 1px solid #e1e6e9; border-radius: 12px; padding: 20px 24px; font-size: 13px; overflow-x: auto; }
.arc-hist-head { display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: baseline; margin-bottom: 12px; color: #4b5a61; }
.arc-hist-head h2 { width: 100%; margin: 0; font-size: 20px; color: #1b2328; }
.arc-hist-facts { border-collapse: collapse; margin-bottom: 14px; }
.arc-hist-facts th { text-align: left; padding: 3px 24px 3px 0; vertical-align: top; white-space: nowrap; }
.arc-hist-facts .sep th, .arc-hist-facts .sep td { border-top: 2px solid #c9d1d5; padding-top: 8px; }
.arc-hist-facts .mono { font-family: ui-monospace, monospace; font-size: 11.5px; word-break: break-all; }
.arc-hist-log { width: 100%; border-collapse: collapse; font-size: 12px; }
.arc-hist-log th { background: #8d999e; color: #fff; font-weight: 600; padding: 6px; }
.arc-hist-log td { border: 1px solid #e1e6e9; padding: 5px 6px; text-align: center; }

/* Provider Numbers → Dentist Document Archive */
.cdx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.cdx-box { border: 1px solid #dfe5e8; border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; background: #fbfcfc; min-height: 130px; }
.cdx-box.has { background: #fff; }
.cdx-box h4 { margin: 0; font-size: 14px; }
.cdx-box.cdx-over { outline: 2px dashed var(--fill, #0e86a3); background: #eef8fb; }
.cdx-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.cdx-files li { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.cdx-file { border: 0; background: none; padding: 0; color: var(--link, #0e6f87); text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }
.cdx-file:hover { text-decoration: underline; }
.cdx-x { border: 0; background: none; color: #8a1f1f; cursor: pointer; margin-left: auto; }
.cdx-drop { margin-top: auto; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; border: 2px dashed #c7d3d8; border-radius: 10px; color: var(--steel); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px; }
.cdx-drop:hover { border-color: var(--fill, #0e86a3); color: var(--ink); background: #f2fafc; }
.cdx-box h4 { display: flex; align-items: center; gap: 6px; }
.cdx-hacts { margin-left: auto; display: inline-flex; gap: 2px; }
.cdx-stamp { white-space: nowrap; }
.cdx-addbox { border: 2px dashed #c7d3d8; border-radius: 12px; background: transparent; color: var(--steel); font-weight: 800; min-height: 130px; cursor: pointer; }
.cdx-addbox:hover { border-color: var(--fill, #0e86a3); color: var(--ink); background: #f2fafc; }

/* Chat: replies, forwarded, ticks, typing, pins, voice, calls, link previews, stickers, search */
.ch-replywrap { padding: 0 12px; }
.ch-replybar { display: flex; align-items: center; gap: 8px; background: #eef6f8; border-left: 3px solid var(--fill, #0e86a3); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-bottom: 6px; }
.ch-replybar span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-replybar button { border: 0; background: none; cursor: pointer; color: var(--steel); }
.ch-quote { display: flex; flex-direction: column; text-align: left; width: 100%; border: 0; border-left: 3px solid var(--fill, #0e86a3); background: rgba(14, 134, 163, .08); border-radius: 6px; padding: 4px 8px; margin: 0 0 6px; cursor: pointer; font: inherit; font-size: 12.5px; color: inherit; }
.ch-quote span { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ch-fwd { display: block; font-size: 11.5px; font-style: italic; opacity: .75; margin-bottom: 3px; }
.ch-tick { font-size: 11px; color: #8a979d; margin-left: 4px; letter-spacing: -2px; }
.ch-tick.some { color: #5c8fb8; } .ch-tick.read { color: #1d72d8; }
.ch-msg.mine .ch-tick, .ch-msg.mine .ch-timer, .ch-msg.mine .ch-pinned { align-self: flex-end; }
.ch-timer, .ch-pinned { font-size: 11px; margin-left: 4px; }
.ch-typing { min-height: 18px; padding: 0 14px; font-size: 12px; font-style: italic; color: var(--steel); }
.ch-pins { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; background: #fff8e1; border-bottom: 1px solid #f1e2a8; font-size: 13px; }
.ch-pins button { border: 0; background: #fff; border-radius: 999px; padding: 2px 10px; cursor: pointer; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-size: 12.5px; }
.ch-findbar { display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-bottom: 1px solid var(--rule); }
.ch-findbar input { flex: 1; }
.ch-more { text-align: center; padding: 8px; }
.ch-flash { animation: chflash 1.6s ease; }
@keyframes chflash { 0%, 60% { background: #fff3b0; } 100% { background: transparent; } }
.ch-voice { display: inline-flex; align-items: center; gap: 6px; }
.ch-voice audio { height: 34px; max-width: 260px; }
.ch-mic.rec { color: #fff; background: #d93025; border-radius: 50%; position: relative; }
.ch-mic.rec::after { content: attr(data-t); position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #d93025; white-space: nowrap; }
.ch-call { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.ch-prev { display: flex; gap: 10px; margin-top: 6px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; overflow: hidden; text-decoration: none; color: inherit; background: rgba(255, 255, 255, .6); max-width: 420px; }
.ch-prev img { width: 92px; height: 92px; object-fit: cover; flex: none; }
.ch-prev span { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 8px 0; min-width: 0; font-size: 12.5px; }
.ch-prev span:first-child { padding-left: 10px; }
.ch-prev small { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ch-sticker { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.ch-sticker .ch-gif { max-width: 160px; }
.gif-kind { margin-right: 6px; }
.ch-results { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow: auto; }
.ch-result { display: flex; flex-direction: column; gap: 2px; text-align: left; border: 1px solid var(--rule); background: var(--surface); border-radius: 10px; padding: 8px 10px; cursor: pointer; font: inherit; }
.ch-result:hover { border-color: var(--fill, #0e86a3); }
.ch-desc { color: var(--steel); }
.ch-fwdlist { max-height: 50vh; }

/* Site Settings → Menu: headings fold */
.ss-fold { border: 0; background: none; cursor: pointer; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; margin-right: 4px; border-radius: 6px; }
.ss-fold:hover { background: rgba(0, 0, 0, .06); }
.ss-chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; }
.ss-fold[aria-expanded="true"] .ss-chev { transform: rotate(45deg); }
.ss-g td .ss-gname { width: calc(100% - 34px); }
.arc-pick > span, .arc-owners > summary > span { display: block; line-height: 16px; height: 16px; }
.arc-owners > summary { gap: 3px; }
.arc-owners > summary b { margin: 0; }
.arc-pick.arc-owners { gap: 0; }

/* Answering Service → Chat Inbox: the channel picker (All / Web Chat / WhatsApp / Facebook) */
.vmode.ci-pick { display: flex; width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.vmode.ci-pick button { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-left: 6px; padding-right: 6px; }
.eod-prog [data-eodzip] { order: 9; margin-left: 4px; }
.vmode.ci-pick button[aria-pressed="true"] { background: var(--fill, #0e86a3); color: #fff; box-shadow: none; }
.vmode.ci-pick button[aria-pressed="true"] .ci-badge { background: #fff; color: var(--fill, #0e86a3); }
.ci-mark { height: 18px; width: auto; vertical-align: middle; display: inline-block; }
/* AR: the formatted text boxes when a row is edited in line */
.ar-tbl tr.ar-inl .rich-in.ar-inl-rich { min-width: 12rem; min-height: 3.2rem; background: #fff; }

/* click-to-copy text ([copy]…[/copy]): a dotted box with a copy mark; "Copied" for a moment after a click */
.r-copy { border: 1px dashed #7fb8c6; background: #eef7f9; border-radius: 5px; padding: 0 4px; cursor: copy; }
.r-copy::after { content: ' ⧉'; color: #4d9bb0; font-size: .85em; }
.r-copy:hover { background: #dff0f4; }
.r-copy.r-copied::after { content: ' ✓ Copied'; color: #15803d; font-weight: 700; }
[contenteditable="true"] .r-copy { cursor: text; }
/* Edit Task (team checklists): How Often, Due On and the Include Business Date switch on one row */
.ck-ed-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .6rem 1rem; }
.ck-ed-row > .field { flex: 1 1 10rem; margin: 0; }
.switch { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 600; font-size: .9rem; padding-bottom: .55rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #c9d2d6; transition: background .15s; flex: none; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--accent, #0e86a3); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent, #0e86a3); outline-offset: 2px; }
.ck-biz { color: var(--steel, #5b6b72); font-weight: 600; }

/* Labels & Card Types: preview | name | colour | ✕ */
.ar-lhead, .ar-srow.ar-lrow2 { display: grid; grid-template-columns: 15rem minmax(8rem, 1fr) 9rem 32px; gap: 8px; align-items: center; }
.ar-lhead { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--steel); margin: 2px 0; }
.ar-lprev { min-width: 0; } .ar-lprev .ar-lbl { max-width: 100%; white-space: nowrap; }
.ar-srow input.ar-lname { width: 100%; min-width: 0; padding: .35rem .55rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface, #fff); color: var(--ink); font: inherit; }
.ar-srow.ar-lrow2 select { width: 100%; }

/* dark mode: the expand / collapse arrows a step brighter so they read on dark panels */
:root[data-theme="dark"] .perm-chev,
:root[data-theme="dark"] .pf-chev,
:root[data-theme="dark"] .mx-chev,
:root[data-theme="dark"] .wv-chev,
:root[data-theme="dark"] .ref-chev,
:root[data-theme="dark"] .mb-chev,
:root[data-theme="dark"] .ch-caret,
:root[data-theme="dark"] .ar-chev,
:root[data-theme="dark"] .rail-chev,
:root[data-theme="dark"] .eod-chev,
:root[data-theme="dark"] .ta .lp .chev,
:root[data-theme="dark"] .lp .chev,
:root[data-theme="dark"] .dt .piv .tog .caret,
:root[data-theme="dark"] details.ok-summary > summary.ok-sum-h::before,
:root[data-theme="dark"] .integ-card > summary::before,
:root[data-theme="dark"] .rn-grp > summary::before,
:root[data-theme="dark"] .ar-hints > summary::before,
:root[data-theme="dark"] .fq-group > summary::before,
:root[data-theme="dark"] .ar-fold > summary::after,
:root[data-theme="dark"] .ss-role > summary::after,
:root[data-theme="dark"] .wb-card > summary::after { color: #d3dee3 !important; }
/* Communications: Assigned To, a scrolling list of tick boxes (any number of people and roles) */
.cl-assign { max-height: 12.5rem; overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; padding: .25rem .55rem .4rem; background: var(--surface, #fff); }
.cl-as-h { position: sticky; top: -.25rem; background: var(--surface, #fff); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--steel); padding: .35rem 0 .15rem; z-index: 1; }
.cl-as-opt { display: flex; padding: .12rem 0; font-size: .9rem; }
.cl-who + .cl-who { margin-left: 4px; }
/* the card window never scrolls sideways: every field shrinks to its column, and the checklist / follow-up rows wrap */
.cl-detail, .cl-main, .cl-grid > * { min-width: 0; }
dialog:has(.cl-detail) .dlg-body, dialog:has(.cl-detail) form { overflow-x: hidden; }
.cl-grid input, .cl-grid select, .cl-grid textarea, .cl-assign { max-width: 100%; box-sizing: border-box; }
.cl-grid > .field { align-self: start; }
.cl-ckadd { flex-wrap: wrap; } .cl-ckadd input[data-cknew] { flex: 1 1 12rem; min-width: 0; }
.cl-tadd > * { min-width: 0; } .cl-tadd select { max-width: 100%; }
/* Dentist Document Archive: stacked — one box per row, full-width file names, the drop zone at the right */
.cdx-grid { grid-template-columns: 1fr; gap: 8px; }
.cdx-box { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-template-areas: "h drop" "files drop"; column-gap: 14px; row-gap: 4px; align-items: start; }
.cdx-box h4 { grid-area: h; }
.cdx-box .cdx-files, .cdx-box > p { grid-area: files; }
.cdx-box .cdx-drop { grid-area: drop; margin: 0; min-height: 44px; align-self: stretch; }
.cdx-file { max-width: none; white-space: normal; overflow-wrap: anywhere; }
.cdx-files li { align-items: baseline; }
.cdx-files li .cdx-stamp { margin-left: auto; }
.cdx-files li .cdx-x { margin-left: 4px; }
.cdx-addbox { min-height: 48px; }
@media (max-width: 640px) { .cdx-box { grid-template-columns: 1fr; grid-template-areas: "h" "files" "drop"; } }
.ta.dash .lp.collapsible .lp-head { padding-left: 46px; }   /* Practice Home: room for the open/close arrow (left: 16px) before the section icon */
/* Organization KPIs → Data Collection: rows the same height as Monthly Numbers (30px) */
.table.ok-tbl.ok-data tbody tr > *, .table.ok-tbl.ok-data tfoot tr > * { height: 30px; box-sizing: border-box; padding-top: 2px !important; padding-bottom: 2px !important; vertical-align: middle; line-height: 1.2; }
.table.ok-tbl.ok-data tbody th.ok-off { font-size: .72rem; white-space: nowrap; }
.table.ok-tbl.ok-data td.ok-in input { height: 24px; padding-top: 0; padding-bottom: 0; line-height: 22px; box-sizing: border-box; }
.table.ok-tbl.ok-data td { font-size: .72rem; }
/* ---------- Practice → Checklists → Edit Lists (lib/ckinline.js) ---------- */
body.cki-on #fmtBar { display: none !important; }   /* the bar fixed at the top does the formatting here */
.cki { display: flex; flex-direction: column; gap: 14px; }
.cki-bar { position: sticky; top: 6px; z-index: 6; display: flex; flex-direction: column; gap: 8px; background: var(--surface, #fff); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; box-shadow: 0 6px 18px -14px rgba(20,40,50,.5); }
.cki-bar1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cki-ver { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cki-ver select { min-width: 300px; max-width: 100%; }
.cki-saved { font-size: .8rem; color: #8a6a14; background: #fff7e0; border: 1px solid #f1d58a; border-radius: 999px; padding: 2px 10px; }
.cki-saved.bad { color: #9f1d1d; background: #fde8e8; border-color: #f3b4b4; }
.cki-fmt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; border-top: 1px solid var(--rule-soft, #eef2f4); padding-top: 8px; }
.cki-fmt > span.muted { margin-right: 6px; }
.cki-fmt button { min-width: 32px; height: 30px; border: 1px solid var(--rule); background: var(--surface, #fff); border-radius: 7px; font-weight: 700; font-size: .85rem; cursor: pointer; color: var(--ink); padding: 0 8px; }
.cki-fmt button:hover { background: var(--sunken, #eef3f5); }
.cki-fmt button.cki-sw { min-width: 0; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: var(--sw); border: 2px solid #fff; box-shadow: 0 0 0 1px #c5d0d5; margin: 0 2px; }
.cki-sep2 { width: 1px; height: 20px; background: var(--rule); margin: 0 5px; }
.cki-list { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--surface, #fff); }
.cki-head { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; background: var(--sunken, #f6fafb); border-bottom: 1px solid var(--rule); }
.cki-head .rich-in.cki-name { font-size: 1.15rem; font-weight: 800; }
.cki-hrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .9rem; }
.cki-hrow label:not(.check) { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.cki-sec { padding: 6px 16px 10px; border-bottom: 1px solid var(--rule-soft, #eef2f4); }
.cki-sechead { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; }
.cki-sechead input { flex: 0 1 420px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #0b5c63; font-size: .82rem; }
.cki-task { border-bottom: 1px solid var(--rule-soft, #eef2f4); padding: 6px 0; }
.cki-trow { display: flex; align-items: flex-start; gap: 8px; }
.cki-trow .rich-in { flex: 1 1 auto; min-width: 0; }
.cki-trow .rich-in.cki-label { flex: 0 1 180px; font-weight: 700; }
.cki-trow select { flex: none; width: auto; }
.cki-trow > .dh-handle { margin-top: 6px; }
.cki-more { flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cki-chev { display: inline-block; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--ci-mask) center / contain no-repeat; mask: var(--ci-mask) center / contain no-repeat; transition: transform .15s; }
.cki-more.on .cki-chev { transform: rotate(90deg); }
.cki-x { margin: 8px 0 6px 26px; background: var(--sunken, #f7fafb); border: 1px solid var(--rule); border-radius: 10px; padding: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 16px; }
.cki-f { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; font-weight: 700; border: 0; margin: 0; padding: 0; min-width: 0; }
.cki-f > span small, .cki-f legend small { display: block; font-weight: 500; color: var(--steel); font-size: .74rem; }
.cki-f legend { padding: 0; margin-bottom: 4px; }
.cki-f textarea, .cki-f input, .cki-f select { font-weight: 500; }
.cki-line { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.cki-line > .cki-f { flex: 0 1 auto; }
.cki-line > .cki-grow { flex: 1 1 200px; }
.cki-sep { border-left: 1px solid var(--rule); padding-left: 14px; }
.cki-row { display: flex; flex-wrap: wrap; gap: 6px 12px; font-weight: 600; }
.cki-full { grid-column: 1 / -1; }
.cki-x .rich-in.cki-info, .cki-x .rich-in.multi { min-height: 3.5rem; }
.cki-add { margin: 6px 0 4px 22px; }
.cki-special .cki-sp { flex: 1; padding: 4px 0; }
.cki-special { display: flex; align-items: center; gap: 8px; }
/* ---------- Marketing & Website → Social (marketing-social.js) ---------- */
.sm { display: flex; flex-direction: column; gap: 16px; }
.sm-comp { border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; background: var(--surface, #fff); display: flex; flex-direction: column; gap: 14px; }
.sm-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(260px, 2fr); gap: 18px; }
@media (max-width: 900px) { .sm-cols { grid-template-columns: 1fr; } }
.sm-left, .sm-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sm-left textarea { width: 100%; box-sizing: border-box; font: inherit; line-height: 1.5; }
.sm-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.sm-media { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-thumb { position: relative; width: 104px; margin: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; background: #000; }
.sm-thumb img, .sm-thumb video { display: block; width: 104px; height: 104px; object-fit: cover; }
.sm-thumb figcaption { display: flex; justify-content: space-between; background: var(--surface, #fff); }
.sm-thumb figcaption .icon-btn { width: 30px; height: 26px; }
.sm-vid { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 5px; }
.sm-add { width: 104px; height: 132px; border: 2px dashed var(--rule); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--steel); text-align: center; padding: 6px; }
.sm-add span { font-size: 28px; line-height: 1; } .sm-add:hover { border-color: var(--accent); color: var(--accent); }
.sm-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: flex-end; }
.sm-offs { max-height: 220px; overflow-y: auto; border: 1px solid var(--rule); border-radius: 8px; padding: 6px 10px; display: grid; gap: 2px; }
.sm-warn { margin: 6px 0 0; color: #9a4b00; font-size: .85rem; }
.sm-per summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.sm-per textarea { width: 100%; box-sizing: border-box; }
.sm-prev { border-top: 1px solid var(--rule-soft, #eef2f4); padding-top: 12px; }
.sm-prevbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sm-cards { display: flex; flex-wrap: wrap; gap: 16px; }
.sm-card { width: 340px; max-width: 100%; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: #1c1e21; overflow: hidden; font-size: 14px; }
.sm-card p { margin: 10px 12px; white-space: pre-wrap; word-break: break-word; }
.sm-card img, .sm-card video { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.sm-ch { display: flex; flex-direction: column; padding: 10px 12px 0; } .sm-ig .sm-ch { padding-bottom: 8px; }
.sm-ch small { color: #65676b; }
.sm-nopic { height: 200px; display: grid; place-items: center; background: #f0f2f5; color: #65676b; }
.sm-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 1px solid var(--rule-soft, #eef2f4); padding-top: 12px; }
.sm-when { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.sm-list { display: flex; flex-direction: column; gap: 8px; }
.sm-item { border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; background: var(--surface, #fff); }
.sm-ihead { display: flex; align-items: center; gap: 12px; }
.sm-ithumb { flex: none; width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--sunken, #eef3f5); display: grid; place-items: center; color: var(--steel); }
.sm-itxt { flex: 1; min-width: 0; } .sm-itxt p { margin: 0 0 2px; white-space: pre-wrap; word-break: break-word; }
.sm-iacts { display: flex; align-items: center; gap: 4px; flex: none; }
.sm-st { flex: none; font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: #eef2f4; color: #445; }
.sm-st-scheduled { background: #e7efff; color: #1d4ed8; } .sm-st-posted { background: #e6f4ea; color: #166534; } .sm-st-partial { background: #fff4dc; color: #8a5a00; }
.sm-st-failed { background: #fde8e8; color: #9f1d1d; } .sm-st-publishing { background: #e3f1f5; color: #0b5c63; }
.sm-res { margin-top: 8px; font-size: .85rem; } .sm-err { color: #9f1d1d; }
.sm-cchip { display: block; width: 100%; text-align: left; border: 0; border-radius: 5px; padding: 2px 5px; margin-top: 2px; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-opts { display: flex; flex-direction: column; gap: 8px; }
.sm-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.sm-opt span { white-space: pre-wrap; } .sm-opt:has(input:checked) { border-color: var(--accent); background: #f2fafc; }
/* Social: templates and stock photos */
.sm-mbtns { margin-top: 8px; }
.sm-tplsum { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--rule); border-radius: 10px; padding: 10px; }
.sm-tplsum img { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; flex: none; }
.sm-tplsum > div { display: flex; flex-direction: column; gap: 4px; }
.sp-bar { display: flex; gap: 8px; } .sp-bar input { flex: 1; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; max-height: 52vh; overflow-y: auto; margin: 8px 0; }
.sp-ph { border: 0; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--sunken); aspect-ratio: 1; }
.sp-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .15s; }
.sp-ph:hover img, .sp-ph:focus-visible img { transform: scale(1.05); }
.tp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
@media (max-width: 760px) { .tp-wrap { grid-template-columns: 1fr; } }
.tp-left { display: flex; flex-direction: column; gap: 8px; } .tp-left input { width: 100%; }
.tp-right { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.tp-right img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid var(--rule); background: var(--sunken); }
/* Chat Inbox: photos, videos, voice messages and files sent on WhatsApp */
.ci-img { display: block; max-width: 260px; max-height: 320px; border-radius: 8px; margin-bottom: 4px; }
.ci-b audio { display: block; max-width: 260px; margin-bottom: 4px; }
.ci-file { display: inline-block; font-weight: 600; margin-bottom: 4px; }
/* Chat Inbox: the platform logo beside each chat */
.ci-ch img { display: block; width: 26px; height: 26px; object-fit: contain; }
:root[data-theme="dark"] .ci-ch img { filter: invert(1); }
.ci-t > .ci-ch { align-self: center; }   /* the platform logo sits at the middle of its chat row */
/* Chat Inbox picker: a red dot on a platform with new messages */
.ci-pickin { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ci-dot { position: absolute; top: -3px; right: -7px; width: 10px; height: 10px; border-radius: 50%; background: #e0362c; box-shadow: 0 0 0 2px var(--surface, #fff); }
[aria-pressed="true"] > .ci-pickin > .ci-dot { box-shadow: 0 0 0 2px #fff; }
.ci-pickin:not(:has(img)) > .ci-dot { right: -15px; top: -4px; }   /* a word (All) instead of a logo: the dot clears its last letter */
/* Settings → Roles: wrap the turned column names onto two lines so the header is about half as tall */
.table-grid th.th-rot { height: auto; padding-top: .5rem; padding-bottom: .5rem; }
.table-grid th.th-rot span { display: inline-block; white-space: normal; max-height: 200px; line-height: 1.1; text-align: left; overflow-wrap: break-word; }
/* Marketing → Meta Ads: boost dialog */
.mt-boost-offs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .25rem .75rem; max-height: 220px; overflow: auto; padding: .25rem 0; }
.mt-boost-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (max-width: 560px) { .mt-boost-row { grid-template-columns: 1fr; } }
/* Marketing & Website: three section tabs, and a picker for the pages inside each (like the website's language picker) */
.ua-tabs.mk-tabs button { font-size: 14px; padding: .6rem 1.25rem; }
.mk-pickrow { display: flex; justify-content: center; padding: 1rem 1rem 0; }
.mk-pick { --pk: #52b2c3; display: inline-flex; flex-wrap: wrap; justify-content: center; background: var(--surface); border: 1px solid #d9dde0; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.mk-pick--web { --pk: #e07a2f; } .mk-pick--stats { --pk: #7b6fd6; }
.mk-pick button { font: inherit; height: 40px; padding: 0 1.15rem; border: 0; border-left: 1px solid #e3e6e8; border-radius: 0; background: transparent; color: var(--ink); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; cursor: pointer; white-space: nowrap; }
.mk-pick button:first-child { border-left: 0; }
.mk-pick button:hover { background: color-mix(in srgb, var(--pk) 10%, transparent); }
.mk-pick button[aria-selected="true"] { background: var(--pk); color: #fff; }
.mk-pick button:focus-visible { outline: 2px solid var(--pk); outline-offset: -3px; }
@media (max-width: 700px) { .mk-pick button { padding: 0 .7rem; font-size: .72rem; letter-spacing: .04em; } }
/* Right-click menus (lib/ctxmenu.js) */
.ctx-menu { position: fixed; z-index: 10000; min-width: 210px; max-width: 320px; max-height: calc(100vh - 12px); overflow: auto; padding: 5px; background: var(--surface); color: var(--ink); border: 1px solid var(--rule, #dfe3e6); border-radius: 10px; box-shadow: 0 12px 32px rgba(15, 30, 40, .18), 0 2px 6px rgba(15, 30, 40, .08); font: 500 13.5px/1.2 var(--f-ui); animation: ctx-in .08s ease-out; }
@keyframes ctx-in { from { opacity: 0; transform: translateY(-3px); } }
.ctx-item { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .5rem .6rem; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ctx-item:hover, .ctx-item:focus-visible, .ctx-item:focus { background: color-mix(in srgb, var(--done) 12%, transparent); outline: none; }
.ctx-item[disabled] { opacity: .45; cursor: default; background: transparent; }
.ctx-item.danger { color: #b42318; } .ctx-item.danger:hover, .ctx-item.danger:focus { background: #fde8e6; }
.ctx-ic { width: 1.1rem; flex: 0 0 1.1rem; text-align: center; color: var(--steel); }
.ctx-item[aria-checked="true"] .ctx-ic { color: var(--done); font-weight: 800; }
.ctx-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctx-hint { color: var(--steel); font-size: 12px; }
.ctx-arr { color: var(--steel); font-size: 15px; }
.ctx-sep { height: 1px; margin: 4px 6px; background: var(--rule-soft, #eceff1); }
.ctx-head { padding: .45rem .6rem .2rem; font: 800 10.5px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--steel); }
/* Marketing → Results → AI Visibility */
.aiv-yes { color: #15803d; font-weight: 700; } .aiv-no { color: #b42318; font-weight: 600; }
.aiv-table td { vertical-align: top; }
.aiv-ans td { background: var(--sunken, #f6f7f8); }
.aiv-text { white-space: pre-wrap; font-size: 13px; line-height: 1.45; max-height: 320px; overflow: auto; }
.aiv-trend { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding: 4px 0; }
.aiv-bar { flex: 1 1 0; max-width: 56px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.aiv-bar i { display: block; width: 100%; background: #7b6fd6; border-radius: 4px 4px 0 0; }
.aiv-bar small { font-size: 10.5px; color: var(--steel); }
.aiv-comp { columns: 2; font-size: 13px; }
@media (max-width: 700px) { .aiv-comp { columns: 1; } }
/* the left menu never scrolls sideways: long names wrap inside it */
.rail { overflow-x: hidden; }
.rail > *, .rail-group, .rail-links, .rail-link { min-width: 0; max-width: 100%; }
.rail-link { overflow-wrap: anywhere; }
.rail-link.has-ic > span, .rail-link.has-ic { min-width: 0; }
/* Practice → Practice Support (pages/practice-support.js) */
.ps { display: grid; gap: 18px; }
.ps-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.ps-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ps-pick { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--steel); font-size: 14px; }
.ps-pick select { font: inherit; font-weight: 700; color: var(--ink); padding: 7px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); }
.ps-chip { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.ps-chip-ar { background: #e3f1ff; color: #1d4ed8; } .ps-chip-rt { background: #e6f6ee; color: #15803d; }
.ps-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }
.ps-tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; }
.ps-tile > span { font-size: 13px; font-weight: 700; color: var(--steel); }
.ps-tile strong { font-size: 30px; font-weight: 800; line-height: 1.1; }
.ps-tile small { font-size: 13px; color: var(--steel); }
.ps-tile.ps-lead { background: #0f5f66; border-color: #0f5f66; color: #fff; }
.ps-tile.ps-lead > span, .ps-tile.ps-lead small { color: #d8f0f0; }
.ps-up { color: #15803d; } .ps-down { color: #b42318; }
.ps-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 20px; display: grid; gap: 16px; }
.ps-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; }
.ps-head h2 { margin: 0; font-size: 21px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.ps-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .ps-dot.ps-ar { background: #2563eb; } .ps-dot.ps-rt { background: #16a34a; }
.ps-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.ps-mini { background: var(--sunken, #f6f8fb); border-radius: 12px; padding: 12px 14px; display: grid; gap: 2px; }
.ps-mini span { font-size: 12px; font-weight: 700; color: var(--steel); } .ps-mini strong { font-size: 21px; font-weight: 800; }
.ps-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ps-wide { flex: 1 1 440px; min-width: 0; } .ps-col { flex: 1 1 320px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.ps-box { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.ps-box h3 { margin: 0; font-size: 15px; font-weight: 800; }
.ps-bars { display: flex; align-items: flex-end; gap: 12px; height: 170px; }
.ps-bar { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; min-width: 0; }
.ps-bv { font-size: 12px; font-weight: 700; } .ps-bl { font-size: 12px; color: var(--steel); white-space: nowrap; }
.ps-bpair { width: 100%; height: 120px; display: flex; align-items: flex-end; gap: 4px; }
.ps-bpair i { flex: 1; border-radius: 5px 5px 0 0; display: block; }
.ps-bstack { width: 70%; height: 120px; display: flex; flex-direction: column; justify-content: flex-end; }
.ps-bstack i { display: block; width: 100%; } .ps-bstack i:last-child { border-radius: 0; } .ps-bstack i:first-child { border-radius: 5px 5px 0 0; }
.ps-b1 { background: #2563eb; } .ps-b2 { background: #c7d2e0; } .ps-bd { background: #16a34a; } .ps-bf { background: #f59e0b; }
.ps-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--steel); }
.ps-legend span { display: inline-flex; align-items: center; gap: 6px; } .ps-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.ps-quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.ps-quad strong { display: block; font-size: 20px; font-weight: 800; } .ps-quad span { font-size: 12px; color: var(--steel); }
.ps-stack { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--sunken); }
.ps-stack .s1 { background: #93c5fd; } .ps-stack .s2 { background: #2563eb; } .ps-stack .s3 { background: #c2410c; }
.ps-stackl { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin: 0; } .ps-warn { color: #9a3412; }
.ps-big { font-size: 28px; font-weight: 800; }
.ps-notes { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; font-size: 14px; }
.ps-todo { border: 1px dashed var(--rule); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.ps-todo > div { display: grid; gap: 3px; }
.ps-tag { font-size: 12px; font-weight: 800; color: #9a3412; background: #fff4e5; padding: 5px 10px; border-radius: 999px; }
.ps-empty { padding: 18px 20px; } .ps-foot { margin: 0; }
@media print {
  .rail, .top, .ps-ctl select, .ps-ctl button, #chippy, .cp-dock { display: none !important; }
  .ps-card, .ps-tile, .ps-box { break-inside: avoid; }
}
.ps-svcs { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ps-ym { margin: -6px 0 0; }
.ps-bas { background: #0891b2; border-radius: 5px 5px 0 0 !important; } .ps-bos { background: #ca8a04; border-radius: 5px 5px 0 0 !important; }
.ps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.ps-list li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--rule-soft); padding-bottom: 4px; }
.ps-other p { margin: 0; }
/* Practice Support Services: office, month and Print in one row, all 40px tall */
.ps-ctl { --ps-h: 40px; }
.ps-ctl .ps-pick select, .ps-ctl .ps-print { height: var(--ps-h); box-sizing: border-box; }
.ps-ctl .ps-print { display: inline-flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.ps-ctl .ps-ym { margin: 0; --eft-h: var(--ps-h); }
