/* reports.css - the reports portal's few additions to the owner dashboard's app.css (erp.mse.engineer).
   Same tokens, same glass, same type scale; nothing here defines a new colour. */

.auth-card .pin { font-size: 26px; letter-spacing: .5em; text-align: center; padding: 12px 10px 12px calc(10px + .5em);
  font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.as-link { display: block; text-align: center; text-decoration: none; }
.signout { margin: 0; }
.signout .ghost { padding: 7px 12px; border-radius: 10px; font-weight: 500; }

.reports-page { width: min(1080px, calc(100% - 24px)); }

/* The newest report, on top */
.latest { border-radius: var(--radius); padding: 24px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; position: relative; overflow: hidden; }
.latest::after { content: ""; position: absolute; inset: auto -10% -70% 45%; height: 190%; pointer-events: none;
  background: radial-gradient(closest-side, oklch(from var(--blue) l c h / .22), transparent); }
.latest-text { min-width: 0; position: relative; z-index: 1; }
.latest h2 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 650; letter-spacing: -.02em; margin: 10px 0 6px; line-height: 1.25; }
.latest h2 a { text-decoration: none; }
.latest h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.latest-desc { color: var(--text-2); max-width: 70ch; }
.latest-when { color: var(--text-3); font-size: 12.5px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.latest .open { width: auto; flex: none; padding: 12px 20px; position: relative; z-index: 1; }
.badge-new { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); padding: 4px 10px; border-radius: 999px;
  border: 1px solid oklch(from var(--blue) l c h / .45); background: oklch(from var(--blue) l c h / .1); }
.badge-new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }

/* The full history */
.history { padding: 20px 20px 8px; }
.rlist { list-style: none; margin: 8px 0 0; padding: 0; }
.ritem { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title when" "desc when";
  column-gap: 24px; row-gap: 3px; padding: 14px 10px; border-top: 1px solid var(--rule); border-radius: 10px; }
.ritem:first-child { border-top: 0; }
.ritem:hover { background: var(--glass-hi); }
.rtitle { grid-area: title; font-weight: 600; font-size: 15px; letter-spacing: -.01em; text-decoration: none; color: var(--text); }
.rtitle:hover, .rtitle:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; outline: none; }
.rdesc { grid-area: desc; color: var(--text-2); font-size: 13px; }
.rwhen { grid-area: when; align-self: center; color: var(--text-3); font-size: 12.5px; white-space: nowrap;
  font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.ritem.is-latest .rtitle::after { content: "Latest"; margin-left: 8px; vertical-align: 2px; font-size: 10.5px; font-weight: 650;
  letter-spacing: .06em; text-transform: uppercase; color: var(--blue); padding: 2px 7px; border-radius: 999px;
  background: oklch(from var(--blue) l c h / .12); }
.history.empty { padding-bottom: 18px; }

@media (max-width: 900px) { .reports-page .pill { display: none; } }
@media (max-width: 640px) {
  .latest { flex-direction: column; align-items: stretch; padding: 20px 18px; }
  .latest .open { width: 100%; text-align: center; }
  .ritem { grid-template-columns: 1fr; grid-template-areas: "title" "desc" "when"; padding: 13px 4px; }
  .rwhen { align-self: start; margin-top: 4px; }
}
@media print { .signout, #theme { display: none !important; } }
