.allocation-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.allocation-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #64717b;
  font-size: 12px;
  padding: 12px 8px;
  border-bottom: 2px solid #e4dce8;
}
.allocation-steps li > span {
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  background: #f1edf3;
  border-radius: 50%;
  font-size: 11px;
  flex-shrink: 0;
}
.allocation-steps li.current {
  color: #3d1b4c;
  border-color: var(--brand);
  font-weight: 700;
}
.allocation-steps li.current > span {
  background: var(--brand);
  color: white;
}
.allocation-steps li.done {
  color: #593469;
}
.allocation-steps li.done > span {
  background: #efe6f3;
}
.allocation-steps svg {
  width: 14px;
  height: 14px;
}
.allocation-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.3fr);
  gap: 28px;
}
.allocation-context {
  background: #f6f3f8;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e4dce8;
  align-self: start;
  min-width: 0;
}
.allocation-context .allocation-value {
  display: block;
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.7px;
}
.allocation-context p {
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.allocation-context dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 12px;
}
.allocation-context dd {
  margin: 0;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.workflow-dialog .allocation-layout h3 {
  font-size: 14px;
  margin-top: 21px;
  margin-bottom: 12px;
}
.allocation-edit h3:first-child {
  margin-top: 3px;
}
.allocation-edit .recon-amount-label {
  font-size: 12px;
  max-width: none;
}
.allocation-edit input {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-height: 55px;
}
.allocation-edit input[aria-invalid="true"] {
  border-color: #a4443e;
  background: #fff7f6;
}
.field-error {
  font-size: 12px;
  color: #963b35;
  line-height: 1.5;
  margin: 6px 0;
}
.field-error:empty {
  display: none;
}
.allocation-balance {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #f5f1f7;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 12px;
  border-radius: 5px;
}
.allocation-balance strong {
  font-size: 17px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #4b245c;
}
.receipt-placeholder {
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px dashed #cebdd6;
  border-radius: 7px;
  padding: 17px;
  margin-bottom: 12px;
  color: #6b5375;
}
.receipt-placeholder p {
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.receipt-placeholder svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.selected-receipt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #d5c5dc;
  background: #f7f4f9;
  border-radius: 6px;
  color: #442253;
}
.selected-receipt > span {
  min-width: 0;
  overflow-wrap: anywhere;
  display: grid;
  gap: 5px;
}
.selected-receipt strong {
  font-size: 13px;
}
.selected-receipt small {
  font-size: 11px;
}
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.receipt-actions button {
  font-size: 11px;
}
.workflow-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
dialog .dialog-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 3;
}
dialog .dialog-foot {
  position: sticky;
  bottom: 0;
  z-index: 3;
}
@media (max-width: 700px) {
  .allocation-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .allocation-context {
    padding: 14px;
  }
  .allocation-context .allocation-value {
    font-size: 25px;
  }
  .allocation-steps {
    gap: 3px;
  }
  .allocation-steps li {
    font-size: 10px;
    gap: 5px;
    padding: 8px 2px;
  }
  .allocation-steps li > span {
    width: 21px;
    height: 21px;
  }
  .allocation-balance {
    flex-wrap: wrap;
  }
  .workflow-dialog .allocation-layout h3 {
    margin-top: 15px;
  }
}
.content-filters:empty {
  display: none;
}
.content-filter-panel {
  border-block-start: 1px solid var(--line);
  padding: 0.7rem 1.1rem;
}
.content-filter-panel > summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  color: var(--brand);
  padding-block: 0.3rem;
}
.content-filter-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-block: 0.7rem;
}
.content-filter-heading strong {
  font-size: 0.88rem;
}
.content-filter-heading small {
  color: var(--muted);
  font-size: 0.78rem;
}
.content-filter-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 0.65rem;
  margin-block-end: 0.45rem;
}
.content-filter-fields label {
  display: grid;
  gap: 0.3rem;
  min-inline-size: 0;
  font-size: 0.8rem;
  color: #51485a;
}
.content-filter-fields select {
  min-inline-size: 0;
  max-inline-size: 100%;
  width: 100%;
}
.data-table th[data-table-column] {
  position: relative;
  padding-inline-start: 2rem;
}
.column-grip {
  position: absolute;
  inset-inline-start: 0.15rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  inline-size: 1.7rem;
  block-size: 2rem;
  cursor: grab;
  color: #716777;
  font-size: 1.2rem;
  border-radius: 0.25rem;
}
.column-grip:hover {
  background: #e7ddec;
  color: var(--brand);
}
.column-grip:focus-visible {
  outline: 2px solid #c21051;
  outline-offset: 1px;
}
.column-drop-target {
  box-shadow: inset 3px 0 #c21051;
  background: #eae1ef;
}
.column-options.ordered-columns {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.column-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.3rem 0.55rem;
}
.column-choice label {
  flex: 1;
  min-inline-size: 0;
  border: 0;
  padding: 0.25rem;
}
.column-choice > div {
  display: flex;
  gap: 0.2rem;
}
.column-choice button {
  padding: 0.3rem 0.65rem;
  min-block-size: 2.3rem;
}
#related-column-editor:not(:empty) {
  margin-block: 1rem;
  padding: 1rem;
  background: #f6f2f8;
  border: 1px solid var(--line);
}
@media (max-width: 600px) {
  .content-filter-heading small {
    max-inline-size: 30ch;
  }
  .content-filter-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Native accounting positions retain a visible grouping at every screen size. */
.accounting-positions {
  display: grid;
  gap: 18px;
}
.accounting-position {
  border: 1px solid var(--border, #dfd5e4);
  border-radius: 12px;
  padding: 18px;
  margin: 0 0 14px;
  min-width: 0;
}
.accounting-position legend {
  color: var(--brand);
  font-weight: 700;
  padding: 0 8px;
}

.assignment-sections {
  display: grid;
  gap: 16px;
}
.assignment-sections .panel-heading {
  padding: 0;
  border: 0;
}
.member-dialog {
  width: min(1280px, 96vw);
  max-width: 96vw;
}
.member-record-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.member-monogram {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pale);
  color: var(--brand);
  font-size: 19px;
  font-weight: 700;
  flex-shrink: 0;
}
.member-record-identity > div:nth-child(2) {
  min-width: 0;
}
.member-record-identity strong {
  display: block;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.member-record-identity span {
  color: var(--muted);
  font-size: 13px;
}
.member-browse {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.member-browse button {
  min-width: 42px;
}
.member-workspace {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
}
.member-registers {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
}
.member-registers button {
  justify-content: flex-start;
  border-color: transparent;
  font-weight: 500;
}
.member-registers button[aria-selected="true"] {
  background: var(--pale);
  border-color: #d8c7df;
  color: var(--brand);
  font-weight: 700;
}
#member-panel {
  min-width: 0;
}
.member-detail-section {
  padding-bottom: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.member-detail-section h3 {
  margin-top: 0;
  font-size: 16px;
}
.member-detail-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}
.member-detail-section .details {
  margin-bottom: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.member-detail-section dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.member-dialog .assignment-sections {
  grid-template-columns: 1fr;
}
.member-dues-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  padding: 16px;
  background: var(--pale);
  margin-bottom: 18px;
}
.member-dues-totals span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
}
.member-dues-totals strong {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.member-dues-totals small {
  width: 100%;
  color: var(--muted);
}
@media (max-width: 760px) {
  .member-dialog .dialog-foot {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 12px 18px;
    gap: 8px;
  }
  .member-dialog .dialog-foot button {
    white-space: normal;
    min-width: 0;
    padding: 8px;
    font-size: 12px;
  }
  .member-dialog .dialog-foot .member-legacy-shortcut {
    display: none;
  }
  .member-workspace {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .member-registers {
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .member-registers button {
    font-size: 13px;
    padding: 8px 10px;
  }
  .member-record-identity {
    flex-wrap: wrap;
    gap: 10px;
  }
  .member-browse {
    width: 100%;
    justify-content: space-between;
    margin: 4px 0 0;
  }
  .member-detail-section .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.desk-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.desk-mode button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 20px;
  gap: 5px;
}
.desk-mode button span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.desk-mode button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--pale);
  box-shadow: inset 4px 0 var(--brand);
}
.booking-desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 1fr);
  gap: 22px;
  align-items: start;
}
.booking-desk > section {
  min-width: 0;
}
.booking-desk .panel-heading {
  flex-wrap: wrap;
  gap: 10px;
}
.booking-desk .form-grid .full {
  min-width: 0;
}
.desk-filename {
  overflow-wrap: anywhere;
}
.desk-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.desk-submit > :is(span, output) {
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.desk-pdf-surface {
  max-height: 70vh;
  overflow: auto;
  background: #e7e5e9;
  padding: 6px;
}
.desk-pdf-surface canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.desk-checkbox {
  display: flex !important;
  flex-direction: row !important;
  align-items: start;
  gap: 10px;
  margin-top: 14px;
}
.desk-checkbox input {
  min-height: auto;
  margin-top: 3px;
}
.desk-transfer-name {
  display: block;
  margin: 5px 0;
}
#desk-file-list {
  margin-top: 14px;
}
@media (max-width: 1100px) {
  .booking-desk {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk-pdf-surface {
    max-height: 38vh;
  }
}
@media (max-width: 600px) {
  .desk-mode {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .desk-mode button {
    padding: 12px 16px;
  }
  #desk-document-preview {
    display: none;
  }
  .desk-submit {
    flex-direction: column;
    align-items: stretch;
  }
  .booking-desk .panel-body {
    padding: 16px;
  }
}
/* Receipt capture and reporting share the quiet, purple working surface. */
.accounting-receipt {
  margin: 24px 0;
  padding: 20px;
  background: #f5f1f7;
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.accounting-receipt h3 {
  margin-top: 0;
}
.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.receipt-add-button {
  width: 100%;
  margin-bottom: 20px;
  border: 1px dashed var(--brand);
  background: #f5f1f7;
  color: var(--brand);
  padding: 16px;
}
.receipt-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 40px 20px;
  border: 2px dashed #92739e;
  border-radius: 12px;
  background: #f7f3f9;
  cursor: pointer;
  text-align: center;
}
.receipt-drop input {
  width: 100%;
  max-width: 420px;
  background: white;
}
.receipt-drop:focus-within {
  outline: 3px solid #c21051;
  outline-offset: 3px;
}
.receipt-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #ded6e2;
}
.receipt-review-head h3 {
  overflow-wrap: anywhere;
  margin: 0;
}
.receipt-review-grid,
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.receipt-review-grid label,
.report-layout label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.receipt-review-grid .recognition-check,
.report-layout .report-check,
.report-columns label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.recognition-check input,
.report-check input,
.report-columns input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.recognition-value small,
.recognition-missing span {
  color: #65576c;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.recognition-missing {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 16px;
}
.receipt-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  overflow: auto;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  background: #f7f4f8;
  padding: 12px;
}
.receipt-progress {
  padding: 30px 10px;
  text-align: center;
}
.partner-field {
  position: relative;
  min-width: 0;
}
.partner-field > input {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.partner-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #b6a3bf;
  box-shadow: 0 8px 24px #35263d20;
  border-radius: 8px;
  z-index: 20;
  padding: 6px;
  max-height: 330px;
  overflow: auto;
  min-width: min(320px, 100%);
}
.partner-search-results button {
  width: 100%;
  text-align: left;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  white-space: normal;
}
.partner-search-results button span {
  font-size: 12px;
  font-weight: 400;
  color: #65576c;
}
.partner-search-results button[aria-selected="true"],
.partner-search-results button:hover {
  background: #ede5f1;
  color: #4b275b;
}
.partner-search-results p {
  font-size: 12px;
  margin: 8px;
  color: #65576c;
}
.report-launch-button {
  border-color: var(--brand);
  color: var(--brand);
  background: #f5f1f7;
}
dialog.report-dialog {
  width: min(1050px, calc(100vw - 32px));
  max-width: 1050px;
}
.report-selection-note {
  padding: 16px 20px;
  background: #f2ecf5;
  border-left: 4px solid var(--brand);
}
.report-selection-note strong {
  font-size: 18px;
  color: var(--brand);
}
.report-selection-note p {
  margin: 6px 0 0;
}
.report-columns {
  border: 1px solid #ded6e2;
  border-radius: 8px;
  padding: 16px;
  max-height: 430px;
  overflow: auto;
}
.report-columns legend {
  font-weight: 650;
  padding: 0 6px;
}
.report-columns p {
  font-size: 13px;
  margin: 0 0 14px;
  color: #65576c;
}
.report-columns label {
  font-weight: 400;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .receipt-review-grid,
  .report-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .receipt-review-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .accounting-receipt {
    padding: 14px;
  }
  .receipt-drop {
    padding: 24px 14px;
  }
  .report-columns {
    max-height: 280px;
  }
  .partner-search-results {
    left: auto;
    right: 0;
    width: min(340px, calc(100vw - 80px));
  }
}

/* Booking choices: the relationship and E/A path remain visible beside the draft. */
.partner-linked {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.5rem;
  color: var(--brand);
}
.partner-linked button {
  margin-left: auto;
  font-size: 0.85rem;
}
#partner-link {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.4rem;
  overflow-wrap: anywhere;
}
#partner-link small {
  display: block;
  color: var(--muted);
}
.ea-picker {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.ea-picker select {
  width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
}
.ea-search-status {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

.fee-current {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--brand);
  background: #f5f1f7;
}
.fee-current strong {
  font-size: 1.15rem;
}
.fee-current span {
  font-size: 0.9rem;
  color: var(--muted);
}
.fee-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.fee-row-actions button {
  white-space: normal;
}
.fee-comparison th {
  text-align: left;
}
.fee-comparison th .badge {
  display: block;
  width: fit-content;
  margin-top: 0.3rem;
}
.fee-comparison .fee-changed {
  background: #f3edf6;
}
.fee-comparison .fee-changed td:last-child {
  font-weight: 650;
  color: var(--brand);
}
.fee-effects {
  padding-left: 1.3rem;
  line-height: 1.5;
}
.fee-effects li {
  margin-bottom: 0.5rem;
}
.payment-batch {
  margin-top: 1.5rem;
}
.payment-batch .panel-heading {
  flex-wrap: wrap;
  gap: 0.6rem;
}
.payment-table small {
  display: block;
  max-width: 28rem;
  overflow-wrap: anywhere;
  color: var(--muted);
  margin-top: 0.3rem;
}
.payment-table strong {
  display: block;
}
.payment-preview-positions h3 {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.desk-assist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-inline-start: 4px solid var(--brand);
  padding: 1rem 1.2rem;
  margin-block-end: 1.2rem;
  background: #f2edf5;
}
.desk-assist strong {
  display: block;
  margin-block-end: 0.3rem;
}
.desk-assist output {
  display: block;
  max-inline-size: 72ch;
  line-height: 1.5;
}
.desk-save-state {
  font-size: 0.8rem;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  color: #655a6b;
}
.desk-save-state[data-state="uncertain"] {
  font-weight: 700;
  color: #97273b;
}
.desk-save-state[data-state="saved"] {
  font-weight: 700;
  color: var(--brand);
}
.desk-entry {
  container: booking-entry / inline-size;
}
.payment-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  min-inline-size: 0;
}
.payment-details legend {
  padding-inline: 0.35rem;
  font-weight: 650;
}
.field-feedback {
  display: block;
  min-block-size: 1.2em;
  line-height: 1.5;
  color: #655a6b;
}
.field-feedback[data-state="valid"] {
  color: var(--brand);
}
.payment-details:has(input[aria-invalid="true"]) {
  border-color: #ac2945;
}
.payment-details input[aria-invalid="true"] {
  border-color: #ac2945;
}
.bank-help-trigger {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
#bank-help {
  max-inline-size: min(34rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1.4rem;
  color: #142239;
  background: white;
  box-shadow: 0 12px 48px #21142e30;
  line-height: 1.6;
}
#bank-help::backdrop {
  background: #21142e16;
}
@container booking-entry (max-width: 30rem) {
  .form-grid,
  .payment-details {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .desk-assist {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }
}

.fee-year-controls {
  align-items: end;
  margin-block: 1rem;
}
.fee-year-controls input[type="number"] {
  max-inline-size: 9rem;
}
.fee-year-controls .fee-projection {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.7rem;
}

.fee-year-controls .fee-projection {
  flex-direction: row;
}
@media (max-width: 600px) {
  .fee-year-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }
  .fee-year-controls .fee-projection {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

.invoice-section {
  margin-block: 0 1.5rem;
  padding-block-end: 1rem;
  border-block-end: 1px solid var(--line);
}
.invoice-section h3 {
  margin-block: 0 1rem;
}
.invoice-position {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem;
  margin-block: 0 1rem;
  min-inline-size: 0;
}
.invoice-position legend {
  color: var(--brand);
  font-weight: 700;
  padding-inline: 0.4rem;
}
#invoice-recipient-results:not(:empty) {
  display: grid;
  gap: 0.4rem;
  padding-block: 0.5rem;
}

.document-hub {
  margin-block-end: 1.5rem;
}
.document-tasks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1rem;
  padding: 1rem;
}
.document-tasks > * {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  gap: 0.45rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  color: var(--brand);
  background: var(--surface, #fff);
  text-decoration: none;
}
.document-tasks span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.document-tasks > *:hover {
  background: #f8f1fa;
  border-color: var(--brand);
}

#donation-form {
  display: grid;
  gap: 1rem;
}
#donation-form > label {
  display: grid;
  gap: 0.5rem;
}
#donation-form textarea {
  inline-size: 100%;
  min-block-size: 7rem;
}
#donation-form > .checkbox {
  display: flex;
  align-items: flex-start;
  overflow-wrap: anywhere;
}
#donation-form .checkbox input {
  inline-size: 18px;
  min-block-size: 18px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.donation-source {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #fbf9fc;
  border-inline-start: 4px solid #4b275b;
}
.donation-source strong {
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
}

.document-form label:not(.checkbox) {
  display: grid;
  gap: 0.5rem;
  margin-block: 0.75rem;
  min-inline-size: 0;
}
.document-form :is(input, select, textarea) {
  inline-size: 100%;
  min-inline-size: 0;
}
.document-form textarea {
  min-block-size: 7rem;
  resize: vertical;
}
.document-form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-block: 1rem;
  line-height: 1.5;
}
.document-form .checkbox input {
  flex: 0 0 18px;
  inline-size: 18px;
  min-block-size: 18px;
  accent-color: var(--brand);
}
.document-form [role="status"]:not(:empty),
#kind-evidence-selected {
  display: grid;
  gap: 0.5rem;
  margin-block: 0.75rem;
}
.document-form [role="status"]:not(:empty) {
  max-block-size: 16rem;
  overflow: auto;
}
.document-form [role="status"] button {
  text-align: start;
  white-space: normal;
  overflow-wrap: anywhere;
}
#kind-evidence-selected .toolbar {
  flex-wrap: wrap;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}
#kind-evidence-selected .toolbar span {
  flex: 1 1 100%;
  overflow-wrap: anywhere;
}
