﻿/* ======================================================================
   TIMEBASE WEB – BEREINIGTES THEME (DPI/4K stabil + konsolidiert)
   ====================================================================== */

/* ======================================================================
   VARIABLEN
   ====================================================================== */
:root {
    /* Core Theme */
    --tb-bg: #050608;
    --tb-surface: #151820;
    --tb-surface-soft: #1d1f28;
    --tb-border: rgba(120,125,140,0.55);
    --tb-text: #f5f5f5;
    --tb-text-dim: #a0a4b6;
    --tb-accent: #d24b4b;
    /* Overlay / Modal */
    --tb-ov-backdrop: rgba(0,0,0,0.58);
    --tb-ov-surface-1: rgba(17,24,39,0.78);
    --tb-ov-surface-2: rgba(2,6,23,0.82);
    --tb-ov-border: rgba(148,163,184,0.38);
    --tb-ov-shadow: 0 26px 60px rgba(0,0,0,0.72);
    --tb-ov-radius: 20px;
    /* Dispo Signature Line */
    --tb-signature-line: #7f1d1d;
    --tb-signature-shadow: rgba(127,29,29,0.25);
    --tb-surface-tint-1: rgba(15,23,42,0.06);
    --tb-surface-tint-2: rgba(15,23,42,0.02);
    /* News Palette */
    --tb-dark: #0f172a;
    --tb-dark-soft: rgba(15,23,42,0.08);
    --tb-dark-border: rgba(15,23,42,0.18);
    --tb-grey: rgba(30,41,59,0.65);
    --tb-red: #c2413a;
    --tb-red-bg: rgba(194,65,58,0.12);
    --tb-red-border: rgba(194,65,58,0.35);
}

/* ======================================================================
   BASIS / DPI
   ====================================================================== */
html {
    font-size: 16px;
}

html, body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    background: var(--tb-bg);
    color: var(--tb-text);
}

/* DPI/4K Baseline: globaler Seiten-Container */
.tb-main-shell {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Links */
a, .btn-link {
    color: var(--tb-accent);
    text-decoration: none;
}

    a:hover, .btn-link:hover {
        text-decoration: underline;
    }

/* Bootstrap-Buttons (falls genutzt) */
.btn-primary {
    color: #fff;
    background-color: var(--tb-accent);
    border-color: #b03636;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem rgba(210, 75, 75, 0.6);
}

/* Validierung */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Blazor-Fehleranzeige */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* ======================================================================
   GRUNDLAYOUT – ROOT, HEADER, NAV, MAIN
   ====================================================================== */
.tb-root-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--tb-bg);
}

/* ======================================================================
   HEADER + TOP NAV – Visible Glass (ONE fused bar, sichtbarer Effekt)
   ====================================================================== */

/* -------------------------------
   HEADER
-------------------------------- */
.tb-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;

    /* Grundkörper */
    background: linear-gradient(
        180deg,
        rgba(46,50,62,0.92) 0%,
        rgba(30,32,40,0.92) 55%,
        rgba(22,24,32,0.94) 100%
    );

    border-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);

    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);

    color: #f5f5f5;
    font-size: 0.9rem;

    position: relative;
    overflow: hidden;
}

/* EIN gemeinsamer Glass-Layer, der in die Nav reinläuft */
.tb-header::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: 0;

    /* läuft bewusst in die Nav hinein */
    bottom: -78px;

    pointer-events: none;
    z-index: 0;

    background:
        /* harte Glas-Kante oben */
        linear-gradient(
            180deg,
            rgba(255,255,255,0.28) 0%,
            rgba(255,255,255,0.12) 18%,
            rgba(255,255,255,0.05) 38%,
            transparent 72%
        ),
        /* sichtbarer Wasserbogen */
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255,255,255,0.22) 0%,
            rgba(255,255,255,0.08) 30%,
            transparent 62%
        ),
        /* leichtes “frosting” */
        radial-gradient(
            circle at 14% 0%,
            rgba(255,255,255,0.10) 0%,
            transparent 52%
        );

    opacity: 0.62;
}

/* zusätzlicher “sheen sweep” (sehr subtil, aber sichtbar) */
.tb-header::after {
    content: "";
    position: absolute;
    left: -35%;
    top: -70%;
    width: 170%;
    height: 240%;
    pointer-events: none;
    z-index: 0;

    background: linear-gradient(
        115deg,
        rgba(255,255,255,0.00) 0%,
        rgba(255,255,255,0.10) 18%,
        rgba(255,255,255,0.04) 40%,
        rgba(255,255,255,0.00) 65%
    );

    opacity: 0.22;
    transform: rotate(-2deg);
}

/* Header content über dem Layer */
.tb-header-left,
.tb-header-right,
.tb-logo-wrap {
    position: relative;
    z-index: 2;
}

.tb-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tb-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.86rem;
}

.tb-user-label { opacity: 0.85; }

.tb-branch-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f5f5f5;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.8rem;

    backdrop-filter: blur(10px) saturate(1.25);
    -webkit-backdrop-filter: blur(10px) saturate(1.25);

    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
}

.tb-header-right a,
.tb-link-button {
    padding: 4px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
    font-size: 0.8rem;
    text-decoration: none;

    box-shadow:
        0 8px 18px rgba(0,0,0,0.30),
        inset 0 1px 0 rgba(255,255,255,0.10);

    transition: background 0.15s ease, border-color 0.15s ease, transform 0.10s ease;
}

.tb-header-right a:hover,
.tb-link-button:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-1px);
}

/* Logo */
.tb-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tb-logo-img {
    width: 65px;
    height: 65px;
    border-radius: 1px;
    object-fit: contain;
    padding: 4px;
}

.tb-logo-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: .92;
    padding-bottom: 3px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    text-shadow: 0 6px 20px rgba(0,0,0,.35);
}

/* KW Switch */
.tb-week-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.08);
}

.tb-week-label { font-size: 0.8rem; white-space: nowrap; }
.tb-week-btn { padding: 2px 8px; line-height: 1; }

/* ============================================================
   DARK MAIN BACKGROUND (15–20 % dunkler, wieder konsistent)
============================================================ */

.tb-main {
    background: radial-gradient(circle at 12% 0%, rgba(210,75,75,0.08), transparent 55%), radial-gradient(circle at 88% 90%, rgba(148,163,184,0.06), transparent 60%), linear-gradient( 180deg, #06080d 0%, #0a0f1a 45%, #06080d 100% );
}


/* ============================================================
   HEADER + NAV (final, sauber, ohne doppelte .tb-sidebar)
   - Header: Dark Glass + subtiler Rot-Wasser-Tint
   - Nav: KPI-Dark (ohne Rot)
   - Pills: Premium neutral
============================================================ */

/* ================= HEADER ================= */

.tb-header {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: linear-gradient( 90deg, #10131a 0%, #0f1218 40%, #0d1016 75%, #0b0e13 100% );
    border-bottom: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    color: #f5f5f5;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

    /* Glas + Rot Wasser-Layer (läuft optisch Richtung Nav) */
    .tb-header::before {
        content: "";
        position: absolute;
        inset: 0;
        bottom: -70px;
        pointer-events: none;
        z-index: 0;
        background:
        /* Glas-Highlight */
        linear-gradient( 180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.06) 20%, transparent 70% ),
        /* Rot-Schimmer nur bis 70%, danach komplett transparent */
        linear-gradient( 90deg, rgba(210,75,75,0.10) 0%, rgba(210,75,75,0.07) 25%, rgba(210,75,75,0.04) 50%, rgba(210,75,75,0.02) 65%, transparent 70% ),
        /* Tiefe */
        radial-gradient( ellipse at 30% 0%, rgba(255,255,255,0.10) 0%, transparent 60% );
        opacity: 0.90;
        animation: headerWaterBreath 20s ease-in-out infinite;
    }
@keyframes headerWaterBreath {
    0% {
        opacity: 0.10;
    }

    50% {
        opacity: 0.60;
    }

    100% {
        opacity: 0.10;
    }
}



.tb-header-left,
.tb-header-right,
.tb-logo-wrap {
    position: relative;
    z-index: 2;
}


/* ================= NAVBAR (KPI-Dark, ohne Rot) ================= */

.tb-sidebar {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    padding: 8px 20px;
    /* KPI-Dark Look (ohne Rot) */
    background: linear-gradient( 90deg, #0b0f17 0%, #0a1220 40%, #09101d 75%, #070b13 100% );
    margin-top: -1px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    /* Shadow bewusst etwas ruhiger */
    box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

    .tb-sidebar nav {
        position: relative;
        z-index: 2;
        display: flex;
        gap: 10px;
        align-items: center;
        justify-content: center;
    }


        /* ================= NAV PILLS (neutral, premium, kein Rot) ================= */

        /* ================= NAV PILLS – Premium Dark + Shine ================= */

        .tb-sidebar nav a {
            position: relative;
            overflow: hidden;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 16px;
            border-radius: 999px;
            color: rgba(245,245,245,0.92);
            font-weight: 650;
            font-size: 0.86rem;
            letter-spacing: 0.02em;
            text-decoration: none;
            background: rgba(12,14,19,0.55);
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -10px 18px rgba(0,0,0,0.45), 0 6px 14px rgba(0,0,0,0.35);
            backdrop-filter: blur(10px) saturate(1.15);
            -webkit-backdrop-filter: blur(10px) saturate(1.15);
            transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

            /* ================= SHINE EFFECT ================= */

            .tb-sidebar nav a::after {
                content: "";
                position: absolute;
                top: 0;
                left: -120%;
                width: 120%;
                height: 100%;
                background: linear-gradient( 115deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.18) 40%, rgba(255,255,255,0) 80% );
                transform: skewX(-20deg);
                transition: left 0.5s ease;
                pointer-events: none;
            }

            .tb-sidebar nav a:hover::after {
                left: 120%;
            }

            /* ================= HOVER ================= */

            .tb-sidebar nav a:hover {
                background: rgba(18,20,26,0.62);
                border-color: rgba(255,255,255,0.22);
                box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -12px 20px rgba(0,0,0,0.50), 0 10px 22px rgba(0,0,0,0.45);
                transform: translateY(-2px);
            }

            /* ================= ACTIVE ================= */

            .tb-sidebar nav a.active {
                background: rgba(24,26,32,0.78);
                border-color: rgba(255,255,255,0.40);
                color: #ffffff;
                /* Mehr Glow + mehr Tiefe */
                box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), inset 0 -16px 26px rgba(0,0,0,0.65), 0 16px 32px rgba(0,0,0,0.60), 0 0 18px rgba(255,255,255,0.08);
                transform: translateY(-1px);
            }

/* MAIN CONTENT */
.tb-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f3f4f6 0%, #f9fafb 40%, #f3f4f6 100%);
}

.tb-content {
    padding: 16px 32px 28px;
    color: #111827;
}

/* ======================================================================
   GENERISCHE KOMPONENTEN (Cards, Toolbar, Tabellen, Badges, Grid)
   ====================================================================== */
.tb-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.tb-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .tb-card-head h4 {
        margin: 0;
        font-size: 16px;
        color: #111827;
    }

.tb-card-actions {
    display: flex;
    gap: 8px;
}

.tb-sep {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 10px 0;
}

.tb-card-body {
    color: #111827;
    padding-top: .25rem;
}

/* Toolbar / Inputs */
.tb-toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tb-input,
.tb-btn,
.tb-select-sm {
    background: #ffffff;
    color: #111827;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    border-radius: 8px;
}

.tb-btn {
    cursor: pointer;
}

    .tb-btn.primary {
        background-color: var(--tb-accent);
        border-color: #b03636;
        color: #fff;
    }

        .tb-btn.primary:hover {
            background-color: #b03636;
        }

/* Global Tables */
.tb-table thead th,
.tasks-table thead th {
    padding: 9px 12px;
    color: #f5f5f5 !important;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.tb-table thead tr,
.tasks-table thead tr {
    background: linear-gradient(135deg, #17171d, #22232b);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
}

.tb-table td,
.tasks-table td {
    padding: 8px 12px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

.tb-table tbody tr,
.tasks-table tbody tr {
    background: #ffffff;
    transition: background 0.12s ease, transform 0.06s ease;
}

    .tb-table tbody tr:nth-child(even),
    .tasks-table tbody tr:nth-child(even) {
        background: #f9fafb;
    }

    .tb-table tbody tr:hover,
    .tasks-table tbody tr:hover {
        background: #f3f4f6;
        transform: translateY(-1px);
    }

    /* ======================================================================
   ANFRAGEN – Zeilen-Markierung (global für tb-table)
   Klassen aus Razor: tb-row-offen / tb-row-white / tb-row-white-offen
   ====================================================================== */

    /* offen = zart rot */
    .tb-table tbody tr.tb-row-offen > td {
        background: rgba(210, 75, 75, 0.12) !important;
    }

        .tb-table tbody tr.tb-row-offen > td:first-child {
            box-shadow: inset 4px 0 0 rgba(210, 75, 75, 0.55);
        }

    /* WHITE = zart blau */
    .tb-table tbody tr.tb-row-white > td {
        background: rgba(59, 130, 246, 0.11) !important;
    }

        .tb-table tbody tr.tb-row-white > td:first-child {
            box-shadow: inset 4px 0 0 rgba(59, 130, 246, 0.55);
        }

    /* WHITE + offen = sichtbar anders (Gradient + doppelte Accent-Linie) */
    .tb-table tbody tr.tb-row-white-offen > td {
        background: linear-gradient( 90deg, rgba(210, 75, 75, 0.12) 0%, rgba(59, 130, 246, 0.11) 100% ) !important;
    }

        .tb-table tbody tr.tb-row-white-offen > td:first-child {
            box-shadow: inset 4px 0 0 rgba(210, 75, 75, 0.55), inset 8px 0 0 rgba(59, 130, 246, 0.45);
        }

    /* Hover: nicht die Markierung verlieren – nur minimal "anheben" */
    .tb-table tbody tr.tb-row-offen:hover > td,
    .tb-table tbody tr.tb-row-white:hover > td,
    .tb-table tbody tr.tb-row-white-offen:hover > td {
        filter: brightness(1.03);
        transform: translateY(-1px); /* übernimmt euren Premium-hover */
    }



/* Task status select */
.task-status-select {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
}

/* Badges (generic) */
.tb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .85rem;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
}

    .tb-badge.ok {
        font-weight: 700;
    }

    .tb-badge.warn {
        font-weight: 700;
        opacity: .9;
    }

    .tb-badge.subtle {
        opacity: .75;
    }

/* Grid Helper */
.grid {
    display: grid;
    gap: 12px;
}

    .grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

@media (max-width: 1100px) {
    .grid.cols-3, .grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
   DISPO – KPI-Streifen + Layout
   ====================================================================== */
/* ======================================================================
   DISPO – KPI-Streifen + Layout
   ====================================================================== */
.tb-kpi-card,
.dispo-kpi-widget {
    margin: 0.4rem 0 0.8rem;
    padding: 0 0.3rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.dispo-kpi-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.tb-kpi-box {
    min-width: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 0.8rem;
    background: radial-gradient(circle at 0% 0%, rgba(248,250,252,0.08), transparent 55%), radial-gradient(circle at 100% 100%, rgba(248,113,113,0.20), transparent 60%), #020617;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .tb-kpi-box.kpi-main {
        /* keine Sonderbreite mehr */
    }

.tb-kpi-box-title {
    font-size: 0.60rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tb-kpi-box-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f9fafb;
    line-height: 1.1;
}

.tb-kpi-box.kpi-main:first-child .tb-kpi-box-value {
    font-size: 1.15rem;
}

@media (max-width: 1500px) {
    .dispo-kpi-grid {
        gap: 8px;
    }

    .tb-kpi-box {
        padding: 0.4rem 0.65rem;
    }

    .tb-kpi-box-title {
        font-size: 0.56rem;
    }

    .tb-kpi-box-value {
        font-size: 0.98rem;
    }

    .tb-kpi-box.kpi-main:first-child .tb-kpi-box-value {
        font-size: 1.08rem;
    }
}

@media (max-width: 1280px) {
    .tb-kpi-box {
        padding: 0.34rem 0.58rem;
    }

    .tb-kpi-box-title {
        font-size: 0.52rem;
        letter-spacing: 0.06em;
    }

    .tb-kpi-box-value {
        font-size: 0.92rem;
    }

    .tb-kpi-box.kpi-main:first-child .tb-kpi-box-value {
        font-size: 1rem;
    }
}

/* Dispo Layout: links MA, rechts Firmen */
.dispo-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.dispo-left-column {
    position: sticky;
    top: 120px;
    align-self: flex-start;
}

.dispo-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dispo-comp-wrap {
    width: 100%;
    max-width: 1240px;
}

    .dispo-comp-wrap .company-block {
        width: 100%;
    }

/* ======================================================================
   DISPO – Freie MA / Austritte (stabil, ohne doppelte tb-emp-list Regeln)
   ====================================================================== */
.tb-emp-list {
    overflow: hidden;
}

/* Freie Mitarbeiter – sticky */
.tb-emp-free {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    z-index: 31;
}

/* Austritte – sticky darunter */
.tb-emp-exits {
    position: sticky;
    top: 220px;
    align-self: flex-start;
    z-index: 30;
}

/* Tabs */
.tb-emp-list .tb-mini-tabs {
    display: flex;
    gap: .5rem;
    align-items: center;
    padding: .25rem .25rem .5rem .25rem;
}

.tb-emp-list .tb-mini-tab {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .6rem;
    min-height: 32px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827 !important;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: none !important;
    outline: none !important;
}

    .tb-emp-list .tb-mini-tab::before,
    .tb-emp-list .tb-mini-tab::after {
        content: none !important;
        display: none !important;
    }

    .tb-emp-list .tb-mini-tab:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

    .tb-emp-list .tb-mini-tab.active {
        background: rgba(210,75,75,0.10);
        border-color: rgba(210,75,75,0.55);
        color: #111827 !important;
    }

.tb-emp-list .tb-mini-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 18px;
    padding: 0 .35rem;
    border-radius: 999px;
    font-size: .78em;
    font-weight: 900;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #111827 !important;
}

/* List Items */
.tb-emp-list .tb-free-emp,
.tb-emp-list .tb-ex-emp {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: .55rem .6rem;
    margin-bottom: .45rem;
}

    .tb-emp-list .tb-free-emp:hover,
    .tb-emp-list .tb-ex-emp:hover {
        border-color: #d1d5db;
        background: #f9fafb;
    }

/* Klickbarer Name */
.tb-emp-list .tb-emp-link {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    text-align: left;
    background: transparent !important;
    border: 0 !important;
    padding: .2rem 0 !important;
    color: #111827 !important;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

/* Action Buttons */
.tb-emp-list .tb-emp-action {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: none !important;
    color: #111827 !important;
}

    .tb-emp-list .tb-emp-action:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }

/* Drop highlight */
.tb-emp-list .drop-target {
    outline: 2px dashed rgba(210,75,75,0.55);
    outline-offset: 6px;
    border-radius: 12px;
}

/* ======================================================================
   DISPO – Firmenblock (FINAL: Enterprise ruhig)
   ====================================================================== */
.company-block {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.6rem;
    padding: 0.9rem 1rem 1.1rem;
    border-radius: 18px;
    background: radial-gradient(circle at 12% 0%, rgba(127,29,29,0.05), transparent 60%), linear-gradient(145deg, rgba(255,255,255,0.82), rgba(243,244,246,0.90));
    border: 1px solid rgba(148, 163, 184, 0.50);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    /* Signature Line links */
    .company-block::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 3px;
        border-radius: 999px;
        background: var(--tb-signature-line);
        opacity: 0.65;
        box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset, 0 0 10px var(--tb-signature-shadow);
    }

    .company-block:hover {
        border-color: rgba(127,29,29,0.25);
        box-shadow: 0 22px 48px rgba(15, 23, 42, 0.22);
    }

        .company-block:hover::before {
            opacity: 0.85;
            box-shadow: 0 0 0 1px rgba(255,255,255,0.35) inset, 0 0 12px rgba(127,29,29,0.30);
        }

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.55rem;
    position: relative;
    padding: 0.55rem 0.75rem 0.65rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--tb-surface-tint-1), var(--tb-surface-tint-2));
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

    .company-header h3 {
        margin: 0;
        font-size: 1.18rem;
        font-weight: 900;
        letter-spacing: 0.02em;
        color: #0b1220;
        text-shadow: 0 10px 26px rgba(15,23,42,0.18);
    }

    .company-header small {
        display: block;
        font-size: 0.78rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(17,24,39,0.62);
    }

.dispo-grid {
    display: grid;
    grid-template-columns: minmax(160px, 1.25fr) repeat(7, minmax(76px, 0.9fr)) minmax(62px, 0.7fr) minmax(88px, 0.8fr);
    gap: 6px;
}

@media (max-width: 1500px) {
    .dispo-grid {
        grid-template-columns: minmax(145px, 1.15fr) repeat(7, minmax(68px, 0.82fr)) minmax(56px, 0.62fr) minmax(78px, 0.72fr);
    }
}


    .dispo-grid .hdr,
    .dispo-grid .row {
        padding: 0.15rem 0.35rem;
        border-radius: 0.5rem;
        background: rgba(17, 24, 39, 0.028);
    }

    .dispo-grid .hdr {
        font-weight: 600;
        background: rgba(17, 24, 39, 0.045);
    }

        .dispo-grid .hdr.emp {
            position: sticky;
            left: 0;
            z-index: 1;
        }

        .dispo-grid .hdr.sum {
            text-align: center;
        }

    /* Mitarbeiter-Zeile in Firma */
    .dispo-grid .row.emp {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-template-areas: "fd remove" "name name";
        row-gap: 0.25rem;
        column-gap: 0.35rem;
        max-width: none;
        min-width: 0;
        align-items: center;
    }

        .dispo-grid .row.emp input[type="checkbox"] {
            grid-area: fd;
        }

        .dispo-grid .row.emp .emp-pill-x {
            grid-area: remove;
            justify-self: end;
        }

        .dispo-grid .row.emp .emp-name {
            grid-area: name;
            display: block;
            padding: 0.2rem 0.55rem;
            border-radius: 0.45rem;
            background: #111827;
            border: 1px solid rgba(148, 163, 184, 0.6);
            font-weight: 700;
            font-size: 0.95rem;
            color: #ffffff;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

/* X-Kapsel */
.emp-pill-x {
    padding: 0;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    line-height: 1;
    color: #e5e7eb;
}

/* VS/Umsatz */
.dispo-grid .row.sum {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.tb-sum-cell {
    min-height: 16px;
    padding: 0.05rem 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: #111827;
    border-radius: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    color: #ffffff;
}

/* Shift Cells */
.tb-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 0.7rem;
    padding: 0.12rem 0.7rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    color: #f9fafb;
    background-image: radial-gradient(circle at 0 0, rgba(255,255,255,0.12), transparent 55%), linear-gradient(135deg, #020617, #020617);
    border: 1px solid rgba(148,163,184,0.55);
    box-shadow: 0 16px 35px rgba(15,23,42,0.7), inset 0 0 0 1px rgba(15,23,42,0.8);
    transition: background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
}

    .tb-cell:hover {
        transform: translateY(-1px);
        box-shadow: 0 20px 42px rgba(15,23,42,0.95), inset 0 0 0 1px rgba(15,23,42,0.8);
    }

    /* Früh / Spät / Nacht */
    .tb-cell.cell-frueh {
        background-image: radial-gradient(circle at 0 0, rgba(45,212,191,0.18), transparent 62%), linear-gradient(135deg, #06281f, #0b6b55);
        border-color: rgba(45,212,191,0.72);
    }

    .tb-cell.cell-spaet {
        background-image: radial-gradient(circle at 0 0, rgba(96,165,250,0.18), transparent 62%), linear-gradient(135deg, #0b1220, #1e40af);
        border-color: rgba(96,165,250,0.78);
    }

    .tb-cell.cell-nacht {
        background-image: radial-gradient(circle at 0 0, rgba(148,163,184,0.14), transparent 62%), linear-gradient(135deg, #070b14, #233246);
        border-color: rgba(148,163,184,0.58);
    }

    .tb-cell.cell-frueh,
    .tb-cell.cell-spaet,
    .tb-cell.cell-nacht {
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 10px 22px rgba(0,0,0,0.35);
        text-shadow: 0 1px 10px rgba(0,0,0,0.45);
    }
    /* ===============================
   UNBEZAHLT – DEUTLICH ERKENNBAR
   =============================== */

    /* Dispo Grid */
    .tb-cell.cell-ub {
        position: relative;
        border: 2px dashed rgba(255,255,255,0.9);
        box-shadow: 0 0 0 2px rgba(0,0,0,0.65) inset, 0 0 8px rgba(255,255,255,0.15);
    }

        /* diagonales Overlay (leicht transparent) */
        .tb-cell.cell-ub::after {
            content: "";
            position: absolute;
            inset: 0;
            background: repeating-linear-gradient( 45deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 4px, transparent 4px, transparent 8px );
            pointer-events: none;
            border-radius: inherit;
        }

/* ShiftCell */
.shift-cell.status-ub {
    border: 2px dashed rgba(255,255,255,0.9);
    box-shadow: 0 0 0 2px rgba(0,0,0,0.65) inset, 0 0 8px rgba(255,255,255,0.15);
}


/* Status */
.tb-cell.cell-urlaub {
    background-image: radial-gradient(circle at 0 0, rgba(250,204,21,0.30), transparent 60%), linear-gradient(135deg, #111827, #92400e);
    border-color: rgba(250,204,21,0.9);
}

.tb-cell.cell-krank {
    background-image: radial-gradient(circle at 0 0, rgba(248,113,113,0.35), transparent 60%), linear-gradient(135deg, #111827, #7f1d1d);
    border-color: rgba(248,113,113,0.95);
}

.tb-cell.cell-gz {
    background-image: radial-gradient(circle at 0 0, rgba(56,189,248,0.30), transparent 60%), linear-gradient(135deg, #020617, #075985);
    border-color: rgba(56,189,248,0.95);
}

.tb-cell.cell-frei {
    background-image: radial-gradient(circle at 0 0, rgba(148,163,184,0.28), transparent 60%), linear-gradient(135deg, #111827, #374151);
    border-color: rgba(148,163,184,0.9);
}

.tb-cell.cell-empty {
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    border-color: #cbd5e1;
    color: #374151;
    box-shadow: 0 4px 10px rgba(148,163,184,0.35);
}

/* Cell Edit */
.tb-cell-edit {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.tb-cell input[type="time"],
.tb-cell select {
    background: transparent;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.2rem 0.4rem;
}

/* -------------------------------
   TITEL
-------------------------------- */
.dispo-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #f4f6fa;
}

    /* KW / Jahr optisch etwas dezenter */
    .dispo-title span,
    .dispo-title small {
        font-weight: 500;
        color: #aab1c3;
    }

/* -------------------------------
   LAST UPDATED PILL
-------------------------------- */
.dispo-lastup-pill {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .75rem;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 500;
    color: #4b5563; /* deutlich besser lesbar */
}


    /* Status Dot */
    .dispo-lastup-pill .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #4ade80; /* ruhiges Grün */
        box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
    }

/* ======================================================================
   AUFGABEN – Carryover
   ====================================================================== */
.tasks-table {
    width: 100%;
    border-collapse: collapse;
}

    .tasks-table tr.task-carryover td {
        background: rgba(210, 75, 75, 0.10);
    }

    .tasks-table tr.task-carryover:hover td {
        background: rgba(210, 75, 75, 0.14);
    }

    .tasks-table tr.task-carryover td:first-child {
        box-shadow: inset 3px 0 0 rgba(210, 75, 75, 0.55);
    }

    .tasks-table .task-badge-alt {
        display: inline-block;
        margin-left: .45rem;
        padding: .05rem .4rem;
        border-radius: 999px;
        font-size: .75rem;
        line-height: 1.2;
        background: rgba(210, 75, 75, 0.18);
        border: 1px solid rgba(210, 75, 75, 0.35);
        color: #7f1d1d;
        font-weight: 700;
        vertical-align: middle;
    }

/* ======================================================================
   OVERLAYS / MODALS – konsolidiert
   ====================================================================== */
.tb-modal-backdrop,
.tb-dialog-backdrop {
    position: fixed;
    inset: 0;
    padding: 12px;
    background: radial-gradient(circle at 18% 12%, rgba(210,75,75,0.10), transparent 58%), radial-gradient(circle at 85% 88%, rgba(148,163,184,0.08), transparent 62%), var(--tb-ov-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tb-modal,
.tb-dialog {
    position: relative;
    min-width: 320px;
    max-width: 520px;
    width: min(520px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    border-radius: var(--tb-ov-radius);
    padding: 18px 20px;
    color: #f5f7fb;
    background: radial-gradient(circle at 12% 0%, rgba(210,75,75,0.10), transparent 62%), linear-gradient(145deg, var(--tb-ov-surface-1), var(--tb-ov-surface-2));
    border: 1px solid var(--tb-ov-border);
    box-shadow: var(--tb-ov-shadow);
}

    .tb-modal::before,
    .tb-dialog::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: radial-gradient(circle at 0 0, rgba(255,255,255,0.10), transparent 60%), radial-gradient(circle at 100% 100%, rgba(255,255,255,0.06), transparent 62%);
        opacity: 0.35;
        pointer-events: none;
    }

    .tb-dialog-header h3,
    .tb-modal h3,
    .tb-modal h2,
    .tb-dialog h3 {
        margin: 0 0 0.55rem 0;
        letter-spacing: 0.01em;
    }

.tb-dialog-body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 8px;
}

.tb-modal-buttons,
.tb-dialog-footer,
.tb-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    flex: 0 0 auto;
}

.tb-modal input,
.tb-modal select,
.tb-modal textarea,
.tb-dialog input,
.tb-dialog select,
.tb-dialog textarea {
    width: 100%;
    border: 1px solid rgba(148,163,184,0.22);
    border-radius: 14px;
    padding: 0.55rem 0.75rem;
    background: rgba(2,6,23,0.55);
    color: #f5f5f5;
    outline: none;
    box-sizing: border-box;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background 140ms ease;
}

.tb-modal textarea,
.tb-dialog textarea {
    min-height: 92px;
    resize: vertical;
}

    .tb-modal input:focus,
    .tb-modal select:focus,
    .tb-modal textarea:focus,
    .tb-dialog input:focus,
    .tb-dialog select:focus,
    .tb-dialog textarea:focus {
        border-color: rgba(210,75,75,0.55);
        box-shadow: 0 0 0 3px rgba(210,75,75,0.14);
        transform: translateY(-1px);
        background: rgba(2,6,23,0.62);
    }

.tb-modal .tb-btn,
.tb-dialog .tb-btn,
.tb-modal button,
.tb-dialog button {
    border-radius: 999px;
    padding: 0.52rem 0.95rem;
    border: 1px solid rgba(148,163,184,0.28);
    background: rgba(255,255,255,0.08);
    color: #f5f5f5;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

    .tb-modal .tb-btn:hover,
    .tb-dialog .tb-btn:hover,
    .tb-modal button:hover,
    .tb-dialog button:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.12);
        border-color: rgba(148,163,184,0.40);
        box-shadow: 0 14px 28px rgba(0,0,0,0.45);
    }

/* ======================================================================
   SPEZIAL: Anfrage-Dialog
   ====================================================================== */
.tb-dialog.tb-dialog--inquiry {
    max-width: 920px;
    width: min(920px, calc(100vw - 24px));
}

.tb-dialog-grid--inquiry {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

    .tb-dialog-grid--inquiry label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        min-width: 0;
    }

    .tb-dialog-grid--inquiry .tb-input,
    .tb-dialog-grid--inquiry .tb-select,
    .tb-dialog-grid--inquiry input,
    .tb-dialog-grid--inquiry select,
    .tb-dialog-grid--inquiry textarea {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
@media (max-width: 900px) {
    .tb-dialog.tb-dialog--inquiry {
        max-width: 720px;
        width: min(720px, calc(100vw - 24px));
    }
}

@media (max-width: 640px) {
    .tb-modal-backdrop,
    .tb-dialog-backdrop {
        padding: 8px;
    }

    .tb-modal,
    .tb-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        padding: 16px;
        border-radius: 16px;
    }

        .tb-dialog.tb-dialog--inquiry {
            width: calc(100vw - 16px);
            max-width: none;
        }

    .tb-dialog-grid--inquiry {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .tb-modal-buttons,
    .tb-dialog-footer,
    .tb-dialog-actions {
        flex-wrap: wrap;
    }

        .tb-modal-buttons .tb-btn,
        .tb-dialog-footer .tb-btn,
        .tb-dialog-actions .tb-btn {
            flex: 1 1 auto;
        }
}
/* ======================================================================
   DISPO – Status Pills (Fix: wieder farbig im Shift-Dialog)
   ====================================================================== */

/* Basis */
.tb-dialog .tb-status-pill,
.tb-modal .tb-status-pill,
.tb-status-pill {
    padding: 5px 18px;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    font-size: 0.8rem;
    color: #e5e7eb;
    background: radial-gradient(circle at 0 0, rgba(255,255,255,0.12), transparent 60%), linear-gradient(135deg, #020617, #020617);
    border: 1px solid rgba(148,163,184,0.7);
    box-shadow: 0 10px 26px rgba(15,23,42,0.75);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

    .tb-dialog .tb-status-pill:hover,
    .tb-modal .tb-status-pill:hover,
    .tb-status-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 16px 34px rgba(15,23,42,0.95);
    }

    /* frei */
    .tb-dialog .tb-status-pill.frei,
    .tb-modal .tb-status-pill.frei,
    .tb-status-pill.frei {
        background-image: radial-gradient(circle at 0 0, rgba(148,163,184,0.26), transparent 60%), linear-gradient(135deg, #111827, #374151);
    }

    /* GZ */
    .tb-dialog .tb-status-pill.gz,
    .tb-modal .tb-status-pill.gz,
    .tb-status-pill.gz {
        background-image: radial-gradient(circle at 0 0, rgba(56,189,248,0.30), transparent 60%), linear-gradient(135deg, #020617, #075985);
        border-color: rgba(56,189,248,0.9);
    }

    /* Urlaub */
    .tb-dialog .tb-status-pill.urlaub,
    .tb-modal .tb-status-pill.urlaub,
    .tb-status-pill.urlaub {
        background-image: radial-gradient(circle at 0 0, rgba(250,204,21,0.30), transparent 60%), linear-gradient(135deg, #111827, #92400e);
        border-color: rgba(250,204,21,0.9);
    }

    /* Krank */
    .tb-dialog .tb-status-pill.krank,
    .tb-modal .tb-status-pill.krank,
    .tb-status-pill.krank {
        background-image: radial-gradient(circle at 0 0, rgba(248,113,113,0.35), transparent 60%), linear-gradient(135deg, #111827, #7f1d1d);
        border-color: rgba(248,113,113,0.95);
    }

    /* FU (fehlte auch im alt) */
    .tb-dialog .tb-status-pill.fu,
    .tb-modal .tb-status-pill.fu,
    .tb-status-pill.fu {
        background-image: radial-gradient(circle at 0 0, rgba(148,163,184,0.18), transparent 60%), linear-gradient(135deg, #0b0f17, #111827);
        border-color: rgba(148,163,184,0.55);
        color: #e5e7eb;
    }

    /* ausgewählt */
    .tb-dialog .tb-status-pill.selected,
    .tb-modal .tb-status-pill.selected,
    .tb-status-pill.selected {
        box-shadow: 0 0 0 1px #f9fafb, 0 18px 40px rgba(15,23,42,1);
    }


/* ======================================================================
   CONTROLLING / SALES – konsolidiert (1 Design, 0 Glück)
   Ersetzt: "CONTROLLING / SALES KPI GRIDS" + ".kpi-box" + "cv-rate-*"
   ====================================================================== */

/* ---------- Grid-System für KPI-Blöcke ---------- */
.weekly-kpi-grid,
.weekly-hours-grid,
.employee-kpi-grid,
.sales-kpi-grid,
.sales-kpis, /* dein Razor nutzt sales-kpis */
.kpi-list /* dein Razor nutzt kpi-list */ {
    display: grid;
    gap: 14px;
}

/* Standard: 3 Spalten */
.weekly-kpi-grid,
.weekly-hours-grid,
.employee-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 5er KPI-Reihen (Sales + KPI rechts) */
.sales-kpi-grid,
.sales-kpis,
.kpi-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Responsive */
@media (max-width: 1300px) {
    .weekly-kpi-grid,
    .weekly-hours-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-kpi-grid,
    .sales-kpi-grid,
    .sales-kpis,
    .kpi-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .weekly-kpi-grid,
    .weekly-hours-grid,
    .employee-kpi-grid,
    .sales-kpi-grid,
    .sales-kpis,
    .kpi-list {
        grid-template-columns: 1fr;
    }
}

/* ---------- KPI Card: Single Source of Truth ---------- */
.kpi-card {
    position: relative;
    border-radius: 18px;
    padding: 12px 14px;
    background: radial-gradient(circle at 10% 0%, rgba(210, 75, 75, 0.22), transparent 55%), radial-gradient(circle at 120% 120%, rgba(148, 163, 184, 0.22), transparent 60%), linear-gradient(145deg, #111827, #020617);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75), inset 0 0 0 1px rgba(15, 23, 42, 0.65);
    overflow: hidden;
    color: #e5e7eb;
}

/* Aliase – damit dein Markup unverändert bleiben kann */
.kpi-box,
.kpi-list-row {
    /* identisch zu .kpi-card */
    position: relative;
    border-radius: 18px;
    padding: 12px 14px;
    background: radial-gradient(circle at 10% 0%, rgba(210, 75, 75, 0.22), transparent 55%), radial-gradient(circle at 120% 120%, rgba(148, 163, 184, 0.22), transparent 60%), linear-gradient(145deg, #111827, #020617);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75), inset 0 0 0 1px rgba(15, 23, 42, 0.65);
    overflow: hidden;
    color: #e5e7eb;
}

/* KPI Typo (global für KPI-Module) */
.kpi-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 2px;
}

.kpi-value {
    font-size: 18px;
    font-weight: 800;
    color: #f9fafb;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

    .kpi-value.emphasis {
        font-size: 20px;
    }

.kpi-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* KPI Liste rechts: du hattest "Zeilen" – jetzt Cards -> Innenlayout minimal aufräumen */
.kpi-list-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

/* ---------- CV-Rate: Vereinheitlichung (cv-* UND cv-rate-*) ---------- */

/* Wrapper: du nutzt .cv-box, deine CSS hatte .cv-rate-box */
.cv-box,
.cv-rate-box {
    margin-top: 0.75rem;
    padding: 0.9rem 1.0rem 0.95rem;
    border-radius: 18px;
    background: radial-gradient(circle at 10% 0%, rgba(210, 75, 75, 0.18), transparent 55%), radial-gradient(circle at 120% 120%, rgba(148, 163, 184, 0.20), transparent 55%), linear-gradient(145deg, #020617, #020617);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
}

/* Titel: .cv-title (Markup) + .cv-rate-title (alt) */
.cv-title,
.cv-rate-title {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.55rem;
}

/* Zeilenlayout: dein Markup ist .cv-row */
.cv-row {
    display: grid;
    grid-template-columns: 120px 1fr 70px;
    align-items: center;
    gap: 10px;
    padding: 0.35rem 0;
}

/* Labels/Values: du hast .cv-label/.cv-val und alt .cv-value */
.cv-label {
    font-size: 0.86rem;
    font-weight: 650;
    color: #e5e7eb;
}

.cv-val,
.cv-value {
    font-size: 0.80rem;
    opacity: 0.85;
    text-align: right;
}

/* Bar: du nutzt .cv-bar + .cv-fill; alt war .cv-bar-fill */
.cv-bar {
    position: relative;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #020617, #111827);
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

/* Fill – beide Namen unterstützen */
.cv-fill,
.cv-bar-fill {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    transition: width 0.25s ease-out;
}

    /* Farb-Levels:
   - NEU (dein Code): class auf .cv-fill (z.B. "cv-low")
   - ALT: class auf .cv-item (z.B. ".cv-item.cv-low .cv-bar-fill")
*/
    .cv-fill.cv-low,
    .cv-item.cv-low .cv-bar-fill {
        background: linear-gradient(90deg, #7f1d1d, #f97373);
        box-shadow: 0 0 12px rgba(248, 113, 113, 0.7);
    }

    .cv-fill.cv-mid,
    .cv-item.cv-mid .cv-bar-fill {
        background: linear-gradient(90deg, #78350f, #facc15);
        box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
    }

    .cv-fill.cv-high,
    .cv-item.cv-high .cv-bar-fill {
        background: linear-gradient(90deg, #14532d, #22c55e);
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
    }

/* Footer */
.cv-foot {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    opacity: 0.9;
}

/* ---------- Tabellen im Controlling: leaderboard + forecast ohne Bootstrap-Look ---------- */
.table.leaderboard,
.table.forecast {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,0.14);
    box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}

    .table.leaderboard thead tr,
    .table.forecast thead tr {
        background: linear-gradient(135deg, #17171d, #22232b);
    }

    .table.leaderboard thead th,
    .table.forecast thead th {
        padding: 10px 12px;
        color: #f5f5f5 !important;
        font-weight: 750;
        font-size: 0.78rem;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(0,0,0,0.65);
        white-space: nowrap;
    }

    .table.leaderboard tbody td,
    .table.forecast tbody td {
        padding: 9px 12px;
        color: #0b1220;
        border-bottom: 1px solid rgba(15,23,42,0.08);
        background: #ffffff;
    }

    .table.leaderboard tbody tr:nth-child(even) td,
    .table.forecast tbody tr:nth-child(even) td {
        background: #f9fafb;
    }

    .table.leaderboard tbody tr:hover td,
    .table.forecast tbody tr:hover td {
        background: #f3f4f6;
    }

/* =========================================================
   CONTROLLING – Verlauf / Charts
   ========================================================= */

.forecast-card {
    overflow: hidden;
}

.forecast-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

    .forecast-head h4 {
        color: #1b2430;
        font-weight: 800;
    }

.forecast-sub {
    color: #5b6474;
    font-size: 0.92rem;
    margin-top: 4px;
    font-weight: 500;
}

.forecast-chart-grid.two-up {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.forecast-panel {
    border: 1px solid rgba(120,125,140,0.22);
    border-radius: 18px;
    background: rgba(255,255,255,0.02);
    padding: 14px 14px 10px;
    min-width: 0;
}

    .forecast-panel.compact {
        padding: 14px 14px 10px;
    }

.forecast-panel-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.forecast-svg {
    width: 100%;
    height: 320px;
    display: block;
}

    .forecast-svg.compact {
        height: 250px;
    }

.forecast-grid-line {
    stroke: rgba(140, 148, 165, 0.20);
    stroke-width: 1;
}

.forecast-axis-line {
    stroke: rgba(140, 148, 165, 0.34);
    stroke-width: 1,2;
}

.forecast-axis-label {
    fill: #5b6474;
    font-size: 13px;
    font-weight: 700;
}

.forecast-axis-label-y {
    fill: #4f5868;
    font-size: 12px;
    font-weight: 700;
}

.forecast-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.forecast-line-total {
    stroke: #ee946f;
}

.forecast-line-active {
    stroke: #4f8fe6;
}

.forecast-dot {
    stroke: #f7f8fa;
    stroke-width: 2;
}

.forecast-dot-total {
    fill: #ee946f;
}

.forecast-dot-active {
    fill: #4f8fe6;
}

.forecast-bar {
    opacity: 0.95;
}

.forecast-bar-entry {
    fill: #ee946f;
}

.forecast-bar-exit {
    fill: #4f8fe6;
}

.forecast-bar-value {
    fill: #1c2330;
    font-size: 13px;
    font-weight: 800;
}

.forecast-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}

.forecast-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #334155;
    font-weight: 700;
}

.forecast-legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

    .forecast-legend-swatch.total {
        background: #ee946f;
    }

    .forecast-legend-swatch.active {
        background: #4f8fe6;
    }

    .forecast-legend-swatch.entry {
        background: #ee946f;
    }

    .forecast-legend-swatch.exit {
        background: #4f8fe6;
    }

@media (max-width: 1100px) {
    .forecast-chart-grid.two-up {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CONTROLLING – Eintritte / Austritte als Listenansicht
   ========================================================= */

.movement-list {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.movement-row {
    display: grid;
    grid-template-columns: 90px repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(120,125,140,0.18);
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
}

.movement-kw {
    font-weight: 800;
    color: #1f2937;
    font-size: 0.95rem;
}

.movement-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.55);
}

    .movement-stat.entry {
        border-left: 4px solid #ee946f;
    }

    .movement-stat.exit {
        border-left: 4px solid #4f8fe6;
    }

    .movement-stat.saldo.pos {
        border-left: 4px solid #22c55e;
    }

    .movement-stat.saldo.neg {
        border-left: 4px solid #ef4444;
    }

    .movement-stat.saldo.neu {
        border-left: 4px solid #94a3b8;
    }

.movement-label {
    font-size: 0.84rem;
    color: #5b6474;
    font-weight: 600;
}

.movement-value {
    font-size: 1rem;
    color: #1c2330;
    font-weight: 800;
}

@media (max-width: 1100px) {
    .movement-row {
        grid-template-columns: 1fr;
    }

    .movement-kw {
        margin-bottom: 2px;
    }
}
/* ======================================================================
   CONTROLLING – Leistung nach Bereich (Tabs + Filter + Bars)
   -> ans ENDE der app.css
   ====================================================================== */

/* ---- Tabs: Premium-Pills (wie dein alter Stil, nur sauber ins Theme) ---- */
.area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 10px;
}

    .area-tabs .tab {
        appearance: none;
        border: 1px solid rgba(15,23,42,0.16);
        background: rgba(255,255,255,0.78);
        color: #0b1220;
        border-radius: 999px;
        padding: 6px 12px;
        font-weight: 850;
        font-size: 0.85rem;
        box-shadow: 0 10px 22px rgba(15,23,42,0.06);
        cursor: pointer;
        transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    }

        .area-tabs .tab:hover {
            transform: translateY(-1px);
            background: rgba(255,255,255,0.92);
            border-color: rgba(15,23,42,0.22);
            box-shadow: 0 14px 28px rgba(15,23,42,0.08);
        }

        .area-tabs .tab.active {
            background: rgba(210,75,75,0.10);
            border-color: rgba(210,75,75,0.45);
        }

/* ---- Toolbar: Filter + Meta ---- */
.lb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 2px 0 10px;
}

/* Meta rechts: unauffällig */
.lb-meta {
    display: flex;
    gap: 10px;
    font-weight: 850;
    font-size: 0.82rem;
    color: rgba(15,23,42,0.62);
}

/* ---- Suche: im Stil deiner Inputs (hell, aber premium) ---- */
.lb-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(15,23,42,0.16);
    box-shadow: 0 10px 22px rgba(15,23,42,0.06);
}

.lb-search-ico {
    opacity: 0.7;
    font-size: 0.9rem;
    transform: translateY(0.5px);
}

.lb-search-input {
    width: 240px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0b1220;
    font-weight: 800;
    font-size: 0.88rem;
}

    .lb-search-input::placeholder {
        color: rgba(15,23,42,0.50);
        font-weight: 750;
    }

.lb-clear {
    appearance: none;
    border: 1px solid rgba(210,75,75,0.35);
    background: rgba(210,75,75,0.10);
    color: #7f1d1d;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    font-weight: 950;
    cursor: pointer;
    line-height: 1;
}

    .lb-clear:hover {
        background: rgba(210,75,75,0.14);
        border-color: rgba(210,75,75,0.50);
    }

/* ======================================================================
   CONTROLLING – Leistung nach Bereich (FINAL DARK VERSION)
   -> ans ENDE der app.css
   ====================================================================== */


/* ============================================================
   Bereich Tabs (dark pills – unverändert)
   ============================================================ */

.area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 10px;
}

    .area-tabs .tab {
        appearance: none;
        border-radius: 999px;
        padding: 6px 12px;
        font-weight: 850;
        font-size: 0.85rem;
        cursor: pointer;
        color: rgba(245,245,245,0.92);
        background: linear-gradient(180deg, rgba(8,10,16,0.92), rgba(6,8,12,0.88));
        border: 1px solid rgba(148,163,184,0.18);
        box-shadow: 0 10px 24px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.08);
        transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
    }

        .area-tabs .tab:hover {
            transform: translateY(-1px);
            border-color: rgba(148,163,184,0.28);
            background: linear-gradient(180deg, rgba(10,12,18,0.94), rgba(8,10,14,0.90));
        }

        .area-tabs .tab.active {
            border-color: rgba(210,75,75,0.55);
            background: radial-gradient(circle at 12% 0%, rgba(210,75,75,0.20), transparent 60%), linear-gradient(180deg, rgba(10,12,18,0.96), rgba(8,10,14,0.92));
        }


/* ============================================================
   Toolbar / Meta
   ============================================================ */

.lb-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 10px;
}

/* Meta Text (Ø) schwarz */
.lb-meta {
    display: flex;
    gap: 12px;
    font-weight: 900;
    font-size: 0.85rem;
    color: #111827;
}


/* ============================================================
   Suche – HELL (wie gewünscht)
   ============================================================ */

.lb-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #1f2937;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.lb-search-ico {
    color: #374151;
    font-size: 0.9rem;
}

.lb-search-input {
    width: 240px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #111827;
    font-weight: 800;
    font-size: 0.88rem;
}

    .lb-search-input::placeholder {
        color: #6b7280;
        font-weight: 700;
    }

.lb-clear {
    appearance: none;
    border: 1px solid #111827;
    background: #111827;
    color: #ffffff;
    border-radius: 999px;
    width: 26px;
    height: 26px;
    font-weight: 950;
    cursor: pointer;
    line-height: 1;
}

    .lb-clear:hover {
        background: #000000;
    }



/* ============================================================
   Leaderboard Rows (Dark Cards wie KPI/CV)
   ============================================================ */

.lb {
    margin-top: 6px;
}

.lb-row {
    display: grid;
    grid-template-columns: 64px 1.2fr 2.2fr 64px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 16px;
    background: radial-gradient(circle at 10% 0%, rgba(210,75,75,0.10), transparent 55%), radial-gradient(circle at 120% 120%, rgba(148,163,184,0.12), transparent 60%), linear-gradient(145deg, #111827, #020617);
    border: 1px solid rgba(148,163,184,0.22);
    box-shadow: 0 18px 40px rgba(15,23,42,0.85), inset 0 0 0 1px rgba(15,23,42,0.65);
    margin-bottom: 10px;
}

    .lb-row:hover {
        border-color: rgba(148,163,184,0.30);
        box-shadow: 0 22px 46px rgba(15,23,42,0.95), inset 0 0 0 1px rgba(15,23,42,0.70);
    }


/* Rank */
.lb-rank {
    font-weight: 950;
    font-size: 0.84rem;
    color: rgba(248,250,252,0.92);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 999px;
    padding: 4px 10px;
    width: fit-content;
}


/* Name */
.lb-name {
    font-weight: 900;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Bar Track */
.lb-bar {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, #020617, #111827);
    box-shadow: inset 0 0 0 1px rgba(15,23,42,0.90);
}


/* Bar Fill – Timebase Accent */
.lb-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient( 90deg, rgba(210,75,75,0.25) 0%, rgba(210,75,75,0.60) 55%, rgba(210,75,75,0.90) 100% );
    box-shadow: 0 0 12px rgba(210,75,75,0.28);
    transition: width 220ms ease;
}


/* Value rechts */
.lb-val {
    text-align: right;
    font-weight: 950;
    color: rgba(248,250,252,0.92);
    font-variant-numeric: tabular-nums;
}


/* Empty State */
.lb-empty {
    padding: 12px;
    border-radius: 14px;
    background: rgba(2,6,23,0.45);
    border: 1px dashed rgba(148,163,184,0.22);
    color: rgba(226,232,240,0.82);
    font-weight: 800;
}


/* ======================================================================
   AUTOCOMPLETE / SUGGEST – gemeinsam für Sales + Aufgaben
   ====================================================================== */

.tb-autocomplete {
    position: relative;
    width: 100%;
    isolation: isolate;
    z-index: 20;
}

    .tb-autocomplete > .tb-suggest {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: 100%;
        z-index: 2000;
        max-height: 220px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 6px 0;
        color: #f5f7fb;
        background: linear-gradient(180deg, rgba(5,10,22,0.98), rgba(6,12,26,0.98));
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 16px;
        box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
        box-sizing: border-box;
    }

        .tb-autocomplete > .tb-suggest::before {
            content: "";
            position: absolute;
            top: 0;
            left: 12px;
            right: 12px;
            height: 1px;
            background: rgba(255,255,255,0.08);
        }

.tb-suggest-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    user-select: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .tb-suggest-item:last-child {
        border-bottom: 0;
    }

    .tb-suggest-item:hover {
        background: rgba(255,255,255,0.05);
    }

.tb-suggest-name {
    font-weight: 700;
    color: #f4f7ff;
}

.tb-suggest-sub {
    font-size: 0.86rem;
    color: rgba(255,255,255,0.68);
    margin-top: 2px;
}

.tb-hint {
    margin-top: 6px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.tb-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    color: #f5f5f5;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

    .tb-sort-btn:hover {
        opacity: 1;
    }

.tb-sort-arrow {
    display: inline-block;
    font-size: 1rem;
    line-height: 1;
    color: #ffffff;
    font-weight: 900;
}

.tb-sort-icons {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.72rem;
    line-height: 1;
}

    .tb-sort-icons span {
        color: rgba(255, 255, 255, 0.35);
        transition: color 0.15s ease, transform 0.15s ease;
    }

        .tb-sort-icons span.active {
            color: #ffffff;
            transform: scale(1.05);
        }

/* ======================================================================
   NEWS – Final Look (inkl. Dashboard Layout)
   ====================================================================== */
.tb-news-toolbar {
    align-items: center;
    gap: 10px;
}

.tb-card.tb-news-item {
    position: relative;
    background: #fff;
    border: 1px solid var(--tb-dark-border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 16px 40px rgba(15,23,42,0.08);
}

    .tb-card.tb-news-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 12px;
        bottom: 12px;
        width: 4px;
        border-radius: 4px;
        background: var(--tb-dark-soft);
    }

    .tb-card.tb-news-item.pinned::before {
        background: rgba(15,23,42,0.85);
    }

    .tb-card.tb-news-item.important::before {
        background: rgba(194,65,58,0.85);
    }

.news-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tb-dark);
}

.news-meta {
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--tb-grey);
}

.news-body {
    margin-top: 10px;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #020617;
    white-space: pre-wrap;
}

/* Dashboard Layout */
.news-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
}

.news-main {
    min-width: 0;
}

.news-side {
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media (min-width: 1101px) {
    .news-side {
        position: sticky;
        top: 86px;
    }
}

@media (max-width: 1100px) {
    .news-dashboard {
        grid-template-columns: 1fr;
    }

    .news-side {
        position: static;
    }
}

/* Sidebar widgets */
.news-widget {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.16);
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15,23,42,0.08);
    padding: 12px;
}

.news-catrow {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.14);
    background: rgba(15,23,42,0.04);
    cursor: pointer;
    font-weight: 800;
    text-align: left;
}

    .news-catrow:hover {
        background: rgba(15,23,42,0.06);
        border-color: rgba(15,23,42,0.22);
    }

.news-catcount {
    min-width: 34px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 8px;
    border: 1px solid rgba(15,23,42,0.16);
    background: rgba(15,23,42,0.08);
    font-size: .78rem;
    font-weight: 900;
    color: rgba(15,23,42,0.86);
}

.news-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.news-stat {
    border: 1px solid rgba(15,23,42,0.14);
    border-radius: 14px;
    background: rgba(15,23,42,0.03);
    padding: 12px 10px;
    text-align: center;
}

.news-stat-num {
    font-size: 1.25rem;
    font-weight: 900;
    color: rgba(15,23,42,0.92);
    line-height: 1;
}

.news-stat-label {
    margin-top: 4px;
    font-size: .75rem;
    color: rgba(30,41,59,0.70);
    font-weight: 800;
}

/* ======================================================================
   URLAUB – Lesbarkeit + Balken
   ====================================================================== */
.tb-vac-table,
.tb-vac-table td,
.tb-vac-table th {
    color: #e5e7eb;
}

.tb-vac-sticky-left {
    color: #e5e7eb;
}

.tb-vac-name {
    color: #f8fafc !important;
}

.tb-vac-meta,
.tb-vac-meta span,
.tb-vac-meta .tb-pill {
    color: #cbd5e1 !important;
}

.tb-vac-dayhead {
    color: #e5e7eb;
}

    .tb-vac-dayhead .tb-vac-dow {
        color: #94a3b8;
    }

.tb-pill {
    color: #e5e7eb;
    border: 1px solid rgba(148,163,184,.22);
    background: rgba(15,20,35,.55);
}

    .tb-pill.muted {
        opacity: .75;
    }

.tb-vac-blocktxt {
    color: #0b0f19;
    font-weight: 800;
}

.tb-vac-cell {
    padding: 4px 2px;
}

.tb-vac-block {
    height: 28px;
    width: 100%;
    border: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

    .tb-vac-block.start {
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }

    .tb-vac-block.end {
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .tb-vac-block:hover {
        filter: brightness(1.08);
    }

/* Entitlement Overlay */
.tb-vac-entbox {
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(15,20,35,.60);
}

.tb-vac-enthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tb-vac-enttitle {
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: .02em;
}

.tb-vac-entgrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
}

.tb-vac-entnote {
    grid-column: 1 / -1;
}

.tb-vac-entactions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ======================================================================
   VERTRIEBSLEITER (/vertrieb) – Premium v2 (KW/Year, KPI, Tabelle)
   Klassen: vl-*
   ====================================================================== */

.vl-wrap {
    --vl-text: #f6f7fb;
    --vl-muted: rgba(246,247,251,.78);
    --vl-stroke: rgba(148,163,184,.18);
    --vl-good: rgba(34,197,94,1);
    --vl-warn: rgba(245,158,11,1);
    --vl-alarm: rgba(239,68,68,1);
    --vl-info: rgba(59,130,246,1);
}

/* Falls du .vl-wrap nicht um die Seite legst: Variablen global fallback */
:root {
    --vl-text: #f6f7fb;
    --vl-muted: rgba(246,247,251,.78);
    --vl-stroke: rgba(148,163,184,.18);
    --vl-good: rgba(34,197,94,1);
    --vl-warn: rgba(245,158,11,1);
    --vl-alarm: rgba(239,68,68,1);
    --vl-info: rgba(59,130,246,1);
}

/* ----------------------------------------------------------------------
   Status / Fehler / Empty
   ---------------------------------------------------------------------- */

.vl-error {
    margin: .6rem 0 0 0;
    padding: .7rem .9rem;
    border-radius: 14px;
    border: 1px solid rgba(239,68,68,.45);
    background: rgba(239,68,68,.10);
    color: #ffe9e9;
    box-shadow: 0 14px 34px rgba(0,0,0,.28);
}

.vl-empty {
    color: var(--vl-muted);
    margin: .8rem 0 0 0;
}

/* ----------------------------------------------------------------------
   Toolbar
   ---------------------------------------------------------------------- */

.vl-toolbar {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    margin: .25rem 0 1rem 0;
}

.vl-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(180deg, rgba(8,10,16,.96), rgba(6,8,12,.92));
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
    font-size: .85rem;
    font-weight: 650;
    text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

.vl-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
    box-shadow: 0 0 0 3px rgba(255,255,255,.12);
}

/* Toggle Button (nutzt deine tb-btn-Klassen, wir veredeln nur) */
.tb-btn.vl-toggle,
.tb-btn.vl-toggle.ghost {
    background: linear-gradient(180deg, rgba(8,10,16,.92), rgba(6,8,12,.88)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #ffffff !important;
    font-weight: 750;
    text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

    .tb-btn.vl-toggle:hover {
        transform: translateY(-1px);
    }

.tb-btn.vl-filter-toggle,
.tb-btn.vl-filter-toggle.ghost {
    background: linear-gradient(180deg, rgba(8,10,16,.92), rgba(6,8,12,.88)) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: #ffffff !important;
    font-weight: 650;
    text-shadow: 0 1px 0 rgba(0,0,0,.55);
    box-shadow: 0 10px 24px rgba(0,0,0,.22);
}

    .tb-btn.vl-filter-toggle:hover,
    .tb-btn.vl-filter-toggle.ghost:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.22) !important;
        filter: brightness(1.03);
    }

/* ----------------------------------------------------------------------
   KPI Grid
   ---------------------------------------------------------------------- */

.vl-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .8rem;
    margin: .75rem 0 1rem 0;
}

/* zweite KPI Reihe darf minimal kompakter wirken */
.vl-kpi-row-2 .vl-kpi-card {
    min-height: 78px;
}

/* KPI Cards */
.vl-kpi-card {
    border-radius: 18px;
    padding: .85rem 1rem;
    border: 1px solid rgba(148,163,184,.16);
    background: radial-gradient(120% 160% at 12% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 45%), linear-gradient(180deg, rgba(9,12,20,.94), rgba(8,10,16,.86));
    box-shadow: 0 20px 60px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.07);
    color: var(--vl-text);
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .16rem;
}

.vl-kpi-title {
    font-size: .70rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: rgba(246,247,251,.82);
    margin-bottom: .10rem;
}

.vl-kpi-value {
    font-size: 1.18rem;
    font-weight: 850;
    color: #ffffff;
    line-height: 1.12;
    font-variant-numeric: tabular-nums;
}

.vl-kpi-sub {
    font-size: .80rem;
    color: rgba(246,247,251,.90);
    font-weight: 550;
    margin-top: .06rem;
    font-variant-numeric: tabular-nums;
}

/* KPI Card Zustände (wenn du ClassRate/ClassProductivity auf die Card setzt) */
.vl-kpi-card.good {
    border-color: rgba(34,197,94,.28);
}

.vl-kpi-card.warn {
    border-color: rgba(245,158,11,.30);
}

.vl-kpi-card.alarm {
    border-color: rgba(239,68,68,.32);
}

.vl-kpi-card.info {
    border-color: rgba(59,130,246,.26);
}

/* ----------------------------------------------------------------------
   Tabelle / Wrap
   ---------------------------------------------------------------------- */

.vl-table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--vl-stroke);
    background: linear-gradient(180deg, rgba(10,12,18,.78), rgba(8,10,16,.68));
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

    /* Table reset */
    .vl-table-wrap .tb-table {
        margin: 0 !important;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

        .vl-table-wrap .tb-table th,
        .vl-table-wrap .tb-table td {
            padding: .55rem .65rem;
            border-bottom: 1px solid rgba(255,255,255,.06);
            vertical-align: middle;
        }

        /* Header sticky */
        .vl-table-wrap .tb-table thead th {
            position: sticky;
            top: 0;
            z-index: 5;
            background: linear-gradient(180deg, #0b1220, #070b13) !important;
            border-bottom: 1px solid rgba(255,255,255,.10) !important;
            color: rgba(246,247,251,.95) !important;
            box-shadow: 0 10px 24px rgba(0,0,0,.30);
            font-size: .82rem;
            letter-spacing: .02em;
            white-space: nowrap;
        }

/* Numeric cells */
.vl-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vl-cell {
    white-space: nowrap;
}

/* Vertical separators (du nutzt vl-sep-left an einigen Spalten) */
.vl-sep-left {
    border-left: 1px solid rgba(148,163,184,.14) !important;
}

/* ----------------------------------------------------------------------
   Sticky first column (NL) – FIX: lesbar + Accent-Bar (ohne Markup-Änderung)
   ---------------------------------------------------------------------- */

/* Sticky first col base */
.vl-table-wrap .tb-table th:first-child,
.vl-table-wrap .tb-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 6;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
}

/* Sticky header first cell */
.vl-table-wrap .tb-table thead th:first-child {
    background: linear-gradient(180deg, #0b1220, #070b13) !important;
    border-right: 1px solid rgba(148,163,184,.12);
}

/* Sticky body first cell (NL) – kontrastreicher */
.vl-table-wrap .tb-table tbody td:first-child {
    background: linear-gradient(180deg, rgba(18,22,32,.96), rgba(10,12,18,.92)) !important;
    color: rgba(246,247,251,.92) !important;
    border-right: 1px solid rgba(148,163,184,.16) !important;
    padding-left: 14px; /* Platz für Accent-Bar */
    text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

    /* Accent-Bar links (Default neutral) */
    .vl-table-wrap .tb-table tbody td:first-child::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        border-radius: 3px;
        background: rgba(148,163,184,.35);
        opacity: .95;
    }

/* Accent-Bar abhängig vom Row-Status (du hast vl-row-alarm / vl-row-warn) */
.vl-table-wrap .tb-table tbody tr.vl-row-alarm td:first-child::before {
    background: rgba(239,68,68,.95);
}

.vl-table-wrap .tb-table tbody tr.vl-row-warn td:first-child::before {
    background: rgba(245,158,11,.95);
}

/* Hover: NL-Spalte leicht heller für Lesbarkeit */
.vl-table-wrap .tb-table tbody tr:hover td:first-child {
    background: linear-gradient(180deg, rgba(28,34,48,.96), rgba(14,18,28,.92)) !important;
}

/* ----------------------------------------------------------------------
   Pills in table
   ---------------------------------------------------------------------- */

.vl-table-wrap .vl-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    min-width: 2.8rem;
    padding: .18rem .60rem;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.16) !important;
    background: rgba(255,255,255,.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 0 rgba(0,0,0,.04) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: rgba(10,12,16,.92) !important;
    text-shadow: none !important;
}

.vl-table-wrap .vl-mini {
    color: rgba(10,12,16,.80) !important;
    font-weight: 750 !important;
    font-size: .74rem !important;
    letter-spacing: .01em !important;
}

.vl-table-wrap .vl-pill.good {
    background: rgba(34,197,94,.14) !important;
    border-color: rgba(34,197,94,.34) !important;
}

.vl-table-wrap .vl-pill.warn {
    background: rgba(245,158,11,.16) !important;
    border-color: rgba(245,158,11,.36) !important;
}

.vl-table-wrap .vl-pill.info {
    background: rgba(59,130,246,.14) !important;
    border-color: rgba(59,130,246,.34) !important;
}

.vl-table-wrap .vl-pill.alarm {
    background: rgba(239,68,68,.16) !important;
    border-color: rgba(239,68,68,.40) !important;
}

/* starke Pill (Produktivität) */
.vl-table-wrap .vl-pill-strong {
    padding: .22rem .70rem;
    font-weight: 850;
}

/* ----------------------------------------------------------------------
   Row highlighting (dein ClassRow setzt: vl-row-alarm/vl-row-warn + optional vl-attn)
   ---------------------------------------------------------------------- */

.vl-table-wrap .tb-table tbody tr.vl-row-warn td {
    background-image: linear-gradient(90deg, rgba(245,158,11,.07), rgba(245,158,11,0));
}

.vl-table-wrap .tb-table tbody tr.vl-row-alarm td {
    background-image: linear-gradient(90deg, rgba(239,68,68,.08), rgba(239,68,68,0));
}

/* "Attention" subtil – nicht blinkend */
.vl-table-wrap .tb-table tbody tr.vl-attn td {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
/* =========================================================
   VL – Branch Filter kompakt
   ========================================================= */

.vl-filter-panel.compact {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 14px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(18,22,30,.94), rgba(12,16,24,.92));
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
}

.vl-filter-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.vl-filter-title {
    font-size: .92rem;
    font-weight: 700;
    color: #f3f6fb;
    line-height: 1.2;
}

.vl-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .vl-filter-actions .tb-btn.sm {
        min-height: 32px;
        padding: 0 12px;
        font-size: .84rem;
        border-radius: 10px;
    }

.vl-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.vl-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    color: #dbe4f2;
    font-size: .88rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}

    .vl-filter-chip:hover {
        background: rgba(255,255,255,.07);
        border-color: rgba(255,255,255,.10);
    }

    .vl-filter-chip.off {
        opacity: .72;
    }

    .vl-filter-chip input[type="checkbox"] {
        margin: 0;
        transform: scale(.92);
    }

.vl-filter-note.compact {
    margin-top: 8px;
    font-size: .80rem;
    color: #98a8bf;
    line-height: 1.3;
}


/* ======================================================================
   Login Styles
   ====================================================================== */

.tb-login-page {
    position: relative;
    min-height: 100vh;
    padding: 3rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #272d3f 0, #050608 45%, #020308 100%);
    color: #f5f5f5;
    overflow: hidden;
    box-sizing: border-box;
}

/* dekorative Orbits */

.tb-login-orbit {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.25;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(210, 75, 75, 0.9), rgba(148, 163, 184, 0.9));
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    animation: tb-orbit-float 16s ease-in-out infinite alternate;
}

.tb-login-orbit-top {
    width: 520px;
    height: 220px;
    top: -80px;
    right: -120px;
}

.tb-login-orbit-bottom {
    width: 580px;
    height: 260px;
    bottom: -120px;
    left: -160px;
    animation-delay: 4s;
}

@keyframes tb-orbit-float {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
        opacity: 0.18;
    }

    50% {
        transform: translate3d(10px, -6px, 0) rotate(3deg);
        opacity: 0.28;
    }

    100% {
        transform: translate3d(-8px, 8px, 0) rotate(-3deg);
        opacity: 0.22;
    }
}

.tb-login-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 2.3rem 2.2rem 2rem;
    border-radius: 24px;
    background: linear-gradient(145deg, #111827, #05060b);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1;
    overflow: hidden;
    box-sizing: border-box;
}

    .tb-login-card::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: radial-gradient(circle at 0 0, rgba(210, 75, 75, 0.35), transparent 60%), radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.35), transparent 60%);
        mix-blend-mode: screen;
        opacity: 0.4;
        pointer-events: none;
    }

.tb-login-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.tb-login-header-logo-only {
    justify-content: center;
    width: 100%;
}

.tb-login-logo {
    width: 210px;
    height: 210px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9));
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 6px;
    transform: translateY(0);
    transition: transform 200ms ease-out, filter 200ms ease-out;
}

.tb-login-card:hover .tb-login-logo {
    transform: translateY(-2px) scale(1.02);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 1));
}

.tb-login-headline {
    margin: 0 0 0.2rem;
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.tb-login-subtitle {
    margin: 0 0 1.3rem;
    font-size: 0.9rem;
    color: #a0a4b6;
    position: relative;
    z-index: 1;
}

.tb-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    position: relative;
    z-index: 1;
}

.tb-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

    .tb-form-row label {
        font-size: 0.85rem;
        opacity: 0.9;
    }

.tb-input-wrapper {
    position: relative;
    border-radius: 999px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(210, 75, 75, 0.7), rgba(148, 163, 184, 0.7));
    opacity: 0.6;
    transition: opacity 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

    .tb-input-wrapper:hover {
        opacity: 0.85;
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
    }

    .tb-input-wrapper input {
        width: 100%;
        border: none;
        outline: none;
        border-radius: 999px;
        padding: 0.55rem 0.9rem;
        font-size: 0.95rem;
        background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.06), #020617);
        color: #f5f5f5;
        box-sizing: border-box;
    }

    .tb-input-wrapper:focus-within {
        opacity: 1;
        box-shadow: 0 0 0 1px #000, 0 0 0 1px rgba(210, 75, 75, 0.4), 0 10px 26px rgba(0, 0, 0, 1);
        transform: translateY(-1px);
    }

    .tb-input-wrapper input::placeholder {
        color: rgba(226, 232, 240, 0.5);
    }

.tb-form-row-inline {
    margin-top: 0.4rem;
}

.tb-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    gap: 0.55rem;
    font-size: 0.85rem;
    user-select: none;
}

    .tb-checkbox input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.tb-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.8);
    background: radial-gradient(circle at 0 0, rgba(148, 163, 184, 0.15), #020617);
    box-shadow: 0 0 0 1px #020617;
    transition: background 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
    position: relative;
}

    .tb-checkbox-box::after {
        content: "";
        position: absolute;
        inset: 3px;
        border-radius: 4px;
        background: transparent;
        transform: scale(0.4);
        opacity: 0;
        transition: transform 150ms ease-out, opacity 150ms ease-out;
    }

.tb-checkbox input:checked + .tb-checkbox-box {
    border-color: rgba(210, 75, 75, 0.95);
    background: linear-gradient(135deg, #d24b4b, #f97373);
    box-shadow: 0 0 0 1px #020617, 0 0 16px rgba(210, 75, 75, 0.8);
}

    .tb-checkbox input:checked + .tb-checkbox-box::after {
        background: #020617;
        opacity: 1;
        transform: scale(1);
    }

.tb-checkbox-label {
    opacity: 0.9;
}

.tb-login-btn {
    margin-top: 0.35rem;
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #d24b4b, #f97373);
    color: #f9fafb;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.95), 0 0 18px rgba(210, 75, 75, 0.7);
    cursor: pointer;
    transition: transform 140ms ease-out, box-shadow 140ms ease-out, filter 140ms ease-out;
}

    .tb-login-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 38px rgba(0, 0, 0, 1), 0 0 24px rgba(210, 75, 75, 0.9);
        filter: brightness(1.02);
    }

    .tb-login-btn:active {
        transform: translateY(0);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 1), 0 0 10px rgba(210, 75, 75, 0.7);
    }

.tb-error {
    margin: 0 0 0.8rem;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.4);
    color: #fecaca;
    font-size: 0.85rem;
}

.tb-login-footer {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

    .tb-login-footer span {
        opacity: 0.95;
    }

@media (max-width: 480px) {
    .tb-login-card {
        padding: 2rem 1.6rem 1.8rem;
    }
}
/* ======================================================================
   ACCOUNT – "Mein Konto" (premium dark, neutral, accent=--tb-accent)
   Klassen: acc-*
   ====================================================================== */

.acc-muted {
    color: var(--tb-text-dim);
    font-size: 0.95rem;
    margin: 0;
}

/* Layout */
.acc-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.35fr;
    gap: 14px;
    align-items: start;
    margin-top: 6px;
}

@media (max-width: 980px) {
    .acc-grid {
        grid-template-columns: 1fr;
    }
}

/* Panels / Cards */
.acc-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.035) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(120,125,140,0.38);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.acc-panel-head {
    padding: 14px 16px 12px 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.015) 100%);
    border-bottom: 1px solid rgba(120,125,140,0.32);
    position: relative;
}

    .acc-panel-head::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background: var(--tb-accent);
        opacity: 0.85;
    }

.acc-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tb-text);
    letter-spacing: 0.2px;
    line-height: 1.2;
    padding-left: 6px;
}

.acc-sub {
    font-size: 0.86rem;
    color: var(--tb-text-dim);
    margin-top: 3px;
    padding-left: 6px;
}

/* Key/Value (Profil) */
.acc-kv {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px 12px;
    padding: 14px 16px 16px 16px;
}

@media (max-width: 520px) {
    .acc-kv {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

.acc-k {
    color: rgba(225, 231, 239, 0.72);
    font-size: 0.86rem;
}

.acc-v {
    color: var(--tb-text);
    font-size: 0.95rem;
    word-break: break-word;
}

/* Pill (Rolle) */
.acc-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(210, 75, 75, 0.55);
    background: rgba(210, 75, 75, 0.10);
    color: #f7f7f7;
    font-weight: 650;
    font-size: 0.86rem;
    letter-spacing: 0.2px;
}

    .acc-pill::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--tb-accent);
        box-shadow: 0 0 0 3px rgba(210, 75, 75, 0.18);
    }

/* Alerts */
.acc-alert {
    margin: 12px 16px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(120,125,140,0.35);
    background: rgba(255,255,255,0.03);
    color: var(--tb-text);
    box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.acc-alert-error {
    border-color: rgba(210, 75, 75, 0.55);
    background: rgba(210, 75, 75, 0.10);
    color: #ffe9e9;
}

.acc-alert-ok {
    border-color: rgba(60, 179, 113, 0.55);
    background: rgba(60, 179, 113, 0.10);
    color: #eafff1;
}

/* Validation */
.acc-valsum {
    margin: 10px 16px 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(210, 75, 75, 0.45);
    background: rgba(210, 75, 75, 0.08);
    color: #ffe9e9;
}

    .acc-valsum ul {
        margin: 0;
        padding-left: 18px;
    }

.acc-val {
    display: block;
    margin-top: 6px;
    color: #ffd2d2;
    font-size: 0.85rem;
}

/* Form */
.acc-form {
    padding: 14px 16px 16px 16px;
    display: grid;
    grid-template-columns: 1fr;
}

.acc-label {
    margin-top: 10px;
    margin-bottom: 6px;
    color: rgba(225, 231, 239, 0.76);
    font-size: 0.88rem;
}

.acc-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(120,125,140,0.42);
    background: rgba(10, 12, 16, 0.55);
    color: var(--tb-text);
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25);
    transition: border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

    .acc-input::placeholder {
        color: rgba(160, 164, 182, 0.7);
    }

    .acc-input:focus {
        border-color: rgba(210, 75, 75, 0.75);
        box-shadow: 0 0 0 3px rgba(210, 75, 75, 0.18);
    }

    .acc-input:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* Actions */
.acc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

/* Optional: wenn tb-btn existiert, hier nur "Feintuning" fürs Panel */
.acc-panel .tb-btn.primary {
    box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

    .acc-panel .tb-btn.primary:disabled,
    .acc-panel .tb-btn.ghost:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Hint */
.acc-hint {
    margin-top: 10px;
    color: rgba(160, 164, 182, 0.85);
    font-size: 0.85rem;
    line-height: 1.35;
}
/* ======================================================================
   ACCOUNT – Kontrast-Fix (Panels dunkel + Texte lesbar)
   -> ans ENDE der CSS Datei
   ====================================================================== */

/* Panels wirklich "dark" erzwingen (auch wenn TbCard/Bootstrap hell ist) */
.acc-panel {
    background: linear-gradient(180deg, rgba(21,24,32,0.96) 0%, rgba(12,14,19,0.94) 100%) !important;
    border: 1px solid rgba(120,125,140,0.55) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.55) !important;
}

.acc-panel-head {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.03) 60%, rgba(255,255,255,0.02) 100%) !important;
    border-bottom: 1px solid rgba(120,125,140,0.45) !important;
}

/* Headline/Sub mehr Kontrast */
.acc-title {
    color: #f3f4f6 !important;
}

.acc-sub {
    color: rgba(226,232,240,0.78) !important;
}

/* Key/Value Kontrast hoch */
.acc-k {
    color: rgba(226,232,240,0.72) !important;
}

.acc-v {
    color: #f8fafc !important;
}

/* Labels in der Form (waren fast unsichtbar) */
.acc-label {
    color: rgba(226,232,240,0.78) !important;
}

/* Inputs: nicht dieses massive Grau, sondern dark-surface + klarer Rand */
.acc-input {
    background: rgba(8,10,14,0.72) !important;
    color: #f8fafc !important;
    border: 1px solid rgba(120,125,140,0.55) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.35) !important;
}

    .acc-input:focus {
        border-color: rgba(210, 75, 75, 0.78) !important;
        box-shadow: 0 0 0 3px rgba(210, 75, 75, 0.18) !important;
    }

    /* Placeholder sichtbar aber nicht grell */
    .acc-input::placeholder {
        color: rgba(148,163,184,0.70) !important;
    }

/* Validation/Alert: Text kräftiger */
.acc-val {
    color: #fecaca !important;
}

.acc-alert {
    background: rgba(0,0,0,0.16) !important;
    color: #f8fafc !important;
}

/* Pill minimal kräftiger */
.acc-pill {
    color: #fff !important;
    border-color: rgba(210, 75, 75, 0.65) !important;
    background: rgba(210, 75, 75, 0.14) !important;
}
/* ======================================================================
   MONITORING – Premium (DIV-Table, passt zu tb-row/tb-head Markup)
   -> ans ENDE der app.css
   ====================================================================== */

.mon-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.mon-actions {
    display: flex;
    gap: 8px;
}

/* Branch Chips */
.mon-branchbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 6px;
}

.mon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(15,23,42,0.16);
    border-radius: 999px;
    background: rgba(15,23,42,0.03);
    font-size: 0.85rem;
}

    .mon-chip .k {
        color: rgba(15,23,42,0.65);
        font-weight: 700;
    }

    .mon-chip .v {
        font-weight: 900;
        padding: 2px 9px;
        border-radius: 999px;
        background: rgba(15,23,42,0.06);
        border: 1px solid rgba(15,23,42,0.14);
        color: rgba(15,23,42,0.86);
    }

/* ==============================
   DIV-Tabelle (tb-table / tb-row)
   ============================== */

.tb-table.mon-table {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.14);
    box-shadow: 0 12px 28px rgba(15,23,42,0.06);
}

    /* Kopfzeile */
    .tb-table.mon-table .tb-row.tb-head {
        display: grid;
        grid-template-columns: 120px 1.6fr 1fr 120px 120px;
        align-items: center;
        gap: 0;
        padding: 0;
        background: linear-gradient(135deg, #17171d, #22232b);
        border-bottom: 1px solid rgba(0,0,0,0.65);
    }

        /* Head cells */
        .tb-table.mon-table .tb-row.tb-head > div {
            padding: 10px 12px;
            color: #f5f5f5;
            font-weight: 800;
            font-size: 0.78rem;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            white-space: nowrap;
        }

    /* Datenzeilen */
    .tb-table.mon-table .tb-row:not(.tb-head) {
        display: grid;
        grid-template-columns: 120px 1.6fr 1fr 120px 120px;
        align-items: center;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid rgba(15,23,42,0.08);
        transition: background 0.12s ease, transform 0.06s ease;
    }

        /* Alternating rows */
        .tb-table.mon-table .tb-row:not(.tb-head):nth-child(even) {
            background: #f9fafb;
        }

        /* Hover */
        .tb-table.mon-table .tb-row:not(.tb-head):hover {
            background: #f3f4f6;
            transform: translateY(-1px);
        }

        /* Body cells */
        .tb-table.mon-table .tb-row:not(.tb-head) > div {
            padding: 10px 12px;
            color: #0b1220;
            font-size: 0.92rem;
            min-width: 0;
        }

    /* User fett, aber sauber abgeschnitten */
    .tb-table.mon-table .mon-user {
        font-weight: 900;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ==============================
   Status Pill
   ============================== */

.mon-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,0.18);
    background: rgba(15,23,42,0.03);
    font-size: 0.80rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    user-select: none;
    white-space: nowrap;
}

    .mon-status .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        box-shadow: 0 0 0 3px rgba(15,23,42,0.06);
    }

    /* LIVE / IDLE / OFFLINE */
    .mon-status.live {
        border-color: rgba(56,189,248,0.45);
        background: rgba(56,189,248,0.10);
        color: rgba(7,89,133,0.95);
    }

        .mon-status.live .dot {
            background: rgba(56,189,248,0.95);
        }

    .mon-status.idle {
        border-color: rgba(245,158,11,0.45);
        background: rgba(245,158,11,0.12);
        color: rgba(120,53,15,0.95);
    }

        .mon-status.idle .dot {
            background: rgba(245,158,11,0.95);
        }

    .mon-status.offline {
        border-color: rgba(239,68,68,0.45);
        background: rgba(239,68,68,0.10);
        color: rgba(127,29,29,0.95);
    }

        .mon-status.offline .dot {
            background: rgba(239,68,68,0.95);
        }

/* ==============================
   Responsive: auf schmalen Screens
   ============================== */
@media (max-width: 900px) {
    .tb-table.mon-table .tb-row.tb-head,
    .tb-table.mon-table .tb-row:not(.tb-head) {
        grid-template-columns: 110px 1fr;
        grid-auto-rows: auto;
    }

    /* Spalten umbrechen: wir lassen nur Status + User sichtbar, Rest wird darunter */
    .tb-table.mon-table .tb-row > div:nth-child(3),
    .tb-table.mon-table .tb-row > div:nth-child(4),
    .tb-table.mon-table .tb-row > div:nth-child(5) {
        grid-column: 2;
        padding-top: 2px;
        padding-bottom: 6px;
        font-size: 0.85rem;
        opacity: 0.85;
    }
}
.tb-btn.danger {
    background: #7a1f1f;
    border: 1px solid #a33434;
    color: #ffffff;
}

    .tb-btn.danger:hover {
        background: #a33434;
        border-color: #d14a4a;
    }

/* =========================================================
   DISPO – COLLAPSED COMPANY HEADER SUMMARY
   ========================================================= */

.tb-company-collapsed-summary {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: center;
    margin-top: .4rem;
}

.tb-company-collapsed-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 26px;
    padding: .28rem .62rem;
    border-radius: 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
    color: #1f2937;
    background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(244,246,249,.96) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255,255,255,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}

    .tb-company-collapsed-pill:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255,255,255,.92);
        border-color: rgba(15, 23, 42, 0.12);
    }

    .tb-company-collapsed-pill .tb-pill-label {
        font-weight: 700;
        opacity: .78;
        color: #475569;
    }

    .tb-company-collapsed-pill .tb-pill-value {
        font-weight: 800;
        color: #111827;
    }

    /* Umsatz – warm, hochwertig, ohne Blaustich */
    .tb-company-collapsed-pill.is-revenue {
        color: #241c1a;
        background: linear-gradient(135deg, rgba(255,252,248,.98) 0%, rgba(248,241,234,.98) 52%, rgba(242,232,226,.96) 100%);
        border-color: rgba(120, 72, 52, 0.14);
        box-shadow: 0 2px 8px rgba(70, 34, 24, 0.08), inset 0 1px 0 rgba(255,255,255,.92);
    }

        .tb-company-collapsed-pill.is-revenue .tb-pill-label {
            color: #8a4b35;
        }

        .tb-company-collapsed-pill.is-revenue .tb-pill-value {
            color: #2b211d;
        }

    /* Einsatz – neutral-dunkel statt hellblau */
    .tb-company-collapsed-pill.is-einsatz {
        background: linear-gradient(135deg, rgba(232, 241, 239, .98) 0%, rgba(214, 229, 225, .96) 100%);
        border-color: rgba(54, 94, 86, 0.16);
        box-shadow: 0 2px 6px rgba(41, 69, 63, 0.06), inset 0 1px 0 rgba(255,255,255,.90);
    }

        .tb-company-collapsed-pill.is-einsatz .tb-pill-label {
            color: #55726b;
        }

        .tb-company-collapsed-pill.is-einsatz .tb-pill-value {
            color: #243b36;
        }

    /* Urlaub */
    .tb-company-collapsed-pill.is-urlaub {
        background: linear-gradient(135deg, rgba(255,247,237,.98) 0%, rgba(254,215,170,.30) 100%);
        border-color: rgba(234, 88, 12, 0.18);
    }

        .tb-company-collapsed-pill.is-urlaub .tb-pill-label {
            color: #c2410c;
        }

    /* Krank */
    .tb-company-collapsed-pill.is-krank {
        background: linear-gradient(135deg, rgba(254,242,242,.98) 0%, rgba(252,165,165,.24) 100%);
        border-color: rgba(220, 38, 38, 0.18);
    }

        .tb-company-collapsed-pill.is-krank .tb-pill-label {
            color: #b91c1c;
        }

    /* Unbez. Urlaub */
    .tb-company-collapsed-pill.is-uub {
        background: linear-gradient(135deg, rgba(250,245,255,.98) 0%, rgba(221,214,254,.34) 100%);
        border-color: rgba(124, 58, 237, 0.18);
    }

        .tb-company-collapsed-pill.is-uub .tb-pill-label {
            color: #6d28d9;
        }

    /* Unbez. Krank */
    .tb-company-collapsed-pill.is-kub {
        background: linear-gradient(135deg, rgba(255,241,242,.98) 0%, rgba(253,164,175,.28) 100%);
        border-color: rgba(225, 29, 72, 0.18);
    }

        .tb-company-collapsed-pill.is-kub .tb-pill-label {
            color: #be123c;
        }

    /* Frei */
    .tb-company-collapsed-pill.is-frei {
        background: linear-gradient(135deg, rgba(248,250,252,.98) 0%, rgba(226,232,240,.70) 100%);
        border-color: rgba(100, 116, 139, 0.16);
    }

        .tb-company-collapsed-pill.is-frei .tb-pill-label {
            color: #475569;
        }

/* eingeklappter Hinweistext */
.tb-company-collapsed-note {
    margin-top: .8rem;
    font-size: .88rem;
    color: #6b7280;
    opacity: .95;
}

/* etwas kompakter auf kleineren Auflösungen */
@media (max-width: 1280px) {
    .tb-company-collapsed-pill {
        padding: .24rem .52rem;
        font-size: .74rem;
        min-height: 24px;
    }
}
/* =========================================================
   DISPO – FREE EMPLOYEE RICH ROWS
   ========================================================= */

.tb-emp-list .tb-free-emp.tb-free-emp-rich {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .6rem .65rem;
}

.tb-emp-list .tb-free-emp-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .12rem;
}

.tb-emp-list .tb-free-emp .tb-emp-name {
    display: block;
    width: 100%;
    min-width: 0;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.15;
    color: #111827;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tb-emp-list .tb-free-emp-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .06rem;
    width: 100%;
    min-width: 0;
    margin-top: .08rem;
    font-size: .78rem;
    line-height: 1.2;
    color: #6b7280;
}

.tb-emp-list .tb-free-emp-meta-line {
    display: block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tb-emp-list .tb-free-emp-meta-status {
    font-weight: 700;
    color: #4b5563;
}

.tb-emp-list .tb-free-emp-actions {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex: 0 0 auto;
    align-self: center;
}

.tb-emp-list .tb-free-emp-actions .tb-emp-action {
    min-width: 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: .88rem;
}

/* etwas kompakter und ruhiger */
.tb-emp-list .tb-free-emp.tb-free-emp-rich:hover {
    background: #f8fafc;
}

/* damit die linke Spalte etwas mehr Luft hat */
.tb-emp-list .tb-free-emp + .tb-free-emp {
    margin-top: .08rem;
}

/* responsive */
@media (max-width: 1400px) {
    .tb-emp-list .tb-free-emp.tb-free-emp-rich {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .tb-emp-list .tb-free-emp-actions {
        justify-content: flex-end;
        width: 100%;
        margin-top: .15rem;
    }
}
/* =========================================================
   DISPO – FREI-PILL WARNUNG (AURA / WASSER) – 40% REDUZIERT
   ========================================================= */

.company-header .tb-company-collapsed-pill.is-frei {
    position: relative;
    background: linear-gradient(135deg, rgba(255,248,248,.98) 0%, rgba(254,236,236,.94) 100%);
    border: 1px solid rgba(220, 38, 38, 0.38);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.12), 0 0 8px rgba(220, 38, 38, 0.11), 0 0 16px rgba(220, 38, 38, 0.06), inset 0 1px 0 rgba(255,255,255,.96);
    overflow: visible;
    z-index: 0;
}

    .company-header .tb-company-collapsed-pill.is-frei .tb-pill-label {
        color: #991b1b;
        font-weight: 800;
        position: relative;
        z-index: 4;
    }

    .company-header .tb-company-collapsed-pill.is-frei .tb-pill-value {
        color: #7f1d1d;
        font-weight: 900;
        position: relative;
        z-index: 4;
    }

    /* äußere rote Aura */
    .company-header .tb-company-collapsed-pill.is-frei::after {
        content: "";
        position: absolute;
        inset: -4px;
        border-radius: 14px;
        border: 1px solid rgba(220, 38, 38, 0.28);
        box-shadow: 0 0 6px rgba(220, 38, 38, 0.11), 0 0 14px rgba(220, 38, 38, 0.10), 0 0 24px rgba(220, 38, 38, 0.06);
        opacity: .72;
        animation: tb-frei-aura-pulse-soft 2.2s ease-in-out infinite;
        pointer-events: none;
        z-index: 2;
    }

    /* weiß-transparenter "Wasserwirbel" */
    .company-header .tb-company-collapsed-pill.is-frei::before {
        content: "";
        position: absolute;
        inset: -48%;
        border-radius: 999px;
        background: conic-gradient( from 0deg, rgba(255,255,255,0.00) 0deg, rgba(255,255,255,0.13) 34deg, rgba(255,255,255,0.025) 70deg, rgba(255,255,255,0.00) 108deg, rgba(255,255,255,0.11) 150deg, rgba(255,255,255,0.02) 195deg, rgba(255,255,255,0.00) 240deg, rgba(255,255,255,0.10) 300deg, rgba(255,255,255,0.00) 360deg );
        filter: blur(11px);
        opacity: .46;
        animation: tb-frei-aura-swirl-soft 7.5s linear infinite;
        pointer-events: none;
        z-index: 1;
    }

    /* zusätzlicher softer Außennebel */
    .company-header .tb-company-collapsed-pill.is-frei .tb-pill-value::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 155%;
        height: 190%;
        transform: translate(-50%, -50%);
        border-radius: 999px;
        background: radial-gradient(circle, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 26%, rgba(255,255,255,0.025) 46%, rgba(255,255,255,0.00) 72%);
        filter: blur(10px);
        opacity: .44;
        animation: tb-frei-aura-breathe-soft 3.2s ease-in-out infinite;
        pointer-events: none;
        z-index: -1;
    }

@keyframes tb-frei-aura-pulse-soft {
    0% {
        transform: scale(1);
        opacity: .42;
        box-shadow: 0 0 5px rgba(220, 38, 38, 0.08), 0 0 10px rgba(220, 38, 38, 0.07), 0 0 18px rgba(220, 38, 38, 0.04);
    }

    50% {
        transform: scale(1.04);
        opacity: .78;
        box-shadow: 0 0 9px rgba(220, 38, 38, 0.15), 0 0 18px rgba(220, 38, 38, 0.13), 0 0 28px rgba(220, 38, 38, 0.07);
    }

    100% {
        transform: scale(1);
        opacity: .42;
        box-shadow: 0 0 5px rgba(220, 38, 38, 0.08), 0 0 10px rgba(220, 38, 38, 0.07), 0 0 18px rgba(220, 38, 38, 0.04);
    }
}

@keyframes tb-frei-aura-swirl-soft {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes tb-frei-aura-breathe-soft {
    0% {
        opacity: .24;
        transform: translate(-50%, -50%) scale(.95);
    }

    50% {
        opacity: .56;
        transform: translate(-50%, -50%) scale(1.06);
    }

    100% {
        opacity: .24;
        transform: translate(-50%, -50%) scale(.95);
    }
}
/* ======================================================================
   CONTROLLING – JAHRESVERLAUF / MONATSBLOECKE
   ====================================================================== */

.year-trend-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.year-month-card {
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: box-shadow 140ms ease, border-color 140ms ease, transform 140ms ease;
}

    .year-month-card:hover {
        border-color: rgba(15, 23, 42, 0.16);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.10);
    }

.year-month-head {
    width: 100%;
    appearance: none;
    border: 0;
    background: radial-gradient(circle at 0% 0%, rgba(210, 75, 75, 0.06), transparent 42%), linear-gradient(145deg, #ffffff, #f3f4f6);
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr 42px;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    transition: background 140ms ease;
}

    .year-month-head:hover {
        background: radial-gradient(circle at 0% 0%, rgba(210, 75, 75, 0.09), transparent 44%), linear-gradient(145deg, #ffffff, #eef2f7);
    }

.year-month-title {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

    .year-month-title strong {
        font-size: 1.02rem;
        font-weight: 800;
        color: #0f172a;
        line-height: 1.15;
    }

    .year-month-title span {
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #64748b;
        font-weight: 700;
    }

.year-month-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

    .year-month-kpis span {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 6px 10px;
        border-radius: 999px;
        background: #ffffff;
        border: 1px solid rgba(15, 23, 42, 0.10);
        color: #0f172a;
        font-size: 0.84rem;
        font-weight: 700;
        line-height: 1;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
        white-space: nowrap;
    }



.year-month-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #111827, #020617);
    color: #f9fafb;
    font-size: 1rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.30);
}

.year-month-body {
    padding: 0 16px 16px 16px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.72) 0%, rgba(255,255,255,1) 100%);
}

    .year-month-body .lb-empty {
        margin-top: 8px;
        border-radius: 12px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px dashed rgba(15, 23, 42, 0.12);
        color: #64748b;
        font-weight: 600;
    }

    /* Tabelle im Monatsdetail noch etwas harmonischer einrasten */
    .year-month-body .table.forecast {
        margin-top: 8px;
        border-radius: 14px;
        overflow: hidden;
    }

/* Kleine optische Entlastung bei sehr langen KPI-Zeilen */
@media (max-width: 1200px) {
    .year-month-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .year-month-toggle {
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .year-month-head {
        padding: 12px;
    }

    .year-month-body {
        padding: 0 12px 12px 12px;
    }

    .year-month-kpis {
        gap: 6px;
    }

        .year-month-kpis span {
            font-size: 0.80rem;
            padding: 6px 9px;
        }
}
/* =========================================================
   MITARBEITER-DETAIL-OVERLAY
   ========================================================= */

.tb-emp-detail-dialog {
    width: min(1100px, 96vw);
    max-width: 1100px;
}

.tb-emp-detail-header {
    padding-bottom: .9rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.tb-emp-detail-head-main h3 {
    margin: 0 0 .45rem 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.tb-emp-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem 1rem;
    margin-top: .25rem;
    color: rgba(235,238,245,.82);
    font-size: .96rem;
}

.tb-emp-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 76vh;
    overflow: auto;
    padding-right: .15rem;
}

.tb-emp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.tb-emp-kpi-card {
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), rgba(10,14,24,.68);
    border-radius: 16px;
    padding: .85rem .95rem;
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}

.tb-emp-kpi-card-profit {
    grid-column: span 2;
}

.tb-emp-kpi-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(200,205,218,.7);
    margin-bottom: .3rem;
}

.tb-emp-kpi-value {
    font-size: 1.18rem;
    font-weight: 700;
    color: #f4f7fb;
}

.tb-emp-history-wrap {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(7,10,18,.52);
    border-radius: 18px;
    padding: .9rem;
}

.tb-emp-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .75rem;
}

    .tb-emp-history-head h4 {
        margin: 0;
        font-size: 1.08rem;
    }

.tb-emp-history-sub {
    color: rgba(205,210,220,.75);
    font-size: .88rem;
}

.tb-emp-empty {
    border: 1px dashed rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
    border-radius: 14px;
    padding: .95rem 1rem;
    color: rgba(210,214,224,.72);
}

    .tb-emp-empty.small {
        padding: .7rem .9rem;
        font-size: .9rem;
    }

.tb-emp-month-card {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.025);
    border-radius: 16px;
    overflow: hidden;
    margin-top: .7rem;
}

.tb-emp-month-header,
.tb-emp-week-header {
    width: 100%;
    border: 0;
    outline: 0;
    background: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    text-align: left;
    cursor: pointer;
}

.tb-emp-month-header {
    padding: .9rem 1rem;
    background: linear-gradient(90deg, rgba(90,33,33,.18) 0%, rgba(40,24,65,.16) 50%, rgba(20,36,78,.15) 100%), rgba(15,19,29,.85);
}

.tb-emp-week-header {
    padding: .75rem .85rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
}

.tb-emp-month-left,
.tb-emp-week-left,
.tb-emp-month-right,
.tb-emp-week-right {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.tb-emp-chevron {
    width: 1rem;
    text-align: center;
    opacity: .9;
}

.tb-emp-month-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f4f7fb;
}

.tb-emp-week-title {
    font-size: .95rem;
    font-weight: 650;
    color: #eef2f8;
}

.tb-emp-month-pill,
.tb-emp-week-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 .7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.05);
    color: rgba(230,235,244,.86);
    font-size: .82rem;
    white-space: nowrap;
}

.tb-emp-month-body {
    padding: .75rem .8rem .85rem .8rem;
}

.tb-emp-week-card + .tb-emp-week-card {
    margin-top: .55rem;
}

.tb-emp-week-body {
    padding: .6rem 0 0 0;
}

.tb-emp-assign-table {
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,.02);
}

.tb-emp-assign-head,
.tb-emp-assign-row {
    display: grid;
    grid-template-columns: 120px minmax(180px, 1.4fr) 180px 90px 90px 70px;
    gap: .75rem;
    align-items: center;
}

.tb-emp-assign-head {
    padding: .75rem .9rem;
    background: rgba(255,255,255,.045);
    border-bottom: 1px solid rgba(255,255,255,.06);
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: rgba(210,214,223,.72);
    font-weight: 700;
}

.tb-emp-assign-row {
    padding: .72rem .9rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: rgba(241,244,249,.92);
}

    .tb-emp-assign-row:last-child {
        border-bottom: 0;
    }

.tb-emp-company {
    font-weight: 600;
    color: #f5f7fb;
}

.tb-emp-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 .7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .82rem;
    font-weight: 650;
    white-space: nowrap;
}

    .tb-emp-status-pill.is-work {
        background: rgba(40,130,80,.18);
        border-color: rgba(60,180,100,.24);
        color: #b8f0cb;
    }

    .tb-emp-status-pill.is-glz {
        background: rgba(61,110,185,.18);
        border-color: rgba(91,145,230,.22);
        color: #c6ddff;
    }

    .tb-emp-status-pill.is-vac {
        background: rgba(170,120,35,.18);
        border-color: rgba(220,170,80,.22);
        color: #f2deb2;
    }

    .tb-emp-status-pill.is-sick {
        background: rgba(170,60,60,.18);
        border-color: rgba(220,90,90,.24);
        color: #ffcccc;
    }

    .tb-emp-status-pill.is-free {
        background: rgba(130,130,130,.16);
        border-color: rgba(180,180,180,.18);
        color: #d6d8dc;
    }

    .tb-emp-status-pill.is-fu,
    .tb-emp-status-pill.is-unpaid {
        background: rgba(115,75,170,.18);
        border-color: rgba(150,105,215,.22);
        color: #dccdff;
    }

    .tb-emp-status-pill.is-none {
        background: rgba(120,120,120,.12);
        border-color: rgba(170,170,170,.16);
        color: #cfd3da;
    }

@media (max-width: 980px) {
    .tb-emp-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tb-emp-kpi-card-profit {
        grid-column: span 2;
    }

    .tb-emp-assign-head,
    .tb-emp-assign-row {
        grid-template-columns: 110px minmax(150px, 1.2fr) 150px 78px 78px 60px;
        gap: .55rem;
    }
}

@media (max-width: 720px) {
    .tb-emp-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .tb-emp-kpi-card-profit {
        grid-column: span 1;
    }

    .tb-emp-history-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .tb-emp-assign-head {
        display: none;
    }

    .tb-emp-assign-row {
        grid-template-columns: 1fr;
        gap: .35rem;
        padding: .85rem .9rem;
    }
}
/* ======================================================================
   ADMIN USERS – TIMEBASE ALIGNED
   passt zur echten app.css:
   - light content area
   - white cards / inputs / rows
   - dark hero + dark table heads
   - red accent über var(--tb-accent)
   ====================================================================== */

.admin-users-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* HERO */
.admin-users-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,0.20);
    background: radial-gradient(circle at 12% 0%, rgba(210,75,75,0.14), transparent 52%), radial-gradient(circle at 100% 100%, rgba(148,163,184,0.12), transparent 55%), linear-gradient(145deg, #111827, #020617);
    box-shadow: 0 18px 40px rgba(15,23,42,0.22);
    color: #f5f5f5;
}

.admin-users-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.admin-users-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #f9fafb;
    line-height: 1.12;
}

.admin-users-subtitle {
    margin: 10px 0 0;
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.5;
}

.admin-users-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    min-width: 520px;
}

.admin-users-stat {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.20);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

    .admin-users-stat.is-good {
        background: radial-gradient(circle at 10% 0%, rgba(34,197,94,0.16), transparent 55%), rgba(255,255,255,0.04);
    }

    .admin-users-stat.is-warn {
        background: radial-gradient(circle at 10% 0%, rgba(250,204,21,0.14), transparent 55%), rgba(255,255,255,0.04);
    }

.admin-users-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a0a4b6;
    margin-bottom: 8px;
}

.admin-users-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

/* ALERTS */
.admin-users-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.admin-users-alert-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.admin-users-alert-error {
    border-color: rgba(194,65,58,0.28);
    background: linear-gradient(180deg, rgba(194,65,58,0.06), #ffffff 75%);
}

.admin-users-alert-success {
    border-color: rgba(34,197,94,0.22);
    background: linear-gradient(180deg, rgba(34,197,94,0.06), #ffffff 75%);
}

.admin-users-alert-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 800;
    background: #111827;
    color: #fff;
    flex: 0 0 auto;
}

.admin-users-alert-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 2px;
}

.admin-users-alert-text {
    color: #4b5563;
    line-height: 1.45;
}

.admin-users-secret-box {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.admin-users-secret-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #6b7280;
    margin-bottom: 8px;
}

.admin-users-secret-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-users-secret-input {
    flex: 1 1 auto;
}

/* LOADING */
.admin-users-loading-card {
    padding: 26px 24px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.admin-users-loading-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

.admin-users-loading-sub {
    margin-top: 6px;
    color: #6b7280;
}

/* GRID */
.admin-users-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* PANELS */
.admin-users-panel {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 18px;
}

.admin-users-panel-table {
    padding: 18px 18px 16px;
}

.admin-users-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

    .admin-users-panel-head h3 {
        margin: 3px 0 0;
        font-size: 1.08rem;
        font-weight: 800;
        color: #111827;
    }

.admin-users-panel-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
}

.admin-users-panel-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    white-space: nowrap;
}

/* TOOLBAR */
.admin-users-toolbar {
    display: grid;
    grid-template-columns: 1.6fr .7fr .7fr;
    gap: 12px;
    margin-bottom: 16px;
}

    .admin-users-toolbar > div {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .admin-users-toolbar label {
        font-size: 0.8rem;
        font-weight: 700;
        color: #111827;
    }

/* FORMS */
.admin-users-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.admin-users-form-span-2 {
    grid-column: 1 / -1;
}

.admin-users-form-grid .tb-form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

    .admin-users-form-grid .tb-form-row > label {
        font-size: 0.82rem;
        font-weight: 700;
        color: #111827;
    }

.admin-users-selection-info {
    margin-bottom: 10px;
    color: #6b7280;
    font-size: 0.84rem;
}

.admin-users-password-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

    .admin-users-password-row .tb-input {
        flex: 1 1 auto;
    }

.admin-users-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

/* BRANCH MULTI */
.admin-users-branch-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-users-branch-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    transition: all .18s ease;
    cursor: pointer;
}

    .admin-users-branch-pill:hover {
        background: #f9fafb;
        border-color: #cbd5e1;
        transform: translateY(-1px);
    }

    .admin-users-branch-pill.is-selected {
        background: rgba(210,75,75,0.10);
        border-color: rgba(210,75,75,0.42);
        color: #7f1d1d;
        box-shadow: inset 0 0 0 1px rgba(210,75,75,0.08);
    }

    .admin-users-branch-pill input {
        margin: 0;
    }

.admin-users-hint {
    margin-top: 10px;
    display: inline-block;
    color: #6b7280;
}

/* EMPTY STATES */
.admin-users-empty-state {
    min-height: 300px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 26px;
    border: 1px dashed #d1d5db;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f9fafb);
}

    .admin-users-empty-state.small {
        min-height: 120px;
    }

.admin-users-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    background: #f3f4f6;
    color: #6b7280;
}

.admin-users-empty-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.admin-users-empty-text {
    margin-top: 8px;
    max-width: 360px;
    color: #6b7280;
    line-height: 1.5;
}

/* TOGGLE */
.admin-users-inline-toggle {
    justify-content: end;
}

.admin-users-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
}

/* TABLES */
.admin-users-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.admin-users-table {
    margin: 0;
    min-width: 1080px;
}

    .admin-users-table thead th {
        white-space: nowrap;
    }

    .admin-users-table tbody tr:hover > td {
        background: #f3f4f6 !important;
    }

.admin-users-name-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-users-user-name {
    font-weight: 700;
    color: #111827;
}

.admin-users-user-mail {
    font-size: 0.78rem;
    color: #9ca3af;
}

.admin-users-role-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

    .admin-users-role-pill.role-admin {
        color: #7f1d1d;
        background: rgba(210,75,75,0.12);
        border-color: rgba(210,75,75,0.26);
    }

    .admin-users-role-pill.role-revision {
        color: #92400e;
        background: rgba(250,204,21,0.16);
        border-color: rgba(250,204,21,0.28);
    }

    .admin-users-role-pill.role-vl {
        color: #1d4ed8;
        background: rgba(59,130,246,0.12);
        border-color: rgba(59,130,246,0.24);
    }

    .admin-users-role-pill.role-gf {
        color: #6d28d9;
        background: rgba(139,92,246,0.12);
        border-color: rgba(139,92,246,0.24);
    }

    .admin-users-role-pill.role-user {
        color: #065f46;
        background: rgba(16,185,129,0.12);
        border-color: rgba(16,185,129,0.22);
    }

.admin-users-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

    .admin-users-status-pill.is-active {
        color: #065f46;
        background: rgba(16,185,129,0.12);
        border-color: rgba(16,185,129,0.22);
    }

    .admin-users-status-pill.is-inactive {
        color: #92400e;
        background: rgba(250,204,21,0.16);
        border-color: rgba(250,204,21,0.28);
    }

.admin-users-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-users-btn-compact {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.admin-users-btn-danger {
    border-color: rgba(210,75,75,0.28) !important;
    background: rgba(210,75,75,0.08) !important;
    color: #7f1d1d !important;
}

    .admin-users-btn-danger:hover {
        background: rgba(210,75,75,0.14) !important;
    }

/* BRANCH SECTION */
.admin-users-branch-create {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.admin-users-branch-create-input {
    margin: 0;
}

.admin-users-branch-create-action {
    display: flex;
    align-items: end;
}

.admin-users-agil-input {
    max-width: 120px;
}

.admin-users-branch-name {
    font-weight: 700;
    color: #111827;
}

/* MODAL – an eure Overlays angelehnt */
.admin-users-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    padding: 12px;
    background: radial-gradient(circle at 18% 12%, rgba(210,75,75,0.10), transparent 58%), radial-gradient(circle at 85% 88%, rgba(148,163,184,0.08), transparent 62%), var(--tb-ov-backdrop);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-users-modal {
    position: relative;
    width: min(540px, 100%);
    border-radius: var(--tb-ov-radius);
    border: 1px solid var(--tb-ov-border);
    background: radial-gradient(circle at 12% 0%, rgba(210,75,75,0.10), transparent 62%), linear-gradient(145deg, var(--tb-ov-surface-1), var(--tb-ov-surface-2));
    box-shadow: var(--tb-ov-shadow);
    overflow: hidden;
    color: #f5f7fb;
}

    .admin-users-modal::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: radial-gradient(circle at 0 0, rgba(255,255,255,0.10), transparent 60%), radial-gradient(circle at 100% 100%, rgba(255,255,255,0.06), transparent 62%);
        opacity: 0.35;
        pointer-events: none;
    }

.admin-users-modal-head {
    position: relative;
    padding: 18px 20px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

    .admin-users-modal-head h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 800;
        color: #f9fafb;
    }

.admin-users-modal-body {
    position: relative;
    padding: 18px 20px;
    color: #cbd5e1;
    line-height: 1.55;
}

.admin-users-modal-actions {
    position: relative;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 20px 20px;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
    .admin-users-hero {
        flex-direction: column;
    }

    .admin-users-stats {
        min-width: 0;
        grid-template-columns: repeat(4, 1fr);
    }

    .admin-users-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .admin-users-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .admin-users-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-users-form-span-2 {
        grid-column: auto;
    }

    .admin-users-branch-create {
        grid-template-columns: 1fr;
    }

    .admin-users-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-users-password-row,
    .admin-users-secret-row {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-users-actions {
        flex-wrap: wrap;
    }
}
/* ======================================================================
   MONITORING – TIMEBASE ALIGNED
   orientiert sich an tb-card / tb-table / tb-btn / tb-main
   ====================================================================== */

.mon-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* HERO */
.mon-hero {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 20px;
    border: 1px solid rgba(148,163,184,0.20);
    background: radial-gradient(circle at 12% 0%, rgba(210,75,75,0.14), transparent 52%), radial-gradient(circle at 100% 100%, rgba(148,163,184,0.12), transparent 55%), linear-gradient(145deg, #111827, #020617);
    box-shadow: 0 18px 40px rgba(15,23,42,0.22);
    color: #f5f5f5;
}

.mon-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #9ca3af;
    margin-bottom: 6px;
}

.mon-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #f9fafb;
    line-height: 1.12;
}

.mon-subtitle {
    margin: 10px 0 0;
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.5;
}

.mon-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 12px;
    min-width: 560px;
}

.mon-hero-stat {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.20);
    background: rgba(255,255,255,0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.mon-hero-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a0a4b6;
    margin-bottom: 8px;
}

.mon-hero-stat-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.mon-hero-stat-value-sm {
    font-size: 1rem;
    word-break: break-word;
}

/* KPI CARDS */
.mon-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mon-kpi-card {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 16px 18px;
}

    .mon-kpi-card.is-good {
        background: linear-gradient(180deg, rgba(16,185,129,0.05), #ffffff 80%);
        border-color: rgba(16,185,129,0.20);
    }

    .mon-kpi-card.is-bad {
        background: linear-gradient(180deg, rgba(210,75,75,0.06), #ffffff 80%);
        border-color: rgba(210,75,75,0.22);
    }

    .mon-kpi-card.is-neutral {
        background: linear-gradient(180deg, rgba(59,130,246,0.04), #ffffff 82%);
    }

.mon-kpi-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 8px;
}

.mon-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
}

.mon-kpi-sub {
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.4;
}

.mon-kpi-actions {
    margin-top: 12px;
}

/* LAYOUT */
.mon-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.mon-panel {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 18px;
}

.mon-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

    .mon-panel-head h3 {
        margin: 3px 0 0;
        font-size: 1.08rem;
        font-weight: 800;
        color: #111827;
    }

.mon-panel-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #6b7280;
}

.mon-panel-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    white-space: nowrap;
}

.mon-panel-actions {
    margin-top: 14px;
}

/* INFO LISTS */
.mon-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .mon-info-list.compact {
        gap: 8px;
    }

.mon-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f9fafb;
}

    .mon-info-row span {
        color: #6b7280;
    }

    .mon-info-row strong {
        color: #111827;
        text-align: right;
        word-break: break-word;
    }

.mon-note-error {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(210,75,75,0.22);
    background: rgba(210,75,75,0.06);
    color: #7f1d1d;
    line-height: 1.45;
}

.mon-empty-lite {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    color: #6b7280;
}

/* ERRORS */
.mon-error-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mon-error-box {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.mon-error-box-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 8px;
}

.mon-error-box-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

.mon-last-error {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.mon-last-error-title {
    font-weight: 800;
    color: #111827;
    margin-bottom: 10px;
}

/* PRESENCE */
.mon-presence-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.mon-presence-summary {
    color: #111827;
}

.mon-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mon-branchbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.mon-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    font-size: 0.82rem;
}

    .mon-chip .k {
        font-weight: 600;
    }

    .mon-chip .v {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #f3f4f6;
        color: #111827;
        font-size: 0.78rem;
        font-weight: 700;
    }

.mon-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.mon-user-table {
    margin: 0;
    min-width: 860px;
}

.mon-user {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mon-name {
    font-weight: 700;
    color: #111827;
}

.mon-mail {
    font-size: 0.78rem;
    color: #9ca3af;
}

.mon-tabs {
    font-size: 0.78rem;
    color: #6b7280;
}

/* STATUS PILLS */
.mon-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    border: 1px solid transparent;
}

    .mon-status .dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: currentColor;
        opacity: 0.9;
    }

    .mon-status.live {
        color: #065f46;
        background: rgba(16,185,129,0.12);
        border-color: rgba(16,185,129,0.22);
    }

    .mon-status.idle {
        color: #92400e;
        background: rgba(250,204,21,0.16);
        border-color: rgba(250,204,21,0.28);
    }

    .mon-status.offline {
        color: #7f1d1d;
        background: rgba(210,75,75,0.12);
        border-color: rgba(210,75,75,0.24);
    }

/* RESPONSIVE */
@media (max-width: 1280px) {
    .mon-hero {
        flex-direction: column;
    }

    .mon-hero-stats {
        min-width: 0;
        grid-template-columns: repeat(4, 1fr);
    }

    .mon-kpi-grid,
    .mon-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .mon-kpi-grid,
    .mon-grid-2,
    .mon-error-stats {
        grid-template-columns: 1fr;
    }

    .mon-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mon-presence-topline {
        flex-direction: column;
        align-items: stretch;
    }
}
/* =========================================================
   AGIL STATUS CARD – einheitlich für Aufgaben + Sales
   ========================================================= */

.agil-status-card {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)), rgba(8, 14, 30, 0.55);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 24px rgba(0,0,0,0.28);
}

.agil-status-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Status Pills */
.agil-state-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all .18s ease;
}

.agil-state-pill--ok {
    color: #dfffea;
    background: linear-gradient(180deg, rgba(26, 180, 99, 0.24), rgba(26, 180, 99, 0.14));
    border-color: rgba(59, 221, 131, 0.34);
    box-shadow: 0 0 0 1px rgba(59, 221, 131, 0.08), 0 0 18px rgba(59, 221, 131, 0.16);
}

.agil-state-pill--new {
    color: #ffe6e6;
    background: linear-gradient(180deg, rgba(220, 68, 68, 0.24), rgba(220, 68, 68, 0.14));
    border-color: rgba(255, 110, 110, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 110, 110, 0.08), 0 0 18px rgba(255, 90, 90, 0.16);
}

.agil-state-pill--warn {
    color: #fff0cf;
    background: linear-gradient(180deg, rgba(217, 151, 33, 0.24), rgba(217, 151, 33, 0.14));
    border-color: rgba(255, 191, 73, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 191, 73, 0.08), 0 0 18px rgba(255, 191, 73, 0.14);
}

.agil-state-pill--error {
    color: #ffdede;
    background: linear-gradient(180deg, rgba(195, 58, 58, 0.24), rgba(195, 58, 58, 0.14));
    border-color: rgba(255, 102, 102, 0.34);
    box-shadow: 0 0 0 1px rgba(255, 102, 102, 0.08), 0 0 18px rgba(255, 82, 82, 0.15);
}

/* Toggle */
.agil-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all .18s ease;
}

    .agil-toggle:hover {
        background: rgba(255,255,255,0.05);
        border-color: rgba(255,255,255,0.10);
    }

    .agil-toggle.is-disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

    .agil-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.agil-toggle-slider {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.28);
    transition: all .2s ease;
}

    .agil-toggle-slider::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: linear-gradient(180deg, #ffffff, #d9dce5);
        box-shadow: 0 2px 8px rgba(0,0,0,0.35);
        transition: all .2s ease;
    }

.agil-toggle input:checked + .agil-toggle-slider {
    background: linear-gradient(180deg, rgba(212, 67, 67, 0.75), rgba(165, 34, 34, 0.88));
    border-color: rgba(255, 113, 113, 0.35);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 18px rgba(220, 68, 68, 0.18);
}

    .agil-toggle input:checked + .agil-toggle-slider::after {
        left: 23px;
    }

.agil-toggle-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.agil-toggle-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f4f7ff;
}

.agil-toggle-sub {
    font-size: 0.78rem;
    line-height: 1.25;
    color: rgba(255,255,255,0.66);
}
/* ======================================================================
   SALES DIALOG – kompakt, aber breiter und sauber geordnet
   ====================================================================== */

.sales-dialog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    align-items: start;
}

    .sales-dialog-grid > .span-2 {
        grid-column: 1 / -1;
    }

    .sales-dialog-grid label {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

@media (max-width: 860px) {
    .sales-dialog-grid {
        grid-template-columns: 1fr;
    }

        .sales-dialog-grid > .span-2 {
            grid-column: auto;
        }
}