/* KYC Lab extension: report templates + periodic returns (Stage 3 S3-D). Colours come from the theme tokens (var(--...)) so light and dark both work. */
.rr-body{display:flex;flex-direction:column;gap:16px;min-width:0;}
.rr-form{display:flex;flex-direction:column;gap:12px;min-width:0;}
.rr-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;}
.rr-actions .btn{min-height:44px;}
.rr-inline{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;min-width:0;}
.rr-inline .field{flex:1 1 220px;min-width:0;}
.rr-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;overflow-wrap:anywhere;}
.rr-out{min-width:0;overflow-wrap:anywhere;}
.rr-json{width:100%;min-width:0;font-size:12px;line-height:1.4;resize:vertical;}
.rr-lbl{display:block;font-weight:600;margin:8px 0 4px;}
.rr-list{margin:0;padding-left:18px;min-width:0;overflow-wrap:anywhere;}
.rr-list li{margin:4px 0;}
.rr-errs{margin:4px 0 0;padding-left:18px;color:var(--block);min-width:0;overflow-wrap:anywhere;}
.rr-diff{min-width:0;}
.rr-src{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere;word-break:break-word;}
.rr-secrow td{background:var(--surface-2);font-weight:600;}
.rr-row-flag td{background:var(--review-soft);}
.rr-body .tablewrap{min-width:0;}
.rr-body .ktbl td{vertical-align:top;overflow-wrap:anywhere;}
@media (max-width:560px){
  .rr-actions .btn{flex:1 1 100%;}
  .rr-inline{flex-direction:column;align-items:stretch;}
  .rr-head{flex-direction:column;align-items:flex-start;}
  .rr-body .ktbl thead{display:none;}
  .rr-body .ktbl td{display:block;min-width:0;}
  .rr-body .ktbl td::before{content:attr(data-label);display:block;font-size:11px;opacity:.7;}
  .rr-secrow td::before{content:none;}
}
