/* Ingresos — Manager-only revenue dashboard */

.ing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
.ing-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}
.ing-periods {
  display: flex;
  gap: 4px;
}
.ing-period-btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.ing-period-btn.active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.ing-range {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* KPI cards */
.ing-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.ing-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.ing-kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.ing-kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}
.ing-kpi-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ing-kpi-delta {
  font-size: 13px;
  font-weight: 700;
  margin-left: 6px;
}
.ing-kpi-delta.up { color: var(--green); }
.ing-kpi-delta.down { color: var(--red); }

/* Section title */
.ing-section {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* Bar chart */
.ing-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 160px;
  padding: 0;
  overflow-x: auto;
}
.ing-bar-wrap {
  flex: 1;
  min-width: 22px;
  max-width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: default;
}
.ing-bar {
  width: 100%;
  background: var(--primary, #3b82f6);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  transition: height .3s;
}
.ing-bar-weekend .ing-bar {
  background: #818cf8;
}
.ing-bar-label {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 4px;
  white-space: nowrap;
}
.ing-daily-avg {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Size distribution */
.ing-sizes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ing-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ing-size-label {
  font-size: 13px;
  font-weight: 600;
  min-width: 70px;
  color: var(--text);
}
.ing-size-bar-bg {
  flex: 1;
  height: 20px;
  background: var(--surface-alt, #f3f4f6);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.ing-size-bar {
  height: 100%;
  background: #3b82f6;
  border-radius: var(--radius-sm);
  min-width: 2px;
  transition: width .3s;
}
.ing-size-count {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 70px;
  text-align: right;
}

/* Payment methods */
.ing-payments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ing-pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.ing-pay-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ing-pay-label {
  font-weight: 600;
  min-width: 80px;
  color: var(--text);
}
.ing-pay-count {
  color: var(--text-muted);
  min-width: 70px;
}
.ing-pay-total {
  font-weight: 700;
  min-width: 60px;
  text-align: right;
  color: var(--text);
}
.ing-pay-pct {
  color: var(--text-muted);
  min-width: 40px;
  text-align: right;
}

/* Anomalies */
.ing-anomalies {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.ing-anom-item {
  font-size: 14px;
  color: var(--text-muted);
  background: #fef2f2;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
}

/* Discrepancy history */
.ing-discrep {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ing-disc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.ing-disc-row.ing-disc-bad {
  background: #fef9c3;
  border-color: #fde68a;
}
.ing-disc-date {
  font-weight: 600;
  min-width: 80px;
  color: var(--text);
}
.ing-disc-status {
  font-weight: 700;
  min-width: 65px;
}
.ing-disc-row:not(.ing-disc-bad) .ing-disc-status { color: var(--green); }
.ing-disc-bad .ing-disc-status { color: var(--red); }
.ing-disc-detail {
  flex: 1;
  color: var(--text-muted);
}
.ing-disc-revenue {
  font-weight: 600;
  color: var(--text);
}

.ing-diff-ok { color: var(--green); }
.ing-diff-bad { color: var(--red); font-weight: 600; }
