/* Shared, compact summaries for rental and resident drawers. */
.record-status {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.record-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 22px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: #eef4e9;
}

.record-metrics > div { min-width: 0; }
.record-metrics span, .record-metrics small { display: block; }
.record-metrics span { color: #5f7568; font-size: 12px; margin-bottom: 9px; }
.record-metrics strong { font-size: 26px; line-height: 1.25; letter-spacing: -0.7px; font-variant-numeric: tabular-nums; }
.record-metrics small { color: #5f7568; font-size: 11px; margin-top: 7px; }

.record-facts { margin: 0 0 24px; }
.record-facts > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 20px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.record-facts > div:last-child { border-bottom: 0; }
.record-facts dt { font-size: 12px; color: #687e70; }
.record-facts dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }

.record-history { border-top: 1px solid var(--line); }
.record-history > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.record-history > summary::-webkit-details-marker { display: none; }
.record-history > summary > svg { flex-shrink: 0; color: #687e70; }
.record-history > summary > svg:last-child { margin-left: auto; transition: transform .15s; }
.record-history[open] > summary > svg:last-child { transform: rotate(180deg); }
.record-history > summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 4px; border-radius: 4px; }
.record-history-body { padding: 6px 0 14px; }
.record-history .resident-log-toolbar { margin: 0 0 22px; }
.record-history .timeline { margin-top: 0; }
.record-history .timeline-event p { font-size: 12px; line-height: 1.65; margin-top: 6px; color: var(--muted); overflow-wrap: anywhere; }
.record-reference { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
.record-reference > div { margin-top: 10px; }
.record-reference dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.record-access-note { margin: 0 0 20px; font-size: 12px; line-height: 1.6; color: #8b513d; }
.drawer-footer [data-account-access] { margin-right: auto; }

.resident-product-event { list-style: none; border-bottom: 1px solid var(--line); }
.resident-product-event:last-child { border-bottom: 0; }
.resident-product-event > button {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.resident-product-event > button:hover .resident-event-copy strong { text-decoration: underline; }
.resident-product-event > button:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 6px; }
.resident-event-image { display: grid; place-items: center; width: 54px; height: 60px; border-radius: 12px; background: #f0f4ed; flex-shrink: 0; color: #687e70; }
.resident-event-image img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.resident-event-copy { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 0; }
.resident-event-copy strong { font-size: 13px; overflow-wrap: anywhere; }
.resident-event-copy > span { font-size: 12px; color: var(--forest); }
.resident-event-copy time { font-size: 11px; color: #687e70; }
.resident-product-event > button > svg { flex-shrink: 0; color: #687e70; }
.resident-account-event { list-style: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
.resident-account-event > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
.resident-account-event strong { font-size: 13px; }
.resident-account-event time { font-size: 11px; color: #687e70; }
.resident-account-event p { font-size: 12px; color: #687e70; margin: 7px 0 0; overflow-wrap: anywhere; }

@media (max-width: 400px) {
  .record-metrics { padding: 18px; gap: 12px; }
  .record-metrics strong { font-size: 23px; }
  .record-facts > div { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; }
}
