/* Owner portal (manage.hfro.ca/owners/): the Homes For Rent Ottawa look (Lease Studio palette). */
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("fonts/source-serif-var-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --bg: #f5f1ea; --bg-glow: #ece4d6; --surface: #fff; --surface-2: #faf7f2; --surface-3: #f3eee5;
  --ink: #16232b; --ink-2: #48575f; --ink-3: #7d898f; --line: #e5ddd0; --line-2: #eee8de;
  --brand: #1f5a46; --brand-2: #2a7259; --brand-soft: #e2eee8; --copper: #c2693c; --copper-soft: #f7e7dd;
  --danger: #b3261e; --danger-soft: #fcebea; --warn: #8a5a00; --warn-soft: #fbf2dc; --info: #2d5f8a; --info-soft: #e5eef6;
  --card: linear-gradient(180deg, #fff 0%, #fdfbf7 100%);
  --shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 1px rgba(22,35,43,.05), 0 1px 2px rgba(22,35,43,.04), 0 12px 32px -16px rgba(22,35,43,.2);
  --shadow-lg: 0 30px 80px -24px rgba(22,35,43,.4);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; font: 15px/1.5 var(--sans); color: var(--ink); background: var(--bg);
  background-image: radial-gradient(1100px 560px at 10% -10%, var(--bg-glow), transparent 60%), radial-gradient(800px 480px at 105% 0%, var(--bg-glow), transparent 60%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--copper); }
button, input, select { font: inherit; color: inherit; }
.serif { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- sign-in ---------- */
.signin {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; color: #f4efe6;
  background: radial-gradient(900px 600px at 15% 0%, #1f4a3c 0%, transparent 60%), radial-gradient(800px 600px at 100% 100%, #3a2a1f 0%, transparent 55%), #10231d;
}
.signin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.signin-brand .name { font: 600 24px/1 var(--serif); letter-spacing: -.015em; }
.signin-brand em { color: #8fd0b2; }
.signin-card {
  width: 100%; max-width: 420px; background: linear-gradient(180deg, #fff, #fbf8f3); color: var(--ink); border-radius: 22px; padding: 30px 32px 26px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.65); animation: rise .5s var(--ease) both;
}
.signin-card h1 { font: 600 27px/1.15 var(--serif); margin: 0 0 6px; letter-spacing: -.015em; }
.signin-card p { color: var(--ink-2); margin: 0 0 18px; font-size: 14px; }
.signin-foot { margin-top: 20px; font-size: 12.5px; color: rgba(244,239,230,.55); text-align: center; }
.signin-foot a { color: rgba(244,239,230,.8); }
label.field { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.input {
  width: 100%; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 0 14px; font-size: 15px;
  box-shadow: inset 0 1px 2px rgba(22,35,43,.04); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8f4ee); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(22,35,43,.06); font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--ink);
  transition: transform .1s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:hover { border-color: var(--ink-3); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--brand-soft); }
.btn.primary { background: linear-gradient(180deg, #266b54, #1f5a46); border-color: #1c5240; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 22px -12px rgba(31,90,70,.85); }
.btn.primary:hover { background: linear-gradient(180deg, #2b765d, #1d5442); }
.btn.block { width: 100%; height: 46px; font-size: 15px; margin-top: 14px; }
.btn[disabled] { opacity: .6; cursor: default; transform: none; }
.note { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-top: 14px; }
.note.ok { background: var(--brand-soft); color: #17463a; }
.note.err { background: var(--danger-soft); color: #8a1c16; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line-2); }
.top-in { max-width: 1200px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; }
.brand .name { font: 600 18px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand em { color: var(--brand); }
.brand .tag { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; border-left: 1px solid var(--line); padding-left: 11px; white-space: nowrap; }
.top .spacer { flex: 1; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.who b { color: var(--ink); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #f3cdb1, #c2693c 60%, #b85d31); box-shadow: 0 6px 14px -6px rgba(194,105,60,.8); }

/* ---------- page ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 26px 24px 64px; animation: rise .45s var(--ease) both; }
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 30px 32px; color: #f4efe6; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px;
  background: radial-gradient(circle at 100% 100%, transparent 139px, rgba(255,255,255,.07) 140px, rgba(255,255,255,.025) 141px, rgba(255,255,255,.025) 180px, transparent 181px),
    radial-gradient(620px 320px at 100% 0%, rgba(217,122,72,.36), transparent 62%), radial-gradient(520px 320px at 0% 120%, rgba(143,208,178,.2), transparent 60%), linear-gradient(135deg, #1b4134, #12291f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 34px 70px -34px rgba(16,35,29,.75);
}
.eyebrow { font: 700 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin-bottom: 9px; }
.hero .eyebrow { color: #f0b48f; }
.hero h1 { font: 600 34px/1.1 var(--serif); letter-spacing: -.02em; margin: 0; }
.hero h1 em { color: #9ad8bb; }
.hero p { margin: 8px 0 0; color: rgba(244,239,230,.72); font-size: 14px; }
.periods { display: flex; flex-wrap: wrap; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 13px; padding: 4px; }
.periods button { border: 0; background: transparent; color: rgba(244,239,230,.8); padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; }
.periods button:hover { color: #fff; background: rgba(255,255,255,.08); }
.periods button[aria-pressed="true"] { background: #f4efe6; color: var(--ink); box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 16px; margin: 22px 0; }
.kpi { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-2px); }
.kpi .label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.kpi .value { font: 600 28px/1.15 var(--serif); letter-spacing: -.02em; margin-top: 6px; }
.kpi .sub { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.kpi.copper .dot { background: var(--copper); }
.kpi.ink .dot { background: var(--ink-2); }
.kpi.net { background: linear-gradient(135deg, #e8f2ed, #d7eadf); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 20px; min-width: 0; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-head h2 { font: 600 19px/1.2 var(--serif); margin: 0; letter-spacing: -.01em; flex: 1; min-width: 0; }
.card-head .meta { font-size: 12.5px; color: var(--ink-3); }
.card-body { padding: 16px 20px; }
/* Yearly rent increases, under each property's name in Your properties */
.yearly { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 0 20px 12px; }
.yearly .small { font-size: 12.5px; }
.empty { padding: 26px 20px; text-align: center; color: var(--ink-3); font-size: 14px; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.pill.green { background: var(--brand-soft); color: var(--brand); }
.pill.amber { background: var(--warn-soft); color: var(--warn); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.pill.blue { background: var(--info-soft); color: var(--info); }
.pill.copper { background: var(--copper-soft); color: #9a4f28; }

/* tables become stacked rows on narrow screens */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; padding: 10px 20px; background: linear-gradient(180deg, #fcfaf6, #f6f1e9); border-bottom: 1px solid var(--line); }
.table td { padding: 11px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; overflow-wrap: break-word; }
.table td[data-label="Unit"] { white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbf8f3; }
.table .r { text-align: right; white-space: nowrap; }
.table .pos { color: var(--brand); }
.table .neg { color: var(--ink); }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--line); }
/* A table whose card is narrow (side column, phones) becomes label/value rows */
.card { container-type: inline-size; }
@container (max-width: 680px) {
  .table.stack thead { display: none; }
  .table.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .table.stack td { display: block; border: 0; padding: 4px 18px; text-align: right; overflow: hidden; }
  .table.stack td::before { content: attr(data-label); float: left; margin-right: 14px; color: var(--ink-3); font-size: 12px; font-weight: 600; text-align: left; line-height: 1.9; }
  .table.stack td.r { white-space: normal; }
}

.property + .property { border-top: 1px solid var(--line-2); }
.property-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; padding: 16px 20px 8px; }
.property-head h3 { font: 600 17px/1.25 var(--serif); margin: 0; }
.property-head .addr { color: var(--ink-3); font-size: 13px; }
.tenants { font-weight: 550; }
.small { font-size: 12.5px; color: var(--ink-3); }
.owing { color: var(--danger); font-weight: 650; }

.chart { padding: 14px 16px 6px; }
.chart svg { width: 100%; height: 190px; display: block; }
.legend { display: flex; gap: 16px; padding: 0 20px 14px; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.files a { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.files a:last-child { border-bottom: 0; }
.files a:hover { background: #fbf8f3; }
.file-ico { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--copper-soft); color: var(--copper); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.files .fname { font-weight: 600; overflow-wrap: anywhere; }
.files .grow { flex: 1; min-width: 0; }

.more { display: block; width: 100%; border: 0; border-top: 1px solid var(--line-2); background: transparent; padding: 11px; font-weight: 600; color: var(--brand); cursor: pointer; border-radius: 0 0 18px 18px; }
.more:hover { background: var(--surface-2); }
.foot { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 10px 0 0; }
.loading-bar { height: 3px; background: linear-gradient(90deg, transparent, var(--copper), transparent); background-size: 200% 100%; animation: slide 1s linear infinite; position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
@keyframes slide { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 640px) {
  .top-in, .page { padding-left: 16px; padding-right: 16px; }
  .brand .tag, .who .email { display: none; }
  .hero { padding: 24px 22px; }
  .hero h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- printed statement ---------- */
@media print {
  body { background: #fff; }
  .top, .periods, .no-print, .more, .chart, .legend { display: none !important; }
  .page { padding: 0; max-width: none; }
  .hero { background: none; color: var(--ink); box-shadow: none; padding: 0 0 12px; border-bottom: 2px solid var(--ink); border-radius: 0; }
  .hero .eyebrow { color: var(--ink-3); }
  .hero h1 em { color: var(--ink); }
  .hero p { color: var(--ink-2); }
  .card, .kpi { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .grid2 { display: block; }
}
.legend .lg-in { background: #1f5a46; } .legend .lg-out { background: #c2693c; }

.lease-dates { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; margin-top: 2px; }
html, body { overflow-x: hidden; }

.preview-bar { max-width: 1200px; margin: 14px auto 0; padding: 10px 16px; border-radius: 12px; background: var(--warn-soft); color: #6b4600; font-size: 13.5px; border: 1px solid #f0dfb4; width: calc(100% - 48px); }
.preview-bar b { display: inline-block; background: #d99a1e; color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; }
@media (max-width: 640px) { .preview-bar { width: calc(100% - 32px); } }

.hero h1 em { overflow-wrap: anywhere; }

/* ---------- maintenance (work orders) ---------- */
.prop-wo { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-top: 1px solid var(--line-2); background: var(--surface-2); padding: 10px 20px; font-size: 13px; color: var(--ink-2); cursor: pointer; text-align: left; }
.prop-wo b { color: var(--ink); }
.prop-wo .small { margin-left: auto; color: var(--brand); font-weight: 600; }
.prop-wo:hover { background: var(--surface-3); }
.property:last-child .prop-wo { border-radius: 0 0 18px 18px; }
.wo-filter { padding: 12px 20px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.wo-list { padding: 8px 0; }
.wo { border-bottom: 1px solid var(--line-2); }
.wo:last-child { border-bottom: 0; }
.wo-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 20px; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); }
.wo-head:hover { background: #fbf8f3; }
.wo-head .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wo-head .chev { font-size: 20px; color: var(--ink-3); transition: transform .2s var(--ease); }
.wo-head[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--copper); }
.wo-billed { color: var(--ink-2); white-space: nowrap; }
.wo.open { background: linear-gradient(180deg, #fbf8f3, #fff 40%); }
.wo-body { padding: 4px 20px 18px; animation: rise .3s var(--ease) both; }
.wo-body h4 { font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 18px 0 8px; }
.wo-request { margin: 0; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; overflow-wrap: break-word; }
.wo-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 12px; }
.wo-facts div { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wo-facts span { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.wo-facts b { font-size: 13.5px; overflow-wrap: break-word; }
.wo-bill { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.wo-bill:last-of-type { border-bottom: 0; }
.wo-bill .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wo-bill .r { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; white-space: nowrap; }
.chip-file { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--brand); margin-top: 4px; max-width: 100%; overflow-wrap: anywhere; }
.chip-file::before { content: ""; width: 8px; height: 10px; border-radius: 2px; background: var(--copper); opacity: .7; flex: none; }
.chip-file:hover { border-color: var(--copper); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 12px 12px; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--surface); }
.timeline li.tenant::before { background: var(--info); }
.timeline li.note::before { background: var(--copper); }
.timeline p { margin: 3px 0 0; font-size: 13.5px; overflow-wrap: break-word; }
@media print { .wo-head .chev, .wo-filter, .prop-wo { display: none !important; } }

/* ---------- tenant insurance ---------- */
.ins-notice { margin: 18px 0 0; padding: 11px 16px; border-radius: 12px; font-size: 13.5px; border: 1px solid; }
.ins-notice b { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-right: 8px; color: #fff; }
.ins-notice.bad { background: var(--danger-soft); border-color: #f2cdca; color: #8a1c16; }
.ins-notice.bad b { background: var(--danger); }
.ins-notice.soon { background: var(--warn-soft); border-color: #f0dfb4; color: #6b4600; }
.ins-notice.soon b { background: #d99a1e; }

/* units table: status above the names, names get room */
.table td.tenants { min-width: 190px; }
.table td.tenants .pill { margin-bottom: 4px; }
.tenant-names { display: block; }
.card { overflow-x: auto; }

/* Documents: view (new tab) and download */
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.file-actions { display: inline-flex; gap: 6px; flex: none; }
.files .file-row { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid var(--line-2); color: var(--ink); }
.files .file-row:last-child { border-bottom: 0; }
.chip-file { gap: 8px; color: var(--ink); }
.chip-file .grow { min-width: 0; }
.lease-docs { margin-top: 6px; }
@media (max-width: 640px) {
  .files .file-row { flex-wrap: wrap; }
  .files .file-row .file-actions { width: 100%; padding-left: 46px; }
  .chip-file { flex-wrap: wrap; }
}

/* Payments received */
.pay-towards .pay-line { display: flex; justify-content: space-between; gap: 10px; max-width: 340px; }
.pay-towards .pay-line + .pay-line { margin-top: 2px; }
.pay-towards .pay-line .num { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
@container (max-width: 680px) {
  .pay-towards .pay-line { justify-content: flex-end; max-width: none; }
}
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-top: 1px solid var(--line-2); color: var(--ink-3); }
.pager-btns { display: inline-flex; gap: 6px; }
/* Leasing view (Viewing.RSVP data) */
.tabs { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 4px; margin: 0 0 16px; box-shadow: var(--shadow); }
.tabs button { border: 0; background: transparent; color: var(--ink-2); padding: 8px 18px; border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tabs button:hover { background: var(--surface-2); }
.tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.custom-range { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px 20px; margin-top: 16px; }
.custom-range label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.custom-range .input { width: auto; }
.lprop-filter { margin: 18px 0 0; }
.viewings { padding: 4px 0; }
.viewing { display: flex; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.viewing:last-child { border-bottom: 0; }
.viewing .when { flex: none; width: 128px; display: flex; flex-direction: column; gap: 2px; }
.viewing .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.vprop { font-weight: 600; color: var(--ink-2); }
.visitors { display: flex; flex-wrap: wrap; gap: 6px; }
.visitor { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 4px 3px 11px; font-size: 13px; font-weight: 600; }
.visitor:not(:has(.pill, .v-tag)) { padding-right: 11px; }
.visitor.cancelled { color: var(--ink-3); font-weight: 500; }
.v-tag { font-size: 11px; font-weight: 600; color: var(--ink-3); padding-right: 7px; }
.v-tag.amber { color: var(--warn); }
.listing { border-bottom: 1px solid var(--line-2); padding-bottom: 16px; }
.listing:last-child { border-bottom: 0; }
.listing .wo-facts { margin: 4px 20px 0; }
.reasons { padding: 14px 20px 4px; display: flex; flex-direction: column; gap: 9px; }
.reason { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.reason .grow { flex: 1; min-width: 0; }
.reason .bar { flex: none; width: 34%; height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.reason .bar i { display: block; height: 100%; background: var(--copper); border-radius: 99px; }
.bar i.w1 { width: 10%; } .bar i.w2 { width: 20%; } .bar i.w3 { width: 30%; } .bar i.w4 { width: 40%; } .bar i.w5 { width: 50%; }
.bar i.w6 { width: 60%; } .bar i.w7 { width: 70%; } .bar i.w8 { width: 80%; } .bar i.w9 { width: 90%; } .bar i.w10 { width: 100%; }
.reason b { width: 22px; text-align: right; }
.fb-lines { margin: 0; padding: 12px 20px 4px 38px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.wo-body .fb-lines { padding: 0 0 0 18px; }
.fb-lines li + li { margin-top: 4px; }
@container (max-width: 520px) {
  .viewing { flex-direction: column; gap: 6px; }
  .viewing .when { width: auto; flex-direction: row; gap: 8px; align-items: baseline; }
}
@media print { .tabs, .custom-range, .lprop-filter { display: none !important; } }
