:root {
  --bg: #f5f7f5;
  --white: #fff;
  --ink: #233c33;
  --muted: #7a8780;
  --green: #205c4a;
  --light: #edf4ef;
  --line: #e7ece7;
  --orange: #c98145;
  --rental-green: #019954;
  --rental-orange: #fea600;
  --red: #bc5b48;
  --shadow: 0 2px 4px #253e3003;
  --radius: 15px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  font-size: 14px;
}
:root[data-appearance="navy"] {
  --bg: #f6f7f8;
  --ink: #17263b;
  --muted: #526273;
  --green: #087249;
  --light: #e2f3e9;
  --line: #dfe6ec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--green);
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a1c7ad;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #b2cdbd;
  border-color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.3;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 650;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.7;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}
.initial {
  padding: 20vh 10vw;
  font-size: 34px;
  font-weight: 700;
  color: var(--green);
}
.initial span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 12px;
  color: var(--muted);
}
.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 33px 20px 22px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 750;
  padding: 0 12px;
}
.brand-mark {
  border-radius: 10px;
  width: 39px;
  height: 39px;
  flex: none;
  object-fit: cover;
}
.page-head.dashboard-banner {
  padding: clamp(20px, 4vw, 44px);
  min-height: clamp(220px, 24vw, 340px);
  border-radius: 12px;
  background: #eaf2ec;
  align-items: center;
}
.dashboard-banner.has-photo {
  background:
    linear-gradient(90deg, #102b2399, transparent 76%),
    url("/api/dashboard-banner/photo?v=4") center / cover no-repeat,
    #205c4a;
}
.dashboard-banner.has-photo h1 {
  color: #fff;
  text-shadow: 0 1px 5px #102b23, 0 2px 9px #102b23;
}
.workspace-icon-preview {
  display: block;
  width: 64px;
  height: 64px;
  margin: 12px 0;
}
.brand small {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
  font-weight: 500;
  color: #8a968d;
}
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: #a1a9a2;
  padding: 0 14px;
  margin: 45px 0 13px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  text-align: left;
  border-radius: 8px;
  background: transparent;
  color: #718078;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
}
.nav button:hover {
  background: #f5f8f5;
  color: var(--green);
}
.nav button.active {
  background: var(--light);
  color: var(--green);
  font-weight: 650;
}
.nav button .count {
  margin-left: auto;
  background: #f3e9df;
  color: #a46b40;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
}
.workspace-note {
  background: #f7f8f4;
  border: 1px solid #ecede5;
  border-radius: 10px;
  padding: 15px 13px;
  margin: 32px 4px 20px;
}
.workspace-note .icon {
  color: #87967d;
  width: 18px;
}
.workspace-note h3 {
  margin: 9px 0 5px;
  font-size: 12px;
}
.workspace-note p {
  font-size: 11px;
  line-height: 1.7;
  color: #8a958b;
}
.profile {
  border-top: 1px solid var(--line);
  padding: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eedfcf;
  color: #8f7156;
  font-size: 12px;
  font-weight: 600;
}
.profile-text {
  flex: 1;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.profile small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--light);
  color: var(--green);
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: #ffffffc9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.breadcrumbs {
  color: #99a29c;
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumbs strong {
  font-weight: 500;
  color: #63766b;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date-label {
  font-size: 12px;
  color: #78867d;
  display: flex;
  gap: 8px;
  align-items: center;
}
.date-label .icon {
  height: 15px;
  width: 15px;
}
.private-label {
  font-size: 10px;
  color: #7c8d80;
  border: 1px solid #e1e8df;
  border-radius: 6px;
  padding: 6px 8px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.private-label .icon {
  width: 12px;
  height: 12px;
}
.content {
  padding: 32px 38px 40px;
  max-width: 1550px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 27px;
}
.page-head p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
  line-height: 1.6;
}
.eyebrow {
  color: #91a08e;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 550;
  color: #65756b;
  background: #fff;
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  min-height: 38px;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn:hover {
  border-color: #a8bcad;
  background: #f9fbf9;
}
.btn.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 3px 5px #205c4a12;
}
.btn.primary:hover {
  background: #184c3c;
}
.btn.danger {
  color: var(--red);
}
.btn.small {
  padding: 7px 11px;
  min-height: 30px;
  font-size: 11px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.text-link {
  border: 0;
  padding: 0;
  color: var(--green);
  background: none;
  font-size: 12px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  text-decoration: none;
}
.text-link:hover {
  text-decoration: underline;
}
.text-link .icon {
  width: 14px;
  height: 14px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 21px;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 9px;
}
.filter-group label {
  font-size: 11px;
  color: var(--muted);
}
select,
input,
textarea {
  padding: 10px 12px;
  border: 1px solid #dfe6df;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  max-width: 100%;
  min-height: 38px;
}
select {
  padding-right: 26px;
}
input[type="month"],
input[type="date"] {
  min-width: 135px;
}
input[type="checkbox"] {
  min-height: 0;
  accent-color: var(--green);
  width: 16px;
  height: 16px;
}
textarea {
  min-height: 80px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #a6afa8;
}
.muted {
  color: var(--muted);
}
.demo-banner {
  background: #faf4e9;
  border: 1px solid #eee3ca;
  color: #9b7a43;
  border-radius: 8px;
  font-size: 11px;
  padding: 10px 13px;
  margin-bottom: 23px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-banner .icon {
  width: 15px;
  height: 15px;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.summary-grid.rental-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: var(--shadow);
  position: relative;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #7a8780;
  margin-bottom: 18px;
}
.metric-icon {
  height: 30px;
  width: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f0f5ef;
  color: #73917c;
}
.metric-icon .icon {
  width: 16px;
  height: 16px;
}
.metric-value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.metric-value .currency {
  font-size: 13px;
  font-weight: 400;
  color: #9aa69e;
  letter-spacing: 0;
}
.metric-bottom {
  font-size: 10px;
  color: #98a399;
  margin-top: 11px;
  line-height: 1.6;
}
.metric-bottom span {
  color: var(--green);
  font-weight: 550;
}
.metric.warm .metric-icon {
  background: #fcf2e8;
  color: #bd8c5e;
}
.metric.warm .metric-value {
  color: #ae764b;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  padding: 21px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-head p {
  font-size: 11px;
  margin-top: 6px;
  color: #95a197;
  line-height: 1.6;
}
.panel-head h2 {
  font-size: 14px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: #92a094;
}
.legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 2px;
  background: #386b54;
}
.chart {
  height: 190px;
  margin: 0 24px 20px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 10px 0 23px 38px;
  background: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 39px,
    #eff2ed 40px,
    #eff2ed 41px
  );
  background-size: 100% 164px;
  background-repeat: no-repeat;
  align-items: end;
}
.chart-y {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 23px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  color: #a5afa5;
}
.bar-group {
  height: 100%;
  position: relative;
  display: flex;
  gap: 5px;
  align-items: end;
  justify-content: center;
}
.bar {
  width: 16px;
  background: #386b54;
  border-radius: 4px 4px 1px 1px;
  min-height: 1px;
  max-width: 35%;
  position: relative;
}
:is(.bar, .dot).rent-received {
  background: var(--rental-green);
}
:is(.bar, .dot).rent-due {
  background: var(--rental-orange);
}
.bar-label {
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  color: #9ba69c;
}
.overview-unpaid-list {
  list-style: none;
  margin: 0;
  padding: 0 20px 12px;
  max-height: 225px;
  overflow-y: auto;
}
.overview-unpaid-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.overview-unpaid-list button {
  display: block;
  padding: 3px 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.overview-unpaid-list strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.overview-unpaid-empty {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}
.monthly-payment-heading {
  margin: 28px 0 16px;
}
.monthly-payment-heading h2 {
  font-size: clamp(20px, 2vw, 27px);
  scroll-margin-top: 16px;
}
.monthly-payment-heading p {
  margin-top: 6px;
  color: var(--muted);
}
.table-wrap {
  overflow-x: auto;
}
.landlord-group th {
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  text-transform: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
th {
  background: #fafbf8;
  color: #919c92;
  font-size: 9px;
  letter-spacing: 0.8px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 12px 23px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 23px;
  border-bottom: 1px solid #edf1eb;
  color: #66776a;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: none;
}
td strong {
  font-weight: 550;
  color: #3d5244;
  display: block;
  font-size: 12px;
}
td small {
  font-size: 10px;
  display: block;
  margin-top: 5px;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cell-person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cell-person .avatar {
  width: 31px;
  height: 31px;
  background: #eaf0e7;
  color: #849a7b;
  font-size: 10px;
}
.pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 500;
  background: #edf5ed;
  color: #668365;
  white-space: nowrap;
}
.pill.orange {
  background: #fcf1e7;
  color: #bf8a5d;
}
.pill.red {
  background: #fbefeb;
  color: #b86b58;
}
.pill.gray {
  background: #f0f2ef;
  color: #929c93;
}
.pill .dot {
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.table-foot {
  padding: 14px 23px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #a0aaa0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.empty {
  padding: 50px 20px;
  text-align: center;
}
.empty .icon {
  width: 35px;
  height: 35px;
  color: #9fb29d;
  margin-bottom: 14px;
}
.empty h3 {
  margin-bottom: 9px;
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 16px;
}
.bottom-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #a5afa4;
  padding: 24px 0 0;
}
.bottom-note span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bottom-note .icon {
  width: 12px;
  height: 12px;
}
.search {
  position: relative;
  flex: 1;
  max-width: 340px;
}
.search .icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 16px;
  height: 16px;
  color: #9aa69b;
}
.search input {
  width: 100%;
  padding-left: 36px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 23px;
  margin-bottom: 20px;
}
.tabs button {
  background: transparent;
  padding: 0 2px 12px;
  color: #929e93;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.report-filters {
  display: flex;
  gap: 16px;
  align-items: end;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.report-filters label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}
.report-filters .btn {
  margin-left: auto;
}
.report-note {
  padding: 17px 23px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  background: #fcfdfb;
}
.notice {
  border: 1px solid #e5e9db;
  background: #f7f9f0;
  color: #7c8967;
  padding: 13px 15px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff7ec;
  border-color: #f0dfc5;
  color: #a77f4b;
}
.upload-zone {
  padding: 45px 20px;
  margin: 0 23px 23px;
  border: 1.5px dashed #cbd9c9;
  border-radius: 10px;
  text-align: center;
  background: #fafcf8;
  transition: 0.2s;
}
.upload-zone .icon {
  width: 32px;
  height: 32px;
  color: #8eaa8a;
  margin-bottom: 15px;
}
.upload-zone h3 {
  font-size: 13px;
  margin-bottom: 8px;
}
.upload-zone p {
  font-size: 11px;
  color: #98a593;
  margin-bottom: 18px;
}
.upload-zone input {
  max-width: 280px;
  background: white;
}
.import-source {
  padding: 18px 23px;
}
.import-source pre {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: #f8faf5;
  border: 1px solid var(--line);
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 15px;
  border-radius: 7px;
  line-height: 1.7;
}
.import-table input,
.import-table select {
  min-width: 120px;
  padding: 7px 8px;
  font-size: 11px;
  min-height: 32px;
}
.import-table input[type="checkbox"] {
  min-width: 0;
}
.import-table td {
  padding: 10px;
}
.import-table th {
  padding: 12px 10px;
}
.import-table .months-input {
  min-width: 170px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-block {
  padding: 22px;
}
.setting-block h2 {
  margin-bottom: 18px;
}
.setting-row {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  gap: 20px;
}
.setting-row span {
  color: var(--muted);
}
.setting-block ul {
  padding: 0 0 0 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 2;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #1a332e66;
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: 17px;
  width: 620px;
  max-width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 90px #122b3040;
}
.modal.wide {
  width: 950px;
}
.modal-head {
  padding: 23px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-head p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.modal-body {
  padding: 24px 26px;
  overflow: auto;
}
.modal-footer {
  padding: 17px 26px;
  background: #fafcf9;
  border-top: 1px solid var(--line);
  border-radius: 0 0 17px 17px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #798a7c;
}
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
}
.field small {
  font-size: 10px;
  line-height: 1.7;
}
.section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: #96a28e;
  margin: 24px 0 14px;
}
.allocation-list {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.allocation-row {
  display: grid;
  grid-template-columns: 20px 1fr 120px;
  gap: 12px;
  align-items: center;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.allocation-row:last-child {
  border: none;
}
.allocation-row input[type="number"] {
  width: 120px;
  min-height: 32px;
  padding: 6px 9px;
}
.allocation-row small {
  font-size: 10px;
  display: block;
  margin-top: 4px;
}
.allocation-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 14px 0;
}
.allocation-totals strong {
  font-size: 16px;
}
.form-error {
  border: 1px solid #efcfc3;
  background: #fff5f0;
  color: #ab644e;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 16px;
  display: none;
}
.form-error:not(:empty) {
  display: block;
}
.prefill-hint {
  font-size: 10px;
  color: #9a9f7c;
  line-height: 1.7;
  margin-top: 6px;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.detail-summary > div {
  padding: 14px;
  background: #f6f9f3;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.detail-summary small {
  display: block;
  font-size: 10px;
  margin-bottom: 9px;
}
.detail-summary strong {
  font-size: 17px;
  font-weight: 550;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  padding: 13px 22px;
  border-radius: 9px;
  background: #244e3d;
  color: #fff;
  z-index: 200;
  box-shadow: 0 8px 30px #244e3d30;
  font-size: 12px;
  opacity: 0;
  transition: 0.2s;
  pointer-events: none;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #a85340;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-art {
  background: #eaf0e7;
  display: flex;
  flex-direction: column;
  padding: 50px 55px;
  position: relative;
  overflow: hidden;
}
.login-art .brand {
  padding: 0;
}
.login-art h1 {
  font-size: 46px;
  max-width: 450px;
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.2;
  margin: 80px 0 20px;
}
.login-art > p {
  font-size: 14px;
  color: #83967f;
  line-height: 1.9;
  max-width: 330px;
}
.house-art {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin: 35px auto 0;
  width: 330px;
  max-width: 100%;
}
.house-main {
  position: absolute;
  bottom: 20px;
  left: 70px;
  width: 200px;
  height: 160px;
  background: #ccd9c3;
  border-radius: 3px;
  box-shadow: 12px 15px 0 #dde6d7;
}
.house-roof {
  position: absolute;
  bottom: 174px;
  left: 46px;
  width: 245px;
  height: 100px;
  background: #6f8c6a;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.house-window {
  position: absolute;
  bottom: 92px;
  left: 98px;
  width: 42px;
  height: 43px;
  background: #f7f6e6;
  border: 5px solid #9ab292;
  box-shadow: 94px 0 0 -5px #f7f6e6;
}
.house-door {
  position: absolute;
  bottom: 20px;
  left: 155px;
  width: 43px;
  height: 80px;
  background: #819d77;
  border-radius: 22px 22px 0 0;
}
.house-tree {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 65px;
  height: 110px;
  background: #9dbb91;
  border-radius: 60px 60px 15px 15px;
  box-shadow: 275px 10px 0 -8px #b2c6a6;
}
.login-art-footer {
  font-size: 10px;
  color: #8b9b84;
  letter-spacing: 0.5px;
  margin-top: 30px;
}
.login-side {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-box {
  max-width: 350px;
  width: 100%;
}
.login-box h2 {
  font-size: 27px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.login-box > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 30px;
}
.login-box .field {
  margin-bottom: 19px;
}
.login-box .btn {
  width: 100%;
  padding: 12px;
  margin-top: 7px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 23px 0 16px;
  color: #a2aaa0;
  font-size: 10px;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.demo-options {
  display: flex;
  gap: 10px;
}
.login-small {
  font-size: 10px;
  line-height: 1.8;
  color: #a0aa9d;
  margin-top: 23px;
  text-align: center;
}
.mobile-menu {
  display: none;
}
.audit-json {
  font-size: 10px;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
  background: #f6f8f3;
  padding: 10px;
  border-radius: 5px;
}
.form-subtext {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 17px;
}
body.modal-open {
  overflow: hidden;
}
@media (min-width: 1450px) {
  .content {
    padding-top: 40px;
  }
  .summary-grid {
    gap: 22px;
  }
  .metric {
    padding: 24px;
  }
  .metric-value {
    font-size: 31px;
  }
  .chart {
    height: 218px;
  }
  .dashboard-grid {
    grid-template-columns: 1.8fr 1fr;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .content {
    padding: 27px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 23px;
  }
  .metric-top {
    font-size: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1.4fr 1fr;
  }
  .panel-head {
    padding: 18px;
  }
  .legend {
    gap: 8px;
  }
  td,
  th {
    padding-left: 18px;
    padding-right: 18px;
  }
  .summary-grid {
    gap: 12px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
  }
}
@media (max-width: 850px) {
  .shell {
    grid-template-columns: 1fr;
  }
  .main {
    grid-column: 1;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: 0.2s;
    box-shadow: 10px 0 40px #122b3020;
    width: 230px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 62px;
    padding: 0 20px;
  }
  .content {
    padding: 24px 20px;
  }
  .topbar-right {
    gap: 10px;
  }
  .date-label {
    font-size: 10px;
  }
  .private-label {
    display: none;
  }
  .breadcrumbs {
    font-size: 10px;
  }
  .summary-grid,
  .summary-grid.rental-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
  }
  .page-head h1 {
    font-size: 24px;
  }
  .login-art {
    padding: 40px 30px;
  }
  .login-art h1 {
    font-size: 37px;
  }
  .house-art {
    transform: scale(0.8);
    transform-origin: left bottom;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .report-filters {
    gap: 12px;
  }
}
@media (max-width: 620px) {
  .content {
    padding: 23px 16px;
  }
  .topbar {
    padding: 0 16px;
  }
  .date-label {
    display: none;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-head p {
    font-size: 11px;
  }
  .page-head > .actions .btn {
    padding: 9px 11px;
  }
  .page-head > .actions .btn .icon {
    display: none;
  }
  .page-head > .actions {
    justify-content: flex-end;
    max-width: 145px;
  }
  .summary-grid {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 24px;
  }
  .metric-top {
    margin-bottom: 11px;
  }
  .metric-bottom {
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
  }
  .chart {
    height: 180px;
  }
  .toolbar {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .filter-group {
    flex-wrap: wrap;
  }
  .filter-group select {
    max-width: 200px;
  }
  .toolbar > small {
    font-size: 10px;
  }
  .search {
    max-width: 100%;
    width: 100%;
    flex: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    max-height: 95dvh;
  }
  .modal-head {
    padding: 19px;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-footer {
    padding: 14px 19px;
  }
  .allocation-row {
    grid-template-columns: 18px 1fr 100px;
  }
  .allocation-row input[type="number"] {
    width: 100px;
  }
  .detail-summary {
    grid-template-columns: 1fr 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 25px 26px;
  }
  .login-art h1 {
    font-size: 29px;
    margin: 32px 0 12px;
    max-width: 300px;
  }
  .login-art > p {
    font-size: 12px;
  }
  .house-art {
    display: none;
  }
  .login-art-footer {
    display: none;
  }
  .login-side {
    padding: 35px 26px;
  }
  .login-box h2 {
    font-size: 24px;
  }
  .bottom-note {
    align-items: flex-start;
    gap: 12px;
    line-height: 1.7;
    font-size: 9px;
  }
  .report-filters label {
    min-width: 120px;
  }
  .report-filters select,
  .report-filters input {
    width: 100%;
  }
  .notice {
    font-size: 11px;
  }
  .legend {
    font-size: 9px;
  }
  .panel-head {
    gap: 10px;
  }
  .table-foot {
    gap: 10px;
  }
  .tabs {
    gap: 18px;
  }
  .demo-banner {
    font-size: 10px;
    line-height: 1.6;
  }
}
@media print {
  body {
    background: white;
    font-size: 10px;
  }
  .sidebar,
  .topbar,
  .page-head .actions,
  .toolbar,
  .report-filters,
  .demo-banner,
  .bottom-note,
  .no-print,
  #toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
  .summary-grid {
    gap: 8px;
  }
  .metric {
    padding: 10px;
  }
  .main {
    width: 100%;
  }
  table {
    font-size: 9px;
  }
  td,
  th {
    padding: 9px;
  }
  .page-head {
    margin: 10px 0 20px;
  }
  .report-note {
    font-size: 9px;
  }
  .table-wrap {
    overflow: visible;
  }
  .pill {
    font-size: 8px;
  }
  button {
    display: none;
  }
  .modal-backdrop {
    position: static;
    background: white;
    padding: 0;
  }
  .modal {
    max-height: none;
    width: 100%;
    box-shadow: none;
  }
  .modal-body {
    overflow: visible;
  }
  .modal-head,
  .modal-footer {
    display: none;
  }
  .modal-open #app {
    display: none;
  }
}
.sr-label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* OneAvenue readability update: larger text, stronger weight and clearer contrast. */
:root {
  font-size: 16px;
  --muted: #54675b;
  --ink: #1e382b;
}
body {
  font-weight: 500;
}
.brand {
  font-size: 22px;
  gap: 8px;
  padding: 0 4px;
  letter-spacing: -0.8px;
}
.brand small {
  font-size: 11px;
  color: #566b5d;
}
.nav button {
  font-size: 15px;
  font-weight: 650;
  min-height: 46px;
}
.nav-label,
.eyebrow {
  font-size: 12px;
  color: #52684f;
  font-weight: 700;
}
h1 {
  font-size: 30px;
  font-weight: 750;
}
h2,
.panel-head h2 {
  font-size: 18px;
  font-weight: 750;
}
h3,
td strong {
  font-size: 16px;
  font-weight: 700;
}
p,
.page-head p,
.panel-head p,
.report-note,
.form-subtext,
.notice {
  font-size: 15px;
  line-height: 1.7;
  color: #425c4a;
}
small,
.field small,
.prefill-hint,
.metric-bottom,
.table-foot,
.bottom-note {
  font-size: 13px;
  color: #52675a;
  line-height: 1.6;
}
.field,
.filter-group label,
.report-filters label {
  font-size: 15px;
  font-weight: 650;
  color: #334f3f;
}
input,
select,
textarea {
  font-size: 16px;
  min-height: 44px;
  font-weight: 550;
}
.btn,
.btn.small {
  font-size: 14px;
  min-height: 42px;
  font-weight: 700;
}
.text-link,
.tabs button {
  font-size: 14px;
  font-weight: 650;
}
.icon-btn {
  width: 42px;
  height: 42px;
}
table,
td {
  font-size: 15px;
  color: #344e3d;
  font-weight: 550;
}
th {
  font-size: 12px;
  font-weight: 750;
  color: #405944;
  letter-spacing: 0.3px;
}
td small,
.profile small {
  font-size: 12px;
  color: #52675a;
}
.metric-top {
  font-size: 14px;
  font-weight: 650;
  color: #405b48;
  gap: 8px;
}
.metric-value {
  font-weight: 750;
}
.metric-value .currency {
  color: #52675a;
  font-weight: 650;
}
.pill {
  font-size: 12px;
  font-weight: 650;
}
.chart-y,
.bar-label,
.legend {
  font-size: 12px;
  color: #4b624f;
}
.profile strong,
.workspace-note h3 {
  font-size: 14px;
}
.workspace-note p,
.demo-banner,
.breadcrumbs,
.date-label {
  font-size: 13px;
}
.login-box > p,
.login-small {
  font-size: 14px;
}
.property-photo {
  width: 48px;
  height: 48px;
  flex: none;
  object-fit: cover;
  border-radius: 6px;
}
.photo-preview {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 9px;
  margin-bottom: 20px;
}
@media (max-width: 620px) {
  h1,
  .page-head h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 14px;
  }
  .metric {
    padding: 14px;
  }
  .metric-value {
    font-size: 22px;
    gap: 4px;
  }
  .metric-top {
    font-size: 13px;
    align-items: flex-start;
  }
  .metric-bottom {
    font-size: 12px;
  }
  .metric-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
  }
  .panel-head {
    flex-wrap: wrap;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .page-head > .actions {
    max-width: none;
  }
  .report-filters label {
    min-width: 140px;
  }
}
.sidebar {
  overflow-y: auto;
}
@media (max-height: 850px) {
  .sidebar .workspace-note {
    display: none;
  }
}
.payment-group {
  margin-bottom: 22px;
  overflow: hidden;
}
.payment-month {
  padding: 0 22px 12px;
  font-weight: 650;
}
.payment-table {
  width: 100%;
  table-layout: fixed;
}
.payment-table th,
.payment-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 16px 12px;
  vertical-align: top;
  font-size: 16px;
}
.payment-table th:nth-child(1) {
  width: 20%;
}
.payment-table th:nth-child(2) {
  width: 22%;
}
.payment-table th:nth-child(3) {
  width: 14%;
}
.payment-table th:nth-child(4) {
  width: 16%;
}
.payment-table th:nth-child(5) {
  width: 28%;
}
.payment-row h3 {
  font-size: 17px;
  margin: 0 0 9px;
}
.payment-row input {
  width: 100%;
  min-width: 0;
  font-size: 16px;
}
.payment-row .actions {
  flex-wrap: wrap;
  margin-top: 0;
  gap: 8px;
}
.payment-row .text-link {
  margin-top: 12px;
  text-align: left;
}
@media (max-width: 1200px) {
  .payment-table,
  .payment-table tbody,
  .payment-table tr,
  .payment-table td {
    display: block;
    width: 100%;
  }
  .payment-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .payment-row {
    border-top: 1px solid var(--border, #dce5df);
    padding: 12px 18px;
  }
  .payment-table td {
    border: 0;
    padding: 7px 0;
  }
  .payment-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
  }
  .payment-row input {
    max-width: 260px;
  }
  .payment-group .panel-head {
    flex-wrap: wrap;
    gap: 10px;
  }
}

.payment-row.payment-confirmed,
.payment-row.payment-confirmed td {
  background-color: #78ef75;
}
.confirmed-payment-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.confirmed-payment-actions .btn {
  padding-left: 10px;
  padding-right: 10px;
  flex-shrink: 0;
}

.paid-tenant-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.paid-tenant-name h3 {
  min-width: 0;
  margin: 0;
}
.paid-name-badge {
  display: inline-flex;
  flex-shrink: 0;
  padding: 4px 10px;
  border: 1px solid #459b4a;
  border-radius: 6px;
  background: #fff;
  color: #185b26;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.excel-review-panel,
.excel-history {
  margin-top: 22px;
}
#excel-error {
  margin: 16px 0;
}
.excel-review-table {
  min-width: 1050px;
}
.excel-review-table td {
  vertical-align: top;
  white-space: normal;
}
.excel-review-table select {
  width: 290px;
  max-width: 100%;
}
.excel-alias {
  display: block;
  max-width: 290px;
  margin-top: 8px;
  font-size: 13px;
}
.excel-confirm {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.excel-confirm .btn {
  justify-self: start;
}
#excel-upload-form {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.excel-review-controls {
  padding: 18px 22px;
  display: grid;
  gap: 12px;
}
.excel-review-controls .actions {
  flex-wrap: wrap;
  gap: 8px;
}
.excel-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
#excel-selection-summary {
  font-weight: 700;
  margin: 0;
}
#excel-preview-stale {
  color: #9a3e14;
  font-weight: 700;
}
.excel-review-table tr[hidden],
.excel-alias[hidden],
#excel-empty-filter[hidden],
#excel-preview-stale[hidden] {
  display: none;
}
.excel-review-table .excel-row-unmatched td {
  background: #fff0d6;
}
.excel-review-table .excel-row-conflict td {
  background: #ffe0df;
}
.excel-review-table .excel-row-warning td {
  background: #fff8c9;
}
.excel-match-badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 7px;
  border: 1px solid currentColor;
  margin-bottom: 5px;
}
.excel-row-unmatched .excel-match-badge {
  color: #814600;
}
.excel-row-conflict .excel-match-badge {
  color: #9b2828;
}
.excel-row-warning .excel-match-badge {
  color: #715300;
}
.excel-row-matched .excel-match-badge {
  color: #205c4a;
}

/* Navy and emerald workspace theme */
[data-appearance="navy"] .sidebar {
  background: #101e33;
  border-color: #253953;
}
[data-appearance="navy"] .sidebar :is(.brand, .profile strong) {
  color: #fff;
}
[data-appearance="navy"] .sidebar :is(.brand small, .nav-label, .profile small, .profile .icon-btn, .workspace-note p) {
  color: #becbdd;
}
[data-appearance="navy"] .sidebar .nav button {
  color: #e6edf5;
}
[data-appearance="navy"] .sidebar .nav button:hover {
  background: #203550;
}
[data-appearance="navy"] .sidebar .nav button.active {
  background: #a9e5c5;
  color: #103324;
}
[data-appearance="navy"] .sidebar .workspace-note {
  background: #182b43;
  border-color: #334b65;
}
[data-appearance="navy"] .sidebar .workspace-note h3 {
  color: #edf5fc;
}
[data-appearance="navy"] .sidebar .profile {
  border-color: #334b65;
}
[data-appearance="navy"] .dashboard-banner.has-photo {
  background:
    linear-gradient(90deg, #0e1c33f5 0%, #0e1c33cc 16%, #0e1c3366 34%, transparent 57%),
    url("/api/dashboard-banner/photo?v=4") center 32% / cover no-repeat,
    #0e1c33;
}
[data-appearance="navy"] .dashboard-banner h1 {
  font-size: clamp(29px, 3.5vw, 54px);
  line-height: 1.06;
  text-shadow: 0 1px 8px #101e33b3;
}
[data-appearance="navy"] .dashboard-banner h1 span {
  display: block;
}
@media (max-width: 850px) {
  [data-appearance="navy"] .dashboard-banner.has-photo {
    background-position: center, 64% center;
  }
}
[data-appearance="navy"] .rental-green {
  --metric-bg: var(--rental-green);
  --metric-ink: #002516;
}
[data-appearance="navy"] .rental-blue {
  --metric-bg: #0073d7;
  --metric-ink: #fff;
}
[data-appearance="navy"] .rental-outstanding {
  --metric-bg: var(--rental-orange);
  --metric-ink: #422400;
}
[data-appearance="navy"] .rental-summary .metric {
  background: var(--metric-bg);
  border-color: transparent;
}
[data-appearance="navy"] .rental-summary :is(.metric-top, .metric-value, .metric-value .currency, .metric-bottom, .metric-icon) {
  color: var(--metric-ink);
}
[data-appearance="navy"] .rental-summary .metric-icon {
  background: #ffffff38;
}
