/* The expense form still owns both payment lists. These rules apply to the
   finance account's card placement and to its shared confirmation dialog. */
[data-work-placement="finance-home"] {
  container-type: inline-size;
}
.finance-home-layout {
  grid-template-columns: minmax(0, 1fr);
}
@container (min-width: 680px) {
  .finance-home-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(16rem, 1fr);
    gap: 20px;
  }
}
.finance-roster-column {
  min-width: 0;
}
.finance-roster-column .finance-home-reload {
  margin-inline: 0 auto;
}
.finance-home-layout .finance-block.card {
  border-radius: 12px;
  box-shadow: none;
}
.finance-home-layout .workspace-protection.card {
  border-top-width: 1px;
}
.finance-home-layout .finance-money-block .data-table {
  table-layout: auto;
}
.finance-home-layout .finance-money-block .data-table :is(th, td):first-child {
  text-align: center;
}
.finance-home-layout .finance-money-block .data-table > tbody > tr:not(.workspace-detail-row) > td:first-child {
  white-space: nowrap;
  overflow-wrap: normal;
}
.finance-home-layout .finance-money-block .data-table .workspace-detail-row > td {
  padding: 0;
  text-align: left;
}
.finance-home-layout .finance-money-block .data-table td:nth-child(2) {
  font-size: 1rem;
}
/* The recovery list shares a column center for its heading, value and controls. */
.finance-home-layout .finance-money-block[data-money-direction="recover"] .data-table thead th,
.finance-home-layout [data-money-direction="recover"] .data-table tbody tr:not(.workspace-detail-row) td,
.finance-home-layout [data-money-direction="recover"] .data-table .num,
.finance-home-layout [data-money-direction="recover"] .workspace-amount :is(input,button) {
  text-align: center;
}
.finance-home-layout [data-money-direction="recover"] .finance-amount-heading {
  justify-content: center;
}
.finance-home-layout .finance-money-block .workspace-amount {
  grid-template-columns: minmax(44px, 1fr) minmax(76px, .88fr);
}
.finance-home-layout .finance-money-block .workspace-amount button,
.finance-home-layout .finance-money-block [data-campus-fill] {
  min-height: 44px;
  font-size: 13px;
}
.finance-home-layout .finance-money-block .workspace-amount .primary {
  color: var(--on-accent, white);
  background: var(--accent);
  border-color: var(--accent);
}
.finance-home-layout .finance-protection-help {
  background: transparent;
  padding-inline: 0;
  font-size: 14px;
}
.finance-home-layout .finance-protected-name small {
  background: var(--positive-soft, var(--tint));
  color: var(--positive, var(--deep));
}
.finance-payment-review {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  text-align: left;
  line-height: 1.5;
  background: var(--surface);
  color: var(--deep);
}
.finance-payment-review > span,
.finance-review-pair dt {
  color: var(--muted);
  font-size: 13px;
}
.finance-review-amount {
  overflow-wrap: anywhere;
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  color: var(--deep);
}
.finance-review-amount small {
  font-size: 13px;
  font-weight: normal;
}
.finance-payment-review dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.finance-review-pair {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}
.finance-review-pair dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  text-align: end;
}
.finance-money-block .finance-payment-review .finance-review-help {
  margin: 4px 0 0;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 8px;
  color: var(--deep);
  background: var(--tint);
}
.action-confirm > .finance-supplement-preview {
  grid-column: 1 / -1;
  padding: 0;
  background: transparent;
}
.finance-supplement-preview .finance-review-pair:last-child {
  align-items: center;
  padding: 10px 12px;
  background: var(--tint);
  border-radius: 8px;
}
.finance-supplement-preview .finance-review-pair:last-child dd {
  color: var(--accent);
  font-size: 20px;
  font-weight: 650;
}
@container (max-width: 360px) {
  .finance-home-layout .finance-money-block .workspace-amount {
    grid-template-columns: minmax(44px, 1fr) 68px;
    gap: 4px;
  }
  .finance-home-layout .finance-money-block .workspace-amount button {
    font-size: 12px;
  }
}
