/* ===== Dashboard – Bereinigtes, professionelles Business-CSS ===== */

.DashboardPage {
    gap: 18px;
}

/* ----- Chart-Karte (Abwesenheiten) ----- */
.DashboardChartCard {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.DashboardChartHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.DashboardChartHeader h2 {
    margin-bottom: 6px;
}

.DashboardChartHeader p {
    margin-bottom: 0;
}

.DashboardChartYearNav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.DashboardChartYear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(15, 76, 129, 0.12);
    white-space: nowrap;
}

.DashboardChartRoot {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.DashboardChartCanvas {
    width: 100%;
    overflow-x: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fafbfc;
    -webkit-overflow-scrolling: touch;
}

.DashboardChartSvg {
    width: 100%;
    min-width: 920px;
    height: auto;
    display: block;
}

.DashboardChartGridLine {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.DashboardChartMonthTick {
    stroke: #cbd5e1;
    stroke-width: 1;
}

.DashboardChartAxisText,
.DashboardChartMonthLabel {
    fill: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.DashboardChartLine {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.DashboardChartLine--1 { stroke: #7b9ec7; }   /* Urlaub – Pastellblau */
.DashboardChartLine--2 { stroke: #7bbf8a; }   /* Freizeitausgleich – Pastellgrün */
.DashboardChartLine--3 { stroke: #d49696; }   /* Krank – Pastellrot */

.DashboardChartLegend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.DashboardChartLegendItem {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 700;
}

.DashboardChartLegendColor {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.DashboardChartLegendColor--1 { background: #7b9ec7; }
.DashboardChartLegendColor--2 { background: #7bbf8a; }
.DashboardChartLegendColor--3 { background: #d49696; }

.DashboardChartHoverZone {
    fill: transparent;
    cursor: crosshair;
}

.DashboardChartHoverZone:hover {
    fill: rgba(15, 76, 129, 0.04);
}

.DashboardChartTooltip {
    position: fixed;
    z-index: 5000;
    min-width: 180px;
    max-width: 260px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12);
    pointer-events: none;
    color: var(--text-primary);
    font-size: 12px;
}

.DashboardChartTooltip[hidden] {
    display: none;
}

.DashboardChartTooltip strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
}

.DashboardChartTooltip span {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: var(--text-secondary);
    font-weight: 700;
}

.DashboardChartTooltip em {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    color: var(--text-primary);
    font-style: normal;
    font-weight: 800;
}

.DashboardChartTooltipColor {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.DashboardChartTooltipColor--1 { background: #7b9ec7; }
.DashboardChartTooltipColor--2 { background: #7bbf8a; }
.DashboardChartTooltipColor--3 { background: #d49696; }

/* ----- Urlaubskarte (Mein Urlaub) ----- */
.DashboardVacationCard {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.DashboardVacationGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.DashboardVacationTile {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
}

.DashboardVacationTile span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.DashboardVacationTile strong {
    display: inline-block;
    color: var(--text-primary);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.DashboardVacationTile em {
    margin-left: 6px;
    color: var(--text-secondary);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.DashboardVacationTileStrong {
    border-color: var(--primary);
    border-left: 4px solid var(--primary);
}

/* ----- Geburtstage ----- */
.DashboardBirthdayCard {
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.DashboardBirthdayToday {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #f8fafc;
}

.DashboardBirthdayToday > strong {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.DashboardBirthdayList {
    display: grid;
    gap: 10px;
}

.DashboardBirthdayItem {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.DashboardBirthdayItem span {
    font-weight: 800;
    color: var(--text-primary);
}

.DashboardBirthdayItem em {
    color: var(--text-secondary);
    font-style: normal;
    font-weight: 700;
    text-align: right;
}

.DashboardBirthdayItem.is-today {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .DashboardChartHeader {
        flex-direction: column;
    }

    .DashboardChartYearNav {
        justify-content: flex-start;
    }

    .DashboardVacationGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .DashboardChartSvg {
        min-width: 760px;
    }

    .DashboardChartYearNav {
        width: 100%;
    }

    .DashboardChartYearNav .btn,
    .DashboardChartYear {
        flex: 1 1 auto;
    }

    .DashboardBirthdayItem {
        flex-direction: column;
    }

    .DashboardBirthdayItem em {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .DashboardVacationGrid {
        grid-template-columns: 1fr;
    }

    .DashboardChartSvg {
        min-width: 680px;
    }
}