/* Real Return Decoder — scoped styles, using the site palette tokens. */

.rrd { max-width: 820px; }

.rrd-notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 22px;
}

/* Form */
.rrd-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 20px;
  align-items: end;
}
.rrd-field label { display: block; font-weight: 600; margin-bottom: 2px; }
.rrd-hint { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted-light); }
.rrd-actions { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }

/* Result */
.rrd-result { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.rrd-result.is-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.rrd-result-head { margin: 0 0 8px; font-size: 1.25rem; }
.rrd-big { color: #c0392b; white-space: nowrap; }
.rrd-result-sub { color: var(--muted); margin: 0 0 16px; }

.rrd-table { width: 100%; border-collapse: collapse; }
.rrd-table th, .rrd-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.rrd-table th { color: var(--muted); background: none; }
.rrd-table td { text-align: right; font-variant-numeric: tabular-nums; }
.rrd-table .rrd-sub th, .rrd-table .rrd-sub td { font-weight: 600; color: var(--ink); }
.rrd-table .rrd-total th, .rrd-table .rrd-total td { font-weight: 700; color: var(--ink); border-bottom: 0; border-top: 2px solid var(--line); font-size: 1.05rem; }

.rrd-flag { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); background: #fdecec; border: 1px solid #f1aeae; color: #c0392b; }
.rrd-foot-note { color: var(--muted-light); font-size: 0.85rem; margin-top: 16px; }
