/* =============================================
   EINSATZPLANUNGSTOOL - PORTAL SHARED STYLES
   Baustein 3: 1:1-Extraktion der bisherigen inline
   <style>-Bloecke aus den 5 Portal-Templates.
   KEINE inhaltliche Aenderung - reine Verschiebung.
   Wird NACH ept-frontend (frontend.css) enqueued.
   ============================================= */

/* === LOGIN (login.php) === */
        /* Login Page Styles */
        body.ept-login-page {
            background: linear-gradient(135deg, #2271b1 0%, #1a5a8e 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 20px;
            margin: 0;
        }
        
        .ept-login-card {
            background: #fff;
            border-radius: 16px;
            padding: 40px 30px;
            width: 100%;
            max-width: 380px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }
        
        .ept-login-logo {
            text-align: center;
            margin-bottom: 30px;
        }
        .ept-login-logo img {
            max-height: 60px;
            margin: 0 auto 15px auto;
            display: block;
        }
        .ept-login-logo h1 {
            margin: 0;
            font-size: 1.5rem;
            color: #2c3e50;
        }
        .ept-login-logo p {
            margin: 5px 0 0;
            color: #5a6a7a;
            font-size: 0.9rem;
        }
        
        /* Form Styles - Graue Schriften */
        .ept-label {
            color: #2c3e50;
            font-weight: 600;
            font-size: 0.9rem;
        }
        
        .ept-input {
            color: #2c3e50;
            border: 1px solid #d0d5dd;
        }
        .ept-input::placeholder {
            color: #8a95a5;
        }
        .ept-input:focus {
            border-color: #2271b1;
            box-shadow: 0 0 0 3px rgba(34,113,177,0.1);
        }
        
        /* Password Toggle */
        .ept-password-wrapper {
            position: relative;
        }
        .ept-password-wrapper .ept-input {
            padding-right: 50px;
        }
        .ept-password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1.2rem;
            color: #5a6a7a;
            padding: 5px;
        }
        .ept-password-toggle:hover {
            color: #2271b1;
        }
        
        /* Checkbox */
        .ept-checkbox-label {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            color: #5a6a7a;
            font-size: 0.9rem;
        }
        .ept-checkbox-label input[type="checkbox"] {
            width: 18px;
            height: 18px;
            accent-color: #2271b1;
        }
        
        /* Links */
        .ept-login-link {
            color: #2271b1;
            text-decoration: none;
        }
        .ept-login-link:hover {
            text-decoration: underline;
        }
        
        /* Texts */
        .ept-login-text {
            text-align: center;
            color: #5a6a7a;
            margin-bottom: 20px;
        }
        .ept-login-title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        
        /* Footer */
        .ept-login-footer {
            text-align: center;
            margin-top: 30px;
            color: rgba(255,255,255,0.7);
            font-size: 0.85rem;
        }
        
        /* Alerts */
        .ept-alert {
            border-radius: 8px;
            padding: 12px 15px;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }
        .ept-alert-danger {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }
        .ept-alert-success {
            background: #f0fdf4;
            color: #166534;
            border: 1px solid #bbf7d0;
        }

/* === MITARBEITER-PORTAL (employee-portal.php) === */
        /* Reset - alle Theme-Styles überschreiben */
        body.ept-portal-page { 
            padding-top: 0 !important; 
            padding-bottom: 20px !important; 
            margin: 0 !important;
            color: #495057;
        }
        
        /* Wrapper für alles */
        .ept-portal-wrapper {
            padding-top: 115px;
        }
        
        /* Header - Dunkelblau, fixiert */
        .ept-header { 
            position: fixed; 
            top: 0; 
            left: 0; 
            right: 0; 
            z-index: 1000;
            height: 60px;
            padding: 12px 20px;
            box-sizing: border-box;
            background: #2271b1;
            color: #fff;
        }
        .ept-header h1 {
            margin: 0;
            font-size: 1.1rem;
            line-height: 1.2;
            color: #fff;
        }
        .ept-header-sub {
            font-size: 0.75rem;
            margin-top: 2px;
            opacity: 0.9;
        }
        
        /* Navigation - direkt unter Header */
        .ept-top-nav {
            position: fixed;
            top: 60px;
            left: 0;
            right: 0;
            height: 50px;
            background: #f0f7fc;
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.08);
            z-index: 999;
            border-bottom: 1px solid #d4e5f2;
            box-sizing: border-box;
        }
        
        .ept-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #5a6a7a;
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 8px;
            transition: all 0.2s ease;
        }
        .ept-nav-item.active { 
            color: #1a5a8e; 
            background: rgba(255,255,255,0.8); 
            font-weight: 600; 
        }
        .ept-nav-item:hover { 
            background: rgba(255,255,255,0.6); 
        }
        .ept-nav-icon { 
            font-size: 1.1rem; 
            margin-bottom: 2px; 
        }
        
        /* Container */
        .ept-container {
            padding: 15px;
            max-width: 600px;
            margin: 0 auto;
        }
        
        /* Schriften - Alle Grautöne für Lesbarkeit */
        .ept-kpi-label { color: #5a6a7a !important; }
        .ept-kpi-value { color: #2c3e50 !important; }
        .ept-shift-details { color: #5a6a7a !important; }
        .ept-shift-project { color: #2c3e50 !important; }
        .ept-list-item-sub { color: #5a6a7a !important; }
        .ept-list-item-title { color: #2c3e50 !important; }
        .text-muted { color: #5a6a7a !important; }
        .ept-section-title { color: #2c3e50 !important; }
        .ept-shift-hours-label { color: #5a6a7a !important; }
        .ept-shift-hours-value { color: #2c3e50 !important; }
        .ept-calendar-day-count { color: #5a6a7a !important; }
        .ept-calendar-day-header { color: #2c3e50 !important; }
        /* Feiertage v5.11.5 */
        .ept-holiday-day .ept-calendar-day-header { background: rgba(214, 54, 56, 0.08) !important; }
        .ept-holiday-day .ept-calendar-day-header span:first-child { color: #d63638 !important; font-weight: 700; }
        .ept-holiday-badge { display:inline-block; background:#d63638; color:#fff; font-size:0.7rem; padding:2px 6px; border-radius:4px; margin-left:6px; font-weight:600; }
        .ept-empty-text { color: #5a6a7a !important; }
        .ept-card-body { color: #495057; }
        /* Formular-Styles */
        .ept-label { color: #2c3e50 !important; font-weight: 500; }
        .ept-input, .ept-select, input[type="text"], input[type="email"], input[type="date"], input[type="time"], input[type="number"], select, textarea { color: #495057 !important; background: #fff; }
        .ept-form-group label { color: #2c3e50 !important; }
        
        /* Standort */
        .ept-shift-location { 
            background: #f8f9fa; 
            padding: 10px 15px; 
            border-top: 1px solid #eee;
            font-size: 0.9rem;
            color: #5a6a7a;
        }
        .ept-shift-location a { 
            color: #1a5a8e; 
            text-decoration: none; 
        }
        
        /* Notizen */
        .ept-shift-notes {
            background: #fffbeb;
            padding: 10px 15px;
            border-top: 1px solid #f0e6c8;
            font-size: 0.85rem;
            color: #7a6a3a;
        }
        
        /* Alert Warnung */
        .ept-alert-warning {
            background: #fff8e6;
            color: #6a5a2a;
            border: 1px solid #f0e0a0;
        }

/* === TEAM-PORTAL (team-portal.php) === */
        :root{--team-primary:#27AE60;--text-dark:#2c3e50;--text-gray:#495057;--text-muted:#5a6a7a}
        body.ept-portal-page{padding-top:0!important;padding-bottom:20px!important;margin:0!important;color:var(--text-gray);background:#f5f7fa}
        .ept-portal-wrapper{padding-top:115px}
        .ept-header{position:fixed;top:0;left:0;right:0;z-index:1000;height:60px;padding:12px 20px;box-sizing:border-box;background:var(--team-primary);color:#fff}
        .ept-header h1{margin:0;font-size:1.1rem;color:#fff}
        .ept-header-sub{font-size:.75rem;opacity:.9}
        .ept-top-nav{position:fixed;top:60px;left:0;right:0;height:50px;background:#f0f7fc;display:flex;justify-content:space-around;align-items:center;z-index:999;border-bottom:1px solid #d4e5f2}
        .ept-nav-item{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:var(--text-muted);font-size:.7rem;padding:4px 10px;border-radius:8px}
        .ept-nav-item.active{color:var(--team-primary);background:rgba(255,255,255,.8);font-weight:600}
        .ept-nav-icon{font-size:1.2rem;margin-bottom:1px}
        .ept-container{padding:15px;max-width:800px;margin:0 auto}
        .ept-kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}
        .ept-kpi{background:#fff;border-radius:10px;padding:12px;text-align:center;box-shadow:0 2px 6px rgba(0,0,0,.05)}
        .ept-kpi-value{font-size:1.5rem;font-weight:700;color:var(--text-dark)}
        .ept-kpi-label{font-size:.7rem;color:var(--text-muted)}
        .ept-card{background:#fff;border-radius:12px;margin-bottom:15px;box-shadow:0 2px 8px rgba(0,0,0,.06);overflow:hidden}
        .ept-section-header{margin:20px 0 10px}
        .ept-section-title{font-size:1rem;font-weight:600;color:var(--text-dark);margin:0}
        .ept-list{list-style:none;margin:0;padding:0}
        .ept-list-item{display:flex;align-items:center;gap:12px;padding:12px 15px;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .2s}
        .ept-list-item:hover{background:#f8f9fa}
        .ept-list-item:last-child{border-bottom:none}
        .ept-list-item-icon{font-size:1.2rem}
        .ept-list-item-content{flex:1}
        .ept-list-item-title{font-weight:600;color:var(--text-dark)}
        .ept-list-item-sub{font-size:.85rem;color:var(--text-muted)}
        .ept-member-status{font-size:.7rem;padding:3px 8px;border-radius:10px;font-weight:600}
        .ept-member-status.working{background:#e8f5e9;color:#2e7d32}
        .ept-member-status.absent{background:#ffebee;color:#c62828}
        .ept-member-status.available{background:#e3f2fd;color:#1565c0}
        .ept-contact-links{display:flex;gap:8px;margin-top:5px;flex-wrap:wrap}
        .ept-contact-link{display:inline-flex;align-items:center;gap:4px;padding:4px 8px;background:#f0f7fc;border-radius:6px;text-decoration:none;font-size:.75rem;color:var(--team-primary)}
        .ept-contact-link:hover{background:#d4e5f2}
        .ept-shift-status{font-size:.7rem;padding:2px 6px;border-radius:10px}
        .ept-shift-status.planned{background:#e3f2fd;color:#1565c0}
        .ept-shift-status.confirmed{background:#e8f5e9;color:#2e7d32}
        .ept-shift-status.completed{background:#f3e5f5;color:#7b1fa2}
        .ept-calendar-day{background:#fff;border-radius:12px;margin-bottom:15px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.06)}
        .ept-calendar-day-header{padding:10px 15px;background:#f8f9fa;display:flex;justify-content:space-between;align-items:center;font-weight:600;color:var(--text-dark)}
        .ept-calendar-day-count{font-size:.8rem;color:var(--text-muted);font-weight:normal}
        .ept-absence-card{background:#fff;border-radius:12px;border-left:4px solid #f39c12;margin-bottom:15px;box-shadow:0 2px 8px rgba(0,0,0,.06)}
        .ept-absence-card-body{padding:15px}
        /* Akut-Alarm + Feiertage v5.11.5 */
        .ept-acute-alert{background:#d63638;color:#fff;padding:15px;border-radius:12px;margin-bottom:20px}
        .ept-acute-alert-title{font-weight:700;font-size:1.1rem;margin-bottom:8px}
        .ept-acute-alert-item{background:rgba(255,255,255,.15);padding:10px;border-radius:8px;margin-bottom:8px}
        .ept-acute-alert-name{font-weight:600}
        .ept-acute-alert-type{opacity:.9;font-size:.85rem}
        .ept-acute-alert-replace{display:flex;align-items:center;justify-content:space-between;background:rgba(255,255,255,.12);padding:8px 10px;border-radius:6px;margin-bottom:6px;flex-wrap:wrap;gap:6px}
        .ept-acute-alert-replace-name{font-weight:500}
        .ept-acute-alert-replace-actions{display:flex;gap:6px}
        .ept-alert-action-btn{display:inline-block;background:rgba(255,255,255,.25);color:#fff;padding:6px 12px;border-radius:6px;text-decoration:none;font-size:.85rem;font-weight:600;min-height:44px;line-height:30px}
        .ept-alert-action-btn:active{background:rgba(255,255,255,.4)}
        .ept-holiday-badge{display:inline-block;background:#d63638;color:#fff;font-size:.7rem;padding:2px 6px;border-radius:4px;margin-left:6px;font-weight:600}
        .ept-absence-name{font-weight:600;color:var(--text-dark)}
        .ept-absence-type{color:var(--text-muted);margin:5px 0}
        .ept-absence-dates{color:var(--text-muted);font-size:.85rem}
        .ept-absence-actions{display:flex;gap:10px;margin-top:15px}
        .ept-absence-actions form{flex:1}
        .ept-empty{text-align:center;padding:30px}
        .ept-empty-icon{font-size:2.5rem;margin-bottom:10px}
        .ept-empty-text{color:var(--text-muted)}
        .ept-badge{display:inline-block;padding:3px 8px;border-radius:12px;font-size:.7rem;font-weight:600}
        .ept-badge-success{background:#d4edda;color:#155724}
        .ept-badge-danger{background:#f8d7da;color:#721c24}
        .ept-modal{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);z-index:2000;align-items:center;justify-content:center}
        .ept-modal-content{background:#fff;border-radius:12px;width:95%;max-width:500px;max-height:90vh;overflow-y:auto}
        .ept-modal-header{padding:15px;border-bottom:1px solid #eee;display:flex;justify-content:space-between;align-items:center}
        .ept-modal-title{margin:0;font-size:1.1rem;color:var(--text-dark)}
        .ept-modal-close{background:none;border:none;font-size:1.5rem;cursor:pointer;color:var(--text-muted)}
        .ept-modal-body{padding:15px}
        .ept-label{color:var(--text-dark)!important;font-weight:500;margin-bottom:5px;display:block;font-size:.85rem}
        .ept-input,.ept-select,textarea{color:var(--text-gray)!important;background:#fff!important;width:100%;padding:8px 10px;border:1px solid #ddd;border-radius:6px;font-size:1rem;box-sizing:border-box}
        .ept-form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}
        .ept-form-group{margin-bottom:12px}
        .ept-btn-danger{background:#e74c3c!important;color:#fff!important;border:none}
        .text-danger{color:#e74c3c!important}
        .mt-3{margin-top:20px}
        @media(max-width:500px){.ept-form-row{grid-template-columns:1fr}.ept-kpi-grid{grid-template-columns:repeat(2,1fr)}}

/* === CONTROLLING-PORTAL (controlling-portal.php) === */
        :root { --text-dark: #2c3e50; --text-gray: #495057; --text-muted: #5a6a7a; }
        body.ept-portal-page { 
            padding-top: 0 !important; 
            padding-bottom: 20px !important; 
            margin: 0 !important;
            color: var(--text-gray);
        }
        .ept-portal-wrapper { padding-top: 115px; }
        .ept-header { 
            position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
            height: 60px; padding: 12px 20px; box-sizing: border-box;
            background: #2271b1; color: #fff;
        }
        .ept-header h1 { margin: 0; font-size: 1.1rem; color: #fff; }
        .ept-header-sub { font-size: 0.75rem; opacity: 0.9; }
        .ept-top-nav {
            position: fixed; top: 60px; left: 0; right: 0; height: 50px;
            background: #f0f7fc; display: flex; justify-content: space-around;
            align-items: center; z-index: 999; border-bottom: 1px solid #d4e5f2;
        }
        .ept-nav-item {
            display: flex; flex-direction: column; align-items: center;
            text-decoration: none; color: #5a6a7a; font-size: 0.65rem;
            padding: 4px 8px; border-radius: 8px;
        }
        .ept-nav-item.active { color: #1a5a8e; background: rgba(255,255,255,0.8); font-weight: 600; }
        .ept-nav-item:hover { background: rgba(255,255,255,0.6); }
        .ept-nav-icon { font-size: 1.1rem; margin-bottom: 2px; }
        .ept-container { padding: 15px; max-width: 600px; margin: 0 auto; }
        .ept-month-nav {
            display: flex; align-items: center; justify-content: space-between;
            background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 20px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .ept-month-nav a {
            display: flex; align-items: center; justify-content: center;
            width: 40px; height: 40px; background: #f0f7fc; border-radius: 8px;
            text-decoration: none; color: #2271b1; font-size: 1.2rem;
        }
        .ept-month-nav span { font-weight: 600; color: #2c3e50; }
        .ept-stat-card {
            background: #fff; border-radius: 12px; padding: 15px;
            margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }
        .ept-stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .ept-stat-label { font-size: 0.9rem; color: #5a6a7a; }
        .ept-stat-value { font-size: 1.4rem; font-weight: 700; }
        .ept-stat-sub { font-size: 0.8rem; color: #5a6a7a; margin-top: 5px; }
        .ept-progress { background: #eee; border-radius: 5px; height: 8px; overflow: hidden; }
        .ept-progress-bar { height: 100%; border-radius: 5px; }
        .ept-dept-card { padding: 15px; border-bottom: 1px solid #eee; }
        .ept-dept-card:last-child { border-bottom: none; }
        .ept-dept-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; font-size: 0.85rem; }
        .ept-dept-stat { text-align: center; padding: 8px; background: #f8f9fa; border-radius: 6px; }
        .ept-dept-stat-value { font-weight: 600; color: #2c3e50; }
        .ept-dept-stat-label { font-size: 0.75rem; color: #5a6a7a; }
        .ept-kpi-label { color: #5a6a7a !important; }
        .ept-kpi-value { color: #2c3e50 !important; }
        .ept-section-title { color: #2c3e50 !important; }
        .text-muted { color: #5a6a7a !important; }

/* === PLANNING-PORTAL (planning-portal.php) === */
        :root { --admin-primary: #1e3a5f; --admin-secondary: #2c5282; --text-dark: #2c3e50; --text-gray: #495057; --text-muted: #5a6a7a; }
        body.ept-portal-page { padding-top: 0 !important; padding-bottom: 20px !important; margin: 0 !important; color: var(--text-gray); background: #f5f7fa; }
        .ept-portal-wrapper { padding-top: 115px; }
        .ept-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 60px; padding: 12px 20px; box-sizing: border-box; background: var(--admin-primary); color: #fff; }
        .ept-header h1 { margin: 0; font-size: 1.1rem; color: #fff; }
        .ept-header-sub { font-size: 0.75rem; opacity: 0.9; }
        .ept-top-nav { position: fixed; top: 60px; left: 0; right: 0; height: 50px; background: #e8f4f8; display: flex; justify-content: space-around; align-items: center; z-index: 999; border-bottom: 1px solid #c5dde5; overflow-x: auto; }
        .ept-nav-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-muted); font-size: 0.6rem; padding: 4px 6px; border-radius: 8px; white-space: nowrap; }
        .ept-nav-item.active { color: var(--admin-primary); background: rgba(255,255,255,0.8); font-weight: 600; }
        .ept-nav-icon { font-size: 1rem; margin-bottom: 2px; }
        .ept-container { padding: 15px; max-width: 800px; margin: 0 auto; }
        .ept-admin-card { background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
        .ept-admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
        .ept-admin-card-title { font-weight: 600; color: var(--text-dark); }
        .ept-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 15px; }
        .ept-kpi-box { background: #fff; border-radius: 10px; padding: 12px; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
        .ept-kpi-box-value { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
        .ept-kpi-box-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
        .ept-progress { background: #eee; border-radius: 5px; height: 8px; overflow: hidden; }
        .ept-progress-bar { height: 100%; border-radius: 5px; }
        .ept-month-nav { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 10px; margin-bottom: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
        .ept-month-nav a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: #e8f4f8; border-radius: 8px; text-decoration: none; color: var(--admin-primary); font-size: 1.1rem; }
        .ept-month-nav span { font-weight: 600; color: var(--text-dark); }
        .ept-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
        .ept-table th { text-align: left; padding: 10px 8px; background: #f8f9fa; color: var(--text-muted); font-weight: 600; }
        .ept-table td { padding: 10px 8px; border-bottom: 1px solid #eee; color: var(--text-gray); }
        .ept-table strong { color: var(--text-dark); }
        .ept-table a { color: var(--admin-primary); }
        .ept-cal-tabs { display: flex; gap: 5px; margin-bottom: 15px; }
        .ept-cal-tab { flex: 1; padding: 8px; text-align: center; background: #fff; border: 1px solid #ddd; border-radius: 8px; text-decoration: none; color: var(--text-gray); font-size: 0.8rem; }
        .ept-cal-tab.active { background: var(--admin-primary); color: #fff; border-color: var(--admin-primary); }
        .ept-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
        .ept-cal-header { background: var(--admin-primary); color: #fff; padding: 8px 4px; text-align: center; font-size: 0.75rem; font-weight: 600; }
        .ept-cal-day { background: #fff; min-height: 70px; padding: 4px; border: 1px solid #eee; font-size: 0.75rem; cursor: pointer; color: var(--text-gray); }
        .ept-cal-day:hover { background: #f0f7fc; }
        .ept-cal-day.today { background: #e8f4f8; border-color: var(--admin-primary); }
        .ept-cal-day.other-month { background: #f8f9fa; color: #aaa; }
        .ept-cal-day-num { font-weight: 600; margin-bottom: 4px; color: var(--text-dark); }
        .ept-cal-event { background: var(--admin-secondary); color: #fff; padding: 2px 4px; border-radius: 3px; margin-bottom: 2px; font-size: 0.65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
        .ept-cal-event:hover { opacity: 0.9; }
        /* Feiertage + Akut-Alarm v5.11.5 */
        .ept-cal-day.ept-holiday { background: rgba(214,54,56,0.06); }
        .ept-cal-day.ept-holiday .ept-cal-day-num { color: #d63638; font-weight: 700; }
        .ept-holiday-badge-sm { display:block; background:#d63638; color:#fff; font-size:0.55rem; padding:1px 3px; border-radius:3px; margin-bottom:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
        .ept-acute-alert { background:#d63638; color:#fff; padding:15px; border-radius:12px; margin-bottom:20px; }
        .ept-acute-alert-title { font-weight:700; font-size:1.1rem; margin-bottom:8px; }
        .ept-acute-alert-item { background:rgba(255,255,255,0.15); padding:10px; border-radius:8px; margin-bottom:8px; }
        .ept-acute-alert-name { font-weight:600; }
        .ept-acute-alert-type { opacity:0.9; font-size:0.85rem; }
        .ept-acute-alert-replace { display:flex; align-items:center; justify-content:space-between; background:rgba(255,255,255,0.12); padding:8px 10px; border-radius:6px; margin-bottom:6px; flex-wrap:wrap; gap:6px; }
        .ept-acute-alert-replace-name { font-weight:500; }
        .ept-acute-alert-replace-actions { display:flex; gap:6px; }
        .ept-alert-action-btn { display:inline-block; background:rgba(255,255,255,0.25); color:#fff; padding:6px 12px; border-radius:6px; text-decoration:none; font-size:0.85rem; font-weight:600; min-height:44px; line-height:30px; }
        .ept-alert-action-btn:active { background:rgba(255,255,255,0.4); }
        .ept-week-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
        .ept-week-day { background: #fff; border-radius: 8px; padding: 10px; min-height: 120px; border: 1px solid #eee; }
        .ept-week-day.today { border-color: var(--admin-primary); background: #f0f7fc; }
        .ept-week-day-header { font-weight: 600; color: var(--text-dark); margin-bottom: 8px; padding-bottom: 5px; border-bottom: 1px solid #eee; font-size: 0.8rem; }
        .ept-week-shift { background: var(--admin-secondary); color: #fff; padding: 4px 6px; border-radius: 4px; margin-bottom: 4px; font-size: 0.7rem; cursor: pointer; }
        .ept-week-shift:hover { opacity: 0.9; }
        .ept-shift-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid #eee; color: var(--text-gray); cursor: pointer; transition: background 0.2s; }
        .ept-shift-item:hover { background: #f8f9fa; }
        .ept-shift-item:last-child { border-bottom: none; }
        .ept-shift-time { font-weight: 600; color: var(--admin-primary); min-width: 90px; }
        .ept-shift-name { flex: 1; color: var(--text-dark); }
        .ept-shift-name strong { color: var(--text-dark); }
        .ept-shift-project { font-size: 0.8rem; color: var(--text-muted); }
        .ept-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
        .ept-modal-content { background: #fff; border-radius: 12px; width: 95%; max-width: 600px; max-height: 90vh; overflow-y: auto; color: var(--text-gray); }
        .ept-modal-header { padding: 15px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
        .ept-modal-title { margin: 0; font-size: 1.1rem; color: var(--text-dark); }
        .ept-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
        .ept-modal-body { padding: 15px; }
        .ept-label { color: var(--text-dark) !important; font-weight: 500; margin-bottom: 5px; display: block; font-size: 0.85rem; }
        .ept-input, .ept-select, textarea { color: var(--text-gray) !important; background: #fff; width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 1rem; box-sizing: border-box; }
        .ept-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .ept-form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
        @media (max-width: 500px) { .ept-form-row, .ept-form-row-3 { grid-template-columns: 1fr; } }
        .ept-form-group { margin-bottom: 12px; }
        .ept-form-section { margin-top: 15px; padding-top: 15px; border-top: 1px solid #eee; }
        .ept-form-section-title { font-weight: 600; color: var(--text-dark); margin-bottom: 10px; font-size: 0.9rem; }
        .ept-badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: 600; }
        .ept-badge-success { background: #d4edda; color: #155724; }
        .ept-badge-warning { background: #fff3cd; color: #856404; }
        .ept-badge-danger { background: #f8d7da; color: #721c24; }
        .ept-badge-info { background: #d1ecf1; color: #0c5460; }
        .text-success { color: #27ae60 !important; }
        .text-warning { color: #f39c12 !important; }
        .text-danger { color: #e74c3c !important; }
        .text-muted { color: var(--text-muted) !important; }
        .ept-action-btn { padding: 5px 10px; border: none; border-radius: 5px; cursor: pointer; font-size: 0.8rem; margin-right: 5px; }
        .ept-action-btn-edit { background: #e8f4f8; color: var(--admin-primary); }
        .ept-action-btn-delete { background: #f8d7da; color: #c0392b; }
        .ept-btn-danger { background: #e74c3c !important; color: #fff !important; border: none; }
        .ept-btn-danger:hover { background: #c0392b !important; }
        small { font-size: 0.75rem; color: var(--text-muted); }
        .ept-shift-status { font-size: 0.7rem; padding: 2px 6px; border-radius: 10px; }
        .ept-shift-status.planned { background: #e3f2fd; color: #1565c0; }
        .ept-shift-status.confirmed { background: #e8f5e9; color: #2e7d32; }
        .ept-shift-status.completed { background: #f3e5f5; color: #7b1fa2; }
        .ept-shift-status.cancelled { background: #ffebee; color: #c62828; }

/* ==================== Abwesenheits-Chips im Kalender (v5.17.7) ==================== */
.ept-abs-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    line-height: 1.25;
    padding: 2px 6px;
    margin: 2px 0;
    border-radius: 5px;
    border-left: 3px solid var(--abs-color, #7f8c8d);
    background: #f5f6f8;
    background: color-mix(in srgb, var(--abs-color, #7f8c8d) 12%, #ffffff);
    color: #2c3e50;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ept-abs-chip em {
    font-style: normal;
    opacity: 0.7;
    font-size: 0.92em;
}
.ept-abs-chip--requested {
    border-left-style: dashed;
    opacity: 0.7;
}
