/* Reports & Monitoring cabinet (rp-*). Tokens only. */
.rp-bar { justify-content: flex-start; }
.rp-spacer { flex: 1; }
.rp-sched { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.rp-sched .dm-select { width: auto; padding: 7px 10px; }
.rp-kpis .dm-kpi { transition: border-color 0.2s; }
.rp-kpis .dm-kpi:hover { border-color: var(--line-strong); }
.rp-kpis .dm-kpi-value { animation: rp-fade 0.35s ease; }
.rp-vs { color: var(--muted); font-weight: 400; }

.rp-chart { min-height: 240px; }
.rp-toggle { margin-top: 12px; }
.rp-table { margin-top: 10px; max-height: 300px; overflow-y: auto; }
.rp-table thead th { position: sticky; top: 0; background: var(--surface); }
.rp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.rp-live { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; font-weight: 600; color: var(--good-text); }
.rp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); animation: rp-pulse 1.6s ease-in-out infinite; }

.rp-watchers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rp-watch { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); min-width: 0; }
.rp-watch-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rp-watch-name { font-weight: 600; font-size: 14px; }
.rp-watch-detail { font-size: 13px; color: var(--text-2); flex: 1; }
.rp-watch-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rp-watch-foot .dm-sub { font-size: 12.5px; }
.rp-flash { animation: rp-flash 1.4s ease; }
.rp-check { height: 32px; padding: 0 12px; font-size: 13px; background: var(--surface); }
.rp-spin { display: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); }
.rp-check.is-busy .rp-spin { display: inline-block; animation: rp-rot 0.7s linear infinite; }
.rp-check.is-busy[disabled] { opacity: 0.8; cursor: progress; }

.rp-modal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-modal-head h3 { font-size: 19px; }
.rp-tg { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.rp-tg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.rp-tg-ava { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; flex: none; }
.rp-tg-tag { font-size: 11px; color: var(--muted); background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
.rp-tg-msg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 10px 12px 20px; font-size: 13.5px; line-height: 1.55; }
.rp-tg-msg ul { margin: 6px 0 10px; padding-left: 18px; }
.rp-tg-msg pre { margin: 4px 0 8px; font: 12px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--text-2); overflow-x: auto; }
.rp-tg-time { position: absolute; right: 10px; bottom: 4px; font-size: 11px; color: var(--muted); }
.rp-modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

@keyframes rp-fade { from { opacity: 0.3; } }
@keyframes rp-pulse { 50% { opacity: 0.35; } }
@keyframes rp-rot { to { transform: rotate(360deg); } }
@keyframes rp-flash { from { border-color: var(--accent); background: var(--accent-soft); } }

@media (max-width: 560px) {
  .rp-spacer { display: none; }
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rp-kpis .dm-kpi { padding: 12px 14px; }
  .rp-kpis .dm-kpi-value { font-size: 22px; }
  .rp-vs { display: block; }
  .rp-bar .dm-tabs { width: 100%; justify-content: space-between; }
  .rp-bar .dm-tab { flex: 1; justify-content: center; }
  .rp-sched { flex: 1; }
  .rp-sched .dm-select { flex: 1; }
}
