/*
 * add-transaction.css — what only the add-transaction screen looks like.
 *
 * The back row, the heading, the fields and the stacked layout are the base
 * stylesheet's. This is the type-chip grid and the paid toggle row — the two
 * controls no other screen has needed yet.
 */

.type-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.type-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 56px;
  padding-inline: 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: start;
}

.type-chip.is-selected {
  border-color: var(--accent);
  background: var(--bg-raise);
}

.type-chip__icon {
  inline-size: 32px;
  block-size: 32px;
  flex: none;
}

.type-chip__label { font-weight: 500; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-block-size: 44px;
  cursor: pointer;
}

.toggle-input {
  inline-size: 22px;
  block-size: 22px;
  accent-color: var(--accent);
}

/* `tally:other-categories` — the searchable list "other" picks a
   description from. Positioned relative so its suggestion list can drop
   below it without pushing the rest of the form down while it is open. */
.combo {
  position: relative;
}

.combo__list {
  position: absolute;
  inset-inline: 0;
  inset-block-start: calc(100% + 4px);
  z-index: 5;
  max-block-size: 240px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: var(--bg-raise);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.combo__item {
  display: block;
  inline-size: 100%;
  min-block-size: 40px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.combo__item:hover,
.combo__item:focus-visible { background: var(--surface); }

.combo__item--add { color: var(--accent); font-weight: 500; }
.combo__item--note { color: var(--text-muted); cursor: default; }
.combo__item--note:hover { background: none; }

/* `tally:receipts` (2026-09-29) — the optional receipt photo. */
.receipt-take { gap: 8px; inline-size: auto; align-self: flex-start; padding-inline: 16px; }
.receipt-field { display: flex; align-items: center; gap: 12px; }
.receipt-field__thumb {
  inline-size: 72px;
  block-size: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  background: var(--surface-solid);
}
.receipt-field__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.receipt-field__actions .btn { inline-size: auto; padding-inline: 14px; }
.receipt-remove { color: var(--neg); }
