﻿.dashboard-designer {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.designer-panel, .preview-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 1rem;
}

.designer-panel {
    display: grid;
    gap: .6rem;
}

    .designer-panel label {
        font-weight: 600;
        margin-top: .4rem;
    }

    .designer-panel select, .designer-panel button {
        min-height: 38px;
        padding: .4rem;
    }

.preview-panel {
    min-height: 460px;
    overflow: auto;
}

.error {
    color: #a00;
    padding: .75rem;
    background: #fee;
    border-radius: 6px;
}

.kpi-widget {
    padding: 2rem;
    text-align: center;
}

.kpi-title {
    color: #666;
}

.kpi-value {
    font-size: 3rem;
    font-weight: 700;
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
}

    .stat-table th, .stat-table td {
        border-bottom: 1px solid #ddd;
        padding: .6rem;
        text-align: left;
    }

.stat-chart {
    width: 100%;
    max-height: 420px;
}

    .stat-chart rect, .stat-chart circle {
        fill: currentColor;
    }

    .stat-chart polyline {
        stroke: currentColor;
    }

    .stat-chart text {
        fill: currentColor;
        font-size: 12px;
    }

@media(max-width:800px) {
    .dashboard-designer {
        grid-template-columns: 1fr
    }
}

/* KPI-Vergleich / Trend */
.kpi-comparison {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .55rem;
    font-size: .9rem;
    font-weight: 600;
}

.kpi-comparison-label {
    color: #777;
    font-weight: 400;
}

.kpi-comparison.positive .kpi-comparison-value {
    color: #198754;
}

.kpi-comparison.negative .kpi-comparison-value {
    color: #b42318;
}

.kpi-comparison.neutral .kpi-comparison-value {
    color: #666;
}
