/* SECR tool: small additions to the payment practices (tool.css) and CRP (crp.css) styles. */
.secr-test-note { border-left: 3px solid var(--accent); padding-left: 0.7rem; margin-top: 1rem; }
.crp-tool .secr-scope { padding: 1rem 1.1rem; }
.crp-tool .secr-scope legend { font-weight: 600; }
.crp-tool .secr-prior-grid { align-items: center; display: grid; gap: 0.6rem 1rem; grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr) minmax(7rem, 1fr); max-width: 48rem; }
.crp-tool .secr-prompts > summary, .crp-tool .secr-limits > summary { cursor: pointer; font-weight: 600; padding: 0.9rem 1.1rem; }
.crp-tool .secr-prompts ul, .crp-tool .secr-limits ul { margin: 0 1.1rem 1rem; }
.crp-tool .secr-actions { align-items: center; margin: 0.8rem 0 1.2rem; }
.crp-tool .secr-limits { margin-top: 1.5rem; }

/* On-screen preview of the report section. */
.crp-tool .secr-preview { background: var(--pp-surface, #fff); border: 1px solid var(--pp-border); border-radius: 8px; max-width: 52rem; padding: 1.2rem 1.4rem; }
.crp-tool .secr-preview h2 { font-size: 1.2rem; margin: 0 0 0.8rem; }
.crp-tool .secr-preview h3 { font-size: 1.02rem; margin: 1.1rem 0 0.4rem; }
.crp-tool .secr-preview .crp-doc-table { border-collapse: collapse; display: block; margin: 0 0 1rem; max-width: 100%; overflow-x: auto; font-size: 0.92rem; }
.crp-tool .secr-preview .crp-doc-table th, .crp-tool .secr-preview .crp-doc-table td { border: 1px solid var(--pp-border); padding: 0.35rem 0.55rem; text-align: left; vertical-align: top; }
.crp-tool .secr-preview .crp-doc-table thead th { background: var(--sage, #eef4f0); }
.crp-tool .secr-preview .crp-doc-table tbody th { font-weight: 400; min-width: 14rem; }
.crp-tool .secr-preview .is-num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

@media (max-width: 600px) {
  .crp-tool .secr-prior-grid { grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 0.8fr) minmax(5.5rem, 0.8fr); gap: 0.5rem; }
  .crp-tool .secr-preview { padding: 0.9rem; }
  .crp-tool .secr-preview .crp-doc-table tbody th { min-width: 10rem; }
}
.crp-tool .secr-preview .crp-doc-table td.is-num, .crp-tool .secr-preview .crp-doc-table th.is-num { text-align: right; white-space: nowrap; }
.pp-outcome p.secr-test-note { margin-top: 1rem; }
