/* AppFolio look: dark top bar, light icon sidebar with flyout menus, Inter 14px, blue links and buttons,
   gray table headers, underlined tabs, small light badges. Loaded last; overrides styles.css and the inline styles. */
:root {
  --primary: #3D6F79; --primary-dark: #2C535B; --link: #2F6672; --accent: #6E9DA6;
  --bg: #F7F7F8; --card: #FFFFFF; --text: #222326; --muted: #646D79; --line: #E5E6E9; --line2: #E0E0E0;
  --th: #EEEFF1; --side: #EDF0F3; --side-on: #D1E0F0; --top: #222326;
  --red: #B42318; --amber: #B54708; --green: #067647; --blue: #1365B5; --gray: #818A98;
  --radius: 4px; --tap: 44px;
}
html, body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--link); }
h1, h2, h3 { font-weight: 400; }
.bold, b, strong { font-weight: 600; }

/* ---------- top bar ---------- */
#topbar { background: var(--top); min-height: 56px; padding: calc(8px + var(--safe-top)) 12px 8px; gap: 10px; box-shadow: none; }
#topbar h1 { font-size: 17px; font-weight: 500; color: #fff; }
#brand { display: flex; align-items: center; flex: none; text-decoration: none; }
#hdrLogo { height: 32px; width: 32px; object-fit: contain; border-radius: 50%; background: var(--primary); padding: 6px; }
#backBtn:not([hidden]) + #brand { display: none; }
.icon-btn { color: #fff; font-size: 30px; }
#topSearch { flex: 1 1 380px; max-width: 420px; display: none; position: relative; }
#topSearch input { min-height: 38px; height: 38px; padding: 6px 10px 6px 34px; font-size: 14px; border: 0; border-radius: 4px; background: #fff; color: var(--text); }
#topSearch svg { position: absolute; left: 10px; top: 11px; width: 16px; height: 16px; color: #222326; pointer-events: none; }
#userBtn { display: none; flex: none; align-items: center; gap: 6px; background: none; border: 0; color: #fff; font: inherit; font-size: 14px; cursor: pointer; padding: 6px 4px; }
#userBtn svg { width: 18px; height: 18px; }
#userMenu { position: fixed; right: 10px; top: 56px; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.15); min-width: 200px; padding: 6px 0; }
#userMenu a, #userMenu button { display: block; width: 100%; text-align: left; padding: 9px 16px; font: inherit; font-size: 14px; color: var(--text); background: none; border: 0; text-decoration: none; cursor: pointer; }
#userMenu a:hover, #userMenu button:hover { background: #F2F4F7; }
#userMenu .um-h { padding: 6px 16px 8px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

/* ---------- left sidebar (desktop) ---------- */
#side { display: none; }
#flyout { display: none; }
@media (min-width: 900px) {
  body.has-side { padding-bottom: 0; }
  body.has-side #tabs, body.has-side .fab { display: none !important; }
  body.has-side #topbar { position: fixed; left: 0; right: 0; top: 0; height: 60px; padding: 0 16px 0 17px; }
  body.has-side #topbar h1 { flex: 0 1 auto; max-width: 28vw; }
  body.has-side #topSearch { display: block; margin-left: 8px; }
  body.has-side #userBtn { display: flex; margin-left: auto; }
  body.has-side #side { display: flex; flex-direction: column; gap: 6px; position: fixed; left: 0; top: 60px; bottom: 0; width: 64px; z-index: 30;
    background: var(--side); border-right: 1px solid var(--line); padding: 10px 8px; overflow-y: auto; }
  body.has-side main { margin: 60px 0 0 64px; max-width: none; padding: 20px 24px 40px; }
  body.has-side main > * { max-width: 1120px; }
  body.has-side.wide main > * { max-width: 1500px; }
  #side .si { position: relative; display: flex; align-items: center; justify-content: center; width: 47px; height: 47px; border-radius: 5px; color: var(--text); background: none; border: 0; cursor: pointer; text-decoration: none; padding: 0; }
  #side .si svg { width: 21px; height: 21px; }
  #side .si:hover { background: #E1E6EC; }
  #side .si.on { background: var(--side-on); }
  #side .si.open { background: var(--side-on); }
  #side .si .tip { display: none; position: absolute; left: 54px; top: 50%; transform: translateY(-50%); background: #222326; color: #fff; font-size: 12.5px; white-space: nowrap; padding: 4px 8px; border-radius: 4px; pointer-events: none; z-index: 2; }
  #side .si:hover .tip { display: block; }
  #side .si.open .tip { display: none; }
  #side .gap { flex: 1; }
  #flyout:not([hidden]) { display: block; position: fixed; left: 56px; z-index: 35; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 10px 0; min-width: 240px; max-height: calc(100vh - 80px); overflow-y: auto; }
  #flyout .fh { padding: 4px 18px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
  #flyout a { display: block; padding: 8px 18px; font-size: 15px; color: var(--text); text-decoration: none; white-space: nowrap; }
  #flyout a:hover { background: #F2F4F7; }
  #flyout a.on { color: var(--link); font-weight: 500; }
  #flyout .fsep { border-top: 1px solid var(--line); margin: 6px 0; }
  #toast { bottom: 24px; }
}

/* ---------- bottom tabs (phone) ---------- */
#tabs { background: #fff; border-top: 1px solid var(--line); }
#tabs a { color: #4A5260; font-weight: 500; font-size: 11px; padding: 7px 2px 8px; }
#tabs a .ico { height: 26px; display: flex; align-items: center; justify-content: center; }
#tabs a .ico svg { width: 22px; height: 22px; }
#tabs a.on { color: var(--primary); box-shadow: inset 0 3px 0 var(--primary); }
#tabs a.on .ico { color: var(--primary); }

/* ---------- page content ---------- */
main { padding: 14px 12px 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: none; padding: 14px 16px; }
.card h2, main > h2, .acmain > h2, .acmain h2 { font-size: 20px; font-weight: 400; color: var(--text); }
.card h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.acmain > .row.between h2, .row.between > h2 { font-size: 24px; }
@media (min-width: 900px) { .acmain > .row.between h2, main > .row.between > h2 { font-size: 28px; } }
hr { border-top-color: var(--line); }

/* forms */
label { font-size: 13.5px; font-weight: 400; color: var(--muted); margin: 12px 0 4px; }
input, select, textarea { font-size: 16px; padding: 8px 10px; border: 1px solid #B3B3B3; border-radius: 2px; min-height: 40px; color: var(--text); background: #fff; }
select { padding-right: 28px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(21,109,196,.18); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }
input[type=radio] { width: 18px; height: 18px; accent-color: var(--primary); }
.check { font-size: 15px; font-weight: 400; }
@media (min-width: 900px) { input, select, textarea { font-size: 14px; min-height: 36px; } }

/* buttons: blue filled primary, outlined secondary */
.btn { min-height: 40px; padding: 0 16px; border-radius: 4.6px; border: 1px solid var(--primary); font-weight: 400; font-size: 14.5px; background: var(--primary); color: #fff; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn:active { background: var(--primary-dark); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid #222326; }
.btn.ghost:hover { background: #F2F4F7; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn.danger:hover { background: #FEF3F2; }
.btn.go { background: #067647; border-color: #067647; }
.btn.stop { background: #B42318; border-color: #B42318; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 4.6px; }
.btn[disabled] { opacity: 1; background: #E5E6E9; border-color: #C9CDD3; color: #818A98; cursor: default; }
.btn.block { margin-top: 14px; }
.fab { background: var(--primary); width: 54px; height: 54px; font-size: 28px; box-shadow: 0 4px 12px rgba(0,0,0,.22); }

/* chips / filters */
.chip, a.chip { border: 1px solid #C9CDD3; background: #fff; border-radius: 4px; padding: 6px 12px; font-weight: 400; color: var(--text); font-size: 14px; }
.chip.on, a.chip.on { background: #E8F0FA; color: var(--link); border-color: var(--link); }

/* badges (AppFolio: small, uppercase, light) */
.status { font-size: 12px; font-weight: 500; letter-spacing: 0; padding: 2px 8px; border-radius: 3px; color: #1D2939; background: #E5E6E9; }
.s-New, .s-Received { background: #D1E0F0; color: #0B4A8B; }
.s-Assigned, .s-InProgress { background: #E4DDF5; color: #4A2D8C; }
.s-Scheduled { background: #D5EAEA; color: #103939; }
.s-Waiting, .s-OnHold { background: #FCEBD0; color: #7A4100; }
.s-WorkDone { background: #DFF0D5; color: #2E5A12; }
.s-Completed, .s-CompletedNoBillRequired { background: #D3F0DF; color: #05603A; }
.s-Canceled { background: #E5E6E9; color: #475467; }
.prio { font-weight: 600; font-size: 11.5px; letter-spacing: .03em; }
.p-Urgent { color: #B42318; } .p-High { color: #B54708; }

/* metrics */
.stat { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px 10px; }
.stat b { font-size: 24px; font-weight: 400; color: var(--text); }
.stat .small, .stat span { color: var(--link); }
.dtile { border-radius: 4px; border-color: var(--line); }
.dtile b { font-weight: 400; }
.banner { background: #D5EAEA; border: 1px solid #D5EAEA; color: #103939; border-radius: 5px; }
.banner a { color: #103939; }

/* lists */
.list-item { border-top-color: var(--line); }
.kv dt { color: var(--muted); }

/* tables: gray header, white rows, light lines */
table, .invtable { font-size: 14px; }
th, .invtable th, .jetable th { background: var(--th); color: var(--text); font-weight: 400; font-size: 13.5px; padding: 7px 8px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
td, .invtable td { padding: 8px 8px; border-bottom: 1px solid #EEF0F2; }
.invtable tr:hover td { background: #FAFBFC; }
.card > .table-wrap, .card > div > .table-wrap { margin: 0 -16px; }
.card > .table-wrap table th:first-child, .card > .table-wrap table td:first-child { padding-left: 16px; }
.card > .table-wrap table th:last-child, .card > .table-wrap table td:last-child { padding-right: 16px; }

/* accounting tabs: plain text tabs with a blue underline, like AppFolio */
.acnav { border-bottom: 1px solid var(--line); gap: 22px; margin: -2px 0 8px; padding: 0 2px; }
.acnav a { padding: 8px 2px 6px; font-weight: 400; font-size: 14.5px; color: var(--text); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.acnav a:hover { color: var(--link); }
.acnav a.on { color: var(--link); border-bottom-color: var(--link); }
.acsub { gap: 20px; margin: 0 0 14px; padding: 0 2px; }
.acsub a { padding: 4px 2px 3px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; color: var(--text); font-weight: 400; font-size: 14px; }
.acsub a.on { background: none; color: var(--link); border-bottom-color: var(--link); }
.acchips a { border-radius: 4px; font-weight: 400; color: var(--text); border-color: #C9CDD3; }
.acchips a.on { background: #E8F0FA; color: var(--link); border-color: var(--link); }

/* Tasks panel on the right */
.actasks { background: #fff; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 14px 18px; }
.actasks summary { font-size: 20px; font-weight: 400; }
.actasks a { border-bottom: 0; padding: 4px 0; color: var(--link); font-size: 14px; }
.actasks a:hover { text-decoration: underline; }
.actasks-h { font-weight: 600; font-size: 14px; margin-top: 14px; color: var(--text); }
@media (min-width: 1100px) { .actasks { top: 80px; min-height: 300px; } .acgrid { grid-template-columns: minmax(0,1fr) 230px; gap: 22px; } }
.acsearch { border-radius: 4px; }
.acsearch summary { color: var(--link); font-weight: 400; }

/* toast */
#toast { background: #222326; border-radius: 6px; }
#toast.err { background: #B42318; }

/* login */
.login.card, .login { border-radius: 6px; }
.login .btn.block { min-height: 44px; }

/* "More" menu cards read as a list */
a.card.row.between { padding: 12px 16px; margin-bottom: 0; border-radius: 0; border-bottom-width: 0; }
a.card.row.between:first-of-type { border-radius: 4px 4px 0 0; }
a.card.row.between:last-of-type { border-radius: 0 0 4px 4px; border-bottom-width: 1px; margin-bottom: 12px; }
a.card.row.between b { font-weight: 500; color: var(--link); }
a.card.row.between:hover { background: #FAFBFC; }

@media print { #side, #flyout, #userMenu { display: none !important; } body.has-side main { margin: 0 !important; } }

/* ---------- brand: QPM logo teal (buttons, links, active states) ---------- */
:root { --link: #2F6672; --side-on: #D7E7EA; }
.chip.on, a.chip.on, .acchips a.on { background: #E6F0F2; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 2px rgba(61,111,121,.2); }
#side .sl, #side .chev, #side .ssub, #side .sfoot { display: none; }

/* ---------- expanded sidebar with labels on wide screens (like AppFolio's open menu) ---------- */
@media (min-width: 1280px) {
  body.has-side #side { width: 250px; padding: 14px 12px; gap: 2px; }
  body.has-side main { margin-left: 250px; }
  #flyout:not([hidden]) { left: 240px; }
  #side .si { width: 100%; height: 46px; justify-content: flex-start; gap: 12px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--text); text-align: left; }
  #side .si svg { width: 19px; height: 19px; flex: none; }
  #side .si .sl { display: block; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #side .si .chev { display: flex; flex: none; transition: transform .15s; }
  #side .si .chev svg { width: 18px; height: 18px; }
  #side .si:hover .tip { display: none; }
  #side .sg { border-radius: 6px; }
  #side .sg.on { background: var(--side-on); }
  #side .sg.on > .si, #side .sg > .si.on { background: none; }
  #side a.si.on { background: var(--side-on); }
  #side .sg.exp > .si .chev { transform: rotate(180deg); }
  #side .sg.exp > .ssub { display: block; padding: 2px 0 8px; }
  #side .ssub a { display: block; padding: 8px 12px 8px 43px; font-size: 15.5px; color: var(--link); text-decoration: none; line-height: 1.3; }
  #side .ssub a:hover { text-decoration: underline; }
  #side .ssub a.on { color: #1D3E45; font-weight: 600; text-decoration: underline; }
  #side .sfoot { display: block; padding: 16px 12px 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
}
main a:not(.btn):not(.chip) { text-decoration: none; }
main a:not(.btn):not(.chip):hover { text-decoration: underline; }
.proptable td:first-child a { line-height: 1.5; }
/* People: A–Z bar and striped vendor list */
.azbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; font-size: 20px; }
.azbar a { padding: 2px 7px; border-radius: 4px; color: var(--link); text-decoration: none; }
.azbar a.off { color: #B8BEC6; pointer-events: none; }
.azbar a.on { background: var(--side-on); outline: 1px solid #A9C7CD; }
.striped tr:nth-child(even) td { background: #F1F3F5; }
td.clip { max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* General Settings hub and role permissions */
.hubgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 28px; }
.hubgrid section { margin-bottom: 14px; }
.hubgrid h3 { font-size: 15px; margin: 8px 0 6px; padding-bottom: 4px; border-bottom: 1px solid #E3E6EA; }
.hubi { display: block; padding: 3px 0; font-size: 14px; }
.hubi.off { color: #98A2B3; }
select.pv { min-width: 180px; padding: 4px 6px; }
select.pv.chg { border-color: var(--primary); box-shadow: 0 0 0 2px #D7E7EA; font-weight: 600; }
.pgrp > summary { cursor: pointer; padding: 2px 0; }
.cmpbox { position: relative; }
.cmpbox > summary { list-style: none; }
.cmpbox > summary::-webkit-details-marker { display: none; }
.rptab td:first-child { width: auto; }

/* User settings page (AppFolio "My Settings") */
.us-page { max-width: 980px; }
.us-sec h2 { font-size: 20px; }
.us-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 5px 0; }
.us-k { text-align: right; color: #475467; font-size: 14px; }
@media (max-width: 700px) { .us-row { grid-template-columns: 1fr; } .us-k { text-align: left; } }
.seg { display: inline-flex; border: 1px solid #98A2B3; border-radius: 6px; overflow: hidden; }
.seg label { margin: 0; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 6px 14px; border-left: 1px solid #98A2B3; font-size: 14px; min-width: 44px; text-align: center; }
.seg label:first-child span { border-left: 0; }
.seg input:checked + span { background: var(--primary); color: #fff; }
.pslist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 12px; max-height: 260px; overflow: auto; margin-top: 6px; }
tr.off td, .check.off { color: #98A2B3; }
/* Report display settings (apply on report screens) */
body.rpt-route.rpt-fs-sm main table { font-size: 12px; }
body.rpt-route.rpt-fs-lg main table { font-size: 16px; }
body.rpt-route.rpt-rh-compact main table td, body.rpt-route.rpt-rh-compact main table th { padding-top: 2px; padding-bottom: 2px; }
body.rpt-route.rpt-rh-relaxed main table td, body.rpt-route.rpt-rh-relaxed main table th { padding-top: 10px; padding-bottom: 10px; }
body.rpt-route.rpt-alt main table tr:nth-child(even) td { background: #F4F6F8; }
body.rpt-route.rpt-fit main table { width: 100%; table-layout: fixed; }
body.rpt-route.rpt-fit main table td { overflow-wrap: anywhere; }
body.rpt-route.rpt-nohead main .rpt-filters, body.rpt-route.rpt-nohead main form.rptf { display: none; }

/* ---------- Maintenance section ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }
.wol-bar { padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F4F5F7; }
.wol-row { display: grid; grid-template-columns: 28px 130px minmax(140px, 1.2fr) minmax(160px, 1.6fr) minmax(130px, 1fr) 110px; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start; }
.wol-row:hover { background: #FAFBFC; }
.wol-row .status { font-size: 11px; }
@media (max-width: 820px) {
  .wol-row { grid-template-columns: 26px 1fr 1fr; }
  .wol-desc { grid-column: 2 / 4; }
  .wol-who, .wol-when { grid-column: auto; }
}
.sch { overflow-x: auto; }
.sch-row { display: grid; grid-template-columns: 190px minmax(640px, 1fr); border-bottom: 1px solid var(--line); min-height: 44px; }
.sch-lab { padding: 8px 10px; border-right: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.sch-lane { position: relative; background: repeating-linear-gradient(90deg, transparent 0, transparent calc(100% / 12 - 1px), var(--line) calc(100% / 12 - 1px), var(--line) calc(100% / 12)); }
.sch-hours { display: grid; grid-template-columns: repeat(12, 1fr); background: none; font-size: 11px; color: var(--muted, #667085); }
.sch-hours span { padding: 6px 4px; border-left: 1px solid var(--line); }
.sch-head { min-height: 30px; background: #F4F5F7; }
.sch-g { padding: 6px 10px; background: #F4F5F7; font-weight: 700; border-bottom: 1px solid var(--line); }
.sch-b { position: absolute; top: 5px; bottom: 5px; border-radius: 4px; padding: 3px 6px; font-size: 12px; color: #fff; background: #2E6FD8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.sch-b.s-WorkDone, .sch-b.s-Completed, .sch-b.s-CompletedNoBillRequired { background: #3BA272; }
.sch-b.s-Waiting { background: #B54708; }
.turn-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 700px) { .turn-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tcat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; text-align: left; }
.tcat b { font-weight: 600; font-size: 13px; }
.tcat.tc-NotStarted { border-color: #C9CDD3; background: #F4F5F7; }
.tcat.tc-InProgress { border-color: #2E6FD8; background: #EEF4FD; }
.tcat.tc-Completed { border-color: #3BA272; background: #ECF7F1; }
.tcat.tc-NA { color: #667085; }
.late { color: #B42318; }
.pbar { height: 10px; background: #EEF0F3; border-radius: 6px; overflow: hidden; margin: 10px 0 4px; }
.pbar span { display: block; height: 100%; background: #2E6FD8; }
.mbar { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 8px; }
.mbar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.mbar-stack { width: 100%; max-width: 56px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; min-height: 2px; }
.mbar-stack span { display: block; min-height: 2px; border-top: 2px solid #fff; }
.acchips a.off { color: #98A2B3; cursor: default; border-style: dashed; }
.grid4[hidden], .card[hidden] { display: none !important; }
/* Accounting suite */
.afpill { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: #EEF0F3; color: #475467; white-space: nowrap; text-decoration: none; }
.afpill.on { background: #E3EEFA; color: #1D4F91; }
.afpill.warn { background: #FEF0C7; color: #93370D; }
.afpill.bad { background: #FEE4E2; color: #B42318; }
.xfrow { display: grid; grid-template-columns: auto minmax(0,1.3fr) 24px minmax(0,1.3fr) .8fr .8fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; margin: 0 0 6px; cursor: pointer; }
.xfgroup .xfrow, #xfList > .xfrow:not(:has(input)) { grid-template-columns: minmax(0,1.3fr) 24px minmax(0,1.3fr) .8fr .8fr auto; }
.xfside b { display: block; } .xfarrow { color: #667085; font-size: 18px; text-align: center; }
.xfrem { grid-column: 1 / -1; margin-top: -4px; }
.xfbar { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 760px) { .xfrow, .xfgroup .xfrow { grid-template-columns: auto 1fr 1fr; } .xfarrow { display: none; } .xfbar { grid-template-columns: 1fr 1fr; } }
.diag h3 { font-size: 16px; }
/* Leasing */
.vacard { display: grid; grid-template-columns: 150px minmax(0,1fr) 300px; gap: 16px; align-items: start; }
.vacimg { width: 150px; height: 110px; background: #EEF0F3; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 34px; color: #98A2B3; }
.vacimg.sm { width: 110px; height: 80px; font-size: 26px; }
.vacmain .bold { font-size: 17px; }
.vacstats { display: flex; gap: 0; margin-top: 10px; }
.vacstats > div { padding: 0 14px; border-left: 1px solid var(--line); font-size: 17px; } .vacstats > div:first-child { padding-left: 0; border-left: 0; }
.vacstats span { display: block; font-size: 11px; color: #667085; letter-spacing: .04em; }
.vacband { background: #12715B; color: #fff; text-align: center; padding: 6px; border-radius: 3px; font-weight: 600; margin-bottom: 8px; }
.vacband.bad { background: #B42318; } .vacband.notice { background: #667085; }
.vacpost { width: 100%; } .vacpost td { padding: 3px 4px; } .vacpost td:last-child { text-align: right; } .vacpost .btn { min-width: 74px; }
.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; } .bulkbar a { color: var(--link); }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.lbars { display: flex; flex-direction: column; gap: 8px; } .lbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 2px; }
.lbar-l { font-size: 13px; } .lbar-t { height: 14px; background: #EEF0F3; border-radius: 2px; overflow: hidden; display: inline-block; width: calc(100% - 56px); vertical-align: middle; }
.lbar-t > div { height: 100%; background: var(--brand, #12715B); border-radius: 2px 4px 4px 2px; } .lbar-v { display: inline-block; width: 50px; text-align: right; font-size: 13px; }
.lbar { display: block; } .lbar-l { display: block; }
.stat.big b { font-size: 30px; }
.checkcols { columns: 3 220px; margin: 6px 0 10px; } .checkcols .check { display: flex; break-inside: avoid; margin: 2px 0; }
@media (max-width: 900px) { .vacard { grid-template-columns: 1fr; } .vacimg { width: 100%; } .grid3 { grid-template-columns: 1fr; } }
/* Property page */
.ppcard { padding-top: 10px; }
.pphead { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); margin: 0 -16px 10px; padding: 0 16px 8px; }
.pphead h2 { margin: 0; font-size: 19px; font-weight: 600; }
.ppkv { display: grid; grid-template-columns: minmax(160px, 34%) 1fr; gap: 6px 16px; margin: 0; }
.ppkv dt { color: #475467; text-align: right; } .ppkv dd { margin: 0; white-space: pre-wrap; }
.ppimg { width: 150px; height: 90px; background: #EEF0F3; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 38px; color: #98A2B3; }
.ppphotos { display: flex; flex-wrap: wrap; gap: 8px; } .ppph img { width: 120px; height: 90px; object-fit: cover; border-radius: 4px; background: #EEF0F3; display: block; }
.ppnote { margin: 0 0 8px; padding: 0; overflow: hidden; } .ppnote-h { display: flex; justify-content: space-between; gap: 8px; background: #E0F2FE; padding: 6px 10px; font-size: 13px; }
.ppnote-b { padding: 8px 10px; white-space: pre-wrap; } .ppaudit { max-height: 340px; overflow: auto; }
.afnote { background: #ECFDF3; border: 1px solid #ABEFC6; border-radius: 4px; padding: 8px 10px; margin-bottom: 8px; }
.bdwrap { max-height: 70vh; overflow: auto; } .bdtable td, .bdtable th { white-space: nowrap; padding: 4px 6px; } .bdtable .bdname { min-width: 220px; white-space: normal; }
.bdtable .bdin { width: 84px; padding: 3px 5px; text-align: right; } .bdtable.hide-zero tr.bdz { display: none; } .bdsec td { background: #F2F4F7; }
.bdgood td { background: #ECFDF3; } .bdbad td { background: #FEF3F2; }
@media (max-width: 700px) { .ppkv { grid-template-columns: 1fr; } .ppkv dt { text-align: left; font-weight: 600; } }
.ppvids { display: flex; flex-wrap: wrap; gap: 10px; } .ppvid { margin: 0; width: 260px; } .ppvid video { width: 100%; max-height: 180px; background: #101828; border-radius: 4px; display: block; }
.photos .ph video { width: 100%; height: 100%; object-fit: cover; background: #101828; display: block; }

/* ---------- Dashboard (AppFolio-style cards) ---------- */
.dcard { padding: 0; overflow: hidden; }
.dcard-h { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 8px; }
.dtog { background: none; border: 0; font-size: 20px; font-weight: 400; color: var(--text); padding: 12px 8px; cursor: pointer; text-align: left; flex: 1; }
.dchev { display: inline-block; font-size: 14px; color: var(--muted); transition: transform .15s; margin-right: 4px; }
.dcard.shut .dchev { transform: rotate(-90deg); }
.dcard.shut .dcard-h { border-bottom: 0; }
.dcard.shut .dcard-b { display: none; }
.dcard-b { padding: 14px 16px; }
.dsub { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.dsub a { color: inherit; }
.dboxes { display: flex; flex-wrap: wrap; gap: 10px; }
.dbox { flex: 1 1 140px; min-width: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 6px; padding: 12px 8px; color: inherit; text-decoration: none; box-shadow: inset 0 3px 0 var(--tone, transparent); }
a.dbox:hover { border-color: var(--primary); }
.dbox b { font-size: 24px; font-weight: 600; color: var(--tone, var(--link)); line-height: 1.15; }
.dbox span { font-size: 13px; color: var(--muted); }
.dbig { font-size: 30px; font-weight: 600; line-height: 1; margin-bottom: 8px; color: var(--link); }
.dbig span { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-left: 6px; }
.dseg { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: #fff; }
.dseg i { display: block; min-width: 3px; }
.dlegend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 13px; }
.dlegend span { display: inline-flex; align-items: center; gap: 6px; }
.dlegend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dleasing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dleasing2 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; margin-top: 18px; }
.dnotif { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dfilters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.dfilters > div { min-width: 180px; }
.dfilters label { margin-top: 0; }
.dseg-tog .btn.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.dtable td.num, .dtable th.num { text-align: right; }
@media (max-width: 760px) { .dleasing, .dleasing2, .dnotif { grid-template-columns: 1fr; } .dtog { font-size: 17px; } }

/* ---------- Tasks & workflows ---------- */
#side .si { position: relative; }
.tbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tbadge.late { background: #B42318; }
.tbadge[hidden] { display: none; }
.ttable tr.tdone td { opacity: .55; }
.ttable tr.tdone a.bold { text-decoration: line-through; }
.tchk, [data-tdone] { width: 18px; height: 18px; cursor: pointer; }
.tgrp { margin: 14px 0 6px; font-size: 15px; }
.wfstep { border-left: 3px solid var(--primary); }
.wfgroups { display: flex; flex-wrap: wrap; gap: 6px 16px; max-height: 220px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.ttable th, .dcard .dtable th { text-align: left; }
.ttable th.num, .dcard .dtable th.num { text-align: right; }

/* ---------- Lease templates & e-sign ---------- */
.ltdoc { font-size: 14px; line-height: 1.55; }
.ltdoc .lt-pg { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin: 18px 0 2px; }
.ltdoc .lt-sec h4 { margin: 12px 0 2px; }
.ltdoc .lt-init { display: inline-block; font-size: 11px; color: var(--muted); border: 1px dashed #C9CED6; border-radius: 6px; padding: 2px 8px; margin-top: 4px; }
.ltdoc table { border-collapse: collapse; } .ltdoc td, .ltdoc th { border: 1px solid var(--line); padding: 3px 6px; }
.ltpage { border-left: 3px solid var(--primary); }
.ltsec textarea { margin-top: 6px; }
/* ---------- Communication: letters and PDF forms ---------- */
.cmpaper { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px 34px; font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.45; color: #111827; max-width: 816px; }
.cmpaper p { margin: 0 0 6px; } .cmpaper ul, .cmpaper ol { margin: 4px 0 8px 22px; padding: 0; }
.cmpaper table { border-collapse: collapse; } .cmpaper td, .cmpaper th { border: 1px solid #D0D5DD; padding: 3px 6px; }
.cmed { min-height: 360px; outline: none; margin-top: 6px; }
.cmed:focus { box-shadow: 0 0 0 2px var(--accent); }
.cmbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 10px; padding: 6px; background: #F3F5F7; border: 1px solid var(--line); border-radius: 8px; }
.cmbar button { min-height: 30px; padding: 2px 10px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 13px; cursor: pointer; width: auto; color: inherit; }
.cmbar button:hover { background: #E7EBEF; }
.cmmiss { background: #FFF4CC; color: #7A4B00; border-radius: 3px; padding: 0 2px; }
.cmpages { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cmpg { position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); max-width: 100%; margin-bottom: 8px; }
.cmpg canvas { display: block; width: 100%; height: auto; }
.cmlay { position: absolute; inset: 0; }
.cff { position: absolute; box-sizing: border-box; border: 1.5px solid; border-radius: 2px; font: 10px/1.1 Helvetica, Arial, sans-serif; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; }
.cff > span { padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; font-size: 9px; }
.cff.w-internal { background: rgba(120,130,145,.16); border-color: #8A94A3; color: #3A4250; }
.cff.t-auto { background: rgba(46,144,250,.16); border-color: #2E90FA; color: #1849A9; }
.cff.w-tenant, .cff.w-owner { background: rgba(255,214,10,.25); border-color: #E0A800; color: #7A4B00; }
.cff.sel { outline: 2px solid #D92D20; outline-offset: 1px; z-index: 2; }
.cff .rz { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; background: #D92D20; cursor: nwse-resize; }
.cff.fill { cursor: default; }
.cff.fill input[type=text], .cff.fill input:not([type]) { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 2px; margin: 0; min-height: 0; font: inherit; color: #0D1A59; border-radius: 0; box-shadow: none; }
.cff.fill input[type=checkbox] { width: 100%; height: 100%; margin: 0; }
.legend .cff { position: static; padding: 2px 6px; margin-right: 4px; cursor: default; }
.cfgrid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.cfside { position: sticky; top: 70px; }
.cfpal { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cfpal .btn.on { background: var(--primary); color: #fff; }
@media (max-width: 900px) { .cfgrid { grid-template-columns: 1fr; } .cfside { position: static; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grid2 > .span2 { grid-column: 1 / -1; }
.cmtok { display: inline-block; background: #E6F0F2; color: #1F4E57; border: 1px solid #9CC3CA; border-radius: 4px; padding: 0 4px; font-size: .92em; line-height: 1.3; user-select: all; }
.cmtable td, .cmtable th { text-align: left; vertical-align: top; }
.cmtable td.num, .cmtable th.num { text-align: right; }
@media (min-width: 1100px) { .acgrid.noside { grid-template-columns: minmax(0,1fr); } }

/* Reports (v54) */
.rFin td:first-child, .rFin th:first-child { white-space: nowrap; position: sticky; left: 0; background: var(--card, #fff); z-index: 1; }
.rFin tr.rStrong td { border-top: 2px solid #c9d1db; }
.rTable td { white-space: nowrap; }
.rTable tr.rGroup td { position: sticky; left: 0; }
.rpick { position: relative; }
.rpick summary { list-style: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpick summary::-webkit-details-marker { display: none; }
@media print { .rFin td:first-child, .rFin th:first-child { position: static; } }

/* Move-out and owner close (v55) */
.moSum { margin: 10px 0; }
.moSum table { width: 100%; }
.moStmt { max-width: 760px; margin-left: auto; margin-right: auto; line-height: 1.45; }
.moStmt table { width: 100%; }
.pkT { width: 100%; margin-bottom: 6px; }
.pkPage h3 { margin: 16px 0 6px; font-size: 15px; }
.big { font-size: 22px; font-weight: 700; }
@media print {
  .moStmt, .pkPage { box-shadow: none !important; border: 0 !important; }
  .pkPage { break-after: page; page-break-after: always; }
  .pkPage:last-child { break-after: auto; page-break-after: auto; }
}
.moT { width: 100%; table-layout: fixed; }
.moT th:first-child, .moT td:first-child { width: 120px; }
.moT th:last-child, .moT td:last-child { width: 130px; }
.odBank { min-width: 150px; }
.odRef { width: 80px; }
.odAmt { min-width: 90px; }

/* Property Calendar (v57) */
.cal-move_in { --c: #2E7D32; --b: #E6F4EA; } .cal-move_out { --c: #C62828; --b: #FDECEA; } .cal-lease_end { --c: #B26A00; --b: #FFF4DE; }
.cal-act_open { --c: #1D5FA8; --b: #E7F0FB; } .cal-act_done { --c: #667085; --b: #F2F4F7; } .cal-showing { --c: #7B3FA0; --b: #F3EAF8; } .cal-work_order { --c: #2C6B75; --b: #E3F1F3; }
.calEv { display: block; font-size: 12px; line-height: 1.3; padding: 2px 6px; margin: 2px 0; border-radius: 5px; background: var(--b); color: var(--c); border-left: 3px solid var(--c); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calEv:hover { filter: brightness(.96); }
.cal-act_done.calEv { text-decoration: line-through; }
.calLegend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; color: var(--muted, #667085); }
.calLegend i, .calDot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 4px; vertical-align: -1px; }
.calWrap { padding: 8px; overflow-x: auto; }
.calDow, .calGrid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); }
.calDow div { font-size: 12px; font-weight: 650; color: var(--muted, #667085); padding: 4px 6px; }
.calCell { min-height: 108px; border: 1px solid #EEF0F2; margin: -1px 0 0 -1px; padding: 4px; }
.calCell.out { background: #FAFBFC; } .calCell.out .calNum { color: #98A2B3; }
.calCell.today { background: #FFFBEA; }
.calNum { font-size: 12px; font-weight: 650; color: inherit; text-decoration: none; }
.calMore { font-size: 12px; display: block; margin-top: 2px; }
.calWeek { min-width: calc(60px + var(--cols) * 120px); }
.calWeek.one { min-width: 0; }
.calHead, .calAll, .calBody { display: grid; grid-template-columns: 60px repeat(var(--cols), minmax(0, 1fr)); }
.calHead a { font-size: 13px; font-weight: 650; padding: 6px; text-align: center; color: inherit; text-decoration: none; border-bottom: 1px solid #E4E7EC; }
.calHead a.today, .calCol.today { background: #FFFBEA; }
.calAll > div { border-left: 1px solid #EEF0F2; border-bottom: 1px solid #E4E7EC; padding: 2px; min-height: 28px; }
.calLbl { font-size: 11px; color: var(--muted, #667085); padding: 6px 4px; border-left: 0 !important; }
.calBody { position: relative; }
.calHours div { font-size: 11px; color: var(--muted, #667085); border-top: 1px solid #EEF0F2; padding: 2px 4px; box-sizing: border-box; }
.calCol { position: relative; border-left: 1px solid #EEF0F2; background-image: repeating-linear-gradient(#EEF0F2 0 1px, transparent 1px 44px); }
.calAbs { position: absolute; left: 2px; right: 2px; margin: 0; white-space: normal; z-index: 1; }
.calWho { display: block; font-size: 11px; opacity: .8; }
.calAgDay { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #EEF0F2; }
.calAgDate { width: 96px; flex: 0 0 auto; font-weight: 650; font-size: 13px; }
.calAgDate.today { color: var(--primary); }
.calAg { display: flex; gap: 10px; padding: 6px 8px; margin: 3px 0; border-radius: 8px; background: var(--b); border-left: 3px solid var(--c); color: inherit; text-decoration: none; }
.calAg .grow { display: flex; flex-direction: column; }
.calAgT { width: 92px; flex: 0 0 auto; font-size: 13px; color: var(--c); font-weight: 650; }
.calPick { max-height: 220px; overflow: auto; border: 1px solid var(--line, #ddd); border-radius: 8px; padding: 6px; margin-top: 6px; }
@media (max-width: 700px) { .calAgDay { flex-direction: column; gap: 2px; } .calAgDate { width: auto; } }
@media print { .calBar .btn, #calCust { display: none; } }

/* Checks (v58): letter page, three 3.5in parts; check fields placed for standard voucher check stock */
.ckPages { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.ckPage { width: 8.5in; height: 11in; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); position: relative; overflow: hidden; font-family: Arial, Helvetica, sans-serif; color: #000; }
.ckThird { height: 3.6667in; position: relative; box-sizing: border-box; }
.ckCheck { position: absolute; inset: 0; transform: translate(var(--ox), var(--oy)); font-size: 11pt; }
.ckCo { position: absolute; left: 0.4in; top: 0.35in; font-weight: bold; font-size: 10pt; line-height: 1.25; }
.ckCo span { font-weight: normal; font-size: 9pt; }
.ckNo { position: absolute; right: 0.45in; top: 0.35in; font-weight: bold; }
.ckDate { position: absolute; right: 1.6in; top: 0.85in; }
.ckPayee { position: absolute; left: 1.15in; top: 1.32in; width: 5in; font-weight: bold; }
.ckAmt { position: absolute; right: 0.55in; top: 1.32in; font-weight: bold; }
.ckWords { position: absolute; left: 0.45in; top: 1.72in; width: 6.2in; white-space: nowrap; overflow: hidden; font-size: 10pt; }
.ckAddr { position: absolute; left: 1.0in; top: 2.1in; font-size: 10pt; line-height: 1.25; }
.ckMemo { position: absolute; left: 0.75in; top: 3.0in; font-size: 9pt; }
.ckSig { position: absolute; right: 0.6in; top: 2.55in; width: 2.6in; height: 0.55in; text-align: center; }
.ckSig img { max-height: 0.55in; max-width: 2.6in; }
.ckStub { position: absolute; inset: 0.3in 0.4in; transform: translate(var(--ox), var(--oy)); font-size: 9pt; }
.ckStubHead { display: flex; justify-content: space-between; border-bottom: 1px solid #000; padding-bottom: 3px; }
.ckStubPayee { margin: 4px 0; font-weight: bold; }
.ckStub table { width: 100%; border-collapse: collapse; margin-top: 2px; }
.ckStub th, .ckStub td { text-align: left; padding: 1px 4px; border-bottom: 1px solid #ddd; font-size: 8.5pt; }
.ckStub .num { text-align: right; }
@media print {
  @page { size: letter; margin: 0; }
  body.ckprint-route #topbar, body.ckprint-route #side, body.ckprint-route .tabs, body.ckprint-route nav, body.ckprint-route .noprint { display: none !important; }
  body.ckprint-route main, body.ckprint-route #view { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  body.ckprint-route .ckPages { display: block; gap: 0; }
  body.ckprint-route .ckPage { box-shadow: none; page-break-after: always; break-after: page; }
  body.ckprint-route .ckPage:last-child { page-break-after: auto; break-after: auto; }
}

/* Property Budget (v59) */
.bdbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; } .bdbar select { width: auto; }
.bddanger { color: #B42318 !important; }
.bdvers { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; border-bottom: 1px solid var(--line, #e3e6ea); padding-bottom: 6px; }
.bdver { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; } .bdver.on > a { font-weight: 700; border-bottom: 2px solid var(--accent, #2f6f6a); }
.bdcurrent { font-size: 10px; font-weight: 700; background: #E6F2EF; color: #1F5E57; padding: 1px 5px; border-radius: 4px; }
.bdkebab { border: 0; background: none; cursor: pointer; font-size: 16px; padding: 0 4px; color: inherit; }
.bddrop { position: relative; display: inline-block; }
.bdmenu { position: absolute; z-index: 30; top: 100%; left: 0; min-width: 220px; background: var(--card, #fff); border: 1px solid var(--line, #d0d5dd); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); padding: 6px; }
.bdmenu.right { left: auto; right: 0; } .bdmenu a, .bdmenu label, .bdmenu .bdfile { display: block; padding: 6px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.bdmenu a:hover, .bdmenu .bdfile:hover { background: rgba(0,0,0,.05); }
.bdtools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.bdtable thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 2; }
.bdtable .bdck { width: 26px; } .bdtable .bdname { min-width: 230px; }
.bdtable .bdnote { width: 180px; padding: 3px 5px; }
.bdtable tr.bdhead td { font-weight: 600; } .bdtable tr.bdsec td { background: #F2F4F7; font-weight: 700; }
.bdtable tr.bdsub td { background: #FAFBFC; border-top: 0; } .bdtable tr.bdcmp td { color: #1F5E57; }
.bdtw { border: 0; background: none; cursor: pointer; padding: 0 2px; font-size: 12px; color: inherit; }
.bdtable.hide-calc .bdcol-calc, .bdtable.hide-prior .bdcol-prior, .bdtable.hide-total .bdcol-total, .bdtable.hide-months .bdcol-months, .bdtable.hide-note .bdcol-note { display: none; }
.bdcalc { white-space: nowrap; }
.bdpulse { box-shadow: 0 0 0 3px rgba(47,111,106,.35); }
body.bdfullscreen .bdcard { position: fixed; inset: 0; z-index: 50; margin: 0; border-radius: 0; overflow: auto; }
body.bdfullscreen .bdwrap { max-height: calc(100vh - 90px); }
.bdmodal { position: fixed; inset: 0; background: rgba(16,24,40,.45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px; overflow: auto; }
.bdmodal-box { width: min(760px, 100%); max-height: 86vh; overflow: auto; }
.bdmodal-box table { margin-top: 8px; }
@media (prefers-color-scheme: dark) { .bdtable tr.bdsec td { background: rgba(255,255,255,.06); } .bdtable tr.bdsub td { background: rgba(255,255,255,.03); } .bdcurrent { background: rgba(47,111,106,.35); color: inherit; } }

/* Transfer Tenant (v60) */
.trSum td:first-child, #trTot td:first-child { width: 38%; white-space: nowrap; }
.trTop { gap: 12px; align-items: start; } .trTop .card { margin: 0; }
/* Collections (v73) */
details.inl { margin: 2px 0; } details.inl > summary { cursor: pointer; color: var(--accent, #2563eb); } details.inl[open] > form { margin: 6px 0 8px; padding: 8px; border: 1px solid var(--line, #e5e7eb); border-radius: 8px; min-width: 220px; }
tr.hl > td { background: rgba(250, 204, 21, .12); }
/* Tags, custom fields, mentions, search (v74) */
.mention { color: var(--primary, #1f5fbf); font-weight: 600; background: rgba(31, 95, 191, .08); border-radius: 4px; padding: 0 2px; }
.mpick { position: absolute; z-index: 30; background: #fff; border: 1px solid #CBD2DB; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.12); margin-top: 2px; min-width: 200px; display: flex; flex-direction: column; }
.mpick[hidden] { display: none; } .mpick button { all: unset; padding: 8px 12px; cursor: pointer; font-size: 14px; } .mpick button.on, .mpick button:hover { background: #EEF4FC; }
.tagchip { display: inline-flex; align-items: center; gap: 2px; padding: 3px 9px; border-radius: 99px; background: #EEF0F2; font-size: 13px; margin: 2px 2px 2px 0; }
.tagx { all: unset; cursor: pointer; color: #6B7280; padding: 0 2px; font-size: 15px; line-height: 1; }
a.mnr { display: block; color: inherit; text-decoration: none; } a.mnr.unread { border-left: 3px solid var(--primary, #1f5fbf); padding-left: 9px; background: #F6F9FE; }
a.gsr { display: block; color: inherit; text-decoration: none; } a.gsr:hover { background: #F6F8FA; }
/* Type-ahead global search (v76) */
#gsDrop { position: absolute; left: 0; top: calc(100% + 4px); width: min(600px, 92vw); max-height: 78vh; overflow-y: auto; background: #fff; color: var(--text); border: 1px solid #CBD2DB; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.22); z-index: 60; text-align: left; }
#gsDrop[hidden] { display: none; }
.gsHead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid #EEF0F2; }
.gsHead a { color: var(--primary); font-weight: 600; text-decoration: none; }
.gsSec { background: var(--primary, #1f5fbf); color: #fff; font-weight: 600; font-size: 16px; padding: 10px 14px; position: sticky; top: 0; z-index: 1; }
.gsItem { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #EEF0F2; cursor: pointer; font-size: 14px; line-height: 1.45; }
.gsItem:hover, .gsItem.on { background: #EEF4FC; }
.gsL { min-width: 0; flex: 1; } .gsR { text-align: right; flex: none; max-width: 45%; }
.gsName { color: var(--primary); font-weight: 600; text-decoration: none; } .gsMail { text-decoration: none; color: var(--primary); font-size: 13px; }
.gsSub { color: #4B5563; font-size: 13px; overflow-wrap: anywhere; } .gsEm { color: #374151; }
.gsActs { font-size: 13px; color: #4B5563; margin-top: 2px; } .gsActs a { color: var(--primary); text-decoration: none; margin: 0 8px 0 4px; white-space: nowrap; }
.gsActs a + a { border-left: 1px solid #CBD2DB; padding-left: 8px; margin-left: 0; }
.gsBadge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #E8F3E9; color: #1E5B2A; border-radius: 3px; padding: 2px 6px; margin-bottom: 4px; }
.gsTel { color: var(--primary); text-decoration: none; }
.gsPage .gsItem { padding: 10px 4px; }
body.has-side #topbar { z-index: 40; }

/* v78 Report Builder charts */
:root { --rb0: #2a78d6; --rb1: #eb6834; --rb2: #1baf7a; --rb3: #eda100; --rb4: #e87ba4; --rb5: #008300; --rb6: #6250d6; --rb7: #e34948; }
@media (prefers-color-scheme: dark) { :root { --rb0: #3987e5; --rb1: #d95926; --rb2: #199e70; --rb3: #c98500; --rb4: #d55181; --rb5: #0ca30c; --rb6: #9085e9; --rb7: #e66767; } }
.rbS0 { fill: var(--rb0); stroke: var(--rb0); } .rbLegend i.rbS0 { background: var(--rb0); }
.rbS1 { fill: var(--rb1); stroke: var(--rb1); } .rbLegend i.rbS1 { background: var(--rb1); }
.rbS2 { fill: var(--rb2); stroke: var(--rb2); } .rbLegend i.rbS2 { background: var(--rb2); }
.rbS3 { fill: var(--rb3); stroke: var(--rb3); } .rbLegend i.rbS3 { background: var(--rb3); }
.rbS4 { fill: var(--rb4); stroke: var(--rb4); } .rbLegend i.rbS4 { background: var(--rb4); }
.rbS5 { fill: var(--rb5); stroke: var(--rb5); } .rbLegend i.rbS5 { background: var(--rb5); }
.rbS6 { fill: var(--rb6); stroke: var(--rb6); } .rbLegend i.rbS6 { background: var(--rb6); }
.rbS7 { fill: var(--rb7); stroke: var(--rb7); } .rbLegend i.rbS7 { background: var(--rb7); }
.rbChart { position: relative; margin: 8px 0 12px; }
.rbChart svg { width: 100%; height: auto; display: block; }
.rbGrid { stroke: var(--line, #E5E6E9); stroke-width: 1; }
.rbGrid.rbZero { stroke: #9AA3AE; }
.rbTick { font-size: 11px; fill: var(--muted, #646D79); }
path.rbBar { stroke: none; }
polyline[class^="rbS"] { fill: none !important; }
circle.rbDot { stroke: var(--card, #fff); stroke-width: 2; }
.rbHit { fill: transparent; stroke: none; }
.rbLegend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text, #222326); margin-bottom: 4px; }
.rbLegend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.rbTip { position: absolute; pointer-events: none; background: var(--card, #fff); color: var(--text, #222326); border: 1px solid var(--line, #E5E6E9); border-radius: 6px; padding: 4px 8px; font-size: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.12); white-space: nowrap; z-index: 5; }
.rbFxRow input, .rbFxRow select { margin: 0; }

/* v81 marketing flyer */
.flyer { background: #fff; color: #1a1d21; border: 1px solid var(--line, #E5E6E9); border-radius: 12px; padding: 22px; max-width: 760px; margin: 0 auto; }
.flyHead { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.flyLogo { height: 46px; width: auto; }
.flyTitle { font-size: 26px; font-weight: 700; line-height: 1.15; }
.flyAddr { color: #555b63; }
.flyPhoto { height: 320px; border-radius: 10px; background: #eef0f3 center/cover no-repeat; }
.flyNo { display: flex; align-items: center; justify-content: center; font-size: 64px; }
.flyFacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0; text-align: center; }
.flyFacts div { background: #f4f6f8; border-radius: 8px; padding: 8px 4px; }
.flyFacts b { display: block; font-size: 22px; }
.flyFacts span { font-size: 12px; color: #555b63; }
.flyBody { display: grid; grid-template-columns: 1fr 190px; gap: 16px; }
.flyAvail { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.flyText ul { columns: 2; padding-left: 18px; margin: 6px 0; }
.flyPets { font-size: 13px; color: #555b63; }
.flyQr { text-align: center; font-size: 12px; color: #555b63; }
.flyQr svg { width: 180px; height: 180px; display: block; margin: 0 auto 4px; }
.flyFoot { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e5e6e9; text-align: center; font-weight: 600; }
@media (max-width: 600px) { .flyBody { grid-template-columns: 1fr; } .flyFacts { grid-template-columns: repeat(2, 1fr); } .flyPhoto { height: 200px; } }
@media print {
  body.flyer-print * { visibility: hidden; }
  .flyer, .flyer * { visibility: visible; }
  .flyer { position: absolute; left: 0; top: 0; width: 100%; max-width: none; border: none; padding: 0; }
  .flyPhoto { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* v82 end of management checklist */
.emList { list-style: none; padding: 0; margin: 0 0 12px; }
.emList li { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line, #E5E6E9); }
.emList li.done b { color: var(--muted, #646D79); text-decoration: line-through; }
.emChk { font-size: 18px; width: 24px; text-align: center; }

/* v85 mailing labels and envelopes */
#lbOut { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
#lbOut .lbCell, #lbOut .lbEnv { background: #fff; border: 1px dashed #CBD2DB; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
#lbOut .lbRet { color: var(--muted, #646D79); font-size: 11px; margin-bottom: 8px; }
@media print {
  body.lbPrinting > *:not(main) { display: none !important; }
  body.lbPrinting main > *:not(#lbOut) { display: none !important; }
  body.lbPrinting #lbOut { display: block; }
  body.lbPrinting #lbOut .lbCell, body.lbPrinting #lbOut .lbEnv { border: 0; border-radius: 0; background: none; }
  body.lbPrinting main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .lb-5160 { display: grid !important; grid-template-columns: repeat(3, 2.625in); column-gap: 0.125in; grid-auto-rows: 1in; padding: 0.5in 0.1875in 0; }
  .lb-5163 { display: grid !important; grid-template-columns: repeat(2, 4in); column-gap: 0.1875in; grid-auto-rows: 2in; padding: 0.5in 0.15625in 0; }
  .lb-5160 .lbCell, .lb-5163 .lbCell { padding: 0.12in 0.18in; font: 11pt/1.25 Arial, sans-serif; overflow: hidden; break-inside: avoid; display: flex; flex-direction: column; justify-content: center; }
  .lb-5163 .lbCell { font-size: 13pt; }
  .lb-5160 .lbCell:nth-child(30n) { break-after: page; }
  .lb-5163 .lbCell:nth-child(10n) { break-after: page; }
  .lb-env10 .lbEnv { width: 9.5in; height: 4.125in; position: relative; break-after: page; font: 11pt/1.3 Arial, sans-serif; }
  .lbRet { position: absolute; left: 0.35in; top: 0.3in; font-size: 9pt; }
  .lbTo { position: absolute; left: 4in; top: 1.8in; font-size: 12pt; }
  body.lbPrinting #lbOut { page: labels; }
}
@page labels { margin: 0; }
@media print { .ciDoc { box-shadow: none !important; border: 0 !important; } }

/* v87 workflow report progress bar */
.wfbar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--line,#e9ecef);gap:2px}
.wfbar i{display:block;height:100%;min-width:0}
.wfbar i[style*="width:0%"]{display:none}

/* v89 upload invoices dialog */
.qmodal{position:fixed;inset:0;background:rgba(16,24,40,.45);display:flex;align-items:flex-start;justify-content:center;z-index:200;overflow:auto;padding:5vh 12px}
.qmodal-box{background:#fff;border-radius:8px;max-width:780px;width:100%;padding:20px 22px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.qdrop{border:2px dashed var(--line,#d0d5dd);border-radius:6px;padding:26px;text-align:center;margin-top:8px}
.qdrop.on{border-color:var(--primary,#3D6F79);background:#f2f7f8}
@media (max-width:640px){.qmodal .grid3{grid-template-columns:1fr}}

/* v90 vendor page (AppFolio layout) */
.vsec .vhead { border-bottom: 1px solid var(--line); margin: -4px -16px 10px; padding: 0 16px 8px; align-items: center; }
.vsec .vhead h2 { margin: 0; font-size: 20px; font-weight: 400; }
.vkv { display: grid; grid-template-columns: minmax(120px, 210px) 1fr; gap: 12px; padding: 3px 0; align-items: baseline; }
.vkv > span { color: var(--muted); text-align: right; font-size: 13px; }
.vsub { margin: 12px 0 4px; font-size: 13px; font-weight: 700; }
.vicon { text-align: center; font-size: 34px; line-height: 1.1; min-width: 64px; }
.vrow { margin-bottom: 6px; }
@media (max-width: 640px) { .vkv { grid-template-columns: 1fr; gap: 0; } .vkv > span { text-align: left; } .vicon { display: none; } }

/* v92 report full view: one screen, the grid scrolls inside (like AppFolio's report tab) */
.rfx { position: fixed; inset: 0; z-index: 80; background: #fff; display: flex; flex-direction: column; }
.rfx-top { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px 4px; flex-wrap: wrap; align-items: flex-start; }
.rfx-top h1 { font-size: 22px; margin: 0 0 2px; font-weight: 700; }
.rfx-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rfx-search { display: inline-flex; gap: 2px; align-items: center; }
.rfx-search input { width: 220px; margin: 0; }
.rfx-menu { position: relative; }
.rfx-menu summary { list-style: none; cursor: pointer; }
.rfx-menu summary::-webkit-details-marker { display: none; }
.rfx-menu-list { position: absolute; right: 0; top: 100%; z-index: 90; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.12); min-width: 210px; padding: 4px 0; }
.rfx-menu-list a { display: block; padding: 7px 14px; color: var(--text); text-decoration: none; }
.rfx-menu-list a:hover { background: #f2f4f7; }
.rfx-det { padding: 4px 16px 10px; font-size: 13px; line-height: 1.7; }
.rfx-filters { padding: 0 16px 8px; max-height: 45vh; overflow: auto; }
.rfx-main { flex: 1; min-height: 0; display: flex; position: relative; border-top: 1px solid var(--line); }
.rfx-grid { flex: 1; min-width: 0; overflow: auto; }
.rfx-grid .report { padding: 0; border: 0; }
.rfx-grid .table-wrap { overflow: visible; }
.rfx-grid table { border-collapse: separate; border-spacing: 0; min-width: 100%; margin: 0; }
.rfx-grid table tr:first-child th { position: sticky; top: 0; z-index: 3; background: #f2f4f7; }
.rfx-grid table td:first-child, .rfx-grid table th:first-child { position: sticky; left: 0; z-index: 2; background: #fff; }
.rfx-grid table tr:first-child th:first-child { z-index: 4; background: #f2f4f7; }
.rfx-grid tr.rTot td { position: sticky; bottom: 0; z-index: 2; background: #f2f4f7; border-top: 2px solid var(--line); }
.rfx-grid tr.rTot td:first-child { z-index: 3; }
.rfx-grid tr.rGroup td { cursor: pointer; color: var(--link); position: sticky; left: 0; }
.rfx-car { display: inline-block; width: 14px; }
.rfx-grid td.rfx-hit, .rfx-grid th.rfx-hit { background: #fef0c7 !important; }
.rfx-grid td.rfx-cur, .rfx-grid th.rfx-cur { background: #fdb022 !important; }
.rfx-side { width: 300px; flex: 0 0 300px; border-left: 1px solid var(--line); overflow: auto; padding: 10px 12px; background: #fafbfc; }
.rfx-col { display: flex; align-items: center; gap: 8px; padding: 4px 2px; cursor: grab; }
.rfx-col.drag { opacity: .4; }
@media (max-width: 760px) { .rfx-side { position: absolute; right: 0; top: 0; bottom: 0; z-index: 6; box-shadow: -6px 0 18px rgba(0,0,0,.12); } .rfx-search input { width: 140px; } }
@media print {
  body:has(.rfx) > *:not(.rfx) { display: none !important; }
  .rfx { position: static; display: block; }
  .rfx-tools, .rfx-side, .rfx-filters { display: none !important; }
  .rfx-main, .rfx-grid { display: block; overflow: visible; border: 0; }
  .rfx-grid th, .rfx-grid td { position: static !important; }
}

/* v93 report column resizing */
.report table th, .rfx-grid table th { position: relative; }
.rfx-grid table tr:first-child th { position: sticky; }
.rcol-h { position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
.rcol-h:hover, .rcol-h.on { background: var(--accent, #6E9DA6); opacity: .55; }
table.rcw-fixed { table-layout: fixed; }
table.rcw-fixed th, table.rcw-fixed td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.rcw-fixed tr.rGroup td { overflow: visible; }

/* v112: print a lease for wet signatures */
@media print { body.ldWetPrint * { visibility: hidden; } body.ldWetPrint #ldPrint, body.ldWetPrint #ldPrint * { visibility: visible; } body.ldWetPrint #ldPrint { position: absolute; left: 0; top: 0; width: 100%; } }
/* v131: two-column printed leases */
@media print { body.ltTwoCol .ltdoc { column-count: 2; column-gap: 22px; font-size: 9.5pt; line-height: 1.3; } body.ltTwoCol .ltdoc h2, body.ltTwoCol .ltdoc h3 { break-after: avoid; } }
