:root {
            --primary: #1a1a2e;
            --secondary: #16213e;
            --accent: #ffd700;
            --success: #22c55e;
            --warning: #eab308;
            --danger: #dc2626;
            --info: #0ea5e9;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #0f172a;
            color: #e5e7eb;
        }

        .container {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 15px 40px;
        }

        .card {
            background:
                radial-gradient(circle at top left, rgba(148,163,184,.3), transparent 55%),
                linear-gradient(135deg, #020617, #020617);
            border-radius: 12px;
            padding: 20px 20px 24px;
            border: 1px solid rgba(148,163,184,.35);
            box-shadow: 0 18px 40px rgba(15,23,42,.8);
        }

        .header {
            border-bottom: 1px solid rgba(148,163,184,.35);
            padding-bottom: 14px;
            margin-bottom: 18px;
            text-align: left;
        }

        .header h1 {
            color: var(--accent);
            font-size: 1.5rem;
            font-weight: 600;
            text-shadow: 0 2px 10px rgba(255,215,0,0.25);
        }

        .header p {
            color: #9ca3af;
            margin-top: 6px;
            font-size: 0.9rem;
        }

        .header-meta {
            margin-top: 6px;
            font-size: 0.8rem;
            color: #6b7280;
        }

        .header-meta span {
            display: inline-block;
            padding: 3px 8px;
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,.5);
            margin-left: 4px;
            font-size: 0.75rem;
            color: #e5e7eb;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 10px;
            margin: 16px 0 20px;
        }

        .stat-card {
            background: rgba(15,23,42,.9);
            padding: 10px 11px;
            border-radius: 10px;
            border: 1px solid rgba(148,163,184,.35);
            text-align: left;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .stat-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(15,23,42,.9);
            border-color: var(--accent);
        }

        .stat-label {
            font-size: 0.7rem;
            color: #9ca3af;
            font-weight: 500;
        }

        .stat-number {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--accent);
            margin-top: 4px;
        }

        .stat-hint {
            font-size: 0.7rem;
            color: #6b7280;
            margin-top: 2px;
        }

        .nav-quick {
            text-align: center;
            margin: 12px 0 18px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 18px;
            border-radius: 999px;
            font-size: 0.8rem;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            border: 1px solid transparent;
            margin: 3px;
            transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
        }

        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 8px 18px rgba(15,23,42,.9);
        }

        .btn-main {
            background: linear-gradient(135deg, var(--accent), #eab308);
            color: #111827;
            border-color: rgba(250,204,21,.75);
        }

        .btn-secondary {
            background: rgba(15,23,42,1);
            color: #e5e7eb;
            border-color: rgba(148,163,184,.55);
        }

        .btn-success {
            background: linear-gradient(135deg, #22c55e, #16a34a);
            color: #ecfdf5;
            border-color: rgba(34,197,94,.75);
        }

        .btn-purple {
            background: linear-gradient(135deg, #8b5cf6, #a855f7);
            color: #f5f3ff;
            border-color: rgba(168,85,247,.75);
        }

        .filters {
            display: flex;
            gap: 8px;
            margin: 6px 0 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .filter-btn {
            padding: 6px 12px;
            background: rgba(15,23,42,1);
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,.6);
            color: #e5e7eb;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
        }

        .filter-btn:hover {
            transform: translateY(-1px);
            border-color: var(--accent);
        }

        .filter-btn.active {
            background: var(--accent);
            color: #111827;
            border-color: var(--accent);
        }

        .search-box {
            background: rgba(15,23,42,1);
            border-radius: 999px;
            border: 1px solid rgba(148,163,184,.6);
            padding: 8px 14px;
            color: #e5e7eb;
            width: 100%;
            font-size: 0.8rem;
            margin: 6px 0 12px;
        }

        .search-box::placeholder {
            color: #6b7280;
        }

        .search-box:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 1px rgba(250,204,21,.75);
        }

        .section-title {
            font-size: 0.9rem;
            font-weight: 600;
            margin: 10px 0 6px;
            color: #e5e7eb;
        }

        .activity-item {
            background: rgba(15,23,42,.95);
            border-radius: 10px;
            padding: 12px 12px 14px;
            margin: 8px 0;
            border-left: 4px solid var(--accent);
            border: 1px solid rgba(30,64,175,.8);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
        }

        .activity-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 14px 28px rgba(15,23,42,.95);
            border-color: var(--accent);
            background: rgba(15,23,42,1);
        }

        .activity-login { border-left-color: var(--success); }
        .activity-process { border-left-color: var(--accent); }
        .activity-quality { border-left-color: var(--info); }
        .activity-system { border-left-color: #a855f7; }

        .activity-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 8px;
            margin-bottom: 8px;
            flex-wrap: wrap;
        }

        .timestamp {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            color: var(--accent);
            font-weight: 500;
        }

        .activity-phase {
            background: rgba(37,99,235,.15);
            border-radius: 999px;
            padding: 4px 9px;
            font-size: 0.7rem;
            color: #bfdbfe;
            border: 1px solid rgba(129,140,248,.7);
            font-weight: 500;
        }

        .employee-info {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 6px;
        }

        .employee-avatar {
            width: 32px;
            height: 32px;
            border-radius: 999px;
            background: radial-gradient(circle at top left, var(--accent), #eab308);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: #111827;
            font-size: 0.9rem;
        }

        .employee-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: #e5e7eb;
        }

        .case-name {
            font-size: 0.8rem;
            font-weight: 500;
            color: #22c55e;
        }

        .action-name {
            font-size: 0.9rem;
            font-weight: 600;
            margin-top: 4px;
            color: #f9fafb;
        }

        .activity-details {
            background: rgba(15,23,42,1);
            border-radius: 8px;
            padding: 8px 9px;
            margin-top: 8px;
            border-left: 3px solid var(--accent);
        }

        .detail-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 0.8rem;
            margin: 3px 0;
        }

        .detail-label {
            color: #9ca3af;
            font-weight: 500;
            min-width: 90px;
        }

        .detail-value {
            color: #e5e7eb;
            font-weight: 500;
        }

        .time-badge {
            background: rgba(250,204,21,.15);
            border-radius: 999px;
            padding: 2px 8px;
            font-size: 0.7rem;
            color: var(--accent);
            font-weight: 600;
        }

        .payment-info {
            background: rgba(22,163,74,.12);
            border-radius: 8px;
            padding: 8px 9px;
            margin-top: 8px;
            border-left: 3px solid var(--success);
        }

        .payment-calculation {
            font-size: 0.8rem;
        }

        .payment-total {
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--success);
        }

        .muted {
            color: #9ca3af;
            font-size: 0.78rem;
        }

        .navigation {
            text-align: center;
            margin-top: 14px;
            padding-top: 10px;
            border-top: 1px solid rgba(148,163,184,.35);
        }

        .empty-state {
            text-align: center;
            padding: 24px 16px;
            border-radius: 10px;
            background: rgba(15,23,42,1);
            border: 1px dashed rgba(148,163,184,.6);
            margin: 10px 0 14px;
        }

        .empty-state h3 {
            color: var(--accent);
            font-size: 1rem;
            margin-bottom: 8px;
        }

        .footer-info {
            text-align: center;
            margin-top: 10px;
            font-size: 0.7rem;
            color: #6b7280;
            padding: 8px 0 0;
        }

        .footer-info span {
            color: #e5e7eb;
        }

        @media (max-width: 900px) {
            .stats-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 600px) {
            .card {
                padding: 14px 12px 18px;
            }

            .stats-grid {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }

            .nav-quick .btn {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }

            .filters {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-btn {
                justify-content: center;
            }
        }

        @media print {
            body {
                background: #ffffff;
                color: #000000;
            }
            .card {
                background: #ffffff;
                box-shadow: none;
                border: none;
            }
            .btn, .filters, .search-box {
                display: none !important;
            }
            .activity-item {
                break-inside: avoid;
                page-break-inside: avoid;
                border-color: #e5e7eb;
            }
        }

        .global-app-shell{ max-width:1280px; margin:0 auto 16px auto; padding:0 0; }
        .global-app-header{
            background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.96));
            border-radius: 22px;
            border: 1px solid rgba(248,250,252,0.12);
            box-shadow: 0 18px 45px rgba(15,23,42,0.85);
            padding: 18px 20px;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:16px;
            position:relative;
            overflow:hidden;
        }
        .global-app-header::before{
            content:"";
            position:absolute;
            inset:-40%;
            background:
              radial-gradient(circle at 0% 0%, rgba(251,191,36,0.18), transparent 60%),
              radial-gradient(circle at 100% 0%, rgba(56,189,248,0.18), transparent 60%);
            opacity:0.22;
            pointer-events:none;
        }
        .global-app-left{ display:flex; align-items:center; gap:14px; position:relative; z-index:1; }
        .global-app-text{ display:flex; flex-direction:column; gap:2px; }
        .global-app-title{ font-size:1.25rem; font-weight:750; color:#e5e7eb; letter-spacing:0.02em; }
        .global-app-subtitle{ font-size:0.9rem; color:rgba(229,231,235,0.72); }

        .global-logo-badge{
            width:72px !important;
            height:72px !important;
            border-radius:18px !important;
            background: transparent !important;
            background-image: none !important;
            box-shadow: none !important;
            border: 1px solid rgba(148,163,184,0.35) !important;
            overflow:hidden !important;
            padding:0 !important;
            display:flex !important;
            align-items:center !important;
            justify-content:center !important;
            position:relative;
            z-index:1;
        }
        .global-logo-badge img{
            width:100% !important;
            height:100% !important;
            object-fit: contain !important;
            display:block !important;
            background: transparent !important;
        }

        .global-app-right{ position:relative; z-index:1; display:flex; align-items:center; gap:10px; }
        .global-pill-link{
            display:inline-flex;
            align-items:center;
            justify-content:center;
            padding:8px 14px;
            border-radius:999px;
            border:1px solid rgba(148,163,184,0.45);
            background: rgba(15,23,42,0.35);
            color:#e5e7eb;
            text-decoration:none;
            font-weight:600;
            font-size:0.85rem;
            backdrop-filter: blur(14px);
        }
        .global-pill-link:hover{ border-color: rgba(251,191,36,0.65); }

        @media (max-width: 700px){
            .global-app-header{ flex-direction:column; align-items:flex-start; }
            .global-app-right{ width:100%; }
        }

        :root{ --irLogoSize:72px; }

        .logo-badge, .logo-pill{
            width:var(--irLogoSize) !important;
            height:var(--irLogoSize) !important;
            border-radius:18px !important;
            background:transparent !important;
            background-image:none !important;
            box-shadow:none !important;
            overflow:hidden !important;
            padding:0 !important;
            display:inline-flex !important;
            align-items:center !important;
            justify-content:center !important;
            border:1px solid rgba(148,163,184,0.35) !important;
        }
        .logo-badge img, .logo-pill img{
            width:100% !important;
            height:100% !important;
            object-fit:contain !important;
            display:block !important;
            background:transparent !important;
        }

        img[src*="nachgpt-logo.png"]{
            max-width:var(--irLogoSize) !important;
            max-height:var(--irLogoSize) !important;
            width:var(--irLogoSize) !important;
            height:var(--irLogoSize) !important;
            object-fit:contain !important;
        }

        .global-app-right,
        .global-app-right a,
        .global-app-right button{ display:none !important; }

        .global-app-header{ justify-content:center !important; }
        .global-app-left{ margin-left:auto !important; margin-right:auto !important; }
        .global-app-left, .global-app-left .global-app-text{ text-align:left; }
