.reports-page { display: block; overflow: auto; }
.reports { display: grid; grid-template-columns: 380px 1fr; gap: 16px; padding: 0 16px 16px; }
.reports .list, .reports .detail { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 14px; }
.reports .list ol { list-style: none; margin: 8px 0 0; padding: 0; max-height: 80vh; overflow: auto; }
.reports .list li { padding: 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; font-size: 12px; }
.reports .list li:hover { background: #f8fafc; }
.reports .list li.active { border-color: #2563eb; background: #eff6ff; }
.reports .list li b { display: block; font-size: 13px; }
.badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-right: 4px; }
.badge.nis2 { background: #fee2e2; color: #991b1b; } .badge.none { background: #e5e7eb; color: #374151; }
.badge.ok { background: #dcfce7; color: #166534; } .badge.draft { background: #fef3c7; color: #92400e; }
.detail h3 { margin-bottom: 4px; } .detail h4 { margin-top: 16px; }
.detail .regime { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 8px 0; font-size: 13px; }
.detail .regime.applies { border-color: #fecaca; background: #fff5f5; }
.detail .deadline { font-variant-numeric: tabular-nums; } .deadline.late { color: #b91c1c; font-weight: 700; }
.detail .doc p { margin: 4px 0 10px; font-size: 13px; text-wrap: pretty; }
.detail .draft { white-space: pre-wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13px; }
.detail .approved { color: #166534; font-size: 12px; font-weight: 600; }

/* Same palette as the main page: red detected, blue response, amber decision, purple AI triage, green recovered. */
.rp-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; }
.rp-pill.ok { background: #dcfce7; color: #166534; } .rp-pill.bad { background: #fee2e2; color: #991b1b; }
.rp-pill.warn { background: #fef3c7; color: #92400e; }
.rp-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.rp-metric { display: inline-flex; gap: 6px; align-items: baseline; background: #f8fafc; border: 1px solid #eef2f7;
             border-radius: 10px; padding: 5px 10px; font-size: 12px; }
.rp-metric span { color: var(--muted); } .rp-metric b { font-variant-numeric: tabular-nums; }
.detail .regime { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.detail .regime .rp-pill { margin-left: 0; }
.detail .regime:not(.applies) { background: #f8fafc; border-color: #eef2f7; }
.rp-timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; position: relative; }
.rp-timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #e5e7eb; border-radius: 2px; }
.rp-timeline li { position: relative; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 10px;
                  padding: 6px 0 8px; font-size: 13px; }
.rp-timeline li::before { content: ""; position: absolute; left: -17px; top: 11px; width: 10px; height: 10px; border-radius: 50%;
                          background: #94a3b8; box-shadow: 0 0 0 3px #fff; }
.rp-timeline li.detected::before { background: #dc2626; } .rp-timeline li.response::before { background: #2563eb; }
.rp-timeline li.decision::before { background: #d97706; } .rp-timeline li.triage::before { background: #7c3aed; }
.rp-timeline li.update::before { background: #ca8a04; } .rp-timeline li.recovered::before { background: #16a34a; }
.rp-timeline time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.rp-timeline .step { font-weight: 600; }
.rp-actor { justify-self: start; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: #f1f5f9; color: #475569; }
.rp-actor.agent { background: #ede9fe; color: #6d28d9; } .rp-actor.operator { background: #dbeafe; color: #1e40af; }
.rp-actor.technician { background: #e0f2fe; color: #075985; } .rp-actor.scenario { background: #fef3c7; color: #92400e; }
.rp-timeline p { grid-column: 1 / -1; margin: 2px 0 0; color: #334155; text-wrap: pretty; line-height: 1.45; }
.detail .control .muted { font-size: 12px; }

/* Incident list: compact rows, status dot and colours like the main page's incidents. */
.reports .list ol { margin-top: 6px; }
.reports .list li.rp-day { cursor: default; padding: 10px 8px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
                           text-transform: uppercase; color: var(--muted); border: 0; }
.reports .list li.rp-day:hover { background: none; }
.reports .list li.rp-row { display: grid; grid-template-columns: 9px 1fr auto; gap: 2px 9px; align-items: baseline;
                           padding: 7px 10px; margin: 1px 0; border-radius: 9px; }
.rp-row .sev { width: 8px; height: 8px; border-radius: 50%; background: var(--preparing); align-self: center; }
.rp-row.recovered .sev { background: var(--available); }
.rp-row.monitoring .sev { animation: pulse 1.4s infinite; }
.reports .list .rp-row .rp-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
                                   font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.rp-row time { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rp-meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 11px; color: var(--muted); }
.rp-meta .badge { margin: 0; }
.rp-tag { background: #f1f5f9; color: #475569; border-radius: 99px; padding: 0 7px; line-height: 17px; }
.rp-ok { color: #15803d; font-weight: 600; } .rp-open { color: #b45309; font-weight: 600; }
.reports .list li.rp-row.active { border-color: #93c5fd; background: #eff6ff; }
