.pf-page,
.pf-form {
  --pf-ink: #203b35;
  --pf-muted: #5a6b63;
  --pf-border: #dce3db;
  --pf-green: #235648;
  --pf-sage: #e8f0e7;
  color: var(--pf-ink);
  min-width: 0;
}
.pf-page {
  display: grid;
  gap: 22px;
  align-content: start;
}
.pf-page h1,
.pf-page h2,
.pf-page h3,
.pf-form p,
.pf-page p {
  margin: 0;
}
.pf-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.pf-head h1 {
  font:
    600 clamp(1.9rem, 3.6vw, 2.65rem) / 1.13 Georgia,
    serif;
  letter-spacing: -0.045em;
}
.pf-head .pf-muted {
  margin-top: 7px;
}
.pf-page h2 {
  font:
    600 1.37rem/1.25 Georgia,
    serif;
  letter-spacing: -0.02em;
}
.pf-page h3 {
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.02em;
}
.pf-muted,
.pf-field small {
  color: var(--pf-muted, #5a6b63);
  line-height: 1.5;
}
.pf-page small,
.pf-form small {
  font-size: 0.83rem;
}
.pf-btn {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 14px;
  background: transparent;
  color: var(--pf-green, #235648);
  white-space: normal;
}
.pf-btn svg,
.pf-emblem svg,
.pf-smicon svg,
.pf-search svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}
.pf-primary {
  background: var(--pf-green, #235648);
  border-color: var(--pf-green, #235648);
  color: #fff;
  box-shadow: 0 1px 2px #173d2d16;
}
.pf-primary:hover {
  background: #173e33;
}
.pf-secondary {
  background: #fff;
  border-color: #cbd7cb;
}
.pf-secondary:hover,
.pf-text:hover {
  background: #edf3ed;
}
.pf-text {
  padding: 7px 6px;
  min-height: 40px;
}
.pf-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}
.pf-btn:focus-visible,
.pf-search input:focus-visible,
.pf-field input:focus-visible,
.pf-field select:focus-visible,
.pf-field textarea:focus-visible,
.pf-month input:focus-visible,
.pf-details summary:focus-visible,
.pf-tenancy summary:focus-visible {
  outline: 3px solid #3a8069;
  outline-offset: 2px;
}
.pf-actions,
.pf-toolbar,
.pf-cardtop,
.pf-line,
.pf-formfoot,
.pf-propertyhead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pf-toolbar,
.pf-cardtop,
.pf-propertyhead {
  justify-content: space-between;
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(285px, 100%), 1fr));
  gap: 16px;
}
.pf-card,
.pf-section,
.pf-empty,
.pf-stat {
  background: #fff;
  border: 1px solid var(--pf-border, #dce3db);
  border-radius: 14px;
}
.pf-card {
  padding: 21px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  flex-direction: column;
  min-width: 0;
}
.pf-card > * {
  overflow-wrap: anywhere;
  max-width: 100%;
}
.pf-cardtop,
.pf-propertyhead {
  width: 100%;
}
.pf-emblem,
.pf-smicon {
  background: #e7efe4;
  border-radius: 11px;
  color: #3f644a;
  width: 43px;
  height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pf-emblem svg {
  width: 23px;
  height: 23px;
}
.pf-smicon {
  width: 38px;
  height: 38px;
}
.pf-place {
  font-size: 0.8rem;
  color: #586a60;
  font-weight: 650;
}
.pf-propertyfacts {
  display: flex;
  gap: 17px;
  color: #516358;
  margin-top: auto;
  padding: 12px 0 0;
  border-top: 1px solid #e8ede7;
  width: 100%;
  font-size: 0.88rem;
}
.pf-property .pf-text,
.pf-card > .pf-text {
  padding-inline: 0;
}
.pf-search,
.pf-month {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd6cd;
  background: #fff;
  border-radius: 9px;
  color: var(--pf-muted, #5a6b63);
}
.pf-search {
  padding: 0 12px;
  max-width: 465px;
}
.pf-search input,
.pf-month input {
  background: transparent;
  border: none;
  font: inherit;
  min-height: 44px;
  min-width: 0;
  color: var(--pf-ink, #203b35);
}
.pf-search input {
  width: 100%;
  font-size: 0.95rem;
}
.pf-month {
  padding: 0 10px;
  font-size: 0.88rem;
}
.pf-month span {
  font-weight: 650;
}
.pf-month input {
  font-weight: 550;
  max-width: 180px;
}
.pf-empty {
  padding: 38px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
}
.pf-empty p {
  max-width: 32rem;
}
.pf-empty .pf-emblem {
  width: 50px;
  height: 50px;
}
.pf-empty .pf-btn {
  margin-top: 5px;
}
.pf-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 700;
  background: #edf0ec;
  color: #4a594d;
  padding: 6px 10px;
  white-space: nowrap;
}
.pf-good {
  background: #e0efdf;
  color: #2d6035;
}
.pf-late {
  background: #f7e3db;
  color: #8a3f2d;
}
.pf-amber {
  background: #f7edcb;
  color: #75590e;
}
.pf-warn,
.pf-error {
  color: #922f26;
}
.pf-tenancy {
  width: 100%;
  border-top: 1px solid #e2e8e2;
  padding-top: 10px;
}
.pf-tenancy summary,
.pf-details summary {
  font-weight: 650;
  cursor: pointer;
  min-height: 40px;
  line-height: 1.45;
  padding: 7px 0;
}
.pf-landinfo {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: var(--pf-muted);
  font-size: 0.9rem;
  margin: 5px 0 10px;
  line-height: 1.45;
}
.pf-rate {
  font-weight: 650;
}
.pf-notes {
  white-space: pre-line;
}
.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.pf-stat {
  padding: 16px 19px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pf-stat strong {
  font:
    600 clamp(1.35rem, 3vw, 1.9rem) / 1.16 Georgia,
    serif;
  letter-spacing: -0.03em;
}
.pf-stat .pf-muted {
  font-weight: 550;
  font-size: 0.86rem;
}
.pf-positive {
  background: #f0f6ed;
}
.pf-tabs {
  display: inline-flex;
  background: #eaf0e9;
  border-radius: 9px;
  gap: 3px;
  padding: 4px;
  flex-wrap: wrap;
}
.pf-tab,
.pf-tab-active {
  min-height: 38px;
  font-size: 0.88rem;
}
.pf-tab-active {
  background: #fff;
  box-shadow: 0 1px 4px #142c2120;
}
.pf-section {
  padding: 20px;
  min-width: 0;
}
.pf-section > .pf-cardtop,
.pf-section > h2 {
  margin-bottom: 14px;
}
.pf-section > .pf-field {
  max-width: 270px;
  margin-bottom: 12px;
}
.pf-section > .pf-empty {
  border: 0;
  padding: 23px 8px;
}
.pf-row,
.pf-ledgerrow,
.pf-previewrow {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #e4eae4;
  padding: 13px 0;
  overflow-wrap: anywhere;
}
.pf-list .pf-row:first-child,
.pf-list .pf-ledgerrow:first-child,
.pf-previewrow:first-child {
  border-top: 0;
}
.pf-row:last-child,
.pf-ledgerrow:last-child {
  padding-bottom: 0;
}
.pf-grow {
  flex: 1;
  min-width: 120px;
}
.pf-grow p,
.pf-ledgermoney small,
.pf-row .pf-end small {
  font-size: 0.84rem;
}
.pf-end,
.pf-ledgermoney {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-end;
}
.pf-ledgerrow {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) minmax(96px, 0.8fr) minmax(
      85px,
      0.55fr
    ) minmax(100px, auto);
  gap: 15px;
}
.pf-ledgerrow > .pf-actions {
  justify-content: flex-end;
}
.pf-strike {
  text-decoration: line-through;
  color: #6f776e;
}
.pf-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1rem;
}
.pf-formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 14px;
}
.pf-form [hidden],
.pf-page [hidden] {
  display: none !important;
}
.pf-wide {
  grid-column: 1/-1;
}
.pf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pf-label {
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
  color: #34483b;
}
.pf-field > input,
.pf-field > select,
.pf-field > textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #bdc9bc;
  color: #1d392e;
  font: inherit;
  padding: 9px 11px;
}
.pf-field input[type="file"] {
  font-size: 0.88rem;
  padding: 8px;
}
.pf-field textarea {
  min-height: 75px;
  resize: vertical;
}
.pf-field select {
  appearance: auto;
}
.pf-check {
  display: flex;
  gap: 9px;
  align-items: center;
  line-height: 1.5;
}
.pf-check input {
  height: 20px;
  width: 20px;
  accent-color: #235648;
  flex-shrink: 0;
}
.pf-formfoot {
  justify-content: flex-end;
  border-top: 1px solid #dfe7df;
  padding-top: 14px;
}
.pf-details {
  border-block: 1px solid #dce4db;
  padding: 4px 0;
}
.pf-details[open] {
  padding-bottom: 13px;
}
.pf-details .pf-formgrid {
  margin-top: 6px;
}
.pf-people {
  display: grid;
  gap: 12px;
}
.pf-people:empty {
  display: none;
}
.pf-contactentry,
.pf-banknote {
  background: #f4f7f0;
  border: 1px solid #dce5d9;
  border-radius: 9px;
  padding: 13px;
}
.pf-banknote {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pf-error {
  padding: 9px 12px;
  background: #fff2ec;
  border: 1px solid #e8b8a5;
  border-radius: 6px;
}
.pf-preview {
  max-height: 13rem;
  overflow: auto;
}
.pf-previewrow {
  justify-content: space-between;
}
@media (max-width: 900px) {
  .pf-ledgerrow {
    grid-template-columns: minmax(120px, 1fr) auto auto;
  }
  .pf-ledgerrow > .pf-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .pf-row {
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .pf-page {
    gap: 16px;
  }
  .pf-head {
    gap: 14px;
  }
  .pf-head .pf-actions {
    width: 100%;
  }
  .pf-section,
  .pf-card {
    padding: 16px;
  }
  .pf-stats {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .pf-stat {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
  }
  .pf-stat strong {
    font-size: 1.35rem;
  }
  .pf-ledgerrow {
    grid-template-columns: 1fr auto;
  }
  .pf-ledgermoney {
    align-items: flex-end;
  }
  .pf-ledgerrow .pf-end {
    align-items: flex-start;
  }
  .pf-ledgerrow > .pf-actions {
    grid-column: auto;
  }
  .pf-formgrid {
    grid-template-columns: 1fr;
  }
  .pf-formfoot .pf-btn {
    flex: 1;
  }
  .pf-toolbar {
    align-items: stretch;
  }
  .pf-tabs .pf-btn {
    min-height: 42px;
  }
  .pf-row .pf-grow {
    flex-basis: 65%;
  }
  .pf-search {
    max-width: none;
  }
  .pf-head h1 {
    font-size: 2.1rem;
  }
  .pf-row .pf-text {
    padding-inline: 4px;
  }
}
