/* css/tx-manual-entry.css
   Styling for manual transaction entry and the "General" line item row.
   Uses the same CSS custom properties already defined in styles.css. */

.tx-add-form {
  background: var(--color-card, #fff);
  border: 1px solid var(--color-line, #e2e5e9);
  border-radius: var(--radius, 10px);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.tx-add-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-navy, #16324F);
  margin-bottom: 10px;
}

.tx-add-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.tx-add-row input,
.tx-add-row select {
  font-family: var(--font-body, inherit);
  font-size: 13.5px;
  padding: 9px 10px;
  border: 1px solid var(--color-line, #e2e5e9);
  border-radius: 8px;
  background: var(--color-bg, #fafafa);
  color: var(--color-charcoal, #1c2b3a);
}

.tx-add-date { flex: 0 0 140px; }
.tx-add-merchant { flex: 1 1 180px; min-width: 140px; }
.tx-add-type { flex: 0 0 110px; }
.tx-add-amount { flex: 0 0 110px; }
.tx-add-hint {
  font-size: 12px;
  color: var(--color-muted, #6b7688);
  margin: 8px 0 0;
  font-style: italic;
}

.tx-add-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 16px;
  font-size: 13.5px;
}

.tx-add-error {
  color: var(--color-error, #c0392b);
  font-size: 12.5px;
  margin: 8px 0 0;
}

.tx-delete-btn {
  background: none;
  border: none;
  color: var(--color-muted, #6b7688);
  font-size: 16px;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.tx-delete-btn:hover { color: var(--color-error, #c0392b); }

.tx-source-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-muted, #6b7688);
  background: var(--color-bg, #f2f3f5);
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}

/* "General / Uncategorized" row — transactions categorized to a section
   but not tied to any specific line item */
.line-item-general {
  background: var(--color-bg, #f7f8f9);
  border-radius: 6px;
  font-style: italic;
}
.line-item-general-label {
  color: var(--color-muted, #6b7688);
  padding: 8px 10px;
  display: flex;
  align-items: center;
}
.li-general-dash {
  color: var(--color-muted, #6b7688);
  padding: 0 8px;
}

@media (max-width: 700px) {
  .tx-add-row { flex-direction: column; align-items: stretch; }
  .tx-add-date, .tx-add-merchant, .tx-add-type, .tx-add-amount, .tx-add-btn { flex: 1 1 auto; }
}

/* Month selector */
.month-selector-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 16px;
  background: var(--color-card, #fff);
  border: 1px solid var(--color-line, #e2e5e9);
  border-radius: var(--radius, 10px);
}
.month-nav-btn {
  background: var(--color-bg, #f2f3f5);
  border: 1px solid var(--color-line, #e2e5e9);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  font-size: 15px;
  cursor: pointer;
  color: var(--color-navy, #16324F);
}
.month-nav-btn:hover { background: var(--color-teal-dim, #e3f2f2); }
.month-current {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy, #16324F);
  min-width: 150px;
  text-align: center;
}
.month-picker-input {
  font-family: var(--font-body, inherit);
  font-size: 12.5px;
  padding: 6px 8px;
  border: 1px solid var(--color-line, #e2e5e9);
  border-radius: 6px;
  background: var(--color-bg, #fafafa);
  color: var(--color-muted, #6b7688);
  margin-left: 8px;
}

/* Custom date range controls */
.custom-range-btn, .range-back-btn, .range-cancel-btn {
  background: none;
  border: 1px solid var(--color-line, #e2e5e9);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-teal, #2a9d8f);
  cursor: pointer;
  margin-left: 6px;
}
.custom-range-btn:hover, .range-back-btn:hover, .range-cancel-btn:hover { background: var(--color-teal-dim, #e3f2f2); }
.range-form-label { font-size: 12.5px; color: var(--color-muted, #6b7688); }
.range-apply-btn { padding: 7px 16px; font-size: 12.5px; }
.range-form-error {
  color: var(--color-error, #c0392b);
  font-size: 12px;
  width: 100%;
  text-align: center;
  margin: 6px 0 0;
}

/* Carried-forward budget notice */
.carried-forward-banner {
  background: #fff7e6;
  border: 1px solid #f0dba0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #7a5a00;
  margin-bottom: 14px;
}
