.pf-record-host {
  position: relative;
}

.pf-record-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 10px;
}

.account-card > .pf-record-actions,
.goal-detail-card > .pf-record-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
}

.budget-item > .pf-record-actions,
.goal-item > .pf-record-actions {
  justify-content: flex-end;
  width: 100%;
  margin: 7px 0 0;
}

.goal-item.pf-record-host {
  flex-wrap: wrap;
}

.goal-item.pf-record-host > .goal-body {
  min-width: 0;
}

.transaction-row > .pf-record-actions,
.crypto-row > .pf-record-actions {
  flex: 0 0 auto;
}

.pf-record-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #879386;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.pf-record-button svg {
  width: 17px;
  height: 17px;
}

.pf-record-button:hover,
.pf-record-button:focus-visible {
  border-color: #384538;
  background: #202920;
  color: #b9dfab;
}

.pf-record-delete:hover,
.pf-record-delete:focus-visible {
  border-color: #62403e;
  background: #301f1e;
  color: #ef8c84;
}

.pf-editor-backdrop {
  z-index: 90;
}

.pf-editor-card {
  max-height: min(88vh, 820px);
  overflow-y: auto;
}

.pf-editor-field[hidden] {
  display: none;
}

.pf-editor-field input:disabled,
.pf-editor-field select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.pf-editor-field small {
  color: #8c9688;
  line-height: 1.45;
}

.pf-editor-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.pf-editor-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: #a4da88;
}

.pf-editor-error:empty {
  display: none;
}

.pf-editor-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.pf-editor-footer button {
  min-height: 44px;
}

@media (max-width: 640px) {
  .pf-record-actions {
    gap: 2px;
    margin-left: 5px;
  }

  .pf-record-button {
    width: 29px;
    height: 34px;
  }

  .transaction-row > .pf-record-actions,
  .crypto-row > .pf-record-actions {
    gap: 0;
  }

  .pf-editor-card {
    width: calc(100vw - 24px);
    max-height: 90dvh;
  }

  .pf-editor-footer {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: #141b14;
  }

  .pf-editor-footer button {
    flex: 1;
    justify-content: center;
  }
}
