/* The office's Report area (plan 4, task 10). Linked from index.html;
   only this area's own rules go here. The report itself is drawn as a
   sheet of paper on screen too, so what the reader sees is what prints
   (print.css takes over from there). */

.rp-controls { margin: 0 0 1rem; gap: .75rem; }
.rp-presets, .rp-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.rp-preset {
  min-height: 44px; padding: .5rem .9rem; background: #1b1e19; color: var(--chalk);
  border: 2px solid var(--line);
}
.rp-preset[aria-pressed="true"] { border-color: var(--gold); }
.rp-dates { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.rp-dates label { display: flex; align-items: center; gap: .5rem; }
.rp-dates input { min-height: 44px; color-scheme: dark; }
.rp-actions button { min-height: 44px; }
#rp-print { background: #1b1e19; color: var(--chalk); border: 2px solid var(--gold); }
.rp-msg { margin: 0; min-height: 1.2em; color: var(--warn); }

/* The sheet. */
.rp-out:empty { display: none; }
.report {
  background: #fdfcf7; color: #1b1e19; border-radius: 6px; padding: 28px 32px;
  max-width: 50rem; margin: 0 0 1.5rem; line-height: 1.45; overflow-wrap: anywhere;
}
.report section { background: none; border-radius: 0; padding: 0; }
.report .rp-head { border-bottom: 2px solid #1b1e19; padding-bottom: .5rem; margin-bottom: 1rem; }
.report .rp-title { font-size: 1.35rem; margin: 0; color: #1b1e19; }
.report .rp-made { margin: .25rem 0 0; font-size: .85rem; color: #555; }
.report h3 {
  font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #1b1e19;
  margin: 1.25rem 0 .5rem; border-bottom: 1px solid #c9c6b8; padding-bottom: .2rem;
}
.report p { margin: .2rem 0; }
.report .rp-small { font-size: .9rem; color: #444; }
.report .rp-none { color: #555; font-style: italic; }
.report .rp-test, .report .rp-weak { margin: 0 0 .9rem; }
.report .rp-when { color: #444; }
.report .rp-verdict {
  display: inline-block; font-size: .8rem; font-weight: 700; padding: .05rem .5rem;
  border-radius: 999px; border: 1.5px solid currentColor; margin-left: .25rem;
}
.report .rp-ready { color: #1f6b2c; }
.report .rp-getting-there { color: #8a5a00; }
.report .rp-not-yet, .report .rp-not-started { color: #9b2c1f; }
.report .rp-flag { color: #9b2c1f; font-weight: 600; }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin: .35rem 0; font-size: .92rem; }
.report th, .report td { text-align: left; padding: .3rem .5rem; border-bottom: 1px solid #d9d6c8; vertical-align: top; }
.report th { font-weight: 600; color: #444; white-space: nowrap; overflow-wrap: normal; }
.report .rp-days td, .report .rp-grades td:first-child { white-space: nowrap; }
.report ul { margin: .2rem 0; padding-left: 1.2rem; }
.report li { margin: .2rem 0; }

/* Saved reports. */
.rp-saved { background: none; padding: 0; margin-top: 1rem; }
.rp-saved h3 { margin: 0 0 .25rem; }
.rp-hint { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.rp-saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.rp-saved-open {
  width: 100%; min-height: 44px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem;
  text-align: left; background: #1b1e19; color: var(--chalk); border: 2px solid var(--line); font-weight: 400;
}
.rp-saved-open[aria-current="true"] { border-color: var(--gold); }
.rp-saved-open span { color: var(--muted); }

@media (max-width: 639px) {
  .report { padding: 18px 14px; }
  .report .rp-title { font-size: 1.15rem; }
  .report table { font-size: .85rem; }
  .report th, .report td { padding: .25rem .3rem; }
  .report th { white-space: normal; }
  .rp-dates label { flex: 1 1 10rem; }
  .rp-dates input { flex: 1; min-width: 0; }
}
