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

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

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

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

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

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

.financial-eyebrow {
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

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

.financial-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

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

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

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

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

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

.balance-summary article {
  padding: 20px;
  border-top: 4px solid #2563eb;
}

.balance-summary .liability { border-top-color: #dc2626; }
.balance-summary .equity { border-top-color: #16a34a; }

.balance-summary span {
  display: block;
  color: #64748b;
  font-weight: 800;
}

.balance-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  font-weight: 900;
}

.financial-panel {
  overflow: hidden;
}

.financial-panel-head {
  padding: 16px 18px;
  color: #fff;
  font-weight: 900;
}

.financial-panel-head.asset { background: #2563eb; }
.financial-panel-head.liability { background: #dc2626; }
.financial-panel-head.equity { background: #16a34a; }

.financial-table {
  margin: 0;
}

.financial-table td {
  padding: 12px 14px;
  border-color: rgba(148, 163, 184, .15);
  border-inline-start: 1px solid rgba(148, 163, 184, .18);
  border-inline-end: 1px solid rgba(148, 163, 184, .18);
}

.tree-toggle {
  margin-inline-end: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 900;
}

.tree-leaf {
  display: inline-flex;
  width: 28px;
  color: #94a3b8;
  justify-content: center;
}

.child-row td {
  background: #f8fbff;
}

.asset-row td { color: #1d4ed8; }
.liability-row td { color: #b91c1c; }
.equity-row td { color: #15803d; }

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

.financial-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 900;
}

.financial-status.success { color: #166534; background: #dcfce7; }
.financial-status.danger { color: #991b1b; background: #fee2e2; }

@media (max-width: 1000px) {
  .financial-report-hero { align-items: flex-start; flex-direction: column; }
  .balance-summary { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .financial-report { padding: 16px; }
  .financial-toolbar label { width: 100%; }
  .financial-actions .btn { flex: 1 1 auto; }
}

@media print {
  .navbar,
  .acc-sidebar,
  .acc-mobile-menu-btn,
  .acc-sidebar-backdrop,
  .no-print {
    display: none !important;
  }
  .app-wrapper { display: block !important; }
  .app-content { padding: 0 !important; background: #fff !important; }
  .financial-report { padding: 0 !important; background: #fff !important; }
  .financial-print-brand img {
    display: block;
  }
  .financial-print-brand h1 {
    display: block;
  }
  .financial-report-hero,
  .financial-panel,
  .balance-summary article {
    box-shadow: none !important;
    border-color: #d1d5db !important;
  }
}
