/* Date range selector card in reports */
.finance-filter-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.filter-dates {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.quick-dates {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quick-dates span {
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 6px;
}

/* Database backup card */
.backup-panel-content {
  padding: 16px;
}


/* Custom styling for Flatpickr days with transaction activity */
.flatpickr-day.has-transaction:not(.selected) {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: var(--color-success, #10b981) !important;
  border-radius: 6px;
  font-weight: 700;
}

.flatpickr-day.has-transaction::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--color-success, #10b981);
  border-radius: 50%;
}

.flatpickr-day.has-transaction.selected::after {
  background-color: #fff;
}

/* Timeline UI Styles for Restock History Audit */
.timeline-container {
  position: relative;
  padding-left: 24px;
  margin-left: 8px;
  border-left: 2px solid var(--border-color);
  margin-top: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-success, #10b981);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--color-success-glow, rgba(16, 185, 129, 0.2));
}

.timeline-content {
  background-color: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.timeline-content:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.timeline-date {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-qty {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-success, #10b981);
}

.timeline-body {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.timeline-body p {
  margin: 2px 0;
}


