/* Property workspace only. Shared retail, hospitality and subscription styles stay independent. */
.property-mode {
  --pm-orange: #ed6d12;
  --pm-orange-dark: #a74708;
  --pm-navy: #17243d;
  --pm-muted: #647087;
  --pm-border: #e7e9ed;
  color: var(--pm-navy);
  font-family: Inter, system-ui, sans-serif;
  background: #f7f8fa;
  padding: 28px 32px 44px;
  min-width: 0;
  border-radius: 0;
}

/* Parking feature */
.property-mode .pm-parking-tabs{display:flex;gap:4px;border-bottom:1px solid #e4e7ec;margin-bottom:22px;overflow:auto}.property-mode .pm-parking-tabs button{border:0;background:transparent;border-radius:0;padding:13px 16px;color:#667085;font-weight:750;white-space:nowrap;position:relative}.property-mode .pm-parking-tabs button.active{color:#0b1538}.property-mode .pm-parking-tabs button.active::after{content:"";position:absolute;height:3px;left:12px;right:12px;bottom:-1px;background:#ff7900;border-radius:3px 3px 0 0}.property-mode .pm-parking-status{background:#0b1538;color:#fff;border-radius:22px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;box-shadow:0 12px 36px rgba(15,28,55,.08)}.property-mode .pm-parking-status h2{color:#fff;margin:4px 0 6px}.property-mode .pm-parking-status p{color:#b9c1d8;margin:0}.property-mode .pm-parking-status>span{background:rgba(255,121,0,.16);color:#ffab59;padding:8px 12px;border-radius:999px;font-weight:800;font-size:12px}.property-mode .pm-parking-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.property-mode .pm-parking-metrics article{background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:18px;box-shadow:0 4px 18px rgba(15,28,55,.035)}.property-mode .pm-parking-metrics span{color:#667085;font-weight:650}.property-mode .pm-parking-metrics strong{display:block;color:#0b1538;font-size:26px;margin:16px 0 3px;letter-spacing:-.03em}.property-mode .pm-parking-metrics small{color:#667085}.property-mode .pm-parking-config{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.property-mode .pm-parking-settings-card{display:flex;align-items:center;justify-content:space-between;gap:24px;border-left:4px solid #ff7900}.property-mode .pm-parking-settings-card p{margin-bottom:0}.property-mode .pm-parking-settings-card .pm-primary{flex:none}
.property-mode .pm-parking-setup{margin:16px 0;padding-left:22px;color:var(--pm-muted);display:grid;gap:9px;line-height:1.5}.property-mode .pm-parking-setup a{color:var(--pm-navy);font-weight:750;text-decoration-color:var(--pm-orange);text-underline-offset:3px}.property-mode .pm-parking-guard-list{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.property-mode .pm-parking-guard-list span{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--pm-border);border-radius:999px;padding:8px 11px;color:var(--pm-navy);background:#fff;font-weight:700}.property-mode .pm-parking-guard-list svg{width:16px;height:16px;color:var(--pm-orange)}
@media(max-width:900px){.property-mode .pm-parking-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.property-mode .pm-parking-config{grid-template-columns:1fr}}
@media(max-width:560px){.property-mode .pm-parking-status{align-items:flex-start;flex-direction:column}.property-mode .pm-parking-metrics{grid-template-columns:1fr 1fr}.property-mode .pm-parking-metrics article{padding:14px}.property-mode .pm-parking-metrics strong{font-size:22px}.property-mode .pm-parking-settings-card{align-items:flex-start;flex-direction:column}}
.property-mode * {
  box-sizing: border-box;
}
.property-mode .icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.property-mode h1,
.property-mode h2,
.property-mode h3,
.property-mode p {
  margin: 0;
}
.property-mode h1 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 6px 0 8px;
}
.property-mode h1:focus {
  outline: none;
}
.property-mode h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.25px;
}
.property-mode h3 {
  font-size: 15px;
  font-weight: 650;
}
.property-mode p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--pm-muted);
}
.pm-eyebrow {
  display: block;
  color: #7a8190;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}
.pm-header,
.pm-toolbar,
.pm-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.pm-header {
  margin-bottom: 24px;
  gap: 18px;
}
.pm-actions {
  justify-content: flex-start;
}
.property-mode button,
.property-mode input,
.property-mode select,
.property-mode textarea {
  font: inherit;
  font-size: 13px;
  border: 1px solid #dfe3e9;
  border-radius: 8px;
  padding: 10px 13px;
  background: #fff;
  color: var(--pm-navy);
  min-height: 40px;
  max-width: 100%;
}
.property-mode button {
  cursor: pointer;
  font-weight: 600;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.property-mode button:hover {
  background: #f7f8fa;
  border-color: #bac2ce;
}
.property-mode button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.property-mode button:focus-visible,
.property-mode input:focus-visible,
.property-mode select:focus-visible,
.property-mode textarea:focus-visible,
.pm-nav-item:focus-visible {
  outline: 3px solid #aa4a08;
  outline-offset: 3px;
}
.property-mode .pm-primary {
  background: #c6530a;
  color: #fff;
  border-color: #c6530a;
  box-shadow: 0 2px 3px #b9481012;
}
.property-mode .pm-primary:hover {
  background: #ce5809;
  border-color: #ce5809;
}
.pm-actions button,
.property-mode .pm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.property-mode .pm-primary > span[aria-hidden] {
  font-size: 20px;
  line-height: 1;
}
.pm-header > .pm-actions {
  margin-left: auto;
}
.pm-toolbar {
  border-top: 1px solid var(--pm-border);
  padding-top: 18px;
  margin-bottom: 24px;
  min-width: 0;
}
.pm-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.pm-scope > span {
  display: flex;
  color: #7c8799;
}
.property-mode .pm-scope select {
  border: 0;
  background: transparent;
  font-weight: 600;
  padding-left: 0;
  max-width: 270px;
  min-width: 180px;
}
.pm-period {
  font-size: 12px;
  color: #7b8495;
}
.pm-search {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--pm-border);
  padding-left: 12px;
  border-radius: 8px;
  color: #7c8799;
}
.property-mode .pm-search input {
  border: 0;
  background: transparent;
  min-width: 0;
}
.pm-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.pm-nav > .nav-label {
  display: none;
}
.property-mode .pm-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-nav-item {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin: 2px 0;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #59667c;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.pm-nav-item .icon {
  width: 18px;
  height: 18px;
  flex: none;
}
.pm-nav-item:hover {
  background: #f7f8fa;
  color: #17243d;
}
.pm-nav-item.active,
.property-mode .pm-nav-item.active {
  background: #fff0e5;
  color: #a74708;
  font-weight: 700;
}
.pm-nav-item.active .icon {
  color: #dc640f;
}
.property-mode .pm-nav-item {
  width: auto;
}
.pm-metrics {
  display: grid;
  grid-template-columns: repeat(var(--pm-metric-count, 4), minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}
.property-mode .pm-metric {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  min-width: 0;
  box-shadow: 0 2px 4px #14203a02;
}
.property-mode .pm-metric:hover {
  border-color: #efb48b;
  background: #fffdfa;
}
.pm-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 550;
  color: #647087;
}
.pm-metric-top .icon {
  color: #8791a1;
  width: 20px;
  height: 20px;
}
.pm-metric strong {
  display: block;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.8px;
  line-height: 1.3;
  padding: 16px 0 15px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.pm-metric-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  font-weight: 450;
  color: #7a8495;
}
.pm-metric-detail > span {
  font-size: 16px;
}
.property-mode .pm-metric-accent {
  border-top: 3px solid var(--pm-orange);
  padding-top: 18px;
}
.pm-metric-accent strong {
  color: #bd5109;
}
.pm-metric-accent .pm-metric-top .icon {
  color: var(--pm-orange);
}
.pm-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  align-items: start;
}
.pm-overview-main,
.pm-overview-aside {
  min-width: 0;
  display: grid;
  gap: 22px;
}
.pm-panel,
.pm-card {
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  min-width: 0;
  overflow: hidden;
}
.pm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
}
.pm-panel-head p {
  margin-top: 5px;
  font-size: 12px;
}
.property-mode .pm-text-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--pm-orange-dark);
  font-size: 12px;
  min-height: 36px;
  padding: 6px 0;
  white-space: nowrap;
}
.property-mode .pm-text-button:hover {
  color: #6e2b00;
  background: transparent;
  text-decoration: underline;
}
.pm-panel-head .pm-text-button {
  margin-left: auto;
}
.pm-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.pm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pm-table th {
  color: #7b8495;
  background: #f9fafb;
  font-weight: 550;
  text-align: left;
  font-size: 11px;
}
.pm-table td,
.pm-table th {
  padding: 15px 20px;
  border-bottom: 1px solid #edf0f5;
  white-space: nowrap;
}
.pm-table tr:last-child td {
  border-bottom: 0;
}
.pm-table tbody tr:hover {
  background: #fdfbf9;
}
.pm-table td.pm-number,
.pm-table th.pm-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.property-mode .pm-table button {
  padding: 6px 9px;
  min-height: 34px;
  font-size: 12px;
}
.pm-property-name {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-property-name strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.pm-property-name small {
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #7a8495;
  font-size: 11px;
  margin-top: 4px;
}
.pm-building {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  border: 1px solid #eceef2;
  border-radius: 8px;
  background: #fafbfc;
  color: #7c879a;
}
.pm-occupancy-cell {
  display: grid;
  gap: 6px;
  font-size: 11px;
  color: #697386;
}
.pm-occupancy-cell meter {
  height: 5px;
  width: 72px;
  appearance: none;
  border: 0;
  background: #edf0f3;
  border-radius: 5px;
  overflow: hidden;
}
.pm-occupancy-cell meter::-webkit-meter-bar {
  background: #edf0f3;
  border: 0;
}
.pm-occupancy-cell meter::-webkit-meter-optimum-value {
  background: var(--pm-orange);
}
.pm-occupancy-cell meter::-moz-meter-bar {
  background: var(--pm-orange);
}
.property-mode .pm-row-link {
  border: 0;
  background: transparent;
  color: #697386;
}
.pm-row-link .icon {
  width: 16px;
  height: 16px;
}
.pm-count {
  background: #f3f4f6;
  min-width: 25px;
  padding: 4px 7px;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  color: #697386;
}
.pm-attention-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  border-top: 1px solid #edf0f5;
}
.pm-attention-row strong {
  font-size: 13px;
  font-weight: 650;
}
.pm-attention-row p {
  font-size: 12px;
  margin-top: 4px;
}
.pm-attention-row .pm-text-button {
  margin-left: auto;
}
.pm-small-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff4ea;
  color: #b75812;
  flex-shrink: 0;
}
.pm-clear-state {
  text-align: center;
  padding: 24px 24px 32px;
  border-top: 1px solid #edf0f5;
}
.pm-clear-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff3e8;
  color: #c65b0b;
  margin: 0 auto 12px;
}
.pm-clear-state p {
  max-width: 340px;
  margin: 6px auto 0;
  font-size: 12px;
}
.pm-quick-actions {
  display: grid;
  padding: 0 12px 12px;
  gap: 3px;
}
.property-mode .pm-quick-actions button {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: 0;
  min-height: 44px;
  font-weight: 550;
  font-size: 12px;
  padding: 10px;
}
.pm-quick-actions button .icon {
  color: #8c95a3;
  width: 18px;
  height: 18px;
}
.pm-quick-actions button > span:last-child {
  margin-left: auto;
  color: #8c95a3;
  font-size: 17px;
}
.pm-occupancy-panel {
  padding-bottom: 22px;
}
.pm-occupancy-total {
  padding: 0 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.pm-occupancy-total strong {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
}
.pm-occupancy-total > span {
  font-size: 11px;
  color: #7c8594;
}
.pm-occupancy-bar {
  height: 9px;
  border-radius: 6px;
  background: #eef0f4;
  margin: 20px 22px;
  overflow: hidden;
}
.pm-occupancy-bar > span {
  display: block;
  height: 100%;
  background: var(--pm-orange);
  border-radius: 6px;
}
.pm-legend {
  padding: 0 22px;
  display: grid;
  gap: 10px;
  font-size: 12px;
  color: #697386;
}
.pm-legend > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pm-legend strong {
  margin-left: auto;
  color: #17243d;
}
.pm-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--pm-orange);
}
.pm-legend > span + span i {
  background: #dfe3e9;
}
.pm-data-note {
  display: flex;
  gap: 9px;
  padding: 0 8px;
  color: #9aa2af;
}
.pm-data-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.pm-data-note p {
  font-size: 11px;
  line-height: 1.7;
}
.pm-setup {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 25px;
  border: 1px solid #efd9c7;
  background: #fffaf5;
  border-radius: 12px;
  margin-bottom: 24px;
}
.pm-setup-icon {
  width: 52px;
  height: 58px;
  border: 1px solid #f3dfcc;
  border-radius: 12px;
  background: #fff;
  color: #ce600c;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pm-setup-icon .icon {
  width: 29px;
  height: 29px;
}
.pm-setup h2 {
  font-size: 19px;
  margin: 7px 0;
}
.pm-setup p {
  font-size: 12px;
  max-width: 500px;
}
.pm-setup .pm-primary {
  margin-left: auto;
  flex-shrink: 0;
}
.pm-setup-steps {
  display: flex;
  gap: 20px;
  color: #8a8390;
  font-size: 11px;
  margin-top: 15px;
}
.pm-setup-steps .is-complete {
  color: #b5520d;
  font-weight: 650;
}
.pm-section-content {
  background: #fff;
  border: 1px solid var(--pm-border);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.pm-section-content > .pm-actions {
  margin-bottom: 22px;
}
.pm-section-content > h2 {
  margin: 28px 0 16px;
}
.pm-section-content > button {
  margin-bottom: 18px;
}
.pm-section-content .pm-card {
  padding: 22px;
  margin-bottom: 20px;
}
.pm-card p {
  margin: 12px 0;
}
.pm-card strong {
  display: block;
}
.pm-badge {
  padding: 5px 8px;
  border-radius: 6px;
  background: #fff0de;
  color: #8a4700;
}
.pm-empty {
  text-align: center;
  padding: 40px 20px;
  color: #667085;
  font-size: 13px;
}
.pm-error {
  padding: 16px;
  background: #fff0ed;
  border: 1px solid #e9b0a8;
  border-radius: 8px;
}
.pm-note {
  color: #647087;
  font-size: 12px;
  margin-top: 18px !important;
}
.pm-detail {
  white-space: pre-wrap;
}
.pm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.pm-dialog.property-mode {
  width: min(640px, calc(100vw - 32px));
  max-height: 88vh;
  overflow: auto;
  border: 1px solid #dce0e8;
  border-radius: 16px;
  color: #17243d;
  background: #fff;
  padding: 28px;
}
.pm-dialog h2 {
  text-transform: capitalize;
  font-size: 21px;
  margin: 0 0 24px;
}
.pm-dialog::backdrop {
  background: #0b153866;
  backdrop-filter: blur(2px);
}
.pm-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pm-form label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
}
.pm-form .full {
  grid-column: 1/-1;
  font-size: 13px;
}
.pm-form [data-error],.pm-form .pm-field-error { color:#ac2c19; }
.pm-form .pm-field-error:empty { display:none; }
.pm-form .pm-field-help { color:#647087;font-size:11px;font-weight:400;line-height:1.5; }
.pm-form .pm-balance-preview { border:1px solid #e7e9ed;border-radius:12px;background:#f7f8fa;padding:18px;color:#17243d; }
.pm-preview-heading { display:flex;align-items:center;gap:8px;margin-bottom:14px; }
.pm-preview-heading h3 { margin:0;font-size:14px; }
.pm-balance-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.pm-balance-grid>div { display:grid;gap:5px; }
.pm-balance-grid span { font-size:11px;color:#647087; }
.pm-balance-grid strong { font-size:16px;letter-spacing:-.25px; }
.pm-balance-grid .pm-preview-emphasis strong { color:#a74708; }
.pm-balance-preview p { font-size:12px;color:#647087;line-height:1.6;margin:16px 0 0; }
.pm-balance-preview button { margin-top:14px; }
.pm-form input,
.pm-form select,
.pm-form textarea {
  width: 100%;
  box-sizing: border-box;
}
.pm-form input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: #ed6d12;
}
.pm-form .pm-actions {
  grid-column: 1/-1;
  margin-top: 12px;
  justify-content: flex-end;
}
.pm-form textarea {
  min-height: 90px;
  resize: vertical;
}
/* One persistent navigation rail on desktop, existing drawer on small screens. */
body.property-workspace {
  background: #f7f8fa;
}
.property-workspace .app-layout {
  grid-template-columns: 232px minmax(0, 1fr);
}
.property-workspace .sidebar {
  padding: 20px 14px 12px;
  background: #fff;
}
.property-workspace .sidebar .nav {
  display: block;
}
.property-workspace .sidebar .brand {
  padding: 2px 10px 22px;
}
.property-workspace .sidebar .brand-name {
  font-size: 16px;
}
.property-workspace .sidebar .nav-label {
  color: #959ca8;
  font-size: 9px;
  letter-spacing: 1.2px;
  padding: 12px 12px 7px;
}
.property-workspace .sidebar .pm-shared-label {
  margin-top: 16px;
  border-top: 1px solid #f0f1f4;
  padding-top: 20px;
}
.property-workspace .sidebar .nav a {
  font-size: 12px;
  font-weight: 550;
  min-height: 39px;
  padding: 9px 12px;
}
.property-workspace .sidebar .nav a.active,
.property-workspace .sidebar-settings.active {
  background: #fff0e5;
  color: #a74708;
}
.property-workspace .sidebar .nav a.active::before {
  background: #ed6d12;
}
.property-workspace .main {
  padding: 0;
}
.property-workspace .topbar {
  padding: 0 32px;
  height: 72px;
  gap: 14px;
}
.property-workspace .workspace-title strong {
  font-size: 14px;
  font-weight: 650;
}
.property-workspace .workspace-title span {
  font-size: 11px;
}
.property-workspace .branch-selector {
  border: 0;
  background: transparent;
}
.property-workspace .branch-selector select {
  font-size: 12px;
  max-width: 180px;
}
.property-workspace .status-chip {
  background: #f5f6f8;
  border: 0;
  color: #647087;
}
.property-workspace .status-chip .icon {
  color: #647087;
}
.property-workspace .install-button {
  background: #fff;
  color: #59667c;
  border: 1px solid #e3e6ec;
}
.property-workspace .user-button {
  background: #fff1e5;
  color: #a74708;
}
.property-workspace .staff-mode-button {
  background: #fff;
  border: 1px solid #e3e6ec;
  color: #59667c;
}
.property-workspace .sidebar .local-status {
  background: #f7f8fa;
}
.property-workspace .sidebar .local-status .icon {
  color: #647087;
}
@media (min-width: 901px) {
  .property-workspace .sidebar {
    position: sticky;
    transform: none;
    left: auto;
    width: auto;
    visibility: visible;
    height: 100dvh;
  }
  .property-workspace .menu-button,
  .property-workspace .sidebar-close {
    display: none;
  }
  .property-workspace .sidebar-backdrop {
    display: none !important;
  }
}
@media (min-width: 1600px) {
  .property-mode {
    padding-left: 40px;
    padding-right: 40px;
    max-width: 1720px;
    margin: 0 auto;
  }
  .pm-overview-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .pm-metric strong {
    font-size: 32px;
  }
}
@media (max-width: 1200px) {
  .property-mode {
    padding: 24px;
  }
  .pm-overview-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  .pm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .pm-panel-head {
    padding: 18px;
  }
  .pm-metric strong {
    font-size: 26px;
  }
  .pm-setup {
    flex-wrap: wrap;
  }
  .pm-setup .pm-primary {
    margin-left: 72px;
  }
  .property-workspace .topbar {
    padding: 0 24px;
    gap: 8px;
  }
  .property-workspace .topbar .status-chip span {
    display: none;
  }
}
@media (max-width: 1050px) {
  .pm-overview-grid {
    grid-template-columns: 1fr;
  }
  .pm-overview-aside {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .pm-data-note {
    grid-column: 1/-1;
  }
  .pm-panel-head .pm-text-button {
    font-size: 11px;
  }
  .property-workspace .topbar .staff-mode-button span {
    display: none;
  }
  .property-workspace .topbar .workspace-title span {
    max-width: 170px;
  }
}
@media (max-width: 900px) {
  .property-workspace .app-layout {
    grid-template-columns: 1fr;
  }
  .property-workspace .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 264px;
    max-width: 85vw;
    height: 100dvh;
    transform: translateX(-105%);
    z-index: 50;
    visibility: visible;
  }
  .property-workspace .sidebar.open {
    transform: translateX(0);
  }
  .property-workspace .menu-button,
  .property-workspace .sidebar-close {
    display: grid;
  }
  .property-workspace .sidebar-backdrop.visible {
    display: block;
    z-index: 45;
  }
  .property-mode .pm-nav {
    flex-wrap: nowrap;
    overflow: auto;
    padding: 4px 3px 12px;
  }
  .property-mode .pm-nav-item {
    flex-shrink: 0;
  }
  .pm-header > .pm-actions {
    margin-left: 0;
  }
  .property-workspace .topbar .workspace-title span {
    max-width: 200px;
  }
}
@media (max-width: 600px) {
  .property-mode {
    padding: 20px 16px 32px;
  }
  .property-mode h1 {
    font-size: 25px;
  }
  .pm-header {
    gap: 16px;
    margin-bottom: 18px;
  }
  .pm-header > .pm-actions {
    width: 100%;
  }
  .pm-header > .pm-actions .pm-primary {
    margin-left: auto;
  }
  .pm-metrics {
    gap: 10px;
    margin-bottom: 16px;
  }
  .property-mode .pm-metric {
    padding: 15px 13px;
  }
  .pm-metric-top {
    font-size: 11px;
    gap: 4px;
  }
  .pm-metric-top .icon {
    width: 16px;
    height: 16px;
  }
  .pm-metric strong {
    font-size: 22px;
    padding: 12px 0;
  }
  .pm-metric-detail {
    font-size: 10px;
  }
  .pm-overview-aside {
    grid-template-columns: 1fr;
  }
  .pm-overview-main,
  .pm-overview-aside {
    gap: 16px;
  }
  .pm-toolbar {
    gap: 6px;
  }
  .property-mode .pm-scope select {
    max-width: 230px;
    min-width: 0;
    font-size: 12px;
  }
  .pm-period {
    font-size: 10px;
  }
  .pm-setup {
    padding: 20px;
    gap: 12px;
  }
  .pm-setup-icon {
    display: none;
  }
  .pm-setup .pm-primary {
    margin: 4px 0 0;
  }
  .pm-setup-steps {
    gap: 14px;
  }
  .pm-attention-row {
    flex-wrap: wrap;
    padding: 16px;
  }
  .pm-attention-row .pm-text-button {
    margin-left: 46px;
  }
  .pm-panel-head {
    padding: 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pm-panel-head .pm-text-button {
    margin-left: 0;
  }
  .pm-table td,
  .pm-table th {
    padding: 13px 16px;
  }
  .pm-section-content {
    padding: 16px;
  }
  .pm-form {
    grid-template-columns: 1fr;
  }
  .property-workspace .topbar {
    padding: 0 14px;
    height: 64px;
    gap: 8px;
  }
  .property-workspace .topbar .workspace-title {
    flex: 1;
  }
  .property-workspace .topbar .branch-selector {
    max-width: 115px;
  }
  .property-workspace .topbar .branch-selector select {
    max-width: 100px;
  }
  .property-workspace .topbar .user-button,
  .property-workspace .topbar [data-sync-status] {
    display: none;
  }
  .property-workspace .topbar .workspace-title strong {
    font-size: 12px;
  }
  .property-workspace .topbar .workspace-title span {
    max-width: 130px;
    font-size: 10px;
  }
  .pm-search {
    width: 100%;
  }
  .pm-search input {
    flex: 1;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .property-mode button {
    transition: none;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  body > .pm-print {
    display: block !important;
  }
  .pm-print {
    font: 12pt Arial;
    color: #0b1538;
    padding: 20px;
  }
  .pm-print table {
    width: 100%;
    border-collapse: collapse;
  }
  .pm-print td,
  .pm-print th {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  .pm-print h1 {
    border-bottom: 3px solid #ff7900;
    padding-bottom: 20px;
  }
  .pm-print footer {
    margin-top: 40px;
  }
}

.pm-form .pm-required {
  font-size: 10px;
  font-weight: 400;
  color: #7b8495;
  margin-left: 8px;
}
.pm-dialog .pm-form-help {
  margin: -12px 0 24px;
}
.pm-form .pm-next-lease {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff7ef;
  border-radius: 8px;
  padding: 12px;
  color: #7d3d0b;
}
.pm-form .pm-next-lease input {
  width: 18px;
  min-height: 18px;
}
.pm-form [hidden] {
  display: none;
}
@media (max-width: 600px) {
  .pm-metric strong {
    font-size: 18px;
    letter-spacing: -0.5px;
  }
  .pm-metric-top {
    font-size: 10px;
  }
  .property-workspace .topbar [data-install],
  .property-workspace .topbar [data-network] {
    display: none;
  }
}


/* Parking guard PIN management: owner-only controls using the existing staff API. */
.property-mode .pm-parking-open-staff,
.property-mode .pm-parking-set-pin {
  border: 1px solid #ed6d12;
  border-radius: 12px;
  min-height: 48px;
  padding: 12px 17px;
  font-weight: 750;
  color: #17243d;
  background: #fff7ef;
  cursor: pointer;
}
.property-mode .pm-parking-open-staff {
  margin-top: 12px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
}
.property-mode .pm-parking-set-pin {
  background: #ff7900;
  border-color: #ff7900;
  color: #101c30;
  white-space: nowrap;
}
.property-mode .pm-parking-guard-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.property-mode .pm-parking-guard-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 15px;
  padding: 12px;
}
.property-mode .pm-parking-guard-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.property-mode .pm-parking-guard-info svg {
  flex-shrink: 0;
  color: #ed6d12;
}
.property-mode .pm-parking-guard-info strong {
  color: #17243d;
  overflow-wrap: anywhere;
}
.property-mode .pm-parking-guard-info small {
  display: block;
  color: #667085;
  margin-top: 3px;
}
.property-mode .pm-parking-pin-notice {
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff4e9;
  color: #663d1e;
  border: 1px solid #ffca99;
  margin-bottom: 14px;
}
.pm-dialog.pm-parking-pin-dialog {
  width: min(460px, calc(100vw - 28px));
}
.pm-parking-pin-dialog .pm-parking-pin-help {
  margin: 0 0 20px;
}
.pm-parking-pin-dialog .pm-parking-pin-form {
  display: grid;
  gap: 16px;
}
.pm-parking-pin-dialog .pm-parking-pin-form label {
  display: grid;
  gap: 8px;
  color: #17243d;
  font-weight: 700;
}
.pm-parking-pin-dialog .pm-parking-pin-form input {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}
.pm-parking-pin-dialog .pm-parking-pin-error {
  color: #b42318;
  min-height: 20px;
}
@media (max-width: 560px) {
  .property-mode .pm-parking-set-pin,
  .property-mode .pm-parking-open-staff {
    width: 100%;
    justify-content: center;
  }
  .property-mode .pm-parking-guard-row {
    align-items: stretch;
  }
}


/* Grouped property navigation and document branding, using the workspace palette. */
.property-mode .pm-mpesa-workspace { display:grid;gap:22px;min-width:0; }
.property-mode .pm-mpesa-intro { padding:24px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px; }
.property-mode .pm-mpesa-intro h2 { margin:8px 0;font-size:24px;letter-spacing:-.6px; }
.property-mode .pm-mpesa-intro p { color:var(--pm-muted);line-height:1.6;max-width:650px; }
.property-mode .pm-mpesa-intro>.pm-badge { align-self:start; }
.property-mode .pm-mpesa-connection { grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:24px;border-top:1px solid var(--pm-border);padding-top:20px; }
.property-mode .pm-mpesa-connection>div,.property-mode .pm-mpesa-metrics article { display:grid;gap:8px; }
.property-mode .pm-mpesa-connection span,.property-mode .pm-mpesa-metrics span { font-size:12px;color:var(--pm-muted);font-weight:600; }
.property-mode .pm-mpesa-connection strong { font-size:19px;color:var(--pm-navy);overflow-wrap:anywhere; }
.property-mode .pm-mpesa-connection small,.property-mode .pm-mpesa-metrics small { color:var(--pm-muted);font-size:12px;line-height:1.5; }
.property-mode .pm-mpesa-intro>.pm-note { grid-column:1/-1;margin:0; }
.property-mode .pm-mpesa-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.property-mode .pm-mpesa-metrics article { background:white;border:1px solid var(--pm-border);border-radius:14px;padding:20px; }
.property-mode .pm-mpesa-metrics strong { font-size:30px;letter-spacing:-1px;color:var(--pm-navy); }
.property-mode .pm-mpesa-metrics .pm-mpesa-attention { border-top:3px solid #ed6d12; }
.property-mode .pm-mpesa-empty { padding:24px;color:var(--pm-muted);font-size:13px;line-height:1.6; }
.property-mode .pm-mpesa-empty strong { color:var(--pm-navy);font-size:15px; }
.property-mode .pm-account-reference { display:inline-block;padding:7px 10px;border:1px solid #f0d7c2;border-radius:7px;background:#fff7ef;color:#91400e;font:650 12px Inter,system-ui,sans-serif;letter-spacing:.3px;overflow-wrap:anywhere; }
.property-mode .pm-payment-instructions { display:grid;gap:6px;background:#f7f8fa;border:1px solid var(--pm-border);border-radius:12px;padding:20px;margin:20px 0; }
.property-mode .pm-payment-instructions span { color:var(--pm-muted);font-size:12px; }
.property-mode .pm-payment-instructions strong { margin-bottom:12px;overflow-wrap:anywhere; }
@media(max-width:760px) {
 .property-mode .pm-mpesa-intro { grid-template-columns:1fr;padding:20px; }
 .property-mode .pm-mpesa-connection,.property-mode .pm-mpesa-metrics { grid-template-columns:1fr;gap:14px; }
 .property-mode .pm-mpesa-workspace .pm-panel-head { flex-wrap:wrap;gap:14px; }
}
.pm-print { display:none; }
.pm-nav-group { margin-bottom: 10px; }
.pm-nav-group .nav-label { padding: 14px 12px 7px; font: 700 10px Inter,system-ui,sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #647087; }
.property-mode .pm-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; padding: 12px; border: 1px solid var(--pm-border); border-radius: 12px; background: #fff; }
.property-mode .pm-nav-item { width: 100%; }
.property-mode .pm-mobile-nav { display: none; }
.property-mode .pm-toolbar[hidden] { display: none; }
.property-mode .pm-branding-card { margin-bottom: 20px; }
.pm-branding-identity { display:flex;align-items:center;gap:18px;margin-bottom:20px; }
.pm-branding-identity img { width:100px;max-height:64px;object-fit:contain; }
.pm-branding-placeholder { display:grid;place-items:center;width:64px;height:64px;border:1px solid #e7e9ed;border-radius:12px;background:#fff7ef;color:#a74708; }
.pm-branding-card .pm-note { margin-top:16px; }
.pm-logo-editor { display:grid;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:12px 20px;padding:18px;border:1px solid #e7e9ed;border-radius:12px;background:#f7f8fa; }
.pm-logo-editor [data-logo-preview] { background:white;border:1px solid #e7e9ed;border-radius:10px;min-height:78px;display:grid;place-items:center;overflow:hidden;padding:10px;font-size:12px;color:#647087;text-align:center; }
.pm-logo-editor img { max-width:100%;max-height:70px;object-fit:contain; }
.pm-logo-editor small { font-size:12px;font-weight:400;color:#647087;line-height:1.5; }
.pm-logo-editor [data-logo-status] { grid-column:1/-1; }
.pm-logo-editor input[type=file] { max-width:100%;font-size:12px;padding:8px;background:#fff; }
.pm-document-dialog { width:min(940px,96vw);max-width:96vw;max-height:94dvh;border:1px solid #e7e9ed;border-radius:18px;padding:0;background:#f7f8fa;color:#17243d;box-shadow:0 24px 80px #17243d33; }
.pm-document-dialog::backdrop { background:#17243d80; }
.pm-document-controls { position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:#fff;border-bottom:1px solid #e7e9ed;font:14px Inter,system-ui,sans-serif; }
.pm-document-controls p { font-size:12px;color:#647087;margin:5px 0 0;line-height:1.5; }
.pm-document-controls>div:last-child { display:flex;gap:8px;flex-shrink:0; }
.pm-document-controls button { min-height:44px;border:1px solid #d7dce3;border-radius:8px;padding:10px 16px;font:600 13px Inter,system-ui,sans-serif;color:#17243d;background:white;cursor:pointer; }
.pm-document-controls [data-document-print] { background:#ed6d12;border-color:#ed6d12;color:white; }
.pm-document-controls button:focus-visible { outline:3px solid #a74708;outline-offset:3px; }
.pm-document-controls button:disabled { opacity:.6;cursor:wait; }
.pm-document { box-sizing:border-box;max-width:800px;margin:24px auto;padding:38px 42px;background:white;border:1px solid #e7e9ed;border-radius:4px;font:13px/1.6 Inter,system-ui,sans-serif;color:#17243d;overflow-wrap:anywhere; }
.pm-document * { box-sizing:border-box; }
.pm-document p,.pm-document h1,.pm-document h2,.pm-document h3 { margin:0; }
.pm-document-header { display:flex;justify-content:space-between;align-items:flex-start;gap:20px;border-bottom:3px solid #ed6d12;padding-bottom:24px; }
.pm-document-identity { display:flex;align-items:center;gap:18px;min-width:0; }
.pm-document-logo { max-width:130px;max-height:80px;object-fit:contain; }
.pm-document-identity h2 { font-size:19px;line-height:1.35;font-weight:750;letter-spacing:-.4px; }
.pm-document-identity p { color:#647087;font-size:11px; }
.pm-document-address { white-space:pre-line; }
.pm-document-type { color:#a74708;text-transform:uppercase;font-size:10px;font-weight:700;letter-spacing:1px;white-space:nowrap; }
.pm-document-heading { display:flex;justify-content:space-between;align-items:center;gap:16px;margin:28px 0 24px; }
.pm-document-eyebrow { font-size:11px;font-weight:650;color:#647087;letter-spacing:.5px; }
.pm-document h1 { font-size:28px;line-height:1.3;letter-spacing:-.8px;margin-top:4px; }
.pm-document-status { border:1px solid #ed6d1240;border-radius:999px;padding:6px 12px;font-size:11px;font-weight:700;background:#fff7ef;color:#a74708;white-space:nowrap; }
.pm-document-status.is-reversed { color:#a52f23;background:#fff0ed;border-color:#ecc5bf; }
.pm-document-reversal { border:1px solid #ecc5bf;background:#fff0ed;padding:14px;margin-bottom:20px;color:#a52f23;border-radius:8px; }
.pm-document-meta { display:grid;grid-template-columns:1fr 1fr;gap:18px 28px;margin-bottom:26px; }
.pm-document-meta span { display:block;color:#647087;font-size:11px;margin-bottom:2px; }
.pm-document-meta strong { font-size:13px;font-weight:600; }
.pm-document-table { overflow-x:auto; }
.pm-document table { width:100%;border-collapse:collapse;font-size:11px; }
.pm-document th { color:#647087;background:#f7f8fa;font-size:10px;text-transform:uppercase;letter-spacing:.35px;font-weight:700; }
.pm-document th,.pm-document td { text-align:left;padding:12px 10px;border-bottom:1px solid #e7e9ed;vertical-align:top; }
.pm-document th:not(:first-child),.pm-document td:not(:first-child) { text-align:right;font-variant-numeric:tabular-nums; }
.pm-document-note { padding:14px 0;font-size:11px;color:#647087; }
.pm-document-totals { width:60%;margin:24px 0 28px auto;padding:18px;border:1px solid #e7e9ed;border-radius:10px;background:#fcfcfd; }
.pm-document-totals>div { display:flex;justify-content:space-between;gap:16px;padding:6px 0;font-size:12px; }
.pm-document-totals strong { font-variant-numeric:tabular-nums;text-align:right; }
.pm-document-totals>div:first-child { font-size:15px; }
.pm-document-totals>div:last-child:not(:first-child) { border-top:1px solid #e7e9ed;margin-top:7px;padding-top:12px; }
.pm-document-instructions { padding:16px 0;border-top:1px solid #e7e9ed; }
.pm-document-instructions h3 { font-size:12px; }
.pm-document-instructions p { white-space:pre-line;font-size:12px;color:#647087; }
.pm-document footer { margin-top:28px;border-top:1px solid #e7e9ed;padding-top:16px;color:#647087;font-size:10px; }
.pm-document footer span { display:block;margin-top:10px;font-weight:650;color:#17243d; }
@media(max-width:760px) {
 .property-mode .pm-nav { display:none; }
 .property-mode .pm-mobile-nav { display:grid;gap:6px;font-size:12px;font-weight:650;color:var(--pm-muted);margin-bottom:18px; }
 .property-mode .pm-mobile-nav select { width:100%;min-height:46px;border:1px solid var(--pm-border);border-radius:10px;background:white;color:var(--pm-navy);padding:10px 12px;font:600 14px Inter,system-ui,sans-serif; }
 .pm-document { margin:12px;padding:24px;border-radius:8px; }
 .pm-document-controls { flex-wrap:wrap;padding:14px 18px; }
 .pm-document-header { flex-direction:column; }
 .pm-document-identity { flex-wrap:wrap; }
 .pm-document-totals { width:100%; }
 .pm-document-logo { max-width:100px;max-height:60px; }
}
@media(max-width:420px) {
 .pm-document { padding:20px 16px;margin:8px; }
 .pm-document h1 { font-size:23px; }
 .pm-document-heading { align-items:flex-start;flex-direction:column;gap:10px; }
 .pm-document-meta { gap:14px; }
 .pm-logo-editor { grid-template-columns:1fr; }
 .pm-branding-identity { align-items:flex-start; }
}
@media print {
 @page { size:A4; margin:14mm; }
 body>.pm-print { padding:0;font-family:Inter,system-ui,sans-serif; }
 .pm-print .pm-document { width:100%;max-width:none;margin:0;border:0;border-radius:0;padding:0;font-size:10pt; }
 .pm-print .pm-document-header { flex-direction:row; }
 .pm-print .pm-document-heading { flex-direction:row;align-items:center; }
 .pm-print .pm-document h1 { border:0;padding:0;font-size:23pt; }
 .pm-print .pm-document-totals { width:60%; }
 .pm-print .pm-document-logo { max-width:120px;max-height:72px; }
 .pm-print .pm-document-table { overflow:visible; }
 .pm-print th,.pm-print td { font-size:9pt;padding:8px; }
 .pm-print thead { display:table-header-group; }
 .pm-print tr,.pm-print .pm-document-meta,.pm-print .pm-document-totals { break-inside:avoid; }
 .pm-print .pm-document footer { margin-top:24px; }
}

/* Collection status is readable without relying on colour. */
.property-mode .pm-collections{margin-bottom:24px;overflow:hidden}
.property-mode .pm-collection-controls{display:flex;gap:12px;flex-wrap:wrap}
.property-mode .pm-collection-controls label{display:grid;gap:6px;font-size:12px;font-weight:650;color:var(--pm-muted)}
.property-mode .pm-collection-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--pm-border);border:1px solid var(--pm-border);border-radius:12px;overflow:hidden;margin:16px 0}
.property-mode .pm-collection-totals article{padding:18px;background:#fff;min-width:0}
.property-mode .pm-collection-totals span,.property-mode .pm-collection-totals small{display:block;font-size:12px;color:var(--pm-muted);line-height:1.5}
.property-mode .pm-collection-totals strong{display:block;font-size:23px;letter-spacing:-.5px;margin:9px 0 4px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.property-mode .pm-collection-alert{background:#fff5eb;border:1px solid #f4d1ae;border-radius:12px;padding:16px;margin:16px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.property-mode .pm-collection-alert strong{color:#903a07;font-size:13px}
.property-mode .pm-collection-alert p{flex:1 1 240px}
.property-mode .pm-collection-statuses{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.property-mode .pm-collection-statuses button{border-radius:999px;display:flex;gap:9px;align-items:center}
.property-mode .pm-collection-statuses button[aria-pressed=true]{background:var(--pm-navy);color:white;border-color:var(--pm-navy)}
.property-mode .pm-collection-statuses span{font-variant-numeric:tabular-nums;opacity:.8}
.property-mode .pm-status{display:inline-block;border:1px solid #dbe2ec;border-radius:999px;padding:6px 9px;color:#243958;background:#f2f5f9;font-size:11px;font-weight:700;white-space:nowrap}
.property-mode .pm-status-unpaid,.property-mode .pm-status-unbilled,.property-mode .pm-status-part_paid{background:#fff5eb;color:#903a07;border-color:#f3cfab}
.property-mode .pm-overdue{display:block;color:#a52a20;font-size:11px;margin-top:7px;font-weight:650}
.property-mode .pm-collection-row-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.property-mode .pm-collections .pm-note{margin-top:16px}
@media(max-width:1050px){.property-mode .pm-collection-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.property-mode .pm-collection-totals strong{font-size:20px}}
@media(max-width:560px){.property-mode .pm-collection-controls{width:100%}.property-mode .pm-collection-controls label{flex:1;min-width:130px}.property-mode .pm-collection-totals article{padding:13px}.property-mode .pm-collection-totals strong{font-size:18px}.property-mode .pm-collection-statuses{gap:6px}.property-mode .pm-collection-statuses button{font-size:12px;padding:8px 10px}}
.property-mode .pm-cell-detail{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:var(--pm-muted)}
.property-mode .pm-collections .pm-table{table-layout:fixed}
.property-mode .pm-collections .pm-table th,.property-mode .pm-collections .pm-table td{white-space:normal;overflow-wrap:anywhere;padding:14px 12px;vertical-align:top}
.property-mode .pm-collections .pm-table th:nth-child(1){width:22%}
.property-mode .pm-collections .pm-table th:nth-child(2){width:11%}
.property-mode .pm-collections .pm-table th:nth-child(3){width:13%}
.property-mode .pm-collections .pm-table th:nth-child(4){width:12%}
.property-mode .pm-collections .pm-table th:nth-child(5){width:11%}
.property-mode .pm-collections .pm-table th:nth-child(6){width:16%}
.property-mode .pm-collections .pm-table th:nth-child(7){width:15%}
@media(max-width:800px){
.property-mode .pm-collections .pm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.property-mode .pm-collections .pm-table,.property-mode .pm-collections .pm-table tbody{display:block}
.property-mode .pm-collections .pm-table tr{display:grid;grid-template-columns:1fr 1fr;padding:12px;border-top:1px solid var(--pm-border)}
.property-mode .pm-collections .pm-table td{display:block;padding:8px;border:0;min-width:0}
.property-mode .pm-collections .pm-table td:first-child,.property-mode .pm-collections .pm-table td:last-child{grid-column:1/-1}
.property-mode .pm-collections .pm-table td:before{display:block;color:var(--pm-muted);font-size:10px;margin-bottom:5px}
.property-mode .pm-collections .pm-table td:nth-child(2):before{content:'Purpose'}
.property-mode .pm-collections .pm-table td:nth-child(3):before{content:'This month'}
.property-mode .pm-collections .pm-table td:nth-child(4):before{content:'Left to pay'}
.property-mode .pm-collections .pm-table td:nth-child(5):before{content:'Earlier balance'}
.property-mode .pm-collections .pm-table td:nth-child(6):before{content:'Status'}
.property-mode .pm-collection-row-actions{flex-direction:row;flex-wrap:wrap}
}

.pm-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;margin-top:20px}.pm-team-grid h2{font-size:18px}.staff-access-workspace.property-mode .pm-card{padding:20px;background:#fff}.pm-team-check{display:flex!important;align-items:center;gap:10px}.pm-team-check input{width:auto!important}.pm-dialog fieldset{border:1px solid #e2e8f0;border-radius:12px;padding:16px}.pm-dialog [data-role-help]{padding:14px;background:#fff4e8;border-radius:10px;font-size:13px;line-height:1.6}

.pm-team-form{display:grid;gap:16px}.pm-team-form label{display:grid;gap:7px;font-size:13px;font-weight:650}.pm-team-form input,.pm-team-form select{width:100%;min-height:44px;padding:10px 12px;border:1px solid #dce0e8;border-radius:9px;background:#fff;color:#17243d;font:inherit}.pm-team-form footer{display:flex;justify-content:flex-end;gap:10px}.pm-team-form [data-error]{color:#ac2c19}.pm-team-form legend{font-size:13px;font-weight:700}.pm-team-form fieldset{display:grid;gap:10px}.staff-access-workspace.property-mode .pm-card{margin:16px 0}.staff-access-workspace.property-mode .pm-team-grid .pm-card{margin:0}

.property-mode .pm-fund-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:20px 0}.pm-fund-summary dt{font-size:12px;color:var(--pm-muted);line-height:1.5}.pm-fund-summary dd{margin:8px 0 0;font-size:22px;font-weight:700;letter-spacing:-.4px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}@media(max-width:600px){.property-mode .pm-fund-summary{grid-template-columns:1fr;gap:16px}}


.property-mode .pm-paybill-setup{border-top:3px solid #f97316}
.property-mode .pm-paybill-steps{padding-left:1.4rem;display:grid;gap:.6rem}
.property-mode .pm-paybill-steps li::marker{color:#c2410c;font-weight:700}
.property-mode .pm-paybill-steps p{margin:.35rem 0;color:#475569;line-height:1.55}

/* Setup and tenant changes share the property workspace's type, colour and spacing. */
.pm-dialog.pm-flow-dialog{width:min(680px,calc(100vw - 32px));max-height:90dvh;padding:0;border:1px solid var(--pm-border);border-radius:20px;background:#fff;box-shadow:0 24px 80px #17243d26;overflow:auto}
.pm-flow-heading{display:flex;align-items:flex-start;gap:16px;padding:28px 28px 24px;border-bottom:1px solid var(--pm-border)}
.pm-flow-heading h2{font-size:23px;line-height:1.3;letter-spacing:-.65px;margin:5px 0 8px}
.pm-flow-heading p{max-width:490px}.pm-flow-heading>[data-close]{margin-left:auto;flex:none;font-size:24px;line-height:1;min-width:40px;padding:6px;background:#f7f8fa;border:0}
.pm-flow-symbol{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:13px;background:#fff1e5;color:var(--pm-orange-dark);flex:none}
.pm-flow-form.pm-form{display:block;padding:0 28px;margin:0}.pm-flow-section{padding:24px 0;border-bottom:1px solid var(--pm-border)}
.pm-flow-section>h3{font-size:14px;font-weight:750;margin-bottom:16px}.pm-flow-section>p,.pm-flow-details>p{margin:0 0 16px}.pm-flow-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}
.pm-flow-grid>label{min-width:0;font-size:12px;font-weight:650;display:flex;flex-direction:column;gap:8px}.pm-flow-grid input,.pm-flow-grid select{min-height:46px;width:100%;border-color:#dce1e8;border-radius:10px}.pm-flow-grid .pm-required{font-size:9px;margin-left:6px}
.pm-flow-details{padding:20px 0;border-bottom:1px solid var(--pm-border)}.pm-flow-details>summary{cursor:pointer;color:var(--pm-navy);font-size:13px;font-weight:700;list-style-position:inside}.pm-flow-details[open]>summary{margin-bottom:20px}.pm-flow-details .pm-flow-grid{margin-top:16px}
.pm-flow-preview{padding:18px 20px;border-radius:12px;background:#fff8f1;border:1px solid #f4dec8;margin:24px 0;color:var(--pm-navy)}.pm-flow-preview>strong{font-size:14px}.pm-flow-preview p{margin-top:7px}.pm-flow-preview[hidden]{display:none}
.pm-flow-footer{display:flex;gap:12px;justify-content:flex-end;position:sticky;bottom:0;background:#fff;padding:20px 0;border-top:1px solid var(--pm-border);z-index:1}.pm-flow-dialog> .pm-flow-footer{padding:20px 28px}.pm-flow-footer button{min-height:44px;padding:11px 18px;border-radius:10px}.pm-flow-error:not(:empty){padding:0 0 18px;font-size:13px;line-height:1.6;color:#a42c21}
.pm-flow-summary{padding:20px;margin:20px 0;background:#f7f8fa;border:1px solid var(--pm-border);border-radius:12px}.pm-flow-summary>div{display:flex;justify-content:space-between;gap:16px;margin-bottom:10px;font-size:13px}.pm-flow-summary p{margin-top:14px}
.pm-manage-actions{display:grid;gap:10px;padding:24px 28px}.pm-manage-actions>button{display:flex;align-items:center;justify-content:space-between;min-height:52px;text-align:left;border-radius:12px;padding:14px 16px}.pm-manage-actions>button span{font-size:22px;color:var(--pm-muted)}
.pm-save-notice{background:#fff5eb;border:1px solid #efd7bf;color:#793b12;padding:14px 18px;border-radius:12px;margin:0 0 20px;font-size:13px;font-weight:600;line-height:1.6}
.pm-tenant-filters{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.pm-tenant-filters button{display:inline-flex;align-items:center;gap:10px;border-radius:999px;padding:8px 14px}.pm-tenant-filters button.active{background:var(--pm-navy);color:#fff;border-color:var(--pm-navy)}.pm-tenant-filters button span{font-size:11px;opacity:.75}
.pm-more-actions{position:relative;font-size:12px}.pm-more-actions summary{padding:12px;cursor:pointer}.pm-more-actions[open]{padding:0 0 8px}.pm-more-actions button{margin:8px}
.pm-utility-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 24px}.pm-utility-intro h2{font-size:22px;letter-spacing:-.5px;margin:7px 0 8px}.pm-utility-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.pm-utility-cards>article{padding:24px;border:1px solid var(--pm-border);border-radius:16px;background:white}.pm-utility-cards h3{font-size:17px;margin:16px 0 8px}.pm-utility-cards p{margin:0 0 18px}.pm-utility-cards button{margin:0 8px 8px 0}
.pm-shared-tenants{display:grid;gap:8px;max-height:240px;overflow:auto}.pm-flow-check{display:flex!important;flex-direction:row!important;align-items:center;gap:12px;padding:12px;border:1px solid var(--pm-border);border-radius:10px;font-size:13px}.pm-flow-check input{width:18px!important;height:18px!important;min-height:18px!important;accent-color:var(--pm-orange)}.pm-share-preview{display:grid;margin-top:14px;max-height:280px;overflow:auto}.pm-share-preview>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #eadfd3;font-size:12px}.pm-share-preview small{display:block;font-size:11px;color:var(--pm-muted);margin-top:5px}.pm-share-preview strong{white-space:nowrap}
@media(max-width:600px){.pm-dialog.pm-flow-dialog{width:calc(100vw - 20px);max-height:94dvh;border-radius:16px}.pm-flow-heading{padding:22px 18px;gap:12px}.pm-flow-heading h2{font-size:20px}.pm-flow-heading>.pm-flow-symbol{display:none}.pm-flow-form.pm-form{padding:0 18px}.pm-flow-grid{grid-template-columns:1fr;gap:16px}.pm-flow-section{padding:20px 0}.pm-flow-footer{gap:10px}.pm-flow-footer .pm-primary{flex:1}.pm-flow-dialog>.pm-flow-footer{padding:18px}.pm-manage-actions{padding:20px 18px}.pm-utility-cards{grid-template-columns:1fr;gap:14px}.pm-utility-intro{align-items:flex-start;flex-direction:column;gap:16px}.pm-flow-preview{padding:16px}}


.pm-flow-grid>label:has(input[type="checkbox"]){grid-column:1/-1;flex-direction:row;align-items:center;gap:12px}.pm-flow-grid>label input[type="checkbox"]{order:-1;flex:none;width:18px;min-height:18px;height:18px;accent-color:var(--pm-orange)}


.pm-residential-summary{margin-block:0 2rem}.pm-residential-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.pm-residential-metric{border:1px solid #dce2ea;border-radius:1rem;background:#fff;padding:1.25rem;display:flex;flex-direction:column;gap:.5rem}.pm-residential-metric>span{font-size:.9rem;color:#4c5870}.pm-residential-metric>strong{font-size:1.65rem;line-height:1.25;color:#0b1538;letter-spacing:-.03em}.pm-residential-metric>small{font-size:.85rem;line-height:1.5;color:#5b6475}.pm-residential-metric:nth-child(2){border-top:3px solid #ed6d12}.pm-month-control{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem;color:#283b54}.pm-month-control input{font:inherit;min-height:2.75rem;border:1px solid #cbd2de;border-radius:.65rem;padding:.5rem .75rem;background:white}.pm-property-open{font:inherit!important;font-weight:650!important;color:#b94b08!important;background:none!important;border:0!important;padding:0!important;text-align:left}.pm-property-context{display:flex;gap:.5rem;flex-wrap:wrap;margin:0 0 1.25rem}.pm-property-context button{min-height:2.75rem}.pm-tenant-photos{display:flex;gap:.5rem;flex-wrap:wrap}.pm-tenant-photos img{width:5rem;height:5rem;object-fit:cover;border-radius:.5rem}.pm-service-summary{margin:1rem 0;padding:1rem;border:1px solid #dce2ea;border-radius:.75rem}.pm-service-summary p{margin:.35rem 0;font-size:.95rem;color:#35425b}
@media(max-width:1100px){.pm-residential-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.pm-residential-grid{gap:.65rem}.pm-residential-metric{padding:.9rem}.pm-residential-metric>strong{font-size:1.35rem}.pm-residential-summary .pm-section-heading{align-items:flex-start;flex-direction:column}}
.pm-financial-nav{display:flex;gap:.45rem;overflow-x:auto;padding:.25rem 0 1rem;margin-bottom:.5rem}.pm-financial-nav button{white-space:nowrap;min-height:2.75rem;padding:.65rem 1rem;font-size:.9rem;border:1px solid #d5dce7;border-radius:.65rem;background:#fff;color:#36425b}.pm-financial-nav button[aria-current=page]{background:#fff1e6;border-color:#ed6d12;color:#9e3e07;font-weight:650}
.property-mode .pm-residential-summary .pm-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.property-mode .pm-residential-summary .pm-month-control{flex:0 0 12rem;min-width:10rem;margin:0}.pm-service-summary>div{display:flex;justify-content:space-between;align-items:flex-start;gap:1.5rem;padding:.35rem 0}.pm-service-summary>div>span{flex:0 0 35%;color:#536077}.pm-service-summary>div>strong{flex:1;text-align:right;font-weight:600}.tenant-brand img{background:#e9630c;border-radius:12px}
@media(max-width:600px){.property-mode .pm-residential-summary .pm-section-heading{flex-direction:column}.property-mode .pm-residential-summary .pm-month-control{flex:auto;width:100%;max-width:18rem}.pm-service-summary>div{display:block}.pm-service-summary>div>span,.pm-service-summary>div>strong{display:block;text-align:left}}
.pm-photo-gallery{display:grid;gap:1rem;margin:1rem 0}.pm-photo-gallery img{display:block;max-width:100%;height:auto;border-radius:.75rem}
