/* Gantt-диаграмма */
.gantt-container {
    margin-top: 4px;
}

.gantt-row {
    display: flex;
    align-items: center;
    height: 24px;
    margin-bottom: 2px;
}

.gantt-label {
    width: 90px;
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    color: #78716c;
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gantt-track {
    flex: 1;
    position: relative;
    height: 18px;
    background: #f5f5f4;
    border-radius: 4px;
}

.gantt-bar {
    position: absolute;
    top: 1px;
    height: 16px;
    border-radius: 3px;
    opacity: 0.85;
    cursor: default;
    transition: opacity 0.15s;
    overflow: hidden;
}

.gantt-bar:hover {
    opacity: 1;
}

.gantt-progress {
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px 0 0 3px;
}

/* Шкала месяцев */
.gantt-scale {
    flex: 1;
    position: relative;
    height: 20px;
    border-bottom: 1px solid #e7e5e4;
    margin-bottom: 2px;
}

.gantt-month {
    position: absolute;
    top: 0;
    height: 100%;
    font-size: 10px;
    color: #a8a29e;
    padding-left: 4px;
    border-left: 1px solid #e7e5e4;
    line-height: 20px;
    overflow: hidden;
    white-space: nowrap;
}

/* Навигация по таймлайну */
.gantt-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.gantt-nav-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #57534e;
    transition: background 0.15s;
}

.gantt-nav-btn:hover {
    background: #f5f5f4;
}

.gantt-nav-label {
    font-size: 13px;
    color: #57534e;
    min-width: 200px;
    text-align: center;
    font-weight: 500;
}

.gantt-nav-today {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid #d6d3d1;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    color: #57534e;
    margin-left: 8px;
    transition: background 0.15s;
}

.gantt-nav-today:hover {
    background: #f5f5f4;
}

/* Детальный вид запуска */
.detail-wrapper {
    border-top: 1px solid #e7e5e4;
    margin-top: 12px;
    padding-top: 4px;
}

.detail-group {
    border-bottom: 1px solid #f0ede8;
}

.detail-group:last-child {
    border-bottom: none;
}

.detail-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    gap: 12px;
}

.detail-group-header:hover {
    background: #fafaf9;
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 6px;
}

.detail-expand {
    font-size: 11px;
    color: #a8a29e;
    width: 14px;
    flex-shrink: 0;
}

.detail-title {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-subtasks {
    padding-left: 22px;
    padding-bottom: 6px;
}

.detail-subtask-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    gap: 12px;
}

.detail-subtask-title {
    font-size: 12px;
    color: #57534e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.hidden {
    display: none !important;
}

/* Линия «сегодня» */
.gantt-today {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1.5px;
    background: #ef4444;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}
