@import url("schedule.795b72a3083d.css");
@import url("payment-notice.a5ccec6a9266.css");
@import url("lease-editor.65fcbbe8ecad.css");
@import url("quality.cad342709b29.css");

/* Shared workspace tokens. One visual system for lists, records and forms. */
:root {
  --ink: #263449;
  --muted: #7a8594;
  --line: #e5e9ef;
  --bg: #f4f6f8;
  --surface: #f5f7fa;
  --white: #fff;
  --green: #3569ad;
  --green-light: #edf3fc;
  --nav: #182434;
  --danger: #b0443e;
  --radius: 10px;
  --sidebar-width: 214px;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex='0']:focus-visible { outline: 3px solid #93b1db; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 1.625rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 0; }
h2 { font-size: 1rem; font-weight: 600; margin: 0; }
h3 { font-size: .9375rem; font-weight: 600; margin-bottom: 6px; }
p { margin-bottom: 14px; }
small { font-size: .8125rem; }
.icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); }
.accent, .subtle-link { color: var(--green); }
.subtle-link { font-size: .875rem; }
.subtle-link:hover, .table-primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.nowrap, .num { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.break-anywhere { overflow-wrap: anywhere; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: -100px; left: 12px; background: white; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

input:where(:not([type='checkbox']):not([type='hidden'])), select, textarea { width: 100%; border: 1px solid #dce2e9; border-radius: 5px; padding: 9px 11px; min-height: 42px; background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #96909f; }
input:focus, select:focus, textarea:focus { border-color: #7d9ec9; }
input:disabled { background: var(--surface); color: var(--muted); }
input[type='checkbox'] { width: 16px; height: 16px; accent-color: var(--green); margin: 0; flex-shrink: 0; }
input[type='hidden'] { display: none; }
textarea { resize: vertical; min-height: 110px; }

/* Navigation stays quiet; the active workspace carries the accent. */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 25px 14px 18px; background: var(--nav); border-right: 0; overflow-y: auto; z-index: 40; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 36px; color: #f0f4f9; }
.brand-mark { display: grid; place-items: center; background: #f0f4fa; color: #1e304a; width: 38px; height: 38px; border-radius: 9px; font-size: 1.15rem; font-weight: 650; letter-spacing: -.08em; }
.brand-copy { font-size: 1rem; font-weight: 600; line-height: 1.3; }
 .brand-copy small { display: block; margin-top: 5px; color: #8190a4; font-size: .75rem; font-weight: 400; }
.sidebar-section { margin: 0 12px 10px; font-size: .6875rem; letter-spacing: .07em; color: #65788f; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 6px; margin: 3px 0; font-size: .875rem; color: #a3afbf; }
.nav-link:hover { background: #223247; color: #fff; }
.nav-link.active { background: #2e425e; color: #fff; font-weight: 550; box-shadow: inset 2px 0 #82a9e0; }
.nav-link .icon { width: 19px; height: 19px; }
.nav-link span { flex: 1; }
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary > .icon:last-child { width: 13px; height: 13px; }
.nav-group[open] summary > .icon:last-child { transform: rotate(90deg); }
.nav-children { margin: 4px 0 10px 21px; padding-left: 19px; border-left: 1px solid #334156; }
.nav-children a { display: block; padding: 9px 8px; margin: 1px 0; color: #96a5b9; border-radius: 5px; font-size: .8125rem; }
.nav-children a:hover, .nav-children a[aria-current] { color: #e0ebfb; background: #23364f; }
.nav-children a[aria-current] { font-weight: 600; }
.nav-divider { border-top: 1px solid #2a394c; margin: 22px 12px 14px; }
 .sidebar-bottom { margin-top: auto; padding: 35px 12px 0; display: flex; justify-content: space-between; gap: 10px; color: #6e8097; font-size: .75rem; }
.workspace { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-width: 0; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fff; }
.topbar-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.property-name { font-size: .875rem; font-weight: 550; white-space: nowrap; }
.property-brand { font-size: .75rem; color: var(--muted); border-left: 1px solid var(--line); padding-left: 15px; white-space: nowrap; }
.global-search { display: flex; align-items: center; gap: 9px; margin-left: auto; width: 260px; min-width: 150px; color: var(--muted); }
.global-search input[type='search'] { background: transparent; border: 0; padding: 6px 0; font-size: .8125rem; min-height: 38px; }
.global-search .icon { width: 17px; height: 17px; }
.avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-size: .75rem; background: #eaf0f8; color: #5b7292; }
.account-menu { margin-left: auto; }
.account-menu > summary { display: flex; align-items: center; gap: 9px; font-size: .8125rem; padding: 6px 0 6px 8px; }
.account-menu > summary > .icon { width: 12px; height: 12px; transform: rotate(90deg); color: var(--muted); }
.menu-toggle.icon-button { display: none; }
.main { padding: 30px 32px 48px; max-width: 1740px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading p { font-size: .875rem; margin: 7px 0 0; }
.eyebrow { font-size: .75rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 7px; }
.heading-title { display: flex; align-items: center; gap: 12px; }
.record-count { border: 1px solid var(--line); padding: 1px 8px; border-radius: 5px; color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .8125rem; margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--green); }

/* Controls and menus. Only the principal action uses a filled button. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; min-height: 40px; line-height: 1.5; border: 1px solid #dddee5; border-radius: 6px; background: #fff; color: #484958; font-size: .8125rem; font-weight: 550; white-space: nowrap; }
.button:hover { background: var(--surface); border-color: #c8c8d3; }
.button.primary { background: var(--green); border-color: var(--green); color: #fff; }
.button.primary:hover { background: #29588f; border-color: #29588f; }
.button.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.button.quiet:hover { background: var(--surface); color: var(--ink); }
.button.small { min-height: 34px; padding: 6px 10px; }
.button .icon { width: 16px; height: 16px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.full-width { width: 100%; }
.icon-button { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 6px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 1.3rem; }
.icon-button:hover { background: var(--surface); color: var(--ink); }
.action-menu { position: relative; flex-shrink: 0; }
.action-menu > summary { list-style: none; }
.action-menu > summary::-webkit-details-marker { display: none; }
.menu-popover { position: absolute; right: 0; top: calc(100% + 7px); z-index: 45; width: 190px; background: #fff; padding: 6px; border: 1px solid #e2e0e9; border-radius: 8px; box-shadow: 0 8px 28px #24212f15; }
.menu-popover > a, .menu-popover button { display: block; width: 100%; text-align: left; font-size: .8125rem; border: 0; background: #fff; padding: 10px 12px; border-radius: 4px; }
.menu-popover > a:hover, .menu-popover button:hover { background: var(--surface); }

/* Flat lists: tabs, filters and rows share one continuous surface. */
.record-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.record-tabs > a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 1px; font-size: .875rem; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.record-tabs > a:hover { color: var(--ink); }
.record-tabs > a[aria-current] { color: var(--green); border-color: var(--green); font-weight: 600; }
.record-tabs > a > span { padding: 0 6px; font-size: .75rem; border-radius: 4px; background: #f0f0f4; color: #787783; font-variant-numeric: tabular-nums; }
.record-tabs > a[aria-current] > span { color: var(--green); background: var(--green-light); }
.list-tabs { margin-bottom: 0; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 22px; overflow: hidden; }
.list-surface { min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-heading .muted { font-size: .8125rem; }
.panel-body { padding: 22px; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.toolbar .field { min-width: 130px; margin: 0; }
.toolbar .search-field { flex: 1; min-width: 200px; }
.toolbar .field label { font-size: .8125rem; margin-bottom: 6px; }
.toolbar input, .toolbar select { min-height: 39px; font-size: .8125rem; padding: 8px 11px; }
.list-toolbar { padding: 22px 0 18px; border: 0; align-items: center; }
.list-toolbar .search-field { max-width: 350px; }
.list-toolbar .compact-filter { min-width: 140px; max-width: 180px; }
.search-control { position: relative; }
.search-control > .icon { position: absolute; left: 12px; top: 11px; width: 17px; height: 17px; color: #92919e; pointer-events: none; }
.search-control input { padding-left: 38px; }
.toolbar-end { margin-left: auto; }
.list-caption { display: flex; justify-content: space-between; gap: 14px; align-items: center; color: var(--muted); font-size: .8125rem; margin: 0 0 14px; }
.list-caption .caption-note { color: #878592; font-size: .75rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .875rem; }
th { padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); color: #777582; font-size: .75rem; font-weight: 500; white-space: nowrap; }
td { padding: 17px 18px; border-bottom: 1px solid #eeeef2; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f5f8fc; }
.table-primary { color: #373441; font-weight: 550; }
.table-secondary { display: block; color: #85828f; font-size: .75rem; margin-top: 4px; font-weight: 400; }
.table-actions { white-space: nowrap; text-align: right; }
.table-actions a { color: var(--green); margin-left: 14px; }
.invoice-table { min-width: 900px; }
.invoice-table td, .invoice-table th { padding-left: 14px; padding-right: 14px; }
.invoice-table td { font-size: .8125rem; height: 76px; }
.invoice-table .bill-number { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tenant-cell { max-width: 210px; overflow-wrap: anywhere; min-width: 125px; }
.period-cell { font-size: .8125rem !important; white-space: nowrap; color: #666474; line-height: 1.7; }
.period-cell span { display: block; }
.room-number { font-weight: 550; font-variant-numeric: tabular-nums; }
.row-amount { color: #34313d; font-weight: 550; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; background: #f0f0f4; color: #72707f; font-size: .75rem; white-space: nowrap; }
.badge.active { background: #edf6f1; color: #307956; }
.badge.warning { background: #f8f2e6; color: #936e31; }
.status-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .8125rem; color: #787382; }
.status-label::before { content: ''; height: 5px; width: 5px; flex-shrink: 0; border-radius: 50%; background: #aaa5b4; }
.status-label.active { color: #377858; }
.status-label.active::before { background: #5c9e78; }
.status-label.attention { color: #94713a; }
.status-label.attention::before { background: #c39647; }
.status-label.void { color: #94909c; }
.status-detail { font-size: .75rem; color: #7e8c9d; display: block; margin: 3px 0 0 11px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.panel .pagination { padding: 18px 22px; }
.pagination > div { display: flex; align-items: center; gap: 18px; }
.empty-state { text-align: center; padding: 65px 24px; color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: 7px; }
.empty-state p { font-size: .875rem; margin-bottom: 18px; }
.empty-state.compact { padding: 30px 20px; font-size: .8125rem; }
.empty-symbol { font-size: 1.7rem; margin-bottom: 12px; color: #a6a0b6; }

/* Dashboard: a quiet summary followed by actionable work. */
.operating-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 34px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.operating-metrics > a, .operating-metrics > div { padding: 0 24px; border-right: 1px solid var(--line); min-width: 0; }
.operating-metrics > :first-child { padding-left: 0; }
.operating-metrics > :last-child { border: 0; }
.operating-metrics span { display: block; color: var(--muted); font-size: .8125rem; }
.operating-metrics strong { display: block; margin: 8px 0 2px; font-size: 2rem; line-height: 1.4; font-weight: 550; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.operating-metrics strong small { font-size: .8125rem; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.operating-metrics p { color: var(--muted); font-size: .75rem; margin: 4px 0 0; }
.operating-metrics a:hover strong { color: var(--green); }
.operating-metrics .metric-money { font-size: 1.8rem; }
.operations-columns { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 32px; }
.work-section { margin-bottom: 32px; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 16px; }
.section-heading > span { color: var(--muted); font-size: .8125rem; }
.task-row { display: flex; align-items: center; gap: 13px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.task-icon { display: grid; place-items: center; width: 34px; height: 34px; background: var(--surface); color: #807889; border-radius: 6px; flex-shrink: 0; }
.task-icon .icon { width: 18px; height: 18px; }
.task-copy { flex: 1; min-width: 0; }
.task-copy strong { font-size: .875rem; font-weight: 550; }
.task-copy p { font-size: .75rem; margin: 4px 0 0; color: var(--muted); }
.conflict-task .task-icon { color: #a27c3d; background: #faf4e9; }
.agenda-panel { background: #f7f9fb; padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.agenda-panel .section-heading:not(:first-child) { margin-top: 25px; }
.agenda-list > a { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.agenda-list > a:last-child { border: 0; }
.agenda-date { width: 50px; color: var(--muted); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.agenda-copy { flex: 1; min-width: 0; }
.agenda-copy strong { font-weight: 550; display: block; }
.agenda-copy small { color: var(--muted); display: block; margin-top: 3px; overflow-wrap: anywhere; font-size: .75rem; }
.agenda-empty { padding: 15px 0; font-size: .8125rem; color: var(--muted); margin: 0; }
.quiet-links { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 19px; font-size: .8125rem; color: var(--muted); }
.quiet-links a:hover { color: var(--green); }

/* Contextual lease record. Sections within the same document do not become cards. */
.lease-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.unit-tile { display: grid; place-items: center; min-width: 65px; height: 65px; padding: 10px; border-radius: 8px; font-size: 1.25rem; font-weight: 600; background: #eaf0f8; color: #4c6a93; }
.identity-copy { flex: 1; min-width: 0; }
.identity-copy h1 { font-size: 1.4rem; margin: 0; }
.identity-copy p { color: var(--muted); font-size: .8125rem; margin: 6px 0 0; }
.identity-copy p span { margin: 0 7px; color: #c5c1cc; }
.inline-heading { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.record-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 35px; }
.record-layout > div > .panel { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 12px; }
.record-layout > div > .panel .panel-heading { padding: 4px 0 16px; border: 0; }
.record-layout > div > .panel .panel-body { padding: 6px 0 18px; }
.record-layout > div > .panel .section-note { padding-left: 0; padding-right: 0; border: 0; }
.record-side { min-width: 0; }
.record-side .panel { background: #f7f9fb; }
.record-side .panel-heading { border: 0; padding-bottom: 4px; }
.term-range { display: flex; align-items: center; gap: 35px; padding: 6px 0 20px; margin-bottom: 7px; }
.term-range span { display: block; color: var(--muted); font-size: .8125rem; }
.term-range strong { display: block; font-size: 1.4rem; font-weight: 500; margin-top: 5px; font-variant-numeric: tabular-nums; }
.term-range .term-arrow { color: #b6aebf; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 30px; margin: 0; }
.detail-grid > div { min-width: 0; }
.detail-grid dt, .bill-header dt { color: var(--muted); font-size: .75rem; margin-bottom: 5px; }
.detail-grid dd, .bill-header dd { margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.wide { grid-column: 1 / -1; }
.deposit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 7px 0 15px; }
.deposit-grid span, .deposit-grid small { display: block; font-size: .75rem; color: var(--muted); }
.deposit-grid strong { display: block; font-size: 1.15rem; font-weight: 550; margin: 6px 0; font-variant-numeric: tabular-nums; }
.section-note { border-top: 1px solid var(--line); padding: 15px 22px; color: var(--muted); font-size: .75rem; }
.price-highlight { padding: 18px 22px; }
.price-highlight > span { font-size: .8125rem; color: var(--muted); }
.price-highlight strong { display: block; font-size: 1.9rem; font-weight: 550; margin-top: 5px; font-variant-numeric: tabular-nums; }
.price-highlight strong small { font-size: 1rem; color: var(--muted); }
.price-highlight p { margin: 3px 0 0; font-size: .75rem; color: var(--muted); }
.aside-values { margin: 0; padding: 0 22px 19px; font-size: .8125rem; }
.aside-values > div { display: flex; gap: 10px; justify-content: space-between; padding: 9px 0; }
.aside-values dt { color: var(--muted); }
.aside-values dd { margin: 0; font-variant-numeric: tabular-nums; }
.panel-bottom-link { display: block; color: var(--green); border-top: 1px solid var(--line); padding: 14px 22px; font-size: .8125rem; }
.source-shortcut { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; padding: 10px 2px; color: var(--green); }
.source-shortcut small { display: block; color: var(--muted); font-size: .75rem; margin-top: 5px; }
.prose-small { font-size: .8125rem; line-height: 1.9; overflow-wrap: anywhere; }
.review-strip { border: 1px solid #eae3d8; border-radius: 6px; margin-bottom: 25px; font-size: .8125rem; background: #fffcf7; }
.review-strip > summary { padding: 13px 16px; color: #8b6b37; }
.review-strip > ul { margin: 0; padding: 0 22px 17px 39px; color: #76634c; line-height: 1.9; }
.review-strip > .button-group { padding: 0 20px 17px; }
.review-symbol { display: none; }
.source-issues { padding-left: 18px; margin: 0; }
.source-issues li { padding: 10px 0; font-size: .875rem; }
.source-issues strong { font-weight: 500; }
.source-issues small { display: block; color: var(--muted); margin-top: 5px; }
.source-values > div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .8125rem; }
.source-values dt { color: var(--muted); }
.source-values dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.disclosure > summary { padding: 17px 22px; font-weight: 500; font-size: .875rem; }
.spaced { margin-top: 18px; margin-bottom: 18px; }

/* Forms, billing document and existing administrative screens. */
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: .875rem; }
.field .sr-only { margin: -1px !important; }
.required { color: var(--danger); }
.record-form { max-width: 900px; }
.form-section-heading { padding: 21px 25px; border-bottom: 1px solid var(--line); }
.form-section-heading p { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; padding: 26px; }
.form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 20px 25px; border-top: 1px solid var(--line); background: #f7f9fb; }
.checkbox-label { display: flex !important; align-items: center; gap: 10px; min-height: 42px; padding-top: 22px; }
.filter-check { display: flex; align-items: center; gap: 7px; font-size: .8125rem; min-height: 40px; white-space: nowrap; }
.help-text, .small-note { font-size: .75rem; color: var(--muted); margin-top: 7px; }
.help-text ul { padding-left: 18px; margin: 0; }
.form-errors, .field-errors, .errorlist { color: var(--danger); font-size: .8125rem; }
.form-errors { grid-column: 1 / -1; padding: 14px 18px; border-radius: 5px; background: #fff2ef; }
.form-errors ul, .field-errors ul { list-style: none; padding: 0; margin: 0; }
.field-errors { margin-top: 7px; }
.has-error input, .has-error select { border-color: var(--danger); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.message, .notice { padding: 14px 18px; border: 1px solid var(--line); border-radius: 6px; background: #eff4fa; color: #61758e; font-size: .875rem; line-height: 1.8; margin-bottom: 22px; }
.message.success { background: #eff7f2; color: #367c55; border-color: #d9e9de; }
.message.error { background: #fff2ef; color: var(--danger); border-color: #efd8d4; }
.notice.warning, .message.warning { background: #fffcf5; color: #896b36; border-color: #eee4cf; }
.notice ul { padding-left: 20px; margin: 8px 0 0; }
.charge-table { min-width: 1120px; }
.charge-table td { padding: 10px 7px; }
.charge-table input, .charge-table select { min-width: 75px; }
.charge-table input[type='date'] { min-width: 130px; }
.charge-table input[type='checkbox'] { min-width: 16px; }
.meter-table { min-width: 660px; }
.meter-table input { min-width: 105px; max-width: 180px; text-align: right; }
.sticky-actions { position: sticky; bottom: 0; background: #fff; padding: 18px; border-top: 1px solid var(--line); }
.bill-paper { max-width: 1150px; }
.bill-header { display: flex; justify-content: space-between; gap: 30px; padding: 30px; }
.bill-header h2 { margin-bottom: 16px; }
.bill-header p { font-size: .875rem; }
.bill-header dl { min-width: 210px; margin: 0; }
.bill-header dl > div { margin-bottom: 9px; }
.bill-paper tfoot th { padding-top: 20px; padding-bottom: 20px; background: #f7f9fb; }
.total-amount { font-size: 1.4rem; color: var(--ink); }
.line-basis { max-width: 600px; white-space: normal; line-height: 1.7; }
.bill-actions { padding: 24px; }
.bill-actions h2 { margin-bottom: 10px; }
.bill-actions > p { font-size: .8125rem; }
.bill-actions .checkbox-label { padding-top: 0; font-size: .8125rem; }
.bill-actions .form-grid { padding: 20px 0; }
.money { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.dashboard-grid, .detail-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 24px; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.stat-label { font-size: .8125rem; color: var(--muted); }
.stat-value { font-size: 2rem; font-weight: 550; margin: 6px 0; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .875rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
.stat-note { font-size: .75rem; color: var(--muted); }
.details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0; padding: 6px 25px 24px; gap: 0 30px; }
.details-grid > div { padding: 18px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.details-grid dt { font-size: .8125rem; color: var(--muted); margin-bottom: 5px; }
.details-grid dd { margin: 0; font-size: .875rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.role-card { border-top: 1px solid var(--line); padding: 20px 0; }
.role-card p { color: var(--muted); font-size: .8125rem; margin: 8px 0 0; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.activity-list { padding: 7px 22px; }
.activity-item { display: flex; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border: 0; }
.activity-item p { margin: 0 0 4px; font-size: .875rem; }
.activity-item small { color: var(--muted); overflow-wrap: anywhere; }
.activity-dot { height: 6px; width: 6px; background: #a898bc; border-radius: 50%; flex-shrink: 0; margin-top: 9px; }
.audit-changes { font-size: .8125rem; max-width: 460px; }
.audit-changes summary { color: var(--green); white-space: nowrap; }
.change-list { padding: 12px 0; min-width: 200px; }
.change-list > div { margin: 7px 0; overflow-wrap: anywhere; }
.change-list strong { display: block; font-weight: 550; }
.change-before { color: var(--muted); }
.project-overview { display: flex; gap: 22px; padding: 25px; }
.project-code { display: grid; place-items: center; height: 58px; min-width: 58px; background: var(--surface); border-radius: 7px; font-size: 1.5rem; }
.project-overview-main { flex: 1; min-width: 0; }
.project-overview-main > .muted { font-size: .8125rem; margin: 7px 0 20px; }
.compact-details { margin: 0 0 20px; font-size: .875rem; }
.compact-details > div { display: flex; gap: 24px; margin: 7px 0; }
.compact-details dt { color: var(--muted); flex-shrink: 0; }
.compact-details dd { margin: 0; overflow-wrap: anywhere; }
.progress-label { display: flex; justify-content: space-between; gap: 10px; font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
progress { width: 100%; height: 5px; border: 0; border-radius: 5px; background: var(--surface); appearance: none; margin-bottom: 20px; }
progress::-webkit-progress-bar { background: var(--surface); }
progress::-webkit-progress-value, progress::-moz-progress-bar { background: var(--green); }
.start-panel { background: var(--surface); padding: 25px; }
.start-panel > p { font-size: .875rem; color: var(--muted); }
.section-number { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 18px; }
.checklist { margin: 20px 0; }
.checklist > div { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; }
.checklist a { margin-left: auto; color: var(--green); }
.step-marker { width: 22px; height: 22px; text-align: center; border-radius: 50%; background: #eae6f1; }
.simple-list > a, .quick-actions > a { display: flex; justify-content: space-between; gap: 15px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: .875rem; }
.simple-list small, .quick-actions small { display: block; color: var(--muted); margin-top: 3px; }
.workflow-links { display: grid; gap: 20px; }
.workflow-links a { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.workflow-links strong { display: block; font-size: .9375rem; margin-bottom: 7px; }
.workflow-links span { color: var(--muted); font-size: .8125rem; }
.error-page { text-align: center; padding: 100px 24px; }
.error-page > p { color: var(--muted); }
.text-warning { color: #9a6c39; }

/* Public sign-in. */
.login-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { background: var(--nav); color: #fff; padding: 60px 12%; display: flex; flex-direction: column; }
.login-wordmark { font-size: 3.25rem; font-weight: 650; letter-spacing: -.1em; }
.brand-dot { display: inline-block; height: 8px; width: 8px; border-radius: 50%; background: #b9aad5; margin-left: 10px; }
.login-brand-text { margin: auto 0; padding: 70px 0; }
.login-brand .eyebrow { color: #b5a9c8; }
.login-brand h1 { font-size: 2.6rem; line-height: 1.7; font-weight: 500; margin: 22px 0; }
.login-brand-text > p:last-child { color: #b9b0c6; }
.login-location { border-top: 1px solid #ffffff20; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; font-size: .875rem; color: #cfc8d8; }
.login-location span { font-size: .8125rem; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 60px 45px; position: relative; }
.login-card { width: 100%; max-width: 380px; }
.login-card h2 { font-size: 1.6rem; margin: 12px 0 10px; }
.login-card > .muted { font-size: .875rem; }
.login-form { margin-top: 32px; }
.login-form .field { margin: 22px 0; }
.login-form .button { min-height: 46px; margin-top: 12px; justify-content: space-between; }
.login-help { margin-top: 24px; font-size: .8125rem; color: var(--muted); }
.login-footer { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; font-size: .75rem; color: var(--muted); }

/* Responsive layouts preserve table columns through local horizontal scrolling. */
@media (max-width: 1250px) {
  .main { padding: 26px 24px 40px; }
  .topbar { padding: 0 24px; gap: 16px; }
  .property-brand { display: none; }
  .record-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 26px; }
  .lease-identity { flex-wrap: wrap; }
  .lease-identity > .button-group { margin-left: 81px; }
  .operating-metrics > a, .operating-metrics > div { padding-right: 15px; padding-left: 15px; }
  .operating-metrics > :first-child { padding-left: 0; }
  .operating-metrics .metric-money { font-size: 1.45rem; }
}
@media (max-width: 1000px) {
  :root { --sidebar-width: 190px; }
  .operations-columns, .record-layout, .dashboard-grid, .detail-layout { grid-template-columns: 1fr; gap: 22px; }
  .record-side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .operating-metrics strong { font-size: 1.6rem; }
  .stat-grid, .role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .global-search { width: 220px; }
  .list-toolbar .search-field { max-width: none; }
  .toolbar-end { margin-left: 0; }
  .record-layout > div > .panel:last-child { margin-bottom: 0; }
}
@media (max-width: 760px) {
  .sidebar { display: none; top: 61px; width: 240px; box-shadow: 10px 0 25px #26233418; padding-top: 24px; }
  .sidebar.is-open { display: flex; }
  .sidebar .brand { display: none; }
  .workspace { margin-left: 0; width: 100%; }
  .topbar { height: 61px; position: sticky; top: 0; z-index: 40; padding: 0 16px; gap: 12px; }
  .menu-toggle.icon-button { display: inline-grid; border: 0; }
  .topbar-left { gap: 7px; }
  .property-name { font-size: .8125rem; }
  .global-search { display: none; }
  .account-menu > summary > span:not(.avatar) { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 24px 17px 35px; }
  .page-heading { flex-wrap: wrap; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
  h1 { font-size: 1.4rem; }
  .page-heading p { font-size: .8125rem; }
  .record-tabs { gap: 24px; }
  .list-toolbar { gap: 10px; padding: 18px 0 15px; }
  .list-toolbar .search-field { flex-basis: 100%; }
  .list-toolbar .compact-filter { flex: 1; min-width: 120px; max-width: none; }
  .list-caption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pagination { flex-wrap: wrap; }
  .toolbar { padding: 17px; }
  .list-toolbar { padding-left: 0; padding-right: 0; }
  .panel-heading, .panel-body { padding: 18px; }
  .panel-heading { flex-wrap: wrap; }
  .form-grid, .details-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-grid { padding: 22px; gap: 22px; }
  .form-actions, .form-section-heading { padding: 19px 22px; }
  .form-actions { flex-wrap: wrap; }
  .checkbox-label { padding-top: 0; }
  .operating-metrics { grid-template-columns: 1fr 1fr; margin-bottom: 25px; row-gap: 22px; }
  .operating-metrics > :nth-child(odd) { padding-left: 0; }
  .operating-metrics > :nth-child(even) { border-right: 0; }
  .operating-metrics .metric-money { font-size: 1.6rem; }
  .task-row { flex-wrap: wrap; }
  .task-copy { min-width: 160px; }
  .task-row > .button { margin-left: 47px; }
  .lease-identity > .button-group { margin-left: 0; }
  .unit-tile { min-width: 56px; height: 56px; font-size: 1.15rem; }
  .identity-copy h1 { font-size: 1.2rem; }
  .identity-copy p { line-height: 1.8; }
  .record-side { display: block; }
  .term-range { gap: 20px; }
  .term-range strong { font-size: 1.15rem; }
  .deposit-grid { grid-template-columns: 1fr; gap: 15px; }
  .source-values > div { grid-template-columns: 1fr; gap: 4px; }
  .bill-header { display: block; padding: 22px; }
  .bill-header dl { margin-top: 24px; }
  .role-grid { grid-template-columns: 1fr; }
  .project-overview { padding: 20px; }
  .project-code { display: none; }
  .schedule-caption { flex-wrap: wrap; padding: 14px 16px; }
  .month-navigation { flex-basis: 100%; }
  .schedule-table .schedule-room { width: 145px; min-width: 145px; max-width: 145px; padding: 12px; }
  .schedule-table { width: calc(145px + var(--days)*43px); }
  .login-layout { display: block; }
  .login-brand { padding: 25px; }
  .login-wordmark { font-size: 2rem; }
  .login-brand-text { padding: 16px 0 0; margin: 0; }
  .login-brand-text .eyebrow, .login-brand h1, .login-location { display: none; }
  .login-brand-text > p:last-child { font-size: .8125rem; margin: 0; }
  .login-panel { min-height: calc(100vh - 140px); padding: 40px 25px 85px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* Main working surfaces share the same frame and action placement. */
.main > .list-tabs { background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; padding: 0 24px; gap: 26px; }
.main > .list-surface { background: #fff; border: 1px solid var(--line); border-radius: 0 0 10px 10px; overflow: hidden; }
.list-surface .list-toolbar { padding: 20px 24px 17px; }
.list-surface .list-caption { padding: 0 24px; }
.list-surface .pagination { padding: 17px 24px; }
.list-surface th { background: #f8fafc; color: #8792a2; font-weight: 500; padding-top: 11px; padding-bottom: 11px; }
.list-surface td { padding-top: 16px; padding-bottom: 16px; }
.row-unit { display: inline-grid; place-items: center; min-width: 49px; min-height: 36px; padding: 4px 7px; border: 1px solid #e2e8f0; border-radius: 5px; background: #f6f8fb; color: #3f5b80; font-weight: 550; }
.table-primary { color: #354b66; }
.list-row-action { font-size: .8125rem; color: #5377a7; white-space: nowrap; }
.list-row-action:hover { color: #2b5994; text-decoration: underline; }
.button.danger { background: #a73737; border-color: #a73737; color: #fff; }
.button.danger:hover { background: #8e2c2c; }
.danger-link, .table-actions a.danger-link { color: #a64a4a; }
.danger-link:hover { color: #862e2e; }
.action-start { margin-right: auto; }
.removal-panel { max-width: 860px; }
.removal-panel h2 { margin-bottom: 16px; }
.removal-panel li { margin: 8px 0; }
.removal-blocker { padding: 16px 0; border-bottom: 1px solid #e6eaef; }
.removal-blocker p { margin: 0 0 12px; line-height: 1.7; }
.removal-confirm { display: flex; align-items: center; gap: 10px; margin: 24px 0; }
.removal-confirm input { width: 18px; min-height: 18px; accent-color: #a73737; }
.meter-clear-link { display: inline-block; margin-top: 6px; font-size: .75rem; color: #68788c; }
.table-icon-link { display: inline-flex; padding: 7px; color: #8193aa; border: 1px solid #e3e9f0; border-radius: 5px; }
.table-icon-link:hover { color: var(--green); background: #edf3fc; }
.table-icon-link .icon { width: 16px; height: 16px; }
.payment-filter { max-width: 148px !important; }
.operating-metrics { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 0; margin: 0 0 25px; }
.operating-metrics > :first-child { padding-left: 24px; }
.operating-metrics strong { color: #2d4769; font-weight: 500; }
.operating-metrics strong small { font-size: .75rem; }
.work-section { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 22px 24px 8px; }
.work-section .task-row:last-child { border-bottom: 0; }
.work-section .section-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.operations-columns { gap: 24px; }
.agenda-panel { background: #fff; padding: 22px 24px; }
.quick-workflows { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 25px; }
.quick-workflows > span { font-size: .75rem; color: var(--muted); margin-right: 8px; }
.quick-workflows a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid #dfe5ed; border-radius: 6px; background: #fff; font-size: .8125rem; color: #5d708a; }
.quick-workflows a:hover { border-color: #9eb5d4; color: #335f9a; }
.quick-workflows .icon { width: 16px; height: 16px; }
.record-layout > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.record-layout > div > .panel { padding-left: 24px; padding-right: 24px; }
.record-layout > div > .panel:last-child { margin-bottom: 0; }
.lease-identity { padding: 23px 26px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.main > .record-tabs:not(.list-tabs) { padding-left: 4px; }
.record-layout > div > .panel .panel-heading { padding-top: 22px; }
@media (max-width: 760px) {
 .main > .list-tabs { padding-left: 16px; padding-right: 16px; gap: 20px; }
 .list-surface .list-toolbar { padding: 16px; }
 .list-surface .list-caption { padding: 0 16px; }
 .list-surface .pagination { padding: 16px; }
 .operating-metrics > :first-child { padding-left: 16px; }
 .quick-workflows { gap: 8px; }
 .quick-workflows > span { width: 100%; }
 .record-layout > div > .panel { padding-left: 16px; padding-right: 16px; }
 .lease-identity { padding: 18px; }
 .work-section { padding: 18px 16px 6px; }
}

/* Long-term leasing: renewal windows and contract facts. */
.renewal-windows { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 22px 24px 0; }
.renewal-windows a { padding: 14px 18px; background: #f9fafc; border: 1px solid #e5eaf1; border-radius: 7px; }
.renewal-windows a:hover { border-color: #94afd2; }
.renewal-windows a[aria-current] { border-color: #85a6d3; background: #f1f6fd; }
.renewal-windows span { display: block; color: #708098; font-size: .875rem; }
.renewal-windows strong { display: block; margin-top: 5px; font-size: 1.625rem; font-weight: 500; font-variant-numeric: tabular-nums; color: #304e76; }
.renewal-windows small { font-size: .75rem; margin-left: 8px; font-weight: 400; color: #8491a3; }
.renewal-range-links { display: flex; flex-wrap: wrap; gap: 18px; padding: 16px 0; font-size: .8125rem; color: #79889b; }
.renewal-range-links strong { color: #4b678b; font-weight: 500; padding-left: 5px; }
.followup-cell { min-width: 145px; font-size: .8125rem; }
.followup-cell > a { display: block; }
.list-footnote { padding: 15px 24px; border-top: 1px solid var(--line); margin: 0; color: #8893a2; font-size: .75rem; line-height: 1.8; }
.room-list-panel .toolbar .search-field { max-width: 360px; }
.room-list-panel .toolbar .field:not(.search-field) { max-width: 180px; }
.room-list-panel td { font-size: .875rem; }
@media (max-width: 600px) {
 .renewal-windows { padding: 16px 16px 0; gap: 7px; }
 .renewal-windows a { padding: 10px; }
 .renewal-windows span { font-size: .75rem; }
 .renewal-windows strong { font-size: 1.375rem; }
 .renewal-windows small { display: block; margin-left: 0; }
 .list-footnote { padding: 14px 16px; }
}

@media print { .sidebar,.topbar,.breadcrumb,.page-heading,.notice,.disclosure,.panel { display: none; } .workspace { margin: 0; width: 100%; } .main,.notice-paper-scroll { padding: 0; margin: 0; overflow: visible; } .payment-notice { border: 0; min-width: 0; width: 100%; padding: 0; } }

.invoice-row-sync { margin-top: 8px; }
.invoice-row-actions { display: flex; align-items: center; gap: 12px; min-width: 114px; }
.invoice-due { white-space: nowrap; }
.invoice-applied-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 18px 14px; font-size: 12px; }
.invoice-applied-filters > span { color: var(--muted); margin-right: 3px; }
.invoice-applied-filters a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); max-width: 100%; }
.invoice-applied-filters a span { overflow-wrap: anywhere; min-width: 0; }
.invoice-applied-filters a:hover { background: #f5ece7; border-color: #c7a99a; }
.invoice-applied-filters .icon { width: 12px; height: 12px; flex-shrink: 0; }
.invoice-sync-notice ul { margin: 10px 0; padding-left: 20px; }
.invoice-sync-notice li { margin: 5px 0; }
.editor-billing-note { color: #68788c; font-size: .8125rem; line-height: 1.7; margin: 0 0 20px; }
