/* Team Access screens inside Nexus (Practice Home, Release Notes, EFT, PreAuth, Insurance, Passwords, OSHA,
   Start Up, Launchpad). Their styles, kept to .ta, in the Team Access colours Nexus also uses. */
.ta {
  --teal: #1fb3c2;
  --teal-2: #4cc6d2;
  --teal-ink: #0b3d47;
  --brand-ink: #1a5f70;
  --yellow: #f8d43c;
  --yellow-ink: #3a2d00;
  --red: #d43c2f;
  --btn: #2b2e33;
  --btn-hover: #0f6f7a;
  --panel: #ececec;
  --panel-line: #d7d9db;
  --card: #ffffff;
  --page: #f6f7f8;
  --ink: #1f2428;
  --muted: #68737b;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.05);
  --hdrh: var(--top, 60px);
  color: var(--ink); font: 500 14px/1.4 var(--f-ui, Urbanist, system-ui, sans-serif);
}
.ta .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; margin: 1px 0;
  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); }
.ta .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc); }
.ta .facts { align-content: start; }
.ta .grid2 { align-items: start; }
.ta-viewonly { background: #fff6dc; border: 1px solid #f1d38a; color: #6b4f00; border-radius: 8px; padding: .5rem .8rem; margin: 0 0 .8rem; font-weight: 600; }
@scope (.ta) {
a { color: var(--brand-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
.page-head { margin-bottom: 1rem; }
.page-head h1 { margin: 0; font-size: 1.5rem; color: var(--teal-ink); }
.page-head .muted { margin: .1rem 0 0; }
.lp, .card.teal { scroll-margin-top: calc(var(--hdrh, 0px) + 12px); }

.loading, .empty { text-align: center; color: var(--muted); padding: 40px 0; }
.muted { color: var(--muted); }
.error { color: var(--red); font-weight: 700; }

/* ---------- teal cards (practice / doctors) ---------- */
.card.teal { background: var(--teal); border-radius: 10px; padding: 0 6px 6px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-title-row { display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; padding: 6px 70px; }
.card-title { margin: 0; text-align: center; color: var(--teal-ink); font-weight: 800; font-size: clamp(20px, 2.6vw, 28px); padding: 6px 0; }
.pid { background: rgba(255,255,255,.75); color: var(--teal-ink); font-weight: 900; font-size: 12px; border-radius: 99px; padding: 2px 9px; }
.edit-link { position: absolute; right: 10px; background: #fff; color: var(--teal-ink); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 99px; text-decoration: none; }
.card-body { background: var(--card); border-radius: 6px; padding: 16px 18px; }
.practice-body { display: grid; grid-template-columns: 1fr minmax(220px, 42%); gap: 20px; }
.facts { margin: 0; display: grid; gap: 1px; font-size: 14px; }
.fact { display: block; }
.fact dt { font-weight: 900; display: inline; white-space: nowrap; }
.fact dt .lock { margin-left: 4px; vertical-align: -1px; }
.fact dt::after { content: ":"; }
.fact dd { display: inline; margin: 0 0 0 5px; overflow-wrap: anywhere; }
.fact.name dd { font-weight: 900; margin-left: 0; }
.dr-role { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 800; background: #e6f6f8; color: var(--teal-ink); border-radius: 99px; padding: 1px 8px; vertical-align: 1px; }
.fact dd a { color: var(--brand-ink); }
.lock { width: 12px; height: 12px; color: var(--muted); }
.practice-map-wrap { display: flex; flex-direction: column; gap: 6px; min-height: 260px; }
.map-row { flex: 1; display: flex; gap: 8px; min-height: 260px; }
.map-row .practice-map { flex: 1; min-width: 0; }
.socials { display: flex; flex-direction: column; gap: 7px; padding: 4px 0; }
.soc { width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); position: relative; flex: none; transition: transform .12s, filter .12s; }
.soc::before { content: ""; position: absolute; inset: 7px; background: #fff; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
a.soc:hover { transform: scale(1.1); filter: brightness(.95); }
.soc.off { background: #d9dde0; cursor: default; }
.practice-map { flex: 1; min-height: 260px; border: 1px solid #d7dbde; border-radius: 6px; background: #e9ecee; overflow: hidden; display: grid; place-items: center; z-index: 0; }
.practice-map.leaflet-container { display: block; font: inherit; }
.map-msg { color: var(--muted); font-size: 13px; }
.map-link { align-self: flex-end; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.map-link:hover { text-decoration: underline; }
.leaflet-popup-content { font: 13px/1.4 Urbanist, system-ui, sans-serif; }
.ph { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.ph svg { width: 44px; height: 44px; }

.doctors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.doctor > .facts { min-width: 0; }
.doctor { background: var(--card); border-radius: 6px; padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.avatar { width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden; }
.avatar svg, .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- notice ---------- */
.notice {
  display: flex; align-items: center; gap: 16px; justify-content: center; background: var(--yellow);
  border-radius: 6px; padding: 12px 20px; margin: 22px 0; color: var(--yellow-ink); font-size: 13.5px; font-weight: 600;
}
.notice p { margin: 0; max-width: 720px; }
.notice-icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--red); color: var(--red);
  display: grid; place-items: center; font-weight: 900; font-size: 20px; line-height: 1;
}

/* ---------- launchpad sections ---------- */
.lp { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 8px; margin-bottom: 18px; box-shadow: var(--shadow); overflow: clip; }
.lp-head { display: block; width: 100%; text-align: center; padding: 14px 52px 6px; background: none; border: 0; position: relative; }
.lp-head h2 { margin: 0; font-size: clamp(19px, 2.2vw, 26px); font-weight: 700; color: var(--ink); }
.lp-head .sub { margin: 0; font-size: clamp(17px, 2vw, 23px); font-weight: 700; }
.lp.collapsible .lp-head { cursor: pointer; padding: 10px 52px; border-bottom: 1px solid var(--panel-line); background: #f1f2f3; }
.lp.collapsible .lp-head h2 { font-size: clamp(17px, 1.9vw, 22px); }
.lp.collapsible .lp-head:hover { background: #e6e8ea; }
.chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; color: #8b9297; transition: transform .2s; }
.chev svg { width: 100%; height: 100%; }
.lp.collapsed .chev { transform: translateY(-50%) rotate(-90deg); }
.lp.collapsed .lp-body { display: none; }
.lp-body { padding: 14px 18px 20px; }
.lp.collapsible .lp-body { background: #f4f4f4; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px 28px; max-width: 980px; margin: 0 auto; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 28px; max-width: 980px; margin: 8px auto 0; align-items: start; }
.block + .block { margin-top: 14px; }
.block h3 { margin: 4px 0 8px; text-align: center; font-size: clamp(16px, 1.8vw, 21px); font-weight: 700; }
.stack { display: grid; gap: 8px; }

.btn {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 30px;
  background: var(--btn); color: #fff; border-radius: 5px; padding: 5px 10px; font-size: 12.5px; font-weight: 700;
  text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,.25); transition: background .15s, transform .05s;
}
a.btn:hover { background: var(--btn-hover); }
a.btn:active { transform: translateY(1px); }
.btn.off { background: #6d7378; color: #e9ecee; cursor: not-allowed; }

.langs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin: 16px 0 6px; }
.lang { background: none; border: 0; padding: 2px 0; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.lang.on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid #dfe3e5; margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--muted); font-weight: 800; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a.on { color: var(--teal-ink); border-color: var(--teal); }
.panel h2 { margin: 0; font-size: 20px; color: var(--teal-ink); }
.panel h3 { margin: 22px 0 8px; font-size: 16px; }
.panel h3 small { font-weight: 600; color: var(--muted); margin-left: 6px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.import-box { border: 2px dashed #cfd6da; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; background: #fafbfc; }
.import-box p { margin: 4px 0; }
.import-list { max-height: 260px; overflow: auto; font-size: 13px; margin: 8px 0; }
.count { background: var(--yellow); border-radius: 99px; font-size: 13px; padding: 1px 9px; margin-left: 6px; vertical-align: middle; }
.primary, .ghost, .icon {
  border-radius: 6px; padding: 8px 14px; font-weight: 800; font-size: 14px; cursor: pointer; border: 1.5px solid transparent;
}
.primary { background: var(--teal); color: #fff; }
.primary:hover { background: #179aa8; }
.ghost { background: #fff; border-color: #cfd6da; }
.ghost:hover { background: #f1f4f5; }
.small { padding: 4px 10px; font-size: 13px; }
.btnlike { display: inline-block; text-decoration: none; color: var(--ink); border-radius: 6px; font-weight: 800; }
.danger { color: var(--red); }
.icon { padding: 2px 8px; background: #fff; border-color: #dfe3e5; font-size: 13px; line-height: 1.4; }
.icon:disabled { opacity: .35; cursor: default; }
.search { width: 100%; padding: 9px 12px; border: 1px solid #cfd6da; border-radius: 8px; margin-bottom: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid #e3e6e8; }
.tbl td { padding: 8px; border-bottom: 1px solid #eef0f1; vertical-align: top; }
.tbl tr.inactive td { opacity: .55; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.role { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 800; background: #e8eef0; margin: 1px 0; white-space: nowrap; }
.r-psg_admin { background: #0b3d47; color: #fff; }
.r-psg_user { background: #c5edf1; color: #0b3d47; }
.r-practice_owner { background: #fde9a3; }
.r-practice_associate { background: #e3e0f7; }
.r-practice_user { background: #e8eef0; }

.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; }
.f { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #3c454b; }
.f input, .f select, .f textarea, .row input, .json {
  width: 100%; padding: 8px 10px; border: 1px solid #cfd6da; border-radius: 6px; background: #fff; font-weight: 600; font-size: 14px;
}
.f textarea { resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; }
.check input { width: auto; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; }
.checks label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.checks.inline { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.row input { flex: 1; }
.row-tools { display: inline-flex; gap: 4px; flex: none; }
.link-row { border-left: 3px solid #e3e6e8; padding-left: 10px; margin-bottom: 8px; }
.adv summary { font-size: 12px; color: var(--muted); cursor: pointer; font-weight: 700; }
.adv { margin: -2px 0 6px; }
.adv[open] { background: #f7f9fa; border-radius: 6px; padding: 6px 10px 10px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 4px; }
.col-edit, .doctor-edit { border: 1px solid #dfe3e5; border-radius: 8px; padding: 10px 14px 14px; margin: 0 0 12px; }
.col-edit legend, .doctor-edit legend { font-weight: 900; padding: 0 6px; display: flex; gap: 10px; align-items: center; }
.block-edit { background: #f7f9fa; border-radius: 8px; padding: 10px; margin: 10px 0; }
.json { min-height: 420px; font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; }
code { background: #eef1f2; border-radius: 4px; padding: 0 4px; font-size: 12px; }


/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .practice-body { grid-template-columns: 1fr; }
  .practice-map-wrap, .map-row, .practice-map { min-height: 220px; }
  .grid3 { grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
  .cols { grid-template-columns: 1fr; gap: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .card-title-row { padding: 6px 12px; flex-wrap: wrap; }
  .edit-link { position: static; }
}
@media (max-width: 480px) {
  .hdr-group select { max-width: 100%; }
  .grid3 { grid-template-columns: 1fr; }
  .doctor { flex-direction: column-reverse; align-items: flex-start; padding: 12px; gap: 8px; }
  .doctor .facts { font-size: 13px; gap: 4px; }
  .doctor .fact dt, .doctor .fact dd { display: block; margin-left: 0; }
  .doctor .fact dt { font-size: 11.5px; color: var(--muted); }
  .avatar { width: 56px; height: 56px; }
}

/* ---------- office passwords ---------- */
.pw-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pw-search-wrap { position: sticky; top: calc(var(--hdrh, 0px)); z-index: 3; background: var(--page); padding: 6px 0 8px; }
.pw-search { font-size: 16px; padding: 11px 14px; margin: 0; border-radius: 10px; background: #fff; }
.pw-list { background: #fff; border: 1px solid #e1e4e6; border-radius: 10px; padding: 4px 12px; box-shadow: var(--shadow); }
.pw-tbl td { vertical-align: middle; }
.pw-name a { font-weight: 800; color: var(--brand-ink); text-decoration: none; }
.pw-name a:hover { text-decoration: underline; }
.pw-host { display: block; color: var(--muted); font-size: 12px; }
.pw-val { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; margin-right: 6px; }
.pw-secret { letter-spacing: .05em; }
.pw-tbl .icon { padding: 1px 7px; margin-right: 3px; font-size: 12px; }
.pw-qs { margin: 6px 0 0; font-size: 13px; }
.pw-qs dt { color: var(--muted); font-weight: 700; }
.pw-qs dd { margin: 0 0 6px; }
.pw-tbl details summary { cursor: pointer; font-size: 13px; color: var(--brand-ink); font-weight: 700; }
.pw-note { font-size: 13px; color: #3c454b; max-width: 260px; }
.pw-empty { text-align: center; padding: 30px 10px; }
.pw-form { margin-bottom: 14px; }
.pw-form .f input[name=password] { font-family: ui-monospace, Menlo, Consolas, monospace; }
.pw-peek { justify-self: start; margin-top: 2px; }
@media (max-width: 820px) {
  .pw-tbl thead { display: none; }
  .pw-tbl, .pw-tbl tbody, .pw-tbl tr, .pw-tbl td { display: block; width: 100%; }
  .pw-tbl tr { border-bottom: 1px solid #e1e4e6; padding: 10px 0; }
  .pw-tbl tr[hidden] { display: none; }
  .pw-tbl td { border: 0; padding: 3px 0; }
  .pw-tbl td[data-label]:not(.pw-name)::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
  .pw-tbl td.right { text-align: left; }
  .pw-note { max-width: none; }
}
@media print { .pw-page { display: none; } }

/* ---------- insurance network status ---------- */
.ins-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ins-filters .pw-search { flex: 1 1 320px; width: auto; }
.ins-filters select { padding: 10px 12px; border: 1px solid #cfd6da; border-radius: 10px; background: #fff; font-size: 14px; }
.ins-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ins-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 14px; border: 1.5px solid #cfd6da; border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.ins-tabs button small { color: var(--muted); font-size: 12px; }
.ins-tabs button.on { border-color: var(--teal); background: #e6f7f9; }
.ins-instr { padding: 12px 16px; }
.ins-instr { position: relative; }
.ins-instr summary { cursor: pointer; font-weight: 800; color: var(--teal-ink); padding-right: 70px; }
.ins-instr-edit { position: absolute; top: 9px; right: 14px; }
.ins-instr-text { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; padding: 10px 12px; border: 1px solid #cfd6da; border-radius: 8px; }
.ins-instr-body { white-space: pre-wrap; font-size: 14px; margin-top: 10px; line-height: 1.5; }
.ins-list { background: #fff; border: 1px solid #e1e4e6; border-radius: 10px; padding: 4px 0; box-shadow: var(--shadow); }
.ins-scroll { overflow-x: auto; }
.ins-tbl { min-width: 720px; }
.ins-tbl th { white-space: nowrap; vertical-align: bottom; }
.ins-tbl th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; }
.ins-tbl td { vertical-align: top; font-size: 13px; }
.ins-tbl .ins-co { position: sticky; left: 0; background: #fff; z-index: 1; min-width: 170px; box-shadow: 1px 0 0 #eef0f1; }
.ins-tbl td.ins-co b { display: block; font-size: 14px; }
.ins-tel { display: block; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.ins-edit { display: block; font-size: 12px; margin-top: 4px; }
.ins-cell { min-width: 140px; }
.ins-sub { display: block; color: var(--muted); font-size: 12px; }
.ins-fee { display: block; font-size: 12.5px; margin-top: 2px; }
.ins-notes { min-width: 180px; max-width: 320px; color: #3c454b; }
.st { display: inline-block; border-radius: 99px; padding: 1px 9px; font-size: 12px; font-weight: 800; white-space: nowrap; margin-bottom: 2px; }
.st-in { background: #dcfce7; color: #166534; }
.st-out { background: #fee2e2; color: #991b1b; }
.st-wip { background: #fef3c7; color: #92400e; }
.st-new { background: #e5e7eb; color: #374151; }
.st-none { background: #f1f2f4; color: var(--muted); }
.ins-edit-grid { display: grid; grid-template-columns: minmax(130px, 1.1fr) 1fr 1fr .8fr 1.3fr; gap: 6px 8px; align-items: center; }
.ins-edit-grid input, .ins-edit-grid select { width: 100%; padding: 7px 9px; border: 1px solid #cfd6da; border-radius: 6px; font-size: 13.5px; background: #fff; }
.ins-edit-grid .lbl { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ins-edit-row > td { padding: 0 0 10px; background: #f6fbfc; border-bottom: 2px solid var(--teal); }
.ins-inline { position: sticky; left: 0; }
.ins-inline .ins-form { margin: 0; border-radius: 0 0 10px 10px; border-top: 0; box-shadow: none; }
.ins-tbl tr.editing > td { background: #e6f7f9; }
.ins-tbl tr.editing > td.ins-co { background: #e6f7f9; }
.ins-warn { background: #fef2f2; border: 1.5px solid #f3b4b4; color: #7f1d1d; border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.ins-warn .check { margin-top: 6px; color: #7f1d1d; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
@media (max-width: 820px) {
  .ins-edit-grid { grid-template-columns: 1fr 1fr; }
  .ins-edit-grid .lbl { display: none; }
  .ins-edit-grid b { grid-column: 1 / -1; margin-top: 8px; }
}
@media print { .ins-filters, .ins-page .actions, .ins-edit { display: none; } .ins-page { display: block; } }

/* ---------- release notes (landing page) ---------- */
.rn-page .panel { margin-bottom: 14px; }
.rn-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.rn-card-head h2 { margin: 0; font-size: 19px; }
.rn-proj { list-style: none; margin: 0; padding-left: 0; }
.rn-proj li { margin: 3px 0; line-height: 1.7; }
.rn-proj li.done > span:first-child, .rn-proj li.done > .rn-tick + span { text-decoration: line-through; color: var(--muted); }
.rn-proj .chip { display: inline-block; background: #e8eaed; color: #3c4043; border-radius: 6px; padding: 0 7px; margin-left: 6px; font-size: 13px; line-height: 1.6; white-space: nowrap; }
.rn-month { padding: 0; }
.rn-month > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; }
.rn-month > summary::-webkit-details-marker { display: none; }
.rn-month > summary h2 { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 800; color: var(--ink); letter-spacing: .01em; }
.rn-month > summary h2::before { content: "▸"; display: inline-block; width: 1.1em; color: var(--muted); transition: transform .15s; }
.rn-month[open] > summary h2::before { transform: rotate(90deg); }
.rn-body { padding: 0 20px 16px; }
.rn-cat { font-size: 16px; margin: 12px 0 4px; }
.rn-items { margin: 0; padding-left: 22px; }
.rn-items li { margin: 3px 0; line-height: 1.5; }
.rn-items li.lvl1 { margin-left: 26px; list-style: circle; }
.rn-items li.lvl2 { margin-left: 52px; list-style: square; }
.rn-none { margin: 2px 0 0 22px; font-size: 13px; }
.hl { padding: 1px 3px; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-needs { background: #f9a8f9; }
.hl-rollout { background: #80f0f0; }
.hl-security { background: #ffc266; }
.hl-done { background: #8ff08f; }
.rn-keylist { list-style: disc; margin: 0; padding-left: 22px; font-size: 14px; }
.rn-keylist li { margin: 3px 0; }
.rn-edit-row { display: grid; grid-template-columns: 1fr 64px 130px auto; gap: 6px; align-items: start; margin: 0 0 6px 22px; }
.rn-edit-row textarea, .rn-edit-row select { width: 100%; padding: 7px 9px; border: 1px solid #cfd6da; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; }
.rn-edit .ghost.small { margin-left: 22px; }
.rn-edit-actions { display: flex; margin-top: 16px; border-top: 1px solid #eef0f1; padding-top: 12px; }
.rn-proj-row input[data-f=text] { flex: 2; }
.rn-proj-row input[data-f=people] { flex: 1.3; }
@media (max-width: 820px) {
  .rn-edit-row { grid-template-columns: 1fr 1fr; margin-left: 0; }
  .rn-edit-row textarea { grid-column: 1 / -1; }
  .rn-proj-row { flex-wrap: wrap; }
}
@media print { .rn-month { break-inside: avoid; } .rn-month:not([open]) .rn-body { display: block; } }

/* ---------- OSHA ---------- */
.osha-steps { white-space: pre-wrap; margin: 4px 0 10px; }
.osha-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; }
.osha-card { border: 1px solid #e1e4e6; border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; background: #fafbfc; }
.osha-wc { font-size: 14px; border-top: 1px solid #eef0f1; padding-top: 10px; }
.osha-staff-note { margin-top: 4px; }
.osha-privacy { background: #fff7e6; border: 1px solid #f5d38a; border-radius: 8px; padding: 8px 12px; font-size: 13.5px; }
.osha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; align-items: start; margin-bottom: 8px; }
.osha-form .f-wide { margin-bottom: 8px; }
.osha-form .f-wide .hint { margin: 0; font-weight: 500; }
.radios { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; }
.radios legend { font-size: 13px; font-weight: 700; color: #3c454b; margin-bottom: 3px; padding: 0; }
.radios label { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.osha-more { border-top: 1px solid #e1e4e6; margin-top: 10px; padding-top: 8px; }
.osha-more > summary { cursor: pointer; font-weight: 800; color: var(--teal-ink); padding: 4px 0; }
.osha-tbl td.num { text-align: center; }
.osha-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.osha-sum h3 { margin: 6px 0 4px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.osha-sum dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; font-size: 14px; }
.osha-sum dd { margin: 0; font-weight: 800; text-align: right; }
.osha-sum p { margin: 0 0 6px; font-size: 14px; }
.osha-thanks { border-left: 6px solid #22a35a; }


/* magnifying glass on every search box */
input.search {
  padding-left: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2368737b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px 18px;
}
input.search:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3d47' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E"); }


/* ---------- pre-authorization tracker ---------- */
.pa-views button small { font-weight: 800; color: var(--teal-ink); font-size: 13px; }
.pa-tbl td { vertical-align: top; }
.pa-tbl tr.pa-done > td { color: var(--muted); }
.pa-tbl tr.pa-done > td.ins-co b { text-decoration: line-through; }
.pa-code { display: inline-block; background: #eef2f4; border-radius: 6px; padding: 1px 7px; margin: 0 4px 3px 0; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pa-code i { font-style: normal; font-weight: 600; color: var(--muted); }
.pa-age { display: table; margin-top: 3px; }
.pa-check { text-align: center; }
.pa-check input { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.pa-group legend { font-weight: 900; padding: 0 6px; }
.pa-completed { align-self: end; padding-bottom: 8px; }
.pa-list-edit { display: grid; grid-template-columns: .8fr .7fr 2fr 1fr auto; gap: 6px 8px; align-items: center; margin-bottom: 8px; }
.pa-list-edit input { width: 100%; padding: 7px 9px; border: 1px solid #cfd6da; border-radius: 6px; font-size: 13.5px; }
.pa-list-edit .lbl { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 820px) { .pa-list-edit { grid-template-columns: 1fr 1fr; } .pa-list-edit .lbl { display: none; } }

/* procedure picker: code + tooth box on one line, description underneath */
.pa-procs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
@media (max-width: 1150px) { .pa-procs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pa-procs { grid-template-columns: minmax(0, 1fr); } }
.pa-group { border: 1px solid #dfe3e5; border-radius: 8px; padding: 4px 12px 8px; margin: 0; min-width: 0; }
.pa-group legend { font-weight: 900; padding: 0 6px; }
.pa-proc { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 8px; align-items: start; padding: 8px 0; }
.pa-proc + .pa-proc { border-top: 1px solid #eef0f1; }
.pa-proc.no-unit { grid-template-columns: minmax(0, 1fr); }
.pa-pick { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; row-gap: 1px; cursor: pointer; }
.pa-pick input { grid-row: 1 / span 2; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--teal); }
.pa-pick b { font-size: 14.5px; line-height: 1.3; }
.pa-pick small { font-size: 12.5px; line-height: 1.3; color: var(--muted); font-weight: 600; }
.pa-tooth { width: 100%; padding: 6px 8px; border: 1px solid #cfd6da; border-radius: 6px; font-size: 13.5px; }

/* ---------- EFT log (Oct/Nov 2026 sheet layout) ---------- */
.eft-page .wrap, .eft-page { max-width: none; }
.eft-head { padding: 14px 16px; }
.eft-head-grid { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(260px, 1.3fr) minmax(260px, 1.1fr) minmax(230px, 1fr); gap: 0; border: 1px solid #c9ced2; border-radius: 6px; overflow: hidden; }
.eft-blk { padding: 0 0 8px; border-right: 1px solid #c9ced2; min-width: 0; }
.eft-blk:last-child { border-right: 0; }
.eft-blk h3 { margin: 0 0 6px; background: #bdbdbd; color: #1f2428; font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; padding: 6px 10px; text-align: center; }
.eft-blk dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 0; padding: 0 10px; font-size: 13px; }
.eft-blk dt { font-weight: 800; white-space: nowrap; }
.eft-blk dd { margin: 0; overflow-wrap: anywhere; }
.eft-totals dd { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.eft-key { display: flex; flex-direction: column; gap: 3px; }
.eft-key h3 { margin-bottom: 4px; }
.eft-flag { margin: 0 10px; padding: 2px 8px; font-size: 12.5px; font-weight: 700; border-radius: 3px; }
.fl-total { background: #b6d7a8; } .fl-eob { background: #ea9999; } .fl-help { background: #a4c2f4; } .fl-balance { background: #b4a7d6; } .fl-note { background: #bdbdbd; }
.eft-head-actions { text-align: right; margin-top: 8px; }
.eft-lk { display: grid; grid-template-columns: 220px 1fr 2fr; gap: 6px 8px; align-items: center; margin-bottom: 6px; }
.eft-lk input { padding: 7px 9px; border: 1px solid #cfd6da; border-radius: 6px; font-size: 13.5px; width: 100%; }
.eft-tbl { min-width: 1180px; font-size: 13px; }
.eft-tbl thead th { background: #bdbdbd; color: #1f2428; font-weight: 900; position: sticky; top: 0; z-index: 2; white-space: normal; line-height: 1.2; vertical-align: bottom; }
.eft-tbl td { padding: 3px 6px; vertical-align: middle; border-bottom: 1px solid #eceff1; }
.eft-tbl tbody tr.eft-row:nth-child(even) > td { background: #f8f9fa; }
.eft-tbl td.c { text-align: center; white-space: nowrap; }
.eft-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.eft-desc { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eft-tbl input:not([type=checkbox]), .eft-tbl select { border: 1px solid transparent; background: transparent; border-radius: 4px; padding: 3px 5px; font: inherit; font-size: 13px; width: 100%; }
.eft-tbl input:not([type=checkbox]):hover, .eft-tbl select:hover { border-color: #cfd6da; background: #fff; }
.eft-tbl input:not([type=checkbox]):focus, .eft-tbl select:focus { border-color: var(--teal); background: #fff; outline: none; }
.eft-tbl input[type=date] { width: 128px; }
.eft-ini { width: 62px !important; text-transform: uppercase; text-align: center; font-weight: 700; }
.eft-amt { width: 92px !important; text-align: right; }
.eft-note-wrap { display: grid; grid-template-columns: minmax(140px, 1fr) 22px auto 24px; gap: 4px; align-items: center; }
.eft-era { border: 1px solid #cfd6da; background: #fff; border-radius: 999px; font: 700 11px/1 var(--f-ui, inherit); padding: 4px 8px; cursor: pointer; color: #3a4a52; white-space: nowrap; }
.eft-era.has { background: #e3f5ec; border-color: #9fd6b8; color: #156a3c; }
.eft-era b { font-weight: 800; }
.eft-era:hover { border-color: var(--teal); }
.eft-era-panel { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; padding: 6px 8px; background: #f6f9fa; border: 1px solid #e1e8eb; border-radius: 8px; font-size: 12.5px; }
.eft-era-file { display: inline-flex; align-items: center; gap: 4px; }
.eft-era-panel .linkish { border: 0; background: none; padding: 0; color: var(--teal-ink, #0e7490); cursor: pointer; font: inherit; text-decoration: underline; }
.eft-note-wrap select { width: 22px !important; padding: 2px 0 !important; color: transparent; text-shadow: none; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='6' fill='%23b0b7bc'/%3E%3C/svg%3E") center/14px no-repeat !important; }
.eft-note-wrap select option { color: #1f2428; }
td.eft-notes.fl-eob, td.eft-notes.fl-eob input { background: #ea9999 !important; }
td.eft-notes.fl-help, td.eft-notes.fl-help input { background: #a4c2f4 !important; }
td.eft-notes.fl-balance, td.eft-notes.fl-balance input { background: #b4a7d6 !important; }
.eft-del { opacity: 0; transition: opacity .15s; padding: 0 6px !important; }
tr.eft-row:hover .eft-del, .eft-del:focus { opacity: 1; }
tr.eft-noeft td { color: var(--muted); font-style: italic; }
tr.eft-total > td { background: #d9ead3 !important; border-top: 1.5px solid #222; border-bottom: 1.5px solid #222; font-weight: 800; padding: 6px; }
tr.eft-total input[type=checkbox] { width: 17px; height: 17px; accent-color: #38761d; cursor: pointer; }
.eft-auto { font-size: 12px; font-weight: 700; }
.eft-auto.ok { color: #2f6b1f; } .eft-auto.off { color: #a61c00; }
.eft-preview .eft-prev-list { max-height: 360px; overflow: auto; border: 1px solid #e1e4e6; border-radius: 8px; padding: 6px 10px; background: #fff; margin: 8px 0; }
.eft-prev-day { padding: 6px 0; border-bottom: 1px solid #eef0f1; }
.eft-prev-day:last-child { border-bottom: 0; }
.eft-prev-day .check { font-size: 13px; font-weight: 600; margin: 3px 0 0 14px; }
.eft-excl { font-size: 12.5px; max-height: 200px; overflow: auto; }
@media (max-width: 1100px) { .eft-head-grid { grid-template-columns: 1fr 1fr; } .eft-blk:nth-child(2) { border-right: 0; } .eft-blk:nth-child(-n+2) { border-bottom: 1px solid #c9ced2; } }
@media (max-width: 640px) { .eft-head-grid { grid-template-columns: 1fr; } .eft-blk { border-right: 0; border-bottom: 1px solid #c9ced2; } .eft-lk { grid-template-columns: 1fr; } }

.eft-head-grid { grid-template-columns: minmax(190px, .7fr) minmax(360px, 1.6fr) minmax(300px, 1.1fr) minmax(240px, .9fr); }
.eft-blk dl { grid-template-columns: max-content minmax(0, 1fr); }
.eft-blk dd { overflow-wrap: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eft-blk dd a { white-space: nowrap; }
.eft-totals dd { white-space: nowrap; overflow: visible; }
@media (max-width: 1100px) { .eft-head-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .eft-head-grid { grid-template-columns: 1fr; } .eft-blk dd { white-space: normal; } }


/* ---------- New Office Start Up ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.linklike.danger { color: var(--red); }
.su-overall { margin: 6px 0 12px; }
.su-overall p { margin: 6px 0 0; font-size: 14px; }
.su-bar { height: 10px; border-radius: 99px; background: #e4e9ec; overflow: hidden; }
.su-bar span { display: block; height: 100%; background: var(--teal); border-radius: 99px; transition: width .3s; }
.su-late { color: var(--red); font-weight: 800; }
.su-tabs button b { font-size: 14px; }
.su-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.su-tools .pw-search-wrap, .su-tools .su-search { flex: 1 1 320px; }
.su-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 700; white-space: nowrap; }
.su-list, .su-supplies { margin: 14px 0 18px; }
.su-list h2, .su-supplies h2 { font-size: 17px; color: var(--teal-ink); margin: 0 0 8px; }
.su-list h2 small { color: var(--muted); font-weight: 700; font-size: 13px; margin-left: 6px; }
.su-tbl { table-layout: fixed; width: 100%; }
.su-tbl td, .su-suptbl td { vertical-align: top; overflow-wrap: anywhere; }
.su-tbl th:nth-child(2) { width: 30%; } .su-tbl th:nth-child(3) { width: 16%; } .su-tbl th:nth-child(5) { width: 15%; }
.su-ck { width: 38px; text-align: center; }
.su-ck input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); cursor: pointer; }
tr.su-done > td { color: var(--muted); }
tr.su-done .su-title b, tr.su-done .su-item a, tr.su-done .su-item { text-decoration: line-through; }
.su-by { font-size: 12px; color: #166534; font-weight: 700; margin-top: 2px; }
.su-note { font-size: 12.5px; margin-top: 3px; }
.su-note span { background: #fff7d6; border-radius: 4px; padding: 0 4px; color: var(--ink); }
.su-ins { font-size: 13.5px; }
.su-links { margin-top: 4px; font-size: 12.5px; }
.su-when { font-size: 13px; }
.su-add { margin: 0 0 8px; }
.su-addform, .su-settings, .su-start-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; align-items: end; }
.su-addform label, .su-settings label, .su-start-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.su-settings h2, .su-settings .muted, .su-settings .actions, .su-settings fieldset, .su-start-form fieldset, .su-start-form .actions, .su-addform .actions, .su-addform .su-wide { grid-column: 1 / -1; }
.su-types { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.su-types legend { font-weight: 800; margin-bottom: 6px; }
.su-type { flex: 1 1 260px; flex-direction: row !important; align-items: flex-start; gap: 8px !important; border: 1.5px solid #cfd6da; border-radius: 10px; padding: 10px 12px; background: #fff; cursor: pointer; font-weight: 600 !important; }
.su-type small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.su-type:has(input:checked) { border-color: var(--teal); background: #e6f7f9; }
.su-start { max-width: none; }
.su-sheet { background: #fff; border: 1px solid #e1e4e6; border-radius: 10px; margin-bottom: 10px; box-shadow: var(--shadow); }
.su-sheet > summary { cursor: pointer; padding: 12px 14px; color: var(--teal-ink); }
.su-sheet > summary small { color: var(--muted); font-weight: 700; margin-left: 6px; }
.su-sheet .ins-list { border: 0; box-shadow: none; border-top: 1px solid #e1e4e6; border-radius: 0 0 10px 10px; }
.su-supwrap { overflow-x: auto; }
.su-suptbl { width: 100%; min-width: 960px; table-layout: fixed; }
.su-suptbl th:nth-child(1) { width: 52px; } .su-suptbl th:nth-child(2) { width: 32%; } .su-suptbl th:nth-child(3) { width: 13%; }
.su-suptbl th:nth-child(4) { width: 13%; } .su-suptbl th:nth-child(5) { width: 12%; } .su-suptbl th:nth-child(6) { width: 9%; }
.su-suptbl th:nth-child(7) { width: 150px; } .su-suptbl th:nth-child(8) { width: 72px; }
.su-suptbl td { font-size: 13.5px; }
.su-suptbl tr.su-grp th { background: #e6f7f9; color: var(--teal-ink); text-align: left; font-size: 14px; padding: 8px 10px; }
.su-suptbl tr.su-sub th { background: #f4f7f8; text-align: left; font-size: 13px; color: var(--ink); padding: 5px 10px 5px 20px; }
.su-price { white-space: nowrap; }
.su-ord input { font: inherit; font-size: 13px; padding: 3px 4px; border: 1px solid #cfd6da; border-radius: 6px; max-width: 140px; }
.su-noteform { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.su-noteform input { flex: 1 1 280px; }
.su-pad { padding: 10px 14px; }
.su-alldone { margin: 0; }
@media (max-width: 760px) {
  .su-tbl thead { display: none; }
  .su-tbl, .su-tbl tbody, .su-tbl tr, .su-tbl td { display: block; width: auto !important; }
  .su-tbl tr { position: relative; padding: 8px 10px 8px 44px; border-bottom: 1px solid #eef1f2; }
  .su-tbl td { padding: 2px 0; border: 0; }
  .su-tbl td.su-ck { position: absolute; left: 6px; top: 8px; }
}
.su-start-form input:not([type=radio]), .su-settings input:not([type=radio]), .su-addform input, .su-addform select, .su-noteform input { font: inherit; font-weight: 500; padding: 8px 10px; border: 1.5px solid #cfd6da; border-radius: 8px; background: #fff; }
/* EFT month tabs sit on top of the month box like sheet tabs */
.eft-months { gap: 4px; margin: 0; padding: 0 8px; position: relative; z-index: 1; flex-wrap: wrap; }
.eft-months button { border-radius: 9px 9px 0 0; border: 1px solid #d6dce0; border-bottom: 0; background: #eef2f4; padding: 7px 14px; margin-bottom: -1px; }
.eft-months button b { font-size: 13.5px; }
.eft-months button:hover { background: #e2eef1; }
.eft-months button.on { background: #fff; border-color: #d6dce0; box-shadow: inset 0 3px 0 var(--teal); position: relative; z-index: 2; }
.eft-months + .eft-head { margin-top: 0; border: 1px solid #d6dce0; border-top-left-radius: 0; position: relative; z-index: 1; }
/* EFT highlight colors the whole row, like the sheet */
.eft-tbl tr.rf-eob > td, .eft-tbl tr.rf-eob input, .eft-tbl tr.rf-eob select { background: #ea9999 !important; }
.eft-tbl tr.rf-help > td, .eft-tbl tr.rf-help input, .eft-tbl tr.rf-help select { background: #a4c2f4 !important; }
.eft-tbl tr.rf-balance > td, .eft-tbl tr.rf-balance input, .eft-tbl tr.rf-balance select { background: #b4a7d6 !important; }
.su-tabs button { flex-direction: row !important; align-items: center !important; gap: 10px !important; }
.su-tabs button > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.su-ring { --p: 0; flex: 0 0 auto; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--teal) calc(var(--p) * 1%), #e4e9ec 0); vertical-align: middle; }
.su-ring > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 900; color: var(--teal-ink); }
.su-ring.full { background: #22a06b; }
.su-ring.full > span { color: #166534; }
.su-list h2 { display: flex; align-items: center; gap: 10px; }
.su-list h2 .su-ring { width: 38px; height: 38px; }
.su-list h2 .su-ring > span { width: 29px; height: 29px; font-size: 10.5px; }
.su-type { align-items: center !important; }

/* ---------- Insurance reference tabs (codes, fees, network status) ---------- */
.ins-views { margin-top: 10px; }
.ins-ref-mode .ins-office-only { display: none !important; }
.ref-tools .ins-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ref-tools .ins-filters .pw-search { flex: 1 1 320px; }
.ref-tools select { padding: 9px 10px; border: 1.5px solid #cfd6da; border-radius: 8px; font: inherit; background: #fff; }
.ref-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.ref-head p { margin: 0; }
.ref-key { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; }
.ref-scroll { overflow: auto; max-height: calc(100vh - 230px); background: #fff; border: 1px solid #e1e4e6; border-radius: 10px; box-shadow: var(--shadow); }
.ref-tbl { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.ref-tbl th, .ref-tbl td { padding: 5px 8px; border-bottom: 1px solid #eceff1; border-right: 1px solid #f1f3f4; vertical-align: top; background: #fff; }
.ref-tbl thead th { position: sticky; top: 0; z-index: 3; background: #bdbdbd; color: #1f2428; font-size: 12px; font-weight: 900; text-align: left; vertical-align: bottom; min-width: 90px; }
.ref-tbl .ref-code { position: sticky; left: 0; z-index: 2; min-width: 74px; font-weight: 800; white-space: nowrap; }
.ref-tbl .ref-desc { position: sticky; left: 74px; z-index: 2; min-width: 230px; max-width: 300px; box-shadow: 2px 0 0 #e1e4e6; }
.ref-net .ref-desc { left: 0; min-width: 240px; }
.ref-tbl thead .ref-code, .ref-tbl thead .ref-desc { z-index: 4; background: #bdbdbd; }
.ref-tbl td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ref-tbl .ref-fixed { background: #f4f7f8; }
.ref-tbl thead .ref-fixed { background: #a9b3b8; }
.ref-plan b, .ref-plan span, .ref-plan small, .ref-net .ref-desc span, .ref-doc small, .ref-code small { display: block; }
.ref-plan span, .ref-doc small, .ref-code small { font-weight: 600; font-size: 11.5px; }
.ref-plan a { color: #12384a; }
.ref-plan small { font-weight: 700; color: #6b3d00; }
.ref-tbl tr.ref-grp th { position: sticky; left: 0; background: #e6f7f9; color: var(--teal-ink); font-size: 13px; text-align: left; z-index: 1; }
.ref-tbl tr.ref-grey > * { background: #efefef; }
.ref-hi { background: #b6d7a8 !important; font-weight: 900; color: #14532d; }
.ref-lo { background: #ea9999 !important; color: #7f1d1d; }
.ref-key .ref-hi, .ref-key .ref-lo { padding: 0 4px; border-radius: 3px; }
.ref-mine { background: #e6f7f9 !important; font-weight: 800; }
.ref-long { min-width: 320px; max-width: 520px; }
.ref-comp td { min-width: 120px; }
.ref-st { padding: 1px 8px; border-radius: 4px; color: #1f2428; }
.st-approved, tr.st-row-approved > .ref-code { background: #b6d7a8 !important; }
.st-referenced, tr.st-row-referenced > .ref-code { background: #efefef !important; }
.st-micro, tr.st-row-micro > .ref-code { background: #b4a7d6 !important; }
.st-disapproved, tr.st-row-disapproved > .ref-code { background: #ea9999 !important; }
.ref-timely { background: #fff7d6; border: 1px solid #f1e2a6; border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; font-size: 13.5px; }
.ref-net td { min-width: 112px; }
.ref-net .ref-desc details { font-size: 12px; margin-top: 3px; }
.ref-net .ref-desc summary { cursor: pointer; color: var(--brand-ink); font-weight: 700; }
.ref-doc { min-width: 120px; }
.ref-tint { background: #cfe2f3 !important; }
.ns { display: inline-block; padding: 1px 7px; border-radius: 4px; font-weight: 800; font-size: 12px; background: #f1f3f4; }
.ns-g { background: #d9ead3; color: #14532d; }
.ns-x { background: #c8cfd7; color: #334155; }
.ns-o { background: #fce5cd; color: #7c2d12; }


/* Release Notes: My Tasks */
.rn-mine > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.rn-mine > summary::-webkit-details-marker { display: none; }
.rn-mine > summary::before { content: '▸'; color: var(--teal-ink); font-size: 18px; transition: transform .15s; }
.rn-mine[open] > summary::before { transform: rotate(90deg); }
.rn-mine > summary h2 { margin: 0; font-size: 20px; color: var(--teal-ink); }
.rn-mine-count { color: var(--muted); font-weight: 700; font-size: 14px; }
.rn-mine-count .late, .rn-due.late { color: var(--red); }
.rn-mine[open] > summary { margin-bottom: 10px; }
.rn-due { display: inline-block; margin-left: 8px; font-size: 12.5px; font-weight: 800; color: var(--teal-ink); background: #e6f7f9; border-radius: 6px; padding: 0 7px; line-height: 1.6; white-space: nowrap; }
.rn-due.soon { background: #fff4d6; color: #8a5a00; }
.rn-due.late { background: #fde2e1; }
.rn-proj .chip.me { background: #d4f1f4; color: var(--teal-ink); font-weight: 800; }
.rn-proj-row input[data-f=due] { flex: 0 0 150px; }
/* In Process Projects folds like My Tasks */
.rn-fold > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.rn-fold > summary::-webkit-details-marker { display: none; }
.rn-fold > summary::before { content: '▸'; color: var(--teal-ink); font-size: 18px; transition: transform .15s; }
.rn-fold[open] > summary::before { transform: rotate(90deg); }
.rn-fold > summary h2 { margin: 0; font-size: 20px; color: var(--teal-ink); }
.rn-fold[open] > summary { margin-bottom: 10px; }
.rn-fold-edit { margin-left: auto; }
.gm-pop { font-family: Urbanist, Arial, sans-serif; font-size: 13px; line-height: 1.4; }
textarea.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
@media (max-width: 700px) { .admin table.tbl { display: block; overflow-x: auto; } }

@media print { .edit-link { display: none; } .lp.collapsed .lp-body { display: block; } }
}
/* printing OSHA forms: only #print-area is printed */
/* printing OSHA forms: only #print-area is printed */
#print-area { display: none; }
@media print {
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  .pf { font: 10pt/1.35 Arial, Helvetica, sans-serif; color: #000; }
  .pf h1 { font-size: 15pt; margin: 0 0 6px; }
  .pf h1 small { font-weight: normal; font-size: 11pt; margin-left: 10px; }
  .pf h2 { font-size: 11pt; margin: 10px 0 4px; border-bottom: 1px solid #000; }
  .pf-note { font-size: 8.5pt; color: #333; }
  .pf-tbl { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
  .pf-tbl th, .pf-tbl td { border: 1px solid #555; padding: 3px 4px; vertical-align: top; text-align: left; font-size: 8.5pt; }
  .pf-tbl th { background: #eee; }
  .pf-tbl td.c { text-align: center; }
  .pf-tot td { font-weight: bold; }
  .pf-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pf-sign { margin-top: 24px; }
  .pf-letter p { font-size: 11pt; }
}
.osha-tbl .ins-co { min-width: 90px; width: 90px; }
.osha-tbl td.ins-co b { font-size: 14px; }
/* OSHA: the information box, year tabs (sheet style) and the two forms in one box */
.ta .osha-info { border: 1px solid #d6dce0; border-radius: 12px; background: #fff; padding: 14px 18px; margin: 10px 0 16px; }
.ta .osha-years { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px; position: relative; z-index: 1; }
.ta .osha-years button { display: inline-flex; align-items: baseline; gap: 8px; font: inherit; cursor: pointer; border: 1px solid #d6dce0; border-bottom: 0; border-radius: 9px 9px 0 0;
  background: #eef2f4; padding: 9px 16px; margin-bottom: -1px; color: var(--ink, #18282f); }
.ta .osha-years button b { font-size: 14px; }
.ta .osha-years button small { font-size: 12px; color: var(--muted); }
.ta .osha-years button:hover { background: #e2eef1; }
.ta .osha-years button.on { background: #fff; box-shadow: inset 0 3px 0 var(--teal, #1fb3c2); position: relative; z-index: 2; }
.ta .osha-yearbox { border: 1px solid #d6dce0; border-radius: 0 12px 12px 12px; background: #fff; padding: 14px 18px; }
.ta .osha-yearbox .panel { border: 0; padding: 0; margin: 0; box-shadow: none; background: none; }
.ta .osha-yearbox .osha-300a { border-top: 1px solid #e3e8ea; margin-top: 18px; padding-top: 14px; }
/* Start Up workflows */
.ta .su-waiting { border: 1px solid #f2d27a; background: #fff8e1; border-radius: 10px; padding: 10px 14px; margin: 10px 0 12px; }
.ta .su-waiting ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.ta .su-wait-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #d97706; color: #fff; font: 700 11px/1 inherit; font-style: normal; vertical-align: 1px; }
.ta .su-fu { background: #fff1d6; color: #8a5d0b; }
.ta .su-flow { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ta .su-flow b { color: #4f46e5; }
.ta .su-flow-arrow { color: #4f46e5; font-weight: 700; }
.ta .su-flow-row td { background: #f5f6ff; }
.ta .su-flowform { display: grid; gap: 8px; padding: 6px 2px; }
.ta .su-flow-steps { display: grid; gap: 8px; }
.ta .su-flow-step { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1.6fr) 90px minmax(0, 1.6fr) auto; gap: 8px; align-items: end; background: #fff; border: 1px solid #dfe2f5; border-radius: 8px; padding: 8px; }
.ta .su-flow-step label { display: grid; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ta .su-flow-step label { min-width: 0; }
.ta .su-flow-step .linklike { white-space: nowrap; padding-bottom: 8px; }
.ta .su-flow-row td { max-width: 0; }
.ta .su-flow-step input, .ta .su-flow-step select { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-overflow: ellipsis; font: inherit; font-weight: 500; padding: 6px 8px; border: 1.5px solid #cfd6da; border-radius: 8px; background: #fff; color: var(--ink, #18282f); }
.ta .su-flowform .actions { display: flex; gap: 8px; align-items: center; }
.ta .su-flowform .spacer { flex: 1; }
@media (max-width: 1100px) { .ta .su-flow-step { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 90px; } .ta .su-flow-step .su-flow-ins { grid-column: span 2; } }
@media (max-width: 700px) { .ta .su-flow-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ta .cred-lock { display: inline-flex; align-items: center; margin-left: .3rem; color: #7c3aed; cursor: help; vertical-align: -1px; }
.ta input.cred-ro { background: #f5f3ff; cursor: not-allowed; }

/* Release Notes: each collapsible section in its own box */
.ta details.rn-mine, .ta details.rn-fold, .ta details.rn-month, .ta .rn-card {
  border: 1px solid #d6dce0; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15, 40, 50, .05);
  margin: 0 0 14px; overflow: hidden;
}
.ta details.rn-mine, .ta details.rn-fold, .ta .rn-card { padding: 14px 20px; }
.ta details.rn-month[open] > summary, .ta details.rn-mine[open] > summary, .ta details.rn-fold[open] > summary { border-bottom: 1px solid #e6ebee; padding-bottom: 12px; margin-bottom: 12px; }
.ta details.rn-month .rn-body { padding: 0 20px 16px; }

/* a checkbox (or an open arrow) in place of the bullet */
.rn-proj li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .2rem; }
.rn-tick { width: 17px; height: 17px; margin: 0 .55rem 0 0; flex: none; accent-color: var(--teal); cursor: pointer; transform: translateY(3px); }
.rn-tick:disabled { cursor: default; opacity: .55; }
.rn-tick-go { width: 17px; margin-right: .55rem; text-align: center; text-decoration: none; color: var(--teal-ink); font-weight: 900; flex: none; }
.rn-proj li.done .rn-mine-link { text-decoration: line-through; color: var(--muted); }

/* Passwords: category tabs */
.ta .pw-tabs { margin: .9rem 0 0; }
.ta .pw-tabs .tab .muted { font-weight: 600; font-size: 12px; margin-left: 2px; }

/* Practice Home: sections as tabs above the office details */
.ta .ph-tabs { margin: 0 0 0; }
.ta .ph-panel > :first-child { margin-top: 0; }
.ta .ph-panel .lp { margin-top: 0; }
.ta .lp-head-tab { padding-bottom: 0; }
.ta .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Release Notes: the key across the page, in columns */
.ta .rn-key { margin: 0 0 14px; padding: 0; border: 0; background: none; box-shadow: none; }
.ta .rn-key .editor { padding: 12px 20px; border: 1px solid #d6dce0; border-radius: 12px; background: #fff; }
.ta .rn-keylist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ta .rn-k { overflow-wrap: break-word; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid #e6ebee; border-radius: 10px; background: #fafcfc; font-size: 13.5px; line-height: 1.35; color: #24323a; }
.ta .rn-k-mark { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.ta .rn-k-sym .rn-k-mark { background: #fff; border: 1px solid #e6ebee; }
.ta .rn-k-high { border-color: #f3c2c2; background: #fff6f6; font-weight: 700; color: #9f1d1d; }
.ta .rn-k-high .rn-k-mark { border-color: #f3c2c2; }
.ta .rn-k-needs { border-color: #f1c4f1; } .ta .rn-k-rollout { border-color: #b4ecec; } .ta .rn-k-security { border-color: #f5d39b; } .ta .rn-k-done { border-color: #b9ebb9; }
.fact .hide-btn { margin-left: .4rem; padding: 0; border: 0; background: none; color: var(--teal-ink, #0f766e); cursor: pointer; vertical-align: middle; line-height: 0; }
.fact .hide-btn svg { width: 18px; height: 18px; }
.fact .hide-btn:hover { color: #0b4f55; }
.fact.fact-hidden { opacity: .45; }
.fact.fact-hidden dd { text-decoration: line-through; }
.fact .hide-btn { text-decoration: none; }
.fact.fact-hidden .hide-btn { opacity: 1; }
.ph-edit { position: absolute; right: 10px; display: flex; gap: 6px; }
.ph-edit .edit-link { position: static; }
.hide-hint { color: #fff; opacity: .9; font-size: .85rem; }
@media (max-width: 720px) { .ph-edit { position: static; } }
@media print { .ph-edit { display: none; } }
.ta .ph-jump { position: sticky; top: 60px; z-index: 5; background: var(--bg, #f6f8fa); padding-top: 6px; margin: 0; border-bottom: 2px solid var(--teal, #1fb5c4); box-sizing: border-box; width: 100%; }
.ta .ph-sec { scroll-margin-top: 120px; }
.ta .ph-sec + .ph-sec { margin-top: 14px; }

.ph-edit { align-items: center; gap: 10px; }
.ph-icon { display: inline-grid; place-items: center; color: #fff; background: none; padding: 2px; line-height: 0; }
.ph-icon svg { width: 22px; height: 22px; }
.ph-icon:hover { opacity: .8; }

.ta .rn-keygrid { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 10px; align-items: start; }
.ta .rn-keygrid .rn-k-syms { grid-template-columns: 1fr; }
.ta .rn-keygrid .rn-k-tags { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .ta .rn-keygrid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .ta .rn-keygrid .rn-k-tags { grid-template-columns: 1fr; } }
.ta .pw-sel { width: 34px; text-align: center; }
.ta .pw-sel input { width: 17px; height: 17px; margin: 0; cursor: pointer; }
.ta .pw-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 14px; border: 1px solid #b4ecec; background: #effbfc; border-radius: 10px; }
.ta .pw-bulk[hidden] { display: none; }
.ta .pw-bulk label { display: inline-flex; align-items: center; gap: 6px; }
.ta .pw-bulk select { width: auto; }
/* Practice Home → Site: section list */
.ta .lp-sections td.right { white-space: nowrap; }
.ta .lp-sections td.right > button { height: 34px; min-height: 34px; box-sizing: border-box; vertical-align: middle; display: inline-flex; align-items: center; justify-content: center; }
.ta .lp-sections td.right > .pencil-btn { width: 34px; padding: 0 !important; }
.ta .lp-drag-cell { width: 28px; padding-right: 0; }
.ta .lp-drag { cursor: grab; color: #7b8a93; font-size: 17px; user-select: none; line-height: 1; }
.ta .lp-drag:active { cursor: grabbing; }
.ta .lp-sections tr.dragging { opacity: .45; }
.ta .lp-sections tr.drop-above > td { box-shadow: inset 0 3px 0 #1fb5c4; }
.ta .lp-sections tr.drop-below > td { box-shadow: inset 0 -3px 0 #1fb5c4; }
.ta .eft-head, .ta .eft-head-grid, .ta .eft-blk { background: #fff; }   /* EFT Log top box: white */
.ta .eft-head { border-radius: 0 10px 10px 10px; }   /* rounded like the other boxes (square only where it meets the month tabs) */
/* the section tabs sit on a box holding the search and filters */
.ins-page .ins-views { margin-bottom: 0; }
.ins-page .ins-views + .ins-ref-host .ref-tools .ins-filters, .ins-page .ins-filters.ins-office-only, .ins-page .ref-tools .ins-filters {
  background: var(--surface, #fff); border: 1px solid #d6dce0; border-top: 0; border-radius: 0 0 10px 10px; padding: 12px; margin-top: 0; top: var(--hdrh, 0px); }
.ins-page .ins-filters .pw-search { box-shadow: none; }
.ta .lp-notice, .lp-notice { margin-bottom: 1.4rem; display: block; }
.lp-notice textarea { padding: .75rem .9rem; }
.ta .ph-jump + .ph-sec > :first-child { margin-top: 0; }
/* restricted lines on Practice Home: masked until Show (every look logged) */
.ta .fact-restricted dd { font-variant-numeric: tabular-nums; }
.ta .fact-restricted .link-btn { font-size: .8rem; margin-left: .2rem; }
/* Insurance: Network Status under the office's networks & fee schedules */
.ins-page .ins-net { margin-top: 1.4rem; }
.ins-page .ins-net-h { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--teal-ink); }
/* Insurance: the edit form stays a comfortable width instead of stretching across the whole table */
.ins-form { max-width: 980px; }
.ins-form .grid2 { max-width: 760px; }
@media (min-width: 821px) { .ins-edit-grid { grid-template-columns: minmax(150px, 210px) minmax(130px, 170px) minmax(120px, 170px) minmax(105px, 130px) minmax(130px, 200px); justify-content: start; } }
.ins-wb { display: inline-block; margin-left: .4rem; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #6b4fbb; background: #f1edfb; border-radius: 4px; padding: 1px 5px; vertical-align: middle; }
/* the edit form sits centred under its row, with room on both sides */
.ins-page .ins-inline form.ins-form { margin: 0 auto; padding: 1rem 1.4rem 1.2rem; box-sizing: border-box; }
.ins-page .ins-form-host form.ins-form { margin-left: auto; margin-right: auto; padding: 1rem 1.4rem 1.2rem; box-sizing: border-box; }
/* Practice Home restricted lines: Show / Hide / Copy as small icons */
.fact-restricted .r-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: #0e7490; cursor: pointer; vertical-align: middle; }
.fact-restricted .r-ic:hover { background: #e6f6f8; }
.fact-restricted .r-ic svg { width: 16px; height: 16px; }
.fact-restricted .r-ic.ok { color: #15803d; border-color: #86efac; }
/* Insurance edit: Doctor · Network status · Application Sent · App Sent Date · Follow Up Date · INN date · Fee schedule */
.ins-edit-grid { grid-template-columns: minmax(130px, 1.1fr) 1fr 1fr .8fr .8fr .8fr 1.2fr; }
@media (min-width: 821px) { .ins-edit-grid { grid-template-columns: minmax(140px, 190px) minmax(120px, 150px) minmax(130px, 160px) minmax(100px, 120px) minmax(100px, 120px) minmax(100px, 120px) minmax(130px, 190px); } }
@media (max-width: 820px) { .ins-edit-grid { grid-template-columns: 1fr 1fr; } }
.ins-plans { white-space: normal; }
/* the 7-field doctor grid (its own class, so an older cached rule can't squeeze it to 5 columns) */
.ins-edit-grid.ins-grid7 { display: grid; grid-template-columns: minmax(130px, 1.3fr) repeat(2, minmax(110px, 1fr)) repeat(3, minmax(96px, .8fr)) minmax(120px, 1.1fr); gap: 6px 8px; align-items: center; justify-content: stretch; }
@media (max-width: 820px) { .ins-edit-grid.ins-grid7 { grid-template-columns: 1fr 1fr; } }
.ins-form .grid2:has([name=negotiates]) { grid-template-columns: 2fr 2fr 1fr 1.2fr; }
@media (max-width: 820px) { .ins-form .grid2:has([name=negotiates]) { grid-template-columns: 1fr 1fr; } }
/* Insurance: the header row stays put while the list scrolls (the table scrolls in its own box, both ways) */
.ins-scroll { overflow: auto; max-height: calc(100vh - 230px); }
.ins-tbl thead th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: 0 1px 0 #e3e7ea; }
.ins-tbl thead th.ins-co, .ins-tbl thead th:first-child { left: 0; z-index: 3; }

/* Office Networks & Fee Schedules: search/filters and the table in one box under the tabs */
.ins-page .ins-box { background: var(--surface, #fff); border: 1px solid #d6dce0; border-top: 0; border-radius: 0 0 10px 10px; box-shadow: var(--shadow); overflow: clip; }
.ins-page .ins-box > .ins-filters.ins-office-only { border: 0; border-bottom: 1px solid #e6eaec; border-radius: 0; box-shadow: none; }
.ins-page .ins-box > .ins-list { border: 0; border-radius: 0; box-shadow: none; margin: 0; }

/* Practice Home → Territory Map: the brand's Google My Maps map */
.ph-terr-open { font-weight: 700; font-size: 14px; }
.ph-terr-frame { position: relative; width: 100%; height: min(70vh, 680px); border: 1px solid #d6dce0; border-radius: 12px; overflow: hidden; background: #eef2f4; }
.ph-terr-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Insurance: Hide Specialty, the Specialty tag on a doctor's column, templates */
.ins-hidespec { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; padding: 0 4px; cursor: pointer; }
.ins-spec { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #ede9fe; color: #5b21b6; font-size: 10px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px; }
.ins-tpl-row { align-items: center; gap: 10px; } .ins-tpl-row b { min-width: 140px; } .ins-tpl-row select { width: auto; margin-left: auto; }
.ins-hidespec { display: inline-flex; padding: 0; }
.ins-hidespec .cred-termed-box { white-space: nowrap; min-height: 42px; }
.ta .ref-tbl .ref-ucr { background: #fffbeb; } .ta .ref-tbl td.ref-ucr.ref-mine { font-weight: 700; }
/* Practice Home: a button to a Google Doc / Sheet / Slides file (opens in Nexus to edit) gets a small colored file mark */
.btn.btn-gdoc { display: inline-flex; align-items: center; gap: 8px; }
.gdoc-ic { flex: none; width: 12px; height: 15px; border-radius: 2px; background: #4285f4; position: relative; }
.gdoc-ic::after { content: ''; position: absolute; left: 3px; right: 3px; top: 5px; height: 5px; border-top: 1.5px solid #fff; border-bottom: 1.5px solid #fff; }
.gdoc-ic-sheet { background: #0f9d58; } .gdoc-ic-slides { background: #f4b400; } .gdoc-ic-form { background: #7248b9; } .gdoc-ic-file { background: #5f6368; }

/* Practice Home: Edit — each part (the notice banner, the sections list, a section being edited) in its own box */
.lp-admin .panel, [data-lp] .panel { background: var(--surface, #fff); border: 1px solid #d6dce0; border-radius: 12px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); }
[data-lp] .panel .editor-head { margin-top: 0; }
.ph-terr-links { margin: 0 0 10px; text-align: right; }
/* Practice Home: Edit — a button with a different link at each office */
.lp-perofc { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; }
.lp-ofc-urls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 12px; padding: 8px 0 4px; }
.lp-ofc-urls .f { margin: 0; } .lp-ofc-urls .f span { font-size: 12px; }
.link-row:has([data-perofc]:not(:checked)) .lp-ofc-urls { display: none; }

/* ================= Practice Home, refreshed look (scoped to the page: .ta.dash) ================= */
.ta.dash { --ph-teal: #0e8f9c; --ph-teal-d: #0b6f79; --ph-line: #e2e8eb; --ph-soft: #f1f8f9; }
/* notice: a slim card with an amber edge */
.ta.dash .notice { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; border-left: 5px solid #f59e0b; border-radius: 12px; padding: 10px 16px; justify-content: flex-start; text-align: left; font-weight: 600; box-shadow: none; }
.ta.dash .notice-icon { background: #f59e0b; color: #fff; border: 0; width: 24px; height: 24px; font-size: 14px; }
/* the office card: white, with a teal band for the name */
.ta.dash .card.teal { background: var(--surface, #fff); border: 1px solid var(--ph-line); border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 8px 28px -18px rgba(14, 60, 70, .45); }
.ta.dash .card.teal > .card-title-row, .ta.dash .card.teal > .card-title { background: linear-gradient(110deg, var(--ph-teal-d), var(--ph-teal) 60%, #22b3bf); }
.ta.dash .card-title-row { justify-content: flex-start; padding: 14px 110px 14px 22px; }
.ta.dash .card-title { color: #fff; text-align: left; font-size: clamp(20px, 2.3vw, 26px); letter-spacing: -.01em; }
.ta.dash .card.teal > .card-title { padding: 12px 22px; font-size: 18px; }
.ta.dash .pid { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.ta.dash .ph-edit a, .ta.dash .ph-edit button, .ta.dash .card-title-row .ph-icon { color: #fff; }
.ta.dash .card-body { border-radius: 0; padding: 18px 22px 20px; }
.ta.dash .practice-body { gap: 22px; }
/* details as label-over-value tiles */
.ta.dash .practice-body .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; align-content: start; }
.ta.dash .practice-body .fact dt, .ta.dash .doctor .fact dt { display: block; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6b7c85; }
.ta.dash .practice-body .fact dt::after, .ta.dash .doctor .fact dt::after { content: none; }
.ta.dash .practice-body .fact dd, .ta.dash .doctor .fact dd { display: block; margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink, #1f2933); }
.ta.dash .practice-map { border-radius: 12px; border-color: var(--ph-line); }
.ta.dash .socials { gap: 8px; }
.ta.dash .soc { background: var(--ph-teal); box-shadow: 0 2px 6px -2px rgba(14, 143, 156, .6); }
.ta.dash .soc.off { background: #dfe6e9; box-shadow: none; }
.ta.dash .map-link { font-weight: 700; color: var(--ph-teal-d); }
/* doctors: one card each, picture first */
.ta.dash .doctors { gap: 14px; padding: 16px; background: var(--ph-soft); }
.ta.dash .doctor { border: 1px solid var(--ph-line); border-radius: 14px; padding: 16px; gap: 16px; justify-content: flex-start; box-shadow: 0 4px 14px -12px rgba(14, 60, 70, .5); }
.ta.dash .doctor .avatar { order: -1; width: 64px; height: 64px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #cfe9ec; }
.ta.dash .doctor .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; flex: 1; }
.ta.dash .doctor .fact.name { grid-column: 1 / -1; }
.ta.dash .doctor .fact.name dd { font-size: 17px; font-weight: 800; }
.ta.dash .dr-role { background: #e0f2f4; color: var(--ph-teal-d); border-radius: 999px; padding: 2px 9px; font-size: 11px; font-weight: 800; }
/* the jump tabs: one row of pills that scrolls sideways */
.ta.dash .ph-jump { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 8px; margin: 0 0 18px; border: 1px solid var(--ph-line); border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); scrollbar-width: thin; box-shadow: 0 6px 20px -16px rgba(14, 60, 70, .5); }
.ta.dash .ph-jump .tab { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: transparent; color: #4b5d66; font-size: 13px; box-shadow: none; }
.ta.dash .ph-jump .tab:hover { background: var(--ph-soft); color: var(--ph-teal-d); }
.ta.dash .ph-jump .tab.on { background: var(--ph-teal); color: #fff; box-shadow: 0 2px 8px -3px rgba(14, 143, 156, .7); }
/* sections: cards with an icon, the title on the left, how many buttons, and the arrow */
.ta.dash .lp { background: var(--surface, #fff); border: 1px solid var(--ph-line); border-radius: 16px; margin-bottom: 12px; box-shadow: 0 6px 22px -18px rgba(14, 60, 70, .45); transition: box-shadow .15s, border-color .15s; }
.ta.dash .lp:not(.collapsed) { border-color: #b8e1e5; box-shadow: 0 10px 30px -18px rgba(14, 100, 110, .55); }
.ta.dash .lp.collapsible .lp-head { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 54px 14px 16px; background: transparent; border-bottom: 1px solid transparent; }
.ta.dash .lp.collapsible:not(.collapsed) .lp-head { border-bottom-color: var(--ph-line); background: linear-gradient(180deg, #f7fcfc, #fff); }
.ta.dash .lp.collapsible .lp-head:hover { background: var(--ph-soft); }
.ta.dash .lp-titles { display: grid; gap: 1px; min-width: 0; flex: 1; }
.ta.dash .lp.collapsible .lp-head h2 { font-size: 17px; font-weight: 800; color: var(--ink, #1f2933); }
.ta.dash .lp-head .sub { font-size: 12.5px; font-weight: 600; color: #6b7c85; }
.ta.dash .lp-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--ic, var(--ph-teal)); background: color-mix(in srgb, var(--ic, var(--ph-teal)) 13%, #fff); }
.ta.dash .lp-ic svg { width: 22px; height: 22px; fill: currentColor; }
.ta.dash .lp-ic-owner { --ic: #b45309; } .ta.dash .lp-ic-docs { --ic: #0e8f9c; } .ta.dash .lp-ic-money { --ic: #15803d; } .ta.dash .lp-ic-people { --ic: #7c3aed; }
.ta.dash .lp-ic-video { --ic: #dc2626; } .ta.dash .lp-ic-forms { --ic: #2563eb; } .ta.dash .lp-ic-shield { --ic: #0f766e; } .ta.dash .lp-ic-heart { --ic: #db2777; } .ta.dash .lp-ic-map { --ic: #ea580c; }
.ta.dash .lp-count { flex: none; min-width: 28px; padding: 3px 9px; border-radius: 999px; background: #eef3f5; color: #4b5d66; font-size: 12px; font-weight: 800; text-align: center; }
.ta.dash .lp .chev { right: 18px; color: #8a9aa3; }
.ta.dash .lp.collapsible .lp-body { background: var(--surface, #fff); padding: 16px 18px 20px; }
/* buttons: tiles in a grid, left-aligned, teal on hover */
.ta.dash .lp .grid3, .ta.dash .lp .stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; max-width: none; }
.ta.dash .lp .cols { max-width: none; gap: 18px 22px; }
.ta.dash .lp .cols .stack { grid-template-columns: 1fr; }
.ta.dash .lp .block h3 { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ph-teal-d); margin: 2px 0 8px; }
.ta.dash .lp .btn { display: flex; align-items: center; gap: 9px; justify-content: flex-start; text-align: left; min-height: 40px; padding: 9px 12px; border-radius: 10px; background: #fff; color: var(--ink, #1f2933); border: 1px solid var(--ph-line); font-size: 13.5px; font-weight: 700; box-shadow: none; text-transform: none; transition: border-color .12s, background .12s, transform .12s; }
.ta.dash .lp a.btn:hover { border-color: var(--ph-teal); background: var(--ph-soft); color: var(--ph-teal-d); transform: translateY(-1px); }
.ta.dash .lp a.btn::after { content: '↗'; margin-left: auto; color: #9fb0b8; font-size: 12px; }
.ta.dash .lp a.btn[href^="#/"]::after { content: '›'; font-size: 16px; }
.ta.dash .lp .btn.off { background: #f7f9fa; color: #8a9aa3; border-style: dashed; cursor: default; }
/* Territory map frame matches */
.ta.dash .ph-terr-frame { border-radius: 12px; border-color: var(--ph-line); }
@media (max-width: 720px) {
  .ta.dash .practice-body .facts, .ta.dash .doctor .facts { grid-template-columns: 1fr; }
  .ta.dash .card-title-row { padding-right: 80px; }
}
/* Office Details: the map sits top right at 4:3 and the details flow beside it, then fill the full width below it */
.ta.dash .practice-body { display: flow-root; }
.ta.dash .practice-body .practice-map-wrap { float: right; width: calc(50% - 12px); min-height: 0; margin: 0 0 16px 0; }   /* the right two of the four detail columns (their 22px gap is the space beside it) */
.ta.dash .practice-body .map-row { min-height: 0; flex: none; align-items: flex-start; }
.ta.dash .practice-body .practice-map { flex: 1; min-height: 0; aspect-ratio: 4 / 3; height: auto; }
.ta.dash .practice-body .facts { display: block; align-content: normal; margin-right: -22px; }   /* align-content would make it its own box beside the map */
.ta.dash .practice-body .facts > .fact { display: inline-block; vertical-align: top; width: calc(25% - 22px); min-width: 230px; margin: 0 22px 14px 0; overflow-wrap: anywhere; }   /* four across below the map, two beside it */
.ta.dash .practice-body .facts > .fact dd { font-size: 14px; }
@media (max-width: 820px) {
  .ta.dash .practice-body .practice-map-wrap { float: none; width: auto; margin: 0 0 16px; }
  .ta.dash .practice-body .facts > .fact { width: calc(50% - 14px); margin-right: 10px; }
}
@media (max-width: 520px) { .ta.dash .practice-body .facts > .fact { width: 100%; margin-right: 0; } }
.ta.dash .doctor .fact dd { overflow-wrap: break-word; } .ta.dash .doctor .facts > .fact:last-child { grid-column: 1 / -1; }
.ta.dash .ph-jump { flex-wrap: wrap; overflow: visible; justify-content: center; row-gap: 4px; }
/* Practice Home: Edit — a section's Title, Subtitle and Layout on one line */
.lp-sec-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px 16px; align-items: start; max-width: 1100px; }
.lp-sec-fields .f > span { display: block; }
.lp-sec-fields .check { white-space: nowrap; margin-top: 8px; }
@media (max-width: 800px) { .lp-sec-fields { grid-template-columns: 1fr; } }
/* Practice Home in Edit: a bar on top, then the office's lines (👁 to hide or show), then the editor */
.ph-editbar { position: sticky; top: calc(var(--hdrh, 0px) + 6px); z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: #0b6f79; color: #fff; box-shadow: 0 10px 26px -16px rgba(11, 111, 121, .9); }
.ph-editbar b { font-size: 15px; } .ph-editbar span { font-size: 13.5px; opacity: .95; }
.ph-editbar .btn { background: #fff; color: #0b6f79; border: 0; font-weight: 800; }
.ph-editor .panel { background: var(--surface, #fff); border: 1px solid #d6dce0; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; box-shadow: 0 4px 18px -14px rgba(24, 40, 47, .3); }
.ph-editor .panel .editor-head { margin-top: 0; }
/* Practice Home: click a detail to copy it (like Provider Numbers) */
.fact .fcopy { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: copy; }
.fact .fcopy:hover { color: var(--teal-ink, #0b6f79); text-decoration: underline dotted; }
.fact .fcopy.copied::after { content: 'Copied'; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 800; }

/* Practice Home: ✎ on each section opens its editor in a popup */
.ta.dash .lp { position: relative; }
.ta.dash .lp.has-edit.collapsible .lp-head { padding-right: 96px; }
.ta.dash .lp-edit { position: absolute; top: 34px; right: 54px; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: #8a9aa3; cursor: pointer; line-height: 0; }
.ta.dash .lp-edit svg { width: 18px; height: 18px; }
.ta.dash .lp-edit:hover { color: var(--ph-teal-d, #0b4f55); background: var(--ph-soft, #eef8f9); border-color: var(--ph-line, #d6e6e8); }
.ta.dash .lp.plain .lp-edit { top: 22px; right: 12px; }
.ph-icon { border: 0; cursor: pointer; }
.ph-dlg .dlg-body { max-height: calc(100vh - 140px); }
.ph-dlg .panel { box-shadow: none; border: 0; padding: 0; margin: 0 0 1rem; }
.ph-dlg .editor-head { position: sticky; top: 0; z-index: 2; background: var(--surface, #fff); padding: .4rem 0; }
.ph-lines { display: grid; gap: 2px; margin-bottom: .8rem; }
.ph-line { display: grid; grid-template-columns: auto minmax(120px, 200px) 1fr; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.ph-line:hover { background: var(--sunken, #f3f5f6); }
.ph-line-l { font-weight: 600; }
.ph-line-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-line-h { font-size: 14px; margin: .8rem 0 .3rem; }

/* Practice Home: ✎ on the notice banner (an empty, dashed one shows to editors only) */
.ta.dash .notice { position: relative; padding-right: 52px; }
.notice-edit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: #b45309; cursor: pointer; line-height: 0; }
.notice-edit svg { width: 18px; height: 18px; }
.notice-edit:hover { background: #fef3c7; border-color: #fde68a; }
.ta.dash .notice.notice-empty { background: transparent; border: 1px dashed #e5d29a; color: #8a6d2b; font-weight: 500; font-size: 13px; }

/* Office Networks: + Card questions & requests */
.ins-req { padding: 10px 14px; margin: 8px 0; }
.ins-req > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ins-req > summary .grow { flex: 1; }
.ins-rq-n { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef2f4; color: #475569; }
.ins-rq-n.on { background: #fff4e5; color: #9a5b00; font-weight: 700; }
.ins-rq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin: 8px 0; }
.ins-rq { border: 1px solid var(--rule, #dfe5e8); border-radius: 12px; padding: 10px 12px; background: var(--surface, #fff); display: grid; gap: 4px; }
.ins-rq.done { opacity: .6; }
.ins-rq header { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.ins-rq-kind { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.ins-rq-kind.q { background: #e8f0fe; color: #1d4ed8; } .ins-rq-kind.u { background: #f3e8ff; color: #6b21a8; }
.ins-rq-st { margin-left: auto; font-size: 12px; color: #64748b; }
.ins-rq-text { margin: 0; white-space: pre-line; }
.ins-rq-reply { background: #f0faf4; border-radius: 8px; padding: 6px 8px; white-space: pre-line; }
.ins-rq-act { display: flex; gap: 12px; }
.ins-rq-act .danger { color: #b42318; }
.ins-tbl .ins-ask { margin-left: 8px; font-size: 12px; }
.ins-rq-edit { margin: 6px 0; padding: 14px 16px; border: 1px solid #dfe5e8; border-radius: 12px; background: #fff; }
/* + Card: Type, Insurance company and Doctor on one row, the text under them, the buttons at the right */
.ins-rq-edit .ins-rq-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; margin-bottom: 10px; }
.ins-rq-edit label.f { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.ins-rq-edit label.f > span { font-size: 13px; font-weight: 700; }
.ins-rq-edit select, .ins-rq-edit textarea { font-size: 14px; padding: 8px 10px; min-height: 0; height: auto; width: 100%; box-sizing: border-box; }
.ins-rq-edit select { height: 38px; padding-top: 0; padding-bottom: 0; }
.ins-rq-edit textarea { min-height: 84px; resize: vertical; }
.ins-rq-edit label.f:focus-within { outline: none; box-shadow: none; }
.ins-rq-edit .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ins-rq-edit .check { margin-top: 8px; }
@media (max-width: 760px) { .ins-rq-edit .ins-rq-row { grid-template-columns: 1fr; } }
/* Approved Codes & Fees: categories fold */
.ref-tbl tr.ref-fold th { cursor: pointer; user-select: none; }
.ref-tbl tr.ref-fold:hover th { filter: brightness(.97); }
.ref-chev { display: inline-block; width: 0; height: 0; margin-right: 8px; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; transform: rotate(90deg); transition: transform .15s; vertical-align: 1px; }
.ref-tbl tr.ref-fold.shut .ref-chev { transform: none; }
.ref-gn { font-weight: 600; opacity: .65; font-size: 12px; margin-left: 4px; }
/* Release Notes: a month's own sub headings, edited in place */
.rn-subhead { display: flex; gap: 6px; align-items: center; margin: 14px 0 6px; }
.rn-subhead .rn-sh-icon { width: 3.2rem; text-align: center; font-size: 16px; }
.rn-subhead .rn-sh-title { flex: 1; font-weight: 700; font-size: 15px; }
