/* parity11.css — Parity 11 (2026-10-17): the sectioned
 * Settings page (Billdr's left-nav skeleton), the Team & roles
 * grid, the settings-admin section bodies, and the Contacts
 * View-profile sheet. Loaded last among the parity sheets. */

/* ---------- Settings layout: left nav + one pane ---------- */
/* wave130-setscroll2 (2026-10-25, Hana): the wave128 cap assumed the
 * nav starts at the top of the window. It doesn't — the page head
 * (~100px + margins) and the app padding put its natural top at
 * 152px (wide) / 210px (≤900px top-bar mode), so the old cap let the
 * box hang 120–178px below the fold and the last two sections
 * (Backup & access, Deleted items) could never be scrolled into
 * view — Micheal: "it stops at Import data". The caps now subtract
 * the measured natural top + 16px. Proven in a rendered probe with
 * the real page chrome: dead slice 120px → 0 at 1440×900 and
 * 178px → 0 at 850×800, all 35 sections reachable. */
.set-layout { display: flex; gap: 20px; align-items: flex-start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; min-width: 208px; position: sticky; top: 12px; max-height: calc(100vh - 168px); max-height: calc(100dvh - 168px); overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; }
.set-navbtn { text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; color: inherit; cursor: pointer; }
.set-navbtn:hover { background: rgba(127, 140, 170, .14); }
.set-navbtn.active { background: rgba(127, 140, 170, .22); font-weight: 600; }
.set-panes { flex: 1; min-width: 0; }
.set-pane > .set-card:first-child { margin-top: 0; }
.set-fieldlabel { display: block; font-weight: 600; margin-bottom: 6px; }
@media (max-width: 760px) {
  .set-layout { flex-direction: column; }
  .set-nav { flex-direction: row; flex-wrap: wrap; min-width: 0; position: static; }
}

/* ---------- settings-admin bodies ---------- */
.sa-sched-row, .sa-hol-add, .sr-addrow { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.sa-sched-row input[type="text"] { flex: 1; min-width: 140px; }
.sa-sched-row input[type="number"] { width: 90px; }
.sa-color-row { display: flex; gap: 8px; align-items: center; }
.sa-color-row input[type="color"] { width: 52px; height: 34px; padding: 2px; }
.sa-wd-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.sa-wd-btn { border: 1px solid rgba(127, 140, 170, .45); background: none; border-radius: 999px; padding: 5px 12px; font: inherit; color: inherit; cursor: pointer; }
.sa-wd-btn.active { background: #2c4a8a; border-color: #2c4a8a; color: #fff; }
.sa-hol-year { font-weight: 700; margin: 12px 0 4px; }
.sa-hol-pager { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.sa-hol-yearnow { font-weight: 700; font-size: 15px; min-width: 52px; text-align: center; }
.sa-plan-price { font-size: 15px; margin: 4px 0 10px; }
.sa-plan-price b { font-size: 19px; }
.sa-plan-list { list-style: none; margin: 0; padding: 0; }
.sa-plan-list li { padding: 4px 0 4px 24px; position: relative; }
.sa-plan-list li::before { content: '✓'; position: absolute; left: 2px; font-weight: 700; color: #8a6d1f; }
/* wave649: the plan tiers — three cards side by side, Core marked. */
.sa-bill-row { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; }
.sa-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0 10px; }
@media (max-width: 900px) { .sa-tiers { grid-template-columns: 1fr; } }
.sa-tier { position: relative; border: 1px solid #e3e3ea; border-radius: 12px; padding: 14px 16px; background: #fbfbfd; }
.sa-tier.pop { border: 2px solid #7c5cff; background: #f7f4ff; }
.sa-tier-badge { position: absolute; top: -10px; right: 12px; background: #7c5cff; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.sa-tier h3 { margin: 0 0 2px; font-size: 16px; }
.sa-tier-blurb { margin: 0 0 8px; font-size: 12.5px; }
.sa-tier-price { margin: 0 0 4px; font-size: 14px; }
.sa-tier-price b { font-size: 24px; }
.sa-tier-seats { margin: 0 0 8px; font-size: 12.5px; font-weight: 600; }
/* wave645: the row was a plain flex row, so a longer holiday name
 * pushed its date and buttons right — Edit/Delete landed in a
 * different place on every row. Fixed tracks now: name and date
 * columns are the same width on every row, buttons line up. */
.sa-hol-row { display: grid; grid-template-columns: minmax(180px, 250px) 110px auto auto; gap: 10px; align-items: center; padding: 4px 0; }
.sa-hol-name { font-weight: 600; }
.sa-check-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.sa-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.sa-cc-list { max-height: 220px; overflow: auto; border: 1px solid rgba(127, 140, 170, .3); border-radius: 8px; padding: 8px 10px; }
.sa-dl-row { display: flex; gap: 12px; align-items: center; padding: 5px 0; border-bottom: 1px solid rgba(127, 140, 170, .18); flex-wrap: wrap; }
.sa-dl-label { min-width: 210px; font-weight: 600; }
.sa-dl-type { min-width: 70px; }
.sa-dl-add { display: flex; gap: 8px; margin-top: 8px; }
.sa-template-list { display: flex; flex-direction: column; }
.sa-template-row { display: flex; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(127, 140, 170, .18); flex-wrap: wrap; }
.sa-template-name { min-width: 190px; font-weight: 600; }
.sa-notif-role { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-weight: 600; }
.sa-notif-table td input[type="checkbox"] { width: 17px; height: 17px; }
.sa-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Team & roles ---------- */
.sr-enforce { border-left: 3px solid #c9a227; padding-left: 10px; }
.sr-rolebar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.sr-rolebtn { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 1px solid rgba(127, 140, 170, .45); background: none; border-radius: 10px; padding: 7px 14px; font: inherit; font-weight: 600; color: inherit; cursor: pointer; }
.sr-rolebtn.active { border-color: #c9a227; box-shadow: 0 0 0 1px #c9a227 inset; }
.sr-rolesub { font-size: 12px; font-weight: 400; opacity: .75; }
.sr-grid select { max-width: 210px; }
.sr-grid td input[type="checkbox"] { width: 17px; height: 17px; }
.sr-addrole { margin-top: 18px; border-top: 1px solid rgba(127, 140, 170, .25); padding-top: 12px; }
/* wave647: the Add-a-role form moved to the TOP of Team & roles,
 * directly under the role cards — at the bottom of the permission
 * grid it was effectively invisible ("cant add new profiles"). */
.sr-addrole-top { margin-top: 2px; border-top: 0; padding-top: 0; border-bottom: 1px solid rgba(127, 140, 170, .25); padding-bottom: 12px; margin-bottom: 14px; }
body.skin-billdr #app .sr-addrole-top { border-bottom-color: var(--ds-line); }

/* ---------- Contacts View-profile sheet ---------- */
.cp-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; justify-content: flex-end; }
.cp-card { height: 100%; overflow: auto; }
.cp-topbar { display: flex; justify-content: space-between; align-items: center; }
.cp-topbar-label { text-transform: uppercase; }
.cp-head { display: flex; align-items: center; }
.cp-photo-slot .cp-chip, .cp-photo { width: 64px; height: 64px; border-radius: 50%; }
.cp-photo { object-fit: cover; display: block; }
.cp-photo-slot .cp-chip { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.cp-photo-person .avatar-chip { width: 64px; height: 64px; font-size: 22px; }
.cp-archived { margin-top: 4px; }
.cp-row { display: flex; }
.cp-val { min-width: 0; overflow-wrap: anywhere; }
.cp-projects { display: flex; flex-direction: column; }
.cp-proj { display: flex; flex-direction: column; align-items: flex-start; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.cp-note { margin-top: 8px; }

/* ======================= DW1 · Settings (design wave, 2026-10-17) ======================= */
/* Capture §12: two columns — a LEFT nav of stacked white cards (bold
 * navy label; active = 4px gold left accent, indigo's seat), and a
 * RIGHT panel of stacked white cards (h2 bold navy; small bold-navy
 * labels; full-width inputs on a light grey-blue fill; a small gold
 * Save). Overrides the Wave 2 set-* rules in styles.css (not this
 * file's to edit) by scope. The .cp-* profile-sheet rules above are
 * another sheet's to override and are left alone. */
body.skin-billdr #app .set-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
body.skin-billdr #app .set-nav { gap: 6px; min-width: 0; top: 16px; max-height: calc(100vh - 168px); max-height: calc(100dvh - 168px); }
body.skin-billdr #app .set-navbtn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 48px; justify-content: center;
  background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-r); padding: 12px 16px;
  font-size: var(--ds-fs); font-weight: 700; color: var(--ds-navy); line-height: 1.3; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
body.skin-billdr #app .set-navbtn:hover { background: var(--ds-card); border-color: var(--ds-line-strong); }
body.skin-billdr #app .set-navbtn.active { background: var(--ds-card); font-weight: 700; box-shadow: inset 4px 0 0 var(--ds-gold); }
body.skin-billdr #app .set-navbtn:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app .set-navbtn.active:focus-visible { box-shadow: inset 4px 0 0 var(--ds-gold), var(--ds-focus); }
/* Ready for the optional markup (change notes): a grey subtitle and
 * a Beta / New badge per nav card. Nothing renders until it exists. */
body.skin-billdr #app .set-navsub { display: block; font-size: var(--ds-fs-xs); font-weight: 500; color: var(--ds-muted); }
body.skin-billdr #app .set-navbadge { display: inline-flex; margin-left: 8px; padding: 1px 8px; border-radius: var(--ds-r-pill); font-size: 11px; font-weight: 600; vertical-align: 1px; background: var(--ds-info-bg); color: var(--ds-info-ink); }
body.skin-billdr #app .set-navbadge.new { background: var(--ds-ok-bg); color: var(--ds-ok-ink); }

/* The right panel: stacked white cards, whitespace between them. */
body.skin-billdr #app .set-pane:not(.hidden) { display: flex; flex-direction: column; gap: 16px; }
body.skin-billdr #app .set-card { background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-r); box-shadow: none; padding: 24px; margin: 0; }
body.skin-billdr #app .set-card h2 { font-size: 20px; font-weight: 700; color: var(--ds-navy); margin: 0 0 6px; letter-spacing: -.01em; }
body.skin-billdr #app :is(.set-sub, .set-lede) { font-size: var(--ds-fs-sm); color: var(--ds-muted); margin: 0 0 18px; max-width: 80ch; }
body.skin-billdr #app .set-name { color: var(--ds-navy); }
body.skin-billdr #app .set-avatar { background: var(--ds-fill); }
/* Field labels: small, bold, navy. */
body.skin-billdr #app .set-form label,
body.skin-billdr #app .set-fieldlabel { font-size: var(--ds-fs-sm); font-weight: 700; color: var(--ds-navy); }
body.skin-billdr #app .set-form label { margin: 16px 0 0; }
body.skin-billdr #app .set-form > label:first-child { margin-top: 0; }
body.skin-billdr #app .set-fieldlabel { display: block; margin: 20px 0 8px; }
/* Inputs: full width, light grey-blue fill, rounded, no hard frame. */
body.skin-billdr #app .set-card :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], input:not([type]), select, textarea) {
  min-height: var(--ds-ctl); padding: 0 12px; font-size: var(--ds-fs); color: var(--ds-ink);
  background-color: var(--ds-fill); border: 1px solid transparent; border-radius: var(--ds-r-ctl); box-shadow: none;
}
body.skin-billdr #app .set-card select:not([multiple]):not([size]) { padding-right: 34px; }
body.skin-billdr #app .set-card textarea { padding: 10px 12px; line-height: 1.5; }
body.skin-billdr #app .set-card :is(input, select, textarea):hover:not(:focus) { border-color: var(--ds-line); }
body.skin-billdr #app .set-card :is(input, select, textarea):focus { outline: none; background-color: var(--ds-card); border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
/* wave68-dnd (settings fix, 2026-10-23): checkboxes and radios are
 * NOT full-width fields — the rule below stretched the Client
 * portal widget's "Button is on" checkbox into a full-width gold
 * bar and pushed its label off the card (Micheal's screenshot). */
body.skin-billdr #app .set-form > label > :is(input:not([type="file"]):not([type="color"]):not([type="checkbox"]):not([type="radio"]), select, textarea) { display: block; width: 100%; margin-top: 6px; }
body.skin-billdr #app .set-form .set-filelabel input[type="file"] { font-size: var(--ds-fs-sm); font-weight: 400; color: var(--ds-ink); }
body.skin-billdr #app .set-filenote { font-weight: 400; color: var(--ds-muted); }
/* Billdr's small gold Save pill (32px); the card's other actions match. */
body.skin-billdr #app .set-actions { gap: 10px; margin-top: 20px; }
body.skin-billdr #app .set-actions .btn { min-height: var(--ds-ctl-sm); padding: 0 14px; font-size: var(--ds-fs-sm); border-radius: var(--ds-r-sm); }
body.skin-billdr #app .set-err { color: var(--ds-bad-ink); }
body.skin-billdr #app .set-note { color: var(--ds-muted); }
/* Not-live rows stay muted (dashed rule = "not here yet"). */
body.skin-billdr #app .set-soonrow { color: var(--ds-muted); border-bottom-color: var(--ds-line); font-size: var(--ds-fs-sm); }
body.skin-billdr #app .set-soonlabel { color: var(--ds-ink); }
body.skin-billdr #app .set-soon { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ds-faint); }
body.skin-billdr #app .set-datarow { border-bottom-color: var(--ds-hair); padding: 12px 0; font-size: var(--ds-fs-sm); }
body.skin-billdr #app .set-datakey { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--ds-muted); }

/* -- settings-admin bodies -- */
body.skin-billdr #app .set-card label.sa-check { display: flex; font-weight: 400; font-size: var(--ds-fs); color: var(--ds-ink); margin: 0; gap: 10px; align-items: center; }
body.skin-billdr #app .sa-check-list { gap: 10px; margin-bottom: 10px; }
body.skin-billdr #app .sa-cc-list { border-color: var(--ds-line); border-radius: var(--ds-r-ctl); padding: 12px 14px; }
/* Selection boxes in the admin bodies and the two grids: drawn, gold. */
body.skin-billdr #app :is(.sa-check, .sa-notif-table td, .sr-grid td, .sa-dl-row) input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none; cursor: pointer;
  width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--ds-line-strong); background: var(--ds-card);
  transition: background-color .12s, border-color .12s;
}
body.skin-billdr #app :is(.sa-check, .sa-notif-table td, .sr-grid td, .sa-dl-row) input[type="checkbox"]:checked {
  border-color: var(--ds-gold-strong);
  background: var(--ds-gold-strong) no-repeat center / 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.6l5 5L19.5 6.6'/%3E%3C/svg%3E");
}
body.skin-billdr #app :is(.sa-check, .sa-notif-table td, .sr-grid td, .sa-dl-row) input[type="checkbox"]:disabled { opacity: .5; cursor: default; }
body.skin-billdr #app :is(.sa-check, .sa-notif-table td, .sr-grid td, .sa-dl-row) input[type="checkbox"]:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app .sa-wd-row { gap: 8px; }
body.skin-billdr #app .sa-wd-btn { min-height: var(--ds-ctl-sm); padding: 0 14px; border: 1px solid var(--ds-line-strong); background: var(--ds-card); color: var(--ds-ink); font-size: var(--ds-fs-sm); font-weight: 500; }
body.skin-billdr #app .sa-wd-btn:hover { border-color: var(--ds-gold); }
body.skin-billdr #app .sa-wd-btn.active { background: var(--ds-gold); border-color: var(--ds-gold); color: var(--ds-on-gold); font-weight: 600; }
body.skin-billdr #app .sa-wd-btn:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app :is(.sa-sched-row, .sa-hol-add, .sr-addrow) { gap: 10px; margin-bottom: 8px; }
body.skin-billdr #app .sa-hol-year { color: var(--ds-navy); margin: 16px 0 6px; }
body.skin-billdr #app :is(.sa-hol-name, .sa-dl-label, .sa-template-name) { color: var(--ds-navy); font-weight: 700; }
body.skin-billdr #app :is(.sa-dl-row, .sa-template-row) { border-bottom-color: var(--ds-hair); padding: 10px 0; }
body.skin-billdr #app .sa-notif-role { font-size: var(--ds-fs); color: var(--ds-navy); }
body.skin-billdr #app .sa-color-row input[type="color"] { width: 52px; min-height: var(--ds-ctl); padding: 3px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl); background: var(--ds-card); }
/* Shared table look for the two grids; ticks centred. */
body.skin-billdr #app :is(table.sa-notif-table, table.sr-grid) td { padding-top: 16px; padding-bottom: 16px; }
body.skin-billdr #app :is(table.sa-notif-table, table.sr-grid) td:first-child { font-weight: 600; color: var(--ds-navy); }

/* -- Team & roles -- */
body.skin-billdr #app .sr-enforce { border-left: 0; padding: 12px 16px; background: var(--ds-warn-bg); border: 1px solid var(--ds-warn-line); border-radius: var(--ds-r-ctl); color: var(--ds-ink); }
body.skin-billdr #app .sr-rolebar { gap: 10px; margin: 14px 0 16px; }
body.skin-billdr #app .sr-rolebtn { border: 1px solid var(--ds-line); background: var(--ds-card); border-radius: var(--ds-r-ctl); padding: 10px 16px; color: var(--ds-navy); font-weight: 700; }
body.skin-billdr #app .sr-rolebtn:hover { border-color: var(--ds-line-strong); }
/* Billdr's checked option row: accent border + pale tint (gold here). */
body.skin-billdr #app .sr-rolebtn.active { border-color: var(--ds-gold); box-shadow: inset 0 0 0 1px var(--ds-gold); background: var(--ds-gold-tint); }
body.skin-billdr #app .sr-rolebtn:focus-visible { outline: none; box-shadow: var(--ds-focus); }
body.skin-billdr #app .sr-rolesub { color: var(--ds-muted); opacity: 1; font-weight: 500; }
body.skin-billdr #app .sr-addrole { border-top-color: var(--ds-line); margin-top: 24px; padding-top: 18px; }

@media (max-width: 900px) {
  body.skin-billdr #app .set-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  body.skin-billdr #app .set-layout { display: flex; flex-direction: column; }
  body.skin-billdr #app .set-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  body.skin-billdr #app .set-navbtn { width: auto; min-height: 40px; padding: 8px 12px; font-size: var(--ds-fs-sm); }
  body.skin-billdr #app .set-card { padding: 18px 16px; }
}

/* ======================= DW2 P11 · Settings ======================= */
/* Nav subtitles + badges (decision 9) and the Settings search. The
 * light-skin look of .set-navsub / .set-navbadge is the DW1 block
 * above; these plain rules give them a shape in Navy too. */
.set-navlabel { display: block; }
.set-navsub { display: block; font-size: 12px; font-weight: 400; opacity: .72; margin-top: 1px; }
.set-navbadge { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid currentColor; opacity: .85; vertical-align: 1px; }
.set-search { margin-bottom: 6px; }
.set-search input { width: 100%; box-sizing: border-box; }
.set-search-empty { font-size: 13px; padding: 4px 4px 0; }
body.skin-billdr #app .set-navbadge { border: 0; opacity: 1; }
body.skin-billdr #app .set-search input {
  min-height: var(--ds-ctl); padding: 0 12px; font-size: var(--ds-fs-sm); color: var(--ds-ink);
  background: var(--ds-card); border: 1px solid var(--ds-line); border-radius: var(--ds-r-ctl);
}
body.skin-billdr #app .set-search input:focus { outline: none; border-color: var(--ds-gold); box-shadow: var(--ds-focus); }
body.skin-billdr #app .set-search-empty { color: var(--ds-muted); font-size: var(--ds-fs-xs); }
@media (max-width: 760px) {
  .set-search { flex: 1 1 100%; }
  body.skin-billdr #app .set-navsub { display: none; }
}
/* With subtitles the nav outgrows a laptop screen: the sticky nav
 * scrolls inside itself so every section stays reachable.
 * wave130-setscroll2 (2026-10-25): THESE are the caps that actually
 * win the cascade (this block loads last) — wave128 edited the two
 * earlier rules and changed nothing on screen. The caps now
 * subtract the nav's measured natural top (152px wide / 210px in
 * the ≤900px top-bar mode) + 16px, per the note at the file top. */
@media (min-width: 761px) {
  .set-nav { max-height: calc(100vh - 168px); max-height: calc(100dvh - 168px); overflow-y: auto; overscroll-behavior: contain; }
  body.skin-billdr #app .set-nav { max-height: calc(100vh - 168px); max-height: calc(100dvh - 168px); padding: 2px 4px 2px 2px; }
}
/* Row-level actions added beside existing Save buttons. */
.sa-inline-msg { margin-top: 6px; }

/* ======================= wave109-setnav (2026-10-25, Micheal) =======================
 * "some of the words in the settings overlap can you make it fit" —
 * his screenshot: the Expenses / Field ops titles sat ON TOP of the
 * card above's subtitle, and their own subtitles spilled below their
 * cards. Root cause: .set-nav is a flex COLUMN with a max-height, and
 * its buttons carried the default flex-shrink: 1 with min-height: 48px
 * — so instead of the nav scrolling inside itself (the block above),
 * every card shrank to 48px and its centred content (label + a 2–3
 * line subtitle, 60–96px tall) spilled out top and bottom onto its
 * neighbours. Fix: the cards (and the search row) never shrink; each
 * card grows to fit its words and the nav scrolls, as designed.
 * Rendered probe over the full cascade with all 33 real sections
 * reproduced it first (every card 48px, spills up to 10px top and
 * bottom at desktop width, worse narrower) and reads zero spill
 * after: cards 63–96px, nav scrollHeight 2,631 against its 868 box. */
body.skin-billdr #app .set-navbtn { flex: none; }
body.skin-billdr #app .set-search { flex: none; }
body.skin-billdr #app .set-navsub { line-height: 1.35; width: 100%; }

/* wave130-setscroll2 (2026-10-25): the ≤900px top-bar mode cap, placed
 * last in the file so it wins the cascade in the 761–900px band where
 * the min-width:761px block above also applies. Natural top there
 * measures 210px (58px bar + 18px app padding + the 100px page head
 * + margins); the cap subtracts that + 16px. */
@media (max-width: 900px) {
  .set-nav { max-height: calc(100vh - 226px); max-height: calc(100dvh - 226px); }
  body.skin-billdr #app .set-nav { max-height: calc(100vh - 226px); max-height: calc(100dvh - 226px); }
}

/* wave225-codocs (2026-10-29): the Company documents card's certificates block
 * (Settings → Business → Documents) — the WSIB + liability records from
 * company_credentials, the same ones Safety → Company holds. */
.sa-codocs { margin-top: 18px; border-top: 1px solid var(--ds-line); padding-top: 14px; }
.sa-codoc { padding: 10px 0; border-bottom: 1px dashed var(--ds-line); }
.sa-codoc:last-of-type { border-bottom: 0; }
.sa-codoc-t { margin: 0; font-weight: 600; color: var(--ds-ink); }
.sa-codoc-meta { margin: 2px 0 0; }
.sa-codoc .set-actions { margin-top: 8px; }
label.sa-codoc-rep { cursor: pointer; }

/* wave652 (2026-11-13): branding batch — social brand icons + his own
 * platforms, accent quick picks, the certificates & awards editor,
 * the signature replace door. */
.sa-swatches { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sa-swatch-label { font-size: var(--ds-fs-sm); color: var(--ds-muted, #6b7280); }
.sa-swatch { width: 30px; height: 30px; border-radius: 9px; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.sa-swatch:hover { outline: 2px solid var(--ds-gold, #c9a227); outline-offset: 1px; }
.brd-social-ic { display: inline-flex; vertical-align: -5px; margin-right: 2px; }
.brd-social-urlcell { display: flex; gap: 8px; align-items: center; }
.brd-social-urlcell input[type="url"] { flex: 1; }
.brd-social-name { border: 0; border-bottom: 1px dashed var(--ds-line); background: transparent; font: inherit; padding: 2px; max-width: 170px; }
.brd-social-addlabel { font-weight: 600; color: var(--ds-ink); }
.sa-codoc-head { display: flex; align-items: center; gap: 10px; }
.sa-codoc-badge { height: 30px; width: auto; object-fit: contain; }
.sa-codoc-expired { color: #8f2a2a; border: 1px solid #e3b6b6; background: #fbf1f1; border-radius: 999px; padding: 1px 8px; font-size: .78rem; font-weight: 600; }
.sa-codoc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; margin-top: 10px; padding: 12px; border: 1px solid var(--ds-line); border-radius: var(--ds-r-sm, 10px); background: var(--ds-fill, #f8f6fb); }
.sa-codoc-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--ds-fs-sm); }
.sa-codoc-form .set-actions { grid-column: 1 / -1; }
.brd-award-row { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; border-bottom: 1px dashed var(--ds-line); }
.brd-award-row:last-child { border-bottom: 0; }
.brd-sig-replace textarea { width: 100%; margin-top: 10px; font-family: ui-monospace, Menlo, monospace; font-size: .8rem; }
