/* Report-journey state cards (static/js/report-access.js).
 * Self-contained colours so the card reads the same on the dark home page,
 * dashboard, stock page and /ai-report. */
.sba-rs {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.sba-rs--blocked { border-color: #f59e0b; }
.sba-rs--error { border-color: #ef4444; }
.sba-rs--success { border-color: #22c55e; }
.sba-rs--busy { border-color: #38bdf8; }

.sba-rs__title { margin: 0 0 4px; font-weight: 700; font-size: 15px; color: #f8fafc; }
.sba-rs__msg { margin: 0; color: #e2e8f0; }
.sba-rs__allowance { margin: 8px 0 0; font-size: 13px; color: #cbd5e1; }
.sba-rs__allowance--inline { margin: 0; padding: 0; font-size: 13px; color: #94a3b8; }
.sba-rs__note { margin: 6px 0 0; font-size: 12px; color: #94a3b8; }

.sba-rs__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sba-rs__next { margin-top: 14px; padding-top: 12px; border-top: 1px solid #1e293b; }
.sba-rs__next-title { margin: 0; font-size: 13px; font-weight: 700; color: #cbd5e1; }
.sba-rs__next .sba-rs__actions { margin-top: 8px; }
.sba-rs__btn {
  display: inline-block;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
}
.sba-rs__btn:hover { background: rgba(148, 163, 184, 0.14); }
.sba-rs__btn--primary { background: #22c55e; border-color: #22c55e; color: #052e16; }
.sba-rs__btn--primary:hover { background: #4ade80; }
.sba-rs__btn:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }

.sba-rs__spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: sba-rs-spin 0.9s linear infinite;
}
@keyframes sba-rs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sba-rs__spinner { animation: none; border-top-color: rgba(56, 189, 248, 0.35); }
}
