/* --- Admin Desktop Layout for Report View --- */
        /* --- Admin Desktop Layout for Report View --- */
        .admin-report-container {
            display: flex;
            gap: 20px;
            max-width: 1600px;
            margin: 20px auto;
            padding: 0 15px;
        }

        .admin-tree-sidebar {
            width: 300px;
            flex-shrink: 0;
            background: #ffffff;
            border-radius: 12px;
            padding: 16px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            max-height: 82vh;
            overflow-y: auto;
            border: 1px solid #e0e6ed;
        }

        .admin-report-main {
            flex-grow: 1;
            min-width: 0;
            background: #ffffff;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 1px solid #e0e6ed;
        }

        .admin-summary-sidebar {
            width: 340px;
            flex-shrink: 0;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
            border: 1px solid #e0e6ed;
            display: flex;
            flex-direction: column;
            max-height: 82vh;
        }

        /* Fallback for Mobile Users */
        @media (max-width: 1024px) {
            .admin-report-container {
                flex-direction: column;
            }
            .admin-tree-sidebar, .admin-summary-sidebar {
                width: 100%;
                max-height: 350px;
            }
        }

        /* Tree Styling */
        .tree-title {
            font-size: 16px;
            font-weight: 700;
            color: #0052cc;
            margin-bottom: 12px;
            border-bottom: 2px solid #eef2f7;
            padding-bottom: 8px;
        }

        .tree-list, .tree-children {
            list-style: none;
            padding-left: 0;
            margin: 0;
        }

        .tree-children {
            padding-left: 20px;
            margin-top: 4px;
        }

        .tree-item {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 10px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: background 0.15s ease;
        }

        .tree-item:hover {
            background: #f0f4f9;
        }

        .tree-item.active {
            background: #e6f0ff;
            color: #0052cc;
            font-weight: 600;
        }

        .tree-item .badge-role {
            font-size: 10px;
            background: #e2e8f0;
            padding: 2px 6px;
            border-radius: 4px;
            color: #475569;
        }

        /* Fallback for Mobile Users */
        @media (max-width: 768px) {
            .admin-report-container {
                flex-direction: column;
            }
            .admin-tree-sidebar {
                width: 100%;
                max-height: 250px;
            }
        }
        @keyframes scrollText { 
            0% { transform: translateX(100%); } 
            100% { transform: translateX(-150%); } 
        } 
        .animate-scroll { 
            display: inline-block; 
            white-space: nowrap; 
            animation: scrollText 12s linear infinite; 
        } 
        /* Base Timeline Container */
        .timeline-container {
            background-color: #f4f5f6; /* Light gray background from fig 1 */
            padding: 20px;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        /* Individual Visit Item */
        .timeline-item {
            display: flex;
            position: relative;
            margin-bottom: 24px;
        }

        /* Dashed Timeline Line */
        .timeline-item::before {
            content: '';
            position: absolute;
            top: 40px; /* Start below the icon */
            bottom: -40px; /* Extend to next item */
            left: 20px; /* Centered under the 40px icon */
            border-left: 2px dashed #d1d5db;
            z-index: 1;
        }
        .timeline-item:last-child::before {
            display: none; /* Hide line for the last item */
        }

        /* Left Icon (1ST, FU, OB, etc.) */
        .timeline-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: #ffffff;
            border: 2px solid #3b82f6; /* Default Blue */
            color: #3b82f6;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            z-index: 2;
            margin-right: 16px;
            flex-shrink: 0;
        }
        /* Icon Color Variations */
        .timeline-icon.type-fu { border-color: #0d9488; color: #0d9488; } /* Teal */
        .timeline-icon.type-ob { border-color: #059669; color: #059669; } /* Green */
        .timeline-icon.type-ld { border-color: #7c3aed; color: #7c3aed; } /* Purple */

        /* The Main Card */
        .timeline-card {
            background: #ffffff;
            border-radius: 12px;
            padding: 16px;
            width: 100%;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            border: 1px solid #e5e7eb;
        }

        /* Card Header (Name & Time) */
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 4px;
        }
        .card-title {
            font-size: 18px;
            font-weight: 700;
            color: #111827;
            margin: 0;
        }
        .card-time {
            font-family: monospace;
            font-size: 13px;
            font-weight: 600;
            color: #4b5563;
        }

        /* Subheader (Entity Type & Visit Badge) */
        .card-subheader {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 16px;
        }
        .card-role {
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }
        .visit-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 12px;
            text-transform: uppercase;
        }
        /* Visit Badge Variations */
        .visit-badge.first-time { background-color: #e0e7ff; color: #4338ca; }
        .visit-badge.follow-up { background-color: #ccfbf1; color: #0f766e; }
        .visit-badge.onboarding { background-color: #d1fae5; color: #047857; }

        /* Pitch & Status Area */
        .pitch-status-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
            border-top: 1px solid #f3f4f6;
            padding-top: 12px;
        }
        .pitch-badge {
            font-size: 13px;
            font-weight: 600;
            padding: 6px 12px;
            border-radius: 8px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }
        .pitch-hot { background-color: #fee2e2; color: #dc2626; }
        .pitch-warm { background-color: #fef3c7; color: #d97706; }
        .status-text {
            font-size: 14px;
            font-weight: 600;
            color: #4b5563;
        }

        /* Field Note Area */
        .field-note {
            background-color: #f3f4f6;
            border-radius: 8px;
            padding: 12px 16px;
            border-left: 4px solid #0d9488; /* Teal border */
        }
        .field-note-label {
            font-size: 11px;
            font-weight: 700;
            color: #0d9488;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 4px;
        }
        .field-note-text {
            font-size: 14px;
            font-style: italic;
            color: #374151;
            margin: 0;
        }

        /* Distance Marker (Between Cards) */
        .distance-marker-container {
            position: relative;
            margin-left: 10px; /* Align with the dashed line */
            margin-bottom: 24px;
            display: flex;
            align-items: center;
        }
        .distance-marker {
            background-color: #f4f5f6;
            border: 1px solid #d1d5db;
            border-radius: 12px;
            padding: 4px 10px;
            font-family: monospace;
            font-size: 11px;
            font-weight: 600;
            color: #4b5563;
            z-index: 2;
        }