body {
    background-color: #0d0d0d;
    color: #d0ffd0;
    font-family: Arial, sans-serif;
    margin: 0;
}

/* HEADER */

.bm-header {
    background-color: #0d0d0d;
    padding: 18px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bm-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #00ff66;
}

.bm-subtitle {
    font-size: 13px;
    color: #88ffbb;
}

.bm-brand {
    font-size: 22px;
    font-weight: bold;
    color: #00ff66;
    text-align: right;
}

.bm-brand-sub {
    font-size: 12px;
    color: #88ffbb;
    text-align: right;
}

.bm-button {
    margin-top: 8px;
    padding: 6px 14px;
    font-size: 12px;
    background-color: #111;
    color: #00ff66;
    border: 1px solid #00ff66;
    border-radius: 4px;
    cursor: pointer;
}

.bm-button:hover {
    background-color: #00ff66;
    color: #000;
}

/* GRID BASIS */

.bm-grid {
    margin: 10px 20px;
}

.ag-theme-alpine-dark {
    --ag-background-color: #1a1a1a;
    --ag-header-background-color: #111;
    --ag-header-foreground-color: #00ff66;
    --ag-foreground-color: #d0ffd0;
    --ag-border-color: #333;
}

/* POS/NEG */

.ag-cell.bm-pos {
    color: #00ff66 !important;
    font-weight: bold !important;
}

.ag-cell.bm-neg {
    color: #ff4444 !important;
    font-weight: bold !important;
}

/* Rot/Grün für AG‑Grid – Dash 4 */
.ag-cell-value.bm-pos {
    color: #00ff66 !important;
    font-weight: bold !important;
}

.ag-cell-value.bm-neg {
    color: #ff4444 !important;
    font-weight: bold !important;
}

/* Falls AG‑Grid die Klasse außen setzt */
.ag-cell.bm-pos .ag-cell-value {
    color: #00ff66 !important;
    font-weight: bold !important;
}

.ag-cell.bm-neg .ag-cell-value {
    color: #ff4444 !important;
    font-weight: bold !important;
}

/* THEMES ÜBER #root */

#root.light {
    background-color: #f5f5f5;
    color: #111;
}

#root.light .bm-header {
    background-color: #ffffff;
    border-bottom-color: #cccccc;
}

#root.light .bm-title {
    color: #008844;
}

#root.light .bm-subtitle,
#root.light .bm-brand-sub {
    color: #555;
}

#root.light .bm-brand {
    color: #008844;
}

#root.light .bm-button {
    background-color: #ffffff;
    color: #008844;
    border-color: #008844;
}

#root.light .bm-button:hover {
    background-color: #008844;
    color: #ffffff;
}

#root.light .ag-theme-alpine-dark {
    --ag-background-color: #ffffff;
    --ag-header-background-color: #f0f0f0;
    --ag-header-foreground-color: #008844;
    --ag-foreground-color: #111111;
    --ag-border-color: #cccccc;
}

#root.dark {
    background-color: #050505;
    color: #e0e0e0;
}

#root.dark .bm-header {
    background-color: #050505;
    border-bottom-color: #333333;
}

#root.dark .bm-title {
    color: #00ff66;
}

#root.dark .bm-subtitle,
#root.dark .bm-brand-sub {
    color: #88ffbb;
}

#root.dark .bm-brand {
    color: #00ff66;
}

#root.dark .bm-button {
    background-color: #111111;
    color: #00ff66;
    border-color: #00ff66;
}

#root.dark .bm-button:hover {
    background-color: #00ff66;
    color: #000000;
}

#root.dark .ag-theme-alpine-dark {
    --ag-background-color: #1a1a1a;
    --ag-header-background-color: #111111;
    --ag-header-foreground-color: #00ff66;
    --ag-foreground-color: #d0ffd0;
    --ag-border-color: #333333;
}

#root.graphite {
    background-color: #101013;
    color: #d0ffd0;
}

#root.graphite .bm-header {
    background-color: #101013;
    border-bottom-color: #2a2a2d;
}

#root.graphite .bm-title {
    color: #00ff66;
}

#root.graphite .bm-subtitle,
#root.graphite .bm-brand-sub {
    color: #88ffbb;
}

#root.graphite .bm-brand {
    color: #00ff66;
}

#root.graphite .bm-button {
    background-color: #15151a;
    color: #00ff66;
    border-color: #00ff66;
}

#root.graphite .bm-button:hover {
    background-color: #00ff66;
    color: #000000;
}

#root.graphite .ag-theme-alpine-dark {
    --ag-background-color: #1a1a1d;
    --ag-header-background-color: #111113;
    --ag-header-foreground-color: #00ff66;
    --ag-foreground-color: #d0ffd0;
    --ag-border-color: #2a2a2d;
}
