/* Dues / stipend status: member card, Admin switch in the member profile, Admin "Dues" page. */
.dues-card { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; background: var(--bg); }
.dues-card.dues-yes { border-left-color: var(--ok); }
.dues-card.dues-no { border-left-color: var(--bad); }
.dues-card p { margin: 0; }
.dues-card .btn { justify-self: start; }
.dues-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dues-head h3 { margin: 0; font: 700 13px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dues-pill { font: 700 13px/1 var(--body); padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; color: var(--muted); }
.dues-yes .dues-pill { color: var(--ok); }
.dues-no .dues-pill { color: var(--bad); }
.dues-admin { display: grid; gap: 8px; justify-items: start; padding-top: 12px; border-top: 1px solid var(--line); }
.dues-label { font: 600 14px/1.3 var(--body); }
.dues-admin .seg button, .dues-list .seg button { min-width: 64px; min-height: 40px; }
.dues-pad { padding: 16px; display: grid; gap: 14px; }
.dues-pad p { margin: 0; }
.dues-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dues-file { cursor: pointer; }
.dues-file:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.dues-kpis .kpi { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.dues-sum b { font-size: 18px; }
.dues-table td { vertical-align: top; }
.dues-table select { max-width: 220px; min-height: 40px; font: inherit; }
.dues-table tr.dues-change { background: color-mix(in srgb, var(--gold) 8%, transparent); }
.dues-table input[type=checkbox] { width: 22px; height: 22px; }
.dues-missing summary, .dues-history summary { cursor: pointer; padding: 6px 0; }
.dues-missing ul, .dues-history ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.dues-list { list-style: none; margin: 0; padding: 0; display: grid; }
.dues-list > li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dues-list > li:last-child { border-bottom: 0; }
.dues-who { display: grid; gap: 2px; min-width: 0; }
.dues-who strong { overflow-wrap: anywhere; }
.dues-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
[data-dues-q] { width: 100%; min-height: 44px; }
.dues-slot:empty { display: none; }
@media (max-width: 640px) {
  .dues-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dues-table thead { display: none; }
  .dues-table, .dues-table tbody, .dues-table tr, .dues-table td { display: block; width: 100%; }
  .dues-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .dues-table td { border: 0; padding: 3px 0; }
  .dues-table td:first-child { font-size: 12px; color: var(--muted); }
  .dues-table td:first-child::before { content: 'Row '; }
  .dues-table select { max-width: 100%; width: 100%; }
}
