/* /Components/Abwesenheiten/AbwesenheitsGanttChart.razor.rz.scp.css */
.ak-gantt-card[b-bhkx8exird] {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 14px;
    margin-bottom: 16px;
    overflow-x: auto;
    max-height: 750px;
}

.ak-gantt[b-bhkx8exird] {
    min-width: max-content;
}

/*
 * Die erste Spalte enthält den Mitarbeiternamen.
 * Jede weitere Spalte entspricht exakt einem Tag.
 */
.ak-gantt-header[b-bhkx8exird],
.ak-gantt-row[b-bhkx8exird] {
    display: grid;
    grid-template-columns: 180px repeat(var(--day-count), 42px);
}

/* ── Gantt-Kopfzeile ───────────────────────────────────────────────────── */

.ak-gantt-header[b-bhkx8exird] {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-bottom: 2px solid #e8edf2;
    /*
     * Zeilen mit mehreren Lanes sind höher als die Kopfzeile - beim
     * Scrollen kann deshalb der untere Teil einer Zeile kurz unter der
     * Kopfzeile hervorschauen, während der Name schon verdeckt ist. Ein
     * Schlagschatten macht daraus eine bewusst wirkende "Kante" statt
     * eines Darstellungsfehlers (gleiches Prinzip wie eingefrorene
     * Kopfzeilen in Google Sheets/Notion-Tabellen).
     */
    box-shadow: 0 4px 8px -4px rgba(0, 0, 0, .18);
}

.ak-gantt-header__person[b-bhkx8exird] {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
    /*
     * Balken, die vor dem Anzeigezeitraum beginnen oder in ihn enden,
     * werden exakt an der Kante der sticky Spalte abgeschnitten - das ist
     * korrektes Verhalten, sieht ohne Schatten aber wie ein Bildfehler
     * aus. Gleiches Prinzip wie der Schlagschatten der Kopfzeile weiter
     * oben: macht aus dem Schnitt eine bewusst wirkende Kante.
     */
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .18);
}

.ak-gantt-day[b-bhkx8exird] {
    width: 42px;
    min-width: 42px;
    padding: 7px 2px;
    border-left: 1px solid #edf0f3;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.ak-gantt-day__weekday[b-bhkx8exird] {
    color: #777;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.ak-gantt-day__date[b-bhkx8exird] {
    margin-top: 2px;
    color: #666;
    font-size: 10px;
    font-weight: 600;
}

/* ── Mitarbeiter-Zeilen ─────────────────────────────────────────────────── */

.ak-gantt-row[b-bhkx8exird] {
    min-height: 36px;
    border-bottom: 1px solid #f0f2f4;
}

    .ak-gantt-row:nth-child(even)[b-bhkx8exird] {
        background: #fafbfc;
    }

        .ak-gantt-row:nth-child(even) .ak-gantt-name[b-bhkx8exird] {
            background: #fafbfc;
        }

    .ak-gantt-row:last-child[b-bhkx8exird] {
        border-bottom: none;
    }

    .ak-gantt-row:hover[b-bhkx8exird] {
        background: #f0f5fb;
    }

        .ak-gantt-row:hover .ak-gantt-name[b-bhkx8exird] {
            background: #f0f5fb;
        }

.ak-gantt-name[b-bhkx8exird] {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 10px;
    color: #1a3a5c;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
    box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .18);
}

/* ── Zeitachse einer Gantt-Zeile ────────────────────────────────────────── */

.ak-gantt-timeline[b-bhkx8exird] {
    /*
     * Ohne explizites grid-column landet dieses Element per
     * Auto-Placement nur in der zweiten Spalte des äußeren Zeilen-Grids
     * (180px Name + 1 Tagesspalte) und "funktionierte" bisher nur, weil
     * sein eigener Inhalt (day-count * 42px) über die leeren
     * nachfolgenden Spalten hinaus sichtbar überläuft - ein fragiler
     * Zufall, der je nach Browser/Scroll-Zustand zu Bildfehlern am
     * linken Rand der sticky Namensspalte führen konnte. Mit
     * grid-column: 2 / -1 bekommt es seine tatsächliche Breite direkt
     * vom äußeren Grid zugewiesen, kein Überlauf mehr nötig.
     */
    grid-column: 2 / -1;
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--day-count), 42px);
    grid-template-rows: repeat(var(--lane-count, 1), 34px);
}

.ak-gantt-cell[b-bhkx8exird] {
    min-width: 42px;
    border-left: 1px solid #edf0f3;
}

    .ak-gantt-cell.ak-weekend[b-bhkx8exird],
    .ak-gantt-day.ak-weekend[b-bhkx8exird] {
        background: #f5f6f7;
    }

    /*
 * Heutiger Tag: durchgehende Spalte über Kopfzeile + alle
 * Mitarbeiterzeilen. Steht in der Quelle nach .ak-weekend, damit die
 * Hervorhebung gewinnt, wenn heute zufällig ein Wochenendtag ist.
 */
    .ak-gantt-day.ak-heute[b-bhkx8exird],
    .ak-gantt-cell.ak-heute[b-bhkx8exird] {
        background: #eaf1fb;
        box-shadow: inset 1px 0 0 #2563a8, inset -1px 0 0 #2563a8;
    }

        .ak-gantt-day.ak-heute .ak-gantt-day__weekday[b-bhkx8exird],
        .ak-gantt-day.ak-heute .ak-gantt-day__date[b-bhkx8exird] {
            color: #1a3a5c;
        }

/* ── Abwesenheitsbalken ─────────────────────────────────────────────────── */

.ak-gantt-bar[b-bhkx8exird] {
    align-self: center;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 26px;
    min-width: 26px;
    margin: 0 2px;
    padding: 0 6px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
    cursor: default;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .22);
    transition: filter .15s, transform .15s, box-shadow .15s;
}

    .ak-gantt-bar:hover[b-bhkx8exird] {
        filter: brightness(.94);
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0, 0, 0, .22);
        z-index: 3;
    }
/* /Components/Abwesenheiten/AbwesenheitsLegende.razor.rz.scp.css */
.ak-legend-card[b-scp43gk2yv] {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 14px 20px;
    margin-bottom: 12px;
}

.ak-legend-card__title[b-scp43gk2yv] {
    margin: 0 0 10px;
    color: #888;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ak-legend[b-scp43gk2yv] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ak-legend-item[b-scp43gk2yv] {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #444;
    font-size: 13px;
}

.ak-swatch[b-scp43gk2yv] {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}
/* /Components/Abwesenheiten/AbwesenheitsListe.razor.rz.scp.css */
.ak-list-card[b-5hs0rhcvcv] {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 14px 20px;
    margin-bottom: 16px;
}

.ak-list-row[b-5hs0rhcvcv] {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) 180px 14px minmax(180px, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid #edf0f3;
    font-size: 13px;
}

    .ak-list-row:last-child[b-5hs0rhcvcv] {
        border-bottom: none;
    }

    .ak-list-row strong[b-5hs0rhcvcv] {
        color: #1a3a5c;
        font-weight: 600;
    }

.ak-list-date[b-5hs0rhcvcv] {
    color: #666;
    white-space: nowrap;
}

.ak-list-color[b-5hs0rhcvcv] {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.ak-list-title[b-5hs0rhcvcv] {
    color: #444;
}
/* /Components/Abwesenheiten/AbwesenheitsTabs.razor.rz.scp.css */
.ak-tabs[b-9fxl3xh2x9] {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e8edf2;
    margin-bottom: 16px;
}

.ak-tab[b-9fxl3xh2x9] {
    appearance: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 20px;
    color: #888;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

    .ak-tab:hover[b-9fxl3xh2x9] {
        color: #2563a8;
    }

    .ak-tab.active[b-9fxl3xh2x9] {
        color: #2563a8;
        border-bottom-color: #2563a8;
    }
/* /Components/Abwesenheiten/KostenstelleMultiSelect.razor.rz.scp.css */
.ak-multiselect-toggle[b-vcyvalanlq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    border: 1px solid #dce8f2;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #1a1a2e;
    background: #f8fafc;
    cursor: pointer;
    text-align: left;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

    .ak-multiselect-toggle:hover[b-vcyvalanlq] {
        border-color: #2563a8;
    }

    .ak-multiselect-toggle:focus-visible[b-vcyvalanlq] {
        outline: none;
        border-color: #2563a8;
        box-shadow: 0 0 0 3px rgba(37, 99, 168, .12);
    }

.ak-multiselect-toggle__text[b-vcyvalanlq] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ak-multiselect-toggle__chevron[b-vcyvalanlq] {
    flex-shrink: 0;
    color: #888;
    font-size: 9px;
}

.ak-multiselect-overlay[b-vcyvalanlq] {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.ak-multiselect-panel[b-vcyvalanlq] {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 280px;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dce8f2;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
    padding: 6px;
    z-index: 21;
}

.ak-multiselect-item[b-vcyvalanlq] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #1a1a2e;
    cursor: pointer;
    white-space: nowrap;
}

    .ak-multiselect-item:hover[b-vcyvalanlq] {
        background: #eef4fb;
    }

    .ak-multiselect-item input[type="checkbox"][b-vcyvalanlq] {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        accent-color: #2563a8;
        cursor: pointer;
    }

.ak-multiselect-item--all[b-vcyvalanlq] {
    font-weight: 700;
}

.ak-multiselect-divider[b-vcyvalanlq] {
    height: 1px;
    margin: 4px 2px;
    background: #edf0f3;
}
/* /Components/Abwesenheiten/MonatsNavigation.razor.rz.scp.css */
.ak-month-nav[b-esj41wnzub] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 16px;
}

.ak-month-nav__btn[b-esj41wnzub] {
    appearance: none;
    width: 32px;
    height: 32px;
    border: 1px solid #dce8f2;
    border-radius: 8px;
    background: #fff;
    color: #2563a8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .2s;
}

    .ak-month-nav__btn:hover[b-esj41wnzub] {
        background: #eef4fb;
        border-color: #2563a8;
    }

    .ak-month-nav__btn:active[b-esj41wnzub] {
        transform: translateY(1px);
    }

.ak-month-nav__label[b-esj41wnzub] {
    min-width: 160px;
    color: #1a3a5c;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: capitalize;
}
/* /Pages/Abwesenheiten.razor.rz.scp.css */
/*
 * CSS-Isolation: Diese Datei wird von Blazor automatisch nur auf
 * Elemente angewendet, die Abwesenheiten.razor selbst rendert (dank
 * eines generierten b-xxxxx-Attributs). Klassen, die zusätzlich in
 * einer Kindkomponente verwendet werden (z.B. .ak-filter-group), gehören
 * NICHT hierher - siehe wwwroot/css/abwesenheiten-shared.css.
 */

.ak-wrap[b-o16w5k04m2] {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1a1a2e;
    padding: 0 0 32px;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.ak-header[b-o16w5k04m2] {
    background: linear-gradient(135deg, #6e6e6e 0%, #c8c8c8 100%);
    color: #fff;
    padding: 20px 20px 16px;
    border-radius: 0 0 24px 24px;
    margin-bottom: 20px;
}

.ak-header__title[b-o16w5k04m2] {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 700;
}

.ak-header__sub[b-o16w5k04m2] {
    margin: 0;
    font-size: 12px;
    opacity: .75;
}

/* ── Filterleiste (Card + die zwei page-eigenen Steuerelemente) ──────────── */

.ak-filter-card[b-o16w5k04m2] {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 16px 20px;
    margin: 0 0 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.ak-filter-input[b-o16w5k04m2] {
    border: 1px solid #dce8f2;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #1a1a2e;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

    .ak-filter-input:focus[b-o16w5k04m2] {
        border-color: #2563a8;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(37, 99, 168, .12);
    }

.ak-filter-btn[b-o16w5k04m2] {
    border: none;
    border-radius: 8px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #1a3a5c, #2563a8);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

    .ak-filter-btn:hover[b-o16w5k04m2] {
        opacity: .88;
        transform: translateY(-1px);
    }

    .ak-filter-btn:active[b-o16w5k04m2] {
        transform: translateY(0);
    }

/* ── Ladezustand ────────────────────────────────────────────────────────── */

.ak-loading[b-o16w5k04m2] {
    padding: 40px;
    color: #888;
    text-align: center;
}

.ak-spinner[b-o16w5k04m2] {
    width: 36px;
    height: 36px;
    margin: 0 auto 12px;
    border: 4px solid #dce8f5;
    border-top-color: #2563a8;
    border-radius: 50%;
    animation: ak-spin-b-o16w5k04m2 .8s linear infinite;
}

@keyframes ak-spin-b-o16w5k04m2 {
    to { transform: rotate(360deg); }
}

/* ── Fehler ─────────────────────────────────────────────────────────────── */

.ak-error[b-o16w5k04m2] {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fdecea;
    color: #c0392b;
    font-size: 13px;
}

/* ── Stand ──────────────────────────────────────────────────────────────── */

.ak-stand[b-o16w5k04m2] {
    margin-top: 8px;
    padding-left: 4px;
    color: #aaa;
    font-size: 11px;
}
