/* R27 shareholders – distribution rules, excluded members, purchases by year, shareholders settings (slice SR). Prefix: shd- */
.shd-settings .toggle small { max-width: 70ch; }
.shd-rule { align-items: center; }
.shd-months { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.shd-months .field.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.shd-months input[type=number] { width: 64px; }
.shd-example { border-inline-start: 3px solid var(--accent); padding-inline-start: 10px; }
.shd-summary { display: flex; flex-wrap: wrap; gap: 10px; }
.shd-sum-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); min-width: 150px; }
.shd-sum-card strong { font-size: 18px; }
.shd-years { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.shd-year { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--surface); color: var(--text); cursor: pointer; min-width: 120px; font: inherit; }
.shd-year.selected { border-color: var(--primary); background: var(--green-bg); }
.shd-year strong { font-size: 16px; }
.shd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.shd-facts .fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shd-facts .fact span { font-size: 12px; color: var(--muted); }
.shd-excluded { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; margin: 8px 0; }
.shd-excluded summary { cursor: pointer; font-size: 13px; }
.shd-excluded[open] summary { margin-bottom: 8px; }
section.card > .shd-excluded.pad { margin: 8px 14px; }
@media (max-width: 760px) {
    .shd-rule { flex-direction: column; align-items: stretch; }
    .shd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
