/* ============================================================
   DASHBOARD-DESIGNS "NEON EDITION" (dash_neon) und "FIELD EDITION" (dash_field)
   Beide teilen sich diese Datei; nur die Farbvariablen unterscheiden sich.
   Basis: Designpaket (styles.css) - Variablen, Karten, Diagramme, Kalender 1:1 uebernommen.
   Breakpoints wie im Design: 1350 / 980 / 690 px.
   ============================================================ */

body.theme-dash_neon {
    --bg: #080f21; --sidebar: #0c1530; --card: #142341; --card2: #10203b; --line: #2c4168;
    --text: #eff5ff; --muted: #98accb; --primary: #4dcaff; --accent: #9878ff; --teal: #28e5cb;
    --success: #2ee0ab; --warning: #f5ad54; --shadow: 0 14px 48px #02091952;
    --gradient: linear-gradient(110deg, #25c9fa, #666dff 55%, #aa67ef);
    --panel-image: url('/assets/design/ambient-lines.svg');
    --on-gradient: #ffffff;
    --btn-text: #041b29;
}
body.theme-dash_field {
    --bg: #191d1b; --sidebar: #242925; --card: #303731; --card2: #2a312c; --line: #505c50;
    --text: #f3f1e7; --muted: #c3c8b8; --primary: #c6d5a7; --accent: #dfbb80; --teal: #bbd2a5;
    --success: #a2d5a1; --warning: #e9bb79; --shadow: 0 14px 44px #11181188;
    --gradient: linear-gradient(110deg, #b7cba0, #839e78 48%, #d3b78b);
    --panel-image: url('/assets/design/terrain-lines.svg');
    --on-gradient: #19241d;
    --btn-text: #19241d;
}

/* ---------- Grundfarben fuer ALLE bestehenden Seiten (Variablen aus style.css umbiegen) ---------- */
body[class*="theme-dash_"] {
    --color-primary: var(--primary);
    --color-primary-dark: var(--accent);
    --color-bg: var(--bg);
    --color-card: var(--card);
    --color-text: var(--text);
    --color-muted: var(--muted);
    --color-border: var(--line);
    --color-success: var(--success);
    --color-success-bg: color-mix(in srgb, var(--success) 15%, transparent);
    --color-error: #ff8f9d;
    --color-error-bg: rgba(255, 92, 108, 0.14);
    --color-warn-bg: color-mix(in srgb, var(--warning) 14%, transparent);
    --radius: 14px;
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(ellipse at 72% -14%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 45%), var(--bg);
    color: var(--text);
    font-size: 14px;
}
body[class*="theme-dash_"] h1, body[class*="theme-dash_"] h2, body[class*="theme-dash_"] h3 { color: var(--text); letter-spacing: -0.4px; }
body[class*="theme-dash_"] a { color: var(--primary); }
body[class*="theme-dash_"] .hint { color: var(--muted); }
body[class*="theme-dash_"] label { color: var(--muted); }

/* Sidebar */
body[class*="theme-dash_"] .sidebar {
    width: 244px;
    background: linear-gradient(175deg, var(--sidebar), var(--bg));
    border-right: 1px solid var(--line);
    padding: 25px 14px;
    color: var(--text);
    /* scrollt zusammen mit dem Inhalt (nicht fixiert) */
    position: relative;
    align-self: stretch;
    z-index: 30;
}
body[class*="theme-dash_"] .sidebar-brand { border-bottom: 0; padding: 8px 10px 22px; margin-bottom: 0; gap: 12px; }
body[class*="theme-dash_"] .brand-logo-img { max-height: 44px; max-width: 56px; width: auto; height: 44px; border-radius: 12px; object-fit: contain; }
body[class*="theme-dash_"] .brand-design-logo { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
body[class*="theme-dash_"] .brand-name { color: var(--text); font-weight: 850; letter-spacing: -0.6px; font-size: 17px; line-height: 1.1; }
body[class*="theme-dash_"] .brand-sub { color: var(--muted); font-size: 10px; letter-spacing: 2px; font-weight: 700; margin-top: 6px; }
body[class*="theme-dash_"] .brand-logo-fallback { background: var(--gradient); color: var(--on-gradient); border: 0; border-radius: 12px; }
body[class*="theme-dash_"] .sidebar-user { padding: 0 10px 16px; }
body[class*="theme-dash_"] .user-avatar { background: var(--card2); color: var(--primary); border: 1px solid var(--line); }
body[class*="theme-dash_"] .user-name { color: var(--text); }
body[class*="theme-dash_"] .user-role { color: var(--muted); }
body[class*="theme-dash_"] .sidebar-nav { gap: 5px; flex: 0 0 auto; }
body[class*="theme-dash_"] .nav-item {
    display: flex; align-items: center; gap: 13px;
    padding: 13px; border: 1px solid transparent; border-radius: 13px;
    color: var(--muted); font-weight: 650; transition: 0.18s;
}
body[class*="theme-dash_"] .nav-item:hover { background: #ffffff0c; color: var(--text); text-decoration: none; }
body[class*="theme-dash_"] .nav-item.active {
    color: var(--on-gradient); background: var(--gradient);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 19%, transparent);
    border-color: #ffffff30;
}
body[class*="theme-dash_"] .sidebar-footer { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
body[class*="theme-dash_"] .sidebar-legal, body[class*="theme-dash_"] .sidebar-legal a { color: var(--muted); }

/* Promo-Karte unten in der Sidebar (aus dem Design) */
.dz-promo { display: none; }
body[class*="theme-dash_"] .dz-promo {
    display: block; margin-top: 16px; border: 1px solid var(--line); border-radius: 17px; padding: 18px;
    background: radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 60%), var(--card);
    overflow: hidden; position: relative;
}
.dz-promo::after { content: ""; position: absolute; inset: 0; background: var(--panel-image) center/cover; opacity: 0.16; pointer-events: none; }
.dz-promo > * { position: relative; z-index: 1; }
.dz-promo .dz-promo-star { color: var(--primary); font-size: 25px; line-height: 1; }
.dz-promo strong { font-size: 17px; line-height: 1.35; display: block; margin: 10px 0; color: var(--text); }
.dz-promo p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.dz-promo small { display: block; color: var(--muted); font-size: 10px; letter-spacing: 1.3px; margin-top: 13px; }

/* Hauptbereich + Topbar */
body[class*="theme-dash_"] .main-area { min-width: 0; }
body[class*="theme-dash_"] .main-area .app-main { max-width: 1900px; padding: 30px clamp(18px, 2.1vw, 42px) 40px; margin: 0 auto; }
.dz-topbar { display: none; }
body[class*="theme-dash_"] .dz-topbar {
    display: flex; gap: 20px; justify-content: space-between; align-items: center;
    padding: 30px clamp(18px, 2.1vw, 42px) 0; max-width: 1900px; width: 100%; margin: 0 auto;
}
body[class*="theme-dash_"] .dz-topbar + .app-main { padding-top: 22px; }
.dz-page-title h1 { margin: 0 0 5px; font-size: clamp(23px, 2vw, 31px); letter-spacing: -1.3px; font-weight: 850; }
.dz-page-title p { margin: 0; color: var(--muted); }
.dz-top-actions { display: flex; align-items: center; gap: 13px; }
.dz-searchbox {
    display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line);
    background: var(--card2); height: 42px; border-radius: 14px; width: min(31vw, 390px);
}
.dz-searchbox input { border: 0 !important; outline: 0; min-width: 0; background: transparent !important; color: var(--text); flex: 1; box-shadow: none !important; padding: 0 !important; }
.dz-searchbox input::placeholder { color: var(--muted); }
.dz-searchbox img, .dz-icon-btn img, .dz-section-icon img, .dz-stat-icon img, .dz-mini-ico img { width: 19px; height: 19px; }
.dz-icon-btn {
    border: 1px solid var(--line); background: var(--card2); border-radius: 12px; width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center; position: relative; text-decoration: none;
}
.dz-notif-dot { position: absolute; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; right: 8px; top: 7px; box-shadow: 0 0 12px var(--accent); }
.dz-profile { display: flex; align-items: center; gap: 10px; padding-left: 8px; border-left: 1px solid var(--line); }
.dz-profile img { width: 38px; height: 38px; border-radius: 50%; }
.dz-profile b { display: block; font-size: 12px; color: var(--text); }
.dz-profile small { font-size: 11px; color: var(--muted); }

/* Icons der Design-Sammlung farbig machen (SVG werden per <img> geladen) */
.dz-searchbox img, .dz-icon-btn img, .dz-section-icon img, .dz-stat-icon img, .dz-mini-ico img {
    filter: brightness(0) saturate(100%) invert(80%) sepia(28%) saturate(922%) hue-rotate(159deg);
}
body.theme-dash_field .dz-searchbox img, body.theme-dash_field .dz-icon-btn img, body.theme-dash_field .dz-section-icon img,
body.theme-dash_field .dz-stat-icon img, body.theme-dash_field .dz-mini-ico img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(13%) saturate(606%) hue-rotate(44deg);
}

/* Mobile Topbar im Design */
body[class*="theme-dash_"] .mobile-topbar { background: var(--sidebar); border-bottom: 1px solid var(--line); color: var(--text); }
body[class*="theme-dash_"] .mobile-topbar-name { color: var(--text); }
body[class*="theme-dash_"] .mobile-topbar-avatar { background: var(--gradient); color: var(--on-gradient); }
body[class*="theme-dash_"] .mobile-topbar-toggle { color: var(--text); }

/* ---------- Bestehende Bausteine im Design-Look ---------- */
body[class*="theme-dash_"] .card {
    background: linear-gradient(145deg, color-mix(in srgb, var(--card) 96%, white), var(--card2));
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--text);
}
body[class*="theme-dash_"] .kpi-warn { border-color: color-mix(in srgb, var(--warning) 60%, var(--line)); background: color-mix(in srgb, var(--warning) 10%, var(--card)); }
body[class*="theme-dash_"] .kpi-icon-red { background: rgba(255, 92, 108, 0.16); color: #ff8f9d; }
body[class*="theme-dash_"] .kpi-icon-green { background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
body[class*="theme-dash_"] .kpi-icon-purple { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
body[class*="theme-dash_"] .kpi-icon-teal { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }

body[class*="theme-dash_"] .btn {
    background: var(--gradient); color: var(--btn-text); border: 0; border-radius: 12px; font-weight: 800;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 13%, transparent);
}
body[class*="theme-dash_"] .btn:hover { filter: brightness(1.1); text-decoration: none; }
body[class*="theme-dash_"] .btn-danger { background: transparent; color: #ff8f9d; border: 1px solid #ff8f9d; box-shadow: none; }
body[class*="theme-dash_"] .btn-danger:hover { background: #ff5c6c; color: #1a0506; }

body[class*="theme-dash_"] input[type=text], body[class*="theme-dash_"] input[type=email],
body[class*="theme-dash_"] input[type=password], body[class*="theme-dash_"] input[type=number],
body[class*="theme-dash_"] input[type=date], body[class*="theme-dash_"] input[type=time],
body[class*="theme-dash_"] input[type=month], body[class*="theme-dash_"] input[type=search],
body[class*="theme-dash_"] input[type=tel], body[class*="theme-dash_"] input[type=url],
body[class*="theme-dash_"] select, body[class*="theme-dash_"] textarea {
    background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
}
body[class*="theme-dash_"] input:focus, body[class*="theme-dash_"] select:focus, body[class*="theme-dash_"] textarea:focus {
    outline: 2px solid var(--primary); outline-offset: 2px;
}
body[class*="theme-dash_"] fieldset { border-color: var(--line); border-radius: 12px; }
body[class*="theme-dash_"] legend { color: var(--muted); }

body[class*="theme-dash_"] .data-table th { background: color-mix(in srgb, var(--card2) 65%, white 4%); color: var(--muted); font-size: 12px; }
body[class*="theme-dash_"] .data-table th, body[class*="theme-dash_"] .data-table td,
body[class*="theme-dash_"] .mini-table td { border-bottom: 1px solid var(--line); color: var(--text); }
body[class*="theme-dash_"] .filter-tabs a { background: var(--card2); color: var(--text); border: 1px solid var(--line); }
body[class*="theme-dash_"] .filter-tabs a.active { background: var(--gradient); color: var(--btn-text); border-color: transparent; }

body[class*="theme-dash_"] .badge-pending, body[class*="theme-dash_"] .badge-eingereicht, body[class*="theme-dash_"] .badge-beantragt {
    background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning);
}
body[class*="theme-dash_"] .badge-active, body[class*="theme-dash_"] .badge-freigegeben, body[class*="theme-dash_"] .badge-genehmigt {
    background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success);
}
body[class*="theme-dash_"] .badge-disabled, body[class*="theme-dash_"] .badge-abgelehnt { background: rgba(255, 92, 108, 0.16); color: #ff8f9d; }
body[class*="theme-dash_"] .badge-entwurf { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
body[class*="theme-dash_"] .alert-success { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
body[class*="theme-dash_"] .alert-error { background: rgba(255, 92, 108, 0.14); color: #ff8f9d; }
body[class*="theme-dash_"] .alert-info { background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); }

body[class*="theme-dash_"] .kalender-tag { background: var(--card2); border: 1px solid var(--line); }
body[class*="theme-dash_"] .kalender-tag.wochenende { background: color-mix(in srgb, var(--bg) 60%, var(--card2)); }
body[class*="theme-dash_"] .kalender-tag.feiertag { background: color-mix(in srgb, var(--warning) 10%, var(--card2)); border-color: color-mix(in srgb, var(--warning) 55%, var(--line)); }
body[class*="theme-dash_"] .kalender-tag.heute { border: 2px solid var(--primary); }
body[class*="theme-dash_"] .kalender-kopf { color: var(--muted); }
body[class*="theme-dash_"] .positiv { color: var(--success); font-weight: 600; }
body[class*="theme-dash_"] .negativ { color: #ff8f9d; font-weight: 600; }
body[class*="theme-dash_"] .stat-bar { fill: var(--primary); }
body[class*="theme-dash_"] .stat-value, body[class*="theme-dash_"] .stat-label { fill: var(--muted); }
body[class*="theme-dash_"] .legal-page, body[class*="theme-dash_"] .legal-content { color: var(--text); }
body[class*="theme-dash_"] .app-footer { color: var(--muted); }

/* ============================================================
   DASHBOARD-KOMPONENTEN (Karten, Diagramme, Tabelle, Kalender)
   ============================================================ */
.dz-dashboard { display: block; }
.dz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.dz-card, .dz-stat-card {
    background: linear-gradient(145deg, color-mix(in srgb, var(--card) 96%, white), var(--card2));
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); min-width: 0; overflow: hidden; color: var(--text);
}
.dz-stat-card { padding: 18px 19px 20px; position: relative; min-height: 132px; }
.dz-stat-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 90%, color-mix(in srgb, var(--stat-accent) 18%, transparent), transparent 52%); pointer-events: none; }
.dz-stat-row, .dz-stat-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dz-stat-label { font-weight: 730; font-size: 13px; }
.dz-stat-icon { width: 34px; height: 34px; display: grid; place-items: center; background: color-mix(in srgb, var(--stat-accent) 18%, transparent); border-radius: 11px; flex-shrink: 0; }
.dz-stat-number { position: relative; font-size: 29px; font-weight: 850; letter-spacing: -1px; margin: 12px 0 2px; word-break: break-word; }
.dz-stat-sub { color: var(--muted); font-size: 11px; margin-top: 4px; }
.dz-trend { font-size: 11px; font-weight: 800; color: var(--success); background: color-mix(in srgb, var(--success) 13%, transparent); padding: 5px 8px; border-radius: 25px; white-space: nowrap; }

.dz-grid { display: grid; grid-template-columns: minmax(0, 1.54fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.dz-card { padding: 20px; position: relative; }
.dz-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.dz-title-icon { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.dz-section-icon { width: 27px; height: 27px; display: grid; place-items: center; flex-shrink: 0; }
.dz-card h2 { font-size: 16px; letter-spacing: -0.45px; margin: 0 0 4px; }
.dz-subtitle { color: var(--muted); font-size: 11px; }
.dz-link { color: var(--primary); font-size: 12px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.dz-select { width: auto !important; flex-shrink: 0; border: 1px solid var(--line); background: var(--card2); color: var(--text); padding: 7px 10px; font-size: 11px; border-radius: 11px; }
.dz-leer { color: var(--muted); font-size: 12px; margin: 10px 0; }

.dz-chart-card { min-height: 292px; background-image: var(--panel-image), linear-gradient(145deg, var(--card), var(--card2)); background-size: cover, auto; background-position: center; }
.dz-chart-wrap { width: 100%; min-height: 160px; }
.dz-chart-wrap[hidden] { display: none; }
.dz-chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-text { fill: var(--muted); font-size: 11px; }
.chart-value { fill: var(--text); font-size: 11px; font-weight: 800; }

.dz-donut-area { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 24px; flex-wrap: wrap; }
.dz-donut { width: 160px; height: 160px; min-width: 140px; position: relative; border-radius: 50%; }
.dz-donut::after { content: ""; position: absolute; inset: 26px; background: var(--card2); border-radius: 50%; }
.dz-donut-center { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.dz-donut-center strong { font-size: 29px; }
.dz-donut-center small { font-size: 11px; color: var(--muted); }
.dz-legend { flex: 1; min-width: 130px; }
.dz-legend-row { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 11px; color: var(--muted); }
.dz-legend-row b { color: var(--text); margin-left: auto; white-space: nowrap; }
.dz-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; flex-shrink: 0; }

.dz-activities { padding: 19px; }
.dz-activity-row { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dz-activity-row:last-child { border: 0; }
.dz-mini-ico { width: 33px; height: 33px; border-radius: 10px; background: color-mix(in srgb, var(--primary) 14%, transparent); display: grid; place-items: center; flex-shrink: 0; }
.dz-activity-row b, .dz-shift-item b { display: block; font-size: 11px; line-height: 1.45; }
.dz-activity-row small, .dz-shift-item small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.dz-activity-row time { white-space: nowrap; margin-left: auto; color: var(--muted); font-size: 10px; }

.dz-table-card { grid-column: 1; grid-row: 2 / span 2; min-height: 425px; }
.dz-table-scroll { overflow-x: auto; }
.dz-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.dz-table th { background: color-mix(in srgb, var(--card2) 65%, white 4%); text-align: left; color: var(--muted); font-size: 10px; padding: 12px 8px; white-space: nowrap; }
.dz-table th:first-child { border-radius: 9px 0 0 9px; }
.dz-table th:last-child { border-radius: 0 9px 9px 0; }
.dz-table td { padding: 11px 8px; border-bottom: 1px solid var(--line); color: var(--text); }
.dz-table tr:last-child td { border-bottom: 0; }
.dz-table td small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.dz-employee { display: flex; align-items: center; gap: 9px; }
.dz-employee img { width: 36px; height: 36px; border-radius: 50%; }
.dz-employee strong { display: block; font-size: 12px; white-space: nowrap; }
.dz-employee small { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; margin-top: 3px; }
.dz-status {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 30px; font-size: 10px; font-weight: 800; white-space: nowrap;
    --status-color: var(--muted);
    background: color-mix(in srgb, var(--status-color) 14%, transparent); color: var(--status-color);
}
.dz-status::before { content: ""; height: 6px; width: 6px; background: var(--status-color); border-radius: 50%; }
.dz-status.green { --status-color: var(--success); }
.dz-status.blue { --status-color: var(--primary); }
.dz-status.purple { --status-color: var(--accent); }
.dz-status.orange { --status-color: var(--warning); }
.dz-status.gray { --status-color: var(--muted); }

.dz-line-card { grid-column: 2; min-height: 220px; }
.dz-targets-card { grid-column: 2; min-height: 165px; }
.dz-target-row { display: grid; grid-template-columns: 30px 1fr 42px; gap: 11px; align-items: center; margin: 15px 0; }
.dz-target-row strong { font-size: 11px; }
.dz-target-row small { font-size: 10px; color: var(--muted); display: block; margin-top: 4px; }
.dz-target-row > b { font-size: 12px; text-align: right; }
.dz-progress { height: 8px; border-radius: 10px; background: var(--line); overflow: hidden; margin-top: 9px; }
.dz-progress > span { display: block; height: 100%; border-radius: 10px; background: var(--gradient); }

.dz-shift-card { grid-column: 3; grid-row: 2 / span 2; }
.dz-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dz-cal-header b { font-size: 12px; }
.dz-cal-nav { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; padding: 0 8px; }
.dz-cal-nav:disabled { opacity: 0.3; cursor: default; }
.dz-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.dz-cal-grid span { font-size: 11px; color: var(--muted); padding: 8px 0; }
.dz-cal-day { position: relative; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--text); padding: 9px 0; font-size: 11px; cursor: pointer; }
.dz-cal-day:hover, .dz-cal-day.selected {
    background: color-mix(in srgb, var(--teal) 20%, transparent); border-color: var(--teal);
    box-shadow: 0 0 16px color-mix(in srgb, var(--teal) 15%, transparent);
}
.dz-cal-day.today { font-weight: 800; color: var(--primary); }
.dz-cal-day.has::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.dz-cal-day.holiday { color: var(--warning); }
.dz-shift-list { margin-top: 16px; max-height: 300px; overflow-y: auto; }
.dz-shift-item {
    padding: 13px 10px 13px 15px; border-left: 3px solid var(--teal); background: color-mix(in srgb, var(--card2) 75%, transparent);
    border-radius: 0 10px 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 9px;
}
.dz-shift-item:nth-child(2) { border-left-color: var(--accent); }
.dz-shift-item:nth-child(3) { border-left-color: var(--warning); }
.dz-shift-item .dz-status { flex-shrink: 0; }

/* ---------- Responsive wie im Design ---------- */
@media (max-width: 1350px) {
    body[class*="theme-dash_"] .sidebar { width: 210px; }
    .dz-grid { grid-template-columns: 1.2fr 1fr; }
    .dz-activities { grid-column: 2; }
    .dz-table-card { grid-row: 2 / span 2; }
    .dz-shift-card { grid-column: 1 / -1; grid-row: auto; }
    .dz-shift-card .dz-shift-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 12px; }
    .dz-line-card, .dz-targets-card { grid-column: 2; }
    .dz-stats { gap: 10px; }
    .dz-stat-card { padding: 15px; }
    .dz-donut-area { gap: 10px; }
    .dz-donut { width: 140px; height: 140px; }
}
@media (max-width: 980px) {
    body[class*="theme-dash_"] .dz-topbar { padding: 18px 18px 0; }
    .dz-searchbox { width: min(42vw, 300px); }
    .dz-profile span { display: none; }
    .dz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dz-grid { grid-template-columns: 1fr 1fr; }
    .dz-grid > * { grid-column: auto; grid-row: auto; }
    .dz-table-card, .dz-activities, .dz-shift-card { grid-column: 1 / -1; min-height: 0; }
    .dz-shift-card .dz-shift-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 12px; }
}
@media (max-width: 900px) {
    /* mobiles Menue der Portal-Navigation (off-canvas) - muss die Sticky-Regeln oben ueberschreiben */
    body[class*="theme-dash_"] .sidebar {
        position: fixed; top: 0; bottom: 0; left: 0; height: auto; width: 280px; max-width: 82vw;
        transform: translateX(-100%); transition: transform 0.25s ease; z-index: 510; padding: 16px;
    }
    body[class*="theme-dash_"] .sidebar.open { transform: translateX(0); }
    body[class*="theme-dash_"] .dz-topbar { display: none; }
}
@media (max-width: 690px) {
    body[class*="theme-dash_"] .main-area .app-main { padding: 17px 12px 40px; }
    body[class*="theme-dash_"] .dz-topbar { display: none; }
    .dz-grid { display: flex; flex-direction: column; }
    .dz-stats { gap: 8px; }
    .dz-stat-card { min-height: 118px; padding: 12px; }
    .dz-stat-number { font-size: 22px; }
    .dz-stat-label { font-size: 11px; }
    .dz-card { padding: 15px; }
    .dz-donut-area { flex-wrap: wrap; }
    .dz-table { min-width: 420px; }
}
@media (max-width: 420px) {
    .dz-stats { grid-template-columns: 1fr 1fr; }
    .dz-stat-sub { font-size: 10px; }
    .dz-trend { font-size: 10px; padding: 4px 6px; }
}

/* Sidebar-Promo bei niedrigen Bildschirmen ausblenden */
@media (max-height: 820px) { .dz-promo { display: none !important; } }

/* Seitentitel steht im Design in der Topbar - doppelte H1 auf Desktop ausblenden */
@media (min-width: 901px) { body[class*="theme-dash_"] .main-area .app-main > h1 { display: none; } }

.dz-details { margin-top: 22px; }
.dz-details > summary {
    cursor: pointer; color: var(--muted); font-weight: 700; font-size: 13px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 14px; background: var(--card2); list-style: none;
}
.dz-details[open] > summary { margin-bottom: 16px; color: var(--text); }
.dz-details > summary::-webkit-details-marker { display: none; }
.dz-details > summary::before { content: "▸ "; }
.dz-details[open] > summary::before { content: "▾ "; }

/* Mini-Jobber-Karten im Design */
body[class*="theme-dash_"] .jc-card { background: linear-gradient(145deg, color-mix(in srgb, var(--card) 96%, white), var(--card2)); border-radius: 18px; box-shadow: var(--shadow); border-top-color: var(--primary); }
body[class*="theme-dash_"] .jc-card.jc-pending { border-top-color: var(--warning); }
body[class*="theme-dash_"] .jc-avatar { background: var(--gradient); color: var(--on-gradient); }
body[class*="theme-dash_"] .jc-facts > div { background: var(--card2); border: 1px solid var(--line); }
body[class*="theme-dash_"] .jc-progress { background: var(--line); }
body[class*="theme-dash_"] .jc-progress > span { background: var(--gradient); }
body[class*="theme-dash_"] .jc-more-menu { background: var(--card2); border-color: var(--line); }
body[class*="theme-dash_"] .btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
