.income-report {
  min-height: 100%;
  padding: 26px;
  background: #eef5ff;
  color: #0f172a;
}

.income-report-hero,
.income-toolbar,
.income-panel,
.income-kpi {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .05);
}

.income-report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  margin-bottom: 18px;
}

.income-print-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.income-print-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .2);
}

.income-print-brand img,
.income-print-brand h1 {
  display: none;
}

.income-eyebrow {
  display: inline-flex;
  margin-bottom: 4px;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.income-print-brand h1 {
  margin: 0;
  color: #132144;
  font-size: 2rem;
  font-weight: 900;
}

.income-print-brand p {
  margin: 5px 0 0;
  color: #64748b;
  font-weight: 700;
}

.income-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.income-actions .btn {
  min-height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.income-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.income-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 190px;
  margin: 0;
}

.income-toolbar span {
  color: #475569;
  font-size: .84rem;
  font-weight: 800;
}

.income-toolbar .form-control,
.income-toolbar .form-select {
  min-height: 44px;
  border-radius: 14px;
}

.income-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.income-kpi {
  padding: 20px;
}

.income-kpi span {
  display: block;
  color: #64748b;
  font-size: .86rem;
  font-weight: 800;
}

.income-kpi strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.65rem;
  font-weight: 900;
}

.income-kpi.revenue { border-top: 4px solid #16a34a; }
.income-kpi.cogs { border-top: 4px solid #f97316; }
.income-kpi.expense { border-top: 4px solid #dc2626; }
.income-kpi.profit { border-top: 4px solid #2563eb; }
.income-kpi.gross { border-top: 4px solid #6366f1; }

.income-report-status {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-radius: 16px;
  font-weight: 800;
}

.income-report-status.info { color: #1d4ed8; background: #dbeafe; }
.income-report-status.success { color: #166534; background: #dcfce7; }
.income-report-status.danger { color: #991b1b; background: #fee2e2; }

.income-panel {
  overflow: hidden;
}

.income-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.income-panel-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 900;
}

.income-panel-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: .9rem;
}

.income-table {
  margin: 0;
  min-width: 760px;
}

.income-table th,
.income-table td {
  padding: 13px 16px;
  vertical-align: middle;
  border-color: rgba(148, 163, 184, .16);
  border-inline-start: 1px solid rgba(148, 163, 184, .18);
  border-inline-end: 1px solid rgba(148, 163, 184, .18);
}

.income-table thead th {
  color: #475569;
  background: #f8fafc;
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}

.income-table td:last-child,
.income-table th:not(.label-col) {
  text-align: end;
  white-space: nowrap;
}

.income-table td:first-child {
  font-weight: 700;
}

.account-code {
  display: inline-flex;
  margin-inline-end: 8px;
  color: #64748b;
  font-weight: 900;
}

.section-title td {
  font-weight: 900;
  text-align: start !important;
}

.section-title.revenue td { color: #166534; background: #dcfce7; }
.section-title.cogs td { color: #9a3412; background: #ffedd5; }
.section-title.expense td { color: #991b1b; background: #fee2e2; }

.total-row td {
  color: #0f172a;
  background: #f8fafc;
  border-top: 2px solid #cbd5e1;
  font-weight: 900;
}

.profit-row td {
  color: #fff;
  background: #132144;
  border-top: 3px double #64748b;
  font-size: 1rem;
  font-weight: 900;
}

.empty-row td,
.income-empty {
  padding: 18px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  text-align: center !important;
}

.pos { color: #059669 !important; }
.neg { color: #dc2626 !important; }

@media (max-width: 1100px) {
  .income-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .income-report-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .income-report { padding: 16px; }
  .income-kpis { grid-template-columns: 1fr; }
  .income-toolbar label { width: 100%; }
  .income-actions .btn { flex: 1 1 auto; }
  .income-print-brand h1 { font-size: 1.5rem; }
}

@media print {
  body { background: #fff !important; }
  .navbar,
  .acc-sidebar,
  .acc-mobile-menu-btn,
  .acc-sidebar-backdrop,
  .no-print,
  .income-toolbar,
  .income-report-status {
    display: none !important;
  }
  .app-wrapper { display: block !important; }
  .app-content { padding: 0 !important; background: #fff !important; }
  .income-report { padding: 0 !important; background: #fff !important; }
  .income-print-brand img {
    display: block;
  }
  .income-print-brand h1 {
    display: block;
  }
  .income-report-hero,
  .income-panel,
  .income-kpi {
    box-shadow: none !important;
    border-color: #d1d5db !important;
  }
  .income-report-hero {
    margin-bottom: 14px;
    border-radius: 0;
  }
  .income-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
  .income-table {
    min-width: 0;
    font-size: 12px;
  }
}
