/* ──────────────────────────────────────────────
   Gantt View — vis-timeline styles
   ────────────────────────────────────────────── */

.gantt-full-page {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header */
.gantt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 8px;
}
.gantt-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gantt-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.gantt-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Legend */
.gantt-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #666;
}
.gantt-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.gantt-legend-swatch {
    display: inline-block;
    width: 16px;
    height: 10px;
    border-radius: 2px;
}
.gantt-legend-planned {
    background: rgba(66, 165, 245, 0.25);
    border: 1px solid #90CAF9;
}
.gantt-legend-actual {
    background: #42A5F5;
}
.gantt-legend-milestone-swatch {
    width: 10px;
    height: 10px;
    background: #FF9800;
    transform: rotate(45deg);
    border-radius: 0;
}

/* Body */
.gantt-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.gantt-loading,
.gantt-error,
.gantt-empty {
    padding: 40px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.gantt-error .text-danger {
    margin-right: 8px;
}

/* Timeline container */
.gantt-timeline-container {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* vis-timeline item overrides */
.gantt-planned {
    background: rgba(66, 165, 245, 0.2) !important;
    border: 1px solid #90CAF9 !important;
    border-radius: 3px !important;
    color: #333 !important;
    font-size: 11px !important;
}
.gantt-planned .vis-item-content {
    padding: 2px 6px !important;
}

.gantt-actual {
    border: none !important;
    border-radius: 3px !important;
    opacity: 0.85;
    min-height: 14px;
}
.gantt-actual .vis-item-content {
    padding: 0 !important;
}

/* Milestone */
.gantt-milestone {
    background: #FF9800 !important;
    border-color: #F57C00 !important;
}
.gantt-milestone .vis-item-content {
    font-size: 11px !important;
    white-space: nowrap;
}

/* Arrows SVG */
.gantt-arrows-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 3;
}
.gantt-dep-arrow {
    stroke-dasharray: 4 2;
}

/* Progress bar */
.gantt-progress-bar {
    display: inline-block;
}

/* Group labels */
.gantt-full-page .vis-label .vis-inner {
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
}

/* Current time line */
.gantt-full-page .vis-current-time {
    background-color: #EF5350;
    width: 2px;
}
