/* Monthly reports. Uses the variables and components of portal.css. The report itself is /report-view.css (shared
   with ClayGen's console); here are its colours in the portal, the list of reports, the card on the home page and
   what is left out when a report is printed. */

.rp-doc {
  --rp-ink: var(--ink); --rp-ink-2: var(--ink-2); --rp-muted: var(--muted); --rp-line: var(--line); --rp-line-strong: var(--line-strong);
  --rp-surface: var(--surface); --rp-soft: var(--surface-2); --rp-accent: var(--brand);
  --rp-good: var(--green); --rp-look: var(--amber); --rp-bad: var(--red); --rp-away: var(--neutral);
  box-shadow: var(--shadow-1); border-radius: var(--radius);
}
.rp-doc .rp-head h1, .rp-doc h2, .rp-doc h3 { font-family: var(--font-display); }

/* ---- the list */
.rpp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rpp-item, .rpp-home { display: flex; align-items: center; gap: 16px; color: inherit; transition: border-color .15s, box-shadow .15s; }
.rpp-item:hover, .rpp-home:hover { text-decoration: none; border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.rpp-item-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-bg); color: var(--blue-ink); }
.rpp-item-icon .icon { width: 22px; height: 22px; }
.rpp-item-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rpp-item-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 650 1.08rem/1.3 var(--font-display); color: var(--ink); }
.rpp-item-line { color: var(--muted); font-size: .92rem; }
.rpp-item-go { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--brand-ink); font-weight: 600; font-size: .93rem; }
.rpp-item-go .icon, .rpp-home > .icon { width: 16px; height: 16px; }

/* ---- one report */
.page.rpp-one { max-width: 988px; }
.rpp-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rpp-tools .back { margin-bottom: 0; }

/* ---- the card on the home page */
.rpp-home-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rpp-home-title { font: 650 1.02rem/1.3 var(--font-display); color: var(--ink); }
.rpp-home-words { color: var(--muted); font-size: .92rem; }
.rpp-home > .icon { flex: none; color: var(--muted); }

@media (max-width: 720px) {
  .page.rpp-one { padding-left: 12px; padding-right: 12px; }
  .rpp-item { align-items: flex-start; gap: 12px; padding: 16px; }
  .rpp-item-go { display: none; }
}

/* ---- printing a report: only the report */
@media print {
  .rpp-tools { display: none !important; }
  .page.rpp-one { max-width: none; padding: 0; }
  .main, .outlet { padding: 0 !important; margin: 0 !important; }
  .rp-doc { box-shadow: none; }
}
