/* Process modal overlay */
.process-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.process-modal {
  background: var(--bg-card);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.process-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.process-modal-header h3 { font-size: 16px; }

.process-close {
  background: none; border: none;
  font-size: 24px; cursor: pointer;
  color: var(--text-secondary);
}
.process-close:hover { color: var(--red); }

.process-modal-body {
  padding: 16px 20px 20px;
}

.process-modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 12px 0 4px;
  text-transform: uppercase;
}

.process-modal-body input,
.process-modal-body select,
.process-modal-body textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
}

.process-modal-body textarea { resize: vertical; }

.pm-original {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
}

.pm-author {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.pm-text {
  font-size: 13px;
  color: var(--text-primary);
  white-space: pre-wrap;
}

.pm-submit {
  margin-top: 16px;
  padding: 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.btn-income {
  background: var(--green) !important;
  color: #fff !important;
}
.btn-income:hover { filter: brightness(1.1); }

.btn-expense {
  background: var(--red) !important;
  color: #fff !important;
}
.btn-expense:hover { filter: brightness(1.1); }

/* Fin uchet page */
.fin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fin-totals {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fin-total-card {
  flex: 1;
  min-width: 140px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.fin-total-card .label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.fin-total-card .value { font-size: 18px; font-weight: 700; }
.fin-total-card .income { color: var(--green); }
.fin-total-card .expense { color: var(--red); }
.fin-total-card .balance { color: var(--primary); }

.fin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.fin-filters select,
.fin-filters input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg-card);
}

.type-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.type-badge.income { background: #dcfce7; color: #166534; }
.type-badge.expense { background: #fee2e2; color: #991b1b; }

/* AI report styles */
.ai-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.ai-section h3 { margin-bottom: 12px; }

.ai-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.ai-controls select {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.ai-report {
  background: var(--bg-input);
  border-radius: var(--radius);
  padding: 16px;
}

.ai-report-date {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.ai-report-body {
  font-size: 13px;
  line-height: 1.6;
}
