.fi-sc-section.full-height-section {
    height: 100%;
}

.fi-sc-section.full-height-section > .fi-section:not(.fi-collapsed) {
    flex: 1;
}

.fi-dropdown-list-item.fi-select-input-option.fi-disabled::after {
    content: " ";
    width: 10px;
    height: 10px;
    background-color: #f00;
    border-radius: 50%;
    display: inline-block;
    margin-top: 1px;
}

/* ==========================================================================
   Task Timeline Widget
   ========================================================================== */

.task-timeline {
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem 0;
}

.task-timeline-inner {
    position: relative;
}

/* Center line */
.task-timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #e5e7eb 0.5%, #e5e7eb 90%, transparent);
    transform: translateX(-50%);
}

.dark .task-timeline-line {
    background: linear-gradient(to bottom, transparent, #374151 0.5%, #374151 90%, transparent);
}

/* Timeline item */
.task-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Left side items */
.task-timeline-item--left {
    flex-direction: row;
    padding-right: calc(50% + 1.5rem);
}

.task-timeline-item--left .task-timeline-card {
    margin-left: auto;
    text-align: right;
}

.task-timeline-item--left .task-timeline-header {
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.task-timeline-item--left .task-timeline-meta {
    justify-content: flex-end;
}

/* Right side items */
.task-timeline-item--right {
    flex-direction: row-reverse;
    padding-left: calc(50% + 1.5rem);
}

.task-timeline-item--right .task-timeline-card {
    margin-right: auto;
}

/* Center dot */
.task-timeline-dot {
    position: absolute;
    left: 50%;
    top: 0.75rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.dark .task-timeline-dot {
    border-color: #1f2937;
}

/* Dot colors based on status behavior */
.task-timeline-dot--primary {
    background-color: #3b82f6;
}

.task-timeline-dot--warning {
    background-color: #f59e0b;
}

.task-timeline-dot--success {
    background-color: #10b981;
}

.task-timeline-dot--danger {
    background-color: #ef4444;
}

.task-timeline-dot--gray {
    background-color: #6b7280;
}

/* Card styling */
.task-timeline-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}

.task-timeline-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.dark .task-timeline-card {
    background: #1f2937;
    border-color: #374151;
}

/* Card header */
.task-timeline-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Task title */
.task-timeline-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.task-timeline-title a {
    color: inherit;
    text-decoration: none;
}

.task-timeline-title a:hover {
    color: #3b82f6;
}

.dark .task-timeline-title {
    color: #f9fafb;
}

.dark .task-timeline-title a:hover {
    color: #60a5fa;
}

/* Description */
.task-timeline-description {
    font-size: 0.8125rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .task-timeline-description {
    color: #d1d5db;
}

/* Footer with meta info */
.task-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    padding-top: 0.5rem;
    border-top: 1px solid #f3f4f6;
}

.dark .task-timeline-meta {
    border-top-color: #374151;
    color: #6b7280;
}

.task-timeline-meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: inherit;
    text-decoration: none;
}

a.task-timeline-meta-item:hover {
    color: #3b82f6;
}

.dark a.task-timeline-meta-item:hover {
    color: #60a5fa;
}

.task-timeline-meta-icon {
    width: 14px;
    height: 14px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .task-timeline-section .fi-section-content {
        padding-inline: 0.75rem;
    }

    .task-timeline-line {
        left: 0.5rem;
        transform: none;
    }

    .task-timeline-item--left,
    .task-timeline-item--right {
        flex-direction: row;
        padding-left: 1.5rem;
        padding-right: 0;
    }

    .task-timeline-item--left .task-timeline-card,
    .task-timeline-item--right .task-timeline-card {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        text-align: left;
    }

    .task-timeline-item--left .task-timeline-header {
        justify-content: flex-start;
        flex-direction: row;
    }

    .task-timeline-item--left .task-timeline-meta {
        justify-content: flex-start;
    }

    .task-timeline-dot {
        left: 0.5rem;
    }
}
