/* The management firm's screens (account-types slice 6, firm.js, mockup 01-pm-home): the property switcher and its
   chips, the building page, one statement by building and unit, a member's limit and buildings. Look v2 tokens only
   (base.css); every rule sits under a firm class, so nothing here reaches another shape's screens. */

/* ---------------------------------------------------------------- the switcher, over Home, Jobs, Insights and Money */
.v2.fb { padding: 12px var(--v-gut) 0; max-width: var(--v-content); }
.v2.fb[hidden] { display: none; }
.v2 .fb-row { display: flex; align-items: center; gap: 12px; }
.v2 .fb-pick { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px;
  padding: 6px 14px; border: 0; border-radius: var(--v-r-ctl); background: var(--v-white); color: var(--v-ink);
  box-shadow: inset 0 0 0 1px var(--v-field); text-align: left; cursor: pointer; }
.v2 .fb-pick:hover { box-shadow: inset 0 0 0 1px var(--v-ink); }
.v2 .fb-pick .icon { flex: none; color: var(--v-mute); }
.v2 .fb-pick-m { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; }
.v2 .fb-pick-t { font-size: 16px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.v2 .fb-pick-s { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); white-space: nowrap; }
.v2 .fb-page { flex: none; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; line-height: 20px; font-weight: 600;
  color: var(--v-ink); text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
/* the chips scroll sideways on a phone and never push the page wider (nothing sideways at 320) */
.v2 .fb-chips { display: flex; gap: 8px; margin: 12px calc(-1 * var(--v-gut)) 0; padding: 0 var(--v-gut) 2px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v2 .fb-chips::-webkit-scrollbar { display: none; }
.v2 .fb-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 0; border-radius: 18px;
  background: var(--v-white); color: var(--v-ink); box-shadow: inset 0 0 0 1px var(--v-hair-2); font-size: 14px; line-height: 20px;
  font-weight: 600; white-space: nowrap; cursor: pointer; }
.v2 .fb-chip:hover { box-shadow: inset 0 0 0 1px var(--v-field); }
.v2 .fb-chip em { flex: none; font-style: normal; font-weight: 500; color: var(--v-mute); }
/* a chip never runs past its row: the name is clipped with an ellipsis, the count stays (Codex full review D3; a building
   name may be 200 characters) */
.v2 .fb-chip { max-width: min(100%, 320px); min-width: 0; }
.v2 .fb-chip-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2 .fb-chip.on { background: var(--v-ink); color: var(--v-white); box-shadow: none; }
.v2 .fb-chip.on em { color: #C9CDD2; }
/* a 44 px target on a touch screen */
@media (pointer: coarse) { .v2 .fb-chip { min-height: 44px; border-radius: 22px; } }
@media (min-width: 1024px) {
  .v2.fb { padding: 24px 48px 0; }
  .v2 .fb-row { max-width: 480px; }
  .v2 .fb-chips { margin: 12px 0 0; padding: 0; flex-wrap: wrap; overflow: visible; }
  .v2 .fb-pick { min-height: 44px; }
}
/* side by side once the main column has room: the switcher, then the chips on its line */
@media (min-width: 1280px) {
  .v2 .fb-in { display: flex; align-items: center; gap: 16px; }
  .v2 .fb-row { flex: none; width: 400px; max-width: none; }
  .v2 .fb-chips { flex: 1; min-width: 0; margin: 0; }
}
/* the page under the switcher keeps one rhythm: its own top padding is the switcher's gap */
.v2.fb:not([hidden]) + #main > .v2.home-v2, .v2.fb:not([hidden]) + #main > .v2.hm { padding-top: 4px; }
.v2.fb:not([hidden]) + #main > .v2.v-lists, .v2.fb:not([hidden]) + #main > .v2.v-money { padding-top: 8px; }
@media (min-width: 1024px) {
  .v2.fb:not([hidden]) + #main > .v2.home-v2, .v2.fb:not([hidden]) + #main > .v2.hm, .v2.fb:not([hidden]) + #main > .v2.v-lists, .v2.fb:not([hidden]) + #main > .v2.v-money { padding-top: 16px; }
}

/* the list in its sheet: one row a building, the pick ticked, a search field over a long list */
.v2 .fb-find { width: 100%; min-height: 48px; margin: 4px 0 8px; padding: 0 14px; border: 0; border-radius: var(--v-r-ctl);
  box-shadow: inset 0 0 0 1px var(--v-field); font: 500 16px/22px var(--v-sans); color: var(--v-ink); background: var(--v-white); }
.v2 .fb-find:focus { outline: 2px solid var(--v-ink); outline-offset: 1px; }
.v2 .fb-list { display: flex; flex-direction: column; }
.v2 .fb-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--v-hair);
  background: none; color: var(--v-ink); text-align: left; cursor: pointer; }
.v2 .fb-opt:hover .fb-opt-t { text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .fb-opt-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v2 .fb-opt-t { font-size: 16px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.v2 .fb-opt-s { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); }
.v2 .fb-opt-n { flex: none; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-mute); }
.v2 .fb-opt-c { flex: none; width: 20px; height: 20px; color: var(--v-ink); }
.v2 .fb-opt[aria-checked="true"] .fb-opt-t { font-weight: 700; }
.v2 .fb-none { margin: 16px 0; font-size: 15px; color: var(--v-mute); }

/* ---------------------------------------------------------------- the building page and one statement */
.v2.fx { padding: 8px var(--v-gut) calc(var(--v-tabs) + 32px); max-width: var(--v-content); }
.v2 .fx-back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -4px; font-size: 14px; line-height: 20px;
  font-weight: 600; color: var(--v-mute); text-decoration: none; }
.v2 .fx-back:hover { color: var(--v-ink); }
.v2 .fx-title { margin: 2px 0 0; overflow-wrap: anywhere; }
.v2 .fx-sub { margin: 4px 0 0; }
.v2 .fx-note { margin: 10px 0 0; max-width: 560px; }
.v2 .fx-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.v2 .fx-grid { display: block; }
.v2 .fx-main, .v2 .fx-side { min-width: 0; }
.v2 .fx-figs .v-kv:first-of-type { margin-top: 2px; }
.v2 .fx-units th[scope="row"] { padding-top: 12px; }
.v2 .fx-unit { display: block; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--v-ink); }
.v2 .fx-unit-s { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v-mute); }
.v2 .fx-link { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; font-weight: 600; color: var(--v-ink);
  text-decoration: underline; text-decoration-color: var(--v-hair-2); text-underline-offset: 3px; }
.v2 .fx-by th[scope="row"] { padding-top: 12px; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--v-ink); }
.v2 .fx-filters { display: grid; gap: 8px; margin-top: 20px; }
/* what the whole statement still owes, and its one black Pay (Codex full review F7) */
.v2 .fx-pay { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding: 14px 0;
  border-top: 1px solid var(--v-hair); border-bottom: 1px solid var(--v-hair); }
.v2 .fx-pay-t { margin: 0; font-size: 15px; line-height: 22px; font-weight: 500; color: var(--v-ink); }
.v2 .fx-pay .v-btn { flex: none; min-width: 96px; }
.v2 .fx-filter .fb-pick-m { flex-direction: column; flex-wrap: nowrap; }
.v2 .fx-filter .fb-pick-s { font-size: 13px; line-height: 18px; }
@media (min-width: 768px) { .v2 .fx-filters { grid-template-columns: repeat(2, minmax(0, 320px)); } }
@media (min-width: 1024px) { .v2.fx { padding: 28px 48px 80px; } }
@media (min-width: 1280px) {
  .v2 .fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--v-side); gap: 56px; align-items: start; }
  .v2 .fx-side { position: sticky; top: 28px; }
  .v2 .fx-side > .v-sec:first-child { margin-top: var(--v-sec); }
}

/* ---------------------------------------------------------------- a member's limit and buildings (Team) */
.v2 .fx-field { margin: 4px 0 20px; padding: 0; border: 0; }
.v2 .fx-label { display: block; padding: 0; margin: 0 0 6px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--v-ink); }
.v2 .fx-help { margin: 6px 0 0; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--v-mute); }
.v2 .fx-money { display: flex; align-items: center; gap: 6px; max-width: 240px; min-height: 48px; padding: 0 14px; border-radius: var(--v-r-ctl);
  box-shadow: inset 0 0 0 1px var(--v-field); font-size: 16px; font-weight: 600; }
.v2 .fx-money:focus-within { box-shadow: inset 0 0 0 2px var(--v-ink); }
.v2 .fx-input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font: 600 16px/22px var(--v-sans); color: var(--v-ink); }
.v2 .fx-checks { margin-top: 8px; border-top: 1px solid var(--v-hair); }
.v2 .fx-check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--v-hair); cursor: pointer; }
.v2 .fx-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--v-ink); }
.v2 .fx-check-t { display: block; font-size: 15px; line-height: 21px; font-weight: 600; }
.v2 .fx-check-s { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v-mute); }
.v2 .fx-err { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--v-red); }
.v2 .fx-err[hidden] { display: none; }

/* Team on Home: the side column's rows */
.v2.home-v2 .home-team .v-row { min-height: 0; }
.v2.home-v2 .home-bldg-u { display: block; margin-top: 2px; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--v-mute); }

/* several units in one inspection order (inspection.js, firm accounts) */
.insp-sheet .in-many-n { margin: 10px 0 0; font-size: 14px; line-height: 20px; }
.insp-sheet .in-many { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--v-hair); }
.insp-sheet .in-many li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0;
  border-bottom: 1px solid var(--v-hair); font-size: 15px; line-height: 21px; }
.insp-sheet .in-many-u { font-weight: 600; color: var(--v-ink); overflow-wrap: anywhere; }
.insp-sheet .in-many li .muted { text-align: right; }
.insp-sheet .in-many-pay li .btn { flex: none; }

/* a quote over the member's approval limit: who approves it, over the buttons (money.js) */
.v2 .mo-over { margin: 16px 0 4px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--v-ink); }
.insp-sheet .in-many-pay-r { display: inline-flex; align-items: center; gap: 12px; flex: none; }
