/* =====================================================================
   RENTALS — the property grid and the per-property lead board.

   Money design tokens only (money.css), so this inherits light and dark
   without a single hard-coded colour beyond the six column accents, which
   are the one thing on the page that has to stay legible at a glance.
   ===================================================================== */

.rn-swept {
  font-size: 13px; color: var(--m-muted);
  margin: -6px 0 18px; padding: 10px 14px;
  background: var(--m-surface-2); border: 1px solid var(--m-line-soft); border-radius: 8px;
}
.rn-swept code { font-size: 12px; background: var(--m-surface); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--m-line); }
.rn-sec { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--m-faint); margin: 30px 0 12px; }

/* ---- the grid of properties ---- */
.rn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

.rn-tile {
  display: block; text-decoration: none; color: inherit;
  background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 12px;
  padding: 16px; box-shadow: var(--m-shadow);
  transition: border-color .12s ease, transform .12s ease;
}
.rn-tile:hover { border-color: var(--m-accent); transform: translateY(-1px); }
.rn-tile.off { opacity: .62; }
.rn-tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rn-tile-head > * { min-width: 0; overflow-wrap: anywhere; }
.rn-addr { font-weight: 650; font-size: 15px; color: var(--m-ink); }
/* a pasted address or name with no spaces wraps inside its tile or card
   instead of pushing the page sideways */
.rn-tile, .rn-card { min-width: 0; overflow-wrap: anywhere; }
.rn-sub { font-size: 12px; color: var(--m-faint); margin-top: 2px; }
.rn-facts { margin-top: 10px; font-size: 14px; color: var(--m-ink); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rn-facts .per { font-size: 12px; color: var(--m-muted); margin-left: -4px; }
.rn-facts .dot { color: var(--m-faint); }
.rn-facts span:not(.per):not(.dot) { font-size: 13px; color: var(--m-muted); }

/* One stripe per column, width by lead count: the board's shape in 6px. */
.rn-bar { display: flex; gap: 2px; margin-top: 14px; height: 6px; }
.rn-seg { border-radius: 3px; min-width: 6px; }
.rn-seg.new { background: var(--m-accent); }
.rn-seg.wait { background: var(--m-warn); }
.rn-seg.shown { background: #7c8db0; }
.rn-seg.booked { background: #4f7fb8; }
.rn-seg.good { background: var(--m-pos); }
.rn-seg.warm { background: #b08d5a; }
.rn-seg.dead { background: var(--m-line); }
.rn-seg.empty { background: var(--m-line-soft); }

.rn-tile-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 12px; color: var(--m-muted); }
.rn-due { color: var(--m-neg); font-weight: 600; }
.rn-ok { color: var(--m-faint); }

/* ---- the board header ---- */
.rn-board-facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline;
  margin: -8px 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--m-line);
  font-size: 13px; color: var(--m-muted);
}
.rn-board-facts .rent { font-size: 20px; font-weight: 650; color: var(--m-ink); }
.rn-board-facts .rent i { font-size: 12px; font-style: normal; font-weight: 400; color: var(--m-muted); }

/* ---- the six columns ---- */
.rn-board {
  display: grid; grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start;
}
.rn-col { background: var(--m-surface-2); border: 1px solid var(--m-line-soft); border-radius: 10px; min-width: 0; }
.rn-col-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-bottom: 1px solid var(--m-line-soft);
  font-size: 12px; font-weight: 650; color: var(--m-ink);
  border-top: 3px solid var(--m-line); border-radius: 10px 10px 0 0;
}
.rn-col-head .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn-col-head.new { border-top-color: var(--m-accent); }
.rn-col-head.wait { border-top-color: var(--m-warn); }
.rn-col-head.shown { border-top-color: #7c8db0; }
.rn-col-head.booked { border-top-color: #4f7fb8; }
.rn-col-head.good { border-top-color: var(--m-pos); }
.rn-col-head.warm { border-top-color: #b08d5a; }
.rn-col-head.dead { border-top-color: var(--m-line); }
.rn-count { font-size: 11px; color: var(--m-muted); background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 10px; padding: 1px 7px; }
.rn-late { font-size: 11px; font-weight: 700; color: #fff; background: var(--m-neg); border-radius: 10px; padding: 1px 7px; }

.rn-drop { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 90px; border-radius: 0 0 10px 10px; }
.rn-drop.over { background: var(--m-accent-soft); outline: 2px dashed var(--m-accent); outline-offset: -4px; }
.rn-blank { font-size: 12px; color: var(--m-faint); text-align: center; padding: 16px 0; }

/* ---- a card ---- */
.rn-card {
  background: var(--m-surface); border: 1px solid var(--m-line); border-radius: 9px;
  padding: 11px 12px; cursor: grab; box-shadow: var(--m-shadow);
  min-width: 0; overflow-wrap: anywhere;
}
.rn-card:active { cursor: grabbing; }
.rn-card.dragging { opacity: .45; }
.rn-card.late { border-color: var(--m-neg); }
.rn-card-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 14px; color: var(--m-ink); }
.rn-phone { font-size: 12px; color: var(--m-muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.rn-phone.none { color: var(--m-neg); }
.rn-quote {
  font-size: 12px; color: var(--m-muted); margin-top: 8px; line-height: 1.45;
  border-left: 2px solid var(--m-line); padding-left: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.rn-quote.big { -webkit-line-clamp: unset; font-size: 14px; margin: 0 0 16px; padding: 10px 14px; background: var(--m-surface-2); border-radius: 0 8px 8px 0; }
.rn-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.rn-mini span { font-size: 11px; color: var(--m-muted); background: var(--m-surface-2); border-radius: 4px; padding: 1px 6px; }
.rn-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--m-faint); }
.rn-flag { color: var(--m-neg); font-weight: 650; }
.rn-card-acts { display: flex; gap: 5px; margin-top: 9px; }
.rn-card-acts .m-btn { flex: 1; justify-content: center; }

.rn-tally { font-size: 11px; color: var(--m-muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
.rn-tally b { color: var(--m-pos); font-weight: 650; }

/* ---- the card panel ---- */
.rn-panel-facts { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rn-big-phone { font-size: 22px; font-weight: 650; color: var(--m-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.rn-big-phone:hover { color: var(--m-accent); }
.rn-big-phone.none { font-size: 14px; color: var(--m-neg); font-weight: 400; }
.rn-panel-when { font-size: 12px; color: var(--m-faint); }
.rn-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 18px; }
.rn-answers dt { font-size: 11px; color: var(--m-faint); text-transform: uppercase; letter-spacing: .04em; }
.rn-answers dd { margin: 2px 0 0; font-size: 14px; color: var(--m-ink); font-weight: 600; }
.rn-none { font-size: 13px; color: var(--m-muted); background: var(--m-surface-2); border-radius: 8px; padding: 10px 14px; margin-bottom: 18px; }
.rn-h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--m-faint); margin: 20px 0 8px; }
.rn-touches, .rn-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rn-touches li, .rn-notes li { border-left: 2px solid var(--m-line); padding-left: 10px; }
.rn-touch.in { border-left-color: var(--m-pos); }
.rn-touch.draft { border-left-color: var(--m-warn); }
.rn-touches .w, .rn-notes .w { font-size: 11px; color: var(--m-faint); text-transform: capitalize; }
.rn-touches p, .rn-notes p { margin: 2px 0 0; font-size: 13px; color: var(--m-ink); line-height: 1.45; white-space: pre-wrap; }

.rn-log { margin: 0 0 16px; padding: 10px 0; border-top: 1px solid var(--m-line); border-bottom: 1px solid var(--m-line); }
.rn-log.ask .rn-log-q { color: var(--m-accent); }
.rn-log-q { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 13px; font-weight: 650; color: var(--m-ink); margin-bottom: 8px; }
.rn-log-n { font-size: 12px; font-weight: 400; color: var(--m-muted); }
.rn-log-n b { color: var(--m-pos); }
.rn-log-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rn-log-l { font-size: 11px; color: var(--m-faint); text-transform: uppercase; letter-spacing: .05em; margin-left: 4px; }
.rn-log-l:first-child { margin-left: 0; }

/* ---- the phone ---- */
@media (max-width: 860px) {
  .rn-board { grid-template-columns: repeat(7, 78vw); gap: 10px; scroll-snap-type: x mandatory; }
  .rn-col { scroll-snap-align: start; }
  .rn-grid { grid-template-columns: 1fr; }
  .rn-board-facts { gap: 6px 14px; }
}

/* Showing times: the strip under the board facts, the booked line on a card,
   the next showing on a tile, and the slot rows in the property form. */
.rn-shows { margin: -6px 0 14px; padding: 0 0 10px; border-bottom: 1px solid var(--m-line); font-size: 13px; }
.rn-shows.empty { color: var(--m-muted); }
.rn-shows-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.rn-shows-head span { color: var(--m-muted); }
.rn-shows ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.rn-shows li { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.rn-shows li .when { min-width: 190px; color: var(--m-muted); }
.rn-shows li.has .when { color: var(--m-ink); font-weight: 600; }
.rn-shows li .who i { font-style: normal; color: var(--m-muted); }
.rn-shows li .who.none { color: var(--m-muted); }
.rn-showing { font-size: 12px; font-weight: 600; color: #4f7fb8; margin: 2px 0 4px; }
.rn-next-show { font-size: 12px; color: #4f7fb8; margin: 2px 0 6px; }
.rn-slots { margin: 6px 0 4px; }
.rn-slots-head { display: grid; gap: 2px; margin-bottom: 8px; font-size: 13px; }
.rn-slots-head span { color: var(--m-muted); font-size: 12px; }
.rn-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.money-app .m-form .rn-slot select.rn-slot-day { width: 150px; flex: 0 0 auto; }
/* money.css sizes every form input to 100%; the span sets the width instead. */
.rn-slot-t { width: 130px; flex: 0 0 auto; }
.rn-slot span { color: var(--m-muted); font-size: 13px; }
.rn-slot-del { font-size: 12px; color: var(--m-muted); }
