/* Fenster „Finanzen“ */
.fin-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.fin-top > :first-child { flex: 1; min-width: 0; }
.fin-top .hint { margin: 6px 0 0; }
.fin-refresh { flex: none; }
.fin-gap { margin-top: 14px; }
.fin-sub { margin-top: 14px !important; }

.fin-pick { display: flex; align-items: center; gap: 8px; }
.fin-pick .fin-nation { min-width: 200px; }

/* Vermögensaufteilung */
.fin-split { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); margin: 4px 0 6px; }
.fin-split i { display: block; height: 100%; }
.p0 { background: #e0b44c; } .p1 { background: #5aa6e8; } .p2 { background: #9b8cf0; } .p3 { background: #4cd38a; } .p4 { background: #e889c0; }
.p5 { background: #e8935a; } .p6 { background: #5ac8c8; } .p7 { background: #c8b98c; }

.fin-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 12px; font-size: 12px; color: var(--muted); }
.fin-legend span { display: inline-flex; align-items: center; gap: 6px; }
.fin-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.fin-legend i.fin-in { background: #4cd38a; } .fin-legend i.fin-out { background: #ef6a5b; }

/* Tagesverlauf */
.fin-chart { width: 100%; height: 120px; display: block; }
.fin-chart rect.fin-in { fill: #4cd38a; }
.fin-chart rect.fin-out { fill: #ef6a5b; opacity: .85; }
.fin-chart text { fill: var(--muted); font-size: 9px; }
.fin-chart .fin-axis { stroke: var(--line); stroke-width: 1; }

/* Tabellen */
.fin-tbl td { padding: 6px; }
.fin-tbl tr.fin-head td { font-weight: 600; }
.fin-tbl tr.fin-sum td { font-weight: 600; border-top: 1px solid var(--muted); }
.fin-tbl tr.fin-result td { font-size: 15px; }
.fin-tbl td.fin-indent { padding-left: 20px; color: var(--muted); }
.fin-pnl th:nth-child(2), .fin-pnl td:nth-child(2) { text-align: right; }

/* Firmenkopf */
.fin-co-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.fin-co-head > div:first-child { flex: 1; min-width: 0; }
.fin-co-head h3 { margin-bottom: 2px !important; }
.fin-co-name { font-size: 17px; margin-right: 4px; }
.fin-co-val { display: grid; text-align: right; }
.fin-co-val small { color: var(--muted); font-size: 12px; }
.fin-co-val b { font-size: 18px; font-variant-numeric: tabular-nums; }

@media (max-width: 720px) {
  .fin-top { flex-wrap: wrap; }
  .fin-pick .fin-nation { min-width: 0; flex: 1; }
  .fin-co-head { flex-direction: column; }
  .fin-co-val { text-align: left; }
}

.fin-users { margin: 6px 0 0; line-height: 1.8; white-space: normal; }
.fin-users span { display: inline-block; margin-right: 10px; white-space: nowrap; }
