/* 19-boards-matches.css — Later additions: boards that fit the window, the developer panel, the unknown
   avatar, the matches board in rows, the score help, the title's help link, page actions on phones.
   Part of the CRM stylesheet: the files load in number order (components/app_styles.html) and later
   rules win, exactly as when this was one file. */

/* Boards fit the window; each column scrolls inside itself, its header always in view. */
.board.is-fit { height: var(--board-h); align-items: stretch; padding-bottom: 6px; }
.board.is-fit .column { display: flex; flex-direction: column; min-height: 0; height: 100%; padding-bottom: 0; }
.board.is-fit .column-head { flex: none; }
.board.is-fit .column-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  margin: 0 -6px; padding: 2px 6px 12px; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.board.is-fit .column-body::-webkit-scrollbar { width: 6px; }
.board.is-fit .column-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.board.is-fit .column-body > * { flex: none; }
.column-more { flex: none; }

.dev-panel { align-self: start; }
.dev-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.dev-panel > summary::-webkit-details-marker { display: none; }
.dev-panel[open] > summary svg { transform: rotate(180deg); }
.dev-panel .code { white-space: pre-wrap; }

.avatar-unknown { background: var(--surface-3); color: var(--muted); }
.avatar-unknown svg { width: 55%; height: 55%; }

/* Matches: one client per row, their best homes two by two; calm colours, strong green only for 80%+. */
.match-groups { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.match-group { border-radius: var(--radius-lg); }
.match-group-head { padding: 16px 20px; background: var(--surface); }
.match-group-head .row b { font-size: 16px; white-space: nowrap; }
@media (min-width: 1100px) {
  .match-rows:not(:has(> .match-empty)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-rows .match-row { border-right: 1px solid var(--border); }
  .match-rows .match-row:nth-of-type(2n) { border-right: 0; }
  .match-rows .match-more { grid-column: 1 / -1; }
}
.match-row { padding: 12px 20px; }
.match-row.selected { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.match-check { accent-color: var(--accent); width: 17px; height: 17px; }
.match-more { display: block; padding: 12px 20px; border-top: 1px solid var(--border); }
.match-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.match-offer .btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.match-row:has(> .match-dismissed) { cursor: default; background: var(--surface-2); }
.match-dismissed { display: flex; align-items: center; gap: 6px; }
/* A listing the client turned down: still in the record, quieter than the rest. */
.match.is-muted { background: var(--surface-2); }
.match.is-muted b { color: var(--muted); font-weight: 600; }
.match.is-muted .thumb img { filter: grayscale(1); opacity: .7; }
.score-ring { --tone: var(--warning); }
.score-ring.mid { --tone: var(--text-2); }
.score-ring.high { --tone: var(--success); }
.score-help { position: relative; }
.score-help > summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.score-help > summary::-webkit-details-marker { display: none; }
.score-help > p { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 340px; margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-size: 13.5px; color: var(--text-2); }
@media (max-width: 640px) { .score-help { display: none; } }
/* The "?" beside a page title sits on the title's middle, not under its baseline. */
.page-title .help-link { width: 24px; height: 24px; margin-left: 8px; font-size: 13px; vertical-align: 0.28em; border-color: var(--border-strong); background: var(--surface); }
.drawer-kicker.accent { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--accent); }

@media (max-width: 640px) {
  .btn-label { display: none; }
  .page-actions > form:has(.btn-danger) { flex: none; }
  .page-actions > form > .btn-danger { width: 46px; padding: 0; height: 40px; }
  .page-actions > form:not(:has(.btn-danger)) { flex: 1 1 100%; }
  .page-actions > form:not(:has(.btn-danger)) > .btn { width: 100%; height: 42px; }
}
.page-sub .badge { vertical-align: 1px; margin-right: 4px; }
@media (max-width: 640px) { .page-actions > form[data-send-presentations] { order: -1; } }

