:root {
  --bg: #eef1f5;
  --ink: #1c2733;
  --accent: #2b3a52;
  --accent2: #5b7ba6;
  --card-bg: #fff;
  --border: #d7dce3;
  --warn: #b6531c;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.topbar { background: var(--accent); color: #fff; padding: 16px; position: sticky; top: 0; z-index: 10; }
.topbar h1 { margin: 0 0 10px; font-size: 1.15rem; }
.filters { display: flex; gap: 14px; align-items: center; font-size: 0.85rem; }
.filters input { margin-left: 6px; padding: 6px 8px; border-radius: 6px; border: none; }
.new-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0a63a; display: inline-block; }
.hidden { display: none; }

main { padding: 14px; max-width: 800px; margin: 0 auto; }
.reports-list { display: flex; flex-direction: column; gap: 8px; }
.report-row {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.report-row:hover { border-color: var(--accent2); }
.report-row .date { font-weight: 600; }
.report-row .status { font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; background: #e6e9ee; }
.report-row .status.submitted { background: #dcefe0; color: #2b6e3c; }
.report-row .status.draft { background: #fbe7d3; color: var(--warn); }

.link-btn { background: none; border: none; color: var(--accent2); font-size: 0.9rem; padding: 10px 0; }
.detail-section { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.detail-section h3 { margin: 0 0 8px; font-size: 0.95rem; color: var(--accent); }
.detail-row { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; justify-content: space-between; }
.detail-row:last-child { border-bottom: none; }
.detail-row .meta { color: #7c8794; font-size: 0.78rem; }
.empty { color: #9aa3ad; font-size: 0.85rem; }

.primary-btn { padding: 10px 16px; border-radius: 8px; border: none; background: var(--accent); color: #fff; font-size: 0.95rem; margin-top: 10px; }

@media print {
  .no-print, .topbar, .link-btn { display: none !important; }
  body { background: #fff; }
  .detail-section { border: 1px solid #999; break-inside: avoid; }
}
.version-footer {
  text-align: center; font-size: 0.72rem; color: #8a93a0; padding: 16px 0 30px;
}
