:root{font:16px system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172431;background:#f5f7fa}*{box-sizing:border-box}body{margin:0}header{background:#193f57;color:white;padding:16px max(18px,calc((100vw - 1120px)/2));display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}.brand{font-weight:750}.brand span{font-weight:400;margin-left:12px;color:#c6deeb}nav{display:flex;gap:16px;align-items:center;flex-wrap:wrap}nav a{color:white;text-decoration:none}nav form{margin:0}main{max-width:1160px;margin:36px auto;padding:0 18px;min-height:67vh}h1{font-size:1.85rem;margin:0 0 10px}h2{font-size:1.2rem}a{color:#155d86}button{cursor:pointer;background:#176c94;color:#fff;border:0;border-radius:7px;padding:10px 17px;font:inherit}button.ghost{border:1px solid #8eacbd;background:transparent}.muted,small{color:#566a7a}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(195px,1fr));gap:16px;margin:30px 0}.card{background:white;padding:22px;border:1px solid #dfe6ed;border-radius:12px;text-decoration:none;display:flex;gap:12px;flex-direction:column;color:#172431}.card strong{font-size:2rem}.card small{color:#155d86}.note,.login{background:white;border:1px solid #dfe6ed;padding:24px;border-radius:12px}.login{max-width:430px;margin:10vh auto}.login form,.login label{display:grid;gap:8px}.login form{gap:20px}input{padding:10px 12px;border:1px solid #91a6b4;border-radius:7px;font:inherit;width:100%}.search{max-width:540px;margin:24px 0}.search label{display:block;margin-bottom:7px}.search>div{display:flex;gap:8px}.tablewrap{overflow:auto;background:white;border:1px solid #dfe6ed;border-radius:10px}table{border-collapse:collapse;width:100%;white-space:nowrap}th,td{text-align:left;border-bottom:1px solid #e8edf2;padding:11px 14px;font-size:.87rem}th{background:#eef3f7}.pager{display:flex;gap:20px;margin:24px 0}.details{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.details div{background:white;border:1px solid #dfe6ed;padding:14px;border-radius:8px;overflow-wrap:anywhere}dt{color:#566a7a;font-size:.8rem;margin-bottom:5px}dd{margin:0}.alert{padding:12px;background:#fff1ea;border:1px solid #e6a780;border-radius:6px}footer{text-align:center;color:#607486;font-size:.8rem;padding:32px}

.editor{display:grid;gap:20px;max-width:1050px}.editor fieldset{background:white;border:1px solid #dfe6ed;border-radius:12px;padding:20px}.editor legend{font-weight:700;padding:0 8px}.edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}.edit-grid label{display:flex;flex-direction:column;gap:7px;font-size:.88rem;font-weight:600}.edit-grid .check-label{flex-direction:row;align-items:center;gap:9px}.check-label input{width:auto;accent-color:#176c94}.editor-actions{display:flex;gap:20px;align-items:center}.validation{border:1px solid #bf5858;background:#fff0f0;padding:14px;border-radius:8px}.action-link{display:inline-block;padding:10px 16px;background:#176c94;color:white;border-radius:8px;text-decoration:none}

/* Version 0.5.6: accessible numbered page navigation. */
.pagination{margin:22px 0 28px;display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.page-links{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.page-button{display:inline-flex;align-items:center;justify-content:center;min-height:40px;min-width:40px;padding:7px 12px;border:1px solid #b7cbd7;border-radius:6px;background:#fff;color:#155d86;text-decoration:none;font-weight:600}
.page-button:hover:not(.disabled):not(.current){background:#eaf4f9}
.page-button:focus-visible,.jump-form input:focus-visible,.jump-form button:focus-visible{outline:3px solid #ffb145;outline-offset:2px}
.page-button.current{background:#176c94;color:white;border-color:#176c94}
.page-button.disabled{opacity:.46;cursor:default}
.page-ellipsis{min-width:18px;text-align:center;color:#566a7a}
.page-jump{display:flex;flex-wrap:wrap;align-items:center;gap:16px;color:#405a6d;font-size:.95rem}
.jump-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.jump-form input{width:78px;min-height:40px}
.jump-form button{min-height:40px;padding:7px 14px}
@media(max-width:600px){.page-button{min-height:38px;min-width:36px;padding:6px 9px}.page-links{gap:4px}}

/* v0.5.7: Clear returns to the unfiltered page where searching began. */
.search{max-width:780px}
.search .clear-search{display:inline-flex;align-items:center;justify-content:center;border:1px solid #8eacbd;border-radius:7px;background:white;color:#155d86;text-decoration:none;padding:10px 17px;white-space:nowrap}
.search .clear-search:hover{background:#eaf4f9}
.search .clear-search:focus-visible{outline:3px solid #ffb145;outline-offset:2px}
@media(max-width:600px){.search>div{flex-wrap:wrap}.search input[name=q]{flex-basis:100%}}

/* Version 0.6.0: readable, grouped record views */
.record-sheet{display:grid;gap:18px;max-width:1100px}
.record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin:8px 0}
.record-head h1{margin:4px 0 2px;font-size:2rem}
.record-head .muted{margin:0}
.eyebrow{font-size:.76rem;font-weight:750;letter-spacing:.085em;text-transform:uppercase;color:#526a7b}
.head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.status-pill{border-radius:999px;font-size:.85rem;font-weight:650;padding:7px 11px;background:#e9eff4;color:#30495d}
.status-pill.is-yes{background:#def3e6;color:#135938}
.status-pill.is-no{background:#f1e9e1;color:#6e4a2b}
.detail-section{background:#fff;border:1px solid #dfe6ed;border-radius:12px;padding:20px 23px;overflow-wrap:anywhere}
.detail-section h2{font-size:1.1rem;margin:0 0 17px;color:#20394c}
.info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:18px 25px;margin:0}
.info-item{min-width:0}
.info-item dt{color:#567082;font-size:.82rem;margin-bottom:5px;font-weight:600}
.info-item dd{margin:0;font-size:1.02rem;line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}
.money-total dd{font-size:1.28rem;font-weight:800}
.secondary-fields summary{cursor:pointer;font-weight:700;color:#30495d}
.secondary-fields .info-grid{margin-top:19px}
.related-section p{margin:8px 0;line-height:1.5}
.detail-back{margin-bottom:20px}
@media(max-width:640px){.detail-section{padding:16px}.record-head h1{font-size:1.6rem}.info-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}}

/* v0.6.2: owner addresses and region input */
.editor select{padding:10px 12px;border:1px solid #91a6b4;border-radius:7px;font:inherit;width:100%;background:white;color:#172431}
.editor .region-other{margin-top:7px}.region-other[hidden]{display:none}
.address-inherited{opacity:.55}.legacy-note{background:#fff6e3;border:1px solid #ecd5a3;border-radius:8px;padding:12px 16px;max-width:1050px}

/* v0.6.4.1: show unverified ownership candidates without presenting them as owners. */
.owner2-review-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-bottom:12px}
.owner2-review-heading h2{margin:0}
.owner2-review-badge{display:inline-block;border-radius:999px;padding:6px 12px;font-size:.84rem;font-weight:700}
.review-pending{background:#fff1d6;color:#7c4700;border:1px solid #d8ae63}
.review-verified{background:#dff2e6;color:#155c36;border:1px solid #96c6aa}
.review-none{background:#eef1f5;color:#465869;border:1px solid #cad5de}
.owner2-candidate{padding:14px 17px;margin:12px 0;border-radius:9px;background:#fff8e8;border:1px solid #e6c883;border-left:5px solid #b87912}
.owner2-candidate p{margin:7px 0}
.owner2-candidate small{display:block}
.owner2-candidate .info-grid{margin-top:11px}
.owner2-review-action{margin:15px 0 0}

/* v0.6.4.2: accessible spacing for Owner 2 review, no behavior changes */
.editor{gap:26px}
.editor fieldset{min-width:0;padding:24px 22px 22px;margin:0}
.editor legend{padding:0 10px;line-height:1.5}
.editor fieldset > .muted:first-of-type{margin:6px 0 14px;line-height:1.55}
.editor .owner2-candidate{margin:14px 0 18px;line-height:1.5}
.editor .owner2-review-controls{display:block;width:100%;margin:0 0 12px;padding:0}
.editor .owner2-review-controls:last-of-type{margin-bottom:20px}
.editor .owner2-review-controls .check-label{display:flex;align-items:flex-start;gap:12px;width:100%;line-height:1.5;font-size:.92rem;font-weight:500;cursor:pointer}
.editor .owner2-review-controls input[type="checkbox"]{flex:0 0 auto;width:18px;height:18px;margin:3px 0 0}
.editor .owner2-review-controls span{display:block;min-width:0;overflow-wrap:anywhere}
.editor .owner2-review-controls + .edit-grid{margin-top:16px}
@media(max-width:600px){.editor fieldset{padding:18px 15px}}

/* v0.6.4.3: organize consent review and prevent duplicated Owner 2 controls. */
.communication-panel{border:1px solid #dbe5ed;border-radius:10px;background:#fafcfe;padding:18px 20px;margin:16px 0 20px;min-width:0}
.communication-panel h3{font-size:1.02rem;margin:0 0 12px;color:#20394c}
.communication-panel .muted{margin:0 0 15px;line-height:1.55}
.communication-panel .edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.communication-panel .consent-confirmation{grid-column:1 / -1;display:flex;align-items:flex-start;gap:12px;line-height:1.5;font-size:.93rem;font-weight:500;padding:8px 0 0;border-top:1px solid #e4ebf0}
.communication-panel .consent-confirmation input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;margin:2px 0 0}
.editor fieldset:has([name="Owner2SameAddress"]) > .edit-grid > label:has([name="Owner2SameAddress"]){grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-bottom:3px}
@media(max-width:680px){.communication-panel{padding:15px}.communication-panel .edit-grid{grid-template-columns:minmax(0,1fr)}}

/* v0.7.0: private, printer-friendly directory */
.directory-page{max-width:1120px;margin:auto}
.directory-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}
.directory-controls .clear-search{display:inline-block;border:1px solid #9bb4c3;border-radius:7px;background:#fff;padding:10px 16px;text-decoration:none}
.directory-heading{border-bottom:2px solid #193f57;margin-bottom:19px;padding-bottom:12px}
.directory-heading h1{margin:4px 0 8px}
.directory-heading .muted{margin:0 0 8px}
.directory-meta{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:.9rem;color:#4d6373}
.directory-privacy{background:#fff8e6;border:1px solid #eedaa7;border-radius:7px;padding:12px 15px;color:#634e24}
.directory-table{width:100%;table-layout:fixed;border-collapse:collapse;white-space:normal;background:#fff}
.directory-table th:nth-child(1){width:9%}.directory-table th:nth-child(2){width:35%}.directory-table th:nth-child(3){width:20%}.directory-table th:nth-child(4){width:36%}
.directory-table td,.directory-table th{vertical-align:top;padding:9px 11px;border-bottom:1px solid #dbe3eb;text-align:left}
.directory-table td{overflow-wrap:anywhere}
.directory-table tbody tr:nth-child(even){background:#f6f9fb}
.directory-subtext{display:block;font-size:.8rem;color:#526b7c;margin-top:3px}
.directory-break{overflow-wrap:anywhere;word-break:break-word}
.directory-print-footer{font-size:.76rem;color:#637b8c;margin-top:14px}
@media(max-width:700px){.directory-table{font-size:.79rem}.directory-table th,.directory-table td{padding:7px 6px}.directory-meta{display:block}}
@page{size:letter landscape;margin:0.42in 0.48in}
@media print{
  html,body{background:#fff!important;color:#111!important;font:10pt Arial,sans-serif}
  body>header,body>footer,.no-print{display:none!important}
  body>main{max-width:none;margin:0;padding:0;min-height:0}
  .directory-page{max-width:none}
  .directory-heading{padding-bottom:7px;margin-bottom:12px}
  .directory-heading h1{font-size:17pt}
  .directory-heading .muted,.directory-meta{font-size:9pt}
  .directory-table{font-size:9.25pt;table-layout:fixed;line-height:1.22}
  .directory-table th{background:#eaeef2!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .directory-table td,.directory-table th{padding:4.2px 7px;border-bottom:1px solid #cbd3da}
  .directory-table thead{display:table-header-group}
  .directory-table tr{break-inside:avoid;page-break-inside:avoid}
  .directory-table tbody tr:nth-child(even){background:#fff}
  .directory-subtext{font-size:8pt;color:#333}
  .directory-print-footer{font-size:8pt}
  a{color:#111;text-decoration:none}
}

/* v0.7.0.2: keep individual owner/contact lines together in print. */
@media print { .directory-table td{orphans:2;widows:2} .directory-heading{break-after:avoid} }

/* v0.7.0.4: private Reports Center and Full Directory */
.reports-center{max-width:1000px;margin:0 auto}
.report-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px;margin:24px 0}
.report-option{padding:24px;border:1px solid #dae2ea;border-radius:12px;background:white}
.report-option h2{margin-top:0}.report-option p{color:#476072;min-height:55px}
.full-directory-table th:nth-child(1){width:11%}
.full-directory-table th:nth-child(2){width:29%}
.full-directory-table th:nth-child(3){width:22%}
.full-directory-table th:nth-child(4){width:24%}
.full-directory-table th:nth-child(5){width:14%}
.full-directory-table{font-size:.87rem}
.full-second-owner{border-top:1px solid #e3e9ec;margin-top:7px;padding-top:5px}
.directory-address-line{margin-bottom:2px}
@media print{
  .full-directory-table{font-size:8.35pt;line-height:1.24}
  .full-directory-table td,.full-directory-table th{padding:5px 7px}
  .full-second-owner{margin-top:4px;padding-top:3px}
  .reports-center{display:none}
}

/* v0.7.0.5: Keep printed report content within common printer margins.
   Browser-supplied URL/page-number headers belong to the print dialog; disable
   "Headers and footers" there to remove them. */
@media print {
  .directory-page { box-sizing:border-box; max-width:100%; width:100%; }
  .directory-table { width:100%; }
  .directory-table td, .directory-table th { overflow-wrap:anywhere; }
}

/* v0.7.1: Renter directory uses the approved report layout. */
.renter-directory-table th:nth-child(1){width:9%}
.renter-directory-table th:nth-child(2){width:25%}
.renter-directory-table th:nth-child(3){width:22%}
.renter-directory-table th:nth-child(4){width:18%}
.renter-directory-table th:nth-child(5){width:12%}
.renter-directory-table th:nth-child(6){width:14%}
@media print{.renter-directory-table{font-size:8.7pt}.renter-directory-table th,.renter-directory-table td{padding:5px 6px}}

/* v0.7.2: align every Reports Center action at the bottom of its card. */
.report-option{display:flex;flex-direction:column;align-items:flex-start}
.report-option p{min-height:0;flex:1;margin-bottom:22px}
.report-option .action-link{margin-top:auto}
.receipt-report-filters{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end;margin:18px 0}
.receipt-report-filters label{display:flex;flex-direction:column;gap:5px;font-weight:600}
.receipt-report-filters input{padding:9px;border:1px solid #a7bac6;border-radius:5px;font:inherit}
.receipt-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}
.receipt-summary>div{border:1px solid #dbe3eb;border-radius:7px;padding:11px;background:#fff}
.receipt-summary small{display:block;color:#567082}.receipt-summary strong{display:block;margin-top:5px;font-size:1.15rem}
.receipt-report-table th:nth-child(1){width:12%}.receipt-report-table th:nth-child(2){width:13%}
.receipt-report-table th:nth-child(3){width:22%}.receipt-report-table th:nth-child(4){width:7%}
.receipt-report-table th:nth-child(5),.receipt-report-table th:nth-child(6),.receipt-report-table th:nth-child(7){width:11%}
.receipt-report-table th:nth-child(8){width:13%}
.receipt-report-table .amount{white-space:nowrap}
@media(max-width:700px){.receipt-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-report-table{font-size:.75rem}}
@media print{.receipt-report .receipt-summary{grid-template-columns:repeat(4,1fr);gap:8px;break-inside:avoid}
.receipt-report .receipt-summary>div{padding:6px;border-color:#ccd6dd}
.receipt-report .receipt-summary strong{font-size:10pt}
.receipt-report-table{font-size:8pt;line-height:1.18}
.receipt-report-table td,.receipt-report-table th{padding:3px 5px}
.receipt-report-table .directory-subtext{font-size:7pt}}

.labels-options{display:grid;grid-template-columns:minmax(190px,310px) minmax(230px,1fr);align-items:center;gap:12px;max-width:860px;background:white;border:1px solid #d9e2ec;padding:24px;border-radius:12px;margin:20px 0}.labels-options select,.labels-options input{width:100%;min-width:0;padding:10px;border:1px solid #9cb3c2;border-radius:6px}.labels-options button{grid-column:2;justify-self:start}@media(max-width:650px){.labels-options{grid-template-columns:1fr}.labels-options button{grid-column:1}}

/* v0.7.5: accessible, clickable table-sort headings */
.tablewrap .sort-heading{display:inline-flex;align-items:center;gap:.22rem;color:#193f57;text-decoration:none;font-weight:700}
.tablewrap .sort-heading:hover{text-decoration:underline;color:#155d86}
.tablewrap .sort-heading:focus-visible{outline:2px solid #176c94;outline-offset:3px;border-radius:2px}
.tablewrap .sort-indicator{font-size:.75em;color:#607486}

/* v0.7.5.3: shared community branding, responsive without touching navigation */
header{padding-left:max(18px,calc((100vw - 1320px)/2));padding-right:max(18px,calc((100vw - 1320px)/2))}
header .brand{display:flex;align-items:center;flex:0 1 auto;min-width:0;line-height:1}
header .brand img{display:block;width:min(100%,480px);height:auto;max-height:58px;object-fit:contain;object-position:left center}
@media(max-width:1050px){header{gap:12px}header .brand img{width:min(100%,340px)}nav{gap:12px}}
@media(max-width:700px){header{padding:12px 18px;gap:10px}header .brand{max-width:100%}header .brand img{width:min(100%,390px)}nav{width:100%;justify-content:flex-start;gap:10px}}


/* v0.7.5.5: understated Omega Industries footer credit */
.site-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:25px 16px 28px}
.site-footer-note{line-height:1.45}
.omega-credit{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#344859;font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:14px;line-height:1.15;white-space:nowrap}
.omega-credit img{display:block;width:22px;height:23px;object-fit:contain}
@media(max-width:480px){.omega-credit{font-size:13px}.site-footer-note{max-width:340px}}
@media print{body>footer.site-footer{display:none!important}}
