/* Core-Band-Tabelle (/ui/portfolio/core-band-table.js) — aus stock-dashboard/core-band-styles.css
   übernommen (U5a), Token-Namen der App. */
.kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.kpi { flex: 1 1 180px; background: var(--card-bg); border-radius: 12px; padding: 12px 16px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.kpi .n { font-size: 22px; font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12px; color: var(--text-secondary); }
.kpi.ok { border-left: 4px solid #27ae60; }
.kpi.warn { border-left: 4px solid #e67e22; }

.table-wrap { overflow-x: auto; }
table.core-band-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text-primary); }
table.core-band-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); padding: 6px 8px; font-weight: 600; white-space: nowrap; }
table.core-band-table td { padding: 8px; border-top: 1px solid var(--border-color); vertical-align: middle; }
table.core-band-table td.num, table.core-band-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.core-band-table tr.breached td { background: rgba(230, 126, 34, .08); }
table.core-band-table tfoot td { font-weight: 700; }
table.core-band-table td.name { min-width: 240px; }
table.core-band-table .name small { display: block; color: var(--text-secondary); font-family: ui-monospace, Menlo, monospace; font-size: 11px; }
input.target { width: 76px; padding: 6px 8px; border: 1px solid var(--border-color); border-radius: 6px; background: transparent; color: var(--text-primary); text-align: right; font-size: 13px; }

/* Band-Balken: Skala 0–max, graue Zone = Band, Strich = Ziel, Punkt = Ist */
.bar { position: relative; height: 16px; min-width: 140px; background: var(--border-color); border-radius: 8px; }
.bar .band { position: absolute; top: 3px; bottom: 3px; background: rgba(39, 174, 96, .35); border-radius: 5px; }
.bar .target { position: absolute; top: 0; bottom: 0; width: 2px; background: #27ae60; }
.bar .dot { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #2c3e50; border: 2px solid #fff; }
tr.breached .bar .dot { background: #e67e22; }
[data-theme="dark"] .bar .dot { border-color: #111; }

.status { font-size: 12px; font-weight: 600; white-space: nowrap; }
.status.ok { color: var(--positive); }
.status.breach { color: #e67e22; }
.buy { color: var(--positive); font-weight: 600; }
.sell { color: var(--negative); font-weight: 600; }
.muted { color: var(--text-secondary); font-size: 12.5px; }
