[data-view="renter-payments"] {
  color: #202c2d;
  min-width: 0;
  --rp-line: #dce3e2;
  --rp-muted: #5b6869;
  --rp-green: #17664f;
}
[data-view="renter-payments"] [hidden] { display: none !important; }
[data-view="renter-payments"] .page-header { margin-bottom: 20px; }
.rp-today {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 16px;
  align-items: center;
  padding: 16px 0 18px;
  border-block: 1px solid var(--rp-line);
}
.rp-today h2 { margin: 0 0 3px; font-size: 14px; color: var(--rp-green); }
.rp-today p { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.rp-today .rp-current-date { color: var(--rp-muted); font-size: 12px; }
.rp-today-number { display: grid; justify-items: end; gap: 2px; }
.rp-today-number strong { font-size: 26px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rp-today-number span { color: var(--rp-muted); font-size: 12px; }
.rp-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; }
.rp-switch { display: inline-flex; gap: 3px; padding: 3px; background: #e9efed; border-radius: 6px; flex: 0 0 auto; }
.rp-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 8px 13px; background: transparent; color: #495b56;
  border: 1px solid transparent; border-radius: 4px; font: inherit; font-size: 13px; font-weight: 600;
}
.rp-switch button[aria-pressed="true"] { background: #fff; color: #165a46; border-color: #d1dbd7; box-shadow: 0 1px 2px #182c2410; }
.rp-switch svg { width: 16px; height: 16px; flex: 0 0 auto; }
.rp-filters { display: flex; align-items: end; flex: 1 1 300px; justify-content: flex-end; gap: 10px; min-width: 0; }
.rp-filters label { display: grid; gap: 4px; min-width: 0; font-size: 12px; color: var(--rp-muted); }
.rp-filters label:first-child { flex: 1; max-width: 280px; }
.rp-filters input, .rp-filters select { width: 100%; min-width: 0; min-height: 40px; background: #fff; color: #202c2d; }
.rp-filters select { max-width: 190px; }
.rp-count { margin: 14px 0 12px; color: var(--rp-muted); font-size: 12px; }
.rp-weekday { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-top: 1px solid var(--rp-line); }
.rp-weekday > header { display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 6px; padding: 16px 14px 14px 0; }
.rp-weekday h2 { flex: 0 0 100%; font-size: 14px; margin: 0 0 2px; color: #253632; }
.rp-day-count { color: #697570; font-size: 12px; }
.rp-weekday.rp-current { border-top-color: #96b9a9; background: #f1f7f4; }
.rp-current > header { padding-left: 12px; }
.rp-weekend > header { border-left: 3px solid #d6b26d; padding-left: 12px; }
.rp-weekend-label { color: #886222; font-size: 10px; font-weight: 600; }
.rp-today-label { padding: 2px 6px; background: #dcefe4; color: #1f654b; border-radius: 3px; font-size: 10px; font-weight: 700; }
.rp-people { list-style: none; padding: 0; margin: 0; min-width: 0; }
.rp-person { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 13px 12px; min-height: 64px; }
.rp-person + .rp-person { border-top: 1px solid #e8edeb; }
.rp-person > div { min-width: 0; overflow-wrap: anywhere; }
.rp-person strong { display: block; font-size: 14px; font-weight: 650; color: #202d29; }
.rp-person small { display: block; font-size: 11px; color: var(--rp-muted); margin-top: 3px; }
.rp-person-date { flex: 0 0 auto; max-width: 160px; text-align: right; overflow-wrap: anywhere; font-size: 12px; color: #50655d; }
.rp-no-renters { margin: 0; min-height: 58px; display: flex; align-items: center; padding: 13px 12px; color: #77827c; font-size: 12px; }
.rp-extra { border-top: 1px solid var(--rp-line); margin-top: 20px; padding-top: 14px; }
.rp-extra h2 { margin: 0 0 6px; font-size: 14px; }
.rp-missing h2 { color: #8a5723; }
.rp-empty { padding: 24px 0; color: var(--rp-muted); font-size: 14px; }
.rp-calendar-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.rp-calendar-controls h2 { font-size: 16px; margin: 0; }
.rp-calendar-controls .button-group { gap: 4px; flex-wrap: nowrap; }
.rp-calendar-controls button { min-height: 36px; }
.rp-calendar-controls .icon-btn { width: 36px; height: 36px; flex: 0 0 36px; background: #fff; border: 1px solid var(--rp-line); color: #42584f; }
.rp-calendar-labels, .rp-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.rp-calendar-labels { padding: 6px 0; }
.rp-calendar-labels span { text-align: center; font-size: 11px; color: var(--rp-muted); }
.rp-calendar-labels span:nth-child(n+6) { color: #886222; }
.rp-calendar-grid { gap: 1px; background: var(--rp-line); border: 1px solid var(--rp-line); }
.rp-calendar-day {
  display: flex; flex-direction: column; align-items: stretch; gap: 7px; padding: 9px 7px;
  text-align: left; min-width: 0; min-height: 112px; border: 0; border-radius: 0; background: #fff;
  color: #27372f; font: inherit; cursor: pointer; box-shadow: none;
}
.rp-calendar-day.rp-is-weekend { background: #fcfbf7; }
.rp-calendar-day.rp-outside { background: #f3f5f3; color: #7f8981; }
.rp-calendar-day.rp-selected { box-shadow: inset 0 0 0 2px #497e63; background: #f0f7f2; }
.rp-calendar-day:hover { background: #eaf3ee; }
.rp-calendar-day:focus-visible { outline: 2px solid #236d52; outline-offset: -3px; }
.rp-date-number { font-size: 12px; width: 26px; height: 26px; display: grid; place-items: center; font-weight: 600; }
.rp-is-today .rp-date-number { border-radius: 50%; background: #1c654c; color: #fff; }
.rp-calendar-names { display: grid; gap: 4px; }
.rp-calendar-names > span { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.rp-calendar-names > small { font-size: 10px; color: var(--rp-muted); }
.rp-mobile-count { display: none; }
.rp-agenda { margin-top: 20px; border-top: 1px solid var(--rp-line); }
.rp-agenda > header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-block: 14px 2px; }
.rp-agenda h2 { font-size: 14px; margin: 0; }
@media (max-width: 760px) {
  .rp-toolbar { align-items: stretch; gap: 12px; }
  .rp-filters { flex-basis: 100%; justify-content: stretch; }
  .rp-filters label:first-child { max-width: none; }
  .rp-calendar-day { min-height: 74px; padding: 5px 2px; gap: 5px; align-items: center; }
  .rp-calendar-names { display: none; }
  .rp-mobile-count { display: block; font-size: 10px; color: #28614a; background: #e1ede5; padding: 0 6px; border-radius: 3px; font-weight: 600; line-height: 16px; }
  .rp-weekday { grid-template-columns: 112px minmax(0, 1fr); }
  .rp-weekday > header { padding-right: 6px; }
  .rp-person { gap: 4px; flex-wrap: wrap; align-content: center; padding-inline: 10px; }
  .rp-person > div { width: 100%; }
  .rp-person-date { max-width: none; text-align: left; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-view="renter-payments"] * { scroll-behavior: auto; }
}
