/* Page-specific refinements for renter forms and the applicant report.
   The approved renters_base navigation, list pages and shared controls stay
   in owners-renters.css. These pages inherit its Open Sans/Poppins fonts,
   native 48px fields, token surfaces and focus treatment. */
/* Bound the screen-reader-only column label to the scrolling table. Its old
   absolute containing block was the page, leaking the wide table offscreen. */
.ow-tenant-list-refinement .ow-table-scroll { position: relative; min-width: 0; max-width: 100%; overflow-x: auto; }
.ow-tenant-list-refinement .ow-table-scroll .ow-sr { top: 0; left: 0; }
.ow-renter-detail .renters-view [hidden] { display: none !important; }
.ow-renter-detail .ow-center-card > h1 { margin: 0 0 22px; color: var(--text); font: 600 24px/34px "Poppins", "Open Sans", sans-serif; letter-spacing: normal; overflow-wrap: anywhere; }
.ow-renter-detail .ow-center-card > h1 + .ow-lede-sm,
.ow-renter-detail .ow-center-card > h1 + .ow-alert { margin-top: -10px; }
.ow-renter-detail .ow-center-card > h1 + .ow-section-h { margin-top: 0; }
.ow-renter-detail .ow-interstitial > h1 { margin-bottom: 12px; }
.ow-renter-detail .renters-view .ow-btn { min-height: 44px; white-space: normal; text-align: center; }
.ow-renter-detail .ow-center-foot .ow-btn,
.ow-renter-detail .ow-wizard-foot .ow-btn { min-height: 48px; }
.ow-renter-detail .ow-radio { min-height: 48px; padding-block: 12px; }
.ow-renter-detail .ow-radio:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.ow-renter-detail .ow-radio:has(input:checked),
.ow-renter-detail .ow-tier:has(input:checked),
.ow-renter-detail .ow-choice-radio:has(input:checked) { border-color: var(--btn-action-fg); }
.ow-renter-detail .ow-choice-radio > span { min-width: 0; }
.ow-renter-detail.ow-applicant-decision .ow-decision-reasons { margin: 12px 0 20px; }
.ow-renter-detail .ow-invitees li,
.ow-renter-detail .ow-result-list li { overflow-wrap: anywhere; }
.ow-renter-detail .ow-invitees li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ow-renter-detail .ow-result-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.ow-renter-detail .ow-steps-list li { padding-block: 5px; }
.ow-renter-detail .ow-fork-opt h3 { text-wrap: balance; }
.ow-renter-detail .ow-fork-opt .ow-btn { margin-top: auto; }
.ow-renter-detail.ow-lead-questionnaire input[type="date"] { max-width: 280px; }
.ow-renter-detail.ow-lead-questionnaire input[name="occupants"] { max-width: 200px; }
.ow-renter-detail.ow-lead-questionnaire .ow-money { max-width: 280px; }
.ow-renter-detail.ow-lead-questionnaire .ow-field-row { align-items: start; }
body.ow.ow-tenant-create #ow-main .tenant-contact-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap:16px; }
body.ow.ow-tenant-create #ow-main .tenant-contact-row .ow-field { min-width:0; }
@media (max-width:600px) { body.ow.ow-tenant-create #ow-main .tenant-contact-row { grid-template-columns:minmax(0,1fr); } }
.ow-renter-detail.ow-lead-questionnaire .ow-fieldset .ow-radio-row + .ow-field { margin-top: 12px; }

/* The report is a section within the applicant profile. Preserve its native
   details controls, report values, missing-data explanations and downloads. */
.ow-renter-detail.ow-applicant-profile .ow-rep { min-width: 0; }
.ow-renter-detail.ow-applicant-profile .ow-rep-head { flex-wrap: wrap; gap: 12px 20px; }
.ow-renter-detail.ow-applicant-profile .ow-rep-head h3 { font-size: 17px; line-height: 26px; }
.ow-renter-detail.ow-applicant-profile .ow-rep-by { min-width: 0; overflow-wrap: anywhere; }
.ow-renter-detail.ow-applicant-profile .ow-rep-by small { font-size: 12px; line-height: 20px; letter-spacing: normal; text-transform: none; }
.ow-renter-detail.ow-applicant-profile .ow-rep-sec { padding-bottom: 16px; }
.ow-renter-detail.ow-applicant-profile .ow-rep-sec > summary { min-height: 48px; gap: 14px; padding-block: 14px; font-size: 16px; line-height: 24px; }
.ow-renter-detail.ow-applicant-profile .ow-rep-sec > summary::after { flex: none; }
.ow-renter-detail.ow-applicant-profile .ow-rep-split { gap: 18px 24px; }
.ow-renter-detail.ow-applicant-profile .ow-rep-split > div { min-width: 0; }
.ow-renter-detail.ow-applicant-profile .ow-rep-kv > div { padding: 11px 0; gap: 16px; border-bottom: 1px solid var(--border-hairline); background: transparent; }
.ow-renter-detail.ow-applicant-profile .ow-rep-kv dt { color: var(--text-secondary); overflow-wrap: anywhere; }
.ow-renter-detail.ow-applicant-profile .ow-rep-kv dd { flex: none; font-variant-numeric: tabular-nums; }
.ow-renter-detail.ow-applicant-profile .ow-rep-acct h4 { font-size: 14px; line-height: 22px; font-weight: 600; letter-spacing: normal; text-transform: none; overflow-wrap: anywhere; }
.ow-renter-detail.ow-applicant-profile .ow-rep .ow-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
/* ow-rep-grid is also a report-catalog grid in owners.css. This instance is
   a semantic table: a grid display splits its header and body into columns. */
.ow-renter-detail.ow-applicant-profile .ow-rep table.ow-rep-grid { display: table; width: 100%; min-width: 640px; }
.ow-renter-detail.ow-applicant-profile .ow-rep table.ow-rep-grid th,
.ow-renter-detail.ow-applicant-profile .ow-rep table.ow-rep-grid td { padding: 12px 8px; text-align: center; }
.ow-renter-detail.ow-applicant-profile .ow-rep table.ow-rep-grid th:first-child,
.ow-renter-detail.ow-applicant-profile .ow-rep table.ow-rep-grid td:first-child { text-align: start; }
.ow-renter-detail.ow-applicant-profile .ow-rep-total td,
.ow-renter-detail.ow-applicant-profile .ow-rep-buckets b,
.ow-renter-detail.ow-applicant-profile .ow-rep-stats b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ow-renter-detail.ow-applicant-profile .ow-frame { width: 100%; min-width: 0; }

@container ow-layout (max-width: 620px) {
  .ow-renter-detail .ow-center-card > h1 { font-size: 24px; line-height: 34px; }
  .ow-renter-detail .ow-center-foot, .ow-renter-detail .ow-wizard-foot, .ow-renter-detail .ow-interstitial .ow-wizard-foot { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .ow-renter-detail .ow-center-foot > *, .ow-renter-detail .ow-wizard-foot > * { width: 100%; min-width: 0; margin-inline: 0; }
  .ow-renter-detail .ow-radio-row { align-items: stretch; }
  .ow-renter-detail .ow-radio { justify-content: flex-start; }
  .ow-renter-detail .ow-tier, .ow-renter-detail .ow-choice-radio { padding: 14px; }
  .ow-renter-detail.ow-applicant-profile .ow-profile-id { min-width: 0; flex-basis: 100%; }
  .ow-renter-detail.ow-applicant-profile .ow-profile-actions { flex-wrap: wrap; }
  .ow-renter-detail.ow-applicant-profile .ow-rep-by { align-items: flex-start; text-align: left; } }
@media (prefers-reduced-motion: reduce) {
  .ow-renter-detail .ow-rep-sec > summary::after { transition: none; }
}

/* Desktop form spacing keeps the shared text size and native touch layout. */
@media screen and (min-width: 821px) and (hover: hover) and (pointer: fine) {
  body.ow.ow-renter-detail #ow-main .ow-center-card { padding: 16px; }
  body.ow.ow-renter-detail #ow-main .ow-center-card .ow-field { margin-bottom: 12px; }
  body.ow.ow-renter-detail #ow-main .ow-center-card .ow-fieldset { margin-bottom: 16px; }
  body.ow.ow-renter-detail #ow-main .ow-center-card .ow-field-row { gap: 16px; }
  body.ow.ow-renter-detail #ow-main .ow-center-card :is(.ow-center-foot,.ow-wizard-foot) { margin-top: 12px; padding-top: 12px; }
}

/* Manual pre-screener: two plain sections, with follow-ups indented under their answer. */
.ow-lead-questionnaire .lead-questionnaire-section { margin: 16px 0 8px; color: var(--text); font: 600 22px/1.4 "Open Sans", Arial, sans-serif; }
.ow-lead-questionnaire .lead-questionnaire-child { margin: 4px 0 0 28px; }
.ow-lead-questionnaire .lead-questionnaire-sub { margin: 0 0 4px; color: var(--text); font-weight: 600; }
.ow-lead-questionnaire .ow-radio-row { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ow-lead-questionnaire .ow-radio-row :is(.ow-radio, .ow-check) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; }

/* Screen a tenant: the title sits in the middle, like the drawing above it and the two choices below. */
body.ow.ow-screen-tenant .ow-fork-card > h1 { text-align: center; }
