/* ==========================================================================
   Ledger — Reports Styles
   ========================================================================== */

/* Month Selector */
.month-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper-dim);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 8px 16px;
  margin-bottom: 18px;
}

.month-selector .month-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-paper);
}

.month-selector .btn-arrow {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted-on-paper);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.month-selector .btn-arrow:hover {
  background: var(--paper-line);
  color: var(--text-on-paper);
}

/* Reports Overview Summary */
.report-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.report-summary .summary-item {
  flex: 1;
  background: var(--paper-dim);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.report-summary .summary-item .label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted-on-paper);
  margin-bottom: 4px;
}

.report-summary .summary-item .value {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-paper);
  white-space: nowrap;
}

.report-summary .summary-item .value.income {
  color: var(--income);
}

.report-summary .summary-item .value.expense {
  color: var(--expense);
}

/* Chart Layout */
.chart-card {
  background: var(--paper-dim);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 220px;
  height: 220px;
}

/* Breakdown List */
.breakdown-row {
  padding: 12px 2px;
  border-bottom: 1px solid var(--paper-line);
}

.breakdown-row:last-child {
  border-bottom: none;
}

.breakdown-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.breakdown-cat {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breakdown-cat .icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: var(--paper-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.breakdown-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-on-paper);
}

.breakdown-amounts {
  text-align: right;
}

.breakdown-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
}

.breakdown-pct {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted-on-paper);
  margin-top: 1px;
}

/* Progress bar */
.progress-bar-container {
  width: 100%;
  height: 5px;
  background: var(--paper-line);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Style for empty chart state */
.empty-chart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted-on-paper);
}

.empty-chart-state .glyph {
  font-size: 28px;
  margin-bottom: 8px;
}

.empty-chart-state p {
  margin: 0;
  font-size: 13.5px;
}
