.rr-page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.rr-metrics-grid { margin-bottom: 1rem; }
.rr-register-card { position: sticky; top: 0.75rem; }
.rr-register-card .dataTables_wrapper { font-size: 0.82rem; }
.rr-register-card td:first-child { white-space: pre-line; font-weight: 600; }
.rr-filter-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.5rem; }
.rr-filter-row .form-group { margin-bottom: 0.5rem; }

.rr-flag-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #eddca7;
  border-radius: 10px;
  background: #fffaf0;
}

.rr-flag { display: inline-block; padding: 0.28rem 0.55rem; border-radius: 999px; text-decoration: none; font-size: 0.78rem; }
.rr-flag.due-soon { color: #765800; background: #f8e8b3; }
.rr-flag.overdue { color: #84281f; background: #f7d5d1; }

.rr-workflow-head { margin-bottom: 0.75rem; }
.rr-signed-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  margin: 0 0.35rem 0.6rem 0;
  font-size: 0.76rem;
  font-weight: 700;
  background: #e7efe9;
  color: #174c31;
}
.rr-signed-chip { color: #fff; background: #0b6b3a; }

.rr-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0.5rem 0 1rem; }
.rr-timeline-step { display: flex; align-items: center; min-width: 0; position: relative; }
.rr-timeline-step:not(:last-child)::after { content: ""; height: 3px; flex: 1; background: #d8e0db; margin: 0 0.35rem; }
.rr-timeline-step.reached:not(:last-child)::after { background: #0b6b3a; }
.rr-timeline-dot { width: 1.55rem; height: 1.55rem; flex: 0 0 1.55rem; display: grid; place-items: center; border: 3px solid #cbd5cf; border-radius: 50%; color: #fff; background: #fff; font-size: 0.7rem; }
.rr-timeline-step.on-track .rr-timeline-dot { border-color: #0b6b3a; background: #0b6b3a; }
.rr-timeline-step.attention .rr-timeline-dot { border-color: #d88914; background: #d88914; box-shadow: 0 0 0 4px #fff1d8; }
.rr-timeline-step.overdue .rr-timeline-dot { border-color: #b64035; background: #b64035; box-shadow: 0 0 0 4px #fde4e1; }
.rr-timeline-step strong, .rr-timeline-step small { display: block; white-space: nowrap; }
.rr-timeline-step strong { margin-left: 0.35rem; font-size: 0.76rem; }
.rr-timeline-step small { color: #6f7b74; font-size: 0.66rem; }

.rr-action-row, .rr-preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.rr-form-card { margin-top: 0.75rem; }
.rr-form-card textarea { resize: vertical; }
.rr-deadline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.rr-save-row { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: end; gap: 0.75rem; padding: 0.85rem; margin-top: 0.5rem; border-radius: 8px; background: #f3f7f4; }
.rr-save-row .form-group { margin-bottom: 0; }
.rr-comment-compose { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: end; margin-bottom: 1rem; }
.rr-comment-compose > .form-group:nth-child(3) { grid-column: 1 / -1; }
.rr-empty-state { min-height: 360px; display: grid; place-items: center; align-content: center; text-align: center; color: #647168; }
.rr-empty-state .fa, .rr-empty-state .fas { font-size: 2rem; color: #0b6b3a; }
.rr-preview-actions { justify-content: flex-end; margin: 0.75rem 0; }
.rr-embedded-report { max-height: 78vh; overflow: auto; border: 1px solid #d9e1dc; background: #e9eeeb; }
.rr-embedded-report .rr-print-sheet { transform-origin: top center; }
.rr-embedded-report .rr-print-button { display: none; }

@media (max-width: 1100px) {
  .rr-timeline { grid-template-columns: 1fr; gap: 0.35rem; }
  .rr-timeline-step::after { display: none; }
  .rr-deadline-grid { grid-template-columns: 1fr 1fr; }
  .rr-save-row { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .rr-page-intro { display: block; }
  .rr-filter-row, .rr-comment-compose, .rr-deadline-grid { grid-template-columns: 1fr; }
  .rr-register-card { position: static; }
}

@media print {
  body * { visibility: hidden !important; }
  .rr-embedded-report, .rr-embedded-report * { visibility: visible !important; }
  .rr-embedded-report { position: absolute; left: 0; top: 0; width: 100%; max-height: none; overflow: visible; border: 0; }
  .rr-preview-actions { display: none !important; }
}
.rr-accession-status { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 11px 13px; border-left: 4px solid #d39c30; background: #fff7e3; color: #614d20; }
.rr-accession-status.ready { border-left-color: #1f7a4c; background: #edf6f0; color: #244f3a; }
.rr-accession-status > div { display: grid; gap: 2px; }
.rr-accession-status strong { font-size: 12px; }
.rr-accession-status span { font-size: 11px; }
.rr-accession-status code { margin-top: 3px; color: inherit; background: transparent; font-size: 10px; }
