.finance-expected-flag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--color-pill-bg);
  color: var(--color-pill-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.finance-expected-flag--detail {
  margin: 12px 0 0;
}

.finance-debt-status-hint {
  display: block;
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.finance-action-form {
  max-width: 720px;
}

.finance-amount-currency-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.finance-amount-currency-row__amount input {
  width: 170px;
  max-width: 170px;
}

.finance-amount-currency-row__currency select {
  width: 140px;
  max-width: 140px;
}

.finance-form-section {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--border-color, #dedede);
  border-radius: 14px;
  background: var(--card-bg, #fff);
}

.finance-form-section h2,
.object-financial-operations h3 {
  margin-top: 0;
}

.finance-relation-field .field-value {
  margin-top: 6px;
}

.finance-relation-remove {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 -4px 0 0;
  padding: 2px;
  line-height: 0;
}

.finance-relation-remove:hover,
.finance-relation-remove:focus-visible {
  color: var(--color-danger-text);
  outline: none;
}

.finance-relation-pill > a,
.finance-relation-pill > a:visited,
.finance-relation-pill > a:hover,
.finance-relation-pill > a:focus-visible {
  color: inherit;
  text-decoration: none;
}

.finance-detail-section + .finance-detail-section {
  margin-top: 34px;
}

.finance-refund-list {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.finance-refund-list li + li {
  margin-top: 6px;
}

.finance-project-section {
  margin-top: 28px;
}

.object-financial-operations__actions,
.finance-settings-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.finance-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 14px;
}

.object-financial-operations__list {
  margin-top: 14px;
}

.object-financial-operations__list li {
  margin-bottom: 7px;
}

.finance-directory-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color, #dedede);
}

.finance-inline-form {
  display: inline;
}

.finance-inline-form button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 800px) {
  .finance-settings-grid {
    grid-template-columns: 1fr;
  }

}
