/* Amount colours */
.amount-in { color: #198754; }  /* green */
.amount-out { color: #dc3545; } /* red */

/* Negative cash balance */
.negative { color: #dc3545; font-weight: bold; }

/* Ledger entry cards – mobile‑first */
.entry-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}
.entry-card:last-child { border-bottom: none; }
.entry-left {
  flex: 2 1 160px;
  min-width: 120px;
}
.entry-right {
  flex: 1 1 auto;
  text-align: right;
  min-width: 80px;
  margin-top: 0.25rem;
}
.entry-meta {
  font-size: 0.8rem;
  color: #6c757d;
}
.entry-description {
  font-weight: 500;
  word-break: break-word;
}
.entry-amount {
  font-weight: bold;
  font-size: 1.1rem;
}

/* Mobile adjustments */
@media (max-width: 576px) {
  .entry-left {
    flex: 1 0 100%;
  }
  .entry-right {
    flex: 1 0 100%;
    text-align: left;
    margin-top: 0.25rem;
  }
  .entry-meta {
    font-size: 0.7rem;
  }
  .entry-description {
    font-size: 0.9rem;
  }
  .entry-amount {
    font-size: 1rem;
  }
}

/* Flash overrides (Pico style) */
.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
