/* src/components/CashAnalysis/CashAnalysis.css */
.cash-container {
  display: flex;
  gap: var(--spacing-md);
  animation: fadeIn .3s ease;
  flex-direction: column;
}

.cash-header {
  display: flex;
  border-bottom: .1vh solid var(--border-color);
  padding-bottom: var(--spacing-sm);
  justify-content: space-between;
  align-items:  center;

  & h2 {
    margin: 0;
  }

  & .stats {
    color: var(--negative-color);
    font-size: 1.2rem;
    font-weight: bold;
  }
}

.chart-section {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  height: 40vh;

  & h3 {
    margin: 0 0 var(--spacing-sm) 0;
  }

  & .chart-wrapper {
    flex: 1;
    width: 100%;
    min-height: 30vh;
  }
}

.table-section {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;

  & h3 {
    margin: 0 0 var(--spacing-sm) 0;
  }
}

.merchant-cell {
  display: flex;
  align-items:  center;
  gap: 1vw;

  & .logo-container {
    overflow: hidden;
    display: flex;
    background-color: var(--bg-primary);
    border-radius: 50%;
    flex-shrink: 0;
    justify-content: center;
    align-items:  center;
    width: 2vw;
    height: 2vw;

    & img {
      object-fit: contain;
      background-color: #fff;
      width: 100%;
      height: 100%;
    }

    & .logo-fallback {
      display: flex;
      color: #fff;
      justify-content: center;
      align-items:  center;
      width: 100%;
      height: 100%;
      font-size: .8rem;
      font-weight: bold;
    }
  }
}

.category-badge {
  border-radius: 1vw;
  padding: .3vh .6vw;
  font-size: .75rem;
  font-weight: 600;
}

.amount-cell {
  font-weight: bold;
}
