/* ===== עיצוב מערכת הניהול: גאנט, ועוד ===== */

/* ----- תרשים גאנט ----- */
.gantt-scroll { overflow-x: auto; padding-bottom: 0.5rem; }
.gantt { display: flex; flex-direction: column; }

.gantt-row {
  display: flex;
  align-items: stretch;
  min-height: 38px;
  border-bottom: 1px solid #f1f5f9;
}
.gantt-row:last-child { border-bottom: none; }

.gantt-label {
  width: 170px;
  flex-shrink: 0;
  padding: 0.4rem 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #e2e8f0;
  overflow: hidden;
}
.gantt-label .truncate,
.gantt-bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gantt-track {
  position: relative;
  flex: 1;
  min-width: 480px;
}

/* כותרת ציר הזמן */
.gantt-head { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.gantt-head .gantt-label { font-size: 0.8rem; font-weight: 600; color: #64748b; }
.gantt-mark {
  position: absolute;
  top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex; align-items: center;
  font-size: 0.68rem; color: #94a3b8;
  white-space: nowrap;
  padding-top: 2px;
}

/* קווי רשת אנכיים */
.gantt-grid {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: #eef2f7;
  transform: translateX(-50%);
}

/* קו "היום" */
.gantt-today {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #ef4444;
  transform: translateX(-50%);
  z-index: 2;
}

/* פס משימה */
.gantt-bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
  z-index: 1;
  min-width: 8px;
}
.gantt-bar-label { pointer-events: none; }

.gantt-nodate {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: #cbd5e1;
}

/* במובייל — תווית מעט צרה יותר */
@media (max-width: 640px) {
  .gantt-label { width: 120px; }
}
