:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details){width:min(1000px,96vw);max-width:1000px;max-height:90vh;padding:28px 30px;border:1px solid #dce4ef;border-radius:16px;box-shadow:0 25px 90px #071b4038}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details)::backdrop{background:#071b4073;backdrop-filter:blur(2px)}.rental-tenant-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.rental-tenant-dialog-heading h2{font-size:1.6rem;font-weight:600;margin:8px 0 10px;letter-spacing:-.4px}.rental-tenant-dialog-heading>button{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.rental-tenant-dialog-heading .rental-icon{width:17px;height:17px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details)>p{font-size:.9375rem;margin:0 0 24px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details)>.rental-editor-form{display:block}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-field-group .rental-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-field-group{margin:20px 0;padding:18px 20px;border-radius:10px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) label{font-size:.875rem;margin:12px 0}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) input{min-width:0;width:100%;font-size:1rem}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) legend{font-size:.9375rem}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-field-group p{font-size:.875rem}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-tenant-dialog-actions{position:sticky;bottom:-28px;background:white;border-top:1px solid #dce4ef;box-shadow:0 -8px 15px #ffffffdd;padding:18px 30px;margin:22px -30px -28px;z-index:2;justify-content:flex-end;display:flex;gap:10px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-tenant-dialog-actions button{min-width:115px}@media(max-width:700px){:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details){padding:22px 20px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-field-group .rental-form{grid-template-columns:repeat(2,minmax(0,1fr))}.rental-tenant-dialog-heading h2{font-size:1.3rem}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-field-group{padding:14px}:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-tenant-dialog-actions{bottom:-22px;padding:15px 20px;margin:20px -20px -22px}}@media(max-width:450px){:is(#rental-tenant-dialog,#rental-editor-dialog,#rental-tenant-details) .rental-field-group .rental-form{grid-template-columns:1fr}.rental-tenant-dialog-heading>button{font-size:.8125rem;padding:9px}.rental-tenant-dialog-heading>button span{display:none}}
.cash-list .rental-tenant-row{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;line-height:1.4}
.cash-list .rental-tenant-link{min-width:0;max-width:100%;padding:2px 0;border:0;background:transparent;color:var(--primary);font:inherit;font-weight:600;text-align:left;overflow-wrap:anywhere;flex-wrap:nowrap}
.cash-list .rental-tenant-meta{flex:0 1 auto;min-width:0}
.cash-list .rental-tenant-meta::before{content:"· ";color:#526780}
.cash-list .rental-tenant-link:hover{text-decoration:underline}
.cash-list .rental-tenant-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.rental-tenant-detail-section{margin:20px 0;padding:16px 20px;border:1px solid #dce4ef;border-radius:10px}
.rental-tenant-detail-section h3{margin:0 0 14px;font-size:1rem}
.rental-tenant-detail-section dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px 18px;margin:0}
.rental-tenant-detail-section dt{font-size:.875rem;font-weight:600;color:#526780}
.rental-tenant-detail-section dd{margin:4px 0 0;white-space:pre-line;overflow-wrap:anywhere}

.rental-tenant-balance {
  display:grid;
  gap:3px;
  margin:12px 0 18px;
  padding:12px 16px;
  border:1px solid #dce4ef;
  border-radius:10px;
  background:#f6f8fc;
}
.rental-tenant-balance.is-current{border-color:#c5e4d3;background:#eef8f2;color:#235b3d}
.rental-tenant-balance.is-unpaid{border-color:#efdbb8;background:#fff7e8;color:#764715}
.rental-tenant-balance span,.rental-tenant-balance small{font-size:.875rem}
.rental-tenant-balance strong{font-size:1.125rem}
.rental-tenant-tabs{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #dce4ef}
#rental-tenant-details .rental-tenant-tabs button {
  padding:10px 14px;
  border:0;
  border-bottom:3px solid transparent;
  border-radius:8px 8px 0 0;
  background:transparent;
  color:var(--primary);
}
#rental-tenant-details .rental-tenant-tabs button[aria-selected="true"] {
  border-bottom-color:currentColor;
  background:#edf2fa;
  font-weight:700;
}
#rental-tenant-details :is([role="tab"],[role="tabpanel"]):focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.rental-tenant-leases{list-style:none;margin:0;padding:0}
.rental-tenant-leases li{display:grid;gap:3px;overflow-wrap:anywhere}
.rental-tenant-leases li+li{margin-top:10px;padding-top:10px;border-top:1px solid #dce4ef}
.rental-tenant-leases span{font-size:.875rem;color:#526780}
.rental-tenant-detail-section .rental-table{margin:0}
.rental-tenant-detail-section .rental-table table{min-width:520px}
.rental-tenant-detail-section .rental-table td:last-child{white-space:nowrap}
#rental-tenant-history>.rental-tenant-empty{margin:20px 0}
.rental-tenant-detail-section .rental-tenant-empty{margin:0}

#rental-editor-dialog .rental-lease-conditional {
  grid-column:1/-1;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
#rental-editor-dialog .rental-lease-conditional[hidden]{display:none}
#rental-editor-dialog [data-lease-body],
#rental-editor-dialog [data-lease-body] :is(.rental-field-group,.rental-lease-conditional) {
  max-height:none;
  overflow:visible;
}
#rental-irl-fields select[name="reviewChoice"],
#rental-irl-fields select[name="priorReview"] {
  display:block;
  width:min(100%,420px);
  margin-top:6px;
}
#rental-editor-dialog .rental-lease-setup .rental-check{display:flex;align-items:center;gap:8px}
#rental-editor-dialog .rental-lease-setup input[type="checkbox"]{width:auto}
#rental-editor-dialog [data-lease-tracking] p,
#rental-editor-dialog [data-lease-prior] p{margin-bottom:6px}
#rental-editor-dialog [data-lease-prior-preview]:empty{display:none}

#rental-editor-dialog .rental-lease-options {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));
  gap:12px;
}
#rental-editor-dialog .rental-lease-option {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin:0;
  padding:14px;
  border:1px solid #cfd9e6;
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
#rental-workspace #rental-editor-dialog .rental-lease-option > input[type="radio"] {
  flex:0 0 1rem;
  width:1rem;
  height:1rem;
  margin:3px 0 0;
  accent-color:var(--primary);
}
#rental-editor-dialog .rental-lease-option > span{min-width:0}
#rental-editor-dialog .rental-lease-option strong{display:block;font-size:1rem}
#rental-editor-dialog .rental-lease-option small{display:block;margin-top:3px;color:#526780;font-size:.875rem}
#rental-editor-dialog .rental-lease-option:has(input:checked){border-color:var(--primary);background:#edf2fa}
#rental-editor-dialog .rental-lease-option:has(input:focus-visible){outline:2px solid var(--primary);outline-offset:2px}
#rental-editor-dialog .rental-lease-summary {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 16px;
  border:1px solid #dce4ef;
  border-radius:10px;
  background:#f4f7fb;
}
#rental-editor-dialog .rental-lease-summary h3{margin:0;font-size:1rem}
#rental-editor-dialog .rental-lease-summary small{display:block;margin-bottom:4px;color:#526780}
