@import url("./balance_sheet.css?v=20260604-2");

.balance-tree {
  display: grid;
  gap: 6px;
  padding: 18px 20px 22px;
}

.tree-section {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 900;
}

.tree-section.asset { color: #1d4ed8; background: #dbeafe; }
.tree-section.liability { color: #991b1b; background: #fee2e2; }
.tree-section.equity { color: #166534; background: #dcfce7; }

.tree-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
}

.tree-node.active {
  background: #eef4ff;
}

.tree-node .label {
  color: #0f172a;
  background: transparent;
  border: 0;
  font-weight: 800;
  text-align: start;
}

.tree-node .label.has-children::before {
  content: "▸";
  display: inline-block;
  margin-inline-end: 8px;
  transition: transform .15s ease;
}

.tree-node .label.open::before {
  transform: rotate(90deg);
}

.tree-node .amount {
  color: #0f172a;
  font-weight: 900;
  white-space: nowrap;
}

.children {
  display: grid;
  gap: 6px;
  margin-inline-start: 24px;
  padding-inline-start: 16px;
  border-inline-start: 2px dashed #cbd5e1;
}

.children[hidden] {
  display: none;
}

.virtual-node {
  background: #f0fdf4;
}

.financial-empty {
  padding: 14px;
  color: #64748b;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  text-align: center;
}
