
        .company-row {
            display: flex;
            align-items: center;
            margin-bottom: 18px; /* 增加間距為現有行高的50% (40px * 50% = 20px) */
            margin-top: 18px; /* 增加間距為現有行高的50% (40px * 50% = 20px) */
            position: relative;
            flex: 1; /* 每行平均分配空間 */
            min-height: 0; /* 允許縮小 */
            opacity: 1; /* 直接顯示 */
            transform: none; /* 移除變形 */
            animation: none; /* 移除動畫 */
        }

        /* 最後一個公司行縮小底部間距 */
        .company-row:last-child {
            margin-bottom: 10px; /* 縮小最後一行的底部間距 */
        }

        .company-label {
            width: 180px;
            font-weight: 600;
            font-size: 16px;
            padding-right: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .company-icon {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            color: white;
        }
        
 /* Generic animation popup styles */
        .animation-popup {
            position: absolute;
            left: 100%;
            top: 50%;
            transform: translateY(-50%) translateX(10px) scale(0.9);
            border-radius: 15px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.25);
            z-index: 1001;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease-out, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 20px;
            margin-top: 50px;
            margin-bottom: 50px;
        }

        .timeline-bar:hover + .animation-popup {
            opacity: 1;
            pointer-events: auto;
            transform: translateY(-50%) translateX(0) scale(1);
        }
        
        @media (max-width: 768px) {
            .gantt-container { padding: 20px; }
            .gantt-title { font-size: 24px; }
            .company-label { width: 120px; font-size: 14px; }
        }



        